/* ============================================================
   BOWAN SPORTS · SHARED SITE KIT
   夜间赛场数据控制台 / 蓝图网格 / 索引化导航
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  --bg-void: #070B14;
  --bg-panel: #0D1424;
  --bg-layer: #111C32;
  --line-blueprint: #253654;
  --text-primary: #E6F1FF;
  --text-muted: #8FA3BF;
  --accent-cyan: #22E6D2;
  --accent-orange: #FF7A1A;
  --accent-blue: #5B9DFF;
  --accent-violet: #8B5CF6;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --rail-h: 26px;
  --bar-h: 76px;
  --header-total: calc(var(--rail-h) + var(--bar-h));
  --shell-max: 1280px;
  --gutter: clamp(18px, 4vw, 44px);
  --radius: 2px;
  --ease: cubic-bezier(.32, .72, .28, 1);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--bg-void);
  background-image:
    radial-gradient(760px 420px at 82% -8%, rgba(34, 230, 210, .10), transparent 72%),
    radial-gradient(620px 340px at 6% 0%, rgba(139, 92, 246, .08), transparent 74%);
  background-repeat: no-repeat;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-blue); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent-cyan); }
button { font: inherit; color: inherit; }
strong, b { font-weight: 800; }
::selection { background: rgba(34, 230, 210, .28); color: #FFFFFF; }

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

/* ---------- 3. TYPOGRAPHY ---------- */
h1, .display-1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 7vw, 96px);
  line-height: .98;
  letter-spacing: -.02em;
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.12;
  letter-spacing: -.01em;
}

h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.32;
  letter-spacing: .01em;
}

p { color: rgba(230, 241, 255, .86); }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.index-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}
.index-tag::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent-cyan);
}

/* ---------- 4. LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: 860px; }
.container--wide { max-width: 1440px; }

.section {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0;
}
.section--panel {
  background: var(--bg-panel);
  border-top: 1px solid var(--line-blueprint);
  border-bottom: 1px solid var(--line-blueprint);
}
.section--void { background: var(--bg-void); }

.main-flow { padding-top: var(--header-total); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-10 { grid-column: span 10; }
.span-12 { grid-column: span 12; }

@media (max-width: 820px) {
  .grid-12 > [class*="span-"] { grid-column: span 12; }
}

/* ---------- 5. TEXT BLOCKS ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: clamp(18px, 2.6vw, 30px);
  border-bottom: 1px solid var(--line-blueprint);
  margin-bottom: clamp(26px, 4vw, 48px);
}
.section-title { max-width: 22em; }
.section-lead {
  max-width: 34em;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.85;
  color: var(--text-muted);
}

.prose p {
  max-width: 38em;
  margin-bottom: 1.15em;
  color: rgba(230, 241, 255, .86);
}
.prose p:last-child { margin-bottom: 0; }
.prose h3 { margin: 1.6em 0 .6em; }
.prose strong { color: var(--text-primary); }

/* ---------- 6. BUTTONS & LINKS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-blueprint);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { color: var(--text-primary); border-color: var(--accent-cyan); transform: translateY(-1px); }

.btn-accent {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #0A0E17;
  font-weight: 800;
}
.btn-accent:hover {
  background: #FF9048;
  border-color: #FF9048;
  color: #0A0E17;
}

.btn-ghost {
  background: rgba(17, 28, 50, .55);
  border-color: rgba(37, 54, 84, .9);
  color: rgba(230, 241, 255, .86);
}
.btn-ghost:hover {
  background: rgba(34, 230, 210, .12);
  color: var(--accent-cyan);
}

/* ---------- 7. CHIPS / PLAQUES / DATA STRIP ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-blueprint);
  border-radius: 999px;
  background: rgba(17, 28, 50, .6);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.chip:hover { color: var(--text-primary); border-color: var(--accent-cyan); }
.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #04121A;
  font-weight: 700;
}

.plaque {
  position: relative;
  padding: 18px 20px;
  border: 1px solid var(--line-blueprint);
  background: linear-gradient(160deg, rgba(17, 28, 50, .92), rgba(13, 20, 36, .72));
  box-shadow: 0 18px 40px -34px rgba(0, 0, 0, .95);
}
.plaque::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--accent-cyan);
  border-left: 2px solid var(--accent-cyan);
}
.plaque-title {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--text-primary);
}
.plaque-meta {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.data-strip {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--line-blueprint);
  background: rgba(13, 20, 36, .72);
}
.data-strip-item {
  flex: 1 1 160px;
  padding: 14px 18px;
  border-right: 1px solid var(--line-blueprint);
}
.data-strip-item:last-child { border-right: 0; }
.data-key {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.data-value {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--accent-cyan);
}

/* ---------- 8. MEDIA FRAMES (page-level image slots) ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-blueprint);
  background:
    linear-gradient(150deg, rgba(17, 28, 50, .95), rgba(7, 11, 20, .95)),
    repeating-linear-gradient(90deg, rgba(37, 54, 84, .45) 0 1px, transparent 1px 48px);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0) 46%, rgba(7, 11, 20, .82) 100%),
    linear-gradient(115deg, rgba(34, 230, 210, .16), transparent 46%);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 6px 12px;
  border: 1px solid rgba(34, 230, 210, .5);
  background: rgba(7, 11, 20, .82);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}
.media-frame__index {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: rgba(230, 241, 255, .62);
}

/* ---------- 9. BREADCRUMBS ---------- */
.breadcrumbs {
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 9px;
  color: var(--line-blueprint);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-cyan); }
