/*
 * ShortStop landing page, v2.
 *
 * Two sources. The look is the film's (youtu.be/xlLCbgnr3p4): a flight
 * recorder's frame around every screen, "Fig." labels in mono capitals, very
 * large condensed headlines whose last line turns orange, serif asides, lettered
 * callouts on the real popups, an eagle at the end. The glass is the previous
 * landing page's: frosted panels over its flowing veil background (veil.js),
 * here in ShortStop's red, orange and yellow.
 *
 * styles.css supplies the product samples: the Stop, the limit lists,
 * the hurdle screens, tags and buttons. This file is everything else.
 */

:root.v2 {
  --bg: #0b0a09;
  --ink: #ece6da;
  --dim: rgba(236, 230, 218, 0.64);
  --faint: rgba(236, 230, 218, 0.36);
  --hair: rgba(236, 230, 218, 0.13);
  --hot: #ee7b1d;
  --amber: #c9a52c;
  --red: #d8463a;
  --shout: "Anton", "Anek Latin", Impact, sans-serif;
  --mono: "JetBrains Mono", Consolas, ui-monospace, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  --edge: clamp(14px, 2.4vw, 36px);
  --gut: clamp(20px, 6vw, 96px);
  --top-h: 76px;
  --glass: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 55%, rgba(0, 0, 0, 0.14) 100%);
}

.v2 { scroll-behavior: smooth; scroll-padding-top: var(--top-h); }
.v2 body { background: var(--bg); color: var(--ink); }
.v2 ::selection { background: rgba(238, 123, 29, 0.35); color: var(--ink); }

/* ------------------------------------------------------------------ */
/* Backdrop: the veil, then a vignette and a faint grid, then grain    */
/* ------------------------------------------------------------------ */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.backdrop__layers, .fig__bg { position: absolute; inset: 0; }
.bg-layer { position: absolute; inset: 0; width: 100%; height: 100%; animation: bgin 1600ms var(--ease-out) backwards; }
.fig--hero { position: relative; }
.fig--hero .fig__in { position: relative; }
.fig__bg { z-index: 0; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); pointer-events: none; }
@keyframes bgin { from { opacity: 0; } }
.backdrop::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 85% 75% at 50% 45%, transparent 0%, rgba(11, 10, 9, 0.5) 62%, rgba(11, 10, 9, 0.92) 100%),
    repeating-linear-gradient(0deg, rgba(236, 230, 218, 0.045) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(90deg, rgba(236, 230, 218, 0.045) 0 1px, transparent 1px 96px);
  background-blend-mode: normal;
  opacity: 0.9;
}
.backdrop::after { content: ""; position: absolute; inset: 0; z-index: 2; background: url("assets/grain.png") repeat; background-size: 280px; mix-blend-mode: overlay; opacity: 0.5; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(26px) saturate(1.25); backdrop-filter: blur(26px) saturate(1.25);
  box-shadow: var(--shadow-frame);
  border-radius: 28px;
}
.v2 .stop { -webkit-backdrop-filter: blur(26px) saturate(1.25); backdrop-filter: blur(26px) saturate(1.25); }

/* ------------------------------------------------------------------ */
/* The recorder's frame                                                */
/* ------------------------------------------------------------------ */
.hud { position: fixed; inset: var(--edge); z-index: 30; pointer-events: none; font-family: var(--mono); color: var(--faint); }
.hud__corner { position: absolute; width: 26px; height: 26px; border: 0 solid var(--faint); }
.hud__corner--tl { left: 0; top: 0; border-width: 1px 0 0 1px; }
.hud__corner--tr { right: 0; top: 0; border-width: 1px 1px 0 0; }
.hud__corner--bl { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.hud__corner--br { right: 0; bottom: 0; border-width: 0 1px 1px 0; }

.hud__ruler { position: absolute; left: 50%; top: 6px; width: min(460px, 30vw); transform: translateX(-50%); }
.hud__times { display: flex; justify-content: space-between; margin: 0 -18px 6px; font-size: 9px; letter-spacing: 0.14em; }
.hud__track { position: relative; height: 12px; border-inline: 1px solid var(--faint); background: repeating-linear-gradient(90deg, var(--faint) 0 1px, transparent 1px calc(100% / 24)) bottom / 100% 5px no-repeat; }
.hud__track::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--faint); }
#hud-fill { position: absolute; left: 0; top: -1px; width: 100%; height: 3px; background: linear-gradient(90deg, var(--red), var(--hot) 60%, var(--amber)); transform-origin: left; transform: scaleX(0); }
#hud-mark { position: absolute; left: 0; top: -4px; width: 2px; height: 20px; margin-left: -1px; background: var(--amber); }
#hud-mark::after { content: ""; position: absolute; left: -3px; bottom: -6px; border: 4px solid transparent; border-bottom-color: var(--amber); }

