/* =========================================================
   贝博平台指南 / assets/site.css
   全站共享：reset、变量、中文排版、头部、页脚、基础组件
   ========================================================= */

/* 1. Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
table { width: 100%; border-collapse: collapse; }
main { display: block; }
summary::-webkit-details-marker { display: none; }

/* 2. Tokens ------------------------------------------------ */
:root {
  --ink-900: #061826;
  --ink-800: #0B243B;
  --ink-700: #0E2C46;
  --line: #163A5A;
  --mute: #6F8AA3;
  --fog: #E8F0F7;
  --fog-2: #C7D5E1;
  --cyan: #3DE1E8;
  --cyan-deep: #0E7C86;
  --gold: #F3C56B;
  --gold-deep: #B9853B;
  --paper: #F4F7FA;
  --paper-line: #C7D5E1;

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

  --shell: 1200px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-panel: 0 34px 64px -46px rgba(0, 0, 0, .95);
}

/* 3. Base -------------------------------------------------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(15px, .35vw + 13.6px, 16.5px);
  line-height: 1.75;
  color: var(--fog);
  background-color: var(--ink-900);
  background-image:
    repeating-linear-gradient(90deg, rgba(22, 58, 90, .34) 0 1px, transparent 1px 120px),
    radial-gradient(120% 72% at 92% -8%, rgba(61, 225, 232, .10), transparent 62%),
    radial-gradient(90% 62% at -10% 104%, rgba(243, 197, 107, .08), transparent 58%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}
.site-footer :focus-visible { outline-color: var(--gold); }
#main-content:focus { outline: none; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cyan);
  color: #03202A;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  transform: translateY(-220%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* 4. Layout ------------------------------------------------ */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}