.breadcrumbs [aria-current="page"] { color: var(--accent-cyan); }

/* ---------- 10. REVEAL ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
[data-reveal][data-delay="2"] { transition-delay: .08s; }
[data-reveal][data-delay="3"] { transition-delay: .16s; }

/* ---------- 11. SKIP LINK ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--accent-cyan);
  color: #04121A;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
  color: #04121A;
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

/* ---------- 12. HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  color: var(--text-primary);
  background: linear-gradient(180deg, rgba(7, 11, 20, .78), rgba(7, 11, 20, 0));
  border-bottom: 1px solid transparent;
  transition: background .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.site-header[data-scrolled] {
  background: rgba(7, 11, 20, .96);
  border-bottom-color: var(--line-blueprint);
  box-shadow: 0 16px 40px -30px rgba(0, 0, 0, .96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-rail {
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--rail-h);
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgba(37, 54, 84, .55);
}
.rail-mono {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.rail-mono--end { color: rgba(34, 230, 210, .68); }
.rail-rule {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 230, 210, .55), rgba(37, 54, 84, .12));
}

.header-bar { height: var(--bar-h); }

.header-inner {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  width: 100%;
  max-width: var(--shell-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--text-primary);
}
.brand-sigil {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-blueprint);
  background: linear-gradient(160deg, rgba(34, 230, 210, .18), rgba(7, 11, 20, 0) 62%);
  transform: skewX(-8deg);
  transition: border-color .18s ease, background .18s ease;
}
.brand:hover .brand-sigil {
  border-color: var(--accent-cyan);
  background: linear-gradient(160deg, rgba(34, 230, 210, .3), rgba(7, 11, 20, 0) 66%);
}
.sigil-bar {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 3px;
  background: var(--accent-cyan);
}
.sigil-bar:nth-child(1) { top: 11px; }
.sigil-bar:nth-child(2) { top: 19px; right: 15px; background: var(--accent-orange); }
.sigil-dot {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 4px;
  height: 4px;
  background: var(--accent-cyan);
}
.brand-text { display: block; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.2;
  transition: color .18s ease;
}
.brand:hover .brand-name { color: var(--accent-cyan); }
.brand-note {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  line-height: 1.3;
  color: var(--text-muted);
}

/* Nav */
.primary-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  color: rgba(230, 241, 255, .78);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .02em;
  transition: color .18s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 9px;
  height: 1px;
  background: var(--accent-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--text-primary); }
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--accent-cyan); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-panel-head,
.nav-foot { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 14px;
}

/* Toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-blueprint);
  border-radius: var(--radius);
  background: rgba(17, 28, 50, .7);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.nav-toggle:hover { border-color: var(--accent-cyan); }
.nav-toggle-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--text-muted);
}
.site-header[data-open] .nav-toggle-label { color: var(--accent-cyan); }
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 10px;
}
.nav-toggle-bars i {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: transform .22s var(--ease), opacity .22s ease;
}
.nav-toggle-bars i:first-child { top: 0; }
.nav-toggle-bars i:last-child { bottom: 0; }
.site-header[data-open] .nav-toggle-bars i:first-child { transform: translateY(4px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bars i:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Scrim */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: rgba(4, 7, 13, .74);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.site-header[data-open] .nav-scrim { opacity: 1; visibility: visible; }

/* Scroll meter */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  background: rgba(37, 54, 84, .35);
}
.scroll-meter-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue) 62%, var(--accent-violet));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .12s linear;
}