.hud__clock, .hud__readout { position: absolute; bottom: 14px; display: grid; gap: 4px; margin: 0; }
.hud__clock { left: 22px; }
.hud__readout { right: 22px; text-align: right; }
.hud__clock span, .hud__readout span { font-size: 9px; letter-spacing: 0.2em; }
.hud__clock b, .hud__readout b { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 400; line-height: 1; letter-spacing: 0.08em; color: var(--amber); font-variant-numeric: tabular-nums; }
.hud__index { position: absolute; left: 22px; bottom: 76px; display: flex; align-items: center; gap: 12px; margin: 0; font-size: 10px; letter-spacing: 0.26em; }
.hud__index b { color: var(--amber); font-weight: 600; }
.hud__index i { width: 28px; height: 1px; background: var(--faint); }
.hud b.is-tick { animation: hudtick 420ms var(--ease-out); }
@keyframes hudtick { from { opacity: 0.2; transform: translateY(0.3em); } }

/* content scrolls under the frame's bottom row: a scrim keeps the readouts legible */
.v2 body::after { content: ""; position: fixed; inset: auto 0 0; z-index: 29; height: 150px; background: linear-gradient(to top, rgba(11, 10, 9, 0.92) 18%, rgba(11, 10, 9, 0)); pointer-events: none; }

/* The top bar: wordmark, the unit's name, the one action */
.top { position: fixed; inset: 0 0 auto; z-index: 31; display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); height: var(--top-h); padding: 0 calc(var(--edge) + 22px); background: linear-gradient(to bottom, rgba(11, 10, 9, 0.86), rgba(11, 10, 9, 0)); pointer-events: none; }
.top > * { pointer-events: auto; }
.top__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; border-radius: 8px; }
.top__logo img { width: auto; height: 30px; }
.wm { font-family: var(--font-wordmark); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; color: var(--ink); }
.wm span { color: var(--red); }
.top__unit { display: grid; gap: 4px; margin: 0 0 0 auto; font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em; text-align: right; color: var(--faint); pointer-events: none; }
.top__unit span:first-child { font-size: 11px; font-weight: 600; letter-spacing: 0.3em; color: var(--dim); }
.top__unit i { display: inline-block; width: 6px; height: 6px; background: var(--hot); animation: rec 1.6s steps(2, jump-none) infinite; }
.top__unit b { font-weight: 400; color: var(--amber); font-variant-numeric: tabular-nums; }
@keyframes rec { 50% { opacity: 0.15; } }
.top .btn { min-height: 42px; }

/* ------------------------------------------------------------------ */
/* A figure: one screen, one idea                                      */
/* ------------------------------------------------------------------ */
.fig { display: grid; align-content: center; min-height: 100svh; padding: calc(var(--top-h) + 40px) var(--gut) 132px; }
.fig__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: center; width: 100%; max-width: 1400px; margin-inline: auto; }
.fig--flip .fig__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.fig[hidden] { display: none; }
.fig--flip .fig__text { order: 2; }
.fig__in--sub { margin-top: clamp(96px, 14vh, 176px); }
.fig__vis { min-width: 0; }

.figlabel { display: flex; align-items: center; gap: 16px; margin: 0 0 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--dim); }
.figlabel::before { content: ""; flex: none; width: 44px; height: 1px; background: var(--hot); }

/* The headline: condensed, enormous, grained, the last line orange. Each
   line rises out of a mask; the block lands with a short colour split. */
.v2 .shout { max-width: none; margin: 0; font-family: var(--shout); font-weight: 400; font-size: calc(clamp(3.5rem, 8.4vw, 9.25rem) * var(--shout-scale, 1)); line-height: 0.98; letter-spacing: 0.004em; text-transform: uppercase; text-wrap: nowrap; }
.v2 .shout--s { font-size: calc(clamp(2.75rem, 5.4vw, 5.75rem) * var(--shout-scale, 1)); }
.shout span { display: block; width: fit-content; padding-bottom: 0.04em; color: transparent; background: linear-gradient(var(--ink), var(--ink)), url("assets/grain.png") 0 0 / 220px; background-blend-mode: multiply; -webkit-background-clip: text; background-clip: text; }
.shout .hot { background-image: linear-gradient(var(--hot), var(--hot)), url("assets/grain.png"); }

.say { max-width: 46ch; margin-top: 28px; font-size: clamp(1.05rem, 0.4vw + 1rem, 1.3rem); line-height: 1.55; color: var(--dim); }
.aside { margin: 36px 0 0; }
.aside p { max-width: none; font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 3.2vw, 3.1rem); line-height: 1.1; color: var(--ink); }
.aside cite { display: block; margin-top: 12px; font-family: var(--mono); font-size: 10px; font-style: normal; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); }

.go { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: 36px; }
.go .btn svg { margin-right: var(--space-2xs); fill: currentColor; }

/* 00: the film's loop, the way in to the film */
.film { position: relative; display: block; width: 100%; padding: 10px; border: 0; color: var(--ink); cursor: pointer; transition: transform var(--dur-long) var(--ease-out); }
.film:hover { transform: translateY(-4px); }
.film:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; background: var(--bg); }
.film__play { position: absolute; left: 50%; top: calc(50% - 20px); display: grid; place-items: center; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(11, 10, 9, 0.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-raised); transition: transform var(--dur-short) var(--ease-out); }
.film__play::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--ink); border-radius: 50%; opacity: 0; animation: ping 2.6s var(--ease-out) infinite; }
.film__play svg { margin-left: 4px; fill: currentColor; }
.film:hover .film__play { transform: scale(1.08); }
.film__meta { display: block; padding: 14px 12px 6px; text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.film__meta b { color: var(--hot); font-weight: 600; }
@keyframes ping { 0% { opacity: 0.6; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }

/* 01: the feed, a wireframe column that never ends */
.tunnel { position: relative; height: min(66vh, 640px); overflow: hidden; perspective: 900px; perspective-origin: 50% 18%; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 86%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 86%, transparent 100%); }
.tunnel__track { position: absolute; left: 50%; bottom: 40px; display: grid; gap: 20px; width: 320px; margin-left: -160px; transform-origin: 50% 100%; animation: feedrun 7s linear infinite; }
.tunnel__track i { position: relative; display: block; height: 180px; border: 1.5px solid var(--dim); border-radius: 20px; background: rgba(236, 230, 218, 0.025); }
.tunnel__track i::before { content: ""; position: absolute; left: 50%; top: 42%; margin: -16px 0 0 -10px; border: 16px solid transparent; border-left: 24px solid var(--faint); border-right: 0; }
.tunnel__track i::after { content: ""; position: absolute; left: 22px; right: 38%; bottom: 20px; height: 6px; border-radius: 3px; background: var(--faint); box-shadow: 0 -14px 0 0 var(--hair); }
.tunnel__track i:nth-child(3n)::before { display: none; }
.tunnel__track i:nth-child(3n)::after { right: 22px; bottom: 50%; box-shadow: 0 -18px 0 0 var(--faint), 0 18px 0 0 var(--hair), 0 36px 0 0 var(--hair); }
.tunnel__tag { position: absolute; right: 6%; top: 22%; margin: 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--hot); }
@keyframes feedrun { from { transform: rotateX(64deg) translateY(0); } to { transform: rotateX(64deg) translateY(1200px); } }

