/* journey.css — the landing page (/): the scroll journey the owner approved (concept "scroll journey", publish build,
   "Final" copy). Ported from the sketch: its page rules, the arcade headline, the dealer chimp's card, the card-table
   picture and the mascots, on the design system's tokens (/shared/cv-tokens.css) and components (/shared/cv-components.css).
   The site's own top bar and footer (site-nav.css, site-footer.css) replace the sketch's. Nothing here applies to another
   page: only index.html links it. */

/* motion tokens the sketch adds to the design system's set (durations and curves; no colours) */
.cv-ds{--duration-pop:360ms;--duration-lift:500ms;--ease-pop:cubic-bezier(.3,1.6,.5,1);--ease-grow:cubic-bezier(.3,.7,.2,1)}


/* ================= the journey page ================= */
*{box-sizing:border-box}
html.cv-ds{--rail:var(--space-9);--tip:65;background:var(--color-bg)}
body{margin:0;color:var(--color-text);font:var(--weight-regular) var(--text-body)/var(--leading-body) var(--font-body);font-variant-numeric:tabular-nums lining-nums;overflow-x:clip}
.cv-ds a{color:inherit}
.cv-ds a.cv-btn{text-decoration:none}
.cv-ds :focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-offset)}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.p-icon{width:1em;height:1em;fill:currentColor;flex:none}
.actions{display:flex;flex-wrap:wrap;gap:var(--space-4);align-items:center}
.meta{margin:0;font:var(--weight-regular) var(--text-small)/1.4 var(--font-body);color:var(--color-text-muted)}
.meta b{font-weight:var(--weight-medium);color:var(--color-text)}
.thumb{background:var(--color-surface-sunken) center/cover no-repeat}

/* ---- chapters ---- */
.story{position:relative}
.band{position:relative;padding:var(--space-section) var(--space-gutter)}
.wrap{position:relative;z-index:2;max-width:calc(var(--content-max) + var(--rail));margin:0 auto;padding-left:var(--rail)}
/* the gentle colour shift: play chapters lean mint, build chapters lean coin; flat tones, no motion */
.cv-ds{--tone-play:color-mix(in srgb,var(--color-bg) 94%,var(--color-primary));--tone-build:color-mix(in srgb,var(--color-bg) 94%,var(--color-take))}
.band--play{background:linear-gradient(var(--color-bg),var(--tone-play) var(--space-section))}
.band--shuffle,.band--player,.band--hero{background:var(--tone-play)}
/* the first chapter sits right under the top bar, so it starts closer to it */
.band--first{padding-top:var(--space-8)}
.band--trees{background:linear-gradient(var(--tone-play),var(--tone-play) 30%,var(--tone-build))}
.band--build{background:var(--tone-build)}
.band--dev{background:linear-gradient(var(--tone-build),var(--tone-build) 70%,var(--color-bg))}

.h1,.h2{margin:0;font:var(--weight-regular) var(--text-hero)/var(--leading-hero) var(--font-display);letter-spacing:var(--tracking-hero);color:var(--color-text);text-wrap:balance}
.h1 em,.h2 em{font-style:normal;color:var(--color-primary)}
.band--build .h2 em,.band--dev .h2 em{color:var(--color-take)}
.cv-ds .cv-lead{text-wrap:pretty}
.copy{display:grid;gap:var(--space-5);justify-items:start;align-content:center;min-width:0}
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:var(--space-8);align-items:center}
.split > *{min-width:0}
.head{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:var(--space-4) var(--space-8);align-items:end;margin-bottom:var(--space-7)}
.head > *{min-width:0}
.head .cv-lead{margin:0}

/* the chapter label ("Play games", words only) with its fruit on the vine; it lights up while its chapter is on screen */
.chapter-label{position:relative;display:flex;align-items:center;gap:var(--space-3);margin:0;min-height:28px;font:var(--weight-semibold) var(--text-eyebrow)/1 var(--font-body);letter-spacing:var(--tracking-eyebrow);text-transform:uppercase;color:var(--color-primary)}
.vnode{position:absolute;left:calc(var(--rail) / -2);top:50%;width:30px;height:30px;translate:-50% -50%;display:grid;place-items:center;border-radius:var(--radius-pill);background:var(--color-surface)}
.vnode::before{content:"";position:absolute;inset:-6px;border-radius:inherit;background:var(--color-take-tint);opacity:0}
.vnode svg{position:relative;width:22px;height:22px;overflow:visible}
.fruit-apple{fill:var(--color-take)}
.fruit-leaf{fill:var(--color-primary)}
.fruit-stem{fill:none;stroke:var(--color-primary);stroke-width:2.4;stroke-linecap:round}
html.js .chapter:not(.is-current) .chapter-label{color:var(--color-text-muted)}
html.js .chapter:not(.is-reached) .vnode svg{opacity:0;scale:.4}
html.js .chapter.is-current .vnode::before{opacity:1}
html.motion .vnode svg{transition:opacity var(--duration-fade) var(--ease-standard),scale var(--duration-pop) var(--ease-pop)}
html.motion .vnode::before,html.motion .chapter-label{transition:opacity var(--duration-hover) var(--ease-standard),color var(--duration-hover) var(--ease-standard)}

/* ---- the vine: one mint line down the left rail, drawn by scrolling, with a fork into the tree chapter ---- */
.vine,.vine-fork{position:absolute;left:0;right:0;z-index:1;pointer-events:none}
.vine{view-timeline:--vine block}
.vine-fork{view-timeline:--fork block}
.vine svg,.vine-fork svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.vine__stem,.vine__branch{fill:none;stroke:var(--color-primary-edge);stroke-width:4;stroke-linecap:round;stroke-dasharray:1 1;stroke-dashoffset:0}
.vine__leaf{fill:var(--color-primary-edge)}
@keyframes vine-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes leaf-in{from{opacity:0}to{opacity:1}}

/* ---- 4 · meet (the big tree; a regular chapter now, no longer the arrival screen) ---- */
.hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:var(--space-6) var(--space-8);align-items:center}
.hero > *{min-width:0}
.hero__copy{display:grid;gap:var(--space-5);justify-items:start}
.hero__copy .h2{max-width:13ch}
.hero__copy .cv-lead{max-width:38ch}
.hero__stat{margin-top:var(--space-3)}
.hero__stat .cv-stat__say{max-width:18ch;font-size:var(--text-lead)}
.hero__tree{position:relative;display:block;text-align:center;height:clamp(300px,40vw,580px)}
.hero__svg{display:block;margin:0 auto;height:100%;width:auto;max-width:100%}

/* ---- the chimps: placed in their chapter's picture, at three moments only ---- */
.mascot{position:absolute;z-index:1;display:block;pointer-events:none}
/* the chimp's speech bubble: a paper bubble with one curved tail (same fill, overlapping the body, so no seam), grows out of its tail */
.bubble{position:absolute;z-index:3;margin:0;padding:calc(var(--space-2) + 2px) var(--space-4);border-radius:var(--radius-lg);background:var(--color-text);color:var(--color-bg);font:var(--weight-regular) var(--text-control-quiet)/1.2 var(--font-display);white-space:nowrap;filter:drop-shadow(0 6px 12px color-mix(in srgb,var(--cv-ground) 70%,transparent));transform-origin:18px calc(100% + 18px)}
.bubble::after{content:"";position:absolute;left:12px;bottom:-17px;width:28px;height:20px;background:inherit;clip-path:path("M6 0H28C22 6 12 14 0 20C6 13 8 7 6 0Z")}
html.motion .mascot{transition:translate var(--duration-lift) var(--ease-pop),rotate var(--duration-lift) var(--ease-pop),opacity var(--duration-hover) var(--ease-standard)}
html.motion .bubble{transition:scale var(--duration-pop) var(--ease-pop),opacity var(--duration-fade) var(--ease-standard)}
html.motion .chapter:not(.was-seen) .mascot{translate:0 40%;rotate:-10deg;opacity:0}
html.motion .chapter:not(.was-seen) .bubble{scale:.8;opacity:0}
html.motion .chapter .bubble{transition-delay:.35s}

.ch-wave{transform-box:fill-box;transform-origin:50% 85%}
html.motion .chapter.was-seen .ch-wave{animation:ch-wave 1.1s var(--ease-standard) .6s 2}
@keyframes ch-wave{0%,100%{rotate:0deg}25%{rotate:-14deg}75%{rotate:12deg}}

