/* ========== 1. Reset ========== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote, dl, dt, dd {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

img, svg { max-width: 100%; }

img { display: block; height: auto; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: rgba(63, 224, 204, .28);
  color: #ffffff;
}

/* ========== 2. Tokens ========== */
:root {
  --ink: #071A16;
  --panel: #0E2A22;
  --line: #164034;
  --line-soft: #0F3128;
  --cyan: #3FE0CC;
  --cyan-soft: #8CF2E4;
  --amber: #F0A93B;
  --violet: #8B5CF6;
  --paper: #F5F1E6;
  --text: #E8F5F1;
  --muted: #9FB8B1;
  --muted-dim: #7E9B94;
  --amber-deep: #C2410C;

  --shell: 1280px;
  --gutter: 24px;
  --radius: 3px;
  --shadow: 0 18px 36px rgba(0, 0, 0, .45);
  --header-h: 78px;

  --font-display: "Barlow Condensed", "Oswald", "Arial Narrow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

/* ========== 3. Base ========== */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(63, 224, 204, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 224, 204, .05) 1px, transparent 1px),
    radial-gradient(120% 80% at 10% -12%, rgba(63, 224, 204, .11), transparent 62%);
  background-size: 96px 96px, 96px 96px, 100% 100%;
  background-repeat: repeat, repeat, no-repeat;
  background-attachment: fixed, fixed, scroll;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: .005em;
  color: #ffffff;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { max-width: 68ch; }

.mono {
  font-family: var(--font-mono);
  font-size: .9em;
  letter-spacing: .02em;
}

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
}

[id] { scroll-margin-top: 104px; }

/* ========== 4. Shell & sections ========== */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 64px; }
.section--tight { padding-block: 40px; }
.section--wide { padding-block: 96px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
}

.section-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  flex: none;
  background: var(--cyan);
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
  line-height: 1.68;
  color: #CFE8E1;
  max-width: 60ch;
}

/* ========== 5. Grid ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

.rail {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  align-self: start;
}

/* ========== 6. Panels ========== */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px 32px;
}

.panel + .panel { margin-top: 26px; }

.panel-label {
  position: absolute;
  top: -11px;
  left: 20px;
  padding: 3px 10px;
  background: var(--paper);
  color: #071A16;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  border-radius: 2px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .35);
}

.panel-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: .1em;
}

.panel--paper {
  background: var(--paper);
  color: #0B211B;
  border-color: #D9D2BE;
}

.panel--paper h2,
.panel--paper h3 { color: #08201A; }

.panel--paper .panel-label {
  background: #071A16;
  color: var(--paper);
}

/* ========== 7. Band & stats ========== */
.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(14, 42, 34, .92), rgba(7, 26, 22, .55));
  padding-block: 18px;
}

.band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .03em;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--cyan-soft);
  letter-spacing: -.02em;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .1em;
}

/* ========== 8. Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 42, 34, .9);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  transition: background .18s ease-out, color .18s ease-out, border-color .18s ease-out;
}

.btn:hover {
  background: rgba(63, 224, 204, .12);
  border-color: var(--cyan);
  color: var(--cyan-soft);
}

.btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04241F;
  font-weight: 700;
}

.btn--primary:hover {
  background: var(--cyan-soft);
  border-color: var(--cyan-soft);
  color: #04241F;
}

.btn--ghost { background: transparent; }

.btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
}

/* ========== 9. Tags ========== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(22, 64, 52, .55);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  white-space: nowrap;
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: currentColor;
}

.tag--live {
  color: var(--cyan);
  border-color: rgba(63, 224, 204, .45);
  background: rgba(63, 224, 204, .1);
}

.tag--injury {
  color: var(--amber);
  border-color: rgba(240, 169, 59, .45);
  background: rgba(240, 169, 59, .1);
}

.tag--transfer {
  color: var(--violet);
  border-color: rgba(139, 92, 246, .5);
  background: rgba(139, 92, 246, .12);
}

/* ========== 10. Header ========== */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--cyan);
  color: #04241F;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 14px;
  transition: top .18s ease-out;
}

.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #08201A 0%, #071A16 100%);
  border-bottom: 1px solid var(--line);
}

.header-shell {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
  transition: min-height .22s ease-out;
}

