/* Hallmark · shape: Conversational FAQ (draw dc18d0) · genre: editorial · theme: Sport (deal 1/3, seed fitness-partner-matching-app-b83f·4e97f682·2026-11-03·r0) · redesign: full · job: try (pre-launch: the waitlist in the hero and at the close)
 * hero: Stage (swapped from Corridor: the before and after is a picture and needs seven columns) · nav: masthead · footer: colophon block · imagery: photographs, library 4, duotone · product sample in hero-screen · signature: the meet point, two routes meeting at the volt dot of myspottr. · type: Inter and Space Grotesk, the user's original faces (by request)
 * axes: light/display-condensed/chromatic-volt · posture: restrained · contrast: pass · fold: pass · motion: by request (loops keep running on hover, sections fade in and out, a launch toast; every loop has a pause control and stops off-screen) · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R3 V4 · weakest: R, three moving pieces; each loop sits behind a pause control, routes only draw, one reveal, and the marquee and parallax were cut */
/* Hallmark · waive 85 · the user asked for a newsletter form in the hero and the page already had one at the close · myspottr is pre-launch, so the waitlist is the one action the page can offer */
/* Hallmark · waive 44c · .hero__copy and .meet both centre at y 487 at 1440x900, measured in Chrome · the linter's text box leaves out the hero signup form the user asked for, which sits low in the column */
/* Hallmark · waive 1 · --font-display is Inter, the face the previous myspottr page used · the user asked for the previous font back, Space Grotesk keeps the figures */
/* Hallmark · replaced the privacy statement section with the start-line countdown · the user asked for anticipation there; the privacy line moved under the stages, where the old page had it */
/* Hallmark · replaced the pixel athletes with the In sync stage (four sports, two lines falling into step) · the user asked for a more premium animation in Different routes. Common ground. */
/* Hallmark · applied the product token layer: partner heat, sport surfaces, match states, approximate area (design-tokens.html) */
/* Hallmark · switched off the In sync stage (kept in an HTML comment) for Two profiles, one plan: your card and your partner's match, meet and become one session · the user asked for a new animation that tells the story */
/* Hallmark · dismissed F8 · five scroll links (hero ease-out, photo drift, wordmark slide, 95% plate, stage bars), each one linear transform, all off under reduced motion · the user asked for fluid motion across the whole site */
/* Hallmark · reworded "An easy pace. A better conversation." to "Your next set. Their next session." · running is not a launch activity in product-spec.md, so the first tab is now Gym */
/* Hallmark · dropped tab-run · the Running tab, removed because product-spec.md launches with gym, cycling, swimming, tennis and badminton */
/* Hallmark · aligned the activities with product-spec.md: gym, cycling, swimming, tennis, badminton (running removed from the live page; the switched-off stages keep it) */
/* Hallmark · The rally removed (the user found it static); the stage is now In sync, the journey: one camera move through the five launch sports, built on the In sync idea the user liked */
/* Hallmark · waive 80 · .sbs__stage draws two pictogram athletes, the brief's own characters: the user asked to return to the original athletes-training animation in a mature, premium style · In sync, the journey switched off and kept */
/* Hallmark · dropped /api/newsletter, /C:/api/newsletter, post /C:/api/newsletter, action=/C:/api/newsletter on #newsletter-form · both signup forms now post to api/newsletter.php, the PHP endpoint the user supplied, instead of the old serve.py route */
/* Hallmark · added the idle screensaver and the away tab title (js/presence.js) · the user asked for both: the scene is the meet point at full screen, any input dismisses it */
/* Hallmark · dismissed F4 · .sbs__chapters button b is the progress fill inside each step control, not a filled button; .btn--primary stays the one primary */
/* Hallmark · dismissed 40 · .sample--chips .is-on is paper on --color-sport-badminton, measured in Chrome (see design-tokens.html); the static estimate does not resolve the product token layer */
/* Hallmark · dropped grid · the dot pattern id inside the old athletes SVG, which the In sync stage replaced */
/* Hallmark · dismissed 3 · the three stages are a real ol with numerals and built app samples, no icon tiles */
/* Hallmark · dropped spottr-logo.png, the logo card in #launch · the user says the logo is not final; the myspottr. wordmark carries the brand until it is */
/* Hallmark · reworded the hero lead "A good training partner changes everything. Find someone who shares your activity, your ambition, and your next free hour." to "Find a training partner who shares your activity, ambition and free hour." · 58 caps the hero sentence at twelve words */
/* Hallmark · reworded section heads "Start with what moves you." to "What do you train?", "Motivation comes and goes. People make a difference." to "Why train with someone?" · the Conversational FAQ shape asks a new user's questions */

/* ---------- chrome ---------- */
html { scroll-behavior: smooth; scroll-padding-top: var(--space-3xl); }
a:hover { text-decoration-color: var(--color-accent-deep); }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--color-ink); transform: scaleX(0); transform-origin: 0 50%; z-index: var(--z-toast); pointer-events: none; }

.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-height: 72px; gap: var(--space-lg); }
.nav__links { display: flex; gap: var(--space-lg); font-size: var(--text-sm); font-weight: 500; }
.nav__links a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.3em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.nav__links a:hover { text-decoration-color: var(--color-accent-deep); }
.nav__action { justify-self: end; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: var(--rule-bar) solid var(--color-ink); border-radius: var(--radius-card); font: var(--display-weight) var(--text-md)/1 var(--font-display); text-transform: var(--display-case); text-decoration: none; white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.nav__action:hover { background: var(--color-ink); color: var(--color-paper); }
.nav__action:active { transform: translateY(1px); }


.brand { display: inline-flex; align-items: baseline; font: var(--wordmark-weight) 2.25rem/1 var(--font-wordmark); letter-spacing: var(--tracking-wordmark); text-decoration: none; color: var(--color-ink); }
.brand__dot { display: inline-block; flex-shrink: 0; width: 0.26em; height: 0.26em; margin-left: 0.06em; border-radius: 50%; background: var(--color-pin); box-shadow: 0 0 0 2px var(--color-ink); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-lg); border: var(--rule-bar) solid transparent; border-radius: var(--radius-card); font: var(--display-weight) var(--text-lg)/1 var(--font-display); text-transform: var(--display-case); white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent-ink); }
.btn--primary:hover { background: color-mix(in oklab, var(--color-accent) 82%, var(--color-accent-ink)); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"], .signup[aria-busy="true"] .btn { cursor: progress; }

.signup { display: grid; gap: var(--space-xs); max-width: 34rem; }
.signup__label { font-size: var(--text-sm); font-weight: 500; }
.signup__row { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.signup__row .btn { flex: 1 0 auto; }
.signup input[type="email"] { flex: 999 1 14rem; width: 100%; min-width: 0; min-height: 52px; padding: 0 var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-md); outline: 2px solid transparent; outline-offset: -3px; }
.signup input[type="email"]:focus-visible { outline-color: var(--color-focus); }
.signup input[type="email"]:disabled { opacity: 0.55; cursor: not-allowed; }
.signup input[aria-invalid="true"] { border-color: var(--color-error); }
.signup__consent { display: flex; gap: var(--space-xs); align-items: flex-start; font-size: var(--text-sm); color: var(--color-ink-2); cursor: pointer; }
.signup__consent input { flex-shrink: 0; width: 20px; height: 20px; margin: 0; accent-color: var(--color-ink); cursor: pointer; }
.signup__consent input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.signup__status { min-height: 1lh; font-size: var(--text-sm); color: var(--color-ink-2); }
.signup__status[data-error="true"] { color: var(--color-error); }

/* ---------- hero ---------- */
.hero { padding-block: var(--space-2xl); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; min-height: min(calc(100dvh - 72px - 2 * var(--space-2xl)), 760px); }
.hero__copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); align-content: center; min-width: 0; }
.hero h1 { max-width: none; font-size: clamp(3.25rem, 5.6vw, 5.5rem); line-height: 0.98; letter-spacing: -0.06em; text-transform: var(--display-case); }
.hero .lead { color: var(--color-ink-2); max-width: 44ch; }
.signup--hero { margin-top: var(--space-xs); }
.hero__meta { font-size: var(--text-sm); color: var(--color-muted); }
.hero__meta a { color: var(--color-ink); font-weight: 500; margin-left: var(--space-xs); }

