/* Edge MarTech Demo — prototype styles
   Layout: full-bleed map hero, then instrument-panel sections on a 1180px column,
   with the inspector docked to the bottom edge like a devtools drawer. */

/* ---------- fonts: IBM Plex (SIL Open Font License), Latin subset, served from this origin ---------- */
@font-face { font-family: "IBM Plex Sans Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-sans-condensed-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Arial Bold scaled to the measured width of Plex Sans Condensed Bold: if the real face is late, the headline keeps its line breaks when it arrives. */
@font-face { font-family: "Plex Condensed Fallback"; font-weight: 700; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); size-adjust: 89.2%; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400 600; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-sans-var.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-mono-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-mono-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-mono-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ground: #F1EFE8;
  --surface: #FBFAF6;
  --raise: #FFFFFF;
  --ink: #131E28;
  --muted: #55626E;
  --line: #D8D4C8;
  --accent: #0A56E8;
  --on-accent: #FFFFFF;
  --pin: #DD3B24;
  --good: #0B8457;
  --warn: #A8650A;
  --bad: #C2332B;
  --glass: rgba(251, 250, 246, .94);
  --space: #C9DCEE;
  --shadow: 0 1px 2px rgba(19, 30, 40, .06), 0 12px 32px -12px rgba(19, 30, 40, .22);
  /* headings: IBM Plex Sans Condensed, with its weight, tracking, size correction and line height */
  --font-display: "IBM Plex Sans Condensed", "Plex Condensed Fallback", "Helvetica Neue", sans-serif;
  --d-weight: 700; --d-track: -.012em; --d-scale: 1.1; --d-lh: 1.05;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --col: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --bar-h: 48px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0A0F15; --surface: #101821; --raise: #16212D; --ink: #E9EEF3; --muted: #94A3B1;
    --line: #243242; --accent: #6AA5FF; --on-accent: #06101C; --pin: #FF6B4A;
    --good: #3FD08E; --warn: #F0B454; --bad: #FF7A6E; --glass: rgba(16, 24, 33, .93); --space: #05090F;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0A0F15; --surface: #101821; --raise: #16212D; --ink: #E9EEF3; --muted: #94A3B1;
  --line: #243242; --accent: #6AA5FF; --on-accent: #06101C; --pin: #FF6B4A;
  --good: #3FD08E; --warn: #F0B454; --bad: #FF7A6E; --glass: rgba(16, 24, 33, .93); --space: #05090F;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 16px/1.55 var(--font-body); padding-bottom: var(--bar-h);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--d-weight); text-wrap: balance; letter-spacing: var(--d-track); }
a { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
code, pre, .mono { font-family: var(--font-mono); }
.wrap { max-width: var(--col); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--raise); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- shared bits ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px; font: 500 11px/1 var(--font-mono);
  padding: 4px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.live { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, var(--line)); }
.tag.mock { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--raise); font-weight: 500;
  transition: transform .2s, border-color .2s, background .2s;
}
.btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { border-color: var(--accent); filter: brightness(1.08); }
.btn svg { width: 16px; height: 16px; flex: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; will-change: transform; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 40; background: var(--glass);
  border-bottom: 1px solid var(--line);
}
.bar-in { display: flex; align-items: center; gap: 20px; min-height: 56px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand b { font: var(--d-weight) 18px var(--font-display); letter-spacing: var(--d-track); }
.brand span { font: 500 12px var(--font-mono); color: var(--muted); }
.nav { display: flex; gap: 2px; margin-left: auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav a { padding: 8px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.bar-tools { display: flex; align-items: center; gap: 8px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--raise); font: 500 12px var(--font-mono); white-space: nowrap;
}
.chip-btn b { color: var(--accent); }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--raise); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .moon { display: block; }
:root[data-theme="dark"] .icon-btn .sun { display: none; }

/* ---------- black box: one pinned stage, driven by --p (0 closed, 1 open) ---------- */
.bb, .bb-dock { --p: 1; --s: 250px; --h: 46px; }
.bb { height: 300vh; border-top: 1px solid var(--line); }
.bb-pin { position: sticky; top: 57px; height: calc(100svh - 57px - var(--bar-h)); overflow: hidden; }
.bb-grid { height: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.bb-copy { display: grid; gap: 14px; max-width: 54ch; }
.bb-copy h2 { font-size: calc(clamp(28px, 3.6vw, 42px) * var(--d-scale)); line-height: var(--d-lh); }
.bb-quote { margin: 0; padding-left: 14px; border-left: 2px solid var(--accent); display: grid; gap: 6px; }
.bb-quote p { font-size: 15px; line-height: 1.5; }
.bb-quote cite { font: 500 11px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-style: normal; }
.bb-lead { color: var(--muted); }
.bb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
/* each layer switches on in turn; --on runs 0 to 1 over a short stretch of the scroll, later for each next layer */
.bb-list li, .bb-slab { --on: clamp(0, calc((var(--p) - (.36 + var(--i) * .11)) * 14), 1); }
.bb-list li { opacity: calc(.28 + .72 * var(--on)); transform: translateX(calc((1 - var(--on)) * -10px)); }
.bb-list a { display: grid; grid-template-columns: 28px 96px minmax(0, 1fr); align-items: baseline; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; }
.bb-list a:hover { border-color: var(--accent); }
.bb-list .n { font: 500 11px var(--font-mono); color: var(--accent); }
.bb-list b { font: var(--d-weight) 16px var(--font-display); letter-spacing: var(--d-track); }
.bb-list .d { color: var(--muted); font-size: 14px; }

.bb-stage {
  height: 100%; min-height: 380px; display: grid; place-items: center; perspective: 1900px;
  /* --hand moves the whole stage, already drawn, to where the docked copy waits; the 3D view inside does not change */
  transform: translate3d(calc(var(--hand, 0) * var(--dock-dx, 0px)), calc(var(--hand, 0) * var(--dock-dy, 0px)), 0) scale(calc(1 - var(--hand, 0) * (1 - var(--dock-k, 1))));
}
.bb.is-docked .bb-stage { visibility: hidden; }
.bb-box {
  --open: clamp(0, calc((var(--p) - .06) * 3.6), 1);
  position: relative; width: var(--s); height: var(--h); transform-style: preserve-3d;
  transform: scale(var(--bb-scale, 1)) rotateX(-22deg) rotateY(calc(-24deg - var(--p) * 10deg));
}
.bb-slab, .bb-shell { position: absolute; transform-style: preserve-3d; }
.bb-slab { inset: 0; transform: translate3d(calc(var(--on) * 16px), calc((var(--i) - 2) * (var(--h) + var(--open) * 26px)), 0); }
.f { position: absolute; inset: 0; display: block; font-style: normal; backface-visibility: hidden; }
.f.front { transform: translateZ(calc(var(--s) / 2)); }
.f.right { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.f.top { top: calc((var(--h) - var(--s)) / 2); bottom: auto; height: var(--s); transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); }
.bb-slab .f {
  --fill: color-mix(in srgb, var(--accent) calc(var(--on) * 100%), var(--raise));
  background: var(--fill); border: 1px solid color-mix(in srgb, var(--accent) calc(var(--on) * 100%), var(--line));
  color: color-mix(in srgb, var(--on-accent) calc(var(--on) * 100%), var(--ink));
}
.bb-slab .f.right { background: color-mix(in srgb, var(--fill) 72%, #000); }
.bb-slab .f.top {
  background-color: color-mix(in srgb, var(--fill) 80%, #fff);
  background-image: linear-gradient(color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
}
.bb-slab .f.front { display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.bb-slab .f.front span { font: 500 12px var(--font-mono); opacity: calc(.75 * (1 - var(--hand, 0))); }
.bb-slab .f.front b { font: var(--d-weight) 20px var(--font-display); letter-spacing: var(--d-track); opacity: calc(1 - var(--hand, 0)); }
/* the sealed box: slightly larger than the five slabs it hides; the lid lifts and the walls move out as it fades */
.bb-shell { --sh: calc(var(--h) * 5 + 2px); --ss: calc(var(--s) + 2px); left: -1px; top: calc((var(--h) - var(--sh)) / 2); width: var(--ss); height: var(--sh); opacity: calc(1 - var(--open)); pointer-events: none; }
.bb-shell .f { background: #131b24; border: 1px solid rgba(255, 255, 255, .16); color: #8a98a6; }
.bb-shell .f.front { transform: translateZ(calc(var(--ss) / 2 + var(--open) * 46px)); display: grid; place-items: center; align-content: center; gap: 2px; }
.bb-shell .f.front b { font: var(--d-weight) 72px/1 var(--font-display); }
.bb-shell .f.front span { font: 500 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.bb-shell .f.right { background: #0b1118; transform: rotateY(90deg) translateZ(calc(var(--ss) / 2 + var(--open) * 46px)); }
.bb-shell .f.top { background: #1d2833; top: calc((var(--sh) - var(--ss)) / 2); height: var(--ss); transform: rotateX(90deg) translateZ(calc(var(--sh) / 2 + var(--open) * 130px)); }
.bb-floor {
  position: absolute; left: 50%; top: 50%; width: calc(var(--s) * 1.9); height: calc(var(--s) * 1.9); margin: calc(var(--s) * -.95) 0 0 calc(var(--s) * -.95);
  background: radial-gradient(closest-side, rgba(0, 0, 0, .3), transparent); opacity: calc(.9 - var(--open) * .35);
  transform: translateY(calc(var(--h) * 2.5 + var(--open) * 60px + 26px)) rotateX(90deg);
}

/* the docked copy in the right margin: a point at the dock position, with the box drawn around it at a fraction of full size */
/* --hand: 1 keeps the layer names faded out here, as they are on the big box when it arrives; the caption names the layer instead */
.bb-dock { --hand: 1; position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 5; pointer-events: none; visibility: hidden; }
.bb-dock.is-on { visibility: visible; }
.bb-dock-stage { position: absolute; left: -300px; top: -300px; width: 600px; height: 600px; display: grid; place-items: center; perspective: 1900px; transform: scale(var(--dock-k, .3)); }
.bb-dock .bb-shell { display: none; }
.bb-dock .bb-slab { --on: 0; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.bb-dock .bb-slab.is-cur { --on: 1; }
.bb-dock .bb-slab .f { transition: background-color .5s ease, border-color .5s ease; }
.bb-dock[data-layer="done"] .bb-box { --open: .12; }
.bb-dock-cap {
  position: absolute; left: -70px; width: 140px; top: calc(var(--dock-k, .3) * 225px + 10px); margin: 0; text-align: center;
  display: grid; gap: 2px; justify-items: center; opacity: 0; transition: opacity .25s ease;
}
.bb-dock.is-on .bb-dock-cap { opacity: 1; }
.bb-dock.is-on .bb-dock-cap.is-out { opacity: 0; }
.bb-dock-cap span { font: 500 11px var(--font-mono); color: var(--accent); }
.bb-dock-cap b { font: var(--d-weight) 15px var(--font-display); letter-spacing: var(--d-track); }

/* ---------- hero / map ---------- */
.hero {
  position: relative; height: min(86vh, 820px); min-height: 580px; overflow: hidden; isolation: isolate;
  /* The browser restores scroll on reload by pinning to an element; pinned to a moving part of the map, a page left at the top came back 23px down. */
  overflow-anchor: none;
  /* range rings behind the globe, centred where the globe sits */
  background: repeating-radial-gradient(circle at 50% 54%, transparent 0 22px, color-mix(in srgb, var(--ink) 8%, transparent) 22px 23px) var(--space);
}
#mapgl { position: absolute; inset: 0; opacity: 0; transform: scale(.94); transition: opacity 1.1s ease, transform 1.6s cubic-bezier(.16, .8, .24, 1); }
#mapgl.is-in { opacity: 1; transform: none; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); }
.map-fallback p { background: var(--glass); padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); }
.hero-copy {
  position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(20px, 5vh, 48px); width: min(540px, calc(100% - 2 * var(--gutter)));
  padding: 24px 26px; background: var(--glass); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
}
.eyebrow { font: 500 12px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* three lines reserved, so the live numbers and the A/B variants never change the card's height */
.hero-title { font-size: calc(clamp(30px, 4.2vw, 46px) * var(--d-scale)); line-height: var(--d-lh); font-weight: var(--d-weight); min-height: calc(3em * var(--d-lh)); }
/* variant A sits on two lines on wide screens; its live numbers can only get shorter than the placeholders */
@media (min-width: 981px) { html[data-variant="a"] .hero-title { min-height: calc(2em * var(--d-lh)); } }
.hero-title .num { color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; display: inline-block; transition: opacity .4s ease, transform .4s cubic-bezier(.2, .7, .2, 1), filter .4s ease; }
.hero-title .num.is-out { opacity: 0; transform: translateY(.16em); filter: blur(5px); transition-duration: .2s; }
.v { display: none; }
html[data-variant="a"] .v-a, html[data-variant="b"] .v-b { display: inline; }
.hero-sub { color: var(--muted); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.origin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding-top: 4px; border-top: 1px solid var(--line); margin-top: 2px; padding-top: 14px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--raise); }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; min-height: 32px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }

.hud {
  position: absolute; z-index: 3; right: var(--gutter); top: 20px; width: 264px; padding: 14px 16px 12px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow);
  font: 12px/1.3 var(--font-mono);
}
.hud-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.hud dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; font-variant-numeric: tabular-nums; }
.hud dt { color: var(--muted); }
.hud dd { margin: 0; text-align: right; }
.poi-list { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.poi-list button {
  display: flex; justify-content: space-between; gap: 8px; align-items: center; text-align: left; min-height: 34px;
  border: 0; background: none; padding: 6px 8px; margin-inline: -8px; border-radius: 8px; font: 500 13px var(--font-body);
}
.poi-list button:hover, .poi-list button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.poi-list small { font: 11px var(--font-mono); color: var(--muted); }

/* markers */
/* map markers are positioned by the map library (position: absolute); do not override it here */
.you { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.you::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: var(--accent); opacity: .4; z-index: -1; animation: pulse 2s ease-out infinite; }
.you.small { width: 12px; height: 12px; border-width: 2px; opacity: .85; }
.you.small::after { animation: none; opacity: 0; }
@keyframes pulse { to { transform: scale(3.8); opacity: 0; } }
.pin { width: 34px; height: 46px; pointer-events: none; }
.pin-body { position: absolute; inset: 0; opacity: 0; transform-origin: 50% 100%; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.pin-body svg { display: block; width: 34px; height: 46px; }
.pin-ring { position: absolute; left: 50%; bottom: -10px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; border: 2px solid var(--pin); opacity: 0; }
.pin-label {
  position: absolute; left: calc(100% + 8px); top: 4px; white-space: nowrap; font: 600 13px var(--font-body); color: var(--ink);
  background: var(--glass); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); opacity: 0; transition: opacity .4s .7s;
}
.pin.is-down .pin-body { animation: pin-drop .9s linear forwards; will-change: transform, opacity; }
.pin.is-down .pin-ring { animation: ring 2.6s ease-out .9s infinite; }
.pin.is-down .pin-label { opacity: 1; }
/* a fall that speeds up, a squash on impact, one small rebound; each stage has its own easing */
@keyframes pin-drop {
  0% { opacity: 0; transform: translateY(-150px) scale(.92); animation-timing-function: cubic-bezier(.5, 0, .9, .5); }
  14% { opacity: 1; }
  50% { opacity: 1; transform: translateY(0) scale(1.1, .86); animation-timing-function: cubic-bezier(.15, .6, .4, 1); }
  70% { transform: translateY(-11px) scale(.97, 1.04); animation-timing-function: cubic-bezier(.5, 0, .85, .55); }
  86% { transform: translateY(0) scale(1.03, .97); animation-timing-function: ease-out; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ring { 0% { opacity: .9; transform: rotateX(62deg) scale(.5); } 100% { opacity: 0; transform: rotateX(62deg) scale(5); } }
.poi { display: none; align-items: center; gap: 6px; border: 0; background: none; padding: 4px; }
.show-pois .poi { display: flex; }
.poi i { width: 10px; height: 10px; border-radius: 50%; background: var(--pin); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.poi span { font: 600 12px var(--font-body); color: var(--ink); background: var(--glass); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); }
.maplibregl-ctrl-attrib { font: 11px var(--font-body); }

/* ---------- sections ---------- */
.sec { padding: clamp(56px, 9vw, 108px) 0; border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 12px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { font-size: calc(clamp(28px, 3.6vw, 42px) * var(--d-scale)); line-height: var(--d-lh); font-weight: var(--d-weight); }
.sec-head p { color: var(--muted); max-width: 65ch; }
.pre { opacity: 0; transform: translateY(24px) rotateX(8deg); transform-origin: 50% 0; }
.pre.in { opacity: 1; transform: none; transition: opacity .7s ease-out, transform .8s cubic-bezier(.2, .8, .2, 1); }

/* proof */
.proof { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.panel { padding: 22px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.panel-head h3 { font-size: 18px; }
.dials { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dial { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 13px; }
.dial svg { width: 100%; max-width: 104px; height: auto; display: block; }
.dial .track { fill: color-mix(in srgb, var(--good) 12%, transparent); stroke: none; }
.dial .ring { fill: none; stroke: var(--good); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 289; transform: rotate(-90deg); transform-origin: 60px 60px; transition: stroke-dashoffset 1.6s cubic-bezier(.2, .8, .2, 1); }
.dial.in .ring { stroke-dashoffset: 0; }
.dial text { font: 700 34px var(--font-mono); fill: var(--good); text-anchor: middle; }
.panel-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.vitals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.vital { padding: 14px; border-radius: 12px; background: var(--raise); border: 1px solid var(--line); display: grid; gap: 6px; min-width: 0; }
.vital .k { font: 500 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.vital .val { font: 600 22px/1.1 var(--font-mono); font-variant-numeric: tabular-nums; }
.vital .meter { height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.vital .meter i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--muted); transition: width .8s ease-out; }
.vital small { font-size: 12px; color: var(--muted); }
.vital[data-rating="good"] .val { color: var(--good); } .vital[data-rating="good"] .meter i { background: var(--good); }
.vital[data-rating="warn"] .val { color: var(--warn); } .vital[data-rating="warn"] .meter i { background: var(--warn); }
.vital[data-rating="bad"] .val { color: var(--bad); } .vital[data-rating="bad"] .meter i { background: var(--bad); }

/* architecture */
.arch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.stage { perspective: 1500px; height: 520px; display: grid; place-items: center; overflow: hidden; }
.stack { position: relative; width: min(300px, 62vw); aspect-ratio: 3 / 2; transform-style: preserve-3d; transform: translateY(120px) rotateX(57deg) rotateZ(-40deg); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.stage:hover .stack { transform: translateY(120px) rotateX(54deg) rotateZ(-34deg); }
.plate {
  position: absolute; inset: 0; border-radius: 16px; border: 1px solid var(--line); background-color: var(--raise);
  background-image: linear-gradient(color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px);
  background-size: 24px 24px; transform: translateZ(calc(var(--i) * 66px)); opacity: .94;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), background-color .3s, color .3s, box-shadow .3s;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 12px 14px; box-shadow: -10px 12px 24px -14px rgba(0, 0, 0, .35);
}
.plate b { font: var(--d-weight) 15px var(--font-display); }
.plate span { font: 11px var(--font-mono); color: var(--muted); }
.plate.is-active { background-color: var(--accent); color: var(--on-accent); transform: translateZ(calc(var(--i) * 66px + 26px)); box-shadow: -18px 22px 34px -12px color-mix(in srgb, var(--accent) 55%, transparent); }
.plate.is-active span { color: inherit; opacity: .85; }
.packet { position: absolute; left: 62%; top: 30%; width: 16px; height: 16px; border-radius: 50%; background: var(--pin); box-shadow: 0 0 0 5px color-mix(in srgb, var(--pin) 30%, transparent); transform: translateZ(calc(var(--z, 4) * 66px + 34px)); transition: transform .6s cubic-bezier(.4, 0, .2, 1), opacity .3s; opacity: 0; }
.packet.on { opacity: 1; }
.flows { display: grid; gap: 18px; }
.flow-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; transition: background .3s, border-color .3s; }
.steps li::before { content: counter(s); font: 500 12px var(--font-mono); color: var(--muted); }
.steps li b { font-weight: 600; }
.steps li p { color: var(--muted); font-size: 14px; }
.steps li .where { font: 11px var(--font-mono); color: var(--muted); white-space: nowrap; }
.steps li.is-active { background: var(--surface); border-color: var(--accent); }
.steps li.is-active::before { color: var(--accent); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td code { font-size: 12.5px; }
.arch-table { margin-top: 36px; }

/* content */
.content { display: grid; grid-template-columns: minmax(0, 5fr) 56px minmax(0, 7fr); gap: 0; align-items: stretch; }
.pane-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; font: 500 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); min-height: 36px; }
.doc { background: var(--raise); border: 1px solid var(--line); border-radius: 6px; padding: 26px 24px; box-shadow: var(--shadow); font-size: 14px; }
.doc h3 { font: 600 20px var(--font-body); letter-spacing: 0; margin-bottom: 14px; }
.doc table { min-width: 0; font-size: 13px; border: 1px solid var(--line); }
.doc th { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink); font: 600 13px var(--font-body); text-transform: none; letter-spacing: 0; }
.doc td, .doc th { border: 1px solid var(--line); padding: 8px 10px; }
.doc tr[data-item] { transition: background .25s; cursor: default; }
.doc tr.is-linked { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.pipe { display: grid; place-items: center; color: var(--muted); }
.pipe svg { width: 40px; height: 40px; }
.flip { perspective: 1600px; }
.flip-in { position: relative; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.flip.is-flipped .flip-in { transform: rotateY(180deg); }
.flip-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-back { position: absolute; inset: 0; transform: rotateY(180deg); overflow: auto; margin: 0; padding: 20px; font-size: 12.5px; line-height: 1.6; background: var(--raise); border: 1px solid var(--line); border-radius: 16px; white-space: pre; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.acard { padding: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 230px; transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .25s, box-shadow .25s; }
.acard.is-linked { border-color: var(--accent); box-shadow: var(--shadow); transform: perspective(800px) translateZ(26px) rotateX(3deg); }
.acard svg { width: 30px; height: 30px; color: var(--accent); }
.acard h3 { font-size: 20px; line-height: 1.1; }
.acard p { font-size: 14px; color: var(--muted); }
.acard .coord { font: 11px var(--font-mono); color: var(--muted); margin-top: auto; }
.acard button { align-self: flex-start; border: 0; background: none; padding: 8px 0; min-height: 44px; color: var(--accent); font-weight: 500; }
.acard button:hover { text-decoration: underline; }

/* experiment */
.exp { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; padding: 28px; }
.cube-side { display: grid; justify-items: center; gap: 16px; }
.cube-wrap { perspective: 800px; width: 132px; height: 132px; }
.cube { position: relative; width: 132px; height: 132px; transform-style: preserve-3d; transform: translateZ(-66px) rotateY(0deg); transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
html[data-variant="b"] .cube { transform: translateZ(-66px) rotateY(-90deg); }
.face { position: absolute; inset: 0; display: grid; place-items: center; font: var(--d-weight) 72px var(--font-display); border-radius: 14px; border: 1px solid var(--line); background: var(--raise); color: var(--accent); }
.face-a { transform: rotateY(0deg) translateZ(66px); }
.face-b { transform: rotateY(90deg) translateZ(66px); }
.face-c { transform: rotateY(180deg) translateZ(66px); }
.face-d { transform: rotateY(-90deg) translateZ(66px); }
.variants { display: grid; gap: 10px; }
.variant { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--raise); display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; opacity: .6; transition: opacity .3s, border-color .3s; }
.variant b { font: var(--d-weight) 20px var(--font-display); color: var(--muted); }
.variant q { quotes: none; font: var(--d-weight) 17px/1.2 var(--font-display); }
.variant .now { visibility: hidden; }
html[data-variant="a"] .variant[data-v="a"], html[data-variant="b"] .variant[data-v="b"] { opacity: 1; border-color: var(--accent); }
html[data-variant="a"] .variant[data-v="a"] b, html[data-variant="b"] .variant[data-v="b"] b { color: var(--accent); }
html[data-variant="a"] .variant[data-v="a"] .now, html[data-variant="b"] .variant[data-v="b"] .now { visibility: visible; }
.flicker { margin-top: 20px; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lane { padding: 18px; display: grid; gap: 10px; }
.lane h3 { font-size: 16px; }
.lane .track-bar { display: flex; height: 26px; border-radius: 6px; overflow: hidden; font: 11px/26px var(--font-mono); color: var(--on-accent); }
.lane .track-bar span { padding: 0 8px; white-space: nowrap; overflow: hidden; }
.seg-wait { background: color-mix(in srgb, var(--ink) 30%, transparent); color: var(--ink) !important; }
.seg-flash { background: var(--bad); }
.seg-ok { background: var(--good); }
.lane p { font-size: 14px; color: var(--muted); }

/* tracking */
.track-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 20px; align-items: start; }
.fires { font: 600 13px var(--font-mono); font-variant-numeric: tabular-nums; display: inline-block; min-width: 2ch; text-align: right; }
tr.flash td { animation: flash 1s ease-out; }
@keyframes flash { from { background: color-mix(in srgb, var(--accent) 22%, transparent); } to { background: transparent; } }
.consent { padding: 22px; display: grid; gap: 14px; position: sticky; top: 76px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--raise); font-weight: 500; }
.switch i { flex: none; width: 46px; height: 26px; border-radius: 999px; background: var(--muted); position: relative; transition: background .25s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.switch[aria-checked="true"] i { background: var(--good); }
.switch[aria-checked="true"] i::after { transform: translateX(20px); }
.consent p { font-size: 14px; color: var(--muted); }

/* footer */
/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.about-copy { display: grid; gap: 16px; max-width: 60ch; }
.about-copy h2 { font-size: calc(clamp(28px, 3.6vw, 42px) * var(--d-scale)); line-height: var(--d-lh); }
.about-copy p { color: var(--muted); }
.about-copy .about-lead { color: var(--ink); font-size: 18px; line-height: 1.5; }
.about-copy .about-note { padding-left: 14px; border-left: 2px solid var(--accent); font-size: 15px; }
.about-copy .about-note b { color: var(--ink); font-weight: 600; }
.about-copy .btn { text-decoration: none; }
.path { list-style: none; margin: 0; padding: 22px 22px 22px 26px; display: grid; gap: 0; counter-reset: p; }
.path li { position: relative; display: grid; gap: 2px; padding: 0 0 22px 30px; counter-increment: p; }
.path li:last-child { padding-bottom: 0; }
.path li::before { content: ""; position: absolute; left: 0; top: 5px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--muted); background: var(--surface); z-index: 1; }
.path li::after { content: ""; position: absolute; left: 5px; top: 10px; bottom: -5px; width: 1px; background: var(--line); }
.path li:last-child::after { display: none; }
.path li.now::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.path b { font: var(--d-weight) 18px/1.2 var(--font-display); }
.path span { color: var(--muted); font-size: 14px; }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.foot h3 { font: 500 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.foot ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* ---------- inspector ---------- */
.insp { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--raise); border-top: 1px solid var(--line); box-shadow: 0 -12px 32px -18px rgba(0, 0, 0, .45); font: 12px/1.4 var(--font-mono); }
.insp-bar { display: flex; align-items: center; gap: 14px; height: var(--bar-h); padding-inline: var(--gutter); }
.insp-toggle { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; height: 100%; border: 0; background: none; text-align: left; font: inherit; cursor: pointer; }
.insp-toggle:hover .insp-act { border-color: var(--accent); color: var(--accent); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); flex: none; position: relative; }
.dot.ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--good); animation: pulse 0.9s ease-out; }
.insp-title { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.insp-last { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.insp-counts { display: flex; gap: 14px; color: var(--muted); white-space: nowrap; }
.insp-counts b { color: var(--ink); font-variant-numeric: tabular-nums; }
.insp-act { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; }
.chev { width: 14px; height: 14px; transition: transform .3s; flex: none; }
.insp-close { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: none; font: inherit; cursor: pointer; }
.insp-close:hover { border-color: var(--accent); color: var(--accent); }
.insp-close svg { width: 13px; height: 13px; }
.insp-close kbd { font: inherit; font-size: 10.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.insp[data-open="true"] .chev { transform: rotate(180deg); }
.insp-body { height: min(46vh, 420px); display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.insp-body[hidden] { display: none; }
.insp-tools { display: flex; align-items: center; gap: 10px; padding: 8px var(--gutter); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 8px; }
.tabs button { border: 0; background: none; padding: 6px 12px; border-radius: 6px; font: inherit; min-height: 30px; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--ground); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.chips button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 4px 10px; font: inherit; min-height: 28px; }
.chips button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.insp-main { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); min-height: 0; flex: 1; }
.insp-list { overflow: auto; min-height: 0; }
.row { display: grid; align-items: center; gap: 10px; width: 100%; padding: 6px var(--gutter); border: 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); background: none; text-align: left; font: inherit; font-variant-numeric: tabular-nums; }
.row.ev { grid-template-columns: 74px minmax(0, 1.4fr) 92px minmax(0, 1fr) 70px 54px; }
.row.rq { grid-template-columns: minmax(0, 1.6fr) 84px minmax(0, 1fr) 64px 58px minmax(60px, 1fr); }
.row.head { position: sticky; top: 0; background: var(--raise); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; z-index: 1; }
.row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.row:hover, button.row[aria-current="true"] { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.row.is-new { animation: flash 1s ease-out; }
.muted { color: var(--muted); }
.st-202 { color: var(--good); } .st-blocked { color: var(--bad); text-decoration: line-through; } .st-pending { color: var(--muted); }
.cat { justify-self: start; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); font-size: 10.5px; }
.wf { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 8%, transparent); position: relative; overflow: hidden; }
.wf i { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 4px; min-width: 2px; }
.insp-detail { margin: 0; padding: 12px 16px; overflow: auto; border-left: 1px solid var(--line); font-size: 12px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; min-height: 0; background: var(--surface); }
.insp-empty { padding: 20px var(--gutter); color: var(--muted); }

/* ---------- theme change reveal ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: reveal .7s cubic-bezier(.4, 0, .2, 1); }
@keyframes reveal { from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0)); } to { clip-path: circle(150vmax at var(--vt-x, 50%) var(--vt-y, 0)); } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  /* no pinning on narrow screens: the stage sits above the copy and opens as it crosses the screen */
  .bb { height: auto; }
  .bb-pin { position: static; height: auto; overflow: visible; padding: clamp(40px, 8vw, 72px) 0; }
  .bb-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .bb-stage { order: -1; height: 400px; min-height: 0; --bb-scale: .78; }
  .nav { display: none; }
  .bar-tools { margin-left: auto; }
  .proof, .arch, .track-grid { grid-template-columns: minmax(0, 1fr); }
  .content { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pipe svg { transform: rotate(90deg); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .acard { min-height: 0; }
  .consent { position: static; }
  .insp-main { grid-template-columns: minmax(0, 1fr); }
  .insp-detail { display: none; }
}
@media (max-width: 760px) {
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; }
  #mapgl, .map-fallback { position: relative; height: 58vh; min-height: 340px; }
  .hero-copy { position: static; width: auto; margin: 12px 12px 16px; }
  .hud { top: 12px; right: 12px; width: 150px; padding: 10px 12px; }
  .hud dl > :nth-child(-n+4), .hud dl > :nth-child(9), .hud dl > :nth-child(10) { display: none; }
  .poi-list { display: none; }
  .vitals, .dials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exp { grid-template-columns: minmax(0, 1fr); }
  .flicker, .foot, .about { grid-template-columns: minmax(0, 1fr); }
  .variant { grid-template-columns: 28px 1fr; }
  .variant .now { display: none; }
  .insp-counts span:not(:first-child) { display: none; }
  .insp-tools .chips { order: 3; flex-basis: 100%; }
  .insp-tools #inspMode { order: 4; }
  .insp-close { margin-left: auto; }
  .insp-close kbd { display: none; }
  .row.ev { grid-template-columns: 62px minmax(0, 1fr) 60px; }
  .row.ev > :nth-child(3), .row.ev > :nth-child(4), .row.ev > :nth-child(6) { display: none; }
  .row.rq { grid-template-columns: minmax(0, 1fr) 58px 58px; }
  .row.rq > :nth-child(2), .row.rq > :nth-child(3), .row.rq > :nth-child(6) { display: none; }
  .stage { height: 400px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bb { height: auto; }
  .bb-pin { position: static; height: auto; padding: clamp(56px, 9vw, 108px) 0; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
