:root {
  --red: #D40000;
  --red-dark: #7F1D1D;
  --red-deeper: #4A0D0D;
  --black: #0A0A0A;
  --black-soft: #111111;
  --panel: #1A1A1A;
  --panel-2: #222222;
  --gold: #E6B800;
  --gold-soft: #F4CC33;
  --blue: #3B82F6;
  --purple: #8B5CF6;
  --white: #FFFFFF;
  --gray: #A1A1AA;
  --line: rgba(255, 255, 255, 0.12);
  --line-red: rgba(212, 0, 0, 0.45);
  --line-gold: rgba(230, 184, 0, 0.5);
  --grad-data: linear-gradient(135deg, #3B82F6, #8B5CF6);
  --grad-red: linear-gradient(135deg, #D40000, #7F1D1D);
  --font-head: Impact, 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', sans-serif;
  --font-num: 'Roboto Mono', 'JetBrains Mono', monospace;
  --shell: 1280px;
  --header-h: 72px;
  --radius: 0px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--red); color: var(--white); }
#main-content { display: block; min-height: 60vh; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 3000;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  padding: 10px 18px;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }
.site-shell {
  max-width: var(--shell);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header[data-scrolled] {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  position: relative;
  gap: 20px;
}
.nav-progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 0%;
  background: var(--grad-data);
  transition: width 0.08s linear;
  z-index: 2;
}
.site-header[data-scrolled] .nav-progress { height: 2px; }

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
}
.brand-mark {
  width: 36px; height: 36px;
  background: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 0 100%);
  position: relative;
}
.brand-mark__core {
  width: 14px; height: 14px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 25% 100%);
}
.brand-name {
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gray);
  font-family: var(--font-num);
  white-space: nowrap;
  display: none;
}
.brand-lockup--footer .brand-name { font-size: 26px; }

.nav-panel { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative;
  display: block;
  padding: 10px 12px;
  font-weight: 500;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--gold); }
.nav-link[aria-current="page"] { color: var(--white); }
.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 4px;
  background: var(--red);
  transform: skewX(-14deg);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-cta {
  display: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.08em;
  padding: 12px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  text-transform: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: #b00000; }
.btn-gold { background: var(--gold); color: #0A0A0A; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-compact { padding: 9px 15px; font-size: 13px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: rgba(26, 26, 26, 0.75);
  border: 1px solid var(--line);
}
.nav-toggle__bar {
  display: block;
  width: 20px; height: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
}
.nav-toggle:hover .nav-toggle__bar { background: var(--gold); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-footer {
  background: var(--black);
  border-top: 1px solid var(--line);
  position: relative;
  margin-top: 80px;
}
.footer-sweep {
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 50%, var(--blue) 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 48px;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.72); max-width: 340px; }
.footer-desc--dim { color: var(--gray); font-size: 13px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.foot-heading {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}
.foot-heading::before {
  content: "";
  width: 6px; height: 14px;
  background: var(--red);
  display: inline-block;
  transform: skewX(-10deg);
}
.foot-list { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  display: inline-block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  position: relative;
  transition: color 0.2s ease;
}
.footer-link:hover { color: var(--gold); }
.footer-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.25s ease;
}
.footer-link:hover::after { width: 100%; }
.footer-contact .foot-list--plain { gap: 12px; }
.foot-label {
  display: inline-block;
  min-width: 36px;
  font-size: 12px;
  font-family: var(--font-num);
  color: var(--gray);
  letter-spacing: 0.05em;
}
.footer-fine {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  padding-bottom: 22px;
  background: #070707;
}
.footer-fine__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 12px;
  color: var(--gray);
  font-family: var(--font-num);
}

.container { width: 100%; }
.container--narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-label::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.section-title {
  font-family: var(--font-head);
  font-size: 48px;
  line-height: 1.08;
  margin-top: 12px;
  letter-spacing: 0.02em;
}
.section-desc { margin-top: 16px; font-size: 16px; color: rgba(255, 255, 255, 0.78); max-width: 640px; }

