/*
  BeVouched home page: a demo of the app played in CSS (docs/web.md, "The home page").
  Only /index.html and /es/index.html link this file, after /tokens.css and
  /site.css, so no other page carries it. Like site.css it writes no colour of
  its own, and site.css's last rule stills every animation and transition here
  under reduced motion.

  One form.play of radios and checkboxes, read with :has(); there is no script.
  The base styles are the FINISHED state, so where :has() is missing the page is
  a still product page with no controls (the "not selector" block near the end).
  Inside "@supports selector(:has(*))" the form's state switches the parts:
    .on-K / .off-K   shown / hidden (display) while K holds; what follows moves
    .is-K / .un-K    the same with visibility, for states stacked in one .cell,
                     so nothing changes size
    K: yes (Luis answered Yes), unsure, no, job, vouch, check, all (the four scored taps)
  A tap is a transition between two complete states, or a keyframe animation
  that ends on the base style, so reduced motion leaves a working page. Green
  stays in plain .seal-* and .chip--confirmed rules. Nothing here clips its
  overflow but .fakes (a stamp lands from outside it), so enlarged text wraps
  and is never cut. Rules are one per line to keep the file small.
*/

:root { --ease-out: cubic-bezier(0.22, 1, 0.36, 1); --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1); }
.sprite { position: absolute; }
/* --surface is what a part sits on (a hollow node is filled with it); --chip is what a neutral chip on that surface is filled with. */
.home { --surface: var(--color-background); --chip: var(--color-background-element); }
.home .icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap--wide { max-width: calc(1080px + 2 * var(--gutter)); }
.home .avatar { width: 2.5rem; height: 2.5rem; }
.home .avatar--sm { width: 2rem; height: 2rem; }
.home .avatar--xl { width: 5rem; height: 5rem; }
.home .site-footer__nav a { min-width: var(--target); }

.top-nav { display: flex; align-items: center; gap: 4px 20px; }
.top-nav__link { display: inline-flex; align-items: center; min-height: var(--target); color: var(--color-text-secondary); font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.top-nav__link:hover { color: var(--color-text); text-decoration: underline; text-underline-offset: 3px; }
.top-nav__wide { display: none; }
.top-nav__btn { min-height: var(--target); padding: 8px 16px; border-color: var(--color-border-strong); background: transparent; font-size: 0.9375rem; }
.top-nav__btn:hover { background: var(--color-background-element); }

.home h1 { font-size: clamp(2.375rem, 11vw, 3.5rem); line-height: 1.02; letter-spacing: -0.03em; }
.home h1 span { display: block; }
.home h1 span:last-child { color: var(--color-brand); }
.home h2 { font-size: clamp(1.75rem, 7.5vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; }
/* A heading of two sentences breaks between them, never inside the second one first. */
.home h2 span { display: inline-block; }
.home h2 + .lead { margin-top: 12px; }
.home .lead { max-width: 34rem; text-wrap: pretty; }
.home .caption { text-wrap: pretty; }
.home .eyebrow { margin-bottom: 8px; }
.label { font: 800 1.0625rem/1.3 var(--font-display); letter-spacing: -0.01em; }

/* Scenes are full-bleed bands, paper or sand; .trio is words, toy, more words (side by side from 760 px). */
.scene { padding-block: 56px; scroll-margin-top: 16px; }
.scene--sand { --surface: var(--color-background-element); --chip: var(--color-background); background: var(--color-background-element); }
.home .card { --surface: var(--color-background); --chip: var(--color-background-element); position: relative; }
.trio { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.cell { display: grid; grid-template-columns: minmax(0, 1fr); }
.cell > * { grid-area: 1 / 1; }
.cell > .chip { align-self: start; justify-self: start; }

/* "Demo": in the hero it ends the job's first line; on a card it is a tab on the top border, so it costs the header no width. */
.pill-demo { display: inline-flex; flex: none; align-items: center; min-height: 20px; margin-left: auto; padding: 0 8px 0 calc(8px + 0.06em); border: 1px solid var(--color-border-strong); border-radius: var(--radius-full); background: var(--surface); color: var(--color-text-secondary); font: 700 0.6875rem/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; }
.card > .pill-demo { position: absolute; top: -12px; right: 16px; grid-area: auto; }
.pill-now { display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; border: 1px solid color-mix(in srgb, var(--color-brand) 25%, transparent); border-radius: var(--radius-full); background: var(--color-brand-soft); color: var(--color-brand); font: 600 0.75rem/1 var(--font-body); letter-spacing: 0; }
.pts { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--chip); color: var(--color-text); font-weight: 700; font-size: 0.75rem; line-height: 1.2; }
.home .chip { border: 1px solid var(--color-border); background: var(--chip); }
.home .chip--brand { border-color: color-mix(in srgb, var(--color-brand) 25%, transparent); background: var(--color-brand-soft); }
.home .chip--confirmed { border-color: color-mix(in srgb, var(--color-success) 35%, transparent); background: var(--color-success-soft); }
.home .chip--empty { border: 1px dashed var(--color-border-strong); background: transparent; }

/* The app's work-history entry: hollow node and dashed rail until a coworker confirms, then the green seal and a solid rail. */
.tl__job { position: relative; padding-left: 34px; }
.tl__job + .tl__job { margin-top: 16px; }
.tl__rail { position: absolute; top: 24px; bottom: -17px; left: 10px; width: 2px; background: repeating-linear-gradient(to bottom, var(--color-border-strong) 0 4px, transparent 4px 8px); }
.tl__rail.seal-rail { background: var(--color-success); transform-origin: top; }
.tl__node { position: absolute; top: 1px; left: 0; width: 22px; height: 22px; border: 2px solid var(--color-border-strong); border-radius: 50%; background: var(--surface); }
.tl__node.seal-node { display: grid; place-items: center; border-color: var(--color-success); background: var(--color-success); color: var(--color-background); }
.tl__node .icon { width: 14px; height: 14px; stroke-width: 3; }
.seal-ring { position: absolute; top: 1px; left: 0; width: 22px; height: 22px; border: 2px solid var(--color-success); border-radius: 50%; opacity: 0; pointer-events: none; }
.tl__place { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font: 800 1.125rem/1.25 var(--font-display); letter-spacing: -0.01em; }
.tl__role { margin-top: 2px; color: var(--color-text-secondary); font-size: 0.9375rem; line-height: 1.35; }
.tl__state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.tl__state.cell { display: grid; }
.tl .chip { min-height: 26px; }
.tl__job--ghost { min-height: 24px; color: var(--color-text-secondary); font-size: 0.9375rem; }
.tl__job--ghost .tl__node { border-style: dashed; }

/* Hero: the question card hangs from the job's rail; Luis's avatar is the rail's second node. */
.hero2 { padding-block: 20px 40px; }
.hero2 .trio { gap: 16px; }
.hero2 .lead { max-width: 30rem; margin-top: 10px; font-size: 1.0625rem; line-height: 1.45; }
.lead__more { display: none; }
.stage { scroll-margin-top: 16px; }
.cue { color: var(--color-text); font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.stage .tl { margin-top: 12px; }
/* The hero's job row is its own layer, above the question card, so the seal can land over both. */
.tl__job--q { z-index: 1; isolation: isolate; }
.tl__job--q .tl__rail { bottom: -21px; }
/* The seal that lands on Yes: a scalloped badge 70 px across, resting (unseen) on the node it shrinks into. */
.seal-wash { position: absolute; inset: -8px -10px; z-index: -1; border-radius: var(--radius-lg); background: var(--color-success-soft); opacity: 0; pointer-events: none; }
.seal-stamp { position: absolute; top: -30px; left: -31px; z-index: 3; display: grid; place-items: center; width: 84px; height: 84px; color: var(--color-success); opacity: 0; pointer-events: none; transform: scale(0.31); }
.seal-stamp .icon { grid-area: 1 / 1; width: 84px; height: 84px; fill: currentColor; stroke-width: 1; }
.seal-stamp .icon + .icon { width: 36px; height: 36px; fill: none; stroke: var(--color-background); stroke-width: 3.5; }
.q { --chip: var(--color-background-element); position: relative; margin: 12px 0 0 34px; padding: 14px; border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-background); box-shadow: var(--shadow-md); }
.q__who { position: absolute; top: 12px; left: -40px; border-radius: 50%; box-shadow: 0 0 0 3px var(--surface); }
.q__who .avatar { width: 34px; height: 34px; border: 1px solid color-mix(in srgb, var(--color-brand) 20%, transparent); font-size: 12px; }
.seal-badge { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 16px; height: 16px; border: 2px solid var(--surface); border-radius: 50%; background: var(--color-success); color: var(--color-background); }
.seal-badge .icon { width: 8px; height: 8px; stroke-width: 4; }
.q__title { float: left; width: 100%; padding: 0; font: 800 1.0625rem/1.25 var(--font-display); letter-spacing: -0.01em; }
.q__meta { clear: both; padding-top: 4px; color: var(--color-text-secondary); font-size: 0.8125rem; line-height: 1.4; }
.q__answers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* A label that is a button (its radio or checkbox covers it) and a label that is a chip. */
.ans { position: relative; display: inline-flex; flex: 0 1 auto; align-items: center; justify-content: center; gap: 8px; min-width: var(--target); min-height: 48px; padding: 0 16px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-lg); background: var(--chip); color: var(--color-text); font-weight: 600; font-size: 1rem; line-height: 1.25; text-align: center; cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; transition: transform 120ms ease-out; }
.ans input, .pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ans--fill { border-color: var(--color-brand-fill); background: var(--color-brand-fill); color: var(--color-on-brand-fill); }
.ans--yes { flex: 1 1 auto; }
.ans--yes::after { position: absolute; inset: -1px; border: 2px solid var(--color-brand-fill); border-radius: inherit; opacity: 0; content: ''; pointer-events: none; }
.q .ans { gap: 6px; }
.ans .icon { width: 20px; height: 20px; }
.ans:active { transform: scale(0.97); }
.ans--block { display: flex; width: 100%; margin-top: 12px; padding-block: 10px; }
.pick { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: var(--target); padding: 0 16px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-full); background: var(--chip); color: var(--color-text); font-weight: 600; font-size: 0.9375rem; line-height: 1.2; cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }

/* The reply is an always-present live region; its lines appear below the buttons, so no button moves. */
.reply { color: var(--color-text-secondary); font-size: 0.9375rem; line-height: 1.45; }
.reply p { margin: 12px 0 0 34px; }
.reply strong, .vb__sent strong { color: var(--color-text); }
.reply .pts, .vb__sent .pts { margin-top: 4px; vertical-align: middle; }
.stage__note { margin: 10px 0 0 34px; }
.btn--fill { background: var(--color-brand-fill); color: var(--color-on-brand-fill); }
.btn--fill:hover, .btn--fill:active { background: var(--color-brand-fill-pressed); }
.hero2__cta .caption { margin-top: 10px; }
/* An in-text link gets a 44 px tall target without changing its line, and moves to the next line whole while it fits on one. */
.how__now .link, .vb__why .link, .tl__job--ghost .link, .person--ghost .link, .claim .link { position: relative; display: inline-block; }
.band .caption a, .who .link { position: relative; }
.how__now .link::after, .vb__why .link::after, .tl__job--ghost .link::after, .person--ghost .link::after, .claim .link::after, .band .caption a::after, .who .link::after { position: absolute; inset: -14px -4px; content: ''; }

/* The score: CSS counters. A marker (.m) counts only while it is displayed, so the total is right in any order. */
.score { counter-reset: pts 403 left 97 done 0; }
.m { display: inline; }
.m-a { counter-increment: pts 70 left -70 done 1; }
.m-j { counter-increment: pts 20 left -20 done 1; }
.m-v { counter-increment: pts 2 left -2 done 1; }
.m-c { counter-increment: pts 5 left -5 done 1; }
.n-pts::after { content: counter(pts); }
.n-left::after { content: counter(left); }
.n-done::after { content: counter(done); }
.bar { display: flex; height: 6px; margin-top: 5px; overflow: hidden; border-radius: var(--radius-full); background: var(--color-background-muted); }
.bar i { display: block; height: 100%; background: var(--color-brand); box-shadow: 1px 0 var(--color-brand); }
.bar__base { width: 61.2%; }
.bar__a { width: 28%; }
.bar__j { width: 8%; }
.bar__v { width: 0.8%; }
.bar__c { width: 2%; }
/* The score bar. It wraps onto two rows before it lets enlarged text collide. */
.hud, .hud__next { display: none; }
.hud__in { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; min-height: 52px; padding-block: 4px; }
.hud__score { position: relative; flex: 1 1 auto; min-width: 0; }
.hud__line { font-weight: 700; font-size: 0.875rem; line-height: 1.25; }
.hud__won { display: inline-block; font: 800 1.0625rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.hud__next { flex: 0 1 auto; align-items: center; justify-content: flex-end; max-width: 46%; min-height: var(--target); margin-left: auto; color: var(--color-brand); font-weight: 700; font-size: 0.875rem; line-height: 1.2; text-align: right; text-decoration: none; }

/* Ticker: who it is for. Two lists side by side per row, moved by half their width, so the loop has no seam. */
.ticker { position: relative; padding-block: 28px 36px; overflow: hidden; overflow: clip; background: var(--color-background-element); }
.ticker__label { padding-inline: 64px; color: var(--color-text-secondary); font-weight: 600; font-size: 0.875rem; line-height: 1.4; text-align: center; text-wrap: balance; }
.ticker__row { margin-top: 12px; }
.ticker__track { display: flex; width: max-content; animation: slide 60s linear infinite; will-change: transform; }
.ticker__row--back .ticker__track { animation-direction: reverse; }
.ticker ul { display: flex; flex: none; margin: 0; }
.ticker li { display: flex; align-items: center; padding-right: 0.45em; font: 800 clamp(1.75rem, 8vw, 3.5rem) / 1.15 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; }
.ticker li::before { flex: none; width: 0.26em; height: 0.5em; margin: -0.12em 0.55em 0 0.1em; border: solid var(--color-brand); border-width: 0 0.11em 0.11em 0; content: ''; transform: rotate(45deg); }
.ticker li:nth-child(even) { color: var(--color-text-secondary); }
/* The pause button: its checkbox belongs to the empty form#tick, so "Start over" leaves it alone. Checked means paused. */
.ticker__pause { position: absolute; top: 16px; right: 12px; display: grid; place-items: center; width: var(--target); height: var(--target); border: 1px solid var(--color-border-strong); border-radius: 50%; background: var(--color-background); color: var(--color-text); cursor: pointer; }
.ticker__pause .icon { width: 16px; height: 16px; }
.ticker__pause .icon + .icon, #tick-pause:checked ~ .ticker__pause .icon { display: none; }
#tick-pause:checked ~ .ticker__pause .icon + .icon { display: block; }
#tick-pause:focus-visible ~ .ticker__pause { outline: 2px solid var(--color-ring); outline-offset: 2px; }
#tick-pause:checked ~ .ticker__row .ticker__track { animation-play-state: paused; }

/* Résumé scene. */
.scrap { max-width: 22rem; padding: 20px 22px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); background: var(--color-background); box-shadow: var(--shadow-md); font: 400 0.8125rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; transform: rotate(-1.5deg); }
.scrap p { padding-left: 1.5em; text-indent: -1.5em; }
.scrap__name { font-weight: 700; letter-spacing: 0.08em; }
.scrap__h { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--color-border-strong); color: var(--color-text-secondary); letter-spacing: 0.08em; }
.refs summary { list-style: none; }
.refs summary::-webkit-details-marker { display: none; }
.refs[open] .refs__off, .refs:not([open]) .refs__on { display: none; }
.refs__list { margin-top: 12px; }
.refs__list li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--color-border); font-weight: 600; }
.refs__list li::before { position: absolute; top: 21px; left: 4px; width: 12px; height: 2px; background: var(--color-border-strong); content: ''; }
.refs[open] li { animation: rise 300ms var(--ease-out) backwards; }
.refs[open] li:nth-child(2) { animation-delay: 350ms; }
.refs[open] li:nth-child(3) { animation-delay: 700ms; }
.closer { max-width: 30rem; margin-top: 20px; font: 800 1.25rem/1.3 var(--font-display); letter-spacing: -0.01em; text-wrap: balance; }