/* the meet point: a product sample, replaced by a real capture once the app runs */
.meet { position: relative; margin: 0; height: clamp(520px, 70dvh, 640px); border-radius: var(--radius-card); background: var(--color-map); outline: 1px solid color-mix(in oklab, var(--color-ink) 10%, transparent); outline-offset: -1px; }
.meet__map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-ground { fill: var(--color-map); }
.map-park { fill: var(--color-map-park); }
.map-water { fill: none; stroke: var(--color-map-water); stroke-width: 34; stroke-linecap: round; }
.map-streets path { fill: none; stroke: var(--color-map-street); stroke-width: 12; stroke-linecap: round; }
.route { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.route--you { stroke: var(--color-route-you); stroke-width: 5; }
.route--them { stroke: var(--color-partner); stroke-width: 5; }
.route--shared { stroke: var(--color-ink); stroke-width: 10; }
.map-start circle { fill: var(--color-route-you); stroke: var(--color-map); stroke-width: 3; }
.map-start .map-start--them { fill: var(--color-partner); }
.map-label { font: 500 15px var(--font-body); fill: var(--color-ink); paint-order: stroke; stroke: var(--color-map); stroke-width: 5px; stroke-linejoin: round; }
.map-pin circle { transform-box: fill-box; transform-origin: center; }
.map-pin__ring { fill: none; stroke: var(--color-ink); stroke-width: 2; opacity: 0.35; }
.map-pin__dot { fill: var(--color-pin); stroke: var(--color-ink); stroke-width: 3; }

.meet__state { position: absolute; top: var(--space-lg); left: var(--space-lg); display: grid; z-index: 2; }
.state { grid-area: 1 / 1; padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-card); background: var(--color-paper); border: 1px solid var(--color-rule); font-size: var(--text-sm); font-weight: 500; white-space: nowrap; }
.state--search { opacity: 0; color: var(--color-state-searching); }
.state--found { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent-ink); }

.match { position: absolute; left: var(--space-lg); bottom: var(--space-lg); z-index: 2; width: min(22rem, calc(100% - 2 * var(--space-lg))); padding: var(--space-lg); display: grid; gap: var(--space-md); background: var(--color-paper); border: 1px solid var(--color-rule); border-radius: var(--radius-card); }
.match__title { font: var(--display-weight) var(--text-title)/1.05 var(--font-display); text-transform: var(--display-case); }
.match__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: var(--rule-bar) solid var(--color-rule-2); }
.match__facts > div { padding: var(--space-xs) var(--space-xs) 0; border-left: var(--rule-hair) solid var(--color-rule); }
.match__facts > div:first-child { padding-left: 0; border-left: 0; }
.match__facts dt { font-size: var(--text-xs); color: var(--color-muted); }
.match__facts dd { margin: 0; font-size: var(--text-sm); font-weight: 500; }
.time { font-family: var(--font-outlier); font-weight: 500; font-variant-numeric: tabular-nums; }
.match__tags, .activity-tags { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.activity-tags span { display: inline-flex; align-items: center; gap: var(--space-xs); }
.activity-tags span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sport); transition: background-color var(--motion-interval) var(--ease-stride); }
.match__tags span, .activity-tags span { padding: var(--space-2xs) var(--space-xs); border: 1px solid var(--color-rule); border-radius: var(--radius-card); font-size: var(--text-xs); }
.match__actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xs); }
.match__actions span { display: grid; place-items: center; min-height: 40px; border: var(--rule-bar) solid var(--color-ink); border-radius: var(--radius-card); font: var(--display-weight) var(--text-md)/1 var(--font-display); text-transform: var(--display-case); }
.match__actions .is-primary { background: var(--color-ink); color: var(--color-paper); }

.loop-toggle { position: absolute; top: var(--space-lg); right: var(--space-lg); z-index: 3; min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.loop-toggle:hover { background: var(--color-paper-2); }
.loop-toggle:active { transform: translateY(1px); }
html:not(.js) .loop-toggle { display: none; }

/* the meet loop: twelve seconds; at rest (no script, reduced motion) it shows its end state */
.js .meet .route--you, .js .meet .route--them { animation: meet-draw 12s var(--ease-in-out) infinite; }
.js .meet .route--shared { animation: meet-shared 12s var(--ease-in-out) infinite; }
.js .meet .map-pin__dot { animation: meet-pin 12s var(--ease-out) infinite; }
.js .meet .map-pin__ring { animation: meet-ring 12s var(--ease-out) infinite; }
.js .meet .state--search { animation: meet-search 12s linear infinite; }
.js .meet .state--found { animation: meet-found 12s linear infinite; }
.js .meet .match { animation: meet-card 12s var(--ease-out) infinite; }
@keyframes meet-draw { 0%, 4% { stroke-dashoffset: 1; opacity: 1; } 36%, 90% { stroke-dashoffset: 0; opacity: 1; } 97%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes meet-shared { 0%, 46% { stroke-dashoffset: 1; opacity: 1; } 70%, 90% { stroke-dashoffset: 0; opacity: 1; } 97%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes meet-pin { 0%, 35% { transform: scale(0); opacity: 0; } 41%, 90% { transform: scale(1); opacity: 1; } 97%, 100% { transform: scale(1); opacity: 0; } }
@keyframes meet-ring { 0%, 37% { transform: scale(0.4); opacity: 0; } 46% { transform: scale(1.25); opacity: 0.6; } 56%, 90% { transform: scale(1); opacity: 0.35; } 97%, 100% { opacity: 0; } }
@keyframes meet-search { 0%, 38% { opacity: 1; } 41%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes meet-found { 0%, 39% { opacity: 0; } 43%, 93% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes meet-card { 0%, 44% { opacity: 0; transform: translateY(16px); } 52%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: translateY(8px); } }

/* any loop holds still until the script sees it, and stops when paused or off-screen */
.js [data-loop]:not(.is-running), .js [data-loop]:not(.is-running) *, .js [data-loop]:not(.is-running) *::before, .js [data-loop]:not(.is-running) *::after { animation-play-state: paused !important; }

/* ---------- before and after: the ink band ---------- */
.pursuit { background: var(--color-band); color: var(--color-on-band); padding-block: var(--section-gap-s); }
.pursuit__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; }
.pursuit h2 { grid-column: 1 / 8; text-transform: var(--display-case); font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.02; }
.pursuit .lead { grid-column: 8 / 13; color: var(--color-on-band-muted); }

/* ---------- Side by side: two athletes, five sports (js/side-by-side.js) ---------- */
.sbs { --you: var(--color-on-band); --partner: var(--color-partner); --prop: color-mix(in oklab, var(--color-on-band) 62%, var(--color-band)); position: relative; margin: var(--space-2xl) 0 0; padding-top: var(--space-lg); border-top: var(--rule-bar) solid var(--color-band-rule); }
.sbs__stage { position: relative; border-radius: var(--radius-app); overflow: hidden; background: color-mix(in oklab, var(--color-band-rule) 30%, var(--color-band)); }
.sbs__svg { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 560; }

/* the figures: pictogram limbs, far side a step darker for depth */
.fig-limb { fill: none; stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; }
.fig-head { stroke: none; }
.fig--you .fig-limb { stroke: var(--you); } .fig--you .fig-head { fill: var(--you); }
.fig--partner .fig-limb { stroke: var(--partner); } .fig--partner .fig-head { fill: var(--partner); }
.fig--you .fig-limb--far { stroke: color-mix(in oklab, var(--you) 62%, var(--color-band)); }
.fig--partner .fig-limb--far { stroke: color-mix(in oklab, var(--partner) 62%, var(--color-band)); }
.fig-shadow { fill: var(--color-band); opacity: 0.55; }
.fig-prop { fill: none; stroke: var(--prop); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.fig-prop--solid { fill: var(--prop); stroke: none; }
.fig-plate { fill: var(--prop); stroke: var(--color-band); stroke-width: 3; }
.fig-hub { fill: var(--color-band); }
.fig-racket-head { fill: color-mix(in oklab, var(--color-on-band) 10%, transparent); stroke: var(--prop); stroke-width: 3.5; }
.fig-spoke { stroke: var(--prop); stroke-width: 1.5; opacity: 0.6; }

/* the ground each sport stands on */
.sbs-floor { fill: none; stroke: var(--color-on-band); stroke-opacity: 0.18; stroke-width: 2; }
.sbs-accent { fill: none; stroke: var(--sport); stroke-width: 4; stroke-linecap: round; opacity: 0.9; }
.sbs-road { fill: none; stroke: var(--color-on-band); stroke-opacity: 0.35; stroke-width: 3; stroke-dasharray: 26 30; }
.sbs-water { fill: color-mix(in oklab, var(--color-sport-swim) 42%, var(--color-band)); opacity: 0.78; }
.sbs-waterline { fill: none; stroke: color-mix(in oklab, var(--color-sport-swim) 70%, var(--color-on-band)); stroke-width: 2.5; }
.sbs-rope { fill: none; stroke: var(--color-on-band); stroke-opacity: 0.35; stroke-width: 3; stroke-dasharray: 2 12; stroke-linecap: round; }
.sbs-net { fill: color-mix(in oklab, var(--color-on-band) 8%, transparent); stroke: var(--color-on-band); stroke-opacity: 0.6; stroke-width: 2; }
.sbs-post { fill: none; stroke: var(--color-on-band); stroke-opacity: 0.8; stroke-width: 5; stroke-linecap: round; }
.sbs-ball { fill: var(--color-spot); stroke: var(--color-band); stroke-width: 2.5; }
.sbs-ball-trail { fill: none; stroke: var(--color-spot); stroke-width: 2; stroke-dasharray: 1 8; stroke-linecap: round; }

/* the link: a hi-vis arc from head to head, the common-ground dot at its peak */
.sbs-link { fill: none; stroke: var(--color-spot); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; }
.sbs-spot { fill: var(--color-spot); stroke: var(--color-band); stroke-width: 3.5; }
.sbs-pulse { fill: none; stroke: var(--color-spot); stroke-width: 2; }

.sbs__fallback { display: none; }
html:not(.js) .sbs__fallback { display: inline; }
.sbs__fallback path { fill: none; stroke-width: 15; stroke-linecap: round; }
.sbs__fb-you path { stroke: var(--you); } .sbs__fb-you circle { fill: var(--you); }
.sbs__fb-partner path { stroke: var(--partner); } .sbs__fb-partner circle { fill: var(--partner); }
.sbs__fallback .sbs__fb-link { stroke: var(--color-spot); stroke-width: 3; }
.sbs__fb-spot { fill: var(--color-spot); }

.sbs__caption { position: absolute; left: var(--space-lg); top: var(--space-lg); z-index: 2; display: grid; gap: var(--space-2xs); pointer-events: none; }
.sbs__sport { font: var(--display-weight) clamp(1.75rem, 3vw, 2.75rem)/1 var(--font-display); letter-spacing: var(--tracking-display); color: var(--color-on-band); }
.sbs__line { display: grid; color: var(--color-on-band-muted); font-size: var(--text-lg); }
.sbs__line span { grid-area: 1 / 1; transition: opacity 600ms var(--ease-fluid), transform 700ms var(--ease-fluid), filter 600ms var(--ease-fluid); }
.sbs__together { color: var(--color-on-band); }
html:not(.js) .sbs__solo { display: none; }
.js .sbs.is-together .sbs__solo, .js .sbs:not(.is-together) .sbs__together { opacity: 0; transform: translateY(8px); filter: blur(3px); }
.sbs__caption.is-swapping { animation: sync-caption 800ms var(--ease-fluid); }
.sbs__legend { position: absolute; right: var(--space-lg); top: var(--space-lg); z-index: 2; display: flex; gap: var(--space-lg); font-size: var(--text-sm); color: var(--color-on-band-muted); }
.sbs__legend span { display: inline-flex; align-items: center; gap: var(--space-xs); }
.sbs__legend .k--you { background: var(--you); } .sbs__legend .k--partner { background: var(--partner); }

.sbs__controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-lg); align-items: center; margin-top: var(--space-lg); }
.sbs__chapters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-sm); }
.sbs__chapters button { display: grid; gap: var(--space-xs); min-height: 44px; padding: var(--space-xs) 0; border: 0; background: transparent; color: var(--color-on-band-muted); font-size: var(--text-sm); font-weight: 500; text-align: left; white-space: nowrap; cursor: pointer; transition: color var(--motion-set) var(--ease-fluid); }
.sbs__chapters button:hover, .sbs__chapters [aria-pressed="true"] { color: var(--color-on-band); }
.sbs__chapters button:active { transform: translateY(1px); }
.sbs__chapters button:focus-visible { outline: 2px solid var(--color-spot); outline-offset: 4px; }
.sbs__chapters i { display: block; height: 3px; overflow: hidden; border-radius: 2px; background: var(--color-band-rule); }
.sbs__chapters b { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; }
.sbs__chapters button:nth-child(1) b { background: var(--color-sport-gym); }
.sbs__chapters button:nth-child(2) b { background: var(--color-sport-ride); }
.sbs__chapters button:nth-child(3) b { background: var(--color-sport-swim); }
.sbs__chapters button:nth-child(4) b { background: var(--color-sport-tennis); }
.sbs__chapters button:nth-child(5) b { background: var(--color-sport-badminton); }
html:not(.js) .sbs__controls { display: none; }

