/* Folkware one-pager. Shared by the Eddy and Benny sites (each folder keeps
   its own copy so each Vercel project deploys alone). Brand tokens live in a
   <style> block at the top of each index.html; nothing here names a brand. */

@font-face { font-family: 'Unbounded'; font-weight: 500 700; font-display: swap; src: url('fonts/unbounded-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-sans-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-mono-500-latin.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --surface: #FFFFFF;
  --muted: #5A6372;
  --line: #DFE2E6;
  --radius-btn: 14px;
  --radius-card: 20px;
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 9; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.04; }
h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-soft); max-width: 34em; }
.label { font: 500 12px/1.2 var(--mono); letter-spacing: 0.06em; color: var(--muted); }

/* Buttons: 14px corners in every Folkware app. One primary per screen. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: var(--radius-btn);
  font: 600 15px/1 var(--display); letter-spacing: -0.01em;
  border: 0; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); transform: translateY(-1px); box-shadow: 0 8px 24px var(--btn-glow); }
.btn-ghost { min-height: 44px; padding: 0 16px; background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); font-size: 14px; }
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 96%, transparent);  -webkit- }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav .brand img { height: 34px; width: auto; }
.nav .brand { display: inline-flex; padding: 6px 0; }

/* Hero */
.hero { position: relative; padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 80px); }
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { max-width: 600px; display: grid; gap: 22px; }
.status {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text);
  font: 500 13px/1 var(--mono); letter-spacing: 0.02em;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }
.quiet { font-size: 15px; color: var(--muted); }
.quiet a { color: var(--ink); font-weight: 400; }

/* Product shot: desktop with the phone tucked over its corner */
.shot { padding: 0 0 clamp(56px, 8vw, 104px); }
.stage { position: relative; padding-right: clamp(0px, 9vw, 120px); }
.screen {
  border-radius: 16px; overflow: hidden; background: var(--surface);
  box-shadow: 0 1px 0 var(--line), 0 30px 80px -30px rgba(11, 31, 58, 0.35), 0 0 0 1px rgba(11, 31, 58, 0.06);
}
.screen .bar { display: flex; gap: 7px; padding: 12px 14px; background: #F4F5F7; border-bottom: 1px solid var(--line); }
.screen .bar i { width: 11px; height: 11px; border-radius: 50%; background: #D5D9DF; }
.phone {
  position: absolute; right: 0; bottom: -40px; width: clamp(150px, 22vw, 270px);
  border-radius: 34px; overflow: hidden; background: #0B1F3A; padding: 8px;
  box-shadow: 0 40px 70px -25px rgba(11, 31, 58, 0.55);
}
.phone img { border-radius: 27px; }
.shot figcaption { margin-top: 64px; text-align: center; }

/* What it does: a full-bleed brand block with pinned-up cards (Rory-style juice). */
.does {
  position: relative; overflow: hidden; padding: clamp(64px, 9vw, 120px) 0;
  background-color: var(--block); color: #fff;
  background-image: var(--block-pattern, none); background-size: var(--block-size, auto);
}
.does h2 { max-width: 16em; color: #fff; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); margin-top: clamp(32px, 5vw, 56px); }
.point {
  display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: var(--radius-card);
  background: var(--surface); color: var(--ink); box-shadow: 0 30px 50px -28px rgba(11, 31, 58, 0.6);
  transform: rotate(var(--tilt, 0deg)); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1);
}
.point:nth-child(1) { --tilt: -1.6deg; } .point:nth-child(2) { --tilt: 1.2deg; margin-top: 24px; } .point:nth-child(3) { --tilt: -0.8deg; }
.point:hover { transform: rotate(0) translateY(-4px); }
.point .icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--accent); color: #fff;
}
.point .icon svg { width: 26px; height: 26px; }
.point p { color: var(--ink-soft); font-size: 16px; }