.site-header[data-compact="true"] .header-shell { min-height: 58px; }
.site-header[data-compact="true"] .brand-sub { display: none; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--cyan);
  border-radius: 2px;
  background: linear-gradient(160deg, #0E2A22, #071A16);
  box-shadow: 3px 3px 0 rgba(22, 64, 52, .9);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: .02em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .05em;
}

.header-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  padding-inline: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  max-width: none;
}

.header-ticker::before,
.header-ticker::after {
  content: "";
  flex: 1 1 24px;
  min-width: 16px;
  height: 1px;
}

.header-ticker::before { background: linear-gradient(90deg, transparent, var(--line)); }
.header-ticker::after { background: linear-gradient(90deg, var(--line), transparent); }

.ticker-dot {
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(63, 224, 204, .16);
  animation: tickerPulse 2.4s ease-in-out infinite;
}

@keyframes tickerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.ticker-label { letter-spacing: .1em; }

.ticker-value {
  color: var(--text);
  font-weight: 700;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex: none;
}

.site-nav { display: flex; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 12px;
  border-bottom: 2px solid transparent;
  border-radius: 2px;
  color: var(--muted);
  font-size: 14px;
  transition: color .18s ease-out, background .18s ease-out, border-color .18s ease-out;
}

.nav-label { white-space: nowrap; }

.nav-link:hover {
  color: var(--text);
  background: rgba(22, 64, 52, .55);
}

.nav-link[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  background: rgba(63, 224, 204, .08);
}

.nav-desc {
  display: none;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  white-space: normal;
}

.header-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 42, 34, .7);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: border-color .18s ease-out, color .18s ease-out, background .18s ease-out;
}

.header-search:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(63, 224, 204, .1);
}

.header-search-icon {
  flex: none;
  color: var(--cyan);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 42, 34, .7);
  transition: border-color .18s ease-out;
}

.nav-toggle:hover { border-color: var(--cyan); }

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform .18s ease-out, opacity .18s ease-out;
}

.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); }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(4, 14, 12, .74);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease-out, visibility .24s linear;
}

.nav-scrim[data-visible="true"] {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 1025px) {
  .nav-scrim { display: none; }
}

/* ========== 11. Footer ========== */
.site-footer {
  position: relative;
  margin-top: 96px;
  background: linear-gradient(180deg, #0A231C 0%, #071A16 72%);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(280px, 42%);
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), rgba(63, 224, 204, 0));
}

.footer-shell { padding-block: 64px 28px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: 44px 32px;
}

.footer-col { min-width: 0; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: .02em;
  transition: color .18s ease-out;
}

.footer-brand:hover .footer-brand-name { color: var(--cyan); }

.footer-sign {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .05em;
}

.footer-note {
  margin-top: 18px;
  max-width: 40ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-note--dim {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted-dim);
}

.footer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--cyan);
}

.footer-title::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  background: var(--cyan);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  display: inline-block;
  font-size: 14.5px;
  color: var(--muted);
  transition: color .18s ease-out, padding-left .18s ease-out;
}

.footer-link:hover {
  color: var(--cyan);
  padding-left: 6px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted-dim);
}

.contact-value {
  font-size: 14.5px;
  color: var(--text);
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.footer-meta,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  max-width: none;
}

/* ========== 12. Breadcrumb & prose ========== */
.breadcrumb { padding-top: 22px; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin: 0 8px;
  color: #2C5A4C;
}

.breadcrumb-item a:hover { color: var(--cyan); }

.breadcrumb-item[aria-current="page"] { color: var(--text); }

.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.75;
}

.prose > * + * { margin-top: 1em; }

.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }

.prose a {
  color: var(--cyan-soft);
  border-bottom: 1px solid rgba(63, 224, 204, .4);
}

.prose a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.prose ul,
.prose ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 68ch;
}

.prose li {
  position: relative;
  padding-left: 20px;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 8px;
  height: 2px;
  background: var(--cyan);
}

.prose blockquote {
  padding: 14px 18px;
  border-left: 3px solid var(--cyan-soft);
  background: rgba(14, 42, 34, .75);
  color: var(--text);
}

.prose strong { color: #ffffff; }

/* ========== 13. Media frames ========== */
.img-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0E2A22, #071A16);
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 26, 22, 0) 46%, rgba(7, 26, 22, .68) 100%);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.5) contrast(1.05) brightness(.9);
}

.img-frame--16x9 { aspect-ratio: 16 / 9; }
.img-frame--3x2 { aspect-ratio: 3 / 2; }
.img-frame--1x1 { aspect-ratio: 1 / 1; }