/* How it works: three steps on one dashed rail; the Add a job toy under step 1, who we found under step 2. */
.how { margin-top: 32px; counter-reset: how; }
.how__step { position: relative; padding: 0 0 40px 44px; counter-increment: how; }
.how__step::before { position: absolute; top: 0; left: 0; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--color-border-strong); border-radius: 50%; background: var(--surface); content: counter(how); font: 800 0.875rem/1 var(--font-display); }
.how__step::after { position: absolute; top: 28px; bottom: 0; left: 13px; width: 2px; background: repeating-linear-gradient(to bottom, var(--color-border-strong) 0 4px, transparent 4px 8px); content: ''; }
.how__step:last-child { padding-bottom: 0; }
.how__step:last-child::after { display: none; }
.how h3 + p { margin-top: 4px; color: var(--color-text-secondary); }
.how__step > .card, .how__found, .invite { margin-top: 16px; }
.how__now { margin-top: 8px; font-weight: 600; }
.card__title { font: 800 1.0625rem/1.25 var(--font-display); letter-spacing: -0.01em; }
/* Two date fields side by side while both fit on one line each; stacked when they do not (narrow, or enlarged text). */
.fields { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 12px; }
.fld { flex: 1 1 6.5rem; }
.fld--wide { flex-basis: 100%; }
.fld dt { color: var(--color-text-secondary); font-weight: 600; font-size: 0.8125rem; }
.fld dd { display: flex; align-items: center; gap: 8px; min-height: 48px; margin-top: 4px; padding: 6px 12px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-lg); background: var(--color-background-element); font-size: 0.9375rem; line-height: 1.3; white-space: nowrap; }
.fld--wide dd { white-space: normal; }
.fld .icon { width: 18px; height: 18px; color: var(--color-text-secondary); }
.fld b, .person b { display: block; font-weight: 600; }
.fld small, .person small { display: block; color: var(--color-text-secondary); font-size: 0.8125rem; }
.jobcard > .is-job { display: flex; flex-direction: column; }
.jobcard .tl { margin-block: 14px; }
.jobcard__done { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--color-border); color: var(--color-text-secondary); font-weight: 600; font-size: 0.9375rem; line-height: 1.35; text-wrap: balance; }
.ghost { display: grid; gap: 14px; padding: 20px; border: 2px dashed var(--color-border-strong); border-radius: var(--radius-xl); color: var(--color-text-secondary); font-weight: 600; }
.ghost i { display: flex; align-items: center; gap: 12px; }
.ghost i::before { width: 32px; height: 32px; border-radius: 50%; background: var(--color-background); content: ''; }
.ghost i::after { width: 45%; height: 10px; border-radius: 5px; background: var(--color-background); content: ''; }
.ghost i + i::after { width: 32%; }
.found__body { margin-top: 6px; color: var(--color-text-secondary); font-size: 0.9375rem; }
.people { margin-top: 8px; }
.person { display: flex; align-items: center; gap: 10px; padding-block: 10px; border-top: 1px solid var(--color-border); font-size: 0.9375rem; line-height: 1.3; }
.person__who { flex: 1 1 auto; min-width: 0; }
.found .caption { margin-top: 4px; }
.invite > * + * { margin-top: 12px; }
.bubble { width: fit-content; max-width: 21rem; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: 20px 20px 20px 6px; background: var(--color-background); font-size: 0.9375rem; line-height: 1.4; }

