/* ============================================================
   万博会馆 · 共享样式 /assets/site.css
   深墨蓝底 · 电光青索引 · 暖琥珀版本 · 珊瑚红价格
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  --abyss: #0A1A2F;
  --panel: #10263F;
  --steel: #1B3A57;
  --mist: #E8F1F8;
  --cyan: #00E5D0;
  --amber: #FFB544;
  --coral: #FF5A5F;
  --fog: #7FB2D9;
  --teal: #0F766E;
  --sand: #F5EFE6;
  --sand-line: #DCD1C0;

  --fs-body: 17px;
  --fs-mono: 12px;

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

  --header-h: 76px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --radius: 3px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

html[data-font="sm"] { --fs-body: 15.5px; }
html[data-font="lg"] { --fs-body: 19.2px; }

html[data-contrast="high"] {
  --abyss: #000814;
  --panel: #08182A;
  --steel: #41739B;
  --mist: #FFFFFF;
  --fog: #C6E2F5;
  --cyan: #5BFFF0;
  --amber: #FFC873;
  --coral: #FF7F84;
  --sand: #FFFDF7;
  --sand-line: #C9BCA6;
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(1100px 560px at 80% -10%, rgba(0, 229, 208, 0.10), transparent 62%),
    radial-gradient(860px 480px at 4% 2%, rgba(255, 181, 68, 0.07), transparent 58%),
    var(--abyss);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.78;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--mist);
}

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.35em; }

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--mist); }

strong { font-weight: 650; }
img { max-width: 100%; height: auto; }

button { font: inherit; color: inherit; }

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

/* ---------- 3. Typography ---------- */
.display {
  font-size: clamp(34px, 5.2vw, 68px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

.section-title {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
}

.lead {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.7;
  color: #C6DEEE;
  margin: 0 0 1.2em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 0.9em;
}

.index-num {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-right: 0.6em;
}

.muted { color: var(--fog); }

.readout {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  display: inline-block;
}

.price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--coral);
  padding: 0 0.08em;
}

/* ---------- 4. Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

#main-content { padding-top: var(--header-h); }

.bleed-top { margin-top: calc(var(--header-h) * -1); }

.section { padding: clamp(40px, 6vw, 88px) 0; }

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.edges-slant {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%);
}

.rule {
  border: 0;
  border-top: 1px solid var(--steel);
  margin: 2rem 0;
}
.rule--amber { border-top-color: var(--amber); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.72em 1.2em;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.btn--primary {
  background: var(--cyan);
  color: #04121F;
}
.btn--primary:hover {
  background: #7DFBF0;
  color: #04121F;
}

.btn--ghost {
  background: transparent;
  border-color: var(--steel);
  color: var(--mist);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--sm {
  font-size: 0.8rem;
  padding: 0.5em 0.9em;
}

/* ---------- 6. Header ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 0.6rem 1rem;
  border-radius: 2px;
  background: var(--cyan);
  color: #04121F;
  font-weight: 650;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: #04121F; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  background: transparent;
  transition: background-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 26, 47, 0.78), rgba(10, 26, 47, 0));
  transition: opacity 0.22s var(--ease);
}

.site-header[data-scrolled="true"] {
  background: rgba(10, 26, 47, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--steel);
}
.site-header[data-scrolled="true"]::before { opacity: 0; }

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

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--mist);
  flex: none;
}
.brand:hover { color: var(--mist); }

.brand-mark {
  position: relative;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--cyan) 0 22%, var(--amber) 22% 33%, var(--steel) 33% 100%);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--abyss);
}

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

.brand-name {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-top: 2px;
  white-space: nowrap;
}

/* Navigation */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item { margin: 0; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0.1rem;
  color: var(--mist);
  font-size: 0.92rem;
  letter-spacing: 0.015em;
  text-decoration: none;
  opacity: 0.82;
  transition: opacity 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-link:hover { opacity: 1; color: var(--cyan); }

.nav-link[aria-current="page"] {
  opacity: 1;
  color: var(--cyan);
}
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: var(--cyan);
}

.nav-foot { display: none; }

.nav-foot-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fog);
  margin: 0 0 10px;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}

.header-cta { white-space: nowrap; }

.settings-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.46rem 0.75rem;
  border: 1px solid var(--steel);
  border-radius: 2px;
  background: rgba(16, 38, 63, 0.55);
  color: var(--mist);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.settings-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

.settings-toggle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 208, 0.18);
}

