/* Captain Charts website. Less UI, more chart. */
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #04080f;
  --bg: #060c16;
  --bg-2: #0a1422;
  --panel: #0d1929;
  --line: rgba(190, 215, 240, .12);
  --line-2: rgba(190, 215, 240, .22);
  --text: #eaf1f8;
  --muted: #93a4b8;
  --dim: #7d8fa4;
  --accent: #5fd4d6;
  --accent-ink: #04202a;
  --sand: #e3d3a8;
  --radius: 16px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(88px, 13vw, 190px);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); background: var(--bg); }
body { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--accent); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2 { font-weight: 560; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 7.4vw, 6.4rem); }
h2 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); }
h3 { font-size: 1.12rem; font-weight: 560; letter-spacing: -.01em; line-height: 1.3; }
p { text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.32rem); line-height: 1.5; color: #c6d3e1; max-width: 34em; }
.fine { font-size: .86rem; line-height: 1.55; color: var(--muted); max-width: 46em; }
.mono, .eyebrow, .num, .badge, .story-count, .hero-caption { font-family: var(--mono); }
.eyebrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.eyebrow a { text-decoration: none; }
.num { font-size: .74rem; letter-spacing: .12em; color: var(--dim); }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { width: 100%; max-width: 1680px; margin-inline: auto; padding-inline: clamp(12px, 3vw, 40px); }
section { padding-block: var(--section); position: relative; }
.section-head { margin-bottom: clamp(36px, 5vw, 72px); }
.section-head .lead { margin-top: 22px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 560; }
.skip:focus { top: 12px; }

/* ---------- buttons, badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; background: var(--text); color: var(--ink); font-weight: 560; font-size: .96rem; letter-spacing: -.005em; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--accent); }
.btn-ghost { background: rgba(6, 12, 22, .45); color: var(--text); border-color: var(--line-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(6, 12, 22, .7); border-color: var(--accent); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: .86rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 34px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; border: 1px solid currentColor; font-size: .62rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: var(--muted); }
.badge-prototype { color: var(--accent); }
.badge-soon { color: var(--sand); }
.badge-planned { color: var(--muted); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: var(--gutter); transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.is-solid, .doc-page .site-header { background: rgba(6, 12, 22, .82); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: .84rem; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.brand .mark { color: var(--accent); flex: none; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.site-nav a:not(.btn) { font-size: .9rem; color: #c6d3e1; text-decoration: none; padding: 8px 0; }
.site-nav a:not(.btn):hover { color: #fff; }
.menu-btn { display: none; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(6, 12, 22, .5); font-size: .86rem; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; padding: 0; display: flex; align-items: flex-end; overflow: hidden; background: #cfe3f3; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transform-origin: 62% 50%; }
.js .hero-media img { animation: drift 36s cubic-bezier(.3, 0, .2, 1) both; }
@keyframes drift { from { transform: scale(1.09); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(6, 12, 22, .78) 0, rgba(6, 12, 22, 0) 22%),
  linear-gradient(90deg, rgba(6, 12, 22, .97) 0, rgba(6, 12, 22, .9) 34%, rgba(6, 12, 22, .42) 57%, rgba(6, 12, 22, 0) 78%),
  linear-gradient(0deg, var(--bg) 0, rgba(6, 12, 22, 0) 30%); }
.hero-content { padding-block: clamp(120px, 20vh, 220px) clamp(96px, 16vh, 170px); }
.hero h1 { max-width: 9.5em; }
.hero .lead { margin-top: 26px; max-width: 25em; color: #dbe6f1; }
.hero-caption { position: absolute; right: var(--gutter); bottom: 26px; display: flex; align-items: center; gap: 10px; font-size: .7rem; letter-spacing: .04em; color: #b8c7d8; text-align: right; }

/* ---------- chart frames ---------- */
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: #cfe3f3; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .4); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
figcaption { margin-top: 14px; font-size: .9rem; color: var(--muted); }
figcaption b { color: var(--text); font-weight: 560; margin-right: 8px; }