/* Tape: a tilted marquee band between sections, like the hazard tape on getrory. */
.tape { position: relative; z-index: 2; margin: 0 -4vw -44px; transform: rotate(-1.6deg); background: var(--tape-bg); color: var(--tape-ink); overflow: hidden; box-shadow: 0 14px 30px -18px rgba(11, 31, 58, 0.5); }
.tape::before, .tape::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; background: var(--tape-edge); }
.tape::before { top: 0; } .tape::after { bottom: 0; }
.tape-run { display: flex; width: max-content; gap: 0; padding: 20px 0; }
.tape-run span { display: inline-flex; align-items: center; gap: 18px; padding: 0 18px; font: 600 15px/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; }
.tape-run img { width: 30px; height: 26px; object-fit: contain; }
.tape-run { background: var(--tape-ticks, none); }
.tape-run .tn { font: 600 13px/1 var(--mono); font-style: normal; letter-spacing: 0; padding: 5px 7px; border-radius: 4px; background: var(--accent); color: #fff; }

/* Footing: not one of the crew, the ground they all stand on. */
.plank { position: relative; z-index: 1; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; margin-top: 26px; padding: 14px 18px; border-radius: 16px; background: var(--ink); color: rgba(255, 255, 255, 0.8); font-size: 15px; box-shadow: 0 6px 0 #1A1A1A22; }
.plank img { width: 44px; height: 44px; }
.plank b { color: #fff; font: 600 16px/1.3 var(--display); letter-spacing: -0.01em; display: block; }
.pain + .tape { margin-top: -28px; }

/* What it costs you now: the dark band, Rory-style, with pinned cards. */
.pain { padding: clamp(64px, 9vw, 112px) 0 clamp(80px, 10vw, 128px); background: var(--ink); color: #fff; }
.pain .label { color: rgba(255, 255, 255, 0.6); text-transform: uppercase; }
.pain h2 { color: #fff; max-width: 17em; margin-top: 12px; }
.pain .point .icon { background: #FCE4DE; color: #C2410C; }
.pain-end { margin-top: clamp(32px, 4vw, 48px); max-width: 36em; font: 600 clamp(19px, 2vw, 24px)/1.35 var(--display); letter-spacing: -0.02em; color: #fff; }

/* Hero: a little brand pattern behind it, fading out. */
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--hero-pattern, none); -webkit-mask-image: radial-gradient(120% 90% at 70% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(120% 90% at 70% 40%, #000 30%, transparent 75%); pointer-events: none; }
h1 mark { color: inherit; background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 0.06em; }

/* Crew: one job handed along the Folkware crew, from tender to paid. */
.crew { padding: clamp(56px, 8vw, 96px) 0; }
.crew-after { padding-top: 0; }
.crew-head { max-width: 46em; }
.crew-head p { max-width: 40em; }
.crew-head p { color: var(--ink-soft); margin-top: 16px; }
.crew-track {
  margin-top: clamp(28px, 4vw, 48px); padding: clamp(24px, 4vw, 44px) clamp(12px, 3vw, 32px);
  background: var(--surface); border-radius: 28px; box-shadow: 0 0 0 2px var(--ink), 8px 8px 0 var(--accent);
}
.crew-line { --step: 2; list-style: none; margin: 0; padding: 86px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.crew-line::before, .crew-line::after { content: ""; position: absolute; left: 16.667%; right: 16.667%; top: calc(86px + 52px); }
.crew-line::before { border-top: 2px dashed var(--line-strong); }
.crew-line::after { border-top: 3px solid var(--accent); margin-top: -0.5px; transform-origin: left; transform: scaleX(calc(var(--step) / 2)); transition: transform .9s cubic-bezier(.5, 0, .2, 1); }
.stn { position: relative; z-index: 1; display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; padding: 0 8px; }
.pal {
  width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px;
  background: var(--surface); border: 2px solid var(--ink); box-shadow: 0 0 0 6px var(--surface); transition: box-shadow .3s ease, background-color .3s ease;
}
.pal img { width: 66px; height: 66px; object-fit: contain; }
.stn[aria-current] .pal { background: var(--accent-soft); }
.stn b { font: 600 17px/1.2 var(--display); letter-spacing: -0.01em; }
.stn[aria-current] b { color: var(--accent-text); }
.stn > span { color: var(--ink-soft); font-size: 15px; line-height: 1.4; }
.stn a { font-size: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; margin-top: 6px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text); font: 500 12px/1 var(--mono); letter-spacing: 0.02em; font-style: normal;
  transition: opacity .35s ease, transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.chip svg { width: 14px; height: 14px; }
.job {
  position: absolute; top: 0; left: calc(16.667% + var(--step) * 33.333%); z-index: 2;
  width: 212px; margin-left: -106px; white-space: nowrap; padding: 10px 14px; border-radius: 14px;
  background: var(--ink); color: #fff; text-align: center; opacity: 0;
  box-shadow: 0 16px 30px -14px rgba(11, 31, 58, 0.5);
  transition: left .9s cubic-bezier(.5, 0, .2, 1), opacity .4s ease;
}
.job::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: var(--ink); }
.job b { display: block; font: 600 13px/1.3 var(--display); letter-spacing: -0.01em; }
.job small { font-size: 12px; color: rgba(255, 255, 255, 0.7); }

/* Live crew animation (JS adds .live; no JS or reduced motion shows the finished job). */
.crew-line.live .job { opacity: 1; }
.crew-line.live.resetting .job { opacity: 0; transition: opacity .4s ease; }
.crew-line.live .stn:not(.done) .chip { opacity: 0; transform: scale(.7) translateY(4px); }
.crew-line.live .stn.on .pal { box-shadow: 0 0 0 6px var(--surface), 0 0 0 9px var(--accent); }
.crew-line.live .stn.on .pal img { animation: hop .8s cubic-bezier(.3, 0, .3, 1); }
@keyframes hop {
  25% { transform: translateY(-16px) rotate(-6deg); }
  50% { transform: translateY(0) rotate(0) scale(1.06, .94); }
  70% { transform: translateY(-5px) rotate(3deg); }
}

/* Comparison: the brand column highlighted, like a price sheet. */
.vs { padding: clamp(56px, 8vw, 104px) 0; }
.vs h2 { max-width: 18em; }
.vs-t { width: 100%; margin-top: clamp(28px, 4vw, 48px); border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 16px; }
.vs-t th, .vs-t td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-strong); }
.vs-t thead th { font: 500 12px/1.3 var(--mono); letter-spacing: 0.04em; color: var(--muted); border-bottom: 0; vertical-align: bottom; }
.vs-t tbody th { font: 600 15px/1.35 var(--display); letter-spacing: -0.01em; width: 26%; }
.vs-t td { color: var(--ink-soft); }
.vs-t .us { background: var(--col); color: #fff; border-bottom-color: rgba(255, 255, 255, 0.18); }
.vs-t thead .us { border-radius: 20px 20px 0 0; color: #fff; font: 600 18px/1 var(--display); letter-spacing: -0.02em; padding-top: 20px; }
.vs-t thead .us img { display: inline-block; height: 26px; width: auto; vertical-align: -6px; margin-right: 8px; }
.vs-t tbody tr:last-child .us { border-radius: 0 0 20px 20px; border-bottom: 0; }
.vs-t tbody tr:last-child th, .vs-t tbody tr:last-child td { border-bottom: 0; }
.vs-t .us b { font-weight: 400; display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.vs-t .us svg { width: 18px; height: 18px; margin-top: 3px; color: var(--col-tick); }
.vs-t thead .us img { background: #fff; border-radius: 8px; padding: 3px 4px; height: 30px; }
.vs-note { margin-top: 16px; }

/* Hero ticket (fit score / measuring progress). Ring fill follows --p (0 to 100). */
.ticket {
  position: absolute; z-index: 2;
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center;
  width: min(320px, 86%); padding: 14px 16px; border-radius: 18px;
  background: var(--surface); box-shadow: 0 24px 50px -20px rgba(11, 31, 58, 0.35), 0 0 0 1px rgba(11, 31, 58, 0.06);
}
.ring { --p: 82; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 600 14px/1 var(--body);
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), #E6E2DB 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.ring span { position: relative; }
.ticket b { display: block; font: 600 14px/1.3 var(--display); letter-spacing: -0.01em; }
.ticket small { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

/* Meet the rest of the crew: character cards (after Berd's agent cards). */
.crew-head .label { text-transform: uppercase; }
.crew-head h2 { margin-top: 12px; }
.mates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: clamp(28px, 4vw, 48px); }
.mate {
  display: grid; gap: 10px; align-content: start; padding: 14px 14px 20px; border-radius: 22px; background: var(--surface); color: var(--ink); text-decoration: none;
  box-shadow: 0 0 0 2px var(--ink), 6px 6px 0 var(--ink); transform: rotate(var(--tilt, 0deg)); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), box-shadow .35s ease;
}
.mate:nth-child(1) { --tilt: -2deg; } .mate:nth-child(2) { --tilt: 1.4deg; margin-top: 28px; } .mate:nth-child(3) { --tilt: -1deg; }
.mate-here { box-shadow: 0 0 0 3px var(--accent), 6px 6px 0 var(--accent); }
.mate-here:hover { box-shadow: 0 0 0 3px var(--accent), 10px 12px 0 var(--accent); }
.mate-top .here { padding: 4px 8px; margin: -4px -2px 0 0; border-radius: 99px; background: var(--accent); color: #fff; }
.mate-go { text-decoration: none; }
.mate:hover, .mate:focus-visible { transform: rotate(0) translateY(-6px); box-shadow: 0 0 0 2px var(--ink), 10px 12px 0 var(--ink); }
.mate-top { display: flex; justify-content: space-between; padding: 2px 4px 0; font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mate-art { display: grid; place-items: center; height: 180px; border-radius: 16px; background: var(--mate); overflow: hidden; }
.mate-art img { width: auto; height: 120px; max-width: 70%; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.25)); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.mate:hover .mate-art img { transform: translateY(-8px) rotate(-5deg) scale(1.06); }
.mate b { padding: 4px 6px 0; font: 600 22px/1.15 var(--display); letter-spacing: -0.02em; }
.mate-line { padding: 0 6px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.45; }
.mate-good { margin: 4px 6px 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14.5px; }
.mate-good small { display: block; font: 500 11px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mate-go { display: inline-flex; align-items: center; gap: 6px; margin: 6px 6px 0; font: 600 14px/1 var(--display); color: var(--link); }
.mate-go svg { width: 16px; height: 16px; transition: transform .25s ease; }
.mate:hover .mate-go svg { transform: translateX(4px); }
.crew .plank { max-width: none; margin-top: clamp(32px, 4vw, 48px); }
@media (prefers-reduced-motion: no-preference) {
  .mate-art img { animation: bob 4.5s ease-in-out infinite; }
  .mate:nth-child(2) .mate-art img { animation-delay: -1.5s; } .mate:nth-child(3) .mate-art img { animation-delay: -3s; }
}
@media (max-width: 820px) {
  .mates { grid-template-columns: 1fr; }
  .mate:nth-child(2) { margin-top: 0; }
  .mate-art { height: 150px; }
}

/* Final ask */
.ask { padding: 0 0 clamp(56px, 8vw, 104px); scroll-margin-top: 80px; }
.ask-panel {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff; border-radius: 28px;
  padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 64px); align-items: start;
}
.ask-panel h2 { color: #fff; }
.ask-panel .lede { color: rgba(255, 255, 255, 0.78); margin-top: 16px; }
.ask-panel ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.ask-panel li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: rgba(255, 255, 255, 0.9); }
.ask-panel li svg { width: 20px; height: 20px; margin-top: 3px; color: var(--tick); }
.ask-panel .quiet { color: rgba(255, 255, 255, 0.65); margin-top: 16px; }
.ask-panel .quiet a { color: #fff; }
.ask-panel ul { margin-bottom: 0; }

/* Waitlist form: labels always visible, 48px fields, 14px corners. */
.wl { display: grid; gap: 18px; }
.wl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wl-f { display: grid; gap: 6px; font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.wl-wide { grid-column: 1 / -1; }
.wl input, .wl select {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06); color: #fff;
  font: 400 16px/1 var(--body); appearance: none; -webkit-appearance: none;
}
.wl select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.wl select:invalid, .wl select option[value=""] { color: rgba(255, 255, 255, 0.55); }
.wl option { color: #0B1F3A; }
.wl input:focus, .wl select:focus { outline: none; border-color: var(--tick); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tick) 30%, transparent); }
.wl .btn { justify-self: start; }
.wl .btn:disabled { opacity: 0.7; cursor: progress; transform: none; }
.wl-msg { min-height: 1.2em; font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.wl-msg:empty { display: none; }
.wl-msg a { color: #fff; }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-done { padding: 28px; border-radius: 20px; background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.85); font-size: 17px; }
.wl-done b { display: block; color: #fff; font: 600 22px/1.2 var(--display); letter-spacing: -0.02em; margin-bottom: 6px; }

/* Footer */
.foot { padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot a { color: var(--muted); }

/* Motion. Everything here is extra: with reduced motion the page is complete and still. */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  .pop { animation: pop .9s cubic-bezier(.3, 1.5, .5, 1) .2s both; }
  @keyframes pop { from { opacity: 0; transform: scale(.85) rotate(-4deg); } }
  .bob { animation: bob 5s ease-in-out 1.2s infinite; }
  @keyframes bob { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
  .ticket { animation: slide-in .7s cubic-bezier(.2, .9, .3, 1.2) .7s both, float 6s ease-in-out 1.6s infinite; }
  @keyframes slide-in { from { opacity: 0; transform: translateX(-24px) scale(.95); } }
  @keyframes float { 50% { transform: translateY(-8px); } }
  .phone { animation: float 7s ease-in-out infinite; }
  .js .reveal { opacity: 0; transform: translateY(22px) rotate(var(--tilt, 0deg)); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
  .js .reveal.in { opacity: 1; transform: rotate(var(--tilt, 0deg)); }
  .js .point.reveal.in:hover { transform: rotate(0) translateY(-4px); }
  .point .icon { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
  .point:hover .icon { transform: rotate(-8deg) scale(1.08); }
  .btn-primary:active { transform: scale(.97); }
  .tape-run { animation: tape 38s linear infinite; }
  @keyframes tape { to { transform: translateX(-50%); } }
}

/* How it works: numbered steps beside a stage that plays each step. Only transform and opacity animate. */
.how { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 120px) 0; background-color: var(--block); background-image: var(--block-pattern, none); background-size: var(--block-size, auto); color: #fff; }
.how h2 { color: #fff; max-width: 18em; }
.how .lede { color: rgba(255, 255, 255, 0.85); margin-top: 14px; }
.how-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.45fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(28px, 4vw, 48px); align-items: center; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: step; }
.how-steps button {
  all: unset; box-sizing: border-box; position: relative; overflow: hidden; display: grid; grid-template-columns: 36px 1fr; gap: 2px 14px; width: 100%;
  padding: 16px 18px; border-radius: 18px; cursor: pointer; color: rgba(255, 255, 255, 0.82); background: rgba(255, 255, 255, 0.08);
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.how-steps button:hover { background: rgba(255, 255, 255, 0.14); }
.how-steps button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.how-steps button::before { counter-increment: step; content: counter(step); grid-row: span 2; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font: 600 15px/1 var(--display); background: rgba(255, 255, 255, 0.16); color: #fff; }
.how-steps b { font: 600 17px/1.25 var(--display); letter-spacing: -0.01em; color: inherit; }
.how-steps small { font-size: 14px; line-height: 1.45; color: inherit; opacity: .85; }
.how-steps button[aria-selected="true"] { background: #fff; color: var(--ink); transform: translateX(6px); }
.how-steps button[aria-selected="true"]::before { background: var(--accent); }
.how-steps [aria-selected="true"] small { color: var(--ink-soft); opacity: 1; }
.how-steps button i { position: absolute; left: 18px; right: 18px; bottom: 7px; height: 3px; border-radius: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.how.playing .how-steps [aria-selected="true"] i { animation: step-progress var(--dur, 5.5s) linear both; }
@keyframes step-progress { to { transform: scaleX(1); } }

.how-stage { position: relative; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 70px -35px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(11, 31, 58, 0.08); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #F7F8FA; font: 600 13px/1 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D5D9DF; }
.win-bar i:last-of-type { margin-right: 8px; }
.win-bar img { width: 26px; height: 22px; object-fit: contain; }
.win-bar span { margin-left: auto; font: 500 12px/1 var(--mono); color: var(--muted); }
.scenes { display: grid; }
.scene { grid-area: 1 / 1; padding: 24px; display: grid; gap: 16px; align-content: center; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
.scene.on { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.scene-cap { font: 500 12px/1.2 var(--mono); letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.duo { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: start; }

/* Shared scene parts */
.sheet { position: relative; border-radius: 16px; background: #0B1F3A; padding: 14px; overflow: hidden; aspect-ratio: 16 / 11; }
.sheet .scene-cap { color: rgba(255, 255, 255, 0.6); }
.sheet svg { position: absolute; inset: 34px 14px 14px; width: calc(100% - 28px); height: calc(100% - 48px); }
.plan-line { fill: none; stroke: #fff; stroke-width: 2.2; }
.plan-fill { fill: #1F5BD8; transform-box: fill-box; transform-origin: 0 0; }
.plan-dim { stroke: #8FB2F5; stroke-width: 1.4; fill: none; }
.plan-win { fill: #8FB2F5; }
.beam { position: absolute; left: 0; right: 0; top: 0; height: 100%; transform: translateY(-100%); background: linear-gradient(to bottom, transparent 70%, rgba(143, 178, 245, 0.35) 97%, #BFD3FB 100%); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rows li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 14px; background: #F4F6F9; font-size: 14px; line-height: 1.3; }
.rows li b { font: 600 14px/1.2 var(--display); letter-spacing: -0.01em; }
.rows li small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.rows .num { font: 600 15px/1 var(--display); color: var(--accent-text); white-space: nowrap; }
.rows .warn { background: #FFF1E8; }
.rows .warn .num { color: #B4410E; }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 99px; font: 500 12px/1 var(--mono); white-space: nowrap; }
.st { display: grid; justify-items: end; }
.st > * { grid-area: 1 / 1; }
.st .s1 { background: #EEF0F3; color: #5A6372; }
.st .s2 { background: #FFF1D6; color: #8A5A00; }
.st .s3 { background: #DDF3E6; color: #1E6B3E; }
.paper { border-radius: 16px; border: 1.5px solid #E3E6EA; padding: 18px 18px 26px; display: grid; gap: 4px; position: relative; }
#e-s3 .go { justify-self: end; margin-top: 4px; }
.paper .line { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #E3E6EA; font-size: 14px; }
.paper .line b { font-weight: 400; }
.paper .total { display: grid; grid-template-columns: 1fr auto; padding-top: 10px; font: 600 18px/1.2 var(--display); letter-spacing: -0.02em; }
.stamp { position: absolute; left: 16px; bottom: -18px; padding: 8px 12px; border: 2.5px solid #1E6B3E; color: #1E6B3E; border-radius: 10px; font: 600 12px/1.2 var(--mono); text-transform: uppercase; transform: rotate(-8deg); background: #fff; }
.go { justify-self: start; display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 14px; background: var(--btn-bg); color: var(--btn-text); font: 600 14px/1 var(--display); position: relative; }
.finger { position: absolute; right: -8px; bottom: -10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(11, 31, 58, 0.25); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8); }
.foot-note { font-size: 13.5px; color: var(--muted); }
.map { position: relative; border-radius: 16px; overflow: hidden; background: #EEF1EC; aspect-ratio: 16 / 11; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mpin { position: absolute; display: grid; place-items: center; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; border: 2.5px solid var(--accent); font: 600 13px/1 var(--body); color: var(--ink); box-shadow: 0 8px 16px -8px rgba(11, 31, 58, 0.5); }
.mpin.top { background: var(--accent); color: #fff; width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.mpin.low { border-color: #A9B1BC; color: #5A6372; }
.pages { position: relative; aspect-ratio: 16 / 11; }
.pg { position: absolute; left: 22%; top: 8%; width: 46%; aspect-ratio: 0.72; border-radius: 10px; background: #fff; border: 1.5px solid #DCE0E5; box-shadow: 0 16px 30px -18px rgba(11, 31, 58, 0.5); padding: 12px; display: grid; align-content: start; gap: 7px; }
.pg i { display: block; height: 6px; border-radius: 3px; background: #E6E9ED; }
.pg i:nth-child(3n) { width: 70%; } .pg i:nth-child(4n) { width: 85%; }
.pg .mark { background: #FFD9C7; }
.pg-n { position: absolute; left: 0; bottom: 4%; font: 600 15px/1.2 var(--display); }
.pg-n small { display: block; font: 400 13px/1.4 var(--body); color: var(--muted); }
.bid { display: grid; grid-template-columns: 1fr 34px 1.15fr; gap: 10px; align-items: center; }
.pipe { display: grid; gap: 14px; justify-items: center; color: var(--accent); }
.pipe i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.pipe svg { width: 26px; height: 26px; }
.src { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.src li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 14px; background: #F4F6F9; font-size: 13.5px; line-height: 1.3; }
.src li img { width: 30px; height: 26px; object-fit: contain; }
.src li .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.src li .ico svg { width: 17px; height: 17px; }
.src b { display: block; font: 600 13.5px/1.25 var(--display); letter-spacing: -0.01em; }
.doc { border-radius: 16px; border: 1.5px solid #E3E6EA; padding: 16px 16px 28px; display: grid; gap: 9px; position: relative; }
.doc h4 { margin: 0 0 4px; font: 600 15px/1.25 var(--display); letter-spacing: -0.01em; }
.sec { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; padding: 8px 10px; border-radius: 11px; background: #F7F8FA; }
.sec svg { width: 18px; height: 18px; color: #1E6B3E; }
.sec.flag svg { color: #B4410E; }
.sec em { font-style: normal; font: 500 11.5px/1 var(--mono); color: var(--muted); }
.big-go { justify-self: center; align-self: center; display: grid; justify-items: center; gap: 16px; text-align: center; }
.big-go .go { height: 60px; padding: 0 34px; font-size: 18px; }
.big-go .finger { right: -10px; bottom: -12px; width: 44px; height: 44px; }
.sub-ok { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; background: #DDF3E6; color: #1E6B3E; font-size: 14px; }
.sub-ok svg { width: 18px; height: 18px; }
.cheer { width: 120px; }

/* Entrances: run each time a scene comes on. With reduced motion none run and every scene shows its finished state. */
@media (prefers-reduced-motion: no-preference) {
  .scene.on .beam { animation: beam 2.2s cubic-bezier(.45, 0, .3, 1) .2s 2 both; }
  @keyframes beam { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
  .scene.on .in-up { animation: in-up .55s cubic-bezier(.2, .8, .3, 1.15) calc(var(--t, 0s) + var(--i, 0) * .45s) both; }
  @keyframes in-up { from { opacity: 0; transform: translateY(14px) scale(.96); } }
  .scene.on .in-pop { animation: in-pop .6s cubic-bezier(.3, 1.6, .5, 1) calc(var(--t, 0s) + var(--i, 0) * .4s) both; }
  @keyframes in-pop { from { opacity: 0; transform: scale(.3); } }
  .scene.on .in-drop { animation: in-drop .6s cubic-bezier(.3, 1.4, .5, 1) calc(var(--t, 0s) + var(--i, 0) * .3s) both; }
  @keyframes in-drop { from { opacity: 0; transform: translateY(-40px); } }
  .scene.on .plan-fill { animation: fill .7s cubic-bezier(.3, .9, .3, 1) calc(var(--i, 0) * .35s + .2s) both; }
  @keyframes fill { from { transform: scale(0, 1); opacity: .2; } }
  .scene.on .plan-dim { stroke-dasharray: 400; animation: dim 1.4s ease calc(var(--i, 0) * .3s + .6s) both; }
  @keyframes dim { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
  .scene.on .s1 { animation: st1 .3s ease calc(var(--t1) + var(--i, 0) * .3s) both; }
  .scene.on .s2 { animation: st2 calc(var(--t2) - var(--t1)) ease calc(var(--t1) + var(--i, 0) * .3s) both; }
  .scene.on .s3 { animation: st3 .45s cubic-bezier(.3, 1.6, .5, 1) calc(var(--t2) + var(--i, 0) * .3s) both; }
  @keyframes st1 { from { opacity: 1; } to { opacity: 0; } }
  @keyframes st2 { 0% { opacity: 0; transform: scale(.8); } 12%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes st3 { from { opacity: 0; transform: scale(.6); } }
  .scene.on .stamp { animation: stamp .5s cubic-bezier(.3, 1.4, .5, 1) var(--t, 2.6s) both; }
  @keyframes stamp { from { opacity: 0; transform: rotate(-8deg) scale(2.2); } }
  .scene.on .finger { animation: tap 1.1s ease var(--t, 3.4s) both; }
  .scene.on .go { animation: go-press .5s ease calc(var(--t, 3.4s) + .3s) both; }
  @keyframes go-press { 40% { transform: scale(.94); } }
  .scene.on .pg { animation: fan .7s cubic-bezier(.3, 1.2, .4, 1) calc(var(--i, 0) * .15s) both; }
  @keyframes fan { from { opacity: 0; transform: translate(0, 30px) rotate(0); } }
  .scene.on .pipe i { animation: flow 1.2s linear calc(var(--i, 0) * .2s) infinite both; }
  @keyframes flow { 0% { transform: translateX(-14px); opacity: 0; } 30%, 70% { opacity: 1; } 100% { transform: translateX(14px); opacity: 0; } }
  .scene.on .pg .mark { animation: in-pop .4s ease calc(1s + var(--i, 0) * .4s) both; transform-origin: left; }
}
.pg:nth-child(1) { transform: rotate(-8deg) translateX(-20%); }
.pg:nth-child(2) { transform: rotate(-2deg); }
.pg:nth-child(3) { transform: rotate(6deg) translateX(22%); }
.st .s1, .st .s2 { opacity: 0; }

@media (max-width: 820px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-steps { grid-auto-flow: column; grid-auto-columns: minmax(200px, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .how-steps li { scroll-snap-align: start; }
  .how-steps button[aria-selected="true"] { transform: none; }
  .scene { padding: 16px; align-content: start; }
  .win-bar span { display: none; }
  .duo, .bid { grid-template-columns: 1fr; gap: 12px; }
  .pipe { grid-auto-flow: column; transform: rotate(90deg); height: 30px; justify-self: center; }
  .src li { padding: 7px 10px; }
  .rows li { padding: 9px 12px; }
}

/* Live overlays on the product shots. Positions are % of the screenshot, sizes scale with it (cqw). */
.shot-fx { position: relative; container-type: inline-size; }
.shot-fx > :not(img) { position: absolute; display: none; pointer-events: none; }
.fx-ring { width: var(--s, 6%); aspect-ratio: 1; margin: calc(var(--s, 6%) / -2) 0 0 calc(var(--s, 6%) / -2); border-radius: 50%; border: 0.35cqw solid var(--accent); }
.fx-bar { height: 0.45cqw; margin-top: -0.22cqw; border-radius: 9px; background: var(--accent); transform-origin: left; }
.fx-scan { overflow: hidden; }
.fx-scan::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 100%; background: linear-gradient(90deg, transparent 72%, rgba(143, 178, 245, 0.4) 99.4%, #8FB2F5 99.4%); transform: translateX(-100%); }
.fx-pin { width: 1.7cqw; aspect-ratio: 1; margin: -0.85cqw 0 0 -0.85cqw; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font: 600 1cqw/1 var(--body); box-shadow: 0 0 0 0.25cqw #fff; }
.fx-type { display: none; align-items: center; gap: 0.45cqw; padding: 1cqw 1.4cqw; border-radius: 1.4cqw; background: #fff; box-shadow: 0 0 0 1px #DFE2E6; font: 400 1.25cqw/1 var(--body); color: #5A6372; }
.fx-type i { width: 0.55cqw; aspect-ratio: 1; border-radius: 50%; background: var(--accent); }
.fx-tap { width: 9cqw; aspect-ratio: 1; margin: -4.5cqw 0 0 -4.5cqw; border-radius: 50%; background: rgba(11, 31, 58, 0.22); }
.fx-pick { display: none; place-items: center; border-radius: 2.6cqw; background: var(--ink); color: #fff; font: 600 3.6cqw/1 var(--display); letter-spacing: -0.01em; }
.fx-chip { display: none; place-items: center; border-radius: 99px; background: #FCE6DC; color: #A93A0F; font: 500 var(--fs, 1.15cqw)/1 var(--body); }
.fx-press { border-radius: 0.8cqw; background: rgba(11, 31, 58, 0.16); }
.fx-cursor { width: 2.4cqw; margin: -0.3cqw 0 0 -0.4cqw; filter: drop-shadow(0 0.3cqw 0.4cqw rgba(0, 0, 0, 0.3)); }

@media (prefers-reduced-motion: no-preference) {
  .shot-fx > .fx-ring, .shot-fx > .fx-bar, .shot-fx > .fx-scan, .shot-fx > .fx-pin, .shot-fx > .fx-tap, .shot-fx > .fx-press, .shot-fx > .fx-cursor { display: block; }
  .shot-fx > .fx-type { display: inline-flex; }
  .shot-fx > .fx-pick, .shot-fx > .fx-chip { display: grid; }
  .fx-ring { animation: ring 2.4s ease-out var(--dl, 0s) infinite; }
  @keyframes ring { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
  .fx-bar { animation: grow 9s cubic-bezier(.4, 0, .2, 1) infinite; }
  @keyframes grow { from { transform: scaleX(0); } 85%, to { transform: scaleX(1); } }
  .fx-scan::after { animation: scan 4.5s ease-in-out infinite; }
  @keyframes scan { 0% { transform: translateX(-100%); opacity: 0; } 8% { opacity: 1; } 50% { transform: translateX(0); opacity: 1; } 58%, 100% { transform: translateX(0); opacity: 0; } }
  .fx-pin { animation: pin 9s cubic-bezier(.3, 1.6, .5, 1) var(--dl, 0s) infinite both; }
  @keyframes pin { 0%, 18% { transform: scale(0); } 24%, 88% { transform: scale(1); } 94%, 100% { transform: scale(0); } }
  .fx-type { animation: typing 9s ease infinite; }
  .fx-type i { animation: dot 1s ease-in-out infinite; } .fx-type i:nth-child(2) { animation-delay: .15s; } .fx-type i:nth-child(3) { animation-delay: .3s; }
  @keyframes typing { 0%, 30% { opacity: 0; transform: translateY(1cqw); } 36%, 80% { opacity: 1; transform: none; } 86%, 100% { opacity: 0; } }
  @keyframes dot { 50% { transform: translateY(-0.4cqw); opacity: .5; } }
  .fx-tap { animation: tap 6s ease infinite; }
  @keyframes tap { 0%, 40% { transform: scale(.4); opacity: 0; } 46% { transform: scale(1); opacity: 1; } 56%, 100% { transform: scale(1.3); opacity: 0; } }
  .fx-pick { animation: pick 6s ease infinite; }
  @keyframes pick { 0%, 46% { opacity: 0; transform: scale(.94); } 50%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
  .fx-chip { animation: chip 5s cubic-bezier(.3, 1.6, .5, 1) var(--dl, 0s) infinite; }
  @keyframes chip { 0%, 70%, 100% { transform: none; } 76% { transform: scale(1.25) rotate(-6deg); } 84% { transform: scale(1) rotate(3deg); } }
  .fx-cursor { animation: cursor 7s cubic-bezier(.5, 0, .2, 1) infinite; }
  .fx-cursor { left: 30% !important; top: 88% !important; }
  @keyframes cursor {
    0%, 8% { transform: translate(0, 0); } 0% { opacity: 0; } 8% { opacity: 1; }
    40% { transform: translate(14cqw, -34.4cqw); } 45% { transform: translate(14cqw, -34.4cqw) scale(.82); } 50%, 85% { transform: translate(14cqw, -34.4cqw); opacity: 1; }
    100% { transform: translate(14cqw, -34.4cqw); opacity: 0; }
  }
  .fx-press { opacity: 0; animation: press 7s ease infinite; }
  @keyframes press { 0%, 43% { opacity: 0; } 46%, 52% { opacity: 1; } 58%, 100% { opacity: 0; } }

  /* The product stage tips up into place as it scrolls in; the phone slides over. */
  .js .stage { opacity: 0; transform: perspective(1800px) rotateX(18deg) translateY(48px) scale(.94); transform-origin: 50% 100%; transition: opacity .8s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
  .js .stage.in { opacity: 1; transform: none; }
  .js .stage .phone { translate: 70px 30px; opacity: 0; transition: translate 1s cubic-bezier(.2, .8, .2, 1.1) .5s, opacity .6s ease .5s; }
  .js .stage.in .phone { translate: none; opacity: 1; }
}

/* Phone */
@media (max-width: 820px) {
  .grid3, .crew .wrap, .ask-panel { grid-template-columns: 1fr; }
  .wl-row { grid-template-columns: 1fr; }
  .wl .btn { width: 100%; }
  .stage { padding-right: 0; }
  /* Phone visitors see the phone design, full size, not a squeezed desktop. */
  .screen { display: none; }
  .phone { position: static; width: min(78vw, 290px); margin: 0 auto; }
  .shot figcaption { margin-top: 24px; }
  .actions .btn-primary { width: 100%; }
  .nav .btn-ghost { display: none; }
  .phone { animation: none; }
  .point:nth-child(2) { margin-top: 0; }
  .tape-run span { font-size: 13px; }
  /* Crew runs top to bottom; the job card stays put and the line fills down. */
  .crew-line { grid-template-columns: 1fr; padding: 0; }
  .crew-line::before, .crew-line::after { left: 52px; right: auto; top: 52px; bottom: 52px; border-top: 0; }
  .crew-line::before { border-left: 2px dashed var(--line-strong); }
  .crew-line::after { border-left: 3px solid var(--accent); margin: 0 0 0 -0.5px; transform-origin: top; transform: scaleY(calc(var(--step) / 2)); }
  .stn { grid-template-columns: 104px 1fr; grid-template-rows: auto auto auto 1fr; column-gap: 16px; row-gap: 2px; justify-items: start; text-align: left; padding: 0 0 20px; }
  .stn:last-child { padding-bottom: 0; }
  .pal { grid-row: 1 / span 4; margin: 0; }
  .stn b { margin-top: 18px; }
  .chip { margin-top: 8px; }
  .job { display: none; }
  .vs-t, .vs-t tbody, .vs-t tr, .vs-t th, .vs-t td { display: block; width: auto; }
  .vs-t thead { position: absolute; left: -9999px; }
  .vs-t tr { background: var(--surface); border-radius: 20px; padding: 6px; margin-bottom: 12px; }
  .vs-t tbody th { width: auto; padding: 12px 12px 8px; border: 0; }
  .vs-t td { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; padding: 10px 12px; border: 0; border-top: 1px solid var(--line); font-size: 15px; }
  .vs-t td::before { content: attr(data-c); font: 500 12px/1.5 var(--mono); color: var(--muted); }
  .vs-t td.us, .vs-t tbody tr:last-child .us { border-radius: 14px; border: 0; }
  .vs-t td.us::before { color: rgba(255, 255, 255, 0.75); }
}
@media (max-width: 420px) {
  .vs-t td { grid-template-columns: 1fr; gap: 2px; }
}

/* Pain cards as real objects on the bench: a sticky note, a docket, a message. */
.pain .point { gap: 10px; padding: 22px 22px 26px; }
.art { margin: 0 0 10px; }
.art small { display: block; margin-bottom: 8px; font: 500 11px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.art-note .art { position: relative; display: grid; gap: 2px; padding: 20px 18px 16px; border-radius: 2px; background: #FFF1A8; color: #3A3000; font: 600 16px/1.5 var(--display); letter-spacing: -0.01em; transform: rotate(-2deg); box-shadow: 0 12px 14px -10px rgba(0, 0, 0, 0.35); }
.art-note .art::before { content: ''; position: absolute; top: -9px; left: 50%; width: 70px; height: 18px; margin-left: -35px; background: rgba(255, 255, 255, 0.6); transform: rotate(3deg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.art-note .art small { color: #8A7300; }
.art-note s { opacity: 0.55; text-decoration-thickness: 2px; text-decoration-color: #C2410C; }
.art-docket .art {
  --z: 7px; display: grid; gap: 7px; padding: 16px 16px calc(16px + var(--z)); background: #F4F2EC; font: 500 13px/1.35 var(--mono);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--z)) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--z)) var(--z) repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--z)) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--z)) var(--z) repeat-x;
}
.art-docket .art > span { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 7px; border-bottom: 1px dashed #CFCBC0; }
.art-docket i { font-style: normal; color: var(--ink-soft); }
.art-docket b { font-weight: 500; white-space: nowrap; }
.art-docket .neg b { color: #C2410C; }
.art-docket .tot { padding: 7px 0 0; border-bottom: 0; border-top: 2px solid var(--ink); }
.art-docket .tot b, .art-docket .tot i { color: var(--ink); font-weight: 500; }
.art-msg .art { display: grid; gap: 8px; padding: 14px; border-radius: 18px; background: #EEF0F3; }
.art-msg .art small { margin: 0; }
.bub { justify-self: start; max-width: 94%; padding: 10px 13px; border-radius: 16px 16px 16px 4px; background: #fff; color: var(--ink); font-size: 15px; line-height: 1.4; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); }
.art-msg em { font: 500 11px/1 var(--mono); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* Crew cards as site ID badges: lanyard slot, shift and who they hand the job to. */
.mate { position: relative; padding-top: 34px; }
.mate::before { content: ''; position: absolute; top: 13px; left: 50%; width: 46px; height: 9px; margin-left: -23px; border-radius: 99px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--ink); }
.mate-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 6px 0; padding-top: 10px; border-top: 1px solid var(--line); font: 600 14px/1.3 var(--display); letter-spacing: -0.01em; }
.mate-rows small { display: block; margin-bottom: 3px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* Pain v2: no card wrapper. The objects sit straight on the dark bench, caption underneath. */
.pain .grid3 { align-items: start; gap: clamp(28px, 4vw, 56px); }
.pain .point, .pain .point:hover { padding: 0; background: none; box-shadow: none; color: #fff; transform: none; margin-top: 0; }
.js .pain .point.reveal.in:hover { transform: none; }
.pain .point h3 { color: #fff; font-size: 20px; margin-top: 8px; }
.pain .point p { color: rgba(255, 255, 255, 0.7); }
.pain .art-docket .art, .pain .art-docket b { color: var(--ink); }
.pain .art-docket .neg b { color: #C2410C; }
.pain .art { margin: 0 0 14px; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); box-shadow: 0 26px 40px -18px rgba(0, 0, 0, 0.7); }
.pain .point:nth-child(1) .art { transform: rotate(-3deg); }
.pain .point:nth-child(2) .art { transform: rotate(2deg) translateY(18px); }
.pain .point:nth-child(3) .art { transform: rotate(-1.5deg) translateY(6px); }
.pain .point:nth-child(2) h3 { margin-top: 26px; }
.pain .point:hover .art { transform: rotate(0) translateY(-6px); }
.pain .art-note .art { padding: 26px 22px 22px; font-size: 18px; min-height: 190px; align-content: start; }
.art-note .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.art-note .row em { flex: none; font: 500 11px/1 var(--mono); font-style: normal; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 6px; border-radius: 4px; background: #C2410C; color: #fff; transform: rotate(-3deg); }
.pain .art-docket .art { background: #FBFAF6; box-shadow: none; filter: drop-shadow(0 22px 22px rgba(0, 0, 0, 0.45)); }
.pain .art-msg .art { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18); }
.pain .art-msg .art small, .pain .art-msg em { color: rgba(255, 255, 255, 0.65); }
.pain .art-msg .art::before { content: ''; justify-self: start; width: 34px; height: 34px; border-radius: 50%; background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230B1F3A" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="8" r="4"/><path d="M4 21a8 8 0 0 1 16 0"/></svg>') center / 20px no-repeat; }
.pain .art-msg .art { grid-template-columns: 34px 1fr; column-gap: 10px; }
.pain .art-msg .art > * { grid-column: 2; }
.pain .art-msg .art::before { grid-column: 1; grid-row: 1 / span 5; align-self: start; }

/* Crew badge details: lanyard strap and a barcode. */
.mates { padding-top: 34px; }
.mate::after { content: ''; position: absolute; top: -34px; left: 50%; width: 18px; height: 50px; margin-left: -9px; border-radius: 3px; background: repeating-linear-gradient(180deg, var(--mate) 0 8px, color-mix(in srgb, var(--mate) 70%, #000) 8px 10px); z-index: -1; }
.mate { isolation: auto; }
.mate-top span:first-child { padding-left: 22px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px) left center / 16px 11px no-repeat; }

/* Crew badges dangle from their lanyards and tilt in 3D under the pointer. */
.mate-art { position: relative; }
.mate-art::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--sx, 30%) var(--sy, 20%), rgba(255, 255, 255, 0.35), transparent 55%); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.mate.held .mate-art::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .mates { perspective: 1100px; }
  .mate { transform-origin: 50% -34px; }
  .js .mate.reveal.in { animation: badge-drop 1s cubic-bezier(.3, 1.4, .45, 1) backwards, dangle 7s ease-in-out infinite; animation-delay: calc(var(--d, 0) * 120ms), calc(var(--d, 0) * -2.3s); transition: opacity .7s ease, transform .35s ease-out, box-shadow .3s ease; transition-delay: 0s; }
  .js .mate.reveal.in.held { transform: rotate(var(--tilt)) translateY(-4px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
  @keyframes badge-drop { from { transform: translateY(-50px) rotate(calc(var(--tilt) + 8deg)); } to { transform: rotate(var(--tilt)); } }
  @keyframes dangle { 0%, 100% { rotate: -0.8deg; } 50% { rotate: 0.8deg; } }
}

/* Footing as the ground the crew stands on: a 3D slab with the crew walking a job across it. */
.land { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(20px, 4vw, 56px); margin-top: clamp(48px, 6vw, 80px); padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: var(--ink); color: rgba(255, 255, 255, 0.78); text-decoration: none; overflow: hidden; }
.land-copy { display: grid; gap: 10px; align-content: start; font-size: 16px; line-height: 1.5; }
.land-tag { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.land-tag img { width: 36px; height: 36px; }
.land-copy b { color: #fff; font: 600 clamp(24px, 2.6vw, 32px)/1.1 var(--display); letter-spacing: -0.03em; }
.land-copy small { color: rgba(255, 255, 255, 0.55); font-size: 14px; }
.land .mate-go { margin: 6px 0 0; color: #FFD000; }
.land:hover .mate-go svg { transform: translateX(4px); }
.land-scene { display: block; }
.site { display: block; width: 100%; height: auto; overflow: visible; }
.s-t { fill: #B9C6A6; } .s-l { fill: #8E9C7B; } .s-r { fill: #6F7C5E; }
.s-g { fill: none; stroke: rgba(13, 13, 13, 0.09); stroke-width: 1.5; }
.s-name { fill: #2E3A22; font: 700 12px var(--display); letter-spacing: -0.01em; }
.s-pad { fill: #FFD000; stroke: #0D0D0D; stroke-width: 3; stroke-linejoin: round; }
.h-shadow { fill: rgba(13, 13, 13, 0.14); }
.h-frame path { fill: none; stroke: #C98B4E; stroke-width: 3.5; stroke-linecap: round; }
.h-l { fill: #F4F1EA; } .h-r { fill: #DCD6C8; } .h-win { fill: #8FB2F5; } .h-door { fill: #0B1F3A; }
.h-clad path { stroke: #0B1F3A; stroke-width: 1.5; stroke-linejoin: round; }
.r-f { fill: #3A4A5F; } .r-g { fill: #2A384A; }
.h-roof path { stroke: #0B1F3A; stroke-width: 1.5; stroke-linejoin: round; }
.pb-post { stroke: #0B1F3A; stroke-width: 4; stroke-linecap: round; }
.pb-b { fill: #fff; stroke: #0B1F3A; stroke-width: 2.5; } .pb-l { stroke: #9AA3AF; stroke-width: 3; stroke-linecap: round; }
.pb-won path { fill: #EE5A24; } .pb-won text { fill: #fff; font: 700 11px var(--display); text-anchor: middle; letter-spacing: 0.04em; }
.pp { fill: #1F5BD8; stroke: #fff; stroke-width: 2; } .pp-scan { stroke: #8FB2F5; stroke-width: 3; stroke-linecap: round; }
.pj-t { fill: #0B1F3A; font: 700 14px var(--display); text-anchor: middle; }
.pj { fill: rgba(255, 255, 255, 0.85); stroke: #0B1F3A; stroke-width: 2.5; } .coin { fill: #FFD000; stroke: #0B1F3A; stroke-width: 2; }
.chip rect { fill: #fff; stroke: #0B1F3A; stroke-width: 2; } .chip text { fill: #0B1F3A; font: 600 11.5px var(--display); text-anchor: middle; letter-spacing: -0.01em; }
.who2, .chip, .h-clad, .h-roof, .pb-won, .pp-scan, .coin { transform-box: fill-box; transform-origin: 50% 100%; }
.chip { transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  /* One 12s loop: Benny wins the job, Eddy prices it while the walls go on, Rory gets it paid as the roof lands. */
  .land .h-clad { animation: clad 12s ease-in-out infinite; }
  .land .h-roof { animation: roof 12s cubic-bezier(.3, 1.4, .5, 1) infinite; }
  .land .pb-won { animation: won 12s cubic-bezier(.3, 1.6, .5, 1) infinite; transform-origin: 50% 50%; }
  .land .pp-scan { animation: pscan 12s ease-in-out infinite; transform-origin: 0 0; }
  .land .coin { animation: coin 12s ease-in infinite; }
  .land .who2 { animation: work 12s cubic-bezier(.3, 1.5, .5, 1) infinite; }
  .land .chip { animation: say 12s cubic-bezier(.3, 1.4, .5, 1) infinite; }
  .land .w-e, .land .c-e { animation-delay: -8s; } .land .w-r, .land .c-r { animation-delay: -4s; }
  .land .w-b, .land .c-b { animation-delay: 0s; }
  @keyframes work { 0%, 4%, 22%, 100% { transform: none; } 7% { transform: translateY(-16px) rotate(-5deg); } 10% { transform: none; } 13% { transform: translateY(-8px) rotate(3deg); } 16% { transform: none; } }
  @keyframes say { 0%, 3% { opacity: 0; transform: translateY(8px) scale(.85); } 7%, 28% { opacity: 1; transform: none; } 32%, 100% { opacity: 0; transform: translateY(-6px); } }
  @keyframes won { 0%, 6% { opacity: 0; transform: scale(1.8) rotate(-10deg); } 10%, 90% { opacity: 1; transform: rotate(-8deg); } 96%, 100% { opacity: 0; transform: rotate(-8deg); } }
  @keyframes clad { 0%, 36% { opacity: 0; transform: translateY(6px); } 50%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
  @keyframes roof { 0%, 64% { opacity: 0; transform: translateY(-40px); } 72%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: none; } }
  @keyframes pscan { 0%, 34% { opacity: 0; transform: translate(0, 0); } 38% { opacity: 1; } 56% { opacity: 1; transform: translate(34px, -17px); } 60%, 100% { opacity: 0; transform: translate(34px, -17px); } }
  @keyframes coin { 0%, 70% { opacity: 0; transform: translateY(-30px); } 74% { opacity: 1; } 80%, 92% { opacity: 1; transform: translateY(20px); } 96%, 100% { opacity: 0; transform: translateY(20px); } }
}
@media (prefers-reduced-motion: reduce) { .pp-scan, .coin { display: none; } }
@media (max-width: 820px) {
  .land { grid-template-columns: 1fr; }
  .land-scene { order: -1; margin: 0 -8px; }
}

/* Performance: animated pieces get their own layer, and anything off screen stops animating. */
.tape-run, .mate, .mate-art img, .who img, .phone, .bob, .ticket, .shot-fx > * { will-change: transform; }
.paused, .paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }
