/* Pandang, the judge's page. Direction: an evening living-room rehearsal under one ghost light.
   Velvet-dark room, linen ink, amber only where a look lands or a run passes, pale blue where a listener cools.
   Tokens: /tokens.css. Faces: /fonts/fonts.css. No inline styles or scripts (the site CSP is self-only). */

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 100%;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--rule) var(--bg-deep);
  scroll-padding-top: 76px;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-size: var(--step-0); font-weight: 360; min-height: 100vh; }
body::before { /* film of grain over the room, fixed so it does not scroll */
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.05;
  background-image: url("/media/grain.svg");
}
::selection { background: var(--after); color: var(--bg-deep); }
:focus-visible { outline: 2px solid var(--after); outline-offset: 3px; border-radius: 6px; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--ink); text-decoration-color: rgba(247, 237, 224, 0.35); text-underline-offset: 0.18em; text-decoration-thickness: 1px; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--after); text-decoration-color: var(--after); }
code, pre, .mono { font-family: var(--font-data); font-size: 0.86em; }
code { color: #E8DACB; overflow-wrap: anywhere; }
b, strong { font-weight: 600; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 { font-family: var(--font-display); font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem); line-height: 1.08; letter-spacing: -0.005em; text-wrap: balance; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.nw { white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 12px 16px; background: var(--ink); color: var(--bg); border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.st-after { color: var(--after); }
.st-before { color: var(--before); }
.cap { color: var(--muted); font-size: var(--step--1); line-height: 1.55; max-width: var(--measure); }
.cap a { color: var(--muted); }
.cap a:hover { color: var(--after); }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.lede { color: #D9CDBF; font-size: var(--step-1); line-height: 1.5; max-width: 40ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px; border-radius: 999px;
  font: 500 0.98rem/1.2 var(--font-body); letter-spacing: 0.01em;
  color: var(--ink); background: transparent; border: 1px solid rgba(247, 237, 224, 0.28);
  text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease-out);
}
.btn:hover { border-color: var(--ink); background: rgba(247, 237, 224, 0.06); color: var(--ink); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-ink { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.btn-ink:hover { background: #FFF6EA; color: var(--bg); box-shadow: 0 0 0 6px rgba(247, 237, 224, 0.08); }
.btn-ico { width: 14px; height: 14px; }
.btn-text { background: none; border: 0; color: var(--muted); font: 500 0.92rem var(--font-body); min-height: 44px; padding: 8px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.btn-text:hover { color: var(--ink); }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  background: rgba(20, 13, 11, 0.72); border: 1px solid rgba(247, 237, 224, 0.16);
}
.chip { border-radius: 14px; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--before); }

/* ---------- the ring (signature: a held look fills it in 1.5 s) ---------- */
.ring-num { position: relative; flex: none; display: grid; place-items: center; width: 46px; height: 46px; }
.ring-num svg, .mini-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-num b { position: relative; font: 400 1.05rem/1 var(--font-display); color: var(--ink); transition: color .3s; }
.track { fill: none; stroke: rgba(247, 237, 224, 0.2); stroke-width: 2.4; }
.fill { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: butt; stroke-dasharray: 100 100; stroke-dashoffset: 100; transition: stroke-dashoffset .35s var(--ease-out), stroke .3s; }
.dwell .fill { stroke-dashoffset: 0; transition: stroke-dashoffset var(--dwell) linear, stroke .3s; }
.landed .fill { stroke: var(--after); stroke-dashoffset: 0; }
.landed .ring-num b { color: var(--after); }
.landed .ring-num { animation: nod .5s var(--ease-out) 1; }
@keyframes nod { 0% { transform: translateY(0); } 40% { transform: translateY(4px) rotate(-3deg); } 100% { transform: translateY(0); } }
.stop-ring { width: 30px; height: 30px; }
.stop-ring b { display: none; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(28, 19, 16, 0.78); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--rule-soft);
}
.nav { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.2rem/1 var(--font-display); color: var(--ink); min-height: 44px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 0.95rem; font-weight: 450; }
.nav-links a:hover { color: var(--ink); background: rgba(247, 237, 224, 0.06); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--after); margin-left: 7px; box-shadow: 0 0 10px var(--after); }
.nav-gh { border: 1px solid rgba(247, 237, 224, 0.2); margin-left: 6px; }
@media (max-width: 560px) {
  .nav { height: 58px; gap: 6px; }
  .brand span { display: none; }
  .nav-links a { padding: 0 10px; font-size: 0.9rem; }
  .nav-gh { margin-left: 2px; }
}

/* ---------- hero ---------- */
main { overflow-x: clip; }
.hero {
  position: relative; isolation: isolate;
  max-width: 1240px; margin: 0 auto;
  padding: clamp(28px, 5vh, 64px) clamp(16px, 4vw, 40px) clamp(40px, 6vh, 72px);
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); gap: clamp(28px, 4vw, 64px); align-items: center;
}
.hero-glow {
  position: absolute; z-index: -1; pointer-events: none;
  width: 1100px; height: 900px; right: -260px; top: -380px;
  background:
    radial-gradient(closest-side, rgba(255, 184, 97, 0.20), rgba(255, 184, 97, 0.07) 45%, transparent 72%);
}
.hero::after { /* the ghost light itself: one bare bulb hanging above the card */
  content: ""; position: absolute; z-index: -1; right: calc(clamp(16px, 4vw, 40px) + 17%); top: -6px;
  width: 1px; height: clamp(20px, 4vh, 44px); background: linear-gradient(var(--rule), rgba(247, 237, 224, 0.35));
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 1.1rem + 3.7vw, 4.5rem);
  line-height: 1.03; letter-spacing: -0.012em;
  text-wrap: balance; margin-bottom: 26px;
}
.lit { color: var(--after); text-shadow: 0 0 34px rgba(255, 184, 97, 0.38); }
.lit { animation: lightup .45s var(--ease-out) 1.5s both; }
@keyframes lightup {
  from { color: var(--oat); text-shadow: 0 0 0 rgba(255, 184, 97, 0); }
  to { color: var(--after); text-shadow: 0 0 34px rgba(255, 184, 97, 0.38); }
}
.claim { font-size: var(--step-1); line-height: 1.5; color: #E6DACC; max-width: 33em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fine { margin-top: 22px; color: var(--muted); font-size: var(--step--1); max-width: 46ch; }

/* the look card */
.look { margin: 0; width: 100%; max-width: 440px; justify-self: end; }
.look-stage {
  position: relative; aspect-ratio: 864 / 1080; border-radius: 20px; overflow: hidden;
  background: #0F0A08 url("/media/look-first.webp") center / cover no-repeat;
  border: 1px solid rgba(247, 237, 224, 0.12);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 120px -40px rgba(255, 184, 97, 0.35);
  cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
}
.look-video { width: 100%; height: 100%; object-fit: cover; }
.look-stage::after { /* soft vignette so the chip and HUD read on the room */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(15, 10, 8, 0.55), transparent 18%, transparent 74%, rgba(15, 10, 8, 0.75));
}
.chip-tl { position: absolute; top: 14px; left: 14px; z-index: 2; }
.look-hud { position: absolute; z-index: 2; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; }
.mini-ring { position: relative; width: 38px; height: 38px; }
.look-hud .fill { transition: none; }
.look-count { font-family: var(--font-data); font-size: 0.9rem; color: var(--muted); }
.look-count b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.look.is-landed .look-hud .fill { stroke: var(--after); }
.look.is-landed .look-count b { color: var(--after); }
.look-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin-top: 14px; }
.btn-hold {
  position: relative; overflow: hidden; flex: 1 1 auto; min-height: 54px;
  background: rgba(247, 237, 224, 0.04); border-color: rgba(247, 237, 224, 0.34);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.btn-hold::before { /* the press fills like the ring */
  content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, rgba(247, 237, 224, 0.10), rgba(247, 237, 224, 0.22));
}
.btn-hold .hold-label { position: relative; }
.look.is-landed .btn-hold { border-color: var(--after); color: var(--after); }
.look.is-landed .btn-hold::before { background: rgba(255, 184, 97, 0.12); }
.look-status { margin-top: 10px; min-height: 1.6em; font-size: 0.95rem; color: #E6DACC; }
.look .cap { margin-top: 8px; }

/* ---------- the 30-second path ---------- */
.path {
  position: relative; background: var(--bg-raise);
  border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft);
  padding: 26px clamp(16px, 4vw, 40px) 22px;
}
.path-head, .path-list, .path-note { max-width: 1240px; margin-left: auto; margin-right: auto; }
.path-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 14px; }
.path-title { font: 400 1.35rem/1.1 var(--font-display); }
.path-sub { color: var(--muted); font-size: 0.95rem; }
.path-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: none; }
.path-list a {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  min-height: 72px; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--ink);
  border: 1px solid rgba(247, 237, 224, 0.1); background: rgba(20, 13, 11, 0.35);
  transition: border-color .2s, background .2s, transform .2s var(--ease-out);
}
.path-list a:hover { border-color: rgba(247, 237, 224, 0.4); background: rgba(20, 13, 11, 0.6); transform: translateY(-2px); color: var(--ink); }
.path-list .ring-num { grid-row: 1 / span 2; }
.path-t { font-weight: 600; font-size: 1.02rem; line-height: 1.25; align-self: end; }
.path-d { color: var(--muted); font-size: 0.86rem; line-height: 1.35; align-self: start; }
.path-note { margin-top: 12px; color: var(--quiet); font-size: 0.84rem; }
@media (max-width: 980px) { .path-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .path-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- stops ---------- */
.stop, .rules, .glasses, .built, .repro {
  max-width: 1240px; margin: 0 auto; padding: clamp(64px, 9vw, 112px) clamp(16px, 4vw, 40px) 0;
}
.stop-head { margin-bottom: clamp(24px, 3vw, 36px); }
.stop + .stop { padding-top: clamp(64px, 8vw, 104px); }

/* stop 1: player */
.player { margin: 0; }
.player-frame {
  border-radius: 18px; overflow: hidden; background: #000;
  border: 1px solid rgba(247, 237, 224, 0.12);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9), 0 0 160px -60px rgba(255, 184, 97, 0.25);
}
.player-frame video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.yt-link[hidden] { display: none; }
.chapters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 8px; margin-top: 20px; }
.chapters button {
  width: 100%; min-height: 52px; display: flex; align-items: baseline; gap: 12px; text-align: left;
  padding: 12px 14px; border-radius: 12px; cursor: pointer;
  font: 400 0.95rem/1.4 var(--font-body); color: #E0D4C6; background: transparent; border: 1px solid rgba(247, 237, 224, 0.1);
  transition: border-color .2s, background .2s;
}
.chapters button:hover { border-color: rgba(247, 237, 224, 0.4); background: rgba(247, 237, 224, 0.04); }
.chapters button span { font-family: var(--font-data); font-size: 0.85rem; color: var(--ink); font-weight: 600; flex: none; }
.chapters button.is-on { border-color: var(--after); }
.chapters button.is-on span { color: var(--after); }