/* ---------- In sync, the journey: one camera move through five sports (switched off in index.html, kept for later) ---------- */
.sync { --wash: var(--color-sport-gym); --you: var(--color-on-band); --partner: var(--color-partner); position: relative; margin: var(--space-2xl) 0 0; padding-top: var(--space-lg); border-top: var(--rule-bar) solid var(--color-band-rule); }
.sync__stage { position: relative; border-radius: var(--radius-app); overflow: hidden; background-color: color-mix(in oklab, var(--wash) 26%, var(--color-band)); transition: background-color 1400ms var(--ease-fluid); }
.sync__svg { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 520; }
.sync__fallback path { fill: none; stroke-width: 10; stroke-linecap: round; }
.sync__fallback path:first-child { stroke: var(--you); } .sync__fallback path:last-of-type { stroke: var(--partner); }
.sync__fallback circle { fill: var(--color-spot); stroke: var(--color-band); stroke-width: 5; }
.js .sync__fallback { display: none; }

.sy-word { font: 800 300px/1 var(--font-display); letter-spacing: -0.06em; fill: var(--color-on-band); fill-opacity: 0.045; }
/* scene materials: each scene sets --tint from its sport colour */
.sy-ring { fill: none; stroke: var(--tint); stroke-width: 22; opacity: 0.5; }
.sy-rep { fill: none; stroke-width: 22; stroke-linecap: round; stroke-dasharray: 1; }
.sy-rep--you { stroke: var(--you); } .sy-rep--partner { stroke: var(--partner); }
.sy-road { fill: none; stroke: var(--tint); stroke-width: 34; stroke-linecap: round; opacity: 0.6; }
.sy-road-line { fill: none; stroke: var(--color-on-band); stroke-opacity: 0.35; stroke-width: 2; stroke-dasharray: 14 18; }
.sy-path { fill: none; stroke: none; }
.sy-pool { fill: color-mix(in oklab, var(--tint) 30%, var(--color-band)); stroke: var(--tint); stroke-width: 2; }
.sy-lane { fill: none; stroke: var(--tint); stroke-width: 72; stroke-linecap: round; opacity: 0.55; }
.sy-rope { fill: none; stroke: var(--color-on-band); stroke-opacity: 0.3; stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.sy-wall { fill: none; stroke: var(--tint); stroke-width: 4; }
.sy-court { fill: color-mix(in oklab, var(--tint) 50%, var(--color-band)); stroke: var(--color-on-band); stroke-opacity: 0.6; stroke-width: 3; }
.sy-court-line { fill: none; stroke: var(--color-on-band); stroke-opacity: 0.55; stroke-width: 3; }
.sy-net { fill: none; stroke: var(--color-on-band); stroke-width: 6; stroke-dasharray: 3 7; opacity: 0.85; }
.sy-floor { fill: none; stroke: var(--tint); stroke-width: 18; stroke-linecap: round; }
.sy-floor-line { fill: none; stroke: var(--color-on-band); stroke-opacity: 0.4; stroke-width: 2; }
.sy-post { fill: none; stroke: var(--color-on-band); stroke-width: 6; stroke-linecap: round; }
.sy-mesh { fill: color-mix(in oklab, var(--color-on-band) 10%, transparent); stroke: var(--color-on-band); stroke-opacity: 0.45; stroke-width: 1.5; }

.sy-trail polyline { fill: none; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.sy-trail--you polyline { stroke: var(--you); } .sy-trail--partner polyline { stroke: var(--partner); }
.sy-trail polyline:nth-child(1) { opacity: 0.1; } .sy-trail polyline:nth-child(2) { opacity: 0.25; } .sy-trail polyline:nth-child(3) { opacity: 0.5; } .sy-trail polyline:nth-child(4) { opacity: 0.9; }
.sy-dot { stroke: var(--color-band); stroke-width: 4; }
.sy-dot--you { fill: var(--you); } .sy-dot--partner { fill: var(--partner); }
.sy-ball { fill: var(--color-spot); stroke: var(--color-band); stroke-width: 2.5; }
.sy-ball-trail { fill: none; stroke: var(--color-spot); stroke-width: 2; stroke-dasharray: 1 7; stroke-linecap: round; opacity: 0.75; }
.sy-link { stroke: var(--color-spot); stroke-width: 2.5; stroke-dasharray: 3 6; stroke-linecap: round; }
.sy-spot { fill: var(--color-spot); stroke: var(--color-band); stroke-width: 3; }
.sy-pulse { fill: none; stroke: var(--color-spot); stroke-width: 2; }

.sync__caption { position: absolute; left: var(--space-lg); top: var(--space-lg); z-index: 2; display: grid; gap: var(--space-2xs); pointer-events: none; }
.sync__sport { font: var(--display-weight) clamp(1.75rem, 3vw, 2.75rem)/1 var(--font-display); letter-spacing: var(--tracking-display); color: var(--color-on-band); }
.sync__line { display: grid; color: var(--color-on-band-muted); font-size: var(--text-lg); }
.sync__line span { grid-area: 1 / 1; transition: opacity 600ms var(--ease-fluid), transform 700ms var(--ease-fluid), filter 600ms var(--ease-fluid); }
.sync__together { color: var(--color-on-band); }
html:not(.js) .sync__solo { display: none; }
.js .sync.is-together .sync__solo, .js .sync:not(.is-together) .sync__together { opacity: 0; transform: translateY(8px); filter: blur(3px); }
.sync__caption.is-swapping { animation: sync-caption 800ms var(--ease-fluid); }
@keyframes sync-caption { from { opacity: 0; transform: translateX(-16px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.sync__legend { position: absolute; right: var(--space-lg); top: var(--space-lg); z-index: 2; display: flex; gap: var(--space-lg); font-size: var(--text-sm); color: var(--color-on-band-muted); }
.sync__legend span { display: inline-flex; align-items: center; gap: var(--space-xs); }
.sync__legend .k--you { background: var(--you); } .sync__legend .k--partner { background: var(--partner); }

.sync__controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-lg); align-items: center; margin-top: var(--space-lg); }
.sync__chapters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-sm); }
.sync__chapters button { display: grid; gap: var(--space-xs); min-height: 44px; padding: var(--space-xs) 0; border: 0; background: transparent; color: var(--color-on-band-muted); font-size: var(--text-sm); font-weight: 500; text-align: left; white-space: nowrap; cursor: pointer; transition: color var(--motion-set) var(--ease-fluid); }
.sync__chapters button:hover, .sync__chapters [aria-pressed="true"] { color: var(--color-on-band); }
.sync__chapters button:active { transform: translateY(1px); }
.sync__chapters button:focus-visible { outline: 2px solid var(--color-spot); outline-offset: 4px; }
.sync__chapters i { display: block; height: 3px; overflow: hidden; border-radius: 2px; background: var(--color-band-rule); }
.sync__chapters b { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; }
.sync__chapters button:nth-child(1) b { background: var(--color-sport-gym); }
.sync__chapters button:nth-child(2) b { background: var(--color-sport-ride); }
.sync__chapters button:nth-child(3) b { background: var(--color-sport-swim); }
.sync__chapters button:nth-child(4) b { background: var(--color-sport-tennis); }
.sync__chapters button:nth-child(5) b { background: var(--color-sport-badminton); }
[data-theme="night"] .sync__chapters b { filter: brightness(1.1); }
html:not(.js) .sync__controls { display: none; }

/* ---------- Two profiles, one plan: the second common ground stage (switched off in index.html, kept for later) ---------- */
.duo { position: relative; margin: var(--space-2xl) 0 0; padding-top: var(--space-lg); border-top: var(--rule-bar) solid var(--color-band-rule); container-type: inline-size; }
.duo__stage { position: relative; aspect-ratio: 2.3 / 1; min-height: 520px; perspective: 1600px; }
.duo__threads { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.duo__threads path { fill: none; stroke: var(--color-spot); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 900ms var(--ease-stride), opacity 300ms var(--ease-stride); transition-delay: calc(var(--i) * 220ms); }
.duo[data-step="1"] .duo__threads path { stroke-dashoffset: 0; opacity: 0.9; }

.duo__card { --card-r: 0deg; position: absolute; top: 50%; z-index: 2; width: 25%; display: grid; gap: var(--space-sm); padding: var(--space-lg); border-radius: var(--radius-app); background: var(--color-paper); color: var(--color-ink); outline: 1px solid var(--color-paper-3); outline-offset: -1px; font-size: clamp(12px, 1.05cqi, 16px); transform-style: preserve-3d; transition: transform 1000ms var(--ease-stride), opacity 600ms var(--ease-stride); }
.duo__card--you { left: 4%; transform: translateY(-50%) rotateY(16deg) rotateZ(-1.5deg); transform-origin: 0 50%; }
.duo__card--partner { right: 4%; transform: translateY(-50%) rotateY(-16deg) rotateZ(1.5deg); transform-origin: 100% 50%; }
.duo[data-step="2"] .duo__card--you { transform: translateX(20.5cqi) translateY(-50%) rotateZ(-3deg); }
.duo[data-step="2"] .duo__card--partner { transform: translateX(-20.5cqi) translateY(-50%) rotateZ(3deg); }
.duo[data-step="3"] .duo__card--you { transform: translateX(13cqi) translateY(-50%) scale(0.8) rotateZ(-8deg); opacity: 0.45; }
.duo[data-step="3"] .duo__card--partner { transform: translateX(-13cqi) translateY(-50%) scale(0.8) rotateZ(8deg); opacity: 0.45; }

.duo__who, .duo__session-head { display: flex; align-items: center; gap: 0.7em; }
.duo__who b, .duo__session-head b { display: block; font-weight: 600; letter-spacing: -0.01em; }
.duo__who small, .duo__session-head small { display: block; font-size: 0.82em; color: var(--color-muted); }
.duo__avatar { display: grid; place-items: center; flex-shrink: 0; width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--color-you); color: var(--color-paper); font-weight: 600; }
.duo__card--partner .duo__avatar, .duo__avatar--partner { background: var(--color-partner); }
.duo__pair { display: flex; }
.duo__pair .duo__avatar + .duo__avatar { margin-left: -0.7em; box-shadow: 0 0 0 2px var(--color-paper); }

.duo__map { display: block; width: 100%; height: auto; border-radius: calc(var(--radius-app) - 6px); }
.dm-ground { fill: var(--color-map); }
.dm-street { fill: none; stroke: var(--color-map-street); stroke-width: 7; }
.dm-route { fill: none; stroke: var(--color-you); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.duo__card--partner .dm-route, .dm-route--partner { stroke: var(--color-partner); }
.dm-route--shared { stroke-width: 7; }
.dm-start { fill: var(--color-you); }
.duo__card--partner .dm-start { fill: var(--color-partner); }
.dm-spot { fill: var(--color-spot); stroke: var(--color-ink); stroke-width: 3; transform-box: fill-box; transform-origin: center; }
.js .duo[data-step="0"] .duo__card .dm-route { animation: dm-draw 2.2s var(--ease-stride) both; }
.js .duo[data-step="3"] .duo__session .dm-route { animation: dm-draw 1.6s var(--ease-stride) 300ms both; }
.js .duo[data-step="3"] .duo__session .dm-route--shared { animation-delay: 1.3s; }
.js .duo[data-step="3"] .dm-spot { animation: dm-pop 600ms var(--ease-stride) 1.2s both; }
@keyframes dm-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes dm-pop { from { transform: scale(0); } 70% { transform: scale(1.25); } to { transform: scale(1); } }

.duo__facts { margin: 0; display: grid; }
.duo__facts > div { display: flex; justify-content: space-between; gap: 0.6em; padding: 0.45em 0.6em; border-top: var(--rule-hair) solid var(--color-rule); border-radius: 6px; transition: background-color 500ms var(--ease-stride); }
.duo__facts > div:first-child { border-top-color: transparent; }
.duo__facts dt { color: var(--color-muted); }
.duo__facts dd { margin: 0; font-weight: 500; text-align: right; }
.duo[data-step="1"] .duo__card .duo__facts > div, .duo[data-step="2"] .duo__card .duo__facts > div { background: color-mix(in oklab, var(--color-spot) 32%, var(--color-paper)); border-top-color: transparent; }
.duo[data-step="1"] .duo__card .duo__facts > div:nth-child(2) { transition-delay: 220ms; }
.duo[data-step="1"] .duo__card .duo__facts > div:nth-child(3) { transition-delay: 440ms; }
.duo[data-step="1"] .duo__card .duo__facts > div:nth-child(4) { transition-delay: 660ms; }

.duo__checks { position: absolute; left: 50%; top: 50%; z-index: 4; width: 21%; margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-sm); transform: translate(-50%, -50%); }
.duo__checks li { display: flex; align-items: center; gap: 0.6em; padding: 0.6em 0.9em; border-radius: 999px; background: var(--color-band); color: var(--color-on-band); outline: 1px solid var(--color-band-rule); font-size: clamp(12px, 1.1cqi, 17px); font-weight: 500; transition: opacity 500ms var(--ease-stride), transform 500ms var(--ease-stride); transition-delay: calc(var(--i) * 220ms + 350ms); }
.duo__checks svg { flex-shrink: 0; width: 1.2em; height: 1.2em; padding: 0.15em; border-radius: 50%; background: var(--color-spot); fill: none; stroke: var(--color-on-spot); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.js .duo__checks li { opacity: 0; transform: translateY(10px) scale(0.96); }
.js .duo[data-step="1"] .duo__checks li { opacity: 1; transform: none; }

.duo__mutual { position: absolute; left: 50%; top: 50%; z-index: 5; margin: 0; padding: 0.55em 1.2em; border-radius: 999px; background: var(--color-spot); color: var(--color-on-spot); font: var(--display-weight) clamp(16px, 1.8cqi, 28px)/1 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; transform: translate(-50%, -50%); transition: opacity 400ms var(--ease-stride), transform 600ms var(--ease-stride); }
.js .duo__mutual { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
.js .duo[data-step="2"] .duo__mutual { opacity: 1; transform: translate(-50%, -50%) scale(1); transition-delay: 650ms; }
.js .duo[data-step="3"] .duo__mutual { opacity: 1; transform: translate(-50%, -50%) translateY(calc(-1 * min(15.5cqi, 250px))) scale(0.8); }

.duo__session { position: absolute; left: 50%; top: 50%; z-index: 4; width: 31%; display: grid; gap: var(--space-sm); padding: var(--space-lg); border-radius: var(--radius-app); background: var(--color-paper); color: var(--color-ink); font-size: clamp(12px, 1.1cqi, 17px); transform: translate(-50%, -50%); transition: opacity 600ms var(--ease-stride), transform 900ms var(--ease-stride); pointer-events: none; }
.js .duo__session { opacity: 0; transform: translate(-50%, -44%) scale(0.94); }
html:not(.js) .duo__mutual, html:not(.js) .duo__session { display: none; }
.js .duo[data-step="3"] .duo__session { opacity: 1; transform: translate(-50%, -50%) scale(1); transition-delay: 250ms; }
.duo__facts--session dd { font-weight: 600; }
.duo__tag { justify-self: start; margin: 0; padding: 0.3em 0.7em; border-radius: var(--radius-card); background: var(--color-state-planned); color: var(--color-paper); font-size: 0.85em; font-weight: 500; }

.duo__controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-lg); align-items: center; margin-top: var(--space-lg); }
.duo__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-sm); }
.duo__steps button { display: grid; gap: var(--space-xs); min-height: 44px; padding: var(--space-xs) 0; border: 0; background: transparent; color: var(--color-on-band-muted); font-size: var(--text-sm); font-weight: 500; text-align: left; white-space: nowrap; cursor: pointer; transition: color var(--motion-set) var(--ease-stride); }
.duo__steps button:hover, .duo__steps [aria-pressed="true"] { color: var(--color-on-band); }
.duo__steps button:active { transform: translateY(1px); }
.duo__steps button:focus-visible { outline: 2px solid var(--color-spot); outline-offset: 4px; }
.duo__steps i { display: block; height: 3px; overflow: hidden; border-radius: 2px; background: var(--color-band-rule); }
.duo__steps b { display: block; height: 100%; background: var(--color-on-band); transform: scaleX(0); transform-origin: 0 50%; }
.duo__steps button:nth-child(2) b { background: var(--color-spot); }
.duo__steps button:nth-child(3) b { background: var(--color-partner); }
html:not(.js) .duo__controls { display: none; }