.settings-toggle-inline { width: 100%; justify-content: center; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.46rem 0.7rem;
  border: 1px solid var(--steel);
  border-radius: 2px;
  background: rgba(16, 38, 63, 0.55);
  color: var(--mist);
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 14px;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.nav-toggle-text { letter-spacing: 0.04em; }

/* ---------- 7. Settings overlay ---------- */
.settings-panel {
  position: absolute;
  top: calc(100% - 4px);
  right: var(--gutter);
  z-index: 90;
  width: min(308px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgba(232, 241, 248, 0.14);
  border-radius: var(--radius);
  background: rgba(16, 38, 63, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.settings-panel[hidden] { display: none; }

.settings-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fog);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--steel);
}
.settings-row:first-of-type { border-top: 0; }

.settings-label {
  font-size: 0.82rem;
  color: var(--mist);
}

.settings-group {
  display: inline-flex;
  border: 1px solid var(--steel);
  border-radius: 2px;
  overflow: hidden;
}

.settings-btn {
  padding: 0.3rem 0.6rem;
  border: 0;
  border-left: 1px solid var(--steel);
  background: transparent;
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.settings-btn:first-child { border-left: 0; }
.settings-btn:hover { color: var(--mist); }
.settings-btn[aria-pressed="true"] {
  background: var(--cyan);
  color: #04121F;
}

.settings-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fog);
}

.settings-switch-track {
  position: relative;
  display: block;
  width: 34px;
  height: 18px;
  border-radius: 9px;
  background: var(--steel);
  transition: background-color 0.22s var(--ease);
}

.settings-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mist);
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease);
}

.settings-switch[aria-pressed="true"] .settings-switch-track { background: var(--cyan); }
.settings-switch[aria-pressed="true"] .settings-switch-knob {
  transform: translateX(16px);
  background: #04121F;
}
.settings-switch[aria-pressed="true"] .settings-switch-text { color: var(--cyan); }

.settings-note {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--steel);
  font-size: 11px;
  line-height: 1.6;
  color: var(--fog);
}

/* ---------- 8. Scroll progress ---------- */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  background: transparent;
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: transform 0.1s linear;
}

/* ---------- 9. Footer ---------- */
.site-footer {
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--abyss);
  border-top: 1px solid var(--amber);
  color: var(--mist);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.15fr 0.9fr;
  gap: clamp(24px, 4vw, 48px);
}

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

.footer-brand {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: 0 0 0.5em;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--fog);
  margin: 0 0 1em;
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fog);
  margin: 0;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--amber);
  margin: 0 0 0.9em;
}

.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li { margin-bottom: 0.45em; }

.footer-links a {
  color: var(--mist);
  font-size: 0.9rem;
  text-decoration: none;
  opacity: 0.85;
  transition: color 0.18s var(--ease), opacity 0.18s var(--ease);
}
.footer-links a:hover {
  color: var(--cyan);
  opacity: 1;
}

.footer-contact-item {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  margin-bottom: 0.5em;
  font-size: 0.88rem;
  color: var(--mist);
}

.footer-contact-key {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fog);
  min-width: 2.6em;
}

.footer-note {
  margin: 0.9em 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--fog);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  max-width: var(--maxw);
  margin: clamp(32px, 5vw, 56px) auto 0;
  padding: 16px var(--gutter) 24px;
  border-top: 1px solid var(--steel);
}

.footer-copy {
  margin: 0;
  font-size: 12px;
  color: var(--fog);
}

.footer-motto {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

/* ---------- 10. Shared content components ---------- */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 32px);
}

.panel--sand {
  background: var(--sand);
  border-color: var(--sand-line);
  color: var(--abyss);
}
.panel--sand h2,
.panel--sand h3,
.panel--sand h4 { color: var(--abyss); }
.panel--sand .lead { color: #27506F; }
.panel--sand .muted { color: #4A6B85; }
.panel--sand a { color: var(--teal); }
.panel--sand a:hover { color: #0B5C56; }
.panel--sand .price { color: #C42C32; }
.panel--sand .eyebrow { color: #0B5C56; }

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin-bottom: 1rem;
}

.panel-body { min-width: 0; }

.stack { position: relative; }
.stack > .panel { margin-top: -24px; }
.stack > .panel:first-child { margin-top: 0; }
.stack > .panel:nth-child(1) { z-index: 1; }
.stack > .panel:nth-child(2) { z-index: 2; }
.stack > .panel:nth-child(3) { z-index: 3; }
.stack > .panel:nth-child(4) { z-index: 4; }
.stack > .panel:nth-child(5) { z-index: 5; }

.glass {
  background: rgba(232, 241, 248, 0.06);
  border: 1px solid rgba(232, 241, 248, 0.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
}

.abstract {
  margin: 0 0 1.4rem;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 3px solid var(--cyan);
  font-size: 0.98rem;
  line-height: 1.75;
  color: #C9DFEE;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.24em 0.6em;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  white-space: nowrap;
}
.chip--cyan { color: var(--cyan); }
.chip--amber { color: var(--amber); }
.chip--coral { color: var(--coral); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  line-height: 1.6;
}

.data-table th,
.data-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--steel);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--fog);
  white-space: nowrap;
}

.data-table tbody th { font-weight: 650; }
.data-table .readout { color: var(--mist); }
.data-table .price { color: var(--coral); }

.fold {
  margin: 0 0 10px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: rgba(232, 241, 248, 0.03);
}

.fold-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.fold-summary::-webkit-details-marker { display: none; }
.fold-summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  color: var(--cyan);
}
.fold[open] > .fold-summary::after { content: "−"; }

.fold-body {
  padding: 0 1rem 1rem;
  font-size: 0.95rem;
  color: var(--mist);
}

.breadcrumb { margin: 0 0 1.2rem; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fog);
}