/* stop 2: before / after */
.ba { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(12px, 3vw, 40px); max-width: 940px; margin: 0 auto; }
.ba-fig { margin: 0; }
.ba-fig img { width: 100%; border-radius: 16px; border: 1px solid rgba(247, 237, 224, 0.1); background: #120C0A; }
.ba-fig figcaption { margin-top: 12px; font-size: 0.98rem; line-height: 1.5; color: #E0D4C6; }
.ba-mid { display: grid; justify-items: center; gap: 6px; color: var(--after); }
.ba-num { font: 400 clamp(1.6rem, 1rem + 2vw, 2.6rem)/1 var(--font-display); white-space: nowrap; }
.ba-mid svg { width: 72px; height: 12px; }
.logline { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; justify-content: center; margin: 28px auto 8px; font-size: 0.9rem; }
.logline code { color: var(--after); background: rgba(255, 184, 97, 0.07); border: 1px solid rgba(255, 184, 97, 0.2); padding: 6px 10px; border-radius: 8px; }
.logline a { color: var(--muted); font-family: var(--font-data); font-size: 0.8rem; display: inline-flex; align-items: center; min-height: 44px; }
#look .cap { text-align: center; margin: 0 auto; }

/* stop 3: debrief */
.debrief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.db { margin: 0; }
.db img { width: 100%; border-radius: 16px; border: 1px solid rgba(247, 237, 224, 0.1); background: #120C0A; }
.db figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; row-gap: 8px; align-items: center; margin-top: 16px; }
.db-num { grid-row: span 2; font: 400 clamp(2.4rem, 1.6rem + 2.6vw, 3.8rem)/0.9 var(--font-display); }
.db-fail .db-num { color: var(--before); }
.db-pass .db-num { color: var(--after); text-shadow: 0 0 30px rgba(255, 184, 97, 0.3); }
.db-t { font-size: 1rem; line-height: 1.45; color: #E0D4C6; }
.db-src { font-family: var(--font-data); font-size: 0.74rem; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; display: block; padding: 6px 0; min-height: 44px; }
.db-src code { font-size: 1em; color: var(--muted); }
.debrief + .cap { margin-top: 22px; }

/* stop 4: cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card {
  height: 100%; display: grid; align-content: start; gap: 8px; padding: 22px 22px 24px; border-radius: 16px;
  text-decoration: none; color: var(--ink); background: var(--bg-raise); border: 1px solid rgba(247, 237, 224, 0.1);
  transition: border-color .2s, transform .25s var(--ease-out), background .2s;
}
.card:hover { color: var(--ink); border-color: rgba(247, 237, 224, 0.45); transform: translateY(-3px); background: var(--bg-raise-2); }
.card-k { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.card-t { font-weight: 600; font-size: 1.12rem; line-height: 1.3; overflow-wrap: anywhere; }
.card-t::after { content: " \2197"; color: var(--muted); }
.card-d { color: #CFC2B3; font-size: 0.94rem; line-height: 1.5; }

/* ---------- receipts band: the stage-floor boards ---------- */
.receipts {
  margin-top: clamp(72px, 10vw, 128px); background:
    repeating-linear-gradient(0deg, rgba(247, 237, 224, 0.03) 0 1px, transparent 1px 46px),
    linear-gradient(180deg, var(--bg-deep), #170F0C);
  border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft);
}
.receipts-in { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 40px); }
.receipts h2 { margin-bottom: 12px; }
.rc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--rule); }
.rc-cell { display: grid; align-content: start; gap: 10px; padding: 26px 24px 28px 0; border-bottom: 1px solid var(--rule); }
.rc-cell:not(:nth-child(3n + 1)) { padding-left: 24px; border-left: 1px solid var(--rule); }
.rc-num { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; font: 400 clamp(2.3rem, 1.6rem + 2.4vw, 3.9rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.rc-num .pass { color: var(--after); }
.rc-num .fail { color: var(--before); }
.rc-of, .rc-u { color: var(--muted); font-size: 0.55em; }
.rc-u { margin-left: -6px; }
.rc-vs { font: 400 0.95rem/1 var(--font-body); color: var(--muted); align-self: center; }
.rc-le { font-family: var(--font-body); font-weight: 300; font-size: 0.7em; margin-right: 4px; color: var(--muted); }
.rc-l { color: #E0D4C6; font-size: 1rem; line-height: 1.45; max-width: 30ch; }
.rc-src { font-family: var(--font-data); font-size: 0.76rem; color: var(--muted); overflow-wrap: anywhere; display: inline-flex; align-items: center; min-height: 44px; justify-self: start; }
@media (max-width: 900px) {
  .rc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-cell:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .rc-cell:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .rc { grid-template-columns: minmax(0, 1fr); }
  .rc-cell:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* ---------- rules + toy ---------- */
.rules { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.rules .lede { margin-top: 16px; }
.rule-list { margin-top: 28px; display: grid; gap: 4px; }
.rule-list li { display: grid; grid-template-columns: 5.2rem 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--rule); }
.rule-list li:last-child { border-bottom: 1px solid var(--rule); }
.rl-n { font: 400 1.5rem/1 var(--font-display); color: var(--ink); white-space: nowrap; }
.rule-list li:first-child .rl-n { color: var(--after); }
.rule-list li:nth-child(2) .rl-n, .rule-list li:nth-child(3) .rl-n { color: var(--before); }
.rules-text > .cap { margin-top: 16px; }

.toy {
  margin: 0; padding: 18px 18px 16px; border-radius: 20px; background: var(--bg-raise);
  border: 1px solid rgba(247, 237, 224, 0.1); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}
.toy-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 2px 4px 8px; }
.toy-k { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.toy-clock { font-family: var(--font-data); font-size: 0.88rem; color: var(--muted); }
.toy-clock b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.toy-svg { width: 100%; height: auto; border-radius: 14px; background: radial-gradient(ellipse 70% 80% at 50% 100%, #2A1D17, #17100D 70%); touch-action: pan-y; cursor: crosshair; }
.toy-svg:focus-visible { outline-offset: 2px; }
.toy-arc path { stroke: rgba(247, 237, 224, 0.12); stroke-width: 1; stroke-dasharray: 3 6; }
.toy-cone { fill: url(#cone-g); stroke: rgba(255, 184, 97, 0.35); stroke-width: 1; }
.toy-aimline { stroke: rgba(255, 184, 97, 0.55); stroke-width: 1; stroke-dasharray: 2 4; }
.toy-you circle { fill: var(--ink); }
.toy-you text { fill: var(--muted); font: 500 13px var(--font-body); }
.seat-body { transition: none; }
.seat-ring-track { fill: none; stroke: rgba(247, 237, 224, 0.22); stroke-width: 3; }
.seat-ring { fill: none; stroke-width: 3; transform-box: fill-box; transform-origin: center; }
.seat-label { font: 500 12px var(--font-body); }
.seat-glow { fill: var(--after); }
.seat-chime { fill: none; stroke: var(--before); stroke-width: 1.5; opacity: 0; }
.seat-chime.ping { animation: chime 1.6s var(--ease-out) 1; }
@keyframes chime { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.4); } }
.seat-chime { transform-box: fill-box; transform-origin: center; }
.seat.nodding .seat-fig { animation: seatnod .55s var(--ease-out) 1; }
@keyframes seatnod { 0% { transform: translateY(0); } 35% { transform: translateY(5px); } 100% { transform: translateY(0); } }
.seat-fig { transform-box: fill-box; transform-origin: center; }
.seat.pulse .seat-fig { animation: dimpulse 1.1s ease-in-out 1; }
@keyframes dimpulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.toy-verdict #toy-num { font: 400 64px/1 var(--font-display); fill: var(--ink); }
.toy-verdict.pass #toy-num { fill: var(--after); }
.toy-verdict #toy-sub { font: 500 14px var(--font-body); fill: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.toy-meter { position: relative; height: 6px; margin: 14px 4px 0; border-radius: 3px; background: rgba(247, 237, 224, 0.1); overflow: visible; }
.toy-meter-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transform-origin: left; transform: scaleX(0); border-radius: 3px; background: var(--after); }
.toy-meter-pass { position: absolute; left: 70%; top: -5px; bottom: -5px; width: 2px; background: var(--ink); }
.toy-meter-pass::after { content: "70 %"; position: absolute; top: -20px; left: -12px; font: 500 11px var(--font-body); color: var(--muted); white-space: nowrap; }
.toy-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.toy-ctl .btn { min-width: 168px; }
.toy-cov { color: var(--muted); font-size: 0.94rem; }
.toy-cov b { color: var(--ink); font-weight: 600; }
.toy-help { margin-top: 12px; color: #D9CDBF; font-size: 0.92rem; line-height: 1.5; }
.toy .cap { margin-top: 8px; }

.replay { grid-column: 1 / -1; margin-top: 8px; border-top: 1px solid var(--rule); padding-top: 26px; }
.replay-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.replay-t { color: #D9CDBF; max-width: 62ch; }
.term {
  margin: 18px 0 0; max-height: 380px; overflow: auto; padding: 16px 18px; border-radius: 14px;
  background: #100A08; border: 1px solid rgba(247, 237, 224, 0.1); color: #CDBFB0;
  font-size: 0.76rem; line-height: 1.7; white-space: pre; tab-size: 2;
}
.term .ok { color: var(--after); }
.term .bad { color: #FF9C8A; }
.term .dim { color: var(--quiet); }
.replay-sum { margin-top: 12px; font-size: 1rem; color: var(--ink); min-height: 1.6em; }
.replay-sum b { color: var(--after); }

/* ---------- why glasses ---------- */
.glasses { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.glasses-text p { margin-top: 16px; color: #E0D4C6; font-size: var(--step-1); line-height: 1.55; max-width: 36ch; }
.broll { position: relative; margin: 0; }
.broll-v { width: 100%; border-radius: 18px; border: 1px solid rgba(247, 237, 224, 0.1); background: #120C0A; aspect-ratio: 960 / 1060; object-fit: cover; }
.broll-play {
  position: absolute; top: 12px; right: 12px; min-height: 44px; min-width: 44px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font: 500 0.8rem var(--font-body); color: var(--ink); background: rgba(20, 13, 11, 0.78); border: 1px solid rgba(247, 237, 224, 0.2);
}
.broll-play:hover { border-color: var(--ink); }
.broll .cap { margin-top: 12px; }
.arch { grid-column: 1 / -1; margin: clamp(24px, 4vw, 48px) 0 0; }
.arch-link { display: block; border-radius: 16px; overflow: hidden; border: 1px solid rgba(247, 237, 224, 0.12); transition: border-color .2s; }
.arch-link:hover { border-color: rgba(247, 237, 224, 0.45); }
.arch img { width: 100%; }
.arch .cap { margin-top: 12px; }

/* ---------- how it was built ---------- */
.built { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(28px, 4vw, 64px); align-items: center; }
.built > h2, .built > .steps, .built > .prompts { grid-column: 1 / -1; }
.built h2 { max-width: 18ch; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--rule); }
.steps li { padding: 20px 18px 22px 0; }
.steps li + li { padding-left: 18px; border-left: 1px solid var(--rule); }
.sn { display: block; font: 400 1.35rem/1.1 var(--font-display); margin-bottom: 10px; }
.steps li:nth-child(4) .sn { color: var(--before); }
.steps li:nth-child(5) .sn { color: var(--after); }
.steps p { color: #D9CDBF; font-size: 0.96rem; line-height: 1.55; }
.quote { margin: clamp(32px, 5vw, 56px) 0 0; max-width: 30em; }
.quote p { font: 300 clamp(1.35rem, 1rem + 1.4vw, 2.05rem)/1.35 var(--font-body); color: var(--ink); text-wrap: balance; }
.quote footer { margin-top: 12px; color: var(--muted); font-size: 0.9rem; }
.quote footer a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
.pawns { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 18px; margin-top: clamp(32px, 5vw, 56px); justify-content: end; }
.pawns figure { margin: 0; }
.pawns img { width: 100%; aspect-ratio: 398 / 640; object-fit: cover; border-radius: 14px; border: 1px solid rgba(247, 237, 224, 0.1); }
.pawns figure:first-child img { filter: saturate(.9); }
.pawns figcaption { margin-top: 10px; font-size: 0.88rem; line-height: 1.5; color: #CFC2B3; }
.prompts { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; border-top: 1px solid var(--rule); }
.prompts a {
  display: grid; grid-template-columns: 2.4rem 1fr auto; gap: 12px; align-items: baseline;
  min-height: 48px; padding: 12px 4px; border-bottom: 1px solid var(--rule); text-decoration: none; color: #E6DACC; font-size: 0.98rem;
}
.prompts a:hover { color: var(--ink); background: rgba(247, 237, 224, 0.03); }
.pn { font-family: var(--font-data); font-size: 0.85rem; color: var(--muted); }
.pa { font-family: var(--font-data); font-size: 0.74rem; color: var(--quiet); text-align: right; }
.prompts li:nth-child(n + 8) .pn { color: var(--after); }

/* ---------- reproduce ---------- */
.repro-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(24px, 3vw, 36px); }
.repro-col { padding: 24px; border-radius: 18px; background: var(--bg-raise); border: 1px solid rgba(247, 237, 224, 0.1); min-width: 0; }
.repro-col h3 { margin-bottom: 14px; }
.repro-steps { counter-reset: r; display: grid; gap: 10px; }
.repro-steps li { counter-increment: r; position: relative; padding-left: 2rem; color: #E0D4C6; line-height: 1.5; }
.repro-steps li::before { content: counter(r); position: absolute; left: 0; top: 0; font: 400 1rem/1.5 var(--font-display); color: var(--muted); }
.code { display: flex; flex-direction: column; }
.code pre { margin: 0; padding: 16px 18px; border-radius: 12px; background: #100A08; border: 1px solid rgba(247, 237, 224, 0.1); overflow-x: auto; font-size: 0.82rem; line-height: 1.75; color: #E6DACC; }
.code pre code { color: inherit; font-size: 1em; overflow-wrap: normal; }
.copy { order: -1; align-self: flex-end; margin-bottom: 8px; min-height: 44px; min-width: 76px; padding: 6px 12px; border-radius: 8px; cursor: pointer; font: 500 0.8rem var(--font-body); color: var(--ink); background: var(--bg-raise-2); border: 1px solid rgba(247, 237, 224, 0.2); }
.copy:hover { border-color: var(--ink); }
.copy.done { color: var(--after); border-color: var(--after); }
.repro-col .cap { margin-top: 12px; }

/* ---------- honest limits: the cooling band ---------- */
.limits { margin-top: clamp(72px, 10vw, 128px); background: linear-gradient(180deg, #161013, var(--bg-deep)); border-top: 1px solid rgba(191, 208, 242, 0.16); }
.limits-in { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 40px); }
.limits h2 { color: var(--ink); }
.lim { counter-reset: l; margin-top: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.lim li { counter-increment: l; position: relative; padding: 18px 0 18px 2.8rem; border-top: 1px solid rgba(191, 208, 242, 0.14); color: #D9CDBF; line-height: 1.55; }
.lim li::before { content: counter(l); position: absolute; left: 0; top: 17px; font: 400 1.4rem/1.2 var(--font-display); color: var(--before); }
.lim li b { color: var(--ink); display: block; margin-bottom: 2px; }
.lim li:last-child { grid-column: 1 / -1; }
.lim a { color: var(--muted); font-family: var(--font-data); font-size: 0.8rem; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- footer ---------- */
.foot { background: var(--bg-deep); border-top: 1px solid var(--rule-soft); }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 40px) 48px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 18px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px 0 0; color: var(--ink); font-size: 0.95rem; }
.foot p { color: var(--quiet); font-size: 0.86rem; max-width: 80ch; line-height: 1.6; }
.foot p a { color: var(--muted); }

/* ---------- layout breakpoints ---------- */
@media (max-width: 1023px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .look { justify-self: start; max-width: 460px; }
  .rules, .glasses, .built { grid-template-columns: minmax(0, 1fr); }
  .pawns { justify-content: start; }
  .broll { max-width: 520px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li, .steps li + li { padding: 18px 16px 20px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .steps li:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--rule); }
  .steps li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .debrief { grid-template-columns: minmax(0, 1fr); }
  .repro-cols { grid-template-columns: minmax(0, 1fr); }
  .prompts { grid-template-columns: minmax(0, 1fr); }
  .lim { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .toy { padding: 12px 10px 14px; }
  .toy-you text { font-size: 24px; }
  .seat-label { font-size: 22px; }
  .toy-verdict #toy-num { font-size: 88px; }
  .toy-verdict #toy-sub { font-size: 22px; }
  .ba { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
  .ba-mid { grid-auto-flow: column; align-items: center; justify-content: center; gap: 12px; }
  .ba-mid svg { transform: rotate(90deg); width: 40px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .pawns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .prompts a { grid-template-columns: 2.2rem 1fr; }
  .pa { grid-column: 2; text-align: left; }
  .rule-list li { grid-template-columns: 4.2rem 1fr; gap: 12px; }
  .db figcaption { grid-template-columns: minmax(0, 1fr); }
  .db-num { grid-row: auto; }
}
@media (max-height: 820px) and (min-width: 1024px) {
  .look { max-width: 380px; }
  .hero h1 { font-size: clamp(2.1rem, 1rem + 3.2vw, 3.9rem); }
}

/* ---------- motion preferences + print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .lit { animation: none; }
}
@media print {
  body::before, .top, .look-ctl, .toy-ctl, .replay-head .btn, .copy, .broll-play { display: none !important; }
  html, body { background: #fff; color: #000; }
}

/* ---------- 404: an empty seat ---------- */
.nf { max-width: 760px; margin: 0 auto; min-height: calc(100vh - 64px); padding: 48px clamp(16px, 4vw, 40px) 64px; display: grid; align-content: center; justify-items: start; position: relative; isolation: isolate; }
.nf::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 70%; background: radial-gradient(closest-side, rgba(191, 208, 242, 0.10), transparent 85%); pointer-events: none; }
.nf-seat { width: 180px; height: 180px; margin-bottom: 18px; }
.nf h1 { font-family: var(--font-display); font-size: clamp(2.3rem, 1.4rem + 4vw, 4.4rem); line-height: 1.04; text-wrap: balance; }
.nf-p { margin-top: 16px; color: #E0D4C6; font-size: var(--step-1); max-width: 34ch; }