@container (max-width: 760px) {
  .duo__stage { aspect-ratio: 4 / 5; min-height: 0; }
  .duo__card { top: 36%; width: 46%; font-size: 12px; padding: var(--space-sm); gap: var(--space-xs); }
  .duo__card--you { left: 2%; } .duo__card--partner { right: 2%; }
  .duo__card .duo__who small { display: none; }
  .duo[data-step="2"] .duo__card--you { transform: translateX(1cqi) translateY(-50%) rotateZ(-2deg); }
  .duo[data-step="2"] .duo__card--partner { transform: translateX(-1cqi) translateY(-50%) rotateZ(2deg); }
  .duo[data-step="3"] .duo__card--you, .duo[data-step="3"] .duo__card--partner { opacity: 0.25; }
  .duo__checks { top: 84%; width: 92%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
  .duo__checks li { font-size: 12px; padding: 0.55em 0.7em; }
  .duo__mutual { top: 78%; font-size: 18px; }
  .js .duo[data-step="3"] .duo__mutual { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  .duo__session { width: 84%; font-size: 13px; }
  .duo__threads { display: none; }
}

/* ---------- In sync: the first common ground stage (switched off in index.html, kept for later) ---------- */
.cg { --you: var(--color-on-band); --partner: var(--color-partner); position: relative; margin: var(--space-2xl) 0 0; padding-top: var(--space-lg); border-top: var(--rule-bar) solid var(--color-band-rule); }
.cg__stage { position: relative; }
.cg__svg { width: 100%; height: auto; aspect-ratio: 1200 / 520; overflow: hidden; }
.cg-scene { opacity: 0; transition: opacity 700ms var(--ease-out); }
.cg-scene.is-active { opacity: 1; }
.cg-scene[data-scene="run"] { --tint: color-mix(in oklab, var(--color-sport-run) 62%, var(--color-band)); }
.cg-scene[data-scene="ride"] { --tint: color-mix(in oklab, var(--color-sport-ride) 62%, var(--color-band)); }
.cg-scene[data-scene="swim"] { --tint: color-mix(in oklab, var(--color-sport-swim) 62%, var(--color-band)); }
.cg-scene[data-scene="lift"] { --tint: color-mix(in oklab, var(--color-sport-gym) 60%, var(--color-on-band) 40%); }
.cg-surface { fill: none; stroke: var(--tint); }
.cg-surface--band { stroke-width: 108; opacity: 0.55; }
.cg-surface--lane { stroke-width: 72; opacity: 0.5; stroke-linecap: round; }
.cg-lane-line { fill: none; stroke: var(--color-on-band); stroke-opacity: 0.18; stroke-width: 1.5; }
.cg-path { fill: none; stroke: none; }
.cg-road { fill: none; stroke: var(--tint); stroke-width: 30; stroke-linecap: round; opacity: 0.5; }
.cg-road-line { fill: none; stroke: var(--color-on-band); stroke-opacity: 0.35; stroke-width: 2; stroke-dasharray: 14 18; }
.cg-pool { fill: color-mix(in oklab, var(--color-sport-swim) 18%, var(--color-band)); stroke: var(--tint); stroke-width: 2; }
.cg-rope { fill: none; stroke: var(--color-on-band); stroke-opacity: 0.3; stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.cg-wall { fill: none; stroke: var(--tint); stroke-width: 4; }
.cg-ring { fill: none; stroke: var(--tint); stroke-width: 22; opacity: 0.4; }
.cg-rep { fill: none; stroke-width: 22; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0.25; }
.cg-rep--you { stroke: var(--you); }
.cg-rep--partner { stroke: var(--partner); }
.cg-trail polyline { fill: none; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.cg-trail--you polyline { stroke: var(--you); }
.cg-trail--partner polyline { stroke: var(--partner); }
.cg-trail polyline:nth-child(1) { opacity: 0.12; } .cg-trail polyline:nth-child(2) { opacity: 0.3; } .cg-trail polyline:nth-child(3) { opacity: 0.55; } .cg-trail polyline:nth-child(4) { opacity: 0.9; }
.cg-dot { stroke: var(--color-band); stroke-width: 4; }
.cg-dot--you { fill: var(--you); }
.cg-dot--partner { fill: var(--partner); }
.cg-link { stroke: var(--color-spot); stroke-width: 2; stroke-dasharray: 3 5; stroke-linecap: round; }
.cg-spot { fill: var(--color-spot); stroke: var(--color-band); stroke-width: 3; }
.cg-pulse { fill: none; stroke: var(--color-spot); stroke-width: 2; opacity: 0; }
.cg__caption { position: absolute; left: 0; top: 0; display: grid; gap: var(--space-2xs); pointer-events: none; }
.cg__sport { font: var(--display-weight) var(--text-2xl)/1 var(--font-display); letter-spacing: var(--tracking-display); }
.cg__line { display: grid; color: var(--color-on-band-muted); }
.cg__line span { grid-area: 1 / 1; transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.cg__together { color: var(--color-on-band); }
html:not(.js) .cg__solo { display: none; }
.js .cg.is-together .cg__solo, .js .cg:not(.is-together) .cg__together { opacity: 0; transform: translateY(6px); }
.cg__caption.is-swapping { animation: cg-caption 600ms var(--ease-out); }
@keyframes cg-caption { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cg__legend { position: absolute; right: 0; top: 0; display: flex; gap: var(--space-lg); font-size: var(--text-sm); color: var(--color-on-band-muted); }
.cg__legend span { display: inline-flex; align-items: center; gap: var(--space-xs); }
.k { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.k--you { background: var(--you); } .k--partner { background: var(--partner); } .k--spot { background: var(--color-spot); }
.cg__controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-lg); align-items: center; margin-top: var(--space-lg); }
.cg__chapters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-sm); }
.cg__chapters button { display: grid; gap: var(--space-xs); min-height: 44px; padding: var(--space-xs) 0; border: 0; background: transparent; color: var(--color-on-band-muted); font-size: var(--text-sm); font-weight: 500; text-align: left; cursor: pointer; transition: color var(--motion-set) var(--ease-stride); }
.cg__chapters button:hover, .cg__chapters [aria-pressed="true"] { color: var(--color-on-band); }
.cg__chapters button:active { transform: translateY(1px); }
.cg__chapters button:focus-visible { outline: 2px solid var(--color-spot); outline-offset: 4px; }
.cg__chapters i { display: block; height: 3px; overflow: hidden; border-radius: 2px; background: var(--color-band-rule); }
.cg__chapters b { display: block; height: 100%; background: var(--color-on-band); transform: scaleX(0); transform-origin: 0 50%; }
.cg__chapters .is-done b { transform: scaleX(1); }
.loop-toggle--band { position: static; background: var(--color-band); color: var(--color-on-band); border-color: var(--color-band-rule); }
.loop-toggle--band:hover { background: var(--color-band-rule); }

/* ---------- shared head blocks ---------- */
.split-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.split-head h2 { grid-column: 1 / 8; }
.split-head .lead { grid-column: 8 / 13; color: var(--color-ink-2); }
h2 { text-transform: var(--display-case); }

/* ---------- what do you train: the switcher ---------- */
.experience { padding-block: var(--section-gap) 0; }
.activity-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: var(--rule-bar) solid var(--color-rule-2); }
.activity-tabs button { min-height: 64px; padding: 0 var(--space-md); border: 0; border-left: var(--rule-hair) solid var(--color-rule); background: transparent; color: var(--color-muted); text-align: left; font: var(--display-weight) var(--text-xl)/1 var(--font-display); text-transform: var(--display-case); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.activity-tabs button:first-child { border-left: 0; }
.activity-tabs button:hover { background: var(--color-paper-2); color: var(--color-ink); }
.activity-tabs button:active { transform: translateY(1px); }
.activity-tabs button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.activity-tabs [data-activity="tennis"], .activity-panel[data-mode="tennis"] { --sport: var(--color-sport-tennis); }
.activity-tabs [data-activity="badminton"], .activity-panel[data-mode="badminton"] { --sport: var(--color-sport-badminton); }
.activity-tabs [data-activity="gym"], .activity-panel[data-mode="gym"] { --sport: var(--color-sport-gym); }
.activity-tabs [data-activity="cycle"], .activity-panel[data-mode="cycle"] { --sport: var(--color-sport-ride); }
.activity-tabs [data-activity="swim"], .activity-panel[data-mode="swim"] { --sport: var(--color-sport-swim); }
.activity-tabs button { position: relative; }
.activity-tabs button::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 4px; background: var(--sport); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--motion-interval) var(--ease-stride); }
.activity-tabs button:hover::before { transform: scaleX(0.35); }
.activity-tabs [aria-selected="true"], .activity-tabs [aria-selected="true"]:hover { background: var(--sport); color: var(--color-on-sport); }
.activity-tabs [aria-selected="true"]::before { transform: scaleX(1); }
.activity-panel { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; padding-top: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.activity-panel:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.activity-content { grid-column: 1 / 6; display: grid; gap: var(--space-lg); align-content: center; }
.activity-content h3 { font-size: var(--text-display-s); line-height: 1.02; text-transform: var(--display-case); max-width: 14ch; }
.activity-content > p:not(.activity-tags) { color: var(--color-ink-2); max-width: 40ch; }
.activity-art { grid-column: 6 / 13; margin: 0; }
.activity-photo { aspect-ratio: 4 / 3; min-height: 440px; border-radius: var(--radius-card); }
.activity-photo > img.ph { opacity: 0; transition: opacity var(--dur-long) var(--ease-out); }
.activity-panel[data-mode="gym"] .ph--gym, .activity-panel[data-mode="cycle"] .ph--cycle, .activity-panel[data-mode="swim"] .ph--swim, .activity-panel[data-mode="tennis"] .ph--tennis, .activity-panel[data-mode="badminton"] .ph--badminton { opacity: 1; }
.activity-plate { position: absolute; right: 0; bottom: 0; z-index: 3; padding: var(--space-xs) var(--space-md); background: var(--sport, var(--color-accent)); color: var(--color-on-sport); font: var(--display-weight) var(--text-3xl)/1 var(--font-display); text-transform: var(--display-case); border-top-left-radius: var(--radius-card); transition: background-color var(--motion-interval) var(--ease-stride); }
.activity-art figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- how a match happens: stages on one bar ---------- */
.how { padding-block: var(--section-gap-s) var(--section-gap); }
.how h2 { margin-bottom: var(--space-2xl); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); counter-reset: stage; }
.stage { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--space-sm); padding-top: var(--space-lg); border-top: var(--rule-bar) solid var(--color-rule-2); counter-increment: stage; }
.stage::before { content: counter(stage); font: 500 clamp(4rem, 7vw, 6.5rem)/0.9 var(--font-outlier); letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.stage::after { content: ""; position: absolute; top: -6px; left: 0; right: 0; height: 6px; background: var(--stage-c, var(--color-accent)); transform: scaleX(0); transform-origin: 0 50%; }
.stage:nth-child(1) { --stage-c: var(--color-state-common); }
.stage:nth-child(2) { --stage-c: var(--color-state-mutual); }
.stage:nth-child(3) { --stage-c: var(--color-state-planned); }
.stage h3 { font-size: var(--text-2xl); text-transform: var(--display-case); }
.stage p { color: var(--color-ink-2); max-width: 36ch; }
.sample { display: flex; flex-wrap: wrap; align-content: flex-start; gap: var(--space-xs); min-height: 152px; margin-top: var(--space-md); padding: var(--space-lg); background: var(--color-paper-2); border-radius: var(--radius-card); }
.sample span { font-size: var(--text-sm); }
.sample--chips span { padding: var(--space-2xs) var(--space-sm); border: 1px solid var(--color-rule-2); border-radius: var(--radius-card); background: var(--color-paper); }
.sample--chips .is-on { background: var(--color-sport-badminton); color: var(--color-on-sport); border-color: var(--color-sport-badminton); }
.sample--mutual .row--partner svg { stroke: var(--color-partner); }
.sample--plan .tag--planned { background: var(--color-state-planned); color: var(--color-paper); border-color: var(--color-state-planned); }
.sample--mutual { flex-direction: column; }
.sample--mutual .row { display: flex; align-items: center; gap: var(--space-xs); font-weight: 500; }
.sample--mutual svg { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sample--mutual .row--chat { margin-top: var(--space-xs); padding-top: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); }
.sample--plan { flex-direction: column; }
.sample--plan .time { font-size: var(--text-2xl); line-height: 1; }
.sample--plan .tag { align-self: flex-start; padding: var(--space-2xs) var(--space-sm); border: 1px solid var(--color-rule-2); border-radius: var(--radius-card); }
@supports (animation-timeline: view()) {
  .stage::after { animation: stage-live linear both; animation-timeline: view(); animation-range: entry 60% cover 50%; }
  @keyframes stage-live { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------- why: results as a sheet ---------- */
.why { padding-block: var(--section-gap-l) 0; border-top: var(--rule-hair) solid var(--color-rule); }
.research-grid { border-top: var(--rule-bar) solid var(--color-rule-2); border-bottom: var(--rule-bar) solid var(--color-rule-2); }
.research-item { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: start; padding-block: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.research-item:first-child { border-top: 0; }
.big { grid-column: 1 / 5; font: 500 clamp(3.25rem, 6vw, 5.5rem)/0.95 var(--font-outlier); letter-spacing: -0.06em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.big small { font: 500 var(--text-sm)/1 var(--font-body); letter-spacing: 0; color: var(--color-muted); margin-left: var(--space-xs); white-space: nowrap; }
.card-text { grid-column: 5 / 10; padding-top: var(--space-xs); color: var(--color-ink-2); max-width: 56ch; }
.source { grid-column: 10 / 13; padding-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.research-item--lead { padding-block: var(--space-2xl); }
.research-item--lead .big { font-size: clamp(4.5rem, 9vw, 8rem); }
.big__plate { display: inline-block; padding: var(--space-sm) var(--space-lg); border-radius: var(--radius-card); background: var(--color-spot); color: var(--color-on-spot); }
.research-lead__body { grid-column: 5 / 10; display: grid; gap: var(--space-lg); padding-top: var(--space-xs); }
.research-lead__body .card-text { grid-column: auto; padding-top: 0; font-size: var(--text-lg); color: var(--color-ink); }
.finish-bars { margin: 0; display: grid; gap: var(--space-sm); }
.finish-bars__row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--space-md); align-items: center; }
.finish-bars dt { font-size: var(--text-sm); font-weight: 500; }
.finish-bars dd { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 3.5rem; gap: var(--space-sm); align-items: center; }
.finish-bars dd b { font: 500 var(--text-lg)/1 var(--font-outlier); font-variant-numeric: tabular-nums; }
.finish-bars__track { display: block; height: 16px; border-radius: var(--radius-card); background: var(--color-paper-3); overflow: hidden; }
.finish-bars__fill { display: block; height: 100%; border-radius: var(--radius-card); background: var(--color-muted); transform: scaleX(var(--v)); transform-origin: 0 50%; transition: transform 1200ms var(--ease-stride) 250ms; }
.finish-bars__row--with .finish-bars__fill { background: var(--color-spot); box-shadow: inset 0 0 0 1px var(--color-on-spot); }
.js .research-item--lead:not(.in) .finish-bars__fill { transform: scaleX(0); }
.research-note { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); max-width: 60ch; }

/* ---------- launch: the close ---------- */
.coming { background: var(--color-paper-2); padding-block: var(--section-gap-s); border-top: var(--rule-bar) solid var(--color-rule-2); }
.coming__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: start; }
.coming__copy { grid-column: 1 / 7; display: grid; gap: var(--space-lg); }
.coming h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.02; }
.coming .lead { color: var(--color-ink-2); }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: var(--space-md) 0 0; border-top: var(--rule-bar) solid var(--color-rule-2); max-width: 30rem; }
.platforms > div { padding: var(--space-md) var(--space-lg) 0; border-left: var(--rule-hair) solid var(--color-rule); }
.platforms > div:first-child { padding-left: 0; border-left: 0; }
.platforms dt { font: var(--display-weight) var(--text-2xl)/1 var(--font-display); text-transform: var(--display-case); }
.platforms dd { margin: var(--space-2xs) 0 0; font-size: var(--text-sm); color: var(--color-muted); }
.newsletter { grid-column: 8 / 13; display: grid; gap: var(--space-md); padding-top: var(--space-xs); }
.newsletter h3 { font-size: var(--text-2xl); text-transform: var(--display-case); }
.newsletter > p { color: var(--color-ink-2); }

