/* ==========================================================================
   博鱼指南 · 共享站点样式  /assets/site.css
   叙事：深海探索 + 数字指南 · 展览画册节奏 · 切角舱体形状母题
   ========================================================================== */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-stuck) + 20px);
}

body { min-height: 100vh); }
body { min-height: 100vh; }

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

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

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

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

dl, dd { margin: 0; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }

/* ---------- 2. Tokens ---------- */
:root {
  --deep: #062B4A;
  --trench: #0B3D66;
  --mist: #F7FBFF;
  --coral: #FF6B4A;
  --coral-soft: #FFB199;
  --mint: #3EF2C0;
  --ink: #071521;
  --slate: #6B8CA6;
  --gold: #FFD166;

  --font-display: "Archivo Black", "Noto 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, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --header-h-stuck: 62px;
  --shell: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --cut: 22px;
}

/* ---------- 3. 中文排版基底 ---------- */
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: .012em;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 5.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.62rem); letter-spacing: -.012em; line-height: 1.22; }
h4 { font-size: 1.06rem; letter-spacing: .01em; line-height: 1.4; }

p { text-wrap: pretty; }

strong { font-weight: 600; }

::selection { background: var(--coral); color: #fff; }

/* ---------- 4. 焦点与可访问性 ---------- */
:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 300;
  padding: 12px 22px;
  border-radius: 4px;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .1em;
  transform: translateY(-180%);
  transition: transform .26s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); outline-offset: 4px; }

/* ==========================================================================
   5. 头部
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  color: var(--mist);
  background: transparent;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 43, 74, .80) 0%, rgba(6, 43, 74, .34) 62%, rgba(6, 43, 74, 0) 100%);
  opacity: 1;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}

.site-header.is-stuck {
  background: var(--deep);
  box-shadow:
    inset 0 -1px 0 rgba(62, 242, 192, .22),
    0 22px 44px -34px rgba(7, 21, 33, .95);
}
.site-header.is-stuck::before { opacity: 0; }

.header-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  transition: padding .4s var(--ease);
}
.site-header.is-stuck .header-shell {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* --- 品牌 --- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: var(--mist);
}

.brand-mark {
  width: 34px; height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--coral) 0%, #FF8C5E 100%);
  clip-path: polygon(0 0, 100% 0, 100% 66%, 66% 100%, 0 100%);
  transition: width .35s var(--ease), height .35s var(--ease);
}
.site-header.is-stuck .brand-mark { width: 28px; height: 28px; }

.brand-mark-core {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(62, 242, 192, .3), 0 0 14px rgba(62, 242, 192, .85);
  animation: brand-pulse 3.6s ease-in-out infinite;
}

@keyframes brand-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.68); opacity: .62; }
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 1.06rem;
  letter-spacing: .07em;
  color: #fff;
}

.brand-signature {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .24em;
  color: var(--mint);
  opacity: .82;
  white-space: nowrap;
}

/* --- 导航 --- */
.primary-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1.3vw, 24px);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 2px;
  font-size: .9rem;
  font-weight: 400;
  letter-spacing: .045em;
  color: rgba(247, 251, 255, .76);
  transition: color .24s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible { color: #fff; }
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: #fff; }
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--mint);
}
.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 3px; right: -9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 9px var(--mint);
}

.nav-panel-cta { display: none; }

/* --- 头部行动区 --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

/* ==========================================================================
   6. 按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .11em;
  line-height: 1;
  border-radius: 0;
  cursor: pointer;
  transition: transform .24s var(--ease), background-color .24s var(--ease), color .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}

.btn::after {
  content: "";
  width: 7px; height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform .24s var(--ease);
}
.btn:hover::after,
.btn:focus-visible::after { transform: rotate(45deg) translate(2px, -3px); }

.btn-primary {
  background: var(--coral);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  box-shadow: 0 12px 28px -16px rgba(255, 107, 74, .95);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: #FF8158;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -16px rgba(255, 107, 74, 1);
}

.btn-ghost {
  background: transparent;
  color: var(--mist);
  border: 1px solid rgba(247, 251, 255, .44);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(247, 251, 255, .1);
  border-color: var(--mint);
  color: #fff;
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--deep);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
.btn-dark:hover,
.btn-dark:focus-visible {
  background: var(--trench);
  transform: translateY(-2px);
}

/* --- 移动导航按钮 --- */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(247, 251, 255, .34);
  color: #fff;
  cursor: pointer;
  transition: border-color .24s var(--ease), background-color .24s var(--ease);
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--mint);
  background: rgba(62, 242, 192, .12);
}

.nav-toggle-box {
  position: relative;
  display: block;
  width: 20px; height: 12px;
}

.nav-toggle-bar {
  position: absolute;
  left: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .32s var(--ease), top .32s var(--ease), opacity .2s linear;
}
.nav-toggle-bar:nth-child(1) { top: 0; }
.nav-toggle-bar:nth-child(2) { top: 10px; }