.section { padding-block: clamp(46px, 6.5vw, 96px); }
.section--paper {
  background: var(--paper);
  color: #12293D;
  border-block: 1px solid var(--paper-line);
}
.section--paper .display-title,
.section--paper h2,
.section--paper h3 { color: #0B243B; }
.section--paper a { color: #0E7C86; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
  margin-bottom: clamp(22px, 4vw, 44px);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.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-12 { grid-column: span 12; }

.divider {
  height: 1px;
  border: 0;
  margin-block: clamp(24px, 4vw, 46px);
  background: linear-gradient(90deg, transparent, rgba(22, 58, 90, .95), transparent);
}

/* 5. Typography -------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: .8;
}
.eyebrow--gold { color: var(--gold); }

.display-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -.022em;
  color: var(--fog);
  margin-bottom: .55em;
}
.lede {
  max-width: 46ch;
  font-size: clamp(1rem, .5vw + .9rem, 1.125rem);
  line-height: 1.8;
  color: var(--fog-2);
}
.side-note {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--mute);
}

/* 6. Header ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate;
}
.header-strip {
  background: rgba(6, 24, 38, .95);
  border-bottom: 1px solid rgba(22, 58, 90, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-strip__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 66px;
  padding-block: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 1 auto;
}
.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(22, 58, 90, 1);
  background: linear-gradient(160deg, rgba(61, 225, 232, .92), rgba(14, 124, 134, .38) 55%, rgba(243, 197, 107, .88));
  box-shadow: 0 0 0 1px rgba(61, 225, 232, .14), 0 10px 22px -14px rgba(61, 225, 232, .9);
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 8px 7px;
  border-left: 2px solid rgba(6, 24, 38, .78);
  border-right: 2px solid rgba(6, 24, 38, .78);
}
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -.012em;
  color: var(--fog);
}
.brand__tagline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: .16em;
  color: var(--mute);
  white-space: nowrap;
}
.header-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(243, 197, 107, .38);
  background: rgba(243, 197, 107, .08);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  white-space: nowrap;
}
.meta-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(243, 197, 107, .16);
  animation: pulse-dot 3.6s var(--ease) infinite;
}
.meta-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.85); }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(22, 58, 90, 1);
  background: rgba(11, 36, 59, .92);
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease);
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: rgba(61, 225, 232, .55);
  color: var(--cyan);
  background: rgba(61, 225, 232, .10);
}
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background-color .2s var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle__text { line-height: 1; }

.header-nav {
  background: linear-gradient(180deg, rgba(11, 36, 59, .97), rgba(9, 30, 48, .97));
  border-bottom: 1px solid rgba(22, 58, 90, .9);
  box-shadow: 0 26px 40px -42px rgba(0, 0, 0, 1);
}
.header-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
}
.primary-nav { display: flex; align-items: center; min-width: 0; }
.nav-list { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--fog-2);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--ease);
}
.nav-link:hover { color: var(--fog); background: rgba(61, 225, 232, .07); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(61, 225, 232, .07);
}
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

.nav-side { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.nav-scale {
  width: 88px;
  height: 10px;
  background: repeating-linear-gradient(90deg, rgba(22, 58, 90, .95) 0 1px, transparent 1px 9px);
  opacity: .9;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(61, 225, 232, .45);
  background: rgba(61, 225, 232, .09);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.nav-cta::after { content: "→"; font-family: var(--font-mono); font-size: 12px; }
.nav-cta:hover {
  background: var(--cyan);
  color: #03202A;
  transform: translateY(-1px);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transition: width .12s linear;
}

/* 7. Footer ------------------------------------------------ */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  background: linear-gradient(180deg, rgba(11, 36, 59, .55), rgba(4, 16, 27, .99) 58%);
  border-top: 1px solid rgba(22, 58, 90, .9);
  color: var(--fog);
}
.footer-scale {
  height: 8px;
  background: repeating-linear-gradient(90deg, rgba(61, 225, 232, .55) 0 1px, transparent 1px 46px);
  opacity: .45;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr .9fr 1.2fr;
  gap: clamp(22px, 4vw, 56px);
  padding-block: clamp(34px, 5vw, 60px) clamp(22px, 3vw, 36px);
}
.footer-brand__mark {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(22, 58, 90, 1);
  background: linear-gradient(160deg, rgba(61, 225, 232, .9), rgba(14, 124, 134, .35) 55%, rgba(243, 197, 107, .88));
}
.footer-brand__mark::after {
  content: "";
  position: absolute;
  inset: 10px 9px;
  border-left: 2px solid rgba(6, 24, 38, .8);
  border-right: 2px solid rgba(6, 24, 38, .8);
}
.footer-brand__name {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -.012em;
  color: var(--fog);
}
.footer-brand__note {
  margin-top: 10px;
  max-width: 36ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--mute);
}
.footer-col { min-width: 0; }
.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer-list { display: grid; gap: 11px; }
.footer-link {
  width: fit-content;
  font-size: 14px;
  color: var(--fog-2);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.footer-link:hover {
  color: var(--gold);
  border-bottom-color: rgba(243, 197, 107, .6);
}
.footer-contact {
  display: grid;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
}
.footer-contact__value {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.7;
  color: var(--fog);
  overflow-wrap: anywhere;
}
.footer-note {
  margin-top: 16px;
  max-width: 38ch;
  font-size: 12px;
  line-height: 1.8;
  color: var(--mute);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 16px 22px;
  border-top: 1px solid rgba(22, 58, 90, .75);
  font-size: 12.5px;
  color: var(--mute);
}
.footer-copy { color: var(--fog-2); }
.footer-icp { font-family: var(--font-mono); letter-spacing: .06em; }
.footer-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(111, 138, 163, .95);
}