/* ---- 2 · shuffle (Option F, adapted: a chapter of its own, the chimp deals) ---- */
.deck{position:relative;display:grid;width:min(100%,520px);justify-self:center;margin-top:var(--space-8);padding:var(--space-5) var(--space-8) var(--space-5) 0;view-timeline:--deck block}
.band--shuffle .split{align-items:start}
.deck__back{position:absolute;inset:var(--space-5) var(--space-8) var(--space-5) 0;border-radius:var(--radius-xl);transform-origin:50% 100%;overflow:hidden}
.deck__back::after{content:"";position:absolute;inset:0;background:var(--color-bg);opacity:.6}
.deck__back--1{rotate:3deg;translate:14px -4px}
.deck__back--2{rotate:6deg;translate:26px -8px}
.deck__card{position:relative;z-index:2;display:grid;gap:var(--space-4);padding:var(--space-3) var(--space-3) var(--space-5);border-radius:var(--radius-xl);background:var(--color-surface)}
.deck__img{display:block;width:100%;aspect-ratio:var(--ratio-capture);border-radius:var(--radius-lg)}
.deck__body{display:grid;gap:var(--space-2);padding:0 var(--space-3)}
.deck__name{margin:0;font:var(--weight-regular) var(--text-heading)/1.1 var(--font-display)}
.deck__blurb{margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:calc(2 * 1.55em)}
.deck__card .actions{padding:var(--space-2) var(--space-3) 0;gap:var(--space-3)}
.cv-ds .cv-btn.p-big{height:56px;padding-inline:var(--space-6);font-size:20px;gap:var(--space-3)}
.cv-ds .cv-btn.p-big .p-icon{width:18px;height:18px}
.deck__card .cv-btn--quiet{gap:var(--space-2);height:56px}
.deck__card .cv-btn--quiet .p-icon{width:20px;height:20px}
.deck .mascot{left:var(--space-6);top:0;width:180px;translate:0 calc(var(--space-5) + 3px - 89%)}
.deck .bubble{left:calc(var(--space-6) + 172px);top:0;translate:0 -190%}
.deck .bubble::after{left:12px}
html.motion .deck .mascot{translate:0 calc(var(--space-5) + 3px - 89%)}
html.motion .chapter:not(.was-seen) .deck .mascot{translate:0 -10%;rotate:0deg}
html.motion .deck__card.is-dealt{animation:deal var(--duration-lift) var(--ease-pop)}
html.motion .deck.is-waiting .deck__card{opacity:0}
.deck__card{overflow:visible}
.deck__tick{position:absolute;left:var(--space-8);right:var(--space-8);bottom:7px;height:3px;border-radius:2px;background:var(--color-primary);opacity:.35;transform:scaleX(0);transform-origin:0 50%;pointer-events:none;display:none}
html.motion .deck__tick{display:block}
html.motion .deck.is-counting .deck__tick{animation:deck-tick 10s linear forwards}
@keyframes deck-tick{to{transform:scaleX(1)}}
html.motion .deck .ch-head{transform-box:view-box}
html.motion .deck .ch-head.is-tilting{animation:ch-tilt 640ms linear}
@keyframes ch-tilt{0%{transform:rotate(0);animation-timing-function:cubic-bezier(.34,1.56,.64,1)}38%{transform:rotate(10deg);animation-timing-function:cubic-bezier(.45,0,.3,1)}100%{transform:rotate(0)}}
@keyframes deal{from{translate:-40px 10px;rotate:-7deg;opacity:.15}to{translate:0 0;rotate:0deg;opacity:1}}

/* ---- 1 · play (Option E, adapted: the arcade mosaic opens the page, ending at the door to /games) ---- */
.e-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--space-3)}
.e-tile{position:relative;display:grid;grid-template-columns:minmax(0,1fr);align-content:end;overflow:hidden;border-radius:var(--radius-lg);text-decoration:none;color:var(--color-text);aspect-ratio:var(--ratio-capture);isolation:isolate}
.e-tile--big{grid-column:span 2;grid-row:span 2;aspect-ratio:auto}
.e-tile__img{position:absolute;inset:0;z-index:-2;transition:transform var(--duration-hover) var(--ease-standard)}
.e-tile::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,color-mix(in srgb,var(--color-bg) 95%,transparent) 0%,color-mix(in srgb,var(--color-bg) 60%,transparent) 40%,transparent 70%)}
/* the caption lies along the tile's lower edge in the flow, never positioned: a positioned caption would be the box the
   tile's link below is stretched over, and the picture above it would open nothing */
.e-tile__cap{display:grid;gap:2px;min-width:0;padding:var(--space-3)}
.e-tile__name{display:block;font:var(--weight-regular) var(--text-meta)/1.1 var(--font-display);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* the whole tile opens the game: its one link (the game's name) is stretched over it (over .e-tile, the nearest positioned
   box above the link), and the tile wears the focus ring */
.e-tile__link{display:block;min-width:0;color:inherit;text-decoration:none}
.e-tile__link::after{content:"";position:absolute;inset:0;border-radius:inherit}
.cv-ds .e-tile__link:focus-visible{outline:none}
.e-tile:has(.e-tile__link:focus-visible){outline:var(--focus-ring);outline-offset:var(--focus-offset)}
/* the maker: plain text is part of the tile; a profile link (shared/profile-card.css) sits above the tile's link, a link of its own */
.e-tile__by{display:flex;align-items:center;min-width:0;font:var(--weight-regular) var(--text-xs)/1.2 var(--font-body);color:var(--color-text-muted)}
.e-tile__by > span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.e-tile__by > a.cv-profile-link{position:relative;z-index:1}
.e-tile--big .e-tile__cap{padding:var(--space-5)}
.e-tile--big .e-tile__name{font-size:var(--text-heading)}
.e-tile--big .e-tile__by{font-size:var(--text-small)}
.e-tile__play{position:absolute;top:var(--space-3);right:var(--space-3);display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 var(--space-3);border-radius:var(--radius-pill);background:var(--color-primary);color:var(--color-on-primary);font:var(--weight-regular) var(--text-xs)/1 var(--font-display);opacity:0;translate:0 -4px;transition:opacity var(--duration-hover) var(--ease-standard),translate var(--duration-hover) var(--ease-standard)}
.e-tile__play .p-icon{width:12px;height:12px}
.e-tile--big .e-tile__play{opacity:1;translate:0 0;top:var(--space-4);right:var(--space-4);height:40px;padding:0 var(--space-4);font-size:var(--text-meta)}
.e-tile:hover .e-tile__img{transform:scale(1.04)}
.e-tile__play{pointer-events:none}
.e-tile:hover .e-tile__play,.e-tile:has(.e-tile__link:focus-visible) .e-tile__play{opacity:1;translate:0 0}
.e-more{display:grid;place-content:center;justify-items:center;gap:var(--space-1);aspect-ratio:var(--ratio-capture);border-radius:var(--radius-lg);background:var(--color-surface);color:var(--color-text);text-decoration:none;text-align:center;padding:var(--space-3);transition:background var(--duration-hover) var(--ease-standard),color var(--duration-hover) var(--ease-standard)}
.e-more:hover{background:var(--color-surface-raised)}
.e-more__n{font:var(--weight-regular) var(--text-heading)/1 var(--font-display);color:var(--color-primary)}
.e-more__t{font:var(--weight-regular) var(--text-body)/1.15 var(--font-body);color:var(--color-text)}
.e-more__cta{display:inline-flex;align-items:center;gap:var(--space-1);margin-top:var(--space-1);font:var(--weight-regular) var(--text-xs)/1 var(--font-body);color:var(--color-text-muted);white-space:nowrap;transition:color var(--duration-hover) var(--ease-standard)}
.e-more__cta svg{width:10px;height:10px;fill:currentColor;transition:translate var(--duration-hover) var(--ease-standard)}
.e-more:hover .e-more__cta,.e-more:focus-visible .e-more__cta{color:var(--color-primary)}
.e-more:hover .e-more__cta svg,.e-more:focus-visible .e-more__cta svg{translate:2px 0}

/* ---- 1b · tile swap (concept): a tile now and then hands its place to a game from the pool.
   Only transform and opacity change (blur-fade also fades a filter); the grid never reflows. The page script sets
   --sw-d (each way), --sw-k (strength) and --sw-in (easing in), and puts .sw-run / .sw-out / .sw-in0 on the tile being swapped. ---- */
.e-grid{--sw-d:400ms;--sw-k:1;--sw-in:var(--ease-grow)}
.e-tile.sw-run{will-change:transform,opacity;transition:transform var(--sw-d) var(--sw-ease),opacity var(--sw-d) var(--sw-ease),filter var(--sw-d) var(--sw-ease)}
.e-tile.sw-run:not(.sw-in){--sw-ease:var(--ease-standard)}
.e-tile.sw-in{--sw-ease:var(--sw-in)}
.e-grid[data-sw="shrink"] :is(.sw-out,.sw-in0){transform:scale(calc(1 - .12 * var(--sw-k)));opacity:0}
.e-grid[data-sw="fade"] :is(.sw-out,.sw-in0){opacity:0}
.e-grid[data-sw="flip"] .sw-out{transform:perspective(900px) rotateY(90deg)}
.e-grid[data-sw="flip"] .sw-in0{transform:perspective(900px) rotateY(-90deg)}
.e-grid[data-sw="slide"] .sw-out{transform:translateY(calc(-16% * var(--sw-k)));opacity:0}
.e-grid[data-sw="slide"] .sw-in0{transform:translateY(calc(16% * var(--sw-k)));opacity:0}
.e-grid[data-sw="blur"] :is(.sw-out,.sw-in0){filter:blur(calc(8px * var(--sw-k)));opacity:0}

/* ---- 3 · join as a player ---- */
.perks{list-style:none;margin:0;padding:0;display:grid;gap:var(--space-3)}
.perks li{display:flex;gap:var(--space-3);align-items:center}
.perks svg{flex:none;width:20px;height:22px;overflow:visible;translate:0 -3px}
.perks .fruit-apple{fill:var(--color-primary-strong)}
.signin-note{margin:0;color:var(--color-text-muted);font-size:var(--text-small)}
.tag-scene{position:relative;display:grid;place-items:center;min-height:clamp(300px,34vw,460px)}
/* the picture fills the column on phones: its tilted entrance must not widen the page (the band spans the screen, so nothing visible is cut) */
.band--player{overflow-x:clip}
/* the lead keeps its old size (340px for its 472 units); the crew widens the picture to 750 units around it */
.tag-scene__art{position:relative;width:min(100%,540px)}
.tag-scene .mascot{position:relative;display:block;width:100%;height:auto}
/* the crew bob a little, out of step, once the chapter is on screen */
html.motion .chapter.was-seen .cm-bob{animation:cm-bob 2.8s var(--ease-standard) infinite alternate}
@keyframes cm-bob{from{translate:0 0}to{translate:0 -9px}}
.tag-scene__hello{font:var(--weight-regular) 40px/1 var(--font-display);letter-spacing:.06em;fill:var(--color-on-primary)}
.tag-scene__name{font:var(--weight-regular) 44px/1 var(--font-display);fill:var(--color-bg)}
.tag-scene__card{fill:var(--color-text)}
.tag-scene__band{fill:var(--color-primary)}
/* the bubble sits above the lead's head, its tail toward the lead, inside the picture */
/* (it moves left only by as much as a long line would stick out past the picture, so its tail stays on the lead's head) */
.tag-scene__art{container-type:inline-size}
.tag-scene .bubble{left:62%;top:12%;translate:min(0px,calc(38cqw - 100%)) -100%}
.tag-scene .bubble::after{left:12px}

/* ---- 5 · trees (Option C, adapted: the orchard of every real tree, and one tree up close) ---- */
.anatomy{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--space-6) var(--space-8);align-items:center;margin:var(--space-7) 0 var(--space-8)}
.anatomy > *{min-width:0}
.anatomy__tree{position:relative;margin:0;display:block;text-align:center;height:clamp(320px,36vw,520px)}
.rot__stage{position:relative;height:calc(100% - var(--space-7));margin:0 0 var(--space-3);overflow:hidden}
.anatomy__svg{display:block;margin:0 auto;height:100%;width:auto;max-width:100%}
/* the words tied to the tree roll over, word by word, as the tree swaps (text-swap.js): each sits in a box whose layers
   share one grid cell, the old words rolling up and out as the new ones roll up in, so a sentence never shows a gap; the
   box clips the roll (a clip-path, which unlike overflow keeps the words on the sentence's baseline) and eases between
   the two words' sizes */