/* Lettered callouts beside a product sample */
.called { position: relative; width: fit-content; max-width: 100%; margin-right: auto; }
.fig--flip .called { margin: 0 0 0 auto; }
.calls { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 28px; margin: 22px 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink); }
.calls b { margin-right: 8px; color: var(--hot); font-weight: 600; }
.calls small { display: block; margin-top: 6px; font-size: 9.5px; letter-spacing: 0.2em; color: var(--faint); }
@media (min-width: 1320px) {
  .calls { position: absolute; left: 100%; top: 0; bottom: 0; display: block; width: 280px; margin: 0; letter-spacing: 0.18em; }
  .calls li { position: absolute; left: 0; top: var(--y); padding-left: 104px; transform: translateY(-0.6em); }
  .calls li::before { content: ""; position: absolute; left: 8px; top: 0.6em; width: 82px; height: 1px; background: var(--faint); transform-origin: left; }
  .calls li::after { content: ""; position: absolute; left: 3px; top: calc(0.6em - 3.5px); width: 7px; height: 7px; border: 1.5px solid var(--hot); border-radius: 50%; }
  .fig--flip .calls { left: auto; right: 100%; text-align: right; }
  .fig--flip .calls li { left: auto; right: 0; padding: 0 104px 0 0; }
  .fig--flip .calls li::before { left: auto; right: 8px; transform-origin: right; }
  .fig--flip .calls li::after { left: auto; right: 3px; }
  .js .calls li::before { transform: scaleX(0); transition: transform 700ms var(--ease-out) 500ms; }
  .js .calls.is-in li::before { transform: none; }
}
.v2 .list.glass { width: min(560px, 100%); margin: 0; background: var(--glass); }

/* 02 · B: the four hurdles */
.hurdles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hurdle-card { padding: 16px 18px 6px; border-radius: 22px; overflow: hidden; }
.hurdle-card__tag { margin: 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); }
.hurdle-card__tag b { margin-right: 8px; color: var(--hot); font-weight: 600; }
.hurdle-card .hd { zoom: 0.74; padding-block: 12px 22px; }
.hurdle-card .hd__title { display: none; }
.hurdle-card .hd__body { min-height: 220px; }
.hurdle-card textarea.hd__input { width: 100%; }

/* 04: the modifications, and the page they clean */
.mods { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: 20px; align-items: center; }
.mods__panel { display: grid; gap: 14px; padding: 24px 24px 26px; border-radius: 22px; }
.mods__title { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.mods label { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--dim); cursor: pointer; }
.mods input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mods label i { position: relative; flex: none; width: 38px; height: 22px; border-radius: 11px; background: rgba(236, 230, 218, 0.16); transition: background-color var(--dur-short) var(--ease-out); }
.mods label i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: transform var(--dur-short) var(--ease-out); }
.mods input:checked + i { background: var(--hot); }
.mods input:checked + i::after { transform: translateX(16px); }
.mods input:focus-visible + i { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.mods label:has(input:checked) span { color: var(--ink); }

.wire { display: grid; grid-template-columns: 54px 1fr; grid-template-rows: 40px 1fr; aspect-ratio: 4 / 3; border: 1.5px solid var(--dim); border-radius: 16px; overflow: hidden; color: var(--faint); }
.wire [data-part] { transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); }
.wire [data-part].is-off { opacity: 0; transform: scale(0.86); }
.wire__bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-bottom: 1.5px solid var(--hair); }
.wire__logo { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--dim); }
.wire__logo i { width: 44px; height: 7px; border-radius: 4px; background: var(--faint); }
.wire__ring { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--amber); padding: 3px 8px; border: 1.5px solid var(--amber); border-radius: 999px; }
.wire__search { flex: 1; max-width: 46%; height: 16px; margin-inline: auto; border: 1.5px solid var(--hair); border-radius: 999px; }
.wire__side { display: grid; align-content: start; gap: 14px; padding: 14px 0; justify-items: center; border-right: 1.5px solid var(--hair); }
.wire__side i { width: 22px; height: 22px; border: 1.5px solid var(--faint); border-radius: 6px; }
.wire__grid { display: grid; align-content: start; gap: 12px; padding: 14px; }
.wire__shelf { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 8px; border: 1.5px dashed var(--hot); border-radius: 10px; }
.wire__shelf b { grid-column: 1 / -1; font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; color: var(--hot); }
.wire__shelf i { aspect-ratio: 9 / 14; border: 1.5px solid var(--faint); border-radius: 6px; }
.wire__vids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wire__vids i { aspect-ratio: 16 / 10; border: 1.5px solid var(--faint); border-radius: 6px; }

