/* ==========================================================================
   /assets/site.css — 亚洲城游戏娱 · 夜航仪表盘 Site Kit
   ========================================================================== */

:root {
  --ink-900: #06111F;
  --ink-800: #0B1E36;
  --ink-700: #102A47;
  --cyan: #36E2D0;
  --gold: #F6B94A;
  --sand: #C9C3B6;
  --mist: #7E97AD;
  --paper: #F2F7FB;
  --teal: #1AAE9F;
  --alert: #FF8A5C;

  --line: rgba(126, 151, 173, 0.2);
  --line-strong: rgba(126, 151, 173, 0.36);
  --cyan-soft: rgba(54, 226, 208, 0.1);
  --gold-soft: rgba(246, 185, 74, 0.1);

  --font-display: "Arial Narrow", "Helvetica Neue Condensed", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "JetBrains Mono", SFMono-Regular, ui-monospace, monospace;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --shell: 1280px;
  --gutter: clamp(18px, 4.2vw, 44px);
  --dur: 200ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-lift: 0 24px 48px -32px rgba(0, 0, 0, 0.95);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

ul[class],
ol[class] { list-style: none; padding-left: 0; }

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

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

main { display: block; }

body {
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(920px 540px at 88% -10%, rgba(54, 226, 208, 0.1), transparent 62%),
    radial-gradient(760px 480px at 2% 10%, rgba(246, 185, 74, 0.07), transparent 64%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(54, 226, 208, 0.32); color: #ffffff; }

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

/* ---------- 中文排版与标题 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.6rem); }
h4 { font-size: 1.05rem; letter-spacing: 0; }

p { text-wrap: pretty; }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---------- 容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow { max-width: 860px; }

/* ---------- 跳转链 ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: #04222a;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(6, 17, 31, 0.88);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 28px);
  padding-block: 13px;
  min-height: 72px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 2px;
  border-radius: var(--radius-md);
  color: var(--paper);
  text-decoration: none;
  min-width: 0;
  flex: none;
}

.brand__mark {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(54, 226, 208, 0.5);
  background:
    radial-gradient(circle at 32% 30%, rgba(54, 226, 208, 0.9), rgba(54, 226, 208, 0.12) 58%, transparent 72%);
  box-shadow: 0 0 22px -6px rgba(54, 226, 208, 0.55);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-28deg);
}

.brand:hover .brand__mark {
  border-color: rgba(54, 226, 208, 0.9);
  box-shadow: 0 0 28px -4px rgba(54, 226, 208, 0.7);
}

.brand__text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand__sub {
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.3em;
  color: var(--mist);
  white-space: nowrap;
}

/* 版本徽章 */
.version-badge {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(246, 185, 74, 0.45);
  background: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--gold);
  white-space: nowrap;
}

.version-badge__key { color: var(--gold); }
.version-badge__key::after {
  content: "/";
  margin: 0 5px;
  color: rgba(126, 151, 173, 0.7);
}
.version-badge__val { color: rgba(242, 247, 251, 0.82); }

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  flex: none;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(54, 226, 208, 0.42);
  background: var(--cyan-soft);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-toggle:hover {
  background: rgba(54, 226, 208, 0.18);
  border-color: rgba(54, 226, 208, 0.7);
  color: var(--paper);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 14px;
}

.nav-toggle__bars span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.site-header[data-open] .nav-toggle__bars span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.site-header[data-open] .nav-toggle__bars span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.site-nav__list > li { display: flex; }

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: rgba(242, 247, 251, 0.74);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.nav-pill:hover {
  color: var(--paper);
  background: var(--cyan-soft);
  border-color: rgba(54, 226, 208, 0.32);
}

.nav-pill[aria-current="page"] {
  color: var(--cyan);
  background: rgba(54, 226, 208, 0.13);
  border-color: rgba(54, 226, 208, 0.48);
}

.nav-pill[aria-current="page"]::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.site-nav__cta { flex: none; margin-left: 4px; }

/* 阅读进度 */
.scroll-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(126, 151, 173, 0.14);
  overflow: hidden;
  pointer-events: none;
}

.scroll-track__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transition: width 120ms linear;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: linear-gradient(135deg, #FFD27A, var(--gold));
  color: #231605;
  box-shadow: 0 10px 24px -14px rgba(246, 185, 74, 0.95);
}

.btn--gold:hover { box-shadow: 0 14px 28px -12px rgba(246, 185, 74, 0.75); }

.btn--cyan {
  background: var(--cyan);
  color: #04222a;
  box-shadow: 0 10px 24px -16px rgba(54, 226, 208, 0.9);
}

.btn--ghost {
  border-color: rgba(126, 151, 173, 0.45);
  background: rgba(11, 30, 54, 0.6);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: rgba(54, 226, 208, 0.6);
  background: var(--cyan-soft);
  color: var(--cyan);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 30, 54, 0) 0%, rgba(11, 30, 54, 0.86) 34%, #08182B 100%);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(54, 226, 208, 0.8), rgba(246, 185, 74, 0.7), transparent);
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 185, 74, 0.14), transparent 66%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(32px, 5vw, 60px);
}

.footer-beat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 0 0 clamp(26px, 4vw, 40px);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(54, 226, 208, 0.3);
  background: rgba(54, 226, 208, 0.07);
  color: rgba(242, 247, 251, 0.88);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.footer-beat::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.15fr) minmax(0, 0.95fr) minmax(240px, 0.9fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

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

.footer-brand__kicker {
  font-size: 11.5px;
  letter-spacing: 0.3em;
  line-height: 1.6;
  color: var(--mist);
}

.footer-brand__line {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.footer-note {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(201, 195, 182, 0.9);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.footer-top-btn {
  margin-top: 20px;
  padding: 9px 16px;
  font-size: 12.5px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  min-width: 0;
}

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

.footer-col__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1.5;
  color: var(--sand);
}

.footer-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  padding: 2px 0;
  color: rgba(242, 247, 251, 0.72);
  font-size: 14.5px;
  line-height: 1.6;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.footer-links a::before {
  content: "";
  width: 0;
  height: 1px;
  margin-right: 0;
  background: var(--cyan);
  transition: width var(--dur) var(--ease), margin-right var(--dur) var(--ease);
}

.footer-links a:hover { color: var(--cyan); }

.footer-links a:hover::before {
  width: 14px;
  margin-right: 8px;
}

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

.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.contact-list__key {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  line-height: 1.5;
  color: var(--mist);
}

.contact-list__val {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(242, 247, 251, 0.9);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-note {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(126, 151, 173, 0.95);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(30px, 5vw, 52px);
  padding-block: 20px 26px;
  border-top: 1px solid var(--line);
}

.footer-meta {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: rgba(126, 151, 173, 0.95);
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: rgba(126, 151, 173, 0.9);
}

/* ---------- 通用内容组件 ---------- */
.section { padding-block: clamp(40px, 6vw, 88px); }
.section--tight { padding-block: clamp(24px, 3vw, 40px); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  line-height: 1.6;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.lede {
  max-width: 60ch;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.8;
  color: rgba(242, 247, 251, 0.78);
}

.prose {
  max-width: 68ch;
  color: rgba(242, 247, 251, 0.8);
  font-size: 16.5px;
  line-height: 1.8;
}

.prose p { margin: 0 0 1.05em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2,
.prose h3 {
  margin: 1.6em 0 0.6em;
  color: var(--paper);
}
.prose h2:first-child,
.prose h3:first-child { margin-top: 0; }
.prose strong { color: var(--paper); font-weight: 700; }
.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(54, 226, 208, 0.45);
}
.prose a:hover { text-decoration-color: var(--cyan); }
.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4em; }

/* 面包屑 */
.breadcrumbs {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mist);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.04em;
}

.breadcrumbs li + li::before {
  content: "/";
  margin: 0 10px;
  color: rgba(126, 151, 173, 0.45);
}

.breadcrumbs a {
  color: var(--mist);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--paper); }

/* 网格 */
.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

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

.grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

/* 卡片 */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(11, 30, 54, 0.95), rgba(8, 24, 43, 0.92));
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(54, 226, 208, 0.45);
  box-shadow: var(--shadow-lift);
}

.card--gold { border-color: rgba(246, 185, 74, 0.28); }

.card--gold::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: linear-gradient(90deg, var(--gold), rgba(246, 185, 74, 0));
}

.card--gold:hover { border-color: rgba(246, 185, 74, 0.55); }

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(16, 42, 71, 0.5);
  color: rgba(242, 247, 251, 0.8);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  white-space: nowrap;
}

.tag--cyan {
  border-color: rgba(54, 226, 208, 0.45);
  background: var(--cyan-soft);
  color: var(--cyan);
}

.tag--gold {
  border-color: rgba(246, 185, 74, 0.45);
  background: var(--gold-soft);
  color: var(--gold);
}

/* 图片容器基础规则 */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: var(--ratio, 16 / 9);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 14% 8%, rgba(54, 226, 208, 0.22), transparent 55%),
    radial-gradient(100% 100% at 86% 92%, rgba(246, 185, 74, 0.18), transparent 60%),
    linear-gradient(150deg, var(--ink-800), var(--ink-900));
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(126, 151, 173, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 151, 173, 0.14) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
  pointer-events: none;
}

.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(126, 151, 173, 0.4);
  background: rgba(6, 17, 31, 0.72);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(242, 247, 251, 0.9);
}

/* 显现 */
[data-reveal="pending"] {
  opacity: 0;
  transform: translateY(16px);
}

[data-reveal="in"] {
  opacity: 1;
  transform: none;
  transition: opacity 460ms var(--ease), transform 460ms var(--ease);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .nav-pill { padding-inline: 11px; font-size: 13px; }
}

@media (max-width: 1079px) {
  .site-header__inner { flex-wrap: nowrap; }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px var(--gutter) 26px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: linear-gradient(180deg, var(--ink-800), #08192C);
    border-bottom: 1px solid rgba(54, 226, 208, 0.22);
    box-shadow: 0 30px 44px -34px rgba(0, 0, 0, 0.95);
  }

  .site-nav[data-open],
  .site-header[data-open] .site-nav { display: flex; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 2px;
  }

  .nav-pill {
    justify-content: space-between;
    padding: 13px 16px;
    border-radius: var(--radius-md);
    border-color: rgba(126, 151, 173, 0.16);
    font-size: 15px;
  }

  .site-nav__cta {
    width: 100%;
    margin-left: 0;
    margin-top: 4px;
  }
}

@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .grid--12 { grid-template-columns: 1fr; }
  .brand__sub { letter-spacing: 0.24em; }
  .footer-cols { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 420px) {
  .brand__sub { display: none; }
  .brand__name { font-size: 15px; }
  .brand__mark { width: 34px; height: 34px; }
  .version-badge { padding: 2px 8px; font-size: 10px; }
  .nav-toggle { padding: 8px 13px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal="pending"],
  [data-reveal="in"] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .card:hover { transform: none; }
}