.anatomy.no-eg :is(.rt-eg,.rt-eg[data-rot]:empty){display:none} /* (outranks the loading pill below) */
.anatomy .ts{display:inline-grid;place-items:start;clip-path:inset(0)} /* each layer keeps its own size (not the shared cell's), so the box eases to the new words' size, shrinking too */
.anatomy .ts > .ts__v{grid-area:1/1;white-space:nowrap}
.part q[data-rot]::before,.part q[data-rot]::after{content:none}
.part q .ts{display:grid}
.part q .ts > .ts__v{white-space:normal}
.part q .ts__v::before{content:open-quote}
.part q .ts__v::after{content:close-quote}
.part .cv-tag .ts{max-width:100%}
/* before the first tree's words arrive: a quiet pill the size of the words, never a blank */
.anatomy [data-rot]:empty{display:inline-block;vertical-align:-.1em;width:var(--skel-w,5.5em);height:1em;border-radius:var(--radius-xs);background:var(--color-surface)}
.anatomy [data-rot=n]:empty{--skel-w:1.4em}
.anatomy [data-rot=by]:empty{--skel-w:4.5em}
.anatomy [data-rot=title]:empty{display:block;--skel-w:80%;height:1.2em}
.anatomy .cv-tag[data-rot]:empty{display:inline-flex;--skel-w:13em;height:auto}
.anatomy .cv-tag[data-rot]:empty::before{content:"\00a0"}
@media (prefers-reduced-motion:no-preference){.anatomy [data-rot]:empty{animation:cv-pulse var(--duration-glow) var(--ease-standard) infinite alternate}}
/* no tree to show (an outage): the words tied to one step aside rather than wait blank */
.anatomy.no-data :is(.rt-seed,figcaption){display:none}
.anatomy__tree figcaption{font:var(--weight-semibold) var(--text-eyebrow)/1 var(--font-body);letter-spacing:var(--tracking-eyebrow);text-transform:uppercase;color:var(--color-text-muted)}
.parts{list-style:none;margin:0;padding:0;display:grid;gap:var(--space-6)}
.part{display:grid;grid-template-columns:44px minmax(0,1fr);gap:var(--space-2) var(--space-4);align-items:start}
.part__icon{width:44px;height:44px;display:grid;place-items:center;border-radius:var(--radius-md);background:var(--color-surface)}
.part__icon svg{width:28px;height:28px;overflow:visible}
.part h3{margin:0 0 var(--space-1);font:var(--weight-regular) var(--text-card-title)/1.2 var(--font-display)}
.part p{margin:0;color:var(--color-text-muted)}
.part q{display:block;margin:var(--space-3) 0 var(--space-2);color:var(--color-text);quotes:"\201C" "\201D"}
.part .cv-tag{margin-top:var(--space-2)}
.part__hint{display:block;margin-top:var(--space-2);font-size:var(--text-xs)}
.is-stem{fill:none;stroke:var(--color-primary);stroke-width:7;stroke-linecap:round}
.is-primary-strong{fill:var(--color-primary-strong)}
.is-take{fill:var(--color-take)}
.is-leaf{fill:var(--color-primary-edge)}
/* the orchard band (Option C's row) */
.c-orchard{position:relative;view-timeline:--orchard block}
.c-row{display:flex;align-items:flex-end;justify-content:center;padding:0 var(--space-5);clip-path:inset(-200px -400px 0 -400px)}
.c-tree{position:relative;flex:none;width:calc(var(--w) / var(--sum) * 100%);display:flex;justify-content:center;align-items:flex-end;text-decoration:none}
.c-tree svg{position:relative;z-index:1;display:block;width:100%;height:auto;margin-bottom:-2px;transition:transform var(--duration-hover) var(--ease-standard);transform-origin:50% 96%}
.c-tree:hover svg{transform:scale(1.06)}
.c-tree::before{content:"";position:absolute;left:-15%;right:-15%;bottom:0;height:calc(var(--hill) * var(--space-5));background:var(--color-surface-sunken);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100C25 100 28 0 50 0S75 100 100 100Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100C25 100 28 0 50 0S75 100 100 100Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat}
.c-tree--slot svg{opacity:.6}
.c-ground{height:28px;background:var(--color-surface-sunken);border-radius:0 0 var(--radius-lg) var(--radius-lg)}
.c-legend{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:var(--space-2) var(--space-5);margin-top:var(--space-4);font:var(--weight-regular) var(--text-small)/1.3 var(--font-body);color:var(--color-text-muted)}
.c-legend b{font-weight:var(--weight-medium);color:var(--color-text)}
@keyframes rise{from{translate:0 42%}to{translate:0 0}}

