/* ===========================================================
   HO赛场 · 共享站点套件  /assets/site.css
   深夜赛场指挥中心：深空底 + 电光青 + 荧光橙，脉络线母题
   =========================================================== */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, table, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; height: 1px; background: var(--line); margin: 0; }
[id] { scroll-margin-top: calc(var(--header-h) + 1.25rem); }

/* ---------- 2. Tokens ---------- */
:root {
  --bg: #070B14;
  --bg-abyss: #0D1626;
  --bg-panel: #121E33;
  --line: #1C3A4A;
  --line-soft: rgba(28, 58, 74, .62);
  --cyan: #25E6E6;
  --cyan-soft: #7AF7F7;
  --orange: #FF7A1A;
  --ember: #FFB169;
  --text: #E8F4FF;
  --text-dim: #92A7C4;
  --ok: #3BE38A;
  --font-head: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 74px;
  --shell-w: 1180px;
  --gutter: clamp(1rem, 3.4vw, 2rem);
  --radius-lg: 30px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 22px 48px -34px rgba(0, 0, 0, .95);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. Base ---------- */
body {
  position: relative;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(.95rem, .32vw + .88rem, 1.05rem);
  font-weight: 400;
  line-height: 1.78;
  letter-spacing: .01em;
  background:
    radial-gradient(920px 520px at 10% -12%, rgba(37, 230, 230, .12), transparent 62%),
    radial-gradient(760px 460px at 94% 2%, rgba(255, 122, 26, .09), transparent 64%),
    linear-gradient(180deg, #070B14 0%, #08101C 46%, #070B14 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .45;
  background-image:
    linear-gradient(to right, rgba(28, 58, 74, .55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 58, 74, .42) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(125% 92% at 50% 0%, #000 0%, transparent 76%);
  mask-image: radial-gradient(125% 92% at 50% 0%, #000 0%, transparent 76%);
}
main, .site-footer { position: relative; z-index: 1; }
main { padding-top: calc(var(--header-h) + clamp(.75rem, 3vw, 1.75rem)); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .005em;
  color: var(--text);
}
h1 { font-size: clamp(2.1rem, 6vw, 4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.45rem); }
p { color: var(--text); }
strong { color: var(--cyan-soft); font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
}
::selection { background: rgba(37, 230, 230, .3); color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 4. Utilities ---------- */
.shell { width: 100%; max-width: var(--shell-w); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(2.6rem, 6.5vw, 5rem); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.text-dim { color: var(--text-dim); }
.text-cyan { color: var(--cyan-soft); }
.text-orange { color: var(--orange); }
.stack { display: flex; flex-direction: column; gap: clamp(.6rem, 1.6vw, 1rem); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}
.section-title { margin-top: .55rem; }
.section-lede { max-width: 62ch; margin-top: .7rem; color: var(--text-dim); font-size: .95rem; }

.vein-line {
  position: relative; height: 1px; border: 0; overflow: hidden;
  background: linear-gradient(90deg, transparent, rgba(37, 230, 230, .5), rgba(255, 122, 26, .4), transparent);
}
.vein-line::after {
  content: ""; position: absolute; top: -1px; left: -30%; width: 30%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan-soft), transparent);
  animation: vein-flow 6.5s linear infinite;
}
@keyframes vein-flow { to { left: 112%; } }
@keyframes pulse-soft { 0%, 100% { opacity: 1; } 50% { opacity: .38; } }

/* ---------- 5. Header ---------- */
.skip-link {
  position: fixed; top: -4.5rem; left: 50%; transform: translateX(-50%);
  z-index: 140; padding: .6rem 1.15rem; border-radius: 999px;
  background: var(--cyan); color: #04161A; font-size: .82rem; font-weight: 600;
  transition: top .22s var(--ease);
}
.skip-link:focus { top: .9rem; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  padding: clamp(.55rem, 1.6vw, .95rem) var(--gutter);
}
.header-inner {
  position: relative;
  display: flex; align-items: center; gap: .75rem;
  width: 100%; max-width: var(--shell-w); margin-inline: auto;
  padding: .5rem .55rem .5rem .95rem;
  border: 1px solid rgba(28, 58, 74, .95);
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(13, 22, 38, .88), rgba(18, 30, 51, .74));
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
  box-shadow: 0 24px 46px -34px rgba(0, 0, 0, .98), inset 0 1px 0 rgba(122, 247, 247, .07);
  transition: padding .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.site-header[data-scrolled] .header-inner {
  padding-block: .28rem;
  background: linear-gradient(120deg, rgba(7, 11, 20, .95), rgba(13, 22, 38, .88));
  border-color: rgba(37, 230, 230, .26);
}

.brand { display: inline-flex; align-items: center; gap: .6rem; flex: 0 0 auto; border-radius: 999px; }
.brand-pulse {
  width: 10px; height: 10px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(37, 230, 230, .13), 0 0 14px var(--cyan);
  animation: pulse-soft 2.8s var(--ease) infinite;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.06; }
.brand-title { font-family: var(--font-head); font-size: 1.16rem; font-weight: 700; letter-spacing: .07em; color: var(--text); }
.brand-tag { font-size: .6rem; letter-spacing: .3em; color: var(--cyan); }

.nav-toggle {
  display: none; align-items: center; gap: .5rem; margin-left: auto;
  padding: .42rem .8rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .76rem; letter-spacing: .12em; color: var(--text-dim);
  transition: color .22s var(--ease), border-color .22s var(--ease);
}
.nav-toggle-bars { position: relative; display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .26s var(--ease), top .26s var(--ease);
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] { color: var(--cyan); border-color: rgba(37, 230, 230, .5); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
.nav-toggle-text { line-height: 1; }

.main-nav { flex: 1 1 auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .6rem; }
.nav-list { display: flex; justify-content: center; align-items: center; gap: .1rem; }
.nav-item { display: block; }
.nav-link {
  position: relative; display: inline-block; padding: .48rem .78rem; border-radius: 999px;
  font-size: .85rem; letter-spacing: .05em; color: var(--text-dim);
  transition: color .22s var(--ease), background .22s var(--ease);
}
.nav-link:hover { color: var(--text); background: rgba(37, 230, 230, .09); }
.nav-link[aria-current="page"] { color: var(--text); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: .12rem; transform: translateX(-50%);
  width: 18px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  padding: .5rem 1.05rem; border-radius: 999px;
  background: linear-gradient(120deg, var(--orange), var(--ember));
  color: #1A0A00; font-size: .82rem; font-weight: 600; letter-spacing: .06em;
  box-shadow: 0 12px 26px -18px rgba(255, 122, 26, .95);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 18px 30px -18px rgba(255, 122, 26, 1); }

.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 95;
  background: rgba(28, 58, 74, .55);
}
.read-progress-bar {
  display: block; width: 0; height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--ember));
  box-shadow: 0 0 14px rgba(37, 230, 230, .7);
  transition: width .12s linear;
}

/* ---------- 6. Page head / breadcrumbs ---------- */
.page-head { padding-block: clamp(1.6rem, 5vw, 3rem) clamp(1rem, 3vw, 1.8rem); }
.page-head h1 { margin-top: .5rem; }
.page-head .section-lede { font-size: 1rem; }

.crumbs { margin-bottom: clamp(.9rem, 2.6vw, 1.4rem); }
.crumbs-list { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .76rem; letter-spacing: .08em; color: var(--text-dim); }
.crumbs-item { display: inline-flex; align-items: center; gap: .45rem; }
.crumbs-item + .crumbs-item::before { content: "/"; color: rgba(37, 230, 230, .55); }
.crumbs-item a { transition: color .2s var(--ease); }
.crumbs-item a:hover { color: var(--cyan-soft); }
.crumbs-item[aria-current="page"] { color: var(--text); }

/* ---------- 7. Bento & panels ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(.75rem, 1.7vw, 1.15rem); }
.bento-cell { grid-column: span 4; min-width: 0; }
.bento-cell--half { grid-column: span 6; }
.bento-cell--wide { grid-column: span 8; }
.bento-cell--full { grid-column: span 12; }
.bento-cell--tall { grid-row: span 2; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: clamp(.8rem, 2vw, 1.25rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(224px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); }

.panel {
  position: relative; height: 100%; padding: clamp(1.05rem, 2.4vw, 1.6rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(18, 30, 51, .94), rgba(13, 22, 38, .84));
  box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.panel:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 230, 230, .42);
  box-shadow: 0 28px 50px -34px rgba(0, 0, 0, .98), 0 0 0 1px rgba(37, 230, 230, .14);
}
.panel--focus {
  border-color: rgba(37, 230, 230, .42);
  background: linear-gradient(158deg, rgba(37, 230, 230, .1), rgba(13, 22, 38, .92) 48%);
}
.panel--pulse {
  border-color: rgba(255, 122, 26, .38);
  background: linear-gradient(158deg, rgba(255, 122, 26, .1), rgba(13, 22, 38, .92) 48%);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .7rem; }
.panel-title { font-size: clamp(1.02rem, 1.9vw, 1.28rem); }
.panel-text { color: var(--text-dim); font-size: .91rem; }
.panel-link {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: .85rem;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; color: var(--cyan);
  border-bottom: 1px solid rgba(37, 230, 230, .35); padding-bottom: .1rem;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.panel-link:hover { color: var(--cyan-soft); border-color: var(--cyan-soft); }

/* ---------- 8. Stats / tags / buttons ---------- */
.stat { display: flex; flex-direction: column; gap: .18rem; }
.stat-value {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: clamp(1.45rem, 3.6vw, 2.15rem); font-weight: 600; line-height: 1.1;
  color: var(--cyan-soft); text-shadow: 0 0 18px rgba(37, 230, 230, .35);
}
.stat-value--orange { color: var(--orange); text-shadow: 0 0 18px rgba(255, 122, 26, .32); }
.stat-label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); }

.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .62rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .72rem; letter-spacing: .08em; color: var(--text-dim);
}
.tag--cyan { border-color: rgba(37, 230, 230, .45); color: var(--cyan-soft); background: rgba(37, 230, 230, .08); }
.tag--orange { border-color: rgba(255, 122, 26, .45); color: var(--ember); background: rgba(255, 122, 26, .09); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px rgba(59, 227, 138, .85); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.35rem; border: 1px solid transparent; border-radius: 999px;
  font-size: .88rem; font-weight: 600; letter-spacing: .06em; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn--primary {
  background: linear-gradient(120deg, var(--orange), var(--ember)); color: #1A0A00;
  box-shadow: 0 16px 32px -20px rgba(255, 122, 26, .98);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 36px -20px rgba(255, 122, 26, 1); }
.btn--ghost { border-color: rgba(37, 230, 230, .45); color: var(--cyan-soft); background: rgba(37, 230, 230, .06); }
.btn--ghost:hover { background: rgba(37, 230, 230, .15); transform: translateY(-2px); }
.btn--sm { padding: .45rem .9rem; font-size: .77rem; }

/* ---------- 9. TOC & data table ---------- */
.toc { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(13, 22, 38, .72); }
.toc-list { display: flex; flex-direction: column; gap: .1rem; }
.toc-link {
  display: block; padding: .38rem .6rem; border-left: 2px solid transparent; border-radius: 0 8px 8px 0;
  font-size: .84rem; color: var(--text-dim);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.toc-link:hover { color: var(--text); }
.toc-link[aria-current="true"] {
  color: var(--cyan-soft); border-left-color: var(--cyan); background: rgba(37, 230, 230, .07);
}

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(13, 22, 38, .68); }
.data-table { width: 100%; min-width: 560px; font-size: .86rem; }
.data-table th, .data-table td { padding: .72rem .9rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
.data-table thead th {
  font-family: var(--font-mono); font-size: .71rem; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-dim); background: rgba(18, 30, 51, .82);
}
.data-table tbody tr { transition: background .2s var(--ease); }
.data-table tbody tr:hover { background: rgba(37, 230, 230, .05); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--cyan-soft); }
.data-table td.num--hot { color: var(--orange); }

