:root {
  --void: #000000;
  --graphite: #17181A;
  --alloy: #8D9096;
  --frost: #E7E9E4;
  --signal: #D8FF2E;
  --rule: #2A2B2E;
  --gutter: clamp(16px, 4vw, 56px);
  --step--1: clamp(0.83rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-3: clamp(2rem, 1.5rem + 2.4vw, 3.5rem);
  --step-5: clamp(2.6rem, 1.6rem + 5vw, 6rem);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--frost);
  font-family: 'Mona Sans', system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  font-stretch: 100%;
}
h1, h2, h3 { margin: 0; font-weight: 760; font-stretch: 125%; letter-spacing: -0.035em; line-height: 0.95; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 50; background: var(--signal); color: #000; padding: 10px 14px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  border: 1px solid var(--rule); border-radius: 999px;
  background: transparent; color: var(--frost);
  font: inherit; font-weight: 600; font-size: var(--step--1); font-stretch: 112%;
  text-decoration: none; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.btn:hover { border-color: var(--alloy); }
.btn-lit { background: var(--signal); border-color: var(--signal); color: #000; }
.btn-lit:hover { background: #E6FF6E; border-color: #E6FF6E; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  padding: 14px var(--gutter);
  background: linear-gradient(#000 30%, rgba(0,0,0,0));
}
.wordmark { font-weight: 800; font-stretch: 125%; letter-spacing: -0.04em; font-size: 1.4rem; text-decoration: none; }
.bar nav { display: flex; gap: 26px; margin-left: auto; }
.bar nav a { text-decoration: none; color: var(--alloy); font-size: var(--step--1); font-weight: 500; }
.bar nav a:hover { color: var(--frost); }
.bar .btn { min-height: 40px; padding: 0 18px; }

/* ---------- bench (pinned teardown) ---------- */
.bench { position: relative; height: 620vh; }
.bench-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#pc { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bench-stage::after { content: ''; position: absolute; inset: auto auto 0 0; width: min(60rem, 100%); height: 55%; background: radial-gradient(ellipse at 0% 100%, rgba(0,0,0,.85), rgba(0,0,0,0) 65%); pointer-events: none; z-index: 1; }

.bench-intro {
  position: absolute; left: var(--gutter); bottom: clamp(28px, 7vh, 72px);
  max-width: 40rem; z-index: 2;
}
.bench-intro h1 { font-size: clamp(2.6rem, 1.4rem + 4vw, 5.4rem); max-width: 12ch; }
.bench-intro p { margin-top: 24px; color: var(--alloy); max-width: 30ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.teardown { list-style: none; margin: 0; padding: 0; position: absolute; left: var(--gutter); bottom: clamp(28px, 7vh, 72px); width: min(30rem, calc(100% - 2 * var(--gutter))); z-index: 2; }
.teardown li { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .45s; pointer-events: none; }
.teardown li.on { opacity: 1; transform: none; }
.teardown h2 { font-size: var(--step-3); }
.teardown p { margin-top: 14px; color: var(--alloy); max-width: 42ch; }
.teardown-count { position: absolute; right: var(--gutter); bottom: clamp(28px, 7vh, 72px); font-stretch: 87.5%; font-variant-numeric: tabular-nums; color: var(--alloy); font-size: var(--step--1); opacity: 0; transition: opacity .4s; z-index: 2; }
.teardown-count.on { opacity: 1; }
.teardown-count span { color: var(--frost); }

.marker { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 1; opacity: 0; transition: opacity .3s; pointer-events: none; }
.marker.on { opacity: 1; }
.marker span { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border: 2px solid var(--signal); border-radius: 50%; }
.marker span::after { content: ''; position: absolute; inset: 4px; background: var(--signal); border-radius: 50%; }

.lighting { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lighting-label { font-size: 0.75rem; font-stretch: 87.5%; color: var(--alloy); margin-bottom: 4px; }
.lighting button { width: 26px; height: 26px; border-radius: 50%; padding: 0; cursor: pointer; background: var(--c); border: 2px solid #000; box-shadow: 0 0 0 1px var(--rule); transition: box-shadow .2s, transform .2s; }
.lighting button:hover { transform: scale(1.12); }
.lighting button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--frost); }
.lighting .sw-cycle { background: conic-gradient(#FF3448, #FF6B2C, #D8FF2E, #6FDCFF, #9C7CFF, #FF3448); }
.lighting .sw-off { background: linear-gradient(135deg, transparent 45%, var(--alloy) 45% 55%, transparent 55%), var(--void); }
/* Scroll cue: bottom-centre on the opening screen only. The PC is scroll-driven, not a free camera. */
.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(20px, 4.5vh, 44px); transform: translateX(-50%); z-index: 3;
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left;
  padding: 9px 18px 9px 12px; border: 1px solid #2c2d31; border-radius: 999px;
  background: rgba(0, 0, 0, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--frost); font: inherit; cursor: pointer; transition: opacity .35s, visibility .35s, border-color .2s;
}
.scroll-cue:hover { border-color: #45474c; }
.scroll-cue.gone { opacity: 0; visibility: hidden; }
.scroll-mouse { grid-row: 1 / 3; position: relative; width: 20px; height: 32px; border: 2px solid var(--frost); border-radius: 11px; }
.scroll-mouse span { position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--signal); animation: cue-wheel 1.8s cubic-bezier(.45, 0, .55, 1) infinite; }
.scroll-text { font-size: 0.78rem; font-weight: 700; font-stretch: 112%; letter-spacing: 0.14em; line-height: 1.3; align-self: end; }
.scroll-sub { align-self: start; }
.scroll-sub { font-size: 0.75rem; color: #a9acb1; line-height: 1.2; }
.scroll-cue:hover .scroll-mouse, .scroll-cue.nudge .scroll-mouse { border-color: var(--signal); }
.scroll-cue.nudge { animation: cue-nudge .9s cubic-bezier(.3, 0, .2, 1); }
@keyframes cue-wheel { 0% { transform: translateY(0); opacity: 1; } 65% { transform: translateY(10px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes cue-nudge { 0%, 100% { transform: translateX(-50%) translateY(0); } 30% { transform: translateX(-50%) translateY(-10px); } 60% { transform: translateX(-50%) translateY(2px); } }

.bench-noscript { position: absolute; right: var(--gutter); top: 45%; max-width: 22rem; color: var(--alloy); }

/* ---------- sections ---------- */
.section { padding: clamp(96px, 14vw, 180px) var(--gutter) 0; max-width: 1360px; margin: 0 auto; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4.6rem); max-width: 13ch; }
.section-head p { color: var(--alloy); max-width: 44ch; }
.fine { margin-top: 20px; font-size: var(--step--1); color: var(--alloy); max-width: 70ch; }

/* film break: full-bleed silent loop between the teardown and the builds */
.film { position: relative; height: min(78vh, 56.25vw); min-height: 360px; overflow: hidden; background: var(--void); }
.film-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film::before, .film::after { content: ''; position: absolute; left: 0; right: 0; height: 28%; z-index: 1; pointer-events: none; }
.film::before { top: 0; background: linear-gradient(var(--void), rgba(0,0,0,0)); }
.film::after { bottom: 0; background: linear-gradient(rgba(0,0,0,0), var(--void)); }
.film-line { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(20px, 5vh, 48px); max-width: 26ch; font-size: clamp(1.25rem, 0.9rem + 1.1vw, 1.9rem); font-weight: 720; font-stretch: 118%; letter-spacing: -0.025em; line-height: 1.1; text-align: right; }

/* builds table */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--rule); }
.specs { width: 100%; min-width: 720px; border-collapse: collapse; font-stretch: 87.5%; font-variant-numeric: tabular-nums; }
.specs th, .specs td { text-align: left; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.specs .shots td { padding: 0 20px 0 0; border-bottom: 0; }
.specs .shots img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; background: var(--graphite); }
.specs thead th { font-stretch: 112%; font-weight: 700; font-size: var(--step-1); letter-spacing: -0.02em; padding-top: 22px; padding-bottom: 22px; }
.specs tbody th { color: var(--alloy); font-weight: 500; width: 16%; }
.specs td { font-weight: 500; }
.specs .price th, .specs .price td { padding-top: 22px; }
.specs .price td { font-stretch: 112%; font-weight: 760; font-size: var(--step-3); letter-spacing: -0.03em; line-height: 1; }

/* service */
.service-film { margin: 0 0 clamp(48px, 6vw, 80px); }
.service-film video { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 6px; background: var(--graphite); }
.service-film figcaption { margin-top: 12px; font-size: var(--step--1); color: var(--alloy); }
.service-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px 72px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.steps li { counter-increment: step; border-top: 1px solid var(--rule); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-stretch: 87.5%; font-variant-numeric: tabular-nums; color: var(--alloy); font-size: var(--step--1); margin-bottom: 10px; }
.steps h3 { font-size: var(--step-1); letter-spacing: -0.02em; }
.steps p { margin-top: 10px; color: var(--alloy); }

.receipt { margin: 0; background: var(--graphite); border-radius: 6px; padding: 28px; position: sticky; top: 96px; }
.receipt figcaption { font-weight: 700; font-stretch: 112%; letter-spacing: -0.02em; font-size: var(--step-1); }
.receipt dl { margin: 22px 0 0; }
.receipt dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px dashed #34363a; font-stretch: 87.5%; font-variant-numeric: tabular-nums; }
.receipt dt { color: var(--alloy); }
.receipt dd { margin: 0; font-weight: 600; }
.receipt > p { margin-top: 16px; font-size: var(--step--1); color: var(--alloy); }

.prices { list-style: none; margin: clamp(56px, 7vw, 88px) 0 0; padding: 0; border-top: 1px solid var(--rule); }
.prices li { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.prices li span:last-child { font-stretch: 112%; font-weight: 760; font-variant-numeric: tabular-nums; font-size: var(--step-1); letter-spacing: -0.02em; }

/* upgrade picker */
.picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 72px; align-items: start; }
.picker fieldset { border: 0; margin: 0; padding: 0; }
.picker legend { font-weight: 600; margin-bottom: 14px; color: var(--alloy); }
.picker label { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule); cursor: pointer; font-size: var(--step-1); font-stretch: 106%; font-weight: 500; letter-spacing: -0.01em; }
.picker label:last-child { border-bottom: 1px solid var(--rule); }
.picker input { appearance: none; width: 18px; height: 18px; flex: none; margin: 0; border: 2px solid var(--alloy); border-radius: 50%; display: grid; place-items: center; }
.picker input::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); transform: scale(0); transition: transform .15s; }
.picker input:checked { border-color: var(--signal); }
.picker input:checked::after { transform: scale(1); }
.picker label:has(input:not(:checked)) span { color: var(--alloy); }
.verdict { background: var(--graphite); border-radius: 6px; padding: clamp(24px, 3vw, 40px); min-height: 100%; }
.verdict-img { display: block; width: calc(100% + 2 * clamp(24px, 3vw, 40px)); max-width: none; height: auto; aspect-ratio: 2 / 1; object-fit: cover; margin: calc(-1 * clamp(24px, 3vw, 40px)) calc(-1 * clamp(24px, 3vw, 40px)) 24px; border-radius: 6px 6px 0 0; transition: opacity .25s; }
.verdict-img.swap { opacity: 0; }
.verdict-part { font-size: var(--step-3); font-weight: 760; font-stretch: 125%; letter-spacing: -0.035em; line-height: 0.95; }
#v-why { margin-top: 18px; color: var(--alloy); max-width: 46ch; }
.verdict-cost { margin-top: 24px; font-stretch: 87.5%; font-variant-numeric: tabular-nums; font-weight: 600; }

/* book */
.book { padding-bottom: clamp(96px, 12vw, 160px); }
.book-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px 56px; align-items: start; }
.book-shot { margin: 0; }
.book-shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--graphite); }
.book-shot figcaption { margin-top: 12px; font-size: var(--step--1); color: var(--alloy); }
.form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 980px; }
.form label { display: grid; gap: 8px; font-size: var(--step--1); color: var(--alloy); font-weight: 500; }
.form .wide { grid-column: 1 / -1; }
.form .opt { color: #5f6267; }
.form input, .form select, .form textarea {
  font: inherit; font-size: var(--step-0); color: var(--frost);
  background: var(--graphite); border: 1px solid var(--rule); border-radius: 6px;
  padding: 13px 14px; width: 100%;
}
.form textarea { resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline-offset: 0; }
.form [aria-invalid="true"] { border-color: #FF6B5B; }
.form button { justify-self: start; }
.form-msg { grid-column: 1 / -1; min-height: 1.5em; color: var(--frost); }
.form-msg.err { color: #FF8A7C; }

.foot { border-top: 1px solid var(--rule); padding: 40px var(--gutter) 48px; display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline; color: var(--alloy); font-size: var(--step--1); }
.foot .wordmark { color: var(--frost); }
.foot .fine { margin: 0 0 0 auto; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .bar nav { display: none; }
  .bar { justify-content: space-between; }
  .bench { height: 540vh; }
  .bench-intro { top: 88px; bottom: auto; }
  .bench-intro p { max-width: 34ch; }
  .actions { margin-top: 22px; }
  .teardown-count { bottom: auto; top: 76px; }
  .lighting { right: 12px; gap: 8px; }
  .lighting button { width: 22px; height: 22px; }
  .section-head, .service-grid, .picker { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .receipt { position: static; }
  .form { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .book-shot { order: -1; }
  .film { height: 70vh; }
  .film-line { font-size: 1.25rem; right: auto; left: var(--gutter); text-align: left; max-width: 24ch; }
  .foot .fine { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .teardown li, .marker, .teardown-count, .btn, .scroll-cue { transition: none; }
  .scroll-mouse span, .scroll-cue.nudge { animation: none; }
}