/* ---------- footer: colophon block ---------- */
.footer { padding-block: var(--space-3xl) var(--space-2xl); }
.footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-lg) var(--gap-columns); align-items: end; }
.brand--mast { grid-column: 1 / 13; font-size: clamp(4.5rem, 20vw, 18rem); line-height: 0.82; margin-bottom: var(--space-lg); }
.brand--mast .brand__dot { box-shadow: 0 0 0 0.03em var(--color-ink); }
.footer__line { grid-column: 1 / 6; font: var(--display-weight) var(--text-2xl)/1.05 var(--font-display); text-transform: var(--display-case); }
.footer__colophon { grid-column: 6 / 9; font-size: var(--text-sm); color: var(--color-muted); }
.footer__colophon a { color: var(--color-ink); margin-left: var(--space-xs); }
.footer__credits { grid-column: 9 / 13; font-size: var(--text-xs); color: var(--color-muted); }
.footer__credits a { color: var(--color-ink-2); }

/* ---------- one reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px) scale(0.985); filter: blur(6px); transition: opacity 900ms var(--ease-fluid), transform 1200ms var(--ease-fluid), filter 900ms var(--ease-fluid); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
/* leaving the screen: a quicker, unstaggered fade */
.js [data-reveal].is-out { transition-duration: 500ms, 700ms, 500ms; transition-delay: 0ms; }