.frame-stage {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}
.frame-stage::before {
  content: "";
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px solid var(--line-red);
  pointer-events: none;
  z-index: 2;
}
.frame-stage--red { border-color: var(--line-red); }
.image-stage {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #141414, #202020);
  overflow: hidden;
}
.image-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 0, 0, 0.28), rgba(139, 92, 246, 0.12));
  mix-blend-mode: screen;
  pointer-events: none;
}
.aspect-16x9 { aspect-ratio: 16 / 9; }
.aspect-4x3 { aspect-ratio: 4 / 3; }
.aspect-3x4 { aspect-ratio: 3 / 4; }

.data-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.08em;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
}
.data-chip::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}
.data-chip--gold { background: rgba(230, 184, 0, 0.12); border-color: var(--line-gold); color: var(--gold); }
.data-chip--gold::before { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.data-chip--red { background: rgba(212, 0, 0, 0.14); border-color: rgba(212, 0, 0, 0.45); }
.data-chip--red::before { background: var(--red); box-shadow: 0 0 8px var(--red); }

.milestone-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.milestone-bar__num {
  font-family: var(--font-num);
  font-size: 28px;
  color: var(--gold);
  min-width: 80px;
  font-weight: 700;
}
.milestone-bar__label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.milan-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 28px;
  position: relative;
}
.milan-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 24px; height: 4px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}
.milan-card--blue::before { background: var(--blue); }
.milan-card--gold::before { background: var(--gold); }

.accordion-item {
  border-bottom: 1px solid var(--line);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 8px;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  transition: color 0.2s ease;
}
.accordion-trigger::after {
  content: "+";
  font-family: var(--font-num);
  font-size: 22px;
  color: var(--gold);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.accordion-trigger:hover { color: var(--gold); }
.accordion-trigger[aria-expanded="true"]::after { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-panel[data-open] { max-height: 600px; }
.accordion-content {
  padding: 4px 8px 24px;
  color: rgba(255,255,255,0.74);
  font-size: 15px;
}

.tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}
.tab-btn {
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  position: relative;
  transition: color 0.2s ease;
}
.tab-btn::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.tab-btn:hover { color: var(--white); }
.tab-btn[data-active] { color: var(--gold); }
.tab-btn[data-active]::after { transform: scaleX(1); }
.tab-panel { display: none; }
.tab-panel[data-active] { display: block; animation: fadeUp 0.3s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal][data-shown] {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top-link {
  position: fixed;
  right: 18px; bottom: 18px;
  width: 48px; height: 48px;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-family: var(--font-num);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 900;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 0 100%);
}
.scroll-top-link[data-shown] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top-link:hover { background: var(--gold); color: var(--black); }

@media (min-width: 768px) {
  .brand-sub { display: block; }
  .header-cta { display: inline-flex; }
  .header-inner { gap: 26px; }
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .footer-contact { grid-column: span 3; }
  .section-title { font-size: 40px; }
}

@media (max-width: 767px) {
  .site-shell { padding-left: 18px; padding-right: 18px; }
  .header-inner { height: 64px; }
  .brand-name { font-size: 19px; }
  .brand-sub { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav-panel {
    position: fixed;
    top: 0; right: 0;
    width: min(84vw, 360px);
    height: 100vh;
    background: #0D0D0D;
    border-left: 1px solid var(--line);
    margin: 0;
    padding: 80px 28px 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
  }
  .nav-panel[data-open] { transform: translateX(0); }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-link {
    font-size: 22px;
    font-family: var(--font-head);
    padding: 14px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-link[aria-current="page"]::before {
    width: 6px;
    top: 50%; bottom: auto;
    transform: translateY(-50%) skewX(-14deg);
    height: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 40px;
    padding-bottom: 36px;
  }
  .footer-contact { grid-column: auto; }
  .footer-fine__inner { flex-direction: column; gap: 6px; }
  .section-title { font-size: 34px; }
  .btn { padding: 10px 16px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