/* ---- 6 · build your own ---- */
.chat{display:grid;gap:var(--space-3);padding:var(--space-5);border-radius:var(--radius-xl);background:var(--color-surface-sunken)}
.msg{display:grid;gap:var(--space-1);max-width:90%;margin:0;padding:var(--space-3) var(--space-4);border-radius:var(--radius-lg);background:var(--color-surface)}
.msg--you{justify-self:end;background:var(--color-surface-raised)}
.msg__who{font:var(--weight-semibold) var(--text-eyebrow)/1 var(--font-body);letter-spacing:var(--tracking-eyebrow);text-transform:uppercase;color:var(--color-text-muted)}
.msg p{margin:0}
.msg code{font:var(--weight-regular) .95em/1 var(--font-display);color:var(--color-take)}
.grown{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--space-1) var(--space-3);align-items:center;margin:var(--space-2) 0 0;padding:var(--space-3) var(--space-4);border-radius:var(--radius-lg);background:var(--color-take-tint)}
.grown svg{grid-row:1 / span 2;align-self:center;width:26px;height:30px;overflow:visible}
.grown b{font:var(--weight-regular) var(--text-meta)/1.25 var(--font-display);color:var(--color-take)}
.grown span{font-size:var(--text-small);color:var(--color-text-muted)}
.grown q{color:var(--color-text);quotes:"\201C" "\201D"}
.works{margin:0;color:var(--color-text-muted);font-size:var(--text-small)}
.works b{font-weight:var(--weight-medium);color:var(--color-text)}
@media (min-width:900px){.band--build .split{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}}
/* chapter 3: a wider copy column so its headline holds two lines (the chimps column shrinks a little, nothing is clipped) */
@media (min-width:900px){.band--player .split{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}}
/* desktop: wider headline space so every headline fits on two lines (phones keep the stacked layout) */
@media (min-width:900px){
  .band--play .head{grid-template-columns:minmax(0,1fr);align-items:start}
  .band--play .head .cv-lead{max-width:62ch}
  /* trees: under the chapter label, the close-up tree stands on the left (by the vine, which forks off to its roots) beside
     the heading, not under it, so on a laptop-height screen the whole tree, its base and caption are on screen, and
     growing, while the heading is read; the lead and the parts follow the heading on the right */
  .band--trees .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);column-gap:var(--space-8);align-items:start}
  .band--trees :is(.head,.copy,.anatomy){display:contents}
  .band--trees .chapter-label{grid-area:1 / 1 / auto / -1;margin-bottom:var(--space-5)}
  .band--trees .h2{grid-area:2 / 2}
  .band--trees .head .cv-lead{grid-area:3 / 2;margin-top:var(--space-5)}
  .band--trees .parts{grid-area:4 / 2;margin-top:var(--space-7)}
  .band--trees .anatomy__tree{grid-area:2 / 1 / span 3}
  .band--trees .c-orchard{grid-area:5 / 1 / auto / -1;margin-top:var(--space-8)}
  /* shuffle: the label and headline run across the whole width; the text and the deck sit side by side below */
  .band--shuffle .split{gap:var(--space-5) var(--space-8);align-items:start}
  .band--shuffle .copy{display:contents}
  .band--shuffle .copy > *{grid-column:1;justify-self:start;min-width:0}
  .band--shuffle .copy > .chapter-label,.band--shuffle .copy > .h2{grid-column:1 / -1}
  .band--shuffle .deck{grid-column:2;grid-row:3 / span 3;align-self:start;width:100%;max-width:440px;justify-self:center;margin-top:clamp(70px,8vw,110px)}
  .hero{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}
  .hero__copy .h2{max-width:none}
}
.ways{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-5);margin-top:var(--space-8)}
.way{display:grid;grid-template-columns:56px minmax(0,1fr);gap:var(--space-2) var(--space-5);align-items:start;padding:var(--space-5) var(--space-6);border-radius:var(--radius-xl);background:var(--color-surface-sunken)}
.way svg{width:56px;height:56px;overflow:visible}
.way h3{margin:0 0 var(--space-1);font:var(--weight-regular) var(--text-card-title)/1.2 var(--font-display)}
.way p{margin:0;color:var(--color-text-muted)}

/* ---- 7 · become a developer (the bookend to chapter 4: a sprout instead of a grown tree) ---- */
.finale-art{position:relative;height:clamp(280px,30vw,420px);container-type:inline-size;--mascot-x:53.4;--mascot-w:30}
.finale-hill{position:absolute;z-index:1;left:4%;right:4%;bottom:0;height:40%;background:var(--color-surface-raised);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100C25 100 28 0 50 0S75 100 100 100Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100C25 100 28 0 50 0S75 100 100 100Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat}
.finale__sprout{position:absolute;z-index:2;left:50%;bottom:36%;height:46%;width:auto;translate:-50% 0}
.finale-art .mascot{z-index:0;left:calc(var(--mascot-x) * 1%);top:71%;width:calc(var(--mascot-w) * 1%);translate:0 -73%}
html.motion .chapter:not(.was-seen) .finale-art .mascot{translate:0 -10%;rotate:0deg}
/* "Your turn." sits out on the hill, low and to the left of the chimp's chin, and its tail rises into his mouth: never over
   his eyes or his waving hand. The tail's tip is pinned to his mouth, worked out from the mascot's own box (its viewBox is
   432 x 400; the mouth is 45.5% across and 58.5% down it; the box's top is at 71% less 73% of its height), so it lands there
   at every width. The bubble hangs from that point: its right edge 14px past the mouth, its top 26px below it. */
.finale-art .bubble{left:calc((var(--mascot-x) + var(--mascot-w) * .455) * 1%);top:calc(71% - var(--mascot-w) * .145 * 400 / 432 * 1cqw);right:auto;
  translate:calc(14px - 100%) 26px;transform-origin:calc(100% - 14px) -26px}
.finale-art .bubble::after{left:auto;right:14px;bottom:calc(100% - 3px);width:24px;height:29px;
  clip-path:path("M18.9 29H0C5.1 20.3 13.7 8.7 24 0C18.9 10.2 17.1 18.9 18.9 29Z")}
.cv-ds .cv-btn--take{background:var(--material-take);color:var(--color-on-take);box-shadow:var(--elevation-cap-take)}
.cv-ds .cv-btn--take:hover{box-shadow:var(--elevation-cap-take-hover)}

/* ---- the space break (not a chapter): the crew out in space between chapters 3 and 4, and the door to /games.
   The picture fades into the page on every side (a mask, no hard edge) and sits above the vine, so the vine slips behind the
   nebula and comes back out of the bottom fade, where a small coin star marks this stop. ---- */
.space{position:relative;overflow-x:clip;padding:0 var(--space-gutter) var(--space-section);background:var(--tone-play);--stage-h:clamp(440px,52vw,1000px)}
.space__stage{position:relative;z-index:2;height:var(--stage-h);margin:calc(var(--space-section) * -.6) calc(var(--space-gutter) * -1) 0;pointer-events:none}
.space__frame{width:min(100%,calc(var(--stage-h) * 1.9));height:100%;margin:0 auto;overflow:clip;
  -webkit-mask:linear-gradient(transparent,var(--cv-ground) 24%,var(--cv-ground) 68%,transparent),linear-gradient(90deg,transparent,var(--cv-ground) 7%,var(--cv-ground) 93%,transparent);-webkit-mask-composite:source-in;
          mask:linear-gradient(transparent,var(--cv-ground) 24%,var(--cv-ground) 68%,transparent),linear-gradient(90deg,transparent,var(--cv-ground) 7%,var(--cv-ground) 93%,transparent);mask-composite:intersect}
.space__stage picture{display:contents}
.space__img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 46%;transform-origin:50% 46%}
.space__copy{display:grid;gap:var(--space-5);justify-items:start;margin-top:calc(var(--stage-h) * -.27)}
.space__copy > *{max-width:34rem}
/* a soft dark pool behind the words, so they read over the last of the nebula */
.space__copy::before{content:"";position:absolute;z-index:-1;left:calc(var(--rail) - 14%);top:-28%;width:min(860px,95%);height:150%;background:radial-gradient(closest-side,color-mix(in srgb,var(--cv-ground) 82%,transparent),color-mix(in srgb,var(--cv-ground) 55%,transparent) 55%,transparent);pointer-events:none}
.space__kicker{position:relative;display:flex;align-items:center;gap:var(--space-3);margin:0;min-height:28px;font:var(--weight-semibold) var(--text-eyebrow)/1 var(--font-body);letter-spacing:var(--tracking-eyebrow);text-transform:uppercase;color:var(--color-take)}
.space__star{position:absolute;left:calc(var(--rail) / -2);top:50%;width:26px;height:26px;translate:-50% -50%;display:grid;place-items:center;border-radius:var(--radius-pill);background:var(--color-surface)}
.space__star svg{width:16px;height:16px;fill:var(--color-take)}
.space .h2{text-shadow:0 2px 18px color-mix(in srgb,var(--cv-ground) 60%,transparent)}
.space .cv-lead{color:var(--color-text);opacity:.86;max-width:36ch}
.space .actions{gap:var(--space-3) var(--space-5)}