/* ---------- fluid: motion that follows the scroll, so the page never jumps ---------- */
a, button, .btn, .nav__action, .loop-toggle { transition-timing-function: var(--ease-fluid); }
.activity-photo > img.ph { transition: opacity 800ms var(--ease-fluid), transform 1400ms var(--ease-fluid); transform: scale(1.06); }
.activity-panel[data-mode="gym"] .ph--gym, .activity-panel[data-mode="cycle"] .ph--cycle, .activity-panel[data-mode="swim"] .ph--swim, .activity-panel[data-mode="tennis"] .ph--tennis, .activity-panel[data-mode="badminton"] .ph--badminton { transform: scale(1); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .meet { animation: fluid-hero-out linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    @keyframes fluid-hero-out { to { transform: translateY(6%) scale(0.96); opacity: 0.55; } }
    .activity-photo { animation: fluid-drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes fluid-drift { from { transform: translateY(4%); } to { transform: translateY(-4%); } }
    .brand--mast { animation: fluid-mast linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes fluid-mast { from { transform: translateX(-6%); opacity: 0.2; } to { transform: none; opacity: 1; } }
    .big__plate { animation: fluid-plate linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; transform-origin: 0 100%; }
    @keyframes fluid-plate { from { transform: scale(0.82) rotate(-2deg); } to { transform: none; } }
  }
}

/* ---------- the start line: anticipation for launch ---------- */
.btn--secondary { background: transparent; color: var(--color-ink); border-color: var(--color-ink); text-decoration: none; }
.btn--secondary:hover { background: var(--color-ink); color: var(--color-paper); }
.privacy-note { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-2xl); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-ink-2); }
.countdown { padding-block: var(--section-gap); }
.countdown__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; }
.countdown__head { grid-column: 1 / 6; display: grid; gap: var(--space-lg); justify-items: start; }
.countdown__head .lead { color: var(--color-ink-2); }
.start { position: relative; grid-column: 6 / 13; margin: 0; padding: var(--space-xl); display: grid; gap: var(--space-xl); background: var(--color-band); color: var(--color-on-band); border-radius: var(--radius-card); }
.start__lights { display: flex; gap: var(--space-md); }
.start__lights span { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--color-on-band-muted); background: var(--color-on-band); }
.start__lights .is-go { background: var(--color-pin); border-color: var(--color-pin); }
.start__calls { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-lg); }
.start__calls li { display: grid; gap: var(--space-2xs); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-band-rule); transform-origin: 0 50%; }
.start__calls b { font: var(--display-weight) clamp(2.25rem, 4.5vw, 4rem)/1 var(--font-display); letter-spacing: var(--tracking-display); }
.start__calls li.is-go b { justify-self: start; padding: var(--space-sm) var(--space-lg); background: var(--color-pin); color: var(--color-accent-ink); border-radius: var(--radius-card); }
.start__calls span { color: var(--color-on-band-muted); }
.loop-toggle--start { background: var(--color-band); color: var(--color-on-band); border-color: var(--color-band-rule); }
.loop-toggle--start:hover { background: var(--color-band-rule); }
/* a six-second start sequence: marks, set, go, then hold and reset */
.js .start__lights span, .js .start__calls li { animation-duration: 6s; animation-timing-function: var(--ease-out); animation-iteration-count: infinite; }
.js .start__lights span:nth-child(1), .js .start__calls li:nth-child(1) { animation-name: call-1; }
.js .start__lights span:nth-child(2), .js .start__calls li:nth-child(2) { animation-name: call-2; }
.js .start__lights span:nth-child(3), .js .start__calls li:nth-child(3) { animation-name: call-3; }
@keyframes call-1 { 0%, 6% { opacity: 0.25; } 12%, 90% { opacity: 1; } 100% { opacity: 0.25; } }
@keyframes call-2 { 0%, 28% { opacity: 0.25; } 34%, 90% { opacity: 1; } 100% { opacity: 0.25; } }
@keyframes call-3 { 0%, 50% { opacity: 0.25; transform: none; } 55% { opacity: 1; transform: scale(1.04); } 60%, 90% { opacity: 1; transform: none; } 100% { opacity: 0.25; } }