/* Try to fake it: the first row is open, so the stamp is seen before any tap. */
.fakes { overflow-x: clip; border-top: 1px solid var(--color-border); }
.fake { border-bottom: 1px solid var(--color-border); }
.fake summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding-block: 12px; font: 800 1.125rem/1.3 var(--font-display); letter-spacing: -0.01em; list-style: none; cursor: pointer; }
.fake summary::-webkit-details-marker { display: none; }
.fake summary .icon { color: var(--color-text-secondary); transition: transform 200ms; }
.fake[open] summary .icon { transform: rotate(180deg); }
.fake__a { padding: 0 0 24px; }
.fake__a p { max-width: 34rem; color: var(--color-text-secondary); }
/* The left padding carries the letter-spacing that trails the last letter, so the words sit centred in the box. */
.stamp { display: block; width: fit-content; margin: 8px 10px 0 auto; padding: 9px 14px 8px calc(14px + 0.08em); border: 3px solid var(--color-brand); border-radius: var(--radius-md); color: var(--color-brand); font: 800 1.3125rem/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; transform: rotate(-6deg); }
.fake[open] .stamp { animation: thump 360ms var(--ease-pop) 80ms backwards; }

/* Vouch builder and the app's vouch card. */
.vb__set + .vb__set { margin-top: 20px; }
.vb__set legend { padding: 0; font: 800 1.0625rem/1.3 var(--font-display); letter-spacing: -0.01em; }
.vb__set .chips { margin-top: 10px; }
.vcard { margin-top: 16px; }
.vcard__head { display: flex; align-items: center; gap: 12px; }
.vcard__head > div { flex: 1 1 auto; min-width: 0; }
.vcard__name { font: 800 1.0625rem/1.25 var(--font-display); letter-spacing: -0.01em; }
.vcard__rel { color: var(--color-text-secondary); font-size: 0.875rem; line-height: 1.35; text-wrap: pretty; }
.vcard__mark { margin-top: 12px; }
.vcard__skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.vcard__note { margin-top: 10px; line-height: 1.5; }
.vcard__tag { margin-top: 12px; }
.vb__why { margin-top: 10px; }
.vb__sent > div { margin-top: 12px; color: var(--color-text-secondary); font-size: 0.9375rem; line-height: 1.45; }
.vb__sent .caption { margin-top: 6px; }
.trio__b > .caption { margin-top: 10px; }

/* A business page, by year: everyone who was ever there stays listed; who was not there that year is drawn hollow. */
.biz__icon, .streak__flame { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-lg); background: var(--color-background-element); color: var(--color-text-secondary); }
.biz__years, .biz__h { margin-top: 16px; }
.biz__years .chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 22rem; }
.biz .pick { padding: 0; }
.biz .avatar { border: 1px dashed var(--av-b, transparent); background: var(--av, var(--color-brand-soft)); color: var(--av-c, var(--color-brand)); }
.person--ghost { --av: transparent; --av-b: var(--color-border-strong); --av-c: var(--color-text-secondary); color: var(--color-text-secondary); }
.biz__line { margin-top: 8px; color: var(--color-text-secondary); font-size: 0.9375rem; line-height: 1.45; }
.trio__b > p + p { margin-top: 10px; }

/* Streak and the level card. */
.pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 24px; }
.streak__flame { border-radius: 50%; background: var(--color-brand-soft); color: var(--color-brand); }
.streak__num { font: 800 1.75rem/1.1 var(--font-display); letter-spacing: -0.02em; }
.roll { display: inline-block; height: 1.1em; overflow: hidden; vertical-align: bottom; }
.roll > span, .roll b { display: block; height: 1.1em; font-weight: inherit; }
.roll > span { height: auto; }
.streak__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 16px; }
.days { display: flex; align-items: center; gap: 8px; }
.days i { position: relative; display: block; width: 14px; height: 14px; border: 2px solid var(--color-text); border-radius: 50%; background: var(--color-text); }
.days .days__today { background: none; }
.days__today::after { position: absolute; inset: -2px; border-radius: 50%; background: var(--color-text); content: ''; }
.days .days__next { border-color: var(--color-border-strong); border-style: dashed; background: none; }
.streak__reply p { margin-top: 10px; font-weight: 600; font-size: 0.9375rem; }
.streak__hint { margin-top: 12px; }
.streak__bonus { margin-top: 2px; }
.level__name { font: 800 1.25rem/1.25 var(--font-display); letter-spacing: -0.01em; }
.level__pts { margin-top: 10px; color: var(--color-text-secondary); font-weight: 600; }
.level__pts b { color: var(--color-text); font: 800 2rem/1.1 var(--font-display); letter-spacing: -0.02em; }
.level .bar { height: 10px; margin-top: 10px; }
.level .caption { margin-top: 10px; }
.level__up { margin-top: 10px; font-weight: 600; }
.ladder { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.ladder li { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border: 1px solid var(--color-border); border-radius: var(--radius-full); color: var(--color-text-secondary); font-weight: 600; font-size: 0.75rem; line-height: 1; }
.ladder li:nth-child(-n + 4) { background: var(--color-background-element); color: var(--color-text); }
.ladder .lv-4 { border-color: color-mix(in srgb, var(--color-brand) 25%, transparent); background: var(--color-brand-soft); color: var(--color-brand); }
/* The level-up burst: ten specks fanned upward from a point, on the level card and on the score bar. */
.specks { position: relative; align-self: center; justify-self: start; width: 0; height: 0; margin-left: 3rem; pointer-events: none; }
.hud .specks { position: absolute; top: 0; left: 50%; margin: 0; }
.specks i { --far: 84px; position: absolute; top: -5px; left: -5px; width: 10px; height: 10px; }
.specks i::after { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--color-brand); opacity: 0; content: ''; }
.specks i:nth-child(even) { --far: 56px; }
.specks i:nth-child(even)::after { border-radius: 3px; background: var(--color-text); }
.hud .specks i { --far: 124px; }
.hud .specks i:nth-child(even) { --far: 88px; }
.specks i:nth-child(1) { transform: rotate(-172deg); }
.specks i:nth-child(2) { transform: rotate(-154deg); }
.specks i:nth-child(3) { transform: rotate(-136deg); }
.specks i:nth-child(4) { transform: rotate(-118deg); }
.specks i:nth-child(5) { transform: rotate(-100deg); }
.specks i:nth-child(6) { transform: rotate(-80deg); }
.specks i:nth-child(7) { transform: rotate(-62deg); }
.specks i:nth-child(8) { transform: rotate(-44deg); }
.specks i:nth-child(9) { transform: rotate(-26deg); }
.specks i:nth-child(10) { transform: rotate(-8deg); }
.earn__h { margin-top: 24px; }
.earn { display: grid; gap: 10px; margin-top: 12px; }
.points__note { margin-top: 24px; }
.earn li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9375rem; }
.earn .pts { justify-content: center; min-width: 42px; }

