/* Stone and blueprint: one ground, one ink, one accent. Square corners, round buttons. */
:root {
  --bg: #dfdedb;
  --surface: #d3d2ce;
  --surface-2: #c6c5c0;
  --ink: #26251e;
  --muted: #5f5d55;
  --accent: #2b59ff;
  --warm: #ff8a1f;
  --night: #0e0f13;
  --accent-ink: #ffffff;
  --paper: #f4f3f0;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --m: clamp(20px, 2.4vw, 32px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.4 "Clash Grotesk", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; }
h1, h2, h3, p { margin: 0; }
h2 { font-weight: 400; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); letter-spacing: -0.03em; line-height: 1; }
h3 { font-weight: 500; font-size: var(--step-lead); letter-spacing: -0.01em; line-height: 1.15; }
.muted { color: var(--muted); }
.small { font-size: var(--step-small); }
strong, b { font-weight: 500; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-family: inherit; font-weight: 500; font-size: 1.0625rem; line-height: 1; text-decoration: none; cursor: pointer; transition: transform 0.18s var(--ease), background-color 0.18s; }
.btn:hover { background: #1f47dd; }
.btn:active { transform: scale(0.97); }
.btn.ink { background: var(--ink); color: var(--bg); }
.btn.ink:hover { background: #000; }
.btn.quiet { background: var(--surface-2); color: var(--ink); }
.btn.quiet:hover { background: #b9b8b2; }
.btn.light { background: var(--accent-ink); color: var(--accent); }
.field { min-height: 52px; width: 100%; padding: 0 16px; border: 0; background: var(--paper); color: var(--ink); font: inherit; }
.field::placeholder { color: var(--muted); }

/* ---------- top bar ---------- */
.nav { position: absolute; top: 0; right: 0; z-index: 30; display: flex; gap: clamp(14px, 2vw, 28px); align-items: center; padding: 24px var(--m); font-size: 0.9375rem; }
.nav a { text-decoration: none; }
.nav a:not(.btn):hover { text-decoration: underline; }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.bar { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--m); }
.bar .name { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 1.125rem; text-decoration: none; letter-spacing: -0.01em; }
.bar .name .shield { width: 26px; height: 26px; color: var(--accent); --knock: #fff; }
.brandmark { position: absolute; top: 20px; left: 22px; z-index: 5; display: block; color: var(--accent-ink); --knock: var(--accent); transition: transform 0.18s var(--ease); }
.brandmark:hover { transform: translateY(-2px); }
.brandmark .shield { width: 44px; height: 44px; display: block; }

/* ---------- split stage ---------- */
.split { display: grid; grid-template-columns: 47fr 53fr; }
.stage { position: sticky; top: 0; height: 100svh; padding: 20px 0 20px 20px; z-index: 2; }
.stage-inner { position: relative; height: 100%; overflow: hidden; background: var(--accent); color: var(--accent-ink); }
.col { min-width: 0; padding: 0 var(--m) 0 clamp(32px, 5vw, 72px); }
.col > section { padding: clamp(72px, 9vw, 130px) 0 0; }
.measure { max-width: 46ch; }

/* hero */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 110px !important; padding-bottom: 28vh; }
.hero .lead { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.01em; max-width: 24ch; margin-bottom: 28px; }
.wordmark-box { position: absolute; left: 0; right: 0; top: 0; height: 100svh; z-index: 20; }
.wordmark-box > * { pointer-events: auto; }
.wordmark { position: absolute; left: 0; right: 0; bottom: 34px; margin: 0; padding: 0 var(--m); text-align: right; font-weight: 400; font-size: clamp(64px, 11.2vw, 210px); letter-spacing: -0.045em; line-height: 0.86; white-space: nowrap; }
/* One name crossing two grounds: ink over the stone, and a white copy of the same letters over the blue stage. */
.wordmark::before { content: attr(data-t); position: absolute; inset: 0; padding: 0 var(--m); text-align: right; color: var(--accent-ink); clip-path: inset(-20% 53% -20% 0); }
.hero-wrap { position: relative; }

/* 3D parcel */
.scene { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1100px; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.parcel { --w: clamp(150px, 20vw, 290px); --d: calc(var(--w) * 0.8); --hd: calc(var(--d) / 2); --hw: calc(var(--w) / 2); --hh: calc(var(--w) * 0.4); position: relative; width: var(--w); height: calc(var(--w) * 0.8); transform-style: preserve-3d; transform: translateY(var(--py, 0px)) rotateX(var(--rx, -24deg)) rotateY(var(--ry, 34deg)); will-change: transform; }
.face { position: absolute; left: 50%; top: 50%; backface-visibility: hidden; }
.f-front, .f-back { width: 100%; height: 100%; }
.f-front { background: #ecebe7; transform: translate(-50%, -50%) translateZ(var(--hd)); }
.f-back { background: #b9b8b2; transform: translate(-50%, -50%) rotateY(180deg) translateZ(var(--hd)); }
.f-left, .f-right { width: var(--d); height: 100%; background: #cfcec9; }
.f-right { transform: translate(-50%, -50%) rotateY(90deg) translateZ(var(--hw)); }
.f-left { transform: translate(-50%, -50%) rotateY(-90deg) translateZ(var(--hw)); background: #c2c1bb; }
.f-top, .f-bottom { width: 100%; height: var(--d); background: #f6f5f2; }
.f-top { transform: translate(-50%, -50%) rotateX(90deg) translateZ(var(--hh)); }
.f-bottom { transform: translate(-50%, -50%) rotateX(-90deg) translateZ(var(--hh)); background: #a9a8a2; }
.tape { position: absolute; background: var(--ink); }
.f-top .tape { left: 44%; width: 12%; top: 0; bottom: 0; }
.f-front .tape { left: 44%; width: 12%; top: 0; height: 22%; }
.label { position: absolute; left: 6%; bottom: 9%; width: 54%; padding: 6% 6% 5%; background: #fff; color: var(--ink); font-size: 13px; line-height: 1.2; }
.label b { display: block; font-size: 1.15em; letter-spacing: -0.01em; }
.label svg { display: block; width: 100%; height: auto; margin-top: 8%; }
.ticks { position: absolute; left: 66%; bottom: 10%; display: grid; gap: 5px; font-size: 13px; line-height: 1.1; color: var(--ink); }
.ticks span { display: flex; align-items: center; gap: 6px; opacity: 0; transform: translateX(-8px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.ticks i { width: 0.9em; height: 0.9em; background: var(--accent); border-radius: 50%; display: inline-block; }
.stamp { position: absolute; right: 6%; top: 8%; width: 30%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--accent); color: var(--accent-ink); font-weight: 500; font-size: 13px; line-height: 1; transform: rotate(-9deg) scale(1.7); opacity: 0; transition: opacity 0.3s var(--ease), transform 0.45s var(--ease); }
.stamp b { display: block; font-size: clamp(1.6rem, 2.6vw, 2.6rem); letter-spacing: -0.04em; font-weight: 400; }
[data-state="how2"] .ticks span, [data-state="how3"] .ticks span, [data-state="try"] .ticks span { opacity: 1; transform: none; }
[data-state="how2"] .ticks span:nth-child(2), [data-state="how3"] .ticks span:nth-child(2) { transition-delay: 0.12s; }
[data-state="how2"] .ticks span:nth-child(3), [data-state="how3"] .ticks span:nth-child(3) { transition-delay: 0.24s; }
[data-state="how3"] .stamp, [data-state="try"].pass .stamp { opacity: 1; transform: rotate(-9deg) scale(1); }
[data-state="try"].fail .ticks span:nth-child(3) { opacity: 0.25; }

/* fragments shown on the stage */
.frag { position: absolute; left: 7%; right: 7%; bottom: 6%; background: var(--paper); color: var(--ink); padding: 16px 18px; font-size: 0.9375rem; opacity: 0; transform: translateY(18px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); pointer-events: none; }
.frag table { width: 100%; border-collapse: collapse; }
.frag td { padding: 5px 0; }
.frag td:last-child { text-align: right; }
.frag .ok { color: var(--accent); font-weight: 500; }
[data-state="how1"] .frag.orders, [data-state="how3"] .frag.badge-demo, [data-state="try"] .frag.live { opacity: 1; transform: none; }
.frag.badge-demo { left: auto; right: 7%; width: auto; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.frag.live { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.frag.live output { font-size: clamp(3rem, 5vw, 5rem); letter-spacing: -0.05em; line-height: 0.9; font-weight: 400; }
.shield { width: 20px; height: 20px; flex: none; }

.inline-frag { display: none; margin-top: 20px; background: var(--paper); color: var(--ink); padding: 14px 16px; font-size: 1rem; max-width: 420px; }
.inline-frag table { width: 100%; border-collapse: collapse; }
.inline-frag td { padding: 5px 0; }
.inline-frag td:last-child { text-align: right; color: var(--accent); font-weight: 500; }
.inline-frag.row { align-items: center; gap: 10px; font-weight: 500; color: var(--accent); }
.inline-frag.row span { color: var(--ink); }
.inline-frag ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.inline-frag li { display: flex; align-items: center; gap: 8px; }
.inline-frag li i { width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--accent); }

/* photo stage */
.stage.photos .stage-inner { background: var(--ink); }
.stage.photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 0.7s var(--ease), transform 6s linear; filter: grayscale(1) contrast(1.05); }
.stage.photos[data-state="measures"] img[data-for="measures"],
.stage.photos[data-state="shops"] img[data-for="shops"],
.stage.photos[data-state="price"] img[data-for="price"],
.stage.photos[data-state="faq"] img[data-for="faq"] { opacity: 1; transform: scale(1); }
.caption { position: absolute; left: 14px; bottom: 12px; right: 14px; color: #fff; font-size: var(--step-small); z-index: 2; }

/* how it works */
.how .statement { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; color: var(--muted); transition: color 0.3s; }
.how .statement.on { color: var(--ink); }
.how .statement p:first-child { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2rem); letter-spacing: -0.02em; line-height: 1.08; max-width: 18ch; margin-bottom: 14px; }
.how .statement p + p { max-width: 38ch; }

/* what we check */
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; margin-top: 40px; font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.01em; }
.kinds ul { list-style: none; margin: 0; padding: 0; }
.kinds li:first-child { color: var(--muted); }

/* try it */
.try { background: var(--surface); margin: clamp(72px, 9vw, 130px) calc(-1 * var(--m)) 0 calc(-1 * clamp(32px, 5vw, 72px)); padding: clamp(48px, 6vw, 84px) var(--m) clamp(48px, 6vw, 84px) clamp(32px, 5vw, 72px) !important; }
.try .sliders { display: grid; gap: 22px; margin-top: 32px; max-width: 46ch; }
.try label { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.try label output { font-variant-numeric: tabular-nums; font-weight: 500; }
.try input[type="range"] { grid-column: 1 / -1; width: 100%; height: 32px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.try .result { margin-top: 28px; font-size: var(--step-lead); line-height: 1.2; max-width: 30ch; min-height: 2.4em; }
.try .result b { font-weight: 500; }

/* shops list */
.rows { list-style: none; margin: 40px 0 0; padding: 0; }
.rows li { padding: 16px 0; color: var(--muted); transition: color 0.25s; }
.rows li.on, .rows li:hover, .rows li:focus-within { color: var(--ink); }
.rows .head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: var(--step-lead); letter-spacing: -0.01em; text-decoration: none; }
.rows .head span:last-child { font-variant-numeric: tabular-nums; }
.rows .more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.rows .more > div { overflow: hidden; font-size: 1rem; max-width: 40ch; }
.rows li.on .more, .rows li:focus-within .more { grid-template-rows: 1fr; }
.rows .more p { padding-top: 8px; }

/* pricing */
.menu { margin-top: 40px; display: grid; gap: 44px; }
.menu .item { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; font-size: var(--step-lead); letter-spacing: -0.01em; margin-top: 18px; }
.menu .item span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu .desc { max-width: 36ch; margin-top: 4px; }

/* faq */
.faq .answers { margin-top: 40px; display: grid; gap: 20px; max-width: 52ch; line-height: 1.5; }

/* cta, full width */
.cta { background: var(--accent); color: var(--accent-ink); margin-top: clamp(96px, 11vw, 160px); min-height: 88svh; display: grid; grid-template-columns: 5fr 5fr; gap: 40px; align-items: end; padding: clamp(40px, 6vw, 90px) var(--m); }
.cta h2 { font-size: clamp(3.25rem, 7vw, 7rem); line-height: 0.92; letter-spacing: -0.045em; max-width: 8ch; }
.cta .after { margin-top: 20px; max-width: 34ch; }
.dialog { align-self: center; justify-self: center; width: min(100%, 440px); background: var(--paper); color: var(--ink); padding: 28px; box-shadow: 0 30px 60px -20px rgba(10, 20, 60, 0.55); }
.dialog h3 { margin-bottom: 6px; }
.dialog form { display: grid; gap: 14px; margin-top: 20px; }
.dialog .field { background: #fff; outline: 2px solid var(--surface); }
.dialog .btn { width: 100%; min-height: 52px; }
.foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: end; padding: 22vh var(--m) 28px; font-size: 0.9375rem; }
.foot nav { display: flex; gap: 24px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot > :last-child { text-align: right; }
.credits { padding: 0 var(--m) 28px; max-width: 60ch; }

/* entrances */
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-rise].in { opacity: 1; transform: none; }

/* ---------- profile ---------- */
.gradeface { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 3vw, 44px); }
.gradeface .num { font-size: clamp(9rem, 24vw, 26rem); letter-spacing: -0.07em; line-height: 0.78; font-weight: 400; }
.gradeface .num small { font-size: 0.2em; letter-spacing: -0.02em; margin-left: 0.2em; }
.gradeface .state { font-size: var(--step-lead); line-height: 1.15; max-width: 16ch; }
.stage.off .stage-inner { background: var(--surface-2); color: var(--ink); }
.profile h1 { font-weight: 400; font-size: var(--step-head); letter-spacing: -0.035em; line-height: 0.98; }
.host { display: inline-block; margin-top: 18px; padding: 8px 14px; background: var(--ink); color: var(--bg); font-weight: 500; letter-spacing: 0; word-break: break-all; }
.record { width: 100%; border-collapse: collapse; margin-top: 28px; }
.record td { padding: 14px 0; vertical-align: baseline; }
.record tr + tr td { border-top: 2px solid var(--surface); }
.record td:last-child { text-align: right; white-space: nowrap; font-size: var(--step-lead); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.record td:last-child span { font-size: var(--step-small); color: var(--muted); margin-left: 6px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.tile { display: block; text-decoration: none; background: var(--surface); transition: transform 0.25s var(--ease), background-color 0.2s; }
.tile:hover { transform: translateY(-4px); background: var(--surface-2); }
.tile img, .tile .ph { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; font-size: 3rem; letter-spacing: -0.04em; color: var(--muted); }
.tile span { display: block; padding: 12px 14px 14px; font-weight: 500; }

/* ---------- dashboard (an app screen: quiet panels, plain tables) ---------- */
.app { max-width: 1120px; margin: 0 auto; padding: 8px var(--m) 80px; }
.app h1 { font-weight: 400; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); letter-spacing: -0.03em; line-height: 1; }
.app-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; margin-top: 28px; align-items: start; }
.panel { background: var(--paper); padding: clamp(20px, 2.4vw, 32px); }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 1.375rem; letter-spacing: -0.015em; font-weight: 500; margin-bottom: 14px; }
.scoreline { display: flex; align-items: flex-end; gap: 20px; margin: 4px 0 8px; }
.scoreline .num { font-size: clamp(5rem, 9vw, 8rem); letter-spacing: -0.06em; line-height: 0.8; }
.pill { display: inline-block; padding: 6px 12px; font-weight: 500; font-size: 0.9375rem; }
.pill.ok { background: var(--accent); color: var(--accent-ink); }
.pill.wait { background: var(--surface-2); }
.pill.no { background: var(--ink); color: var(--bg); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stats .n { font-size: 2.75rem; letter-spacing: -0.04em; line-height: 1; }
pre.snippet { margin: 14px 0; padding: 14px; background: var(--ink); color: var(--bg); font: 0.875rem/1.45 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; }
.checks label { display: flex; gap: 10px; align-items: center; padding: 6px 0; cursor: pointer; }
.checks input { width: 20px; height: 20px; accent-color: var(--accent); }
.num-field { width: 96px; min-height: 44px; padding: 0 12px; border: 0; background: var(--bg); font: inherit; }
.panel ul { margin: 8px 0 0; padding-left: 1.1em; }
.note { max-width: 62ch; margin: 80px auto; padding: 0 var(--m); }
.note h1 { font-weight: 400; font-size: var(--step-head); letter-spacing: -0.035em; line-height: 1; margin-bottom: 16px; }

/* ---------- phones ---------- */
@media (max-width: 860px) {
  .split { display: block; }
  /* On a phone nothing is pinned over the text: the parcel opens the page and each step carries its own fragment. */
  .stage { position: relative; height: 46svh; padding: 12px 12px 0; }
  .stage.photos { height: 54svh; }
  .stage .frag { display: none; }
  .inline-frag { display: block; }
  .inline-frag.row { display: inline-flex; }
  .how .statement { color: var(--ink); }
  .col { padding: 0 20px; }
  .col .bar { padding-left: 0; padding-right: 0; }
  .nav { padding: 20px 24px; z-index: 40; color: var(--accent-ink); }
  .brandmark { top: 14px; left: 16px; }
  .brandmark .shield { width: 38px; height: 38px; }
  .nav a:not(.btn):not(.keep) { display: none; }
  .nav .btn { background: var(--accent-ink); color: var(--accent); }
  .hero { min-height: 0; padding-top: 0 !important; padding-bottom: 40px; display: block; }
  .wordmark-box { position: static; height: auto; }
  .wordmark { position: static; text-align: left; padding: 0; font-size: 15.5vw; margin: 18px 0 18px; }
  .wordmark::before { display: none; }
  .parcel { --w: clamp(130px, 40vw, 200px); }
  .how .statement { min-height: 0; padding: 36px 0 0; }
  .kinds { grid-template-columns: 1fr 1fr; font-size: 1.0625rem; gap: 32px 20px; }
  .try { margin-left: -20px; margin-right: -20px; padding-left: 20px !important; padding-right: 20px !important; }
  .cta { grid-template-columns: 1fr; align-items: start; min-height: 0; padding: 56px 20px; }
  .cta h2 { font-size: 13vw; }
  .foot { grid-template-columns: 1fr; padding: 16vh 20px 20px; gap: 8px; }
  .foot > :last-child { text-align: left; }
  .foot nav { flex-wrap: wrap; gap: 8px 20px; }
  .credits { padding: 0 20px 24px; }
  .gradeface .num { font-size: 40vw; }
  .app-grid { grid-template-columns: 1fr; }
  .frag { font-size: 0.875rem; padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Without motion the stage shows its finished state: every fragment at once. */
  .frag, .ticks span { opacity: 1; transform: none; transition: none; }
  .stamp { opacity: 1; transform: rotate(-9deg); transition: none; }
  .frag.live { bottom: auto; top: 6%; }
  .frag.badge-demo { bottom: auto; top: calc(6% + 120px); }
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  .stage.photos img { transition: opacity 0.2s; transform: none; }
  .btn, .tile { transition: none; }
}

/* ---------- the 3D scene (home page opening) ----------
   Night ground, cardboard parcels, and two signal colours taken from opposite sides of the wheel:
   blue for kept promises, amber for late ones. */
.scene3d { background: var(--night); color: var(--paper); position: relative; }
.scene3d canvas { display: none; }
.scene3d .topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px var(--m); position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand .shield { width: 30px; height: 30px; color: var(--accent); --knock: #fff; }
.topbar nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); font-size: 0.9375rem; }
.topbar nav a { text-decoration: none; }
.topbar nav a:not(.btn):hover { text-decoration: underline; }
.topbar .btn { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.btn.line { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn.line:hover { background: var(--paper); color: var(--night); box-shadow: none; }
.beats { padding: 0 var(--m); }
.beat { max-width: 40rem; padding: clamp(48px, 9vh, 96px) 0; }
.beat h1 { font-weight: 400; font-size: clamp(3rem, 2rem + 5.2vw, 7rem); letter-spacing: -0.045em; line-height: 0.92; margin-bottom: 24px; }
.beat h2 { font-weight: 400; font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4.5rem); letter-spacing: -0.04em; line-height: 0.95; margin-bottom: 20px; }
.beat .lead { font-size: var(--step-lead); line-height: 1.25; max-width: 30ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: var(--step-lead); letter-spacing: -0.01em; }
.legend li { display: flex; align-items: center; gap: 12px; }
.legend i { width: 0.8em; height: 0.8em; flex: none; display: block; }
i.w-ok, rect.w-ok { background: var(--accent); fill: var(--accent); }
i.w-late, rect.w-late { background: var(--warm); fill: var(--warm); }
i.w-fail, rect.w-fail { background: #5b5e6b; fill: #5b5e6b; }
.scene3d .sliders { display: grid; gap: 16px; max-width: 26rem; }
.scene3d .sliders label { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.scene3d .sliders output { font-variant-numeric: tabular-nums; font-weight: 500; }
.scene3d input[type="range"] { grid-column: 1 / -1; width: 100%; height: 32px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.scene3d .result { margin-top: 18px; font-size: var(--step-lead); line-height: 1.2; }
.scene3d .result b { font-weight: 500; }
.rail { display: none; }
.still { padding: 0 var(--m) clamp(48px, 8vh, 96px); max-width: 44rem; }
.wall { display: block; width: 100%; height: auto; }

/* With WebGL running, the section becomes one pinned screen that the scroll plays through. */
.scene3d.gl { height: 440vh; }
.scene3d.gl .pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.scene3d.gl canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.scene3d.gl .still { display: none; }
.scene3d.gl .topbar { position: absolute; left: 0; right: 0; top: 0; }
.scene3d.gl .beats { position: absolute; inset: 0; padding: 0; pointer-events: none; }
.scene3d.gl .beat { position: absolute; left: var(--m); bottom: clamp(40px, 9vh, 96px); width: min(40rem, 46vw); padding: 0; opacity: 0; visibility: hidden; transform: translateY(26px); }
.scene3d.gl.ready .beat { transition: opacity 0.45s var(--ease), transform 0.55s var(--ease), visibility 0s 0.45s; }
.scene3d.gl[data-beat="0"] .beat[data-b="0"], .scene3d.gl[data-beat="1"] .beat[data-b="1"], .scene3d.gl[data-beat="2"] .beat[data-b="2"], .scene3d.gl[data-beat="3"] .beat[data-b="3"] { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.scene3d.gl.ready[data-beat="0"] .beat[data-b="0"], .scene3d.gl.ready[data-beat="1"] .beat[data-b="1"], .scene3d.gl.ready[data-beat="2"] .beat[data-b="2"], .scene3d.gl.ready[data-beat="3"] .beat[data-b="3"] { transition: opacity 0.45s var(--ease) 0.15s, transform 0.55s var(--ease) 0.15s, visibility 0s; }
/* The scroll shown as a parcel's tracking line. */
.scene3d.gl .rail { display: grid; grid-template-rows: repeat(4, 1fr); position: absolute; right: var(--m); top: 22vh; height: 56vh; margin: 0; padding: 0 22px 0 0; list-style: none; text-align: right; font-size: var(--step-small); color: #a9acb8; }
.scene3d.gl .rail::before { content: ""; position: absolute; right: 5px; top: 0; bottom: 0; width: 2px; background: #2a2c36; }
.scene3d.gl .rail li { align-self: start; line-height: 1; transition: color 0.3s; }
.scene3d.gl[data-beat="0"] .rail li:nth-child(1), .scene3d.gl[data-beat="1"] .rail li:nth-child(2), .scene3d.gl[data-beat="2"] .rail li:nth-child(3), .scene3d.gl[data-beat="3"] .rail li:nth-child(4) { color: var(--paper); }
.scene3d.gl .rail .dot { position: absolute; right: 0; top: calc(var(--p, 0) * 78%); width: 12px; height: 10px; background: var(--accent); }

.signoff { margin: 0; padding: 12vh var(--m) 0; font-size: clamp(64px, 17.5vw, 330px); letter-spacing: -0.055em; line-height: 0.8; white-space: nowrap; overflow: hidden; color: var(--ink); }
.foot { padding-top: 6vh !important; }

/* order walls on shop pages */
.wallbox { margin-top: 22px; max-width: 30rem; }
.wallbox .legend { font-size: var(--step-small); display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.stage .wallbox rect.w-ok { fill: #ffffff; }
.stage .wallbox i.w-ok { background: #ffffff; }
.stage .wallbox rect.w-fail, .stage .wallbox i.w-fail { fill: var(--night); background: var(--night); }
.wallbox.onpaper { margin: 6px 0 22px; }
.wallbox.onpaper rect.w-fail, .wallbox.onpaper i.w-fail { fill: var(--ink); background: var(--ink); }

@media (max-width: 860px) {
  .topbar nav a:not(.btn) { display: none; }
  .scene3d.gl { height: 400vh; }
  .scene3d.gl .beat { left: 20px; right: 20px; width: auto; bottom: 28px; }
  .scene3d.gl .rail { display: none; }
  .beat h1 { font-size: clamp(2.75rem, 12.5vw, 4rem); }
  .beat h2 { font-size: clamp(2rem, 9vw, 3rem); }
  .scene3d .sliders { gap: 8px; }
  .scene3d input[type="range"] { height: 26px; }
  .gradeface .num { font-size: 34vw; }
}