.site-header[data-open="true"] .nav-toggle-bar:nth-child(1) { top: 5px; transform: rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-bar:nth-child(2) { top: 5px; transform: rotate(-45deg); }

/* --- 滚动进度光带 --- */
.scroll-progress {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 3;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--coral) 0%, var(--gold) 55%, var(--mint) 100%);
  pointer-events: none;
}

/* --- 右侧下载悬浮胶囊 --- */
.dock-cta {
  position: fixed;
  right: clamp(14px, 2vw, 30px);
  bottom: clamp(16px, 3vh, 34px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .12em;
  line-height: 1;
  color: var(--deep);
  background: var(--mint);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  box-shadow: 0 18px 42px -20px rgba(62, 242, 192, .95);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.dock-cta::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--deep);
  box-shadow: 0 0 0 3px rgba(6, 43, 74, .18);
}
.dock-cta:hover,
.dock-cta:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -20px rgba(62, 242, 192, 1);
}

/* ==========================================================================
   7. 页脚
   ========================================================================== */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 8vw, 108px) var(--gutter) 34px;
  color: rgba(247, 251, 255, .82);
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(11, 61, 102, .98), transparent 58%),
    radial-gradient(70% 90% at 100% 6%, rgba(255, 107, 74, .18), transparent 62%),
    var(--deep);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(115deg, rgba(62, 242, 192, .1) 0 1px, transparent 1px 92px);
  opacity: .5;
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--coral) 0%, var(--gold) 42%, var(--mint) 100%);
  opacity: .92;
}

.footer-top,
.footer-contact,
.footer-base {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  padding-bottom: clamp(32px, 5vw, 58px);
  border-bottom: 1px solid rgba(247, 251, 255, .14);
}

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

.footer-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -.01em;
  color: #fff;
}
.footer-logo::after {
  content: "";
  display: block;
  width: 48px; height: 3px;
  margin-top: 14px;
  background: var(--coral);
  transition: width .3s var(--ease);
}
.footer-logo:hover::after,
.footer-logo:focus-visible::after { width: 88px; }

.footer-tagline {
  margin-top: 18px;
  font-size: .95rem;
  letter-spacing: .05em;
  color: var(--mint);
}

.footer-note {
  margin-top: 10px;
  max-width: 36ch;
  font-size: .92rem;
  line-height: 1.75;
  color: rgba(247, 251, 255, .6);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 48px);
}

.footer-nav-group { min-width: 0; }

.footer-nav-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--slate);
}

.footer-nav-list { display: grid; gap: 9px; }

.footer-nav-list a {
  display: inline-block;
  font-size: .95rem;
  color: rgba(247, 251, 255, .78);
  padding-left: 0;
  border-left: 2px solid transparent;
  transition: color .22s var(--ease), padding-left .22s var(--ease), border-color .22s var(--ease);
}
.footer-nav-list a:hover,
.footer-nav-list a:focus-visible {
  color: #fff;
  padding-left: 11px;
  border-left-color: var(--coral);
}

.footer-contact {
  padding: clamp(28px, 4vw, 50px) 0;
  border-bottom: 1px solid rgba(247, 251, 255, .14);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: clamp(18px, 3vw, 40px);
}

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

.contact-item dt {
  margin-bottom: 9px;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--mint);
}

.contact-item dd {
  font-size: .95rem;
  line-height: 1.6;
  color: rgba(247, 251, 255, .88);
  overflow-wrap: anywhere;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .05em;
  color: rgba(247, 251, 255, .52);
}

.footer-legal { color: rgba(247, 251, 255, .66); }

.footer-legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.footer-legal-links a {
  color: rgba(247, 251, 255, .72);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(62, 242, 192, .42);
  transition: color .22s var(--ease), border-color .22s var(--ease);
}
.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: var(--mint);
  border-bottom-color: var(--mint);
}

/* ==========================================================================
   8. 通用布局容器
   ========================================================================== */
main { display: block; }

#main-content { display: block; }

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

.section { padding-block: clamp(56px, 9vw, 122px); }

.section--mist {
  background: var(--mist);
  color: var(--ink);
}

.section--deep {
  background: var(--deep);
  color: var(--mist);
}

.section--trench {
  background: var(--trench);
  color: var(--mist);
}