/* The profile and the checklist. */
.prof__av { position: relative; flex: none; }
.prof__av .seal-badge { right: 0; bottom: 0; width: 24px; height: 24px; }
.prof__av .seal-badge .icon { width: 12px; height: 12px; }
.prof__name { font: 800 1.375rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.prof__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 14px; font-weight: 600; font-size: 0.9375rem; }
.prof__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0 20px; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-background-element); text-align: center; }
.prof__stats li { padding: 12px 4px; }
.prof__stats li + li { border-left: 2px solid var(--color-background); }
.prof__stats b { display: block; font: 800 1.5rem/1.2 var(--font-display); }
.prof__stats span { color: var(--color-text-secondary); font-size: 0.8125rem; }
.prof .tl { margin-top: 12px; }
.prof__streak { display: flex; align-items: center; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--color-border); font-weight: 600; font-size: 0.9375rem; }
.prof__streak .icon { color: var(--color-brand); }
.prof .caption { margin-top: 8px; }
.todo ul { margin-top: 4px; }
.todo__row { display: flex; align-items: center; gap: 10px; min-height: var(--target); font-weight: 600; text-decoration: none; }
.todo__row:hover { text-decoration: underline; text-underline-offset: 3px; }
.todo__box { display: grid; flex: none; place-items: center; width: 22px; height: 22px; border: 2px solid var(--color-border-strong); border-radius: var(--radius-sm); color: transparent; }
.todo__box .icon { width: 14px; height: 14px; stroke-width: 3; }
.todo__done { font: 800 1.25rem/1.3 var(--font-display); letter-spacing: -0.01em; }
.trio__b > .btn { margin-top: 16px; }
.trio__b > .btn .icon { width: 18px; height: 18px; }

/* The launch band (the app's filled red with white text in both schemes) and who we are. */
.band { position: relative; overflow: hidden; background: var(--color-brand-fill); color: var(--color-on-brand-fill); scroll-margin-top: 16px; }
.band__in { position: relative; padding-block: 64px; }
.band__in > * { position: relative; }
.band__in > * + * { margin-top: 16px; }
.band .lead, .band .caption, .band a { color: var(--color-on-brand-fill); }
.band .btn { background: var(--color-on-brand-fill); color: var(--color-brand-fill); }
.band .btn:hover { background: color-mix(in srgb, var(--color-on-brand-fill) 90%, transparent); }
.band :focus-visible { outline-color: var(--color-on-brand-fill); }
.band .band__mark { position: absolute; right: -40px; bottom: -36px; width: 240px; height: 224px; margin: 0; opacity: 0.12; }
.tile { width: 56px; height: 56px; margin-bottom: 16px; }
.who .stack { max-width: 44rem; }
.home .who h2 { font-size: 1.75rem; }
.site-footer nav + nav { margin-top: 4px; }
.site-footer__label { font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }

@keyframes slide { to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes thump { from { opacity: 0; transform: scale(1.9) rotate(-16deg); } }
@keyframes drop { from { transform: translateY(-10px) scale(0.98); } }
@keyframes breathe { 0% { opacity: 0.55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12, 1.3); } }
@keyframes ripple { 0% { opacity: 0.6; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes lift { 40% { transform: translateY(-6px) scale(1.01); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(16px); } }
@keyframes flare { 40% { transform: scale(1.3) rotate(-8deg); } }
@keyframes pop { from { opacity: 0; transform: scale(0.8); } }
@keyframes write { from { clip-path: inset(0 100% 0 0); } }
@keyframes speck { 0% { opacity: 1; transform: translateX(10px) scale(0.5); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateX(var(--far)) scale(1); } }
@keyframes won { from { opacity: 0; transform: translateY(8px) scale(0.7); } }
@keyframes pulse { 30%, 70% { transform: scaleY(2.2); } 50% { transform: scaleY(1); } }
@keyframes flash { 25% { background: var(--color-brand-soft); } }
/* Yes: the seal slams onto the job row (0 to 150 ms), settles, holds, then shrinks into the node (550 to 950 ms) and hands over to it. */
@keyframes stamp {
  0% { opacity: 0; transform: translate(190px, 26px) scale(1.7) rotate(-30deg); animation-timing-function: cubic-bezier(0.6, 0, 1, 1); }
  14% { opacity: 1; transform: translate(190px, 26px) scale(0.9) rotate(-9deg); animation-timing-function: ease-out; }
  24% { opacity: 1; transform: translate(190px, 26px) scale(1.04) rotate(-13deg); }
  32%, 52% { opacity: 1; transform: translate(190px, 26px) scale(1) rotate(-12deg); animation-timing-function: cubic-bezier(0.5, 0, 0.2, 1); }
  90% { opacity: 1; transform: translate(0, 0) scale(0.31) rotate(0deg); }
  100% { opacity: 0; transform: translate(0, 0) scale(0.31) rotate(0deg); }
}
@keyframes wash { 14%, 55% { opacity: 1; } }

/* Outlined words: the stroke is painted first and the band's own colour over it, so only the outer edge shows. It scales with the type. */
@supports (-webkit-text-stroke: 1px currentColor) and (paint-order: stroke fill) {
  .ticker li:nth-child(even) { color: var(--color-background-element); letter-spacing: 0.03em; -webkit-text-stroke: 0.065em var(--color-text); paint-order: stroke fill; }
}

/* ----- The playable page: only where :has() exists ----- */
@supports selector(:has(*)) {
  html { scroll-padding-bottom: 72px; }
  .ans:has(:focus-visible), .pick:has(:focus-visible) { outline: 2px solid var(--color-ring); outline-offset: 2px; }
  .q .ans:has(:checked) { box-shadow: inset 0 0 0 2px var(--color-text), inset 0 0 0 4px var(--color-background); }
  .ans--toggle:has(:checked) { border-color: var(--color-border-strong); background: var(--chip); color: var(--color-text); }
  .pick:has(:checked) { border-color: var(--color-brand); background: var(--color-brand-soft); color: var(--color-brand); }

  /* shown or hidden */
  .play:not(:has(#a-yes:checked)) .on-yes, .play:has(#a-yes:checked) .off-yes,
  .play:not(:has(#a-unsure:checked)) .on-unsure, .play:not(:has(#a-no:checked)) .on-no,
  .play:not(:has(#job-add:checked)) .on-job, .play:has(#job-add:checked) .off-job,
  .play:not(:has(#vouch-send:checked):has(.vb-skill:checked)) .on-vouch, .play:has(#vouch-send:checked):has(.vb-skill:checked) .off-vouch,
  .play:not(:has(#checkin:checked)) .on-check, .play:has(#checkin:checked) .off-check,
  .play:not(:has(#a-yes:checked):has(#job-add:checked):has(#vouch-send:checked):has(.vb-skill:checked):has(#checkin:checked)) .on-all,
  .play:has(#a-yes:checked):has(#job-add:checked):has(#vouch-send:checked):has(.vb-skill:checked):has(#checkin:checked) .off-all,
  .play:not(:has(#sk-1:checked)) .sk-1, .play:not(:has(#sk-2:checked)) .sk-2, .play:not(:has(#sk-3:checked)) .sk-3, .play:not(:has(#sk-4:checked)) .sk-4, .play:not(:has(#sk-5:checked)) .sk-5, .play:has(.vb-skill:checked) .sk-0,
  .play:not(:has(#nt-1:checked)) .nt-1, .play:not(:has(#nt-2:checked)) .nt-2, .play:not(:has(#nt-3:checked)) .nt-3,
  .play:has(#yr-22:checked) .yl:not(.y22), .play:has(#yr-23:checked) .yl:not(.y23), .play:has(#yr-24:checked) .yl:not(.y24), .play:has(#yr-25:checked) .yl:not(.y25) { display: none !important; }

  /* the same, in place */
  .cell > * { transition: opacity 200ms, visibility 200ms; }
  .play:not(:has(#a-yes:checked)) .is-yes, .play:has(#a-yes:checked) .un-yes,
  .play:not(:has(#job-add:checked)) .is-job, .play:has(#job-add:checked) .un-job,
  .play:not(:has(#vouch-send:checked):has(.vb-skill:checked)) .is-vouch, .play:has(#vouch-send:checked):has(.vb-skill:checked) .un-vouch,
  .play:not(:has(#checkin:checked)) .is-check, .play:has(#checkin:checked) .un-check,
  .play:not(:has(#a-yes:checked):has(#job-add:checked):has(#vouch-send:checked):has(.vb-skill:checked):has(#checkin:checked)) .is-all,
  .play:has(#a-yes:checked):has(#job-add:checked):has(#vouch-send:checked):has(.vb-skill:checked):has(#checkin:checked) .un-all,
  .play:has(#yr-22:checked) .yr:not(.y22), .play:has(#yr-23:checked) .yr:not(.y23), .play:has(#yr-24:checked) .yr:not(.y24), .play:has(#yr-25:checked) .yr:not(.y25) { visibility: hidden; opacity: 0; }

  /* Yes, on every timeline of the page: the rail draws, the node pops, the chip swaps. Going back takes 150 to 200 ms. */
  .seal-rail { transition: transform 200ms; }
  .seal-node { transition: opacity 150ms, transform 0s 150ms; }
  .seal-badge { transition: transform 150ms; }
  .tl__state .chip { transition: opacity 150ms, visibility 150ms, transform 150ms; }
  .play:not(:has(#a-yes:checked)) .seal-rail { transform: scaleY(0); }
  .play:not(:has(#a-yes:checked)) .seal-node { opacity: 0; transform: scale(1.4); }
  .play:not(:has(#a-yes:checked)) .seal-badge { transform: scale(0); }
  .play:not(:has(#a-yes:checked)) .tl__state .is-yes { transform: scale(0.6); }
  .play:has(#a-yes:checked) .seal-rail { transition: transform 600ms var(--ease-out); }
  .play:has(#a-yes:checked) .seal-node { transition: opacity 80ms 100ms, transform 300ms var(--ease-pop) 100ms; }
  .play:has(#a-yes:checked) .tl__state .un-yes { transition: opacity 120ms 250ms, visibility 0s 370ms; }
  .play:has(#a-yes:checked) .tl__state .is-yes { transition: opacity 120ms 330ms, visibility 0s 330ms, transform 300ms var(--ease-pop) 330ms; }
  .play:has(#a-yes:checked) .seal-badge { transition: transform 220ms var(--ease-pop) 500ms; }
  /* In the hero the same parts wait for the seal: it lands at once, and at 900 ms it becomes the node. 1.7 s in all. */
  .play:has(#a-yes:checked) .seal-stamp { animation: stamp 1050ms linear; }
  .play:has(#a-yes:checked) .seal-wash { animation: wash 1150ms ease-out; }
  .play:has(#a-yes:checked) .stage .seal-rail { transition-delay: 880ms; }
  .play:has(#a-yes:checked) .stage .seal-node { transition-delay: 900ms; }
  .play:has(#a-yes:checked) .seal-ring { animation: ripple 700ms ease-out 950ms; }
  .play:has(#a-yes:checked) .stage .tl__state .un-yes { transition-delay: 980ms, 1100ms; }
  .play:has(#a-yes:checked) .stage .tl__state .is-yes { transition-delay: 1060ms; }
  .play:has(#a-yes:checked) .stage .seal-badge { transition-delay: 1250ms; }
  .reply p { animation: rise 300ms var(--ease-out) backwards; }
  .reply .on-yes { animation-delay: 200ms; }

  /* the score and its bar */
  .m { display: none; }
  .play:has(#a-yes:checked) .m-a, .play:has(#job-add:checked) .m-j, .play:has(#vouch-send:checked):has(.vb-skill:checked) .m-v, .play:has(#checkin:checked) .m-c { display: inline; }
  .bar__seg { transition: width 600ms var(--ease-out); }
  .play:not(:has(#a-yes:checked)) .bar__a, .play:not(:has(#job-add:checked)) .bar__j, .play:not(:has(#vouch-send:checked):has(.vb-skill:checked)) .bar__v, .play:not(:has(#checkin:checked)) .bar__c { width: 0; box-shadow: none; }
  .hud { position: sticky; bottom: 0; z-index: 10; display: block; visibility: hidden; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--color-border); background: var(--color-background); transform: translateY(100%); transition: transform 300ms var(--ease-out), visibility 0s 300ms; }
  .play:has(#a-yes:checked, #job-add:checked, #vouch-send:checked, #checkin:checked) .hud { visibility: visible; transform: none; transition: transform 300ms var(--ease-out) 900ms, visibility 0s 900ms; }
  .play:not(:has(#a-yes:checked)) .nx-1,
  .play:has(#a-yes:checked):not(:has(#job-add:checked)) .nx-2,
  .play:has(#a-yes:checked):has(#job-add:checked):not(:has(#vouch-send:checked):has(.vb-skill:checked)) .nx-3,
  .play:has(#a-yes:checked):has(#job-add:checked):has(#vouch-send:checked):has(.vb-skill:checked):not(:has(#checkin:checked)) .nx-4,
  .play:has(#a-yes:checked):has(#job-add:checked):has(#vouch-send:checked):has(.vb-skill:checked):has(#checkin:checked) .nx-5 { display: inline-flex; }

  /* load: the card is there in the first frame and settles like a notification, then Yes breathes twice */
  .q { animation: drop 420ms var(--ease-out) backwards; }
  .ans--yes::after { animation: breathe 900ms ease-out 2400ms 2; }
  .play:has([name='answer']:checked) .ans--yes::after { animation: none; }

  /* Add a job: the form gives way to the work history; who we found appears under step 2 and pushes what follows */
  .jobcard > .un-job { transition: opacity 200ms, visibility 200ms, transform 200ms; }
  .play:has(#job-add:checked) .jobcard > .un-job { transform: scale(0.98); }
  .play:has(#job-add:checked) .jobcard > .is-job { transition: opacity 200ms 150ms, visibility 0s 150ms; }
  .play:not(:has(#job-add:checked)) .jobcard__new { transform: translateY(-12px); }
  .play:has(#job-add:checked) .jobcard__new { transition: transform 420ms var(--ease-pop) 150ms; }
  .play:not(:has(#job-add:checked)) .jobcard__pts { transform: scale(0); }
  .play:has(#job-add:checked) .jobcard__pts { transition: transform 220ms var(--ease-pop) 450ms; }
  .found { animation: rise 300ms var(--ease-out) 300ms backwards; }
  .found .person { animation: slide-in 300ms var(--ease-out) 450ms backwards; }
  .found .person + .person { animation-delay: 540ms; }

  /* vouch builder: Send is gone (not greyed out) until a skill is picked, and nothing is ever only made to look disabled */
  .vcard__skills .chip { animation: pop 180ms var(--ease-pop) backwards; }
  .vcard__note p { animation: write 500ms var(--ease-out) backwards; }
  .play:not(:has(.vb-skill:checked)) .vb__send { display: none; }
  .play:not(:has(#vouch-send:checked):has(.vb-skill:checked)) .vcard__tag .is-vouch { transform: scale(0.8); }
  .play:has(#vouch-send:checked):has(.vb-skill:checked) .vcard__tag .is-vouch { transition: opacity 200ms 300ms, visibility 0s 300ms, transform 220ms var(--ease-pop) 300ms; }
  .play:has(#vouch-send:checked):has(.vb-skill:checked) .vcard--live { animation: lift 420ms var(--ease-pop); }
  .vb__sent > div { animation: rise 300ms var(--ease-out) 400ms backwards; }

  /* year picker */
  .biz .person, .biz .avatar { transition: color 200ms, background-color 200ms, border-color 200ms; }
  .biz__line p { animation: rise 300ms var(--ease-out) backwards; }
  .play:has(#yr-22:checked) .biz .person:not(.y22), .play:has(#yr-23:checked) .biz .person:not(.y23), .play:has(#yr-24:checked) .biz .person:not(.y24), .play:has(#yr-25:checked) .biz .person:not(.y25) { --av: transparent; --av-b: var(--color-border-strong); --av-c: var(--color-text-secondary); color: var(--color-text-secondary); }

  /* check in, and the fourth scored tap: level 4, on the level card and on the score bar under the thumb */
  .roll > span { transition: transform 400ms var(--ease-out); }
  .days__today::after { transition: transform 220ms var(--ease-pop); }
  .play:has(#checkin:checked) .roll > span { transform: translateY(-50%); }
  .play:has(#checkin:checked) .r-12, .play:not(:has(#checkin:checked)) .r-13 { visibility: hidden; transition: visibility 0s 400ms; }
  .play:has(#checkin:checked) .streak__flame .icon { animation: flare 500ms ease-out; }
  .play:not(:has(#checkin:checked)) .days__today::after { transform: scale(0); }
  .streak__reply p { animation: rise 300ms var(--ease-out) 200ms backwards; }
  .play .ladder .lv-3 { border-color: color-mix(in srgb, var(--color-brand) 25%, transparent); background: var(--color-brand-soft); color: var(--color-brand); }
  .play .ladder .lv-4 { border-color: var(--color-border); background: none; color: var(--color-text-secondary); }
  .play:has(#a-yes:checked):has(#job-add:checked):has(#vouch-send:checked):has(.vb-skill:checked):has(#checkin:checked) .ladder .lv-3 { border-color: var(--color-border); background: var(--color-background-element); color: var(--color-text); }
  .play:has(#a-yes:checked):has(#job-add:checked):has(#vouch-send:checked):has(.vb-skill:checked):has(#checkin:checked) .ladder .lv-4 { border-color: color-mix(in srgb, var(--color-brand) 25%, transparent); background: var(--color-brand-soft); color: var(--color-brand); }
  .play:has(#a-yes:checked):has(#job-add:checked):has(#vouch-send:checked):has(.vb-skill:checked):has(#checkin:checked) .specks i::after { animation: speck 850ms var(--ease-out) 300ms backwards; }
  .play:has(#a-yes:checked):has(#job-add:checked):has(#vouch-send:checked):has(.vb-skill:checked):has(#checkin:checked) .level__name .is-all, .hud__won { animation: won 450ms var(--ease-pop) 200ms backwards; }
  .play:has(#a-yes:checked):has(#job-add:checked):has(#vouch-send:checked):has(.vb-skill:checked):has(#checkin:checked) .hud .bar { animation: pulse 900ms ease-in-out 350ms; }
  .play:has(#a-yes:checked):has(#job-add:checked):has(#vouch-send:checked):has(.vb-skill:checked):has(#checkin:checked) .hud { animation: flash 1400ms ease-out 100ms; }

  /* the checklist: a red check, never green */
  .play:has(#a-yes:checked) .t-yes, .play:has(#job-add:checked) .t-job, .play:has(#vouch-send:checked):has(.vb-skill:checked) .t-vouch, .play:has(#checkin:checked) .t-check { color: var(--color-text-secondary); }
  .play:has(#a-yes:checked) .t-yes i, .play:has(#job-add:checked) .t-job i, .play:has(#vouch-send:checked):has(.vb-skill:checked) .t-vouch i, .play:has(#checkin:checked) .t-check i { border-color: var(--color-brand); color: var(--color-brand); }

  /* Windows contrast themes drop backgrounds and shadows: what is chosen gets a system-colour mark. */
  @media (forced-colors: active) {
    .pick:has(:checked), .q .ans:has(:checked), .ans--toggle:has(:checked) { outline: 2px solid Highlight; outline-offset: -4px; }
  }
}

/* ----- No :has(): the still page. Every control, every not-finished part and every line that speaks to a player goes. ----- */
@supports not selector(:has(*)) {
  .ctl, .off-yes, .un-yes, .on-unsure, .on-no, .off-job, .un-job, .off-vouch, .un-vouch, .off-check, .un-check, .off-all, .un-all, .sk-0, .sk-2, .sk-3, .sk-4, .sk-5, .nt-2, .nt-3, .biz .person:not(.y23), .yr:not(.y23), .yl:not(.y23), .r-12, .how__now, .level__up, .todo__done { display: none !important; }
}

@media (hover: hover) {
  .ans:hover, .pick:hover { background: var(--color-background-selected); }
  .ans--fill:hover { background: var(--color-brand-fill-pressed); }
  .ticker:hover .ticker__track { animation-play-state: paused; }
}
@media (max-width: 479px) {
  .hero2__cta .btn { flex: 1 1 auto; }
}
@media (max-width: 399px) {
  .hud .avatar { display: none; }
}
/* 360 px, the commonest Android width, and narrower: tighter cards and smaller chips, so no pill or field breaks in either language. */
@media (max-width: 379px) {
  .home .card { padding: 16px; }
  .fld dd { gap: 6px; padding-inline: 10px; }
  .home .avatar--xl { width: 4rem; height: 4rem; font-size: 1.375rem; }
}
/* The same narrow cards come back where two columns start, so the chips inside them are small there too. */
@media (max-width: 379px), (min-width: 760px) and (max-width: 899px) {
  .card .tl .chip, .vcard__mark .chip { padding-inline: 8px; font-size: 0.75rem; }
}
@media (max-width: 359px) {
  .ans { padding-inline: 11px; font-size: 0.9375rem; }
  .ans--yes .icon { display: none; }
  .hud__line, .hud__next { font-size: 0.8125rem; }
}
/* A phone zoomed to 200% is about 195 px wide: the steps lose their rail and the stats stack, so nothing is wider than the screen. */
@media (max-width: 259px) {
  .how__step { padding-left: 0; }
  .how__step::before { position: static; margin-bottom: 8px; }
  .how__step::after { display: none; }
  .prof__stats { grid-template-columns: minmax(0, 1fr); }
  .prof__stats li + li { border-top: 2px solid var(--color-background); border-left: 0; }
}
@media (max-height: 620px) and (max-width: 480px) {
  .hero2 { padding-top: 12px; }
  .hero2 .trio { gap: 12px; }
  .home h1 { font-size: 2.125rem; }
  .hero2 .lead { margin-top: 6px; font-size: 1rem; }
}
@media (max-height: 479px) {
  .hud { display: none; }
}
/* Small tablets and phones on their side: the page is one centred column, header and footer included. */
@media (min-width: 640px) {
  .home { --gutter: 24px; }
  .home h1 { font-size: 3.5rem; }
}
@media (min-width: 640px) and (max-width: 759px) {
  .home .wrap--wide { max-width: calc(520px + 2 * var(--gutter)); }
}
/* From 760 px (a tablet held upright): words beside the toy. */
@media (min-width: 760px) {
  .home h1 { font-size: clamp(3rem, 5.6vw, 4.5rem); }
  .home h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
  .trio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; }
  .trio__h { grid-area: 1 / 1 / auto / -1; margin-bottom: 32px; }
  .trio__a { grid-area: 1 / 1; align-self: end; }
  .trio__b { grid-area: 2 / 1; margin-top: 24px; }
  .trio__toy { grid-area: 1 / 2 / span 2; align-self: center; }
  .trio--flip > .trio__a, .trio--flip > .trio__b { grid-column: 2; }
  .trio--flip > .trio__toy { grid-column: 1; }
  .trio--top, .hero2 .trio { grid-template-rows: auto 1fr; }
  .trio--top > .trio__a, .trio--top > .trio__toy, .hero2 .trio__a, .hero2 .trio__toy { align-self: start; }
  .trio--head { grid-template-rows: auto auto 1fr; }
  .trio--head > .trio__a { grid-row: 2; }
  .trio--head > .trio__toy { grid-row: 2 / span 2; }
  .trio--head > .trio__b { grid-row: 3; }
  .hero2 { padding-block: 40px 56px; }
  .hero2 .trio { gap: 0 40px; }
  .scrap { justify-self: center; }
  /* Step 1 keeps its place beside steps 2 and 3 while they scroll past. */
  .how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; }
  .how__step:first-child { position: sticky; top: 24px; grid-row: 1 / span 2; align-self: start; }
  .how__step:first-child::after { display: none; }
  /* The two cards side by side; how to earn runs under both as one row, so neither column trails empty. */
  .pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; align-items: start; }
  .pair__col { display: contents; }
  .earn__h, .earn { grid-column: 1 / -1; }
  .earn { display: flex; flex-wrap: wrap; gap: 10px 28px; }
  .band .band__mark { top: 50%; right: 0; bottom: auto; width: 420px; height: 392px; transform: translateY(-50%); }
}
@media (min-width: 900px) {
  .home { --gutter: 40px; }
  .top-nav__wide { display: inline-flex; }
  .lead__more { display: inline; }
  .scene { padding-block: 88px; }
  .hero2 { padding-block: 56px 72px; }
  .hero2 .lead { font-size: 1.25rem; }
  .trio { column-gap: 56px; }
  .how { column-gap: 56px; }
  .hero2 .trio { column-gap: 48px; }
  .stage { --surface: var(--color-background-element); --chip: var(--color-background); padding: 24px; border-radius: var(--radius-2xl); background: var(--color-background-element); }
  .band__in { padding-block: 96px; }
}
@media (min-width: 1080px) {
  .hero2 .trio { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* Scroll polish: a card rises as its first 120 px enter, whatever its height, so a card in view is solid. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0px entry 120px; }
  }
}
@keyframes reveal { from { opacity: 0.4; translate: 0 20px; } }
/* Reduced motion: the list stands still, wrapped and centred, with nothing cut off, no pause button and no tab stop for one. */
@media (prefers-reduced-motion: reduce) {
  .ticker__track { width: auto; }
  .ticker ul { flex: 1 1 auto; flex-wrap: wrap; justify-content: center; gap: 6px 0; padding-inline: 16px; }
  .ticker ul[aria-hidden], .ticker__pause, #tick-pause { display: none; }
  .ticker li { font-size: 1.125rem; }
  .ticker li:nth-child(even) { color: var(--color-text-secondary); letter-spacing: -0.02em; -webkit-text-stroke: 0; }
  .ticker__label { padding-inline: 16px; }
}