/* 06: the wall and its four gaps */
.fig--wide .fig__in { grid-template-columns: minmax(0, 1fr); gap: 48px; }
.gaps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.gaps li { padding: 20px 22px 24px; border-radius: 22px; }
.gaps__tag { margin: 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); }
.gaps__tag b { margin-right: 8px; color: var(--hot); font-weight: 600; }
.gaps__state { margin: 14px 0 10px; font-family: var(--shout); font-size: clamp(2rem, 3vw, 2.9rem); line-height: 1; text-transform: uppercase; color: var(--hot); }
.gaps li.is-closed .gaps__state { color: var(--ink); animation: hudtick 420ms var(--ease-out); }
.gaps li p:last-child { max-width: none; font-size: 15px; line-height: 1.45; color: var(--dim); }
.bricks { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); height: 96px; margin-top: 28px; border-block: 1.5px solid var(--dim); background:
  repeating-linear-gradient(0deg, var(--faint) 0 1.5px, transparent 1.5px 24px),
  repeating-linear-gradient(90deg, var(--hair) 0 1.5px, transparent 1.5px 56px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.bricks i { justify-self: center; width: 58px; height: 62%; background: var(--bg); border: 1.5px dashed var(--hot); border-top: 0; border-radius: 0 0 10px 10px; transform-origin: top; transition: transform 600ms var(--ease-out), opacity 600ms var(--ease-out); }
.bricks i.is-closed { transform: scaleY(0); opacity: 0; }

/* 07: the eagle and the way in */
.eagle { width: min(680px, 100%); height: auto; margin-left: auto; filter: drop-shadow(0 0 46px rgba(238, 123, 29, 0.28)); animation: soar 7s var(--ease-in-out) infinite alternate; }
@keyframes soar { from { transform: translate3d(0, 10px, 0) rotate(-1.2deg); } to { transform: translate3d(0, -12px, 0) rotate(0.8deg); } }
.endcard { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--hair); }
.endcard__logo { display: flex; align-items: center; gap: 14px; margin: 0; }
.endcard__logo img { width: auto; height: 46px; }
.endcard__logo .wm { font-size: 2.4rem; }
.endcard__facts { display: flex; align-items: center; gap: 16px; margin: 20px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--dim); }
.endcard__facts::before { content: ""; width: 44px; height: 1px; background: var(--hot); }
.endcard .go { margin-top: 26px; }
.endcard__note { margin-top: 18px; font-size: 14px; color: var(--faint); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding: 0 var(--gut) 120px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint); }
.foot p { max-width: none; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* ------------------------------------------------------------------ */
/* What the playground can switch                                      */
/* ------------------------------------------------------------------ */
.no-sticky .top { position: absolute; }
.no-frame .hud, .no-frame.v2 body::after { display: none; }
.no-frame .fig { padding-bottom: 96px; }

/* The playground panel (playground.js) */
.pg { position: fixed; right: 16px; top: 16px; z-index: 80; display: flex; flex-direction: column; width: 340px; max-width: calc(100vw - 16px); max-height: 88vh; border-radius: 18px; font-family: var(--font-body); font-size: 12px; color: var(--ink); background: linear-gradient(135deg, rgba(30, 27, 25, 0.86), rgba(14, 13, 12, 0.9)); }
.pg[hidden], .pg-open[hidden] { display: none; }
.pg__bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--hair); font-size: 14px; cursor: grab; user-select: none; touch-action: none; }
.pg__bar:active { cursor: grabbing; }
.pg__scroll { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.pg__group { border-bottom: 1px solid var(--hair); }
.pg__title { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 12px; border: 0; background: none; color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.pg__title span { color: var(--faint); }
.pg__body { display: grid; gap: 4px; padding: 0 12px 12px; }
.pg__field { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; color: var(--dim); }
.pg__field > div { display: flex; align-items: center; gap: 8px; }
.pg__field input[type="range"] { width: 112px; height: 4px; accent-color: var(--hot); cursor: pointer; }
.pg__field output { width: 36px; text-align: right; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ink); }
.pg__field select, .pg textarea { border: 1px solid var(--hair); border-radius: 6px; background: rgba(0, 0, 0, 0.35); color: var(--ink); font: inherit; }
.pg__field select { max-width: 170px; padding: 4px 6px; }
.pg__field input[type="color"] { width: 36px; height: 24px; padding: 0; border: 1px solid var(--hair); border-radius: 4px; background: none; cursor: pointer; }
.pg__switch { appearance: none; position: relative; flex: none; width: 30px; height: 18px; margin: 0; border-radius: 9px; background: rgba(236, 230, 218, 0.18); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.pg__switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); transition: transform var(--dur-short) var(--ease-out); }
.pg__switch:checked { background: var(--hot); }
.pg__switch:checked::after { transform: translateX(12px); }
.pg__row { display: flex; align-items: center; gap: 4px; min-height: 30px; }
.pg__name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 4px 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; text-transform: capitalize; cursor: pointer; }
.pg__name i { width: 10px; font-style: normal; color: var(--faint); }
.pg__icon { width: 22px; height: 22px; border: 0; border-radius: 5px; background: none; color: var(--faint); font: inherit; font-size: 14px; line-height: 1; cursor: pointer; }
.pg__icon:hover { color: var(--ink); background: rgba(236, 230, 218, 0.08); }
.pg__inner { display: grid; gap: 2px; margin: 2px 0 6px; padding: 6px 10px; border: 1px solid var(--hair); border-radius: 8px; background: rgba(0, 0, 0, 0.22); }
.pg__add, .pg__wide, .pg__buttons button { padding: 7px 8px; border: 1px solid var(--hair); border-radius: 6px; background: rgba(236, 230, 218, 0.04); color: var(--ink); font: inherit; cursor: pointer; }
.pg__add { margin-top: 6px; border-style: dashed; color: var(--dim); }
.pg__add:hover, .pg__wide:hover, .pg__buttons button:hover { background: rgba(236, 230, 218, 0.09); }
.pg__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pg textarea { width: 100%; padding: 8px; font-size: 11px; resize: none; }
.pg__note { max-width: none; min-height: 1lh; font-size: 11px; color: var(--faint); }
.pg :focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.pg-open { position: fixed; right: calc(var(--edge) + 22px); bottom: 96px; z-index: 80; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--hot); color: var(--bg); box-shadow: var(--shadow-raised); cursor: pointer; }
.pg-open svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ------------------------------------------------------------------ */
/* Motion. Content is visible without script; .js scopes the starts.   */
/* ------------------------------------------------------------------ */
.js .v2r { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--d, 0) * 110ms); }
.js .v2r.is-in { opacity: 1; transform: none; }
.js .shout span { clip-path: inset(0 0 100% 0); transform: translateY(0.4em); transition: clip-path 800ms var(--ease-out), transform 800ms var(--ease-out); }
.js .shout span:nth-child(2) { transition-delay: 110ms; }
.js .shout span:nth-child(3) { transition-delay: 220ms; }
.js .shout.is-in span { clip-path: inset(-0.1em 0 -0.1em 0); transform: none; }