.section--deep h1,
.section--deep h2,
.section--deep h3,
.section--deep h4,
.section--trench h1,
.section--trench h2,
.section--trench h3,
.section--trench h4 { color: #fff; }

.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid-7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid-8-4 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.grid-9-3 { grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.measure { max-width: 68ch; }

/* ==========================================================================
   9. 排版原子
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--coral);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: currentColor;
  flex: none;
}
.section--deep .eyebrow,
.section--trench .eyebrow { color: var(--mint); }

.chapter-no {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.04em;
  color: rgba(62, 242, 192, .3);
}
.section--deep .chapter-no,
.section--trench .chapter-no { color: rgba(62, 242, 192, .42); }

.lead {
  font-size: clamp(1.04rem, 1.5vw, 1.24rem);
  line-height: 1.74;
  color: var(--slate);
}
.section--deep .lead,
.section--trench .lead { color: rgba(247, 251, 255, .74); }

/* ==========================================================================
   10. 面板 / 标签 / 面包屑 / 正文
   ========================================================================== */
.panel {
  position: relative;
  padding: clamp(22px, 3vw, 38px);
  background: #fff;
  border: 1px solid rgba(6, 43, 74, .1);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

.panel--deep {
  background: var(--trench);
  color: var(--mist);
  border-color: rgba(62, 242, 192, .26);
}

.panel--glow {
  box-shadow: 0 34px 78px -54px rgba(6, 43, 74, .95);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--trench);
  background: rgba(62, 242, 192, .16);
  border: 1px solid rgba(62, 242, 192, .5);
  border-radius: 2px;
}

.tag--coral {
  color: #B23A1E;
  background: rgba(255, 107, 74, .14);
  border-color: rgba(255, 107, 74, .48);
}

.breadcrumbs {
  padding-block: 16px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--slate);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(107, 140, 166, .55);
}

.breadcrumbs a {
  color: var(--slate);
  transition: color .2s var(--ease);
}
.breadcrumbs a:hover,
.breadcrumbs a:focus-visible { color: var(--coral); }

.breadcrumbs [aria-current="page"] { color: var(--ink); }

.prose {
  max-width: 68ch;
  font-size: 1.03rem;
  line-height: 1.86;
  color: var(--ink);
}

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

.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }

.prose ul {
  list-style: none;
  padding-left: 0;
}
.prose ul li {
  position: relative;
  padding-left: 1.15em;
}
.prose ul li + li { margin-top: .5em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .74em;
  width: 6px; height: 6px;
  background: var(--coral);
  transform: rotate(45deg);
}

.prose ol {
  list-style: decimal;
  padding-left: 1.3em;
}
.prose ol li + li { margin-top: .5em; }

.prose a {
  color: var(--trench);
  border-bottom: 1px solid var(--coral-soft);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.prose a:hover,
.prose a:focus-visible {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

.prose blockquote {
  padding-left: 20px;
  border-left: 3px solid var(--mint);
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: .94rem;
}

.section--deep .prose,
.section--trench .prose { color: rgba(247, 251, 255, .86); }

/* ==========================================================================
   11. 图片容器
   ========================================================================== */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(135deg, rgba(62, 242, 192, .1) 0 1px, transparent 1px 26px),
    linear-gradient(142deg, var(--trench) 0%, var(--deep) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.media:hover img { transform: scale(1.035); }

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }

.media-caption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--slate);
}

/* ==========================================================================
   12. 显现动效
   ========================================================================== */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .72s var(--ease), transform .72s var(--ease);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   13. 响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-list { gap: 2px; }
  .nav-link { font-size: .84rem; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 85;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    margin-left: 0;
    padding: 104px var(--gutter) 48px;
    overflow-y: auto;
    background:
      radial-gradient(120% 80% at 100% 0%, rgba(62, 242, 192, .2), transparent 58%),
      radial-gradient(80% 70% at 0% 100%, rgba(255, 107, 74, .16), transparent 62%),
      linear-gradient(165deg, var(--deep) 0%, var(--trench) 100%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity .34s var(--ease), transform .34s var(--ease), visibility .34s linear;
  }

  .site-header[data-open="true"] .primary-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-header[data-open="true"] {
    background: transparent;
    box-shadow: none;
  }
  .site-header[data-open="true"]::before { opacity: 0; }

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

  .nav-item { border-bottom: 1px solid rgba(247, 251, 255, .13); }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 0;
    font-family: var(--font-display);
    font-size: clamp(1.32rem, 5.2vw, 1.7rem);
    letter-spacing: .02em;
    color: #fff;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { color: var(--mint); }
  .nav-link[aria-current="page"]::before {
    position: static;
    margin-left: auto;
    margin-right: 4px;
  }

  .nav-panel-cta {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 30px;
  }

  .header-cta { display: none; }
  .header-actions { margin-left: auto; }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 6vw, 44px);
  }

  .grid-7-5,
  .grid-8-4,
  .grid-9-3,
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .brand-mark { width: 30px; height: 30px; }

  .footer-nav { gap: 22px; }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .brand-signature { display: none; }
  .brand-name { font-size: .98rem; }

  .header-shell { padding-top: 14px; padding-bottom: 14px; }
  .site-header.is-stuck .header-shell { padding-top: 9px; padding-bottom: 9px; }

  .dock-cta {
    right: 14px;
    bottom: 14px;
    padding: 13px 18px;
    font-size: .72rem;
    letter-spacing: .08em;
  }

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

body.nav-open { overflow: hidden; }

@media (min-width: 961px) {
  body.nav-open { overflow: auto; }
}

/* ==========================================================================
   14. 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;
    scroll-behavior: auto !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .media:hover img { transform: none; }
  .dock-cta:hover { transform: none; }
  .btn:hover { transform: none; }
}