.privacy-note::before { content: ""; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--color-area); border: 2px dashed var(--color-area-edge); }

/* ---------- the launch toast ---------- */
.toast { position: fixed; right: var(--space-lg); bottom: var(--space-lg); z-index: var(--z-toast); width: min(25rem, calc(100% - 2 * var(--space-md))); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-md); align-items: start; padding: var(--space-lg); background: var(--color-band); color: var(--color-on-band); border-radius: var(--radius-card); outline: 1px solid var(--color-band-rule); outline-offset: -1px; opacity: 0; transform: translateY(16px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); }
.toast.is-shown { opacity: 1; transform: none; }
/* stepping aside: the other corner, or a slim pill with just the headline and the close button */
.toast { transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out), translate 600ms var(--ease-fluid); }
.toast.is-left { right: auto; left: var(--space-lg); }
.toast.is-slim { width: auto; grid-template-columns: auto auto auto; align-items: center; padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-md); }
.toast.is-slim .toast__text, .toast.is-slim .toast__action { display: none; }
.toast.is-slim .toast__close { margin: 0; }
.toast.is-leaving { transition-duration: 280ms; transition-timing-function: var(--ease-in); }
.toast--welcome { outline-color: var(--color-pin); }
.toast--welcome.is-shown .toast__mark svg circle { animation: welcome-pop 700ms var(--ease-out) 150ms both; transform-origin: 32px 32px; }
@keyframes welcome-pop { 0% { transform: scale(0.2); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
.toast__mark svg path { fill: none; stroke: var(--color-on-band); stroke-width: 6; stroke-linecap: round; }
.toast__mark svg circle { fill: var(--color-pin); stroke: var(--color-band); stroke-width: 3; }
.toast__body { display: grid; gap: var(--space-2xs); }
.toast__title { font-weight: 600; letter-spacing: -0.01em; }
.toast__text { font-size: var(--text-sm); color: var(--color-on-band-muted); }
.toast__action { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--space-xs); padding: 0 var(--space-md); border-radius: var(--radius-card); background: var(--color-pin); color: var(--color-accent-ink); font-weight: 600; text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.toast__action:hover { background: color-mix(in oklab, var(--color-pin) 82%, var(--color-accent-ink)); }
.toast__action:active, .toast__close:active { transform: translateY(1px); }
.toast__close { display: grid; place-items: center; width: 44px; height: 44px; margin: calc(-1 * var(--space-sm)) calc(-1 * var(--space-sm)) 0 0; border: 0; border-radius: var(--radius-card); background: transparent; color: var(--color-on-band-muted); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.toast__close:hover { background: var(--color-band-rule); color: var(--color-on-band); }
.toast__close svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.toast :focus-visible { outline: 2px solid var(--color-pin); outline-offset: 2px; }
@media (max-width: 40rem) { .toast { right: var(--space-md); left: var(--space-md); bottom: var(--space-md); width: auto; } .start { padding: var(--space-lg); } .start__lights span { width: 40px; height: 40px; } }

/* ---------- Still there? The idle screensaver (js/presence.js) ---------- */
.saver { position: fixed; inset: 0; z-index: calc(var(--z-tooltip) + 1); display: grid; grid-template-rows: auto 1fr auto; padding: var(--space-xl) var(--gutter); background: var(--color-band); color: var(--color-on-band); opacity: 0; visibility: hidden; transition: opacity 700ms var(--ease-fluid), visibility 0s linear 700ms; cursor: pointer; }
.saver.is-on { opacity: 1; visibility: visible; transition: opacity 700ms var(--ease-fluid), visibility 0s; }
.saver.is-leaving { transition-duration: 260ms, 0s; transition-delay: 0s, 260ms; }
.saver { --you: var(--color-on-band); --partner: var(--color-partner); --prop: color-mix(in oklab, var(--color-on-band) 62%, var(--color-band)); }
/* the court: a giant "myspottr" is the net, the hi-vis dot is in play */
.saver__court { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.saver__floor { fill: none; stroke: var(--color-on-band); stroke-opacity: 0.16; stroke-width: 2; }
.saver__word { font: 800 220px/1 var(--font-wordmark); letter-spacing: -0.065em; fill: var(--color-on-band); fill-opacity: 0.94; }
.saver__ball { fill: var(--color-spot); stroke: var(--color-band); stroke-width: 5; }
.saver__trail { fill: none; stroke: var(--color-spot); stroke-width: 3; stroke-dasharray: 1 12; stroke-linecap: round; opacity: 0.8; }
.saver__ping { fill: none; stroke: var(--color-spot); stroke-width: 3; opacity: 0; }
.saver__rally { font-size: var(--text-sm); color: var(--color-on-band-muted); }
.saver__rally b { font: 500 var(--text-lg)/1 var(--font-outlier); color: var(--color-on-band); font-variant-numeric: tabular-nums; margin-left: var(--space-2xs); }
.saver__top { position: relative; display: flex; justify-content: space-between; align-items: center; }
.saver__top .brand { color: var(--color-on-band); }
.saver__top .brand__dot { box-shadow: 0 0 0 0.05em var(--color-band); }
.saver__away { font-size: var(--text-sm); color: var(--color-on-band-muted); }
.saver__away b { font: 500 var(--text-lg)/1 var(--font-outlier); color: var(--color-on-band); font-variant-numeric: tabular-nums; margin-left: var(--space-2xs); }
.saver__copy { position: relative; align-self: end; justify-self: center; text-align: center; padding-bottom: var(--space-2xl); }
.saver__line { display: grid; gap: var(--space-2xs); font: var(--display-weight) clamp(2rem, 4.4vw, 4rem)/1.04 var(--font-display); letter-spacing: var(--tracking-display); text-wrap: balance; }
.saver__line span:last-child { color: var(--color-on-band-muted); }
.saver__copy.is-swapping { animation: saver-line 900ms var(--ease-fluid); }
@keyframes saver-line { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.saver__bottom { position: relative; display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); }
.saver__hint { font-size: var(--text-sm); color: var(--color-on-band-muted); }
.saver__cta { text-decoration: none; }
html.is-saver { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .saver__copy.is-swapping { animation: none; }
  .saver, .saver.is-on, .saver.is-leaving { transition: none; }
}

/* ---------- themes that need more than tokens ---------- */
[data-theme="night"] [data-slot] > img { filter: grayscale(1) contrast(1.1) brightness(0.8); mix-blend-mode: normal; }
[data-theme="night"] [data-slot]:has(> img)::before { background: var(--color-paper); mix-blend-mode: color; opacity: 0.5; }
[data-theme="night"] .btn--primary, [data-theme="night"] .state--found { border-color: var(--color-accent); }

/* ---------- responsive ---------- */
@media (max-width: 75rem) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl); }
  .meet { height: auto; aspect-ratio: 640 / 600; }
  .research-item .card-text, .research-lead__body { grid-column: 5 / 13; }
  .research-item .source { grid-column: 5 / 13; }
}
/* tablet: the hero stacks before its copy column gets too narrow for the form */
@media (max-width: 64rem) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: var(--space-xl); }
  .hero__copy { max-width: 40rem; }
  /* the box keeps the map's own 640:600 shape (set at 75rem), so nothing is cropped; the status chip moves to the top centre, clear of both start points */
  .meet__state { left: 50%; transform: translateX(-50%); justify-items: center; }
  .activity-tabs button { padding: 0 var(--space-sm); font-size: var(--text-lg); }
}
@media (max-width: 60rem) {
  .nav__row { grid-template-columns: auto minmax(0, 1fr); }
  .nav__links { display: none; }
  .nav .brand { justify-self: start; font-size: 2rem; }
  .pursuit__head, .split-head, .activity-panel, .countdown__grid, .coming__grid, .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .pursuit h2, .pursuit .lead, .split-head h2, .split-head .lead, .activity-content, .activity-art, .countdown__head, .start, .coming__copy, .newsletter, .brand--mast, .footer__line, .footer__colophon, .footer__credits { grid-column: 1 / -1; }
  .split-head, .pursuit__head { gap: var(--space-md); }
  .activity-photo { min-height: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .research-item { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
  .research-item .big, .research-item .card-text, .research-item .source, .research-lead__body { grid-column: 1 / -1; }
  .sync__svg { aspect-ratio: 810 / 520; }
  .sbs__svg { aspect-ratio: 810 / 560; }
  .sbs__caption { position: static; padding: var(--space-md) var(--space-md) 0; }
  .sbs__legend { position: static; padding: var(--space-xs) var(--space-md) 0; }
  .sbs__controls { grid-template-columns: minmax(0, 1fr); }
  .sbs__chapters { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-xs); }
  .sync__caption { position: static; padding: var(--space-md) var(--space-md) 0; }
  .sync__legend { position: static; padding: var(--space-xs) var(--space-md) 0; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); }
  .sync__controls { grid-template-columns: minmax(0, 1fr); }
  .sync__chapters { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-xs); }
  .loop-toggle--band { justify-self: start; }
  .duo__controls { grid-template-columns: minmax(0, 1fr); }
  .duo__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop-toggle--band { justify-self: start; }
  .newsletter { padding-top: var(--space-xl); }
}
@media (max-width: 40rem) {
  .hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .signup__row .btn { flex-basis: 100%; }
  .map-label { font-size: 24px; stroke-width: 7px; }
  .meet .match__tags { display: none; }
  /* sport tabs: an even 2-up grid drawn with 1px gaps, the odd last tab spans the row */
  .activity-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--rule-hair); background: var(--color-rule); border-bottom: var(--rule-hair) solid var(--color-rule); }
  .activity-tabs button { min-height: 56px; border-left: 0; background: var(--color-paper); font-size: var(--text-lg); }
  .activity-tabs button:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .activity-tabs button::before { top: 0; height: 3px; }
  .activity-panel { border-top: 0; }
  .match { padding: var(--space-md); }
  .meet__state { top: var(--space-sm); }
  .loop-toggle { top: var(--space-md); right: var(--space-md); }
  .meet__state .state { font-size: var(--text-xs); }
  .match { left: var(--space-sm); bottom: var(--space-sm); width: calc(100% - 2 * var(--space-sm)); gap: var(--space-sm); }
  .match__title { font-size: var(--text-xl); }
  .cg__svg { aspect-ratio: 810 / 520; }
  .cg__legend { position: static; margin-top: var(--space-md); flex-wrap: wrap; gap: var(--space-xs) var(--space-md); }
  .cg__caption { position: static; margin-bottom: var(--space-md); }
  .cg__controls { grid-template-columns: minmax(0, 1fr); }
  .cg__chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop-toggle--band { justify-self: start; }
}