.breadcrumb-item { display: flex; align-items: center; gap: 0.5em; margin: 0; }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; color: var(--steel); }
.breadcrumb-item a { color: var(--fog); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--cyan); }

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  font-size: 0.86rem;
}

.toc-title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fog);
}

.toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--steel);
}

.toc-list li { margin: 0; }

.toc-link {
  display: block;
  margin-left: -1px;
  padding: 0.34rem 0 0.34rem 14px;
  border-left: 2px solid transparent;
  color: var(--mist);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}
.toc-link:hover { opacity: 1; color: var(--cyan); }
.toc-link[aria-current="true"] {
  opacity: 1;
  color: var(--cyan);
  border-left-color: var(--cyan);
}

.to-top {
  position: fixed;
  right: clamp(12px, 3vw, 28px);
  bottom: 24px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--steel);
  border-radius: 50%;
  background: rgba(16, 38, 63, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--mist);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.to-top:hover { border-color: var(--cyan); transform: translateY(-2px); }
.to-top[hidden] { display: none; }

.to-top-arrow {
  width: 9px;
  height: 9px;
  border-left: 2px solid var(--cyan);
  border-top: 2px solid var(--cyan);
  transform: rotate(45deg) translate(1px, 1px);
}

/* Image containers — page stage drops <img> or SVG inside */
.image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--steel);
  border-radius: 2px;
  background:
    linear-gradient(140deg, #10263F 0%, #0A1A2F 58%, #0F766E 140%);
}

.image-frame--wide { aspect-ratio: 21 / 9; }
.image-frame--tall { aspect-ratio: 4 / 5; }

.image-frame > img,
.image-frame > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(0, 229, 208, 0.20) 50%, transparent 62%);
}

/* ---------- 11. Reveal protocol ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
[data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

/* ---------- 12. Motion & accessibility guards ---------- */
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  transition-duration: 0.001ms !important;
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
}
html[data-motion="off"] [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- 13. Responsive ---------- */
@media (max-width: 1120px) {
  .brand-badge { display: none; }
  .nav-list { gap: 14px; }
  .nav-link { font-size: 0.86rem; }
}

@media (max-width: 1023px) {
  .header-cta { display: none; }
  .settings-toggle-text { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    left: 12px;
    right: auto;
    bottom: 12px;
    top: auto;
    z-index: 85;
    display: block;
    width: min(348px, calc(100vw - 24px));
    max-height: min(72vh, 560px);
    overflow-y: auto;
    padding: 18px;
    border: 1px solid var(--steel);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    transform: translateY(calc(100% + 40px));
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.22s var(--ease),
                visibility 0.3s var(--ease);
  }

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

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

  .nav-item { border-bottom: 1px solid var(--steel); }
  .nav-item:last-child { border-bottom: 0; }

  .nav-link {
    display: block;
    padding: 0.82rem 0;
    font-size: 1rem;
    opacity: 0.9;
  }

  .nav-link[aria-current="page"]::after {
    display: block;
    left: auto;
    right: 0;
    bottom: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translateY(50%);
  }

  .nav-foot {
    display: block;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--steel);
  }

  .settings-panel {
    right: 12px;
    top: auto;
    bottom: auto;
    margin-top: 8px;
    position: fixed;
    top: calc(var(--header-h) - 6px);
    width: min(320px, calc(100vw - 24px));
  }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .brand-name { font-size: 0.96rem; }
  .brand-mark { width: 22px; height: 22px; }
  .brand-mark::after { inset: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table th:first-child,
  .data-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--panel);
  }
  .panel--sand .data-table th:first-child,
  .panel--sand .data-table td:first-child { background: var(--sand); }
  .to-top { width: 40px; height: 40px; bottom: 16px; }
}

@media (max-width: 400px) {
  .settings-toggle { padding: 0.42rem 0.55rem; }
  .nav-toggle-text { display: none; }
}