/* ---------- scroll story ---------- */
.story { padding-bottom: clamp(40px, 6vw, 90px); }
.story-grid { max-width: 1680px; display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.story-stage { position: sticky; top: calc(var(--header-h) + 3vh); height: calc(100vh - var(--header-h) - 6vh); height: calc(100svh - var(--header-h) - 6vh); display: flex; align-items: center; }
.story-frame { width: 100%; height: 100%; max-height: 900px; }
.story-frame img { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .7s ease, transform 1.4s cubic-bezier(.2, .6, .2, 1); }
.story-frame img.is-active { opacity: 1; transform: none; }
.no-js .story-frame img:first-child { opacity: 1; transform: none; }
.story-count { position: absolute; left: 14px; bottom: 14px; padding: 7px 12px; border-radius: 999px; background: rgba(6, 12, 22, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: .7rem; letter-spacing: .08em; color: var(--muted); }
.story-count b { color: var(--text); font-weight: 500; margin-left: 8px; text-transform: uppercase; letter-spacing: .12em; }
.story-steps li { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding-left: 26px; border-left: 1px solid var(--line); opacity: .7; transition: opacity .4s, border-color .4s; }
.story-steps li:first-child { min-height: 80vh; }
.story-steps li:last-child { min-height: 80vh; }
.story-steps li.is-active { opacity: 1; border-left-color: var(--accent); }
.story-steps .num { color: #c6d3e1; }
.story-steps h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 560; letter-spacing: -.025em; line-height: 1.1; margin: 10px 0 12px; }
.story-steps p { color: #c6d3e1; max-width: 22em; }

/* ---------- split layouts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-top { align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split p + p { margin-top: 16px; }
.split .lead { margin-top: 22px; }
.split-top > div > .lead:first-child { margin-top: 0; }
.split-media .frame { aspect-ratio: 16 / 10; }
.depth .split { max-width: 1680px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); }
.facts { margin-top: 34px; display: grid; gap: 0; }
.facts > div { display: grid; grid-template-columns: 10.5em 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts dt { font-weight: 560; }
.facts dd { color: var(--muted); font-size: .95rem; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; }
.legend span { margin-right: 6px; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; }
.legend i { width: 22px; height: 12px; border-radius: 3px; background: var(--c); margin-left: 6px; }
.note { margin-top: clamp(36px, 5vw, 64px); display: flex; gap: 20px; align-items: flex-start; padding: 24px 26px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: rgba(13, 25, 41, .5); }
.note .badge { margin-top: 3px; }
.note p { margin-top: 6px; color: var(--muted); font-size: .96rem; max-width: 52em; }

/* ---------- live chart ---------- */
.explore { background: linear-gradient(180deg, var(--bg) 0, var(--bg-2) 30%, var(--bg-2) 70%, var(--bg) 100%); }
.demo-frame { height: min(78vh, 860px); min-height: 440px; }
.demo-poster, .demo-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-map { background: #e6ecef; color: #1d2a33; transition: opacity .6s; }
.demo:not([data-state="live"]) .demo-map { opacity: 0; pointer-events: none; }
.demo-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; text-align: center; background: radial-gradient(ellipse at center, rgba(6, 12, 22, .5) 0, rgba(6, 12, 22, .12) 60%); transition: opacity .5s; }
.demo-status { min-height: 1.4em; font-size: .86rem; color: #fff; text-shadow: 0 1px 8px rgba(6, 12, 22, .9); }
.demo-status:not(:empty) { padding: 8px 14px; border-radius: 999px; background: rgba(6, 12, 22, .78); text-shadow: none; }
.demo[data-state="loading"] [data-demo-load] { opacity: .6; pointer-events: none; }
.demo[data-state="live"] .demo-cover { opacity: 0; pointer-events: none; }
.demo[data-state="live"] .demo-poster { visibility: hidden; }
.demo[data-state="failed"] [data-demo-load] { display: none; }
.demo[data-state="failed"] .demo-cover { background: none; justify-content: flex-end; }
.demo-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; margin-top: 18px; padding-inline: 4px; }
.demo-bar .fine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: .88rem; color: #c6d3e1; transition: border-color .2s, color .2s, background-color .2s; }
.chips button:hover { border-color: var(--accent); color: #fff; }
.chips button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--ink); }
.demo:not([data-state="live"]) .demo-hint { display: none; }
.maplibregl-ctrl-group { border-radius: 10px !important; overflow: hidden; }
.maplibregl-ctrl-top-right { margin: 6px; }

/* ---------- gallery ---------- */
.gallery { padding-top: clamp(40px, 6vw, 90px); }
.gallery .section-head { position: relative; }
.gallery-nav { position: absolute; right: var(--gutter); bottom: 0; display: flex; gap: 8px; }
.gallery-nav button { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; transition: border-color .2s, background-color .2s; }
.gallery-nav button:hover { border-color: var(--accent); }
.gallery-track { display: flex; gap: clamp(14px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 6px var(--gutter) 22px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; overscroll-behavior-x: contain; }
.gallery-track figure { flex: none; width: min(72vw, 1180px); scroll-snap-align: start; }
.gallery-track .frame { aspect-ratio: 16 / 10; }

/* ---------- data ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 40px 0 28px; border-top: 1px solid var(--line); }
.stats > div { padding: 22px 0 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column-reverse; gap: 6px; }
.stats > div:nth-child(odd) { padding-right: 20px; }
.stats dd { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 520; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats dd.small { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-family: var(--mono); letter-spacing: -.03em; padding-top: .35em; }
.stats dt { font-size: .86rem; color: var(--muted); }

/* ---------- offline banner ---------- */
.offline { padding-block: clamp(20px, 4vw, 60px); }
.banner { min-height: min(86vh, 820px); display: flex; align-items: flex-end; }
.banner > img { position: absolute; inset: 0; }
.banner-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 12, 22, .95) 0, rgba(6, 12, 22, .82) 34%, rgba(6, 12, 22, .2) 66%, rgba(6, 12, 22, 0) 82%); }
.banner-text { position: relative; padding: clamp(28px, 6vw, 88px); max-width: 760px; }
.banner-text .lead { margin-top: 22px; }
.banner-text .fine { margin-top: 26px; }
.ticks { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.ticks li { position: relative; padding-left: 22px; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 1.5px; background: var(--accent); }
.ticks-col { flex-direction: column; gap: 12px; margin-top: 34px; }

/* ---------- details ---------- */
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px) clamp(16px, 2.4vw, 32px); }
.detail-grid .frame { aspect-ratio: 16 / 10; }
.list-title { margin: clamp(44px, 6vw, 80px) 0 18px; font-family: var(--mono); font-size: .74rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; color: #c6d3e1; }

/* ---------- cards ---------- */
.boat { background: linear-gradient(180deg, var(--bg) 0, var(--bg-2) 40%, var(--bg) 100%); }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.card h3 { margin: 16px 0 8px; font-size: 1.3rem; letter-spacing: -.02em; }
.card p { color: var(--muted); font-size: .98rem; }
.card-lg { padding: clamp(26px, 3.4vw, 44px); }
.card-lg h3 { margin-top: 0; font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.03em; line-height: 1.1; }
.card-lg p + p, .card-lg .tags { margin-top: 18px; }
.card-lg .mono { color: var(--accent); font-size: .84rem; letter-spacing: .06em; }
.bands { display: grid; grid-template-columns: 1fr 1.4fr 2.2fr; height: 10px; border-radius: 5px; overflow: hidden; margin-top: 22px; }
.bands i:nth-child(1) { background: #86bde6; } .bands i:nth-child(2) { background: #aed4f0; } .bands i:nth-child(3) { background: #e4f1fa; }

/* ---------- captain's log, regions ---------- */
.log .fine { margin-top: 18px; }
.region-list { border-top: 1px solid var(--line); margin-bottom: 26px; }
.region-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(16px, 2vw, 24px) 0; border-bottom: 1px solid var(--line); font-size: clamp(1.25rem, 2.6vw, 2rem); letter-spacing: -.025em; color: var(--dim); }
.region-list b { font-weight: 520; }
.region-list li span:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.region-list li.is-live { color: var(--muted); font-size: 1rem; letter-spacing: 0; }
.region-list li.is-live b { color: var(--text); font-size: clamp(1.25rem, 2.6vw, 2rem); letter-spacing: -.025em; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 88px) 0 40px; background: var(--ink); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px 32px; }
.footer-brand p { margin-top: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.site-footer h2 { font-family: var(--mono); font-size: .7rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.site-footer nav a { color: #c6d3e1; text-decoration: none; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.footer-legal { margin-top: clamp(40px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; color: var(--muted); font-size: .82rem; }
.footer-legal p:first-child { max-width: 62em; }

/* ---------- legal pages ---------- */
.doc { max-width: 820px; padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px)); padding-bottom: var(--section); }
.doc h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin-bottom: 28px; }
.doc h2 { font-size: 1.25rem; letter-spacing: -.015em; line-height: 1.3; margin: 40px 0 10px; }
.doc p + p { margin-top: 14px; }
.doc p { color: #c6d3e1; }
.doc .lead { color: var(--text); max-width: none; }
.doc .fine { margin-top: 40px; color: var(--muted); }
.doc .btn { margin-block: 10px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .story-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .split, .depth .split { grid-template-columns: 1fr; }
  .split-top { grid-template-columns: 1fr; }
  .depth .split-media { order: -1; }
  .depth .split-text .eyebrow { margin-top: 12px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .gallery-track figure { width: min(82vw, 900px); }
}

/* ---------- compact navigation ---------- */
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .js .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: rgba(6, 12, 22, .97); border-bottom: 1px solid var(--line); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .js .site-nav a:not(.btn) { padding: 15px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .js .site-nav .btn { margin-top: 20px; min-height: 48px; font-size: .96rem; }
  .no-js .site-nav a:not(.btn) { display: none; }
  .site-header.is-menu { background: rgba(6, 12, 22, .97); }

  /* story: chart pinned on top, text scrolls underneath */
  .story-grid { display: block; padding-inline: 0; }
  .story-stage { top: var(--header-h); height: auto; z-index: 2; padding: 10px 12px 14px; background: linear-gradient(180deg, var(--bg) 82%, rgba(6, 12, 22, 0)); }
  .story-frame { aspect-ratio: auto; height: 46vh; height: 46svh; }
  .story-steps { padding-inline: var(--gutter); }
  .story-steps li, .story-steps li:first-child, .story-steps li:last-child { min-height: 46vh; min-height: 46svh; justify-content: flex-start; padding-top: 28px; }
  .story-steps li:last-child { min-height: 34vh; }
}

/* ---------- phone ---------- */
@media (max-width: 700px) {
  body { font-size: 16px; }
  :root { --header-h: 60px; }
  .hero { align-items: flex-end; }
  .hero-media img { object-position: 50% 0; transform-origin: 50% 20%; height: 78%; }
  .hero-shade { background:
    linear-gradient(180deg, rgba(6, 12, 22, .9) 0, rgba(6, 12, 22, .55) 9%, rgba(6, 12, 22, 0) 22%),
    linear-gradient(0deg, var(--bg) 0, var(--bg) 30%, rgba(6, 12, 22, .88) 44%, rgba(6, 12, 22, 0) 70%); }
  .hero-content { padding-block: 0 84px; }
  .hero .actions .btn { flex: 1 1 auto; }
  .hero-caption { left: var(--gutter); right: var(--gutter); bottom: 20px; text-align: left; font-size: .64rem; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .note { flex-direction: column; gap: 12px; padding: 20px; }
  .demo-frame { height: 70vh; height: 70svh; min-height: 400px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -.5); padding: 2px calc(var(--gutter) * .5) 6px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips button { flex: none; height: 44px; }
  .gallery-nav { display: none; }
  .gallery-track figure { width: 88vw; }
  .gallery-track .frame, .detail-grid .frame, .split-media .frame { aspect-ratio: 4 / 3; }
  .banner { min-height: 0; flex-direction: column; align-items: stretch; background: var(--panel); }
  .banner > img { position: static; height: 44vh; }
  .banner-shade { display: none; }
  .banner-text { padding: 28px 22px 32px; }
  .detail-grid { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .stats dd { font-size: 2.3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .region-list li { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .story-frame img { transform: none; }
}
@media print { .site-header, .demo-cover, .gallery-nav { display: none; } body { background: #fff; color: #000; } }