/* ------------------------------------------------------------------ */
/* Smaller screens                                                     */
/* ------------------------------------------------------------------ */
@media (max-width: 1500px) { .top__unit { display: none; } }
@media (max-width: 1000px) {
  .fig { min-height: 0; padding: calc(var(--top-h) + 48px) var(--gut) 96px; }
  .fig__in, .fig--flip .fig__in { grid-template-columns: minmax(0, 1fr); }
  .fig--flip .fig__text { order: 0; }
  .called, .fig--flip .called { margin-inline: auto; }
  .hud__ruler { width: 44vw; }
  .gaps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eagle { margin-inline: auto; }
}
@media (max-width: 700px) {
  .hud__ruler, .hud__index, .hud__clock, .hud__readout { display: none; }
  .v2 body::after { display: none; }
  .fig { padding-bottom: 72px; }
  .mods { grid-template-columns: minmax(0, 1fr); }
  .hurdles { grid-template-columns: minmax(0, 1fr); }
  .gaps { grid-template-columns: minmax(0, 1fr); }
  .tunnel { height: 420px; }
  .film__play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .foot { padding-bottom: 48px; }
  .wm { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .v2 { scroll-behavior: auto; }
  .js .v2r, .js .shout span { opacity: 1; transform: none; clip-path: none; }
  .tunnel__track { animation: none; transform: rotateX(64deg); }
  .eagle, .film__play::after, .top__unit i { animation: none; }
}