/* ---------- 10. Media frames ---------- */
.media-frame {
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(150deg, #101C2E, #0A1220 58%, #12213A);
  aspect-ratio: 16 / 10;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .75;
  background: repeating-linear-gradient(115deg, rgba(37, 230, 230, .07) 0 1px, transparent 1px 22px);
}
.media-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0) 42%, rgba(7, 11, 20, .8));
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame-caption {
  position: absolute; left: 1rem; right: 1rem; bottom: .85rem; z-index: 3;
  font-size: .78rem; color: var(--text-dim);
}

/* ---------- 11. Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 12. Footer ---------- */
.site-footer {
  position: relative; margin-top: clamp(3rem, 7vw, 6rem);
  padding: clamp(2.4rem, 6vw, 4.5rem) 0 clamp(1.4rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(13, 22, 38, 0) 0%, rgba(13, 22, 38, .96) 16%, #070B14 100%);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 230, 230, .55), rgba(255, 122, 26, .45), transparent);
}
.footer-inner { width: 100%; max-width: var(--shell-w); margin-inline: auto; padding-inline: var(--gutter); }
.footer-grid {
  display: grid; gap: clamp(1.6rem, 4vw, 3rem);
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 1fr));
}
.footer-brand { display: flex; flex-direction: column; gap: .7rem; }
.footer-slogan {
  font-family: var(--font-head); font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 700;
  letter-spacing: .02em; color: var(--text); margin-top: .25rem;
}
.footer-text { font-size: .86rem; color: var(--text-dim); max-width: 34ch; }
.footer-text--tight { max-width: none; }
.footer-col { display: flex; flex-direction: column; gap: .7rem; }
.footer-title {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase; color: var(--cyan);
}
.footer-list { display: flex; flex-direction: column; gap: .5rem; }
.footer-item { font-size: .86rem; }
.footer-link { color: var(--text-dim); transition: color .2s var(--ease); }
.footer-link:hover { color: var(--cyan-soft); }
.footer-label { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(146, 167, 196, .75); }
.footer-mono { display: block; font-family: var(--font-mono); font-size: .85rem; color: var(--text); }
.footer-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
  margin-top: clamp(1.8rem, 4vw, 3rem); padding-top: 1.1rem; border-top: 1px solid var(--line-soft);
}
.footer-copy { font-size: .78rem; color: var(--text-dim); font-family: var(--font-mono); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .78rem; }