/* ---------- 13. HEADER RESPONSIVE ---------- */
@media (max-width: 1180px) {
  .header-actions .btn-ghost { display: none; }
  .nav-link { padding: 0 10px; font-size: 14px; }
  .nav-link::after { left: 10px; right: 10px; }
}

@media (max-width: 980px) {
  :root { --rail-h: 0px; --bar-h: 64px; }

  .header-rail { display: none; }
  .header-actions { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .brand-note { display: none; }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 3;
    display: flex;
    flex-direction: column;
    width: min(88vw, 360px);
    height: 100dvh;
    margin: 0;
    padding: calc(var(--bar-h) + 22px) 24px 28px;
    background: linear-gradient(180deg, #0D1424 0%, #070B14 74%);
    border-left: 1px solid var(--line-blueprint);
    box-shadow: -34px 0 70px -34px rgba(0, 0, 0, .95);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(102%);
    transition: transform .34s var(--ease);
  }
  .site-header[data-open] .primary-nav { transform: translateX(0); }

  .nav-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line-blueprint);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    counter-reset: navidx;
  }
  .nav-list li {
    counter-increment: navidx;
    border-bottom: 1px solid rgba(37, 54, 84, .5);
  }
  .nav-link {
    width: 100%;
    min-height: 54px;
    padding: 16px 8px 16px 0;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: rgba(230, 241, 255, .82);
  }
  .nav-link::before {
    content: counter(navidx, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .12em;
    color: var(--text-muted);
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    color: var(--accent-cyan);
    background: linear-gradient(90deg, rgba(34, 230, 210, .14), transparent 78%);
  }
  .nav-link[aria-current="page"]::before { color: var(--accent-orange); }

  .nav-foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 24px;
  }
  .nav-foot .btn { width: 100%; }
  .nav-foot-note {
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .18em;
    color: var(--text-muted);
  }

  body.is-nav-locked { overflow: hidden; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 17px; }
  .nav-toggle-label { display: none; }
}

/* ---------- 14. FOOTER ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg-void);
  border-top: 1px solid var(--line-blueprint);
  color: var(--text-muted);
}
.footer-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(37, 54, 84, .38) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 54, 84, .38) 1px, transparent 1px),
    radial-gradient(520px 240px at 88% 0%, rgba(34, 230, 210, .10), transparent 72%);
  background-size: 64px 64px, 64px 64px, 100% 100%;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .92), transparent 82%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .92), transparent 82%);
}
.footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(38px, 5vw, 64px) var(--gutter) 26px;
}

.footer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-blueprint);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 560px;
}
.footer-brand-line {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.6;
  color: var(--text-primary);
}
.footer-closing {
  max-width: 360px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  line-height: 1.9;
  text-transform: uppercase;
  color: rgba(143, 163, 191, .85);
  text-align: right;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
  padding: clamp(26px, 4vw, 44px) 0;
}
.footer-nav { grid-column: span 3; }
.footer-contact { grid-column: span 4; }

.footer-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(37, 54, 84, .8);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.footer-title .mono {
  font-size: 10px;
  color: var(--accent-cyan);
}

.footer-links li + li { margin-top: 2px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(230, 241, 255, .72);
  font-size: 14.5px;
  letter-spacing: .01em;
  transition: color .18s ease;
}
.footer-links a::before {
  content: "";
  width: 0;
  height: 1px;
  margin-right: 0;
  background: var(--accent-cyan);
  transition: width .2s var(--ease), margin-right .2s var(--ease);
}
.footer-links a:hover { color: var(--accent-cyan); }
.footer-links a:hover::before { width: 14px; margin-right: 10px; }

.footer-contact-list { margin: 0; }
.footer-contact-item {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(37, 54, 84, .65);
}
.footer-contact-item:last-child { border-bottom: 0; }
.contact-key {
  flex: 0 0 58px;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-value {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-primary);
  word-break: break-word;
}
.contact-value--note {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line-blueprint);
}
.footer-icp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--text-muted);
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-left: auto;
}
.footer-legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  color: var(--text-muted);
  transition: color .18s ease;
}
.footer-legal-links a:hover { color: var(--accent-cyan); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(143, 163, 191, .8);
}

@media (max-width: 980px) {
  .footer-nav { grid-column: span 6; }
  .footer-contact { grid-column: span 12; }
  .footer-closing { text-align: left; max-width: none; }
}
@media (max-width: 560px) {
  .footer-nav { grid-column: span 12; }
  .footer-legal-links { margin-left: 0; }
  .footer-copy { width: 100%; }
}

/* ---------- 15. MOTION PREFERENCES ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .scroll-meter-fill { transition: none; }
  .primary-nav { transition: none; }
}