/* ---------- reduced motion: every loop at its end state ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .meet *, .stage::after, .start *, .cg__caption, .duo *, .sync *, .sbs * { animation: none !important; }
  .js [data-reveal] { filter: none; }
  .activity-photo > img.ph { transform: none; }
  .duo *, .duo__card { transition: none !important; }
  .cg-scene, .cg__line span { transition: none; }
  .toast, .toast.is-leaving { transition: none; }
  .toast--welcome.is-shown .toast__mark svg circle { animation: none; }
  .stage::after { transform: scaleX(1); }
  .loop-toggle { display: none; }
  .activity-photo > img.ph { transition: none; }
}

/* ---------- SEO pass (Nov 2026) ---------- */
/* The hero is the largest paint on the page. It no longer starts invisible: a short
   transform-only rise keeps the motion without hiding the H1 from LCP. */
.js .hero [data-reveal] { opacity: 1; filter: none; transform: none; transition: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-reveal] { animation: hero-rise 700ms var(--ease-fluid) both; animation-delay: calc(var(--i, 0) * 70ms); }
}
@keyframes hero-rise { from { transform: translateY(14px); } to { transform: none; } }
.hero__sub { display: block; margin-top: var(--space-md); max-width: 40ch; font-size: var(--text-lead); font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; text-transform: none; color: var(--color-ink-2); }
.hero__meta a { display: inline-block; padding-block: var(--space-sm); }
.signup__consent { min-height: 44px; align-items: center; }

/* safe by design */
.safety { padding-block: var(--section-gap-s) var(--section-gap); border-top: var(--rule-hair) solid var(--color-rule); }
.safety-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); }
.safety-list li { display: grid; gap: var(--space-xs); align-content: start; padding-top: var(--space-md); border-top: var(--rule-bar) solid var(--color-rule-2); }
.safety-list h3 { font-size: var(--text-xl); }
.safety-list p { color: var(--color-ink-2); max-width: 36ch; }

/* questions, answered */
.faq { padding-block: var(--section-gap) var(--section-gap-s); }
.faq-list { border-top: var(--rule-bar) solid var(--color-rule-2); }
.faq-list details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 44px; padding-block: var(--space-lg); cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex-shrink: 0; font: 500 var(--text-2xl)/1 var(--font-outlier); transition: transform var(--motion-set, 220ms) var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.faq-list summary h3 { font-size: var(--text-xl); max-width: none; }
.faq-list details p { max-width: 70ch; padding-bottom: var(--space-lg); color: var(--color-ink-2); }

@media (max-width: 60rem) { .safety-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .safety-list { grid-template-columns: 1fr; } .safety { padding-block: var(--space-3xl); } .faq { padding-block: var(--space-3xl); } }