.to-top {
  position: fixed; right: clamp(.9rem, 3vw, 1.6rem); bottom: clamp(.9rem, 3vw, 1.6rem); z-index: 70;
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem .95rem; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(13, 22, 38, .92); color: var(--text-dim);
  font-size: .76rem; letter-spacing: .08em;
  opacity: 0; visibility: hidden; transform: translateY(.6rem);
  transition: opacity .3s var(--ease), transform .3s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--cyan); border-color: rgba(37, 230, 230, .55); }

/* ---------- 13. Responsive ---------- */
@media (max-width: 1024px) {
  .bento-cell { grid-column: span 6; }
  .bento-cell--wide { grid-column: span 12; }
}
@media (max-width: 959px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: inline-flex; }
  .header-inner { justify-content: space-between; }
  .main-nav {
    position: absolute; top: calc(100% + .55rem); left: 0; right: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: .55rem;
    padding: .9rem; border: 1px solid rgba(37, 230, 230, .28); border-radius: 24px;
    background: linear-gradient(160deg, rgba(18, 30, 51, .98), rgba(7, 11, 20, .98));
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 34px 60px -34px rgba(0, 0, 0, 1);
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-.5rem);
    transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s linear;
  }
  .main-nav[data-open] { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: .12rem; }
  .nav-link { display: block; padding: .7rem .85rem; border-radius: 14px; font-size: .92rem; }
  .nav-link[aria-current="page"] { background: rgba(37, 230, 230, .09); }
  .nav-link[aria-current="page"]::after { left: .85rem; transform: none; bottom: .45rem; }
  .nav-cta { margin-top: .2rem; padding: .7rem 1rem; font-size: .88rem; }
  body.nav-open { overflow: hidden; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bento-cell, .bento-cell--half, .bento-cell--wide, .bento-cell--full { grid-column: span 6; }
  .bento-cell--tall { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { flex-direction: column; align-items: flex-start; }
  .brand-tag { letter-spacing: .22em; }
}

/* ---------- 14. Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .vein-line::after { display: none; }
}