/* ================= motion: scroll-driven, only where it is supported and wanted ================= */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* the vine: its tip stays about two thirds down the screen (the same line the chapter labels light at) */
    html:not(.still) .vine__stem{animation:vine-draw linear both;animation-timeline:--vine;animation-range:cover 35vh cover calc(100% - 65vh)}
    html:not(.still) .vine__leaf{animation:leaf-in linear both;animation-timeline:--vine}
    html:not(.still) .vine__branch{animation:vine-draw linear both;animation-timeline:--fork;animation-range:cover 35vh cover calc(100% - 45vh)}
    /* the deck fans out as its chapter comes up, done before it is halfway */
    html:not(.still) .deck__back{animation:fan linear both;animation-timeline:--deck;animation-range:entry 10% cover 40%}
    /* the orchard: each tree rises out of its hill, a little after its neighbour, done early */
    @media (min-width:900px){html:not(.still) .c-tree svg{animation:rise linear both;animation-timeline:--orchard;animation-range:entry calc(var(--k) * 30%) cover calc(30% + var(--k) * 12%)}}
    /* the space break: one slow drift, the crew easing in from a little closer as the picture passes */
    html:not(.still) .space__img{animation:space-drift linear both;animation-timeline:view();animation-range:cover 0% cover 100%}
  }
}
@keyframes fan{from{rotate:0deg;translate:0 0}}
@keyframes space-drift{from{scale:1.12;translate:0 -3%}to{scale:1.02;translate:0 2%}}

/* ================= narrower ================= */
@media (max-width:1100px){
  .e-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .e-grid > :nth-child(n+11){display:none}
  .e-grid > .e-more{display:grid}
}
@media (max-width:899px){
  html.cv-ds{--rail:var(--space-6)}
  .band{padding:var(--space-8) var(--space-4)}
  .band--first{padding-top:var(--space-6)}
  .vnode{width:22px;height:22px}.vnode svg{width:16px;height:16px}
  .hero,.split,.head,.anatomy,.ways{grid-template-columns:minmax(0,1fr)}
  .hero{min-height:0;gap:var(--space-6)}
  .hero__tree{height:clamp(240px,70vw,340px)}
  .hero__stat{column-gap:var(--space-4)}
  .head{margin-bottom:var(--space-6)}
  .deck{padding:var(--space-2) var(--space-6) var(--space-2) 0;margin-top:var(--space-8)}
  .deck__back{inset:var(--space-2) var(--space-6) var(--space-2) 0}
  .deck__back--1{translate:6px -3px;rotate:2deg}.deck__back--2{translate:12px -5px;rotate:4deg}
  .deck__card{padding:var(--space-2) var(--space-2) var(--space-4);gap:var(--space-3)}
  .deck__body,.deck__card .actions{padding-inline:var(--space-2)}
  .deck__name{font-size:24px}
  .deck__card .actions .cv-btn{flex:1 1 auto;padding-inline:var(--space-4)}
  .cv-ds .cv-btn.p-big,.deck__card .cv-btn--quiet{height:52px;font-size:18px}
  .deck{margin-top:calc(var(--space-8) + 72px)}
  .deck .mascot{width:150px;left:var(--space-2);translate:0 calc(var(--space-2) + 3px - 89%)}
  html.motion .deck .mascot{translate:0 calc(var(--space-2) + 3px - 89%)}
  .deck .bubble{left:calc(var(--space-2) + 146px);font-size:var(--text-small);white-space:normal;max-width:calc(100vw - 222px)} /* wraps, never past the right edge, even at 320 px */
  .e-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-2)}
  .e-tile--big{grid-row:auto;aspect-ratio:var(--ratio-capture)}
  .e-tile--big .e-tile__name{font-size:22px}
  .e-tile--big .e-tile__cap{padding:var(--space-4)}
  .e-tile__cap{padding:var(--space-2)}
  .e-tile__name{font-size:var(--text-xs)}
  .e-tile__by{display:none}
  .e-grid > :nth-child(n+6){display:none}
  .e-grid > .e-more{display:grid;grid-column:span 2;aspect-ratio:auto;gap:var(--space-1) var(--space-2);grid-template-columns:auto auto;padding:var(--space-3)}
  .e-more__cta{grid-column:1 / -1;margin-top:0}
    .tag-scene{min-height:0;margin-top:var(--space-2)}
  .tag-scene__art{width:min(100%,460px)}
  .tag-scene .cm-friend--violet{display:none}
  .tag-scene .bubble{top:14%;font-size:var(--text-small)}
  .anatomy{margin:var(--space-6) 0}
  .anatomy__tree{height:clamp(280px,80vw,360px)}
  .c-row{flex-wrap:wrap;row-gap:var(--space-3);padding:0;clip-path:none}
  .c-tree{width:calc(var(--w) / var(--sum) * 290%);padding-bottom:var(--space-2);background:linear-gradient(0deg,var(--color-surface-sunken) var(--space-2),transparent var(--space-2))}
  .c-ground{display:none}
  .c-tree svg{margin-bottom:0}
  .c-legend{justify-content:flex-start}
  .ways{margin-top:var(--space-6)}
  .cv-steps li[aria-hidden]{display:none}
  .way{grid-template-columns:44px minmax(0,1fr);padding:var(--space-4) var(--space-5);gap:var(--space-2) var(--space-4)}
  .way svg{width:44px;height:44px}
  .finale-art{height:clamp(240px,70vw,320px)}
  .finale-art{--mascot-x:50.8;--mascot-w:36}
  .finale-art .bubble{font-size:var(--text-small)}
  .space{padding:0 var(--space-4) var(--space-8);--stage-h:clamp(400px,112vw,560px)}
  .space__stage{margin:calc(var(--space-8) * -.5) calc(var(--space-4) * -1) 0}
  .space__img{object-position:52% 46%;transform-origin:52% 46%}
  .space__copy{margin-top:calc(var(--stage-h) * -.2)}
  .space__copy::before{left:-10%;width:120%}
  .space__star{width:22px;height:22px}.space__star svg{width:13px;height:13px}
}
@media (max-width:420px){
}
@media (prefers-reduced-motion:reduce){
  .e-tile__img,.e-tile__play,.e-more,.c-tree svg{transition:none}
}