/* 8. Components -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--cyan {
  background: var(--cyan);
  color: #03202A;
  box-shadow: 0 18px 34px -24px rgba(61, 225, 232, .95);
}
.btn--cyan:hover { background: #6BEBF1; }
.btn--gold {
  background: var(--gold);
  color: #241703;
  box-shadow: 0 18px 34px -24px rgba(243, 197, 107, .9);
}
.btn--gold:hover { background: #F8D68F; }
.btn--ghost {
  border-color: rgba(199, 213, 225, .34);
  color: var(--fog);
  background: rgba(11, 36, 59, .5);
}
.btn--ghost:hover {
  border-color: rgba(61, 225, 232, .65);
  color: var(--cyan);
  background: rgba(61, 225, 232, .08);
}
.btn--sm { padding: 8px 16px; font-size: 13.5px; }

.panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-lg);
  border: 1px solid rgba(22, 58, 90, .95);
  background: linear-gradient(165deg, rgba(14, 44, 70, .92), rgba(8, 29, 47, .96));
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 225, 232, .6), rgba(243, 197, 107, .42), transparent);
}
.panel--gold::before {
  background: linear-gradient(90deg, transparent, rgba(243, 197, 107, .7), transparent);
}
.panel__label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.panel--gold .panel__label { color: var(--gold); }
.panel__title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.012em;
  color: var(--fog);
}
.panel__body {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--fog-2);
}

.step-rail { display: grid; gap: 12px; }
.step-rail__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid rgba(22, 58, 90, .85);
  background: rgba(11, 36, 59, .6);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(61, 225, 232, .5);
  background: rgba(61, 225, 232, .08);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
}
.step-rail__title {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--fog);
}
.step-rail__text { font-size: 14px; line-height: 1.75; color: var(--mute); }
.step-rail__item--gold .step-num {
  border-color: rgba(243, 197, 107, .55);
  background: rgba(243, 197, 107, .09);
  color: var(--gold);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(22, 58, 90, 1);
  background: rgba(11, 36, 59, .62);
  color: var(--fog-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.chip:hover { color: var(--cyan); border-color: rgba(61, 225, 232, .5); }
.chip[aria-pressed="true"],
.chip.is-active {
  background: rgba(61, 225, 232, .14);
  border-color: rgba(61, 225, 232, .6);
  color: var(--cyan);
}

.qa {
  border-radius: var(--r-md);
  border: 1px solid rgba(22, 58, 90, .9);
  background: rgba(11, 36, 59, .55);
  overflow: hidden;
}
.qa + .qa { margin-top: 10px; }
.qa__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--fog);
  cursor: pointer;
  list-style: none;
}
.qa__q::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1;
  color: var(--cyan);
}
.qa[open] .qa__q::after { content: "–"; color: var(--gold); }
.qa__a {
  padding: 0 18px 18px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--fog-2);
}

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: rgba(111, 138, 163, .6); }
.breadcrumbs__link { color: var(--fog-2); }
.breadcrumbs__link:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--cyan); }

.prose {
  max-width: 68ch;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--fog-2);
}
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  margin-top: 1.9em;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.012em;
  color: var(--fog);
}
.prose h3 {
  margin-top: 1.6em;
  font-family: var(--font-display);
  font-size: 1.075rem;
  font-weight: 600;
  color: var(--fog);
}
.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose ul, .prose ol { padding-left: 1.25em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }

.section--paper .prose { color: #1B3A52; }
.section--paper .prose h2,
.section--paper .prose h3 { color: #0B243B; }
.section--paper .prose a { color: #0E7C86; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(61, 225, 232, .35);
  background: rgba(61, 225, 232, .08);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.tag--gold {
  border-color: rgba(243, 197, 107, .4);
  background: rgba(243, 197, 107, .1);
  color: var(--gold);
}

.img-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  border: 1px solid rgba(22, 58, 90, .9);
  overflow: hidden;
  background-color: rgba(6, 24, 38, .9);
  background-image:
    linear-gradient(152deg, rgba(14, 124, 134, .3), rgba(6, 24, 38, .92) 62%),
    repeating-linear-gradient(90deg, rgba(22, 58, 90, .55) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(0deg, rgba(22, 58, 90, .4) 0 1px, transparent 1px 36px);
}
.img-frame > img,
.img-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-frame--wide { aspect-ratio: 21 / 9; }
.img-frame--tall { aspect-ratio: 4 / 5; }
.img-frame--square { aspect-ratio: 1 / 1; }
.img-frame__caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(22, 58, 90, .95);
  background: rgba(6, 24, 38, .78);
  color: var(--fog-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* 9. Motion & utility -------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(61, 225, 232, .5);
  background: rgba(8, 27, 44, .94);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s, background-color .18s var(--ease), color .18s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--cyan); color: #03202A; }

/* 10. Responsive ------------------------------------------- */
@media (max-width: 1000px) {
  .footer-main { grid-template-columns: 1.4fr 1fr; }
  .footer-col:last-child { grid-column: 1 / -1; }
}

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

  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding-block: 6px 18px;
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    background: rgba(8, 27, 44, .99);
    box-shadow: 0 40px 60px -44px rgba(0, 0, 0, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .site-header[data-open] .header-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .header-nav__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-height: 0;
  }
  .primary-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    width: 100%;
    padding: 14px 10px;
    border-radius: 0;
    border-bottom: 1px solid rgba(22, 58, 90, .55);
    font-size: 16px;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    padding-left: 18px;
    box-shadow: inset 2px 0 0 var(--cyan);
  }
  .nav-side { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 14px; }
  .nav-scale { width: 100%; }
  .nav-cta { justify-content: center; padding: 12px 16px; }

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

@media (max-width: 860px) {
  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .footer-col:last-child { grid-column: auto; }
  .footer-brand__note, .footer-note { max-width: none; }
  .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .brand__tagline { display: none; }
  .header-strip__inner { min-height: 58px; }
  .grid-12 { grid-template-columns: minmax(0, 1fr); }
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9, .span-12 { grid-column: 1 / -1; }
  .panel { border-radius: var(--r-md); }
  .btn { width: 100%; }
  .section-head { align-items: flex-start; }
}

@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; }
  .to-top { transform: none; }
}