.img-cap {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ========== 14. Timeline ========== */
.timeline {
  padding: 20px 22px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 42, 34, .55);
}

.timeline-track {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  scrollbar-width: thin;
}

.timeline-item {
  position: relative;
  flex: 0 0 auto;
  min-width: 122px;
  padding: 22px 16px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 1px;
  background: var(--line);
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 9px;
  height: 9px;
  border: 2px solid var(--cyan);
  background: var(--ink);
}

.timeline-item[data-state="done"] .timeline-dot { background: var(--cyan); }

.timeline-item[data-state="injury"] .timeline-dot {
  border-color: var(--amber);
  background: var(--amber);
}

.timeline-item[data-state="transfer"] .timeline-dot {
  border-color: var(--violet);
  background: var(--violet);
}

.timeline-label {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

/* ========== 15. Accordion ========== */
.accordion {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.accordion-item { border-bottom: 1px solid var(--line); }

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 4px 18px 14px;
  border-left: 4px solid transparent;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text);
  transition: color .18s ease-out, border-color .18s ease-out, background .18s ease-out;
}

.accordion-trigger:hover {
  color: var(--cyan-soft);
  background: rgba(22, 64, 52, .45);
}

.accordion-trigger[aria-expanded="true"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
}

.accordion-icon {
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease-out;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(-135deg); }

.accordion-panel {
  height: 0;
  overflow: hidden;
  transition: height .24s ease-out;
}

.accordion-panel[hidden] { display: none; }

.accordion-panel-inner {
  max-width: 68ch;
  padding: 0 4px 22px 14px;
  color: var(--muted);
  font-size: 15.5px;
}

/* ========== 16. Anchor nav ========== */
.anchor-nav {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.anchor-nav-title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}

.anchor-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.anchor-nav-list a {
  display: block;
  margin-left: -17px;
  padding: 6px 10px 6px 15px;
  border-left: 2px solid transparent;
  font-size: 13.5px;
  color: var(--muted);
  transition: color .18s ease-out, border-color .18s ease-out;
}

.anchor-nav-list a:hover { color: var(--text); }

.anchor-nav-list a[aria-current="true"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
}

/* ========== 17. Motion ========== */
html[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .22s ease-out, transform .22s ease-out;
}

html[data-js="on"] [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ========== 18. Responsive ========== */
@media (max-width: 1024px) {
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 130;
    display: block;
    width: min(340px, 86vw);
    padding: 92px 20px 32px;
    overflow-y: auto;
    background: linear-gradient(180deg, #0E2A22 0%, #071A16 100%);
    border-left: 1px solid var(--line);
    box-shadow: -28px 0 56px rgba(0, 0, 0, .55);
    transform: translateX(103%);
    transition: transform .26s ease-out;
  }

  .site-nav[data-open="true"] { transform: translateX(0); }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    padding: 14px 12px 14px 14px;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
    border-radius: 0;
    font-size: 15.5px;
    color: var(--text);
  }

  .nav-link:hover { background: rgba(22, 64, 52, .6); }

  .nav-link[aria-current="page"] {
    border-left-color: var(--cyan);
    border-bottom-color: var(--line);
    background: rgba(63, 224, 204, .08);
  }

  .nav-desc { display: block; }

  .nav-toggle { display: inline-flex; }

  .grid { gap: 20px; }

  .col-3,
  .col-4,
  .col-5 { grid-column: span 6; }

  .col-7,
  .col-8,
  .col-9 { grid-column: span 12; }

  .rail {
    position: static;
    top: auto;
  }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --gutter: 18px; --header-h: 64px; }

  body { font-size: 16px; }

  .header-shell { gap: 12px; }
  .header-ticker { display: none; }
  .brand-sub { display: none; }
  .brand-name { font-size: 18px; }

  .section { padding-block: 44px; }
  .section--wide { padding-block: 64px; }

  .panel { padding: 26px 20px 28px; }

  .btn { width: auto; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .footer-shell { padding-block: 48px 24px; }
  .site-footer { margin-top: 64px; }

  .timeline-item { min-width: 108px; }
}

@media (max-width: 560px) {
  .search-text { display: none; }
  .header-search { padding: 10px; }
  .col-3,
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8,
  .col-9 { grid-column: span 12; }
}

/* ========== 19. Reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  html[data-js="on"] [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