:root{
  --cm-line:color-mix(in oklab,var(--cv-mint-deep) 72%,var(--cv-ground));
  --cm-skin:color-mix(in oklab,var(--cv-ink) 76%,var(--cv-coin) 24%);
  --cm-skin-hi:color-mix(in oklab,var(--cv-ink) 94%,var(--cv-coin));
  --cm-skin-shade:color-mix(in oklab,var(--cv-ink) 58%,var(--cv-coin-deep) 42%);
  --cm-iris:color-mix(in oklab,var(--cv-ground) 55%,var(--cv-coin-deep));
  --cm-mouth:color-mix(in oklab,var(--cv-ground) 70%,var(--cv-danger));
  --cm-tongue:color-mix(in oklab,var(--cv-danger) 60%,var(--cv-ink));
  /* the fur colours: mint for the lead; a .cm-pal-* class swaps them (and the fur gradients) for one of the crew */
  --cm-c-hi:color-mix(in oklab,var(--cv-mint-bright) 55%,var(--cv-mint));--cm-c-fur:var(--cv-mint);
  --cm-c-edge:color-mix(in oklab,var(--cv-mint) 70%,var(--cv-mint-deep));--cm-deep:var(--cv-mint-deep);
  --cm-c-tummy:color-mix(in oklab,var(--cv-mint-bright) 70%,var(--cv-mint));--cm-bright:var(--cv-mint-bright);
  --cm-p-fur:url(#cm-fur);--cm-p-dusk:url(#cm-fur-dusk);--cm-p-sheen:url(#cm-sheen);--cm-p-tummy:url(#cm-tummy);
}
/* the crew's fur, each from design-system tokens: base, a lighter lit tone toward ink, a deep tone toward the ground,
   and the outline made the same way as the lead's (72% deep tone on the ground) */
.cm-pal-gold{--cm-base:var(--cv-coin);--cm-deep:var(--cv-coin-deep)}
.cm-pal-blue{--cm-base:var(--cv-neon);--cm-deep:color-mix(in oklab,var(--cv-neon) 50%,var(--cv-ground))}
.cm-pal-violet{--cm-base:color-mix(in oklch,var(--cv-neon) 60%,var(--cv-danger));--cm-deep:color-mix(in oklab,var(--cm-base) 50%,var(--cv-ground))}
.cm-pal-gold,.cm-pal-blue,.cm-pal-violet{--cm-c-fur:var(--cm-base);--cm-c-hi:color-mix(in oklab,var(--cm-base) 58%,var(--cv-ink));
  --cm-c-edge:color-mix(in oklab,var(--cm-base) 70%,var(--cm-deep));--cm-c-tummy:color-mix(in oklab,var(--cm-base) 48%,var(--cv-ink));
  --cm-bright:color-mix(in oklab,var(--cm-base) 40%,var(--cv-ink));--cm-line:color-mix(in oklab,var(--cm-deep) 72%,var(--cv-ground))}
.cm-pal-gold{--cm-p-fur:url(#cm-fur-gold);--cm-p-dusk:url(#cm-fur-dusk-gold);--cm-p-sheen:url(#cm-sheen-gold);--cm-p-tummy:url(#cm-tummy-gold)}
.cm-pal-blue{--cm-p-fur:url(#cm-fur-blue);--cm-p-dusk:url(#cm-fur-dusk-blue);--cm-p-sheen:url(#cm-sheen-blue);--cm-p-tummy:url(#cm-tummy-blue)}
.cm-pal-violet{--cm-p-fur:url(#cm-fur-violet);--cm-p-dusk:url(#cm-fur-dusk-violet);--cm-p-sheen:url(#cm-sheen-violet);--cm-p-tummy:url(#cm-tummy-violet)}
.cm-f-fur{fill:var(--cm-p-fur)}.cm-f-dusk{fill:var(--cm-p-dusk)}.cm-f-sheen{fill:var(--cm-p-sheen)}.cm-f-tummy{fill:var(--cm-p-tummy)}
.cm-s-hi{stop-color:var(--cm-c-hi)}.cm-s-fur{stop-color:var(--cm-c-fur)}
.cm-s-edge{stop-color:var(--cm-c-edge)}
.cm-s-deep{stop-color:var(--cm-deep)}.cm-s-tummy{stop-color:var(--cm-c-tummy)}
.cm-s-skin-hi{stop-color:var(--cm-skin-hi)}.cm-s-skin{stop-color:var(--cm-skin)}.cm-s-skin-shade{stop-color:var(--cm-skin-shade)}
.cm-s-iris{stop-color:var(--cm-iris)}.cm-s-pupil{stop-color:var(--cv-ground)}.cm-s-blush{stop-color:var(--cv-danger)}
.cm-under{fill:var(--cm-line);stroke:var(--cm-line);stroke-width:13;stroke-linejoin:round}
.cm-under--face{fill:var(--cm-skin-shade);stroke:color-mix(in oklab,var(--cm-skin-shade) 60%,var(--cm-line));stroke-width:7}
.cm-ol{stroke:var(--cm-line);stroke-width:12;paint-order:stroke;stroke-linejoin:round}
.cm-ear{fill:url(#cm-skin)}
.cm-tuft-hi{fill:none;stroke:var(--cm-bright);stroke-width:4;stroke-linecap:round;stroke-linejoin:round;opacity:.45}
.cm-strand{fill:none;stroke:var(--cm-deep);stroke-width:3.2;stroke-linecap:round;opacity:.42}.cm-strand--hi{stroke:var(--cm-bright);opacity:.5}
.cm-chin{fill:none;stroke:var(--cm-skin-shade);stroke-width:4;stroke-linecap:round;opacity:.55}
.cm-nose{fill:var(--cm-line)}
.cm-brow{fill:none;stroke:var(--cm-skin-shade);stroke-width:7;stroke-linecap:round;opacity:.55}
.cm-shine{fill:var(--cv-ink)}
.cm-smile,.cm-wink{fill:none;stroke:var(--cm-line);stroke-width:6.5;stroke-linecap:round;stroke-linejoin:round}
.cm-mouth{fill:var(--cm-mouth);stroke:var(--cm-line);stroke-width:6;stroke-linejoin:round;stroke-linecap:round}
.cm-tongue{fill:var(--cm-tongue);stroke:var(--cm-line);stroke-width:5;stroke-linejoin:round}
.cm-tongue--in{stroke:none}
.cm-arm-shade{fill:var(--cm-deep);opacity:.42}
.cm-arm-hi{fill:none;stroke:var(--cm-bright);stroke-linecap:round;stroke-linejoin:round;opacity:.4}
.cm-armpit{fill:none;stroke:var(--cm-line);stroke-width:5;stroke-linecap:round;stroke-linejoin:round;opacity:.5}
.cm-under--hand{stroke-width:12}
.cm-gap{fill:none;stroke:var(--cm-line);stroke-width:4.5;stroke-linecap:round}.cm-gap--thin{stroke-width:4}
.cm-card{fill:var(--color-surface-raised);stroke:var(--cm-line);stroke-width:8;paint-order:stroke;stroke-linejoin:round}
.cm-card-in{fill:none;stroke:var(--cv-mint-deep);stroke-width:3}
.cm-prop{fill:color-mix(in oklab,var(--cv-ink) 88%,var(--cv-dim))}
.cm-prop-shade{fill:none;stroke:var(--cv-dim);stroke-width:10;stroke-linecap:round;opacity:.45}
.cm-prop-ink{fill:var(--cv-tone-3)}.cm-prop-dim{fill:var(--cv-dim)}
.cm-btn{stroke:var(--cm-line);stroke-width:3}
.cm-screen{fill:var(--cv-ground)}
.cm-band-under{fill:none;stroke:var(--cm-line);stroke-width:34;stroke-linecap:round}
.cm-band{fill:none;stroke:color-mix(in oklab,var(--cv-ink) 88%,var(--cv-dim));stroke-width:20;stroke-linecap:round}
.cm-cup-in{fill:var(--cv-mint)}

.cs-gold{color:var(--color-take)}

/* ---- the headline: the live front page's masthead (wordmark + typed intro), centred above the vine ---- */
/* shared/wordmark.css, scoped to the headline (unscoped, it would undo the top bar's own logo sizes) */
.story-head .cv-wordmark{display:block;max-width:100%;height:auto;overflow:visible}
.story-head .cv-wordmark__cursor{animation:cv-wordmark-blink 1.1s steps(1) infinite}
@keyframes cv-wordmark-blink{50%{opacity:0}}
@media (prefers-reduced-motion:reduce){
  .story-head .cv-wordmark__cursor{animation:none}
  .story-head .cv-wordmark--typed .cv-wordmark__letter,.story-head .cv-wordmark--typed .cv-wordmark__cursor{visibility:visible!important}
  .story-head .cv-wordmark--typed .cv-wordmark__ghost{display:none}
}
.story-head{position:relative;z-index:2;display:grid;justify-items:center;gap:var(--space-6);padding:var(--space-8) var(--space-gutter) var(--space-7);background:var(--color-bg);text-align:center}
.story-head__mark{width:100%;display:grid;justify-items:center}
.story-head__mark .cv-wordmark{width:min(100%,25rem)}
.cv-ds .story-head__lead{max-width:40ch;margin:0;text-wrap:balance}
/* site/public/home.css: the typed intro (site.js typeIntro) */
.story-head .site-intro--typed:not(.is-ready){visibility:hidden;animation:story-head-intro-fallback 0s 2.5s forwards}
@keyframes story-head-intro-fallback{to{visibility:visible}}
.story-head .site-intro__said{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.story-head .site-intro__ch{opacity:0}
.story-head .site-intro__ch.is-on{opacity:1}
.story-head .site-intro__cursor{position:relative}
.story-head .site-intro__cursor::after{content:'';position:absolute;left:.06em;bottom:.2em;width:.32em;height:.73em;border-radius:.045em;background:var(--color-primary)}
.story-head .site-intro__cursor.is-resting{animation:cv-wordmark-blink 1.1s steps(1) infinite}
@media (prefers-reduced-motion:reduce){
  .story-head .site-intro--typed:not(.is-ready){visibility:visible;animation:none}
  .story-head .site-intro__cursor.is-resting{animation:none}
}
/* ---- ChimpVibe's arcade: the headline on a CRT screen in a night-orchard cabinet (design tokens only) ---- */
/* v2: the cabinet sits on the page's left edge (the top bar's logo line), its two buttons and a short line on the right */
.story-head{display:grid;justify-items:stretch;grid-template-columns:minmax(0,46rem) minmax(min-content,22rem);justify-content:start;align-items:center;column-gap:clamp(var(--space-7),5vw,var(--space-9));row-gap:var(--space-6);text-align:start;
  padding:var(--space-7) max(var(--space-gutter),calc((100% - var(--content-max) - var(--rail)) / 2)) var(--space-6)}
.story-head__side{display:grid;justify-items:start;gap:var(--space-4)}
.cv-ds .story-head__side .cv-eyebrow{margin:0;display:flex;align-items:center;gap:var(--space-2);color:var(--cv-coin)}
.story-head__side .cv-eyebrow::before{content:'';width:8px;height:8px;border-radius:var(--radius-pill);background:var(--cv-coin);box-shadow:0 0 8px var(--cv-coin)}
.story-head__actions{display:grid;gap:var(--space-3);width:max-content;min-width:min(100%,19rem)}
.cv-ds .story-head__actions .cv-btn{width:100%;justify-content:space-between;gap:var(--space-4);white-space:nowrap}
.cv-ds .story-head__actions .cv-btn--quiet{justify-content:space-between}
.story-head__actions .p-icon{width:18px;height:18px}
.cv-ds .story-head__side .meta{max-width:30ch}
.story-head + .story .band--first:focus{outline:none}
@media (max-width:899px){
  .story-head{grid-template-columns:minmax(0,1fr);padding-inline:var(--space-4);padding-top:var(--space-6)}
  .story-head__side{grid-template-columns:auto;gap:var(--space-3)}
  .story-head__actions{grid-template-columns:repeat(2,minmax(0,1fr));width:auto}
  .cv-ds .story-head__actions .cv-btn{gap:var(--space-3)}
}
@media (max-width:520px){ .story-head__actions{grid-template-columns:minmax(0,1fr);width:100%;min-width:0} .cv-ds .story-head__actions .cv-btn{white-space:normal;text-align:start} }
.arcade{--glass:var(--cv-ground);width:100%;display:grid;justify-items:stretch;padding:var(--space-2) clamp(10px,2vw,var(--space-4)) var(--space-3);border-radius:var(--radius-2xl) var(--radius-2xl) var(--radius-lg) var(--radius-lg);
  background:linear-gradient(180deg,var(--cv-tone-3),var(--cv-tone-2) 30%,var(--cv-tone-1));
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--cv-ink) 10%,transparent),inset 0 0 0 1px color-mix(in srgb,var(--cv-mint-deep) 45%,transparent),0 0 0 1px var(--cv-ground),0 24px 60px -24px color-mix(in srgb,var(--cv-mint) 22%,transparent),0 30px 50px -30px var(--cv-ground)}
/* the marquee: a backlit sign panel (warm light behind frosted glass), the name in the middle, bulbs either side */
.arcade__marquee{position:relative;display:flex;align-items:center;gap:clamp(var(--space-3),2vw,var(--space-5));height:60px;margin:0 var(--space-2) var(--space-2);padding:0 var(--space-4);overflow:hidden;
  border-radius:var(--radius-lg) var(--radius-lg) var(--radius-xs) var(--radius-xs);
  background:radial-gradient(42% 130% at 50% 50%,color-mix(in srgb,var(--cv-coin) 26%,transparent),transparent 72%),
    linear-gradient(180deg,color-mix(in srgb,var(--cv-coin-deep) 34%,var(--cv-tone-2)),color-mix(in srgb,var(--cv-coin-deep) 12%,var(--cv-tone-1)));
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--cv-coin-deep) 75%,transparent),inset 0 1px 0 color-mix(in srgb,var(--cv-coin) 40%,transparent),
    inset 0 -12px 18px -12px var(--cv-ground),0 8px 22px -10px color-mix(in srgb,var(--cv-coin) 40%,transparent)}
.arcade__marquee::after{content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  background:linear-gradient(180deg,color-mix(in srgb,var(--cv-ink) 10%,transparent),transparent 46%),linear-gradient(100deg,transparent 30%,color-mix(in srgb,var(--cv-ink) 5%,transparent) 38%,transparent 46%)}
.arcade__title{flex:none;display:block}
.arcade__title .cv-wordmark{width:auto;height:50px;filter:url(#arcade-key-gold) drop-shadow(0 0 6px color-mix(in srgb,var(--cv-coin) 45%,transparent)) drop-shadow(0 1px 0 var(--cv-coin-deep)) drop-shadow(0 1px 1px var(--cv-ground))}
.arcade__bulbs{flex:1 1 0;min-width:0;display:flex;align-items:center;gap:clamp(8px,1.4vw,14px);overflow:hidden}
.arcade__bulbs--l{justify-content:flex-end}
.arcade__bulb{flex:none;display:block;width:8px;height:8px;border-radius:var(--radius-pill);
  background:radial-gradient(circle at 35% 30%,var(--cv-ink),var(--cv-coin) 55%,var(--cv-coin-deep));box-shadow:0 0 6px 1px color-mix(in srgb,var(--cv-coin) 70%,transparent)}
.arcade__bezel{padding:clamp(10px,1.6vw,var(--space-4));border-radius:var(--radius-2xl);background:linear-gradient(160deg,var(--cv-tone-1),var(--cv-ground) 60%);
  box-shadow:inset 0 2px 6px var(--cv-ground),inset 0 0 0 1px color-mix(in srgb,var(--cv-ink) 6%,transparent)}
/* the screen is the film's own shape (16:9, the owner's Evani.Motion film): no letterbox, no crop. The film fills it; the still
   (the film's finished logo and tree) stands in under reduced motion or when the browser will not autoplay. Above both: the
   phosphor bloom, scanlines, rolling band, flicker, the tube's curved edge and the glass. */
.arcade__screen{position:relative;isolation:isolate;overflow:hidden;border-radius:6% / 10%;aspect-ratio:16 / 9;background:var(--cv-ground);
  box-shadow:0 0 0 1px var(--cv-ground),0 0 24px -4px color-mix(in srgb,var(--cv-mint) 30%,transparent)}
.arcade__film,.arcade__still,.arcade__still img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;pointer-events:none;user-select:none}
.arcade__film{z-index:0}
.arcade__still{z-index:0;display:none}
.arcade.is-still .arcade__film{visibility:hidden}
.arcade.is-still .arcade__still,.arcade__still--shown{display:block}
@media (prefers-reduced-motion:reduce){
  .arcade__film{visibility:hidden}
  .arcade__still{display:block}
}
.arcade__bloom{z-index:1;mix-blend-mode:screen;background:radial-gradient(ellipse 90% 80% at 50% 45%,color-mix(in srgb,var(--cv-mint) 9%,transparent),transparent 70%)}
.arcade__fx{position:absolute;inset:0;pointer-events:none;border-radius:inherit}
.arcade__scan{z-index:1;background:repeating-linear-gradient(180deg,transparent 0 2px,color-mix(in srgb,var(--cv-ground) 30%,transparent) 2px 3px)}
.arcade__roll{z-index:1;opacity:0;background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--cv-mint-bright) 5%,transparent) 45%,color-mix(in srgb,var(--cv-mint-bright) 7%,transparent) 50%,transparent);height:35%;inset:auto 0 auto 0;top:0;border-radius:0}
.arcade__flick{z-index:1;opacity:0;background:var(--cv-ground)}
.arcade__curve{z-index:2;background:radial-gradient(ellipse 75% 70% at 50% 50%,transparent 62%,color-mix(in srgb,var(--cv-ground) 55%,transparent) 88%,var(--cv-ground));box-shadow:inset 0 0 40px 6px color-mix(in srgb,var(--cv-ground) 80%,transparent),inset 0 0 6px 2px var(--cv-ground)}
.arcade__glass{z-index:3;background:radial-gradient(ellipse 55% 35% at 28% 10%,color-mix(in srgb,var(--cv-ink) 9%,transparent),transparent 70%),linear-gradient(115deg,transparent 58%,color-mix(in srgb,var(--cv-ink) 4%,transparent) 64%,transparent 70%)}
/* v3: the v1 control deck is back (the owner liked it): a ringed mint stick and three small buttons (mint, gold, mint);
   decorative only (aria-hidden, nothing focusable), the real buttons stay on the right */
.arcade__deck{display:flex;align-items:center;justify-content:center;gap:var(--space-3);height:22px;margin-top:var(--space-2)}
.arcade__deck i{display:block;border-radius:50%}
.arcade__stick{width:12px;height:12px;margin-right:var(--space-5);background:radial-gradient(circle at 35% 30%,var(--cv-mint-bright),var(--cv-mint-deep));box-shadow:0 0 0 3px var(--cv-tone-1),0 0 0 4px color-mix(in srgb,var(--cv-mint-deep) 60%,transparent)}
.arcade__btn{width:10px;height:10px;background:radial-gradient(circle at 35% 30%,var(--cv-mint-bright),var(--cv-mint));box-shadow:0 0 6px color-mix(in srgb,var(--cv-mint) 50%,transparent)}
.arcade__btn--coin{background:radial-gradient(circle at 35% 30%,var(--cv-coin),var(--cv-coin-deep));box-shadow:0 0 6px color-mix(in srgb,var(--cv-coin) 55%,transparent)}
@media (prefers-reduced-motion:no-preference){
  html.motion .arcade__flick{animation:arcade-flicker 6s steps(1) infinite}
  html.motion .arcade__roll{opacity:1;animation:arcade-roll 9s linear infinite}
  html.motion .arcade__bulb{animation:arcade-chase 2.1s steps(1) calc(var(--i) * -.7s) infinite}
}
@keyframes arcade-flicker{0%,100%{opacity:0}41%{opacity:.07}42%{opacity:0}77%{opacity:.04}78%{opacity:0}}
@keyframes arcade-roll{from{transform:translateY(-100%)}to{transform:translateY(300%)}}
/* every third bulb lit, the lit ones stepping out from the name */
@keyframes arcade-chase{0%{opacity:1}33.333%{opacity:.32;box-shadow:none}}
/* the first chapter no longer sits right under the top bar */
.story-head + .story .band--first{padding-top:var(--space-section)}

/* the dealer chimp's card: a night-orchard playing card (see build.mjs) */
.cm-dc-s-top{stop-color:var(--cv-tone-3)}.cm-dc-s-low{stop-color:var(--cv-tone-1)}
.cm-dc-s-glow{stop-color:var(--cv-mint)}.cm-dc-s-ink{stop-color:var(--cv-ink)}.cm-dc-s-mint{stop-color:var(--cv-mint-bright)}.cm-dc-s-coin{stop-color:var(--cv-coin)}
.cm-card.cm-dc-base{fill:url(#cm-dc-night)}
.cm-dc-glow{fill:url(#cm-dc-glow-g)}
.cm-dc-star{fill:var(--cv-mint-bright);opacity:.55}
.cm-dc-frame{fill:none;stroke:var(--cv-coin-deep);stroke-width:2.2}
/* the tree: same dark line as the mascot's outline; a warm trunk mixed from the coin and tone tokens; a top-lit mint crown */
.cm-dc-wood{fill:color-mix(in oklab,var(--cv-coin-deep) 52%,var(--cv-tone-3));stroke:color-mix(in oklab,var(--cv-mint-deep) 72%,var(--cv-ground));stroke-width:1.3;paint-order:stroke;stroke-linejoin:round}
.cm-dc-bark{fill:none;stroke:color-mix(in oklab,var(--cv-coin-deep) 70%,var(--cv-ink));stroke-width:.9;stroke-linecap:round;opacity:.45}
.cm-dc-crown-ol{fill:color-mix(in oklab,var(--cv-mint-deep) 72%,var(--cv-ground));stroke:color-mix(in oklab,var(--cv-mint-deep) 72%,var(--cv-ground));stroke-width:2.6}
.cm-dc-leaf-d{fill:color-mix(in oklab,var(--cv-mint) 45%,var(--cv-mint-deep))}
.cm-dc-leaf{fill:url(#cm-dc-leaf-g)}
.cm-dc-s-leaf-top{stop-color:color-mix(in oklab,var(--cv-mint-bright) 35%,var(--cv-mint))}.cm-dc-s-leaf-mid{stop-color:var(--cv-mint)}.cm-dc-s-leaf-low{stop-color:color-mix(in oklab,var(--cv-mint) 72%,var(--cv-mint-deep))}
.cm-dc-clump{fill:none;stroke:var(--cv-mint-deep);stroke-width:1.25;stroke-linecap:round;opacity:.6}
.cm-dc-leaf-hi{fill:none;stroke:var(--cv-mint-bright);stroke-width:1.5;stroke-linecap:round;opacity:.55}
.cm-dc-mound{fill:color-mix(in oklab,var(--cv-mint-deep) 70%,var(--cv-tone-1))}
.cm-dc-mound-hi{fill:var(--cv-mint);opacity:.45}
.cm-dc-sheen{fill:url(#cm-dc-foil);opacity:0;transform:translateX(-64px) rotate(22deg);mix-blend-mode:screen}
@media (prefers-reduced-motion:no-preference){
  html.motion .cm-dc-sheen{animation:cm-dc-foil 7s var(--ease-standard) 1.2s infinite}
}
@keyframes cm-dc-foil{0%,62%{opacity:0;transform:translateX(-64px) rotate(22deg)}66%{opacity:1}86%{opacity:1}92%,100%{opacity:0;transform:translateX(64px) rotate(22deg)}}

/* the card-table picture in the Shuffle chapter (see build.mjs); design tokens only (mask stops are alpha, drawn in --cv-ground) */
.shuffle-art{--solid:var(--cv-ground);position:relative;display:block;width:min(100%,560px);margin:calc(var(--space-2) * -1) 0 0;justify-self:center;pointer-events:none}
.shuffle-art__frame{position:relative;display:block;isolation:isolate;aspect-ratio:1504 / 1312;overflow:clip;
  -webkit-mask:linear-gradient(180deg,transparent,var(--solid) 9%,var(--solid) 70%,color-mix(in srgb,var(--solid) 62%,transparent) 82%,color-mix(in srgb,var(--solid) 22%,transparent) 92%,transparent),
    linear-gradient(90deg,transparent,var(--solid) 3%,var(--solid) 97%,transparent);-webkit-mask-composite:source-in;
          mask:linear-gradient(180deg,transparent,var(--solid) 9%,var(--solid) 70%,color-mix(in srgb,var(--solid) 62%,transparent) 82%,color-mix(in srgb,var(--solid) 22%,transparent) 92%,transparent),
    linear-gradient(90deg,transparent,var(--solid) 3%,var(--solid) 97%,transparent);mask-composite:intersect}
.shuffle-art__img{display:block;width:100%;height:100%;transform-origin:51% 30%}
/* the art's dark room, lifted to exactly the page's tone: no edge anywhere the room meets the page */
.shuffle-art__frame::after{content:'';position:absolute;inset:0;background:var(--tone-play);mix-blend-mode:lighten}
/* the lamp keeps shining past the picture: a warm bloom over the shade that spills up into the band */
.shuffle-art::after{content:'';position:absolute;z-index:1;left:14%;right:12%;top:-30%;height:60%;border-radius:50%;mix-blend-mode:screen;
  background:radial-gradient(closest-side at 50% 52%,color-mix(in srgb,var(--cv-coin) 18%,transparent),color-mix(in srgb,var(--cv-coin) 7%,transparent) 50%,transparent)}
@media (min-width:900px){
  .band--shuffle .copy > .shuffle-art{grid-column:1;align-self:start;justify-self:start;width:min(calc(100% + var(--space-8) * .7),640px);margin-top:calc(var(--space-3) * -1)}
}
@media (max-width:899px){
  .band--shuffle .copy > .shuffle-art{justify-self:center;margin-top:0;margin-bottom:calc(var(--space-8) * -1)}
}
@media (prefers-reduced-motion:no-preference){
  html.motion .shuffle-art{transition:opacity .9s var(--ease-standard),translate .9s var(--ease-standard)}
  html.motion .chapter:not(.was-seen) .shuffle-art{opacity:0;translate:0 var(--space-6)}
  @supports (animation-timeline:view()){
    html.motion .shuffle-art__img{animation:shuffle-art-drift linear both;animation-timeline:view();animation-range:cover 0% cover 100%}
  }
}
@keyframes shuffle-art-drift{from{transform:translateY(2%) scale(1.05)}to{transform:translateY(-1%) scale(1.01)}}
/* wide screens: the dealt card comes off the table (from the left, low and turned) and settles on the deck */
@media (min-width:900px){
  html.motion .band--shuffle .deck__card.is-dealt{animation:deal-from-table calc(var(--duration-lift) * 1.5) var(--ease-grow)}
}
@keyframes deal-from-table{from{translate:-34% 24%;rotate:-12deg;opacity:0}35%{opacity:1}to{translate:0 0;rotate:0deg;opacity:1}}

/* ---- the port's own rules (the sketch set these as style attributes; the site's CSP allows none) ---- */
.arcade__bulbs--l .arcade__bulb:nth-child(1){--i:0}.arcade__bulbs--r .arcade__bulb:nth-child(1){--i:6}
.arcade__bulbs--l .arcade__bulb:nth-child(2){--i:1}.arcade__bulbs--r .arcade__bulb:nth-child(2){--i:5}
.arcade__bulbs--l .arcade__bulb:nth-child(3){--i:2}.arcade__bulbs--r .arcade__bulb:nth-child(3){--i:4}
.arcade__bulbs--l .arcade__bulb:nth-child(4){--i:3}.arcade__bulbs--r .arcade__bulb:nth-child(4){--i:3}
.arcade__bulbs--l .arcade__bulb:nth-child(5){--i:4}.arcade__bulbs--r .arcade__bulb:nth-child(5){--i:2}
.arcade__bulbs--l .arcade__bulb:nth-child(6){--i:5}.arcade__bulbs--r .arcade__bulb:nth-child(6){--i:1}
.arcade__bulbs--l .arcade__bulb:nth-child(7){--i:6}.arcade__bulbs--r .arcade__bulb:nth-child(7){--i:0}
.cm-btn--mint{fill:var(--cv-mint)}.cm-btn--neon{fill:var(--cv-neon)}.cm-btn--danger{fill:var(--cv-danger)}.cm-btn--coin{fill:var(--cv-coin)}
.cm-bob--mid{animation-delay:-1.1s}.cm-bob--late{animation-delay:-2.2s}
.deck .ch-head{transform-origin:262px 356px}
.finale__stem{stroke:var(--cv-mint)}.finale__leaves{fill:var(--cv-mint-deep)}
.shuffle-art__frame picture{display:contents}
/* the close-up tree box (journey.js mounts each game tree in one, and slides it) */
.rot__tree{height:100%}
