/* ============================================================================
   THE LANDING PAGE — dense, small, and multi-column.

   The note on the last version was that it was too large, too simple and too
   vertical: one idea per screen, scrolled through. Density is not the enemy
   of polish — an under-filled page reads as a page with nothing to say. What
   makes a busy page look professional rather than cluttered is that the
   busyness is ORGANISED:

     ONE MEASURE.  Everything sits on a 1200px wrap with 22px gutters, and
     every band divides that same measure. Nothing is centred on its own.

     ONE TYPE SET, SMALL.  36 / 19 / 13 / 11.5, and almost nothing between.
     Four sizes used consistently look designed; eight sizes used loosely
     look accidental, whatever their values.

     LABELS INSTEAD OF SENTENCES.  A mono label and a number say in two words
     what a sentence takes twenty to say, and a column of them scans. The
     page carries two sentences in total.

     RULES AND TINTS, NOT SHADOWS.  Dense layouts collapse when every block
     floats. Boxes here are hairlines on a tint, or a solid offset; nothing blurs.
   ========================================================================= */

.landing{background:#FFFFFF; color:var(--ink); font-size:var(--ty-4); font-family:var(--font-body);
  /* every section's title, one size (asked for: the titles were too big;
     they were 38px, "The team" 72px and Boo's night 50px) */
  --ty-section:clamp(24px, 2.4vw, 30px);
  /* the one title allowed past it (asked for, 6 October): Boo's story */
  --ty-story:clamp(32px, 3.6vw, 44px);}

/* The wrap, the mono label, h1, the lede and the primitives — buttons, rows,
   chips — moved to base.css when a second page needed them, as they were
   written to. What stays here is the landing's own: its two lower heading
   sizes, and everything below. */
.landing h2, .landing h3{font-family:var(--font-head); letter-spacing:var(--ls-tighter); margin:0;}
.landing h2{font-size:var(--ty-7); font-weight:var(--fw-semibold); line-height:var(--lh-2);}
.landing h3{font-size:var(--ty-4); font-weight:var(--fw-semibold); letter-spacing:var(--ls-tight);}

/* ---------- the Korean page (ko.html) ------------------------------------------
   The same page with every word in Korean (made from this one by
   checks/kopage.mjs). Hangul is Pretendard (fonts.css, self-hosted; ui/
   CLAUDE.md "Typefaces"): a page written in Korean sets its text in
   --font-ko, where Pretendard comes first so its Latin and its Hangul are
   drawn as a pair, and a Korean heading never sits in the Latin serif,
   which has no Hangul. (This page's claims were set in Noto Serif KR from
   Google Fonts before 2 October; a Korean serif is an asset decision now,
   ASSETS.md §4.) Words are kept whole at the end of a line (keep-all), the
   way Korean is set: it breaks between words, not inside one. The wide
   tracking is for Latin capitals; Hangul labels take far less, or they
   read letter by letter. A label's SPACE is the Korean face's too: Plex
   Mono's is a whole character cell, and it stood 공동 창업자 apart as two
   words. So here Plex Mono is declared again without the space (its
   unicode-range starts after it), and the space falls through to the next
   face. */
@font-face{font-family:"Plex Mono Ko"; font-style:normal; font-weight:400; font-display:swap; unicode-range:U+21-10FFFF;
  src:url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");}
@font-face{font-family:"Plex Mono Ko"; font-style:normal; font-weight:500; font-display:swap; unicode-range:U+21-10FFFF;
  src:url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");}
@font-face{font-family:"Plex Mono Ko"; font-style:normal; font-weight:600; font-display:swap; unicode-range:U+21-10FFFF;
  src:url("../fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");}
:root:lang(ko){--font-head:var(--font-ko); --font-body:var(--font-ko); --font-mono:"Plex Mono Ko", var(--font-ko);
  --ls-wide:.02em; --ls-caps:.04em; --ls-caps-xl:.06em;}
:lang(ko) body{word-break:keep-all; overflow-wrap:break-word;}

/* ---------- rising into place (landrise.js) -----------------------------------
   With motion allowed, a part marked data-rise that starts below the
   screen waits a little lower and transparent (is-armed) and rises into
   place as it comes into view (is-in). Without motion, or without the
   script, it is simply there. */
@media (prefers-reduced-motion: no-preference){
  [data-rise]{transition:opacity .7s ease, translate .8s cubic-bezier(.2, .8, .3, 1);}
  [data-rise].is-armed:not(.is-in){opacity:0; translate:0 24px;}
}

/* ---------- the bar ----------------------------------------------------------
   The frame's ONE BAR (frame.css, drawn by scripts/frame.js): clear at the
   top, white with a hairline once the page has moved under it. Here the
   top's daylight ground runs under it (the top section is pulled up by the
   bar's height and pads it back); its words are the frame's own, dark on
   the light (they were light on the night sky until 6 October). */
.landing{--bar-h:72px;}
@media (max-width:960px){ .landing{--bar-h:64px;} }

/* ---------- THE TOP: one question, the box that answers it, and a lesson --
   The one centred block on the page, because it is the one thing the page
   asks of you. A question, and under it the box that answers it — type,
   and what teaches it comes up while you are still typing (homesearch.js).
   Under the box, small, a window onto a real lesson as it plays (the film,
   below), half on the sky and half on the page.

   It speaks the page's grammar. The box is the rail's card edge — 2px of
   ink — and its ring takes the colour of the subject it has found. "stuck" is on a sticky note in the logo's yellow, and the
   yellow comes back as the highlighter on every match in the list. Boo
   sits in the box and reads along.

   THE GROUND is daylight on the stream (6 October, asked for: "too
   containery, hard blue edge, experiment with a different style of blue";
   it was the night sky): a pale river blue under the bar, fading to the
   page's white by the section's foot, so there is no edge anywhere, with
   three currents drawn across it like the logo's wave. The question is ink
   on it, and the bar is the frame's own. The box is softer (allowed, 6
   October): a fine edge and a soft shadow, and the found subject's colour
   as a ring instead of the solid offset. */
/* z-index: the list it opens hangs over the showcase below, whose cards
   are positioned and transformed and would otherwise paint over it */
/* Clipped sideways: the sticky note slaps on from 1.6 times its size, and
   in Korean (막혔나요, wider than "stuck") that ran past a 375px screen for
   a moment and widened the whole page on a phone. */
.landing{--ground:#E3EFF9;}
.hs{--hs-foot:0px; position:relative; z-index:2; isolation:isolate; container-type:inline-size; margin-top:calc(-1 * var(--bar-h)); padding:calc(var(--bar-h) + var(--sp-12)) 0 var(--hs-foot); overflow-x:clip; background:#FFF;}
.hs > *{--film-w:min(900px, 100cqw - 2 * var(--gutter)); --hs-lap:calc(var(--film-w) * 746 / 1440 / 2 + var(--sp-6) + var(--ty-4) * 1.5 + var(--hs-foot));}
.hs-sky{position:absolute; inset:0; z-index:-1; overflow:hidden; pointer-events:none;
  background:
    radial-gradient(50% 30% at 18% 22%, color-mix(in srgb, #FFF 70%, transparent), transparent 70%),
    radial-gradient(40% 30% at 84% 18%, color-mix(in srgb, var(--sun) 16%, transparent), transparent 70%),
    linear-gradient(to bottom, var(--ground) 0, #F0F6FC 400px, #FFF 580px);}
.hs-title{color:var(--ink);}
.hs-in{width:100%; display:flex; flex-direction:column; align-items:center; text-align:center;
  min-height:calc(77svh - var(--bar-h) - var(--sp-12) - var(--sp-12));}
.hs-title{margin-top:var(--sp-12); font-size:clamp(34px, 5vw, 68px); line-height:1.1; letter-spacing:-.025em; text-wrap:balance;}
:lang(ko) .hs-title{font-weight:var(--fw-bold); letter-spacing:-.035em;}
/* the note: the yellow of the logo's dot, a strip of tape across its top,
   and a solid edge under it in the darker gold — the pad it was torn from */
.hs-stuck{position:relative; display:inline-block; padding:0 .16em; border-radius:var(--r-2);
  background:var(--sun); box-shadow:.045em .055em 0 var(--amber-gold); transform:rotate(-3deg); color:var(--ink);}
.hs-stuck::before{content:''; position:absolute; top:-.1em; left:50%; width:46%; height:.2em;
  background:rgba(201,208,203,.62); transform:translateX(-50%) rotate(4deg);}

/* ---- the box ----
   a soft glow of the river's blue round it (6 October, asked for: "more
   just like a glow effect" in place of the drawn stream) */
.hs-find{position:relative; z-index:20; width:min(680px, 100%); margin-top:var(--sp-11); text-align:left;
  /* the box's offset is Boo's sky until something is found (asked for, 6
     October: the colours were all over the place; the note and Try keep
     the one warm yellow, everything else on the sky is the cool family) */
  --hue:var(--boo-sky); --rh:var(--ink); --rf:var(--sun); --rt:var(--neutral-tint);}
.hs-find::before{content:''; position:absolute; z-index:-1; inset:-70px -22% -90px; pointer-events:none;
  background:radial-gradient(closest-side, color-mix(in srgb, #5A9BDB 44%, transparent), color-mix(in srgb, #8FC3EC 18%, transparent) 55%, transparent);}
/* the suggestions, attached under the bar: one row of the questions
   students ask Boo, scrolling sideways, fading at its ends; gone while Boo
   is answering under the box */
.hs-sugs{display:flex; gap:var(--sp-4); margin:var(--sp-6) 0 0; padding:var(--sp-2) var(--sp-6); overflow-x:auto; list-style:none;
  scrollbar-width:none; overscroll-behavior-x:contain;
  -webkit-mask:linear-gradient(to right, transparent, #000 var(--sp-6), #000 calc(100% - 96px), transparent);
  mask:linear-gradient(to right, transparent, #000 var(--sp-6), #000 calc(100% - 96px), transparent);}
.hs-sugs::-webkit-scrollbar{display:none;}
.hs-sugs li{flex:0 0 auto;}
.hs-sug{display:block; padding:var(--sp-3) var(--sp-6); border:1px solid color-mix(in srgb, var(--ink) 14%, transparent); border-radius:var(--r-pill);
  background:color-mix(in srgb, #FFF 82%, transparent); font:inherit; font-size:var(--ty-5); font-weight:var(--fw-medium); line-height:var(--lh-3);
  white-space:nowrap; color:var(--ink-soft); cursor:pointer;}
.hs-sug:hover{border-color:color-mix(in srgb, var(--ink) 40%, transparent); background:#FFF; color:var(--ink);}
.hs-find.is-chat .hs-sugs{display:none;}
.hs-bar{display:flex; align-items:center; gap:var(--sp-5); padding:var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-6);
  background:#FFF; border:1.5px solid color-mix(in srgb, var(--ink) 22%, transparent); border-radius:var(--r-pill);
  box-shadow:0 16px 40px -18px color-mix(in srgb, #1D5D8F 55%, transparent); cursor:text;}
.hs-bar:focus-within, .hs-find.is-open .hs-bar{border-color:var(--ink);
  box-shadow:0 0 0 5px color-mix(in srgb, var(--hue) 45%, transparent), 0 16px 40px -18px color-mix(in srgb, #1D5D8F 55%, transparent);}
/* the ring goes round the whole box, not the text inside it */
.hs-q:focus-visible{outline:none;}
.hs-bar:has(.hs-q:focus-visible){outline:2px solid var(--blue); outline-offset:4px;}
/* Boo, reading along: --px and --py are where it looks, set by the script */
.hs-boo{flex:0 0 auto; display:inline-flex; --px:0; --py:0;}
/* the design set's egg, drawn inline by tools/cast/draw.mjs; the
   eyes are the page's to move and blink */
.hs-boo svg{display:block; width:38px; height:40px; overflow:visible;}
.hs-boo-look{transform:translate(calc(var(--px) * 7px), calc(var(--py) * 6px));}
.hs-boo-blink{transform-box:fill-box; transform-origin:center;}
.hs-field{position:relative; flex:1; min-width:0; display:flex; align-items:center;}
.hs-q{width:100%; min-width:0; padding:var(--sp-5) 0; border:0; background:transparent;
  -webkit-appearance:none; appearance:none; font-family:inherit; font-size:var(--ty-7);
  letter-spacing:var(--ls-tight); color:var(--ink);}
.hs-q::placeholder{color:var(--muted); opacity:1;}
.hs-q::-webkit-search-cancel-button, .hs-q::-webkit-search-decoration{-webkit-appearance:none; appearance:none;}
/* The examples it types to itself sit exactly where typing would, and only
   while the box is empty, unfocused and the script is running them. */
.hs-demo{position:absolute; inset:0; display:none; align-items:center; gap:var(--sp-4); pointer-events:none;
  white-space:nowrap; overflow:hidden; font-size:var(--ty-7); letter-spacing:var(--ls-tight); color:var(--ink-soft);}
.hs-find.is-demo .hs-q:placeholder-shown:not(:focus) + .hs-demo{display:flex;}
.hs-find.is-demo .hs-q:not(:focus)::placeholder{color:transparent;}
.hs-try{flex:0 0 auto; padding:var(--sp-1) var(--sp-4); border-radius:var(--r-pill); background:var(--sun);
  font-size:var(--ty-4); font-style:normal; font-weight:var(--fw-semibold); color:var(--ink);}
.hs-typed::after{content:''; display:inline-block; width:2px; height:1.05em; margin-left:var(--sp-1);
  background:var(--ink); vertical-align:-.16em;}
.hs-go{flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; gap:var(--sp-3);
  min-width:44px; min-height:44px; padding:var(--sp-4) var(--sp-7); border-radius:var(--r-pill);
  background:var(--ink); color:#FFF; font-size:var(--ty-5); font-weight:var(--fw-semibold);}
.hs-go::after{content:'\2192'; font-size:var(--ty-7); line-height:var(--lh-1);}
.hs-go:hover{background:var(--blue-deep);}

/* ---- what it finds ----
   A card on the same edge and offset, under the box. Each row is a small
   sticky note in its subject's field — the note carries the spec code, the
   unit, or what kind of thing it is — and the words typed are marked in
   the logo's yellow, as a highlighter would. */
.hs-pop{position:absolute; top:calc(100% + 16px); left:0; right:0; z-index:30; padding:var(--sp-3);
  background:#FFF; border:2px solid var(--ink); border-radius:var(--r-5); box-shadow:6px 6px 0 var(--hue);}
.hs-pop[hidden], .hs-pop-head[hidden]{display:none;}
.hs-pop-head{margin:0; padding:var(--sp-4) var(--sp-5) var(--sp-3); font-size:var(--ty-5); font-weight:var(--fw-semibold); color:var(--ink-soft);}
.hs-list{display:flex; flex-direction:column;}
.hs-row{display:grid; grid-template-columns:auto minmax(0, 1fr) auto; grid-template-areas:"tile text kind";
  align-items:center; gap:var(--sp-2) var(--sp-5); padding:var(--sp-4) var(--sp-5); border-radius:var(--r-3); color:var(--ink);}
.hs-row.is-active{background:var(--rt);}
.hs-row-bank{margin-top:var(--sp-2); border-top:1px dashed var(--border-strong); border-radius:0 0 var(--r-3) var(--r-3);}
.hs-tile{grid-area:tile; width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:var(--r-1); background:var(--rf); box-shadow:2px 2px 0 var(--rh); transform:rotate(-4deg);
  font-size:var(--ty-3); font-weight:var(--fw-semibold); color:var(--ink); white-space:nowrap;}
.hs-row:nth-child(even) .hs-tile{transform:rotate(3deg);}
.hs-row.is-active .hs-tile{transform:rotate(0deg);}
.hs-text{grid-area:text; min-width:0; display:flex; flex-direction:column; gap:var(--sp-1);}
.hs-name{display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  font-size:var(--ty-6); font-weight:var(--fw-semibold); line-height:var(--lh-3); letter-spacing:var(--ls-tight);}
.hs-name mark{background:linear-gradient(transparent 52%, var(--sun) 52%); color:inherit;}
.hs-meta{overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:var(--ty-3); color:var(--muted);}
.hs-kind{grid-area:kind; font-size:var(--ty-4); font-weight:var(--fw-semibold); color:var(--rh);}
.hs-keys{margin:var(--sp-2) 0 0; padding:var(--sp-4) var(--sp-5) var(--sp-2); border-top:1px solid var(--border-soft);
  font-size:var(--ty-4); color:var(--muted);}
.hs-keys kbd{padding:0 var(--sp-2); border:1px solid var(--line); border-radius:var(--r-1); background:var(--panel);
  font:inherit; color:var(--ink-soft);}
/* the "Ask Boo" row: Boo on his own tile, in his blue */
.hs-row-ask{--rt:var(--boo-blue-tint);}
.hs-tile-boo{background:var(--boo-blue-tint); box-shadow:2px 2px 0 var(--boo-blue);}
.hs-tile-boo img{display:block; width:28px; height:28px;}
.hs-row-ask .hs-kind{color:var(--boo-blue-deep);}

/* ---- ASK BOO, UNDER THE BOX (landchat.js) ----
   The conversation opens under the box, in the page (what is under it
   moves down, and the sky with it): Boo and his name across the top, the conversation, and a box to ask more. The
   student's words on the right in the box's ink; Boo's on the left, by
   his face, on his blue's tint; a lesson he points at as the page's
   button; the sign-up card the same, on paper. */
.hs-chat{position:relative; z-index:30; display:flex; flex-direction:column; margin-top:var(--sp-8);
  background:#FFF; border:2px solid var(--ink); border-radius:var(--r-5); box-shadow:6px 6px 0 var(--boo-blue); overflow:hidden;}
.hs-chat[hidden]{display:none;}
.hs-find.is-chat .hs-bar{border-color:var(--ink); box-shadow:0 0 0 5px color-mix(in srgb, var(--boo-blue) 40%, transparent), 0 16px 40px -18px color-mix(in srgb, #1D5D8F 55%, transparent);}
.hs-chat-head{display:flex; align-items:center; gap:var(--sp-5); padding:var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-6);
  border-bottom:1px solid var(--border-soft); background:var(--boo-blue-tint);}
.hs-chat-boo{width:40px; height:40px;}
.hs-chat-who{flex:1; margin:0; font-size:var(--ty-7); font-weight:var(--fw-semibold); color:var(--ink);}
.hs-chat-x{display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; border-radius:var(--r-round); background:none; color:var(--ink); cursor:pointer;}
.hs-chat-x::before{content:'\00D7'; font-size:var(--ty-9); line-height:var(--lh-1);}
.hs-chat-x:hover{background:#FFF;}
.hs-chat-log{display:flex; flex-direction:column; gap:var(--sp-6); max-height:min(440px, 55vh); overflow-y:auto; overscroll-behavior:contain;
  padding:var(--sp-7) var(--sp-6);}
.hs-msg{display:flex; gap:var(--sp-4); max-width:100%;}
.hs-msg p{margin:0;}
.hs-msg-me{align-self:flex-end; max-width:85%; padding:var(--sp-5) var(--sp-6); border-radius:var(--r-5) var(--r-5) var(--r-1) var(--r-5);
  background:var(--ink); color:#FFF; font-size:var(--ty-6); line-height:var(--lh-4);}
.hs-msg-boo{align-items:flex-start; max-width:92%;}
.hs-msg-face{flex:0 0 auto; width:36px; height:36px; margin-top:var(--sp-1);}
.hs-msg-body{display:flex; flex-direction:column; gap:var(--sp-5); min-width:0; padding:var(--sp-5) var(--sp-6);
  border-radius:var(--r-1) var(--r-5) var(--r-5) var(--r-5); background:var(--boo-blue-tint); color:var(--ink); font-size:var(--ty-6); line-height:var(--lh-4);}
.hs-msg-t{position:relative; display:flex; flex-direction:column; gap:var(--sp-4);}
.hs-msg-t > p{position:relative;}
/* his answer typing itself in, for the eye, over its own words (there,
   clear, for a screen reader) */
.hs-msg-t.is-typing{color:transparent;}
.hs-msg-type{position:absolute; inset:0; color:var(--ink);}
.hs-msg-refs{display:flex; flex-wrap:wrap; gap:var(--sp-4);}
.hs-msg-join{background:var(--panel);}
.hs-msg-note{align-self:center; font-size:var(--ty-4); color:var(--ink-soft);}
.hs-msg-wait{display:flex; align-items:center; gap:var(--sp-2); color:var(--ink-soft);}
.hs-msg-wait i{width:6px; height:6px; border-radius:var(--r-round); background:var(--ink-soft);}
.hs-chat-ask{display:flex; align-items:center; gap:var(--sp-4); padding:var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-6); border-top:1px solid var(--border-soft);}
.hs-chat-q{flex:1; min-width:0; padding:var(--sp-5) 0; border:0; background:transparent; font-family:inherit; font-size:var(--ty-6); color:var(--ink);}
.hs-chat-q::placeholder{color:var(--muted); opacity:1;}
.hs-chat-q:focus-visible{outline:none;}
.hs-chat-ask:has(.hs-chat-q:focus-visible){box-shadow:inset 0 0 0 2px var(--blue);}
.hs-chat-send{display:grid; place-items:center; flex:0 0 auto; width:44px; height:44px; padding:0; border:0; border-radius:var(--r-round);
  background:var(--ink); color:#FFF; cursor:pointer;}
.hs-chat-send::before{content:'\2191'; font-size:var(--ty-7); line-height:var(--lh-1);}
.hs-chat-send:hover{background:var(--blue-deep);}
@media (prefers-reduced-motion: no-preference){
  .hs-msg-wait i{animation:hs-wait 1s ease-in-out infinite;}
  .hs-msg-wait i:nth-child(2){animation-delay:.15s;}
  .hs-msg-wait i:nth-child(3){animation-delay:.3s;}
  @keyframes hs-wait{0%, 60%, 100%{translate:0 0;} 30%{translate:0 -4px;}}
}

/* read by a screen reader, not drawn: the box's label and the live count */
.hs-sr{position:absolute; width:1px; height:1px; margin:-1px; padding:0; border:0; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap;}

/* ---- the lesson, drawn ----
   The slope lesson drawn from scratch (6 October, asked for: "hand drawn
   bespoke to match Brilliant's quality bar"; tools/cast/hero-demo.mjs, the
   design set's figure kit), on white with no frame, played by herodemo.js.
   It replaced the film of the lesson; the rail's four are still films. */
/* Full lesson screens; the dots select separate recordings, never crop their UI. */
.hs-stage{--stage-pad:clamp(16px, 4.4vw, 64px); --stage-w:min(1180px, 100% - 2 * var(--stage-pad));
  position:relative; margin:var(--sp-12) 0 0; padding:clamp(20px, 2.6vw, 36px) 0 0; overflow:hidden; background:var(--sun);}
.hs-screen{position:relative; width:var(--stage-w); margin:0 auto;}
.hs-screen > svg{display:none; width:100%; height:auto; overflow:visible;}
/* the lesson picked (the first, before the script picks), wide or a phone's own */
.hs-screen:not([data-pick]) .hs-art-wide[data-demo-art="0"], .hs-screen[data-pick="0"] .hs-art-wide[data-demo-art="0"],
.hs-screen[data-pick="1"] .hs-art-wide[data-demo-art="1"], .hs-screen[data-pick="2"] .hs-art-wide[data-demo-art="2"]{display:block;}
@media (max-width:760px){
  .hs-stage{--stage-w:min(460px, 100% - 2 * var(--stage-pad)); padding-top:var(--sp-6);}
  .hs-screen > .hs-art-wide{display:none !important;}
  .hs-screen:not([data-pick]) .hs-art-tall[data-demo-art="0"], .hs-screen[data-pick="0"] .hs-art-tall[data-demo-art="0"],
  .hs-screen[data-pick="1"] .hs-art-tall[data-demo-art="1"], .hs-screen[data-pick="2"] .hs-art-tall[data-demo-art="2"]{display:block;}
}
/* what the lesson picked is, and the way into it */
.hs-stage-say{display:flex; flex-wrap:wrap; justify-content:center; align-items:baseline; gap:var(--sp-2) var(--sp-6); margin:0 auto var(--sp-4); padding:0 var(--sp-6);
  text-align:center; font-size:var(--ty-6); color:var(--ink-soft);}
.hs-stage-say [hidden]{display:none;}
.hs-stage-say a{font-weight:var(--fw-semibold); color:var(--ink); text-decoration:underline; text-underline-offset:3px;}
/* the lessons to pick: a pill on the yellow, the one playing a dark bubble
   that slides to whichever is picked, its time running in it; pause beside */
.hs-beats{position:relative; z-index:1; display:flex; justify-content:center; align-items:center; gap:var(--sp-4); margin:0 auto var(--sp-5); padding:0 var(--sp-6);}
.hs-beats[hidden]{display:none;}
.hs-beats-row{position:relative; display:flex; padding:5px; border-radius:var(--r-pill);
  background:color-mix(in srgb, #FFF 58%, transparent); box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent);}
.hs-beat{position:relative; z-index:1; min-height:40px; padding:0 var(--sp-7); border:0; border-radius:var(--r-pill); background:none; cursor:pointer; white-space:nowrap;
  font:inherit; font-size:var(--ty-6); font-weight:var(--fw-semibold); letter-spacing:var(--ls-tight); color:color-mix(in srgb, var(--ink) 72%, transparent); transition:color .25s ease;}
.hs-beat:hover{color:var(--ink);}
.hs-beat[aria-pressed="true"]{color:#FFF;}
.hs-beat:focus-visible, .hs-pp:focus-visible, .hs-stage-say a:focus-visible{outline:2px solid var(--ink); outline-offset:3px;}
.hs-beats-on{position:absolute; top:5px; bottom:5px; left:0; width:var(--w, 0); translate:var(--x, 0) 0; border-radius:var(--r-pill);
  background:var(--ink); overflow:hidden; box-shadow:0 6px 16px -8px color-mix(in srgb, var(--ink) 70%, transparent);}
.hs-beats-on::before, .hs-beats-on::after{content:''; position:absolute; left:16px; right:16px; bottom:7px; height:2px; border-radius:2px;}
.hs-beats-on::before{background:color-mix(in srgb, #FFF 22%, transparent);}
.hs-beats-on::after{background:var(--sun); transform:scaleX(var(--p, 0)); transform-origin:left;}
.hs-beats.is-still .hs-beats-on::before, .hs-beats.is-still .hs-beats-on::after, .hs-beats.is-still .hs-pp{display:none;}
.hs-pp{flex:0 0 auto; display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; border-radius:var(--r-round); background:var(--ink); color:#FFF; cursor:pointer;}
.hs-pp::before{content:''; width:12px; height:14px; background:linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px, currentColor 8px);}
.hs-pp[aria-pressed="true"]::before{width:0; height:0; margin-left:3px; background:none; border-style:solid; border-width:8px 0 8px 13px; border-color:transparent transparent transparent currentColor;}
@media (max-width:420px){ .hs-beat{padding:0 var(--sp-5); font-size:var(--ty-5);} .hs-beats{padding:0 var(--sp-3); gap:var(--sp-3);} }
@media (max-width:600px){ .hs-title{margin-top:var(--sp-8);} }
@media (prefers-reduced-motion: no-preference){
  .hs-beats-on{transition:translate .45s cubic-bezier(.3, 1.3, .5, 1), width .45s cubic-bezier(.3, 1.3, .5, 1);}
  @supports (animation-timeline: view()){
    .hs-stage{animation:hs-open-stage linear both; animation-timeline:view(); animation-range:entry 0% cover 40%;}
    @keyframes hs-open-stage{from{clip-path:inset(0 max(10px, (100% - var(--stage-w)) / 2 - 36px) round clamp(24px, 3.4vw, 52px));}
      to{clip-path:inset(0 0 round 0);}}
  }
}

@media (max-width:640px){
  .hs-stuck{padding:0 var(--sp-3);}
  .hs-stuck::before{top:-6px; height:12px;}
  .hs-find{margin-top:var(--sp-11);}
  .hs-bar{gap:var(--sp-5); padding-left:var(--sp-5);}
  .hs-q, .hs-demo{font-size:var(--ty-6);}
  /* the arrow alone; the word stays for a screen reader */
  .hs-go{padding:var(--sp-5);}
  .hs-go-word{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;}
  .hs-row{grid-template-columns:auto minmax(0, 1fr); grid-template-areas:"tile kind" "tile text"; padding:var(--sp-4);}
  .hs-keys{display:none;}
}

@media (prefers-reduced-motion: no-preference){
  /* the note is slapped on once the question is up */
  .hs-stuck{animation:hs-slap .55s cubic-bezier(.3, 1.45, .5, 1) .3s backwards;}
  @keyframes hs-slap{from{opacity:0; transform:rotate(-16deg) scale(1.6);}}
  /* the deck is dealt; then, each turn, the top card tips back on its foot
     and rises, drops behind the pile and goes, while the two under it
     come up a place; the script then lays the cards out again, the same
     picture, and the card that is new at the back comes in */
  .hs-sug{transition:border-color .15s ease, background-color .15s ease, color .15s ease;}
  .hs-bar{transition:box-shadow .2s ease, transform .2s ease;}
  .hs-pop:not([hidden]){animation:hs-open .18s ease-out;}
  @keyframes hs-open{from{opacity:0; transform:translateY(-8px);}}
  .hs-tile{transition:transform .15s ease;}
  .hs-boo-look{transition:transform .2s ease-out;}
  .hs-boo-blink{animation:hs-blink 5.2s ease-in-out 2s infinite;}
  @keyframes hs-blink{0%, 94%, 100%{transform:scaleY(1);} 97%{transform:scaleY(.12);}}
  .hs-typed::after{animation:hs-caret 1s steps(1) infinite;}
  @keyframes hs-caret{50%{opacity:0;}}
}


/* the glow under the box breathes, with motion allowed */
@media (prefers-reduced-motion: no-preference){
  .hs-find::before{animation:hs-glow 7s ease-in-out infinite alternate;}
  @keyframes hs-glow{to{opacity:.7; scale:1.06 1.12;}}
  /* the drawn lesson rises into place once the box is up */
  @keyframes hs-rise{from{opacity:0; translate:0 24px;}}
}

/* ---------- THE TEAM: day and night -------------------------------------------
   One claim as the title (ten years, thousands of students), one sentence
   under it saying who, Joe and SJ named in it (6 October, asked for:
   simple; the founders' photographs, their universities and the list of
   universities under the team went, and nothing small was put in their
   place). Then the two teams as two skies, each painted for its own
   country's time of day by hometeam.js: dawn, day, dusk or night, the sun
   or the moon where it really is on its arc, the time and the day in
   words. The fried egg from the lessons floats the dotted route between
   them on three balloons (Jegg has the features and Boo the story). No
   cards, no offsets: this section's surfaces are sky.

   Each sky has its city along its foot, in two layers in its sky's own
   colour mixed with ink, so it changes with the hour: London (terraces,
   the trees of St James's Park, the Eye with its pods, Westminster and the
   Elizabeth Tower with its clock, St Paul's, the Shard, the Gherkin
   behind) on the Thames; Seoul (Bukhansan's ridge behind, hanok roofs,
   Gwanghwamun, Namsan and its tower, flats, Lotte World Tower) on the Han.
   By night the cities go dark against a glow, their windows and the clock
   lit; there are twelve stars and two four-point sparkles; by day three
   clouds and a few birds. The city is drawn to the right of a 76px band
   (56px on a phone), its tall parts all in the right half, and the low
   rows run on to the left (overflow), so it fits any width and never sits
   behind the words.

   The title is the size of every section title, in the display serif,
   with a stroke of the logo's blue drawn under it. */
/* pastel gloss (asked for, 6 October: "more glossy colours, better designed
   containers"): a soft candy wash of Boo's blue, plum and sky behind; the
   title in a sheen from Boo's deep blue to plum; the two skies one
   window of two panes, framed in white, glossed and lifted on a shadow of
   their own colour */
.team{position:relative; isolation:isolate; padding:var(--sp-13) 0;
  background:
    radial-gradient(55% 45% at 12% 8%, color-mix(in srgb, var(--boo-blue-field) 45%, transparent), transparent 70%),
    radial-gradient(50% 42% at 88% 14%, color-mix(in srgb, var(--plum-field) 45%, transparent), transparent 70%),
    radial-gradient(60% 40% at 50% 80%, color-mix(in srgb, var(--sky-field) 34%, transparent), transparent 70%),
    #FFF;}
/* the wash fades to the page before the foot */
.team::after{content:''; position:absolute; inset:auto 0 0; z-index:-1; height:var(--sp-13); background:linear-gradient(transparent, #FFF); pointer-events:none;}
.team-head{max-width:680px; margin:0 auto; padding-bottom:var(--sp-13); text-align:center; text-wrap:balance;}
.team .team-title{position:relative; display:inline-block; margin:0; padding-bottom:var(--sp-4); font-family:var(--font-head);
  font-size:var(--ty-section); font-weight:var(--fw-semibold); letter-spacing:var(--ls-tighter); line-height:var(--lh-1); color:var(--boo-blue-deep);
  text-wrap:balance;}
/* the stroke is a short one, centred: under a title on two lines, a stroke
   the box's width ran past the words */
.team .team-title::after{content:''; position:absolute; left:50%; bottom:0; width:clamp(120px, 50%, 280px); height:8px; translate:-50% 0;
  background:linear-gradient(90deg, var(--boo-sky), var(--plum-field) 55%, var(--rose-field));
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9C40 3 80 2 120 5s55 5 77 1' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;}
.team-say{max-width:560px; margin:var(--sp-7) auto 0; font-size:var(--ty-7); line-height:var(--lh-4); color:var(--ink-soft);}
/* the two skies, one band: London on the left and Seoul on the right,
   joined down the middle, the route arcing over the seam. The route
   runs over the band's top; the head stands a step further off (its
   padding, wide only), so the balloons over the egg at the top of
   the arc stay clear of the words over it. */
.team-world{position:relative; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); align-items:stretch;
  gap:var(--sp-3); margin-top:var(--sp-12); padding-top:var(--sp-13);}
/* the two panes, lifted on a soft shadow of Boo's blue; no frame round them */
.team-world > .team-side{box-shadow:0 30px 60px -26px color-mix(in srgb, var(--boo-blue) 55%, transparent);}
.team-world > .team-side:first-of-type{border-radius:var(--r-6) var(--r-2) var(--r-2) var(--r-6);}
.team-world > .team-side:last-of-type{border-radius:var(--r-2) var(--r-6) var(--r-6) var(--r-2);}
/* the route: a dotted arc from the middle of one sky to the middle of the other */
.team-route{position:absolute; top:0; left:25%; width:50%; height:64px; overflow:visible;}
.team-route path{fill:none; stroke:color-mix(in srgb, var(--boo-blue) 60%, transparent); stroke-width:2.5; stroke-linecap:round; stroke-dasharray:1 9;
  vector-effect:non-scaling-stroke;}
/* the egg's middle on the arc (30% across its drawing, 88% down), its
   balloons over it; at rest, at the top of the arc */
.team-flyer{position:absolute; top:6.4px; left:50%; width:84px; height:auto; translate:-30% -88%; pointer-events:none;}
.team-side{position:relative; overflow:hidden; min-height:204px; padding:var(--sp-7); border-radius:var(--r-6);
  background:linear-gradient(160deg, color-mix(in srgb, #FFF 34%, transparent), transparent 38%), var(--sky); color:var(--sky-ink); --sky:var(--sky-field); --sky-ink:var(--ink); --sky-soft:var(--ink-soft);
  --far:color-mix(in srgb, var(--sky) 78%, var(--ink)); --near:color-mix(in srgb, var(--sky) 55%, var(--ink));
  --water:color-mix(in srgb, var(--sky) 70%, #FFF); --sx:70; --sy:60;}
.team-side[data-sky="dawn"]{--sky:var(--rust-field);}
.team-side[data-sky="dusk"]{--sky:var(--plum-field);}
/* at night the city is darker than the sky, against the glow of its lights */
.team-side[data-sky="night"]{--sky:var(--boo-night); --sky-ink:#FFF; --sky-soft:var(--boo-mist);
  --far:#1A2A55; --near:#050B1D; --water:#22336A;
  background-image:linear-gradient(160deg, color-mix(in srgb, #FFF 12%, transparent), transparent 38%),
    linear-gradient(to top, color-mix(in srgb, var(--boo-sky) 26%, transparent), transparent 34%);}
.team-where{position:relative; margin:0; font-size:var(--ty-5); font-weight:var(--fw-semibold); letter-spacing:var(--ls-tight); color:var(--sky-soft);}
.team-side .team-side-name{position:relative; margin-top:var(--sp-2); font-family:var(--font-head); font-size:clamp(20px, 2vw, 26px);
  font-weight:var(--fw-semibold); letter-spacing:var(--ls-tighter); line-height:var(--lh-1); color:var(--sky-ink);}
:lang(ko) .team-side .team-side-name{font-weight:var(--fw-bold);}
.team-now{position:relative; display:flex; align-items:baseline; flex-wrap:wrap; gap:var(--sp-1) var(--sp-4); margin:var(--sp-6) 0 0;}
.team-now:has(b:empty){display:none;}
.team-now b{font-family:var(--font-mono); font-size:var(--ty-7); font-weight:var(--fw-semibold); letter-spacing:var(--ls-tight);
  line-height:var(--lh-1); font-variant-numeric:tabular-nums;}
.team-now span{font-size:var(--ty-5); color:var(--sky-soft);}
/* the sky: the right half of the panel, so it never sits behind the words */
.team-sky{position:absolute; top:0; right:0; bottom:0; left:48%; pointer-events:none;}
.team-sun, .team-moon{position:absolute; left:calc(var(--sx) * 1%); bottom:calc(var(--sy) * 1%); border-radius:var(--r-round);}
.team-sun{width:44px; height:44px; margin:0 0 -22px -22px; background:var(--sun); box-shadow:0 0 0 7px rgba(255,228,92,.35);}
.team-moon{display:none; width:38px; height:38px; margin:0 0 -19px -19px; box-shadow:inset -10px -4px 0 0 var(--boo-cream);}
.team-side[data-sky="night"] .team-sun{display:none;}
.team-side[data-sky="night"] .team-moon{display:block;}
.team-star{position:absolute; display:none; width:3px; height:3px; border-radius:var(--r-round); background:#FFF;}
.team-star:nth-of-type(3n){width:2px; height:2px; opacity:.7;}
/* a four-point sparkle, from two thin bars */
.team-spark{position:absolute; display:none; width:11px; height:11px; margin:-5px 0 0 -5px;
  background:linear-gradient(#FFF, #FFF) center / 1.5px 100% no-repeat, linear-gradient(#FFF, #FFF) center / 100% 1.5px no-repeat;
  clip-path:polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);}
.team-side[data-sky="night"] :is(.team-star, .team-spark){display:block;}
.team-cloud{position:absolute; width:64px; height:18px; border-radius:var(--r-pill); background:rgba(255,255,255,.85); scale:var(--s, 1);}
.team-cloud::before{content:''; position:absolute; left:14px; top:-10px; width:28px; height:24px; border-radius:var(--r-round); background:inherit;}
.team-side[data-sky="night"] .team-cloud{display:none;}
.team-birds{position:absolute; top:10%; left:56%; width:40px; fill:none; stroke:var(--near); stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round;}
.team-side:is([data-sky="night"], [data-sky="dusk"]) .team-birds{display:none;}
/* the city along the foot: drawn at the right, its low rows running on to
   the left, so it fills any width */
.team-land{position:absolute; left:0; right:0; bottom:0; width:100%; height:76px; overflow:visible; pointer-events:none;}
.team-far{fill:var(--far);}
.team-near{fill:var(--near);}
.team-wire{fill:none; stroke:var(--near); stroke-width:2.2;}
.team-thin{stroke-width:.8;}
.team-gap{fill:var(--sky);}
.team-clock{fill:color-mix(in srgb, var(--sky) 60%, #FFF);}
.team-water{fill:var(--water);}
.team-ripple{fill:none; stroke:var(--sky); stroke-width:.8; stroke-linecap:round; opacity:.7;}
.team-lit{display:none; fill:var(--boo-star);}
.team-side[data-sky="night"] .team-lit{display:inline;}
.team-side[data-sky="night"] .team-clock{fill:var(--boo-star);}

@media (max-width:760px){
  .team-head{padding-bottom:0;}
  .team-world{grid-template-columns:minmax(0, 1fr); margin-top:var(--sp-11); padding-top:0;}
  .team-world > .team-side:first-of-type{border-radius:var(--r-6) var(--r-6) var(--r-2) var(--r-2);}
  .team-world > .team-side:last-of-type{border-radius:var(--r-2) var(--r-2) var(--r-6) var(--r-6);}
  .team-route, .team-flyer{display:none;}
  .team-side{min-height:200px; padding:var(--sp-7);}
  .team-land{height:56px;}
}

@media (prefers-reduced-motion: no-preference){
  /* the egg floats the route and back: across, and up and down as the
     arc does (sampled, so the two stay together) */
  .team-flyer{animation:team-across 9s ease-in-out infinite alternate, team-arc 9s linear infinite alternate;}
  @keyframes team-across{from{left:25%;} to{left:75%;}}
  @keyframes team-arc{0%{top:60.8px;} 10%{top:56.6px;} 20%{top:44.5px;}
    30%{top:27.7px;} 40%{top:12.6px;} 50%{top:6.4px;}
    60%{top:12.6px;} 70%{top:27.7px;} 80%{top:44.5px;}
    90%{top:56.6px;} 100%{top:60.8px;}}
  .team-sun{animation:team-glow 4s ease-in-out infinite alternate;}
  @keyframes team-glow{to{box-shadow:0 0 0 12px rgba(255,228,92,.2);}}
  .team-star, .team-spark{animation:team-twinkle 3s ease-in-out var(--d, 0s) infinite;}
  @keyframes team-twinkle{50%{opacity:.25; transform:scale(.6);}}
  .team-cloud{animation:team-drift 26s ease-in-out var(--d, 0s) infinite alternate;}
  @keyframes team-drift{to{translate:36px 0;}}
  .team-birds{animation:team-flap 2.4s ease-in-out infinite alternate;}
  @keyframes team-flap{to{translate:10px -3px;}}
  .team-lit rect:nth-child(3n){animation:team-window 7s steps(1) infinite;}
  .team-lit rect:nth-child(5n){animation-delay:-3s;}
  @keyframes team-window{70%{opacity:.25;}}
}

/* ---------- BOO: A STORY, NOT A LIST (boostory.js) ---------------------------
   What Boo does, told as what it does with one student over two months
   (asked for, 5 October), in PICTURES ON A STREAM (6 October, asked for:
   the illustrated chapters, "a stream through the scenes"; every word kept).

     the head      the title on the left, the lede beside it on the right
     the stream    one stream down the band, drawn by boostory.js through
                   the lane of each chapter (.ab-lane) and across between
                   them; Boo rides it in the logo's paper boat
     a chapter     its scene (art/cast/story-*.svg, drawn from the design
                   set by tools/cast/story.mjs) on one bank and its words
                   on the other: its time as the heading, Boo's line, what
                   Boo learns; the banks change sides from one chapter to
                   the next, so the stream winds
     Boo           in the boat, level with the middle of the screen as the
                   band scrolls by; reaching a chapter, its scene plays
                   (the parts arrive: ticks, the lens, the sun, the curve,
                   the cards) and his line types itself in

   The night opens out of Boo as it comes up the screen (kept): a ghost's
   head --dw wide with Boo's eyes on it, widening as --o runs to 1.

   Base state is the finished state: no clip, every scene whole, every line
   whole, Boo in his boat by the last chapter; everything that moves is
   inside `no-preference`. */
.ab{--o:1; --dw:min(520px, 78vw); --boo-w:148px; --boo-h:calc(var(--boo-w) * 140 / 168); --lane:calc(2 * var(--sp-13));
  --scene-h:clamp(250px, 26vw, 340px); --river:color-mix(in srgb, var(--boo-blue) 42%, var(--boo-night));
  --river-top:#2A70A6; --river-bot:#1D5D8F;
  position:relative; isolation:isolate; overflow:clip; padding:var(--sp-13) 0 calc(var(--sp-13) + var(--sp-8));
  background:linear-gradient(180deg, var(--river-top), var(--river-bot)); color:#FFF;}
/* the river, painted (6 October, asked for: "more textured"): a watercolour
   wash over the blue, pigment pooling darker in places, on a paper grain;
   generated noise, no image files (a paler lifted layer went: it took
   small text under 4.5:1) */
.ab::before{content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(60% 18% at 50% 0%, color-mix(in srgb, #FFF 12%, transparent), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.03  0 0 0 0 0.16  0 0 0 0 0.3  0 0 0 -0.9 0.52'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E") 0 0 / 300px 300px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0045' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.04  0 0 0 0 0.20  0 0 0 0 0.38  1.7 0 0 0 -0.66'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E") 0 0 / 1200px 1200px;}
.ab::after{content:''; position:absolute; inset:-10% -5%; z-index:-1; pointer-events:none; filter:blur(48px); opacity:.4;
  background:
    radial-gradient(38% 30% at 20% 18%, color-mix(in srgb, #7DCBE0 50%, transparent), transparent 70%),
    radial-gradient(32% 26% at 82% 40%, color-mix(in srgb, var(--sun) 22%, transparent), transparent 70%);}
.ab :focus-visible{outline-color:#FFF;}
/* Boo's eyes on the dome, while it is still a face (motion only) */
.ab-face{display:none;}

/* ---- the head: the title and the lede, across the band ---- */
.ab-head{display:grid; grid-template-columns:minmax(0, 7fr) minmax(0, 5fr); align-items:end; gap:var(--sp-6) var(--sp-10); padding-top:var(--sp-6);}
.landing .ab-title{margin:0; padding-bottom:var(--sp-2); font-size:var(--ty-story); font-weight:var(--fw-bold); line-height:var(--lh-1);
  letter-spacing:var(--ls-tighter); text-wrap:balance; color:#FFF;
  text-shadow:0 2px 12px rgba(10,38,79,.12);}
.ab-lede{max-width:44ch; margin:0; font-size:var(--ty-7); line-height:var(--lh-5); color:#FFF; text-wrap:pretty;}

/* ---- the stream (boostory.js writes its path): a band of Boo's blue,
   glowing a little, its edge wobbling as the design set's lines do, and two
   currents of light running down it ---- */
.ab-story{position:relative;}
/* not drawn since 6 October (Bo: "the big stream i dont like"); Boo's boat still follows its path */
.ab-stream{visibility:hidden; position:absolute; inset:0; z-index:0; width:100%; height:100%; overflow:visible; pointer-events:none; mask-image:linear-gradient(transparent, #000 90px, #000 calc(100% - 90px), transparent);}
.ab-stream path{fill:none; stroke-linecap:round; stroke-linejoin:round;}
.ab-river{stroke:#BFE2F7; stroke-width:164;
  filter:url(#ab-wobble) drop-shadow(0 0 18px color-mix(in srgb, #FFF 40%, transparent));}
.ab-flow{stroke:color-mix(in srgb, var(--river-top) 55%, transparent); stroke-width:2.5; stroke-dasharray:2 20; transform:translateX(-8px);}
.ab-flow-2{stroke:#FFF; stroke-width:2; stroke-dasharray:12 30; transform:translateX(9px);}

/* ---- the chapters: scene, lane, words; the next one the other way round ---- */
.ab-moments{position:relative; z-index:1; display:flex; flex-direction:column; gap:calc(2 * var(--sp-13) + var(--sp-12)); margin:calc(3 * var(--sp-13)) 0 0; padding:var(--sp-13) 0 var(--sp-6); list-style:none;}
.ab-moment{--tone:var(--boo-sky); display:grid; grid-template-columns:minmax(0, 1.3fr) var(--lane) minmax(0, 1fr);
  grid-template-areas:"scene lane words"; align-items:center; column-gap:var(--sp-6); min-width:0;}
.ab-moment:nth-child(even){grid-template-columns:minmax(0, 1fr) var(--lane) minmax(0, 1.3fr); grid-template-areas:"words lane scene";}
.ab-moment:nth-child(2){--tone:var(--plum-field);}
.ab-moment:nth-child(3){--tone:var(--teal-field);}
.ab-moment:nth-child(4){--tone:var(--rose-field);}
.ab-lane{grid-area:lane; align-self:stretch;}
.ab-words{grid-area:words; min-width:0;}
/* the scene: the drawing on a ground of its chapter's colour */
.ab-stop{grid-area:scene; display:block; height:var(--scene-h); overflow:hidden; border-radius:var(--r-6);
  background:color-mix(in srgb, var(--tone) 32%, #FFF); box-shadow:0 24px 50px -24px rgba(2, 6, 23, .8);}
.ab-stop :is(img, svg){display:block; width:100%; height:100%; object-fit:cover;}
/* its time, the chapter's heading (.landing h3 sets every h3's size, so this
   is scoped to the band to out-rank it) */
.ab .ab-chap{margin:0; font-family:var(--font-head); font-size:var(--ty-section); font-weight:var(--fw-semibold);
  letter-spacing:var(--ls-tighter); line-height:var(--lh-2);}
.ab-when{padding:0; border:0; background:none; font:inherit; letter-spacing:inherit; color:#FFF; text-align:left; cursor:pointer;
  text-decoration:underline 2px transparent; text-underline-offset:6px;}
.ab-when:hover{text-decoration-color:var(--tone);}
/* Boo's line, said: a yellow bubble as in his chat, its tail toward the stream */
.ab-says{--tail:left; position:relative; width:fit-content; max-width:34ch; margin:var(--sp-6) 0 0; padding:var(--sp-6) var(--sp-8);
  border-radius:var(--r-6); background:var(--sun); font-size:var(--ty-8); line-height:var(--lh-4); color:var(--ink); text-wrap:pretty;
  box-shadow:0 10px 24px -14px color-mix(in srgb, #0A264F 60%, transparent);}
.ab-says::before{content:''; position:absolute; top:var(--sp-8); left:-7px; width:16px; height:16px; border-radius:3px; background:inherit; rotate:45deg;}
.ab-moment:nth-child(even) .ab-says{margin-left:auto;}
.ab-moment:nth-child(even) .ab-says::before{left:auto; right:-7px;}
/* while his line types itself, the line is there (for a screen reader) but
   clear, and the typing is drawn over it in the same place */
.ab-type{position:absolute; inset:0; padding:inherit; color:var(--ink);}
.ab-says.is-typing{color:transparent;}
.ab-says.is-typing .ab-type::after{content:''; display:inline-block; width:2px; height:1em; margin-left:var(--sp-1); vertical-align:-.15em; background:var(--ink);}
/* what Boo learns: its label in the chapter's colour */
.ab-knows{max-width:40ch; margin:var(--sp-6) 0 0; font-size:var(--ty-6); line-height:var(--lh-4); color:#FFF;}
.ab-knows b{display:block; margin-bottom:var(--sp-1); font-size:var(--ty-5); font-weight:var(--fw-bold); color:#FFF;}

/* ---- Boo in his boat on the stream (boostory.js sets --bx, --by and the
   tilt --br, and data-placed once he has a place) ---- */
.ab-walker{position:absolute; z-index:2; left:0; top:0; width:var(--boo-w); height:var(--boo-h); pointer-events:none; visibility:hidden;
  transform:translate(var(--bx), var(--by)) rotate(var(--br, 0deg)); transform-origin:50% 80%;}
.ab[data-placed] .ab-walker{visibility:visible;}
.ab-boo{position:absolute; inset:0;}
.ab-boo img{position:absolute; inset:0; width:100%; height:100%; visibility:hidden;}
.ab[data-placed] .ab-boo[data-pose="stand"] .ab-boo-stand, .ab[data-placed] .ab-boo[data-pose="talk"] .ab-boo-talk, .ab[data-placed] .ab-boo[data-pose="wave"] .ab-boo-wave{visibility:visible;}

/* ---- the foot: that it is an example, and the way in (the page's button) ---- */
.ab-foot{position:relative; z-index:1; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--sp-6) var(--sp-10);
  margin-top:var(--sp-12); padding-top:var(--sp-8); border-top:1px solid color-mix(in srgb, #FFF 30%, transparent);}
.ab-note{margin:0; font-size:var(--ty-5); color:#FFF;}
.ab-cta{border-color:#FFF; color:var(--ink); background:#FFF;}
.ab-cta:hover{border-color:var(--boo-blue-tint); background:var(--boo-blue-tint);}

/* told as it scrolls (boostory.js marks is-told): the chapters Boo has not reached wait, dim */
.ab.is-told .ab-moment.is-ahead :is(.ab-stop, .ab-chap, .ab-knows){opacity:.45;}
.ab.is-told .ab-moment.is-ahead .ab-says{opacity:0; scale:.85; translate:0 8px;}

/* ---- narrower: the head stacks; on a phone the stream runs down the left
   and each chapter is its scene over its words beside it ---- */
@media (max-width:900px){
  .ab-head{grid-template-columns:minmax(0, 1fr);}
  .ab{--lane:144px; --boo-w:120px;}
  .ab-river{stroke-width:138;}
}
@media (max-width:760px){
  .ab{--boo-w:60px; --lane:72px;}
  .ab-river{stroke-width:72;}
  .ab-flow{transform:translateX(-4px);}
  .ab-flow-2{transform:translateX(5px);}
  .ab-head{padding-top:var(--sp-4);}
  .ab-moments{gap:calc(var(--sp-13) + var(--sp-12)); margin-top:calc(var(--sp-13) + var(--sp-8)); padding-top:var(--sp-11);}
  .ab-moment, .ab-moment:nth-child(even){grid-template-columns:var(--lane) minmax(0, 1fr); grid-template-areas:"lane scene" "lane words";
    column-gap:var(--sp-4); row-gap:var(--sp-6);}
  .ab-stop{height:auto; aspect-ratio:4 / 3; border-radius:var(--r-5);}
  .ab .ab-chap{font-size:var(--ty-9);}
  .ab-says{font-size:var(--ty-7); padding:var(--sp-5) var(--sp-6);}
  .ab-moment:nth-child(even) .ab-says{margin-left:0; transform-origin:0 50%;}
  .ab-moment:nth-child(even) .ab-says::before{left:-7px; right:auto;}
  .ab-says::before{top:var(--sp-6);}
  .ab-foot{margin-left:calc(var(--lane) + var(--sp-4));}
}

@media (prefers-reduced-motion: no-preference){
  /* The night opens out of Boo: coming up the screen, the band is a
     ghost's head, a dome --dw wide with Boo's eyes on it; as --o runs to 1
     with the scroll the dome widens and its crown flattens into the full
     band, and the eyes go. At --o 1 every term is zero: no clip at all. */
  .ab{--in:calc((1 - var(--o)) * (50% - var(--dw) / 2)); --rd:calc((1 - var(--o)) * var(--dw) / 2);
    clip-path:inset(0 var(--in) 0 var(--in) round var(--rd) var(--rd) 0 0);}
  /* the words wait until Boo's eyes have gone, so nothing shows through
     the face */
  .ab-head, .ab-story{opacity:clamp(0, (var(--o) - .62) * 2.7, 1);}
  .ab-face{position:absolute; top:calc(var(--dw) * .26); left:50%; display:flex; gap:calc(var(--dw) * .12); translate:-50% 0;
    opacity:clamp(0, (.58 - var(--o)) * 3.5, 1); pointer-events:none;}
  .ab-face i{width:calc(var(--dw) * .07); height:calc(var(--dw) * .1); border-radius:var(--r-round); background:#FFF;
    animation:ab-blink 4.2s ease-in-out infinite;}
  @keyframes ab-blink{0%, 90%, 100%{scale:1 1;} 93%{scale:1 .1;}}
  /* the current runs down the stream; the boat bobs on it */
  .ab-flow{animation:ab-current 1.6s linear infinite;}
  .ab-flow-2{animation:ab-current-2 2.6s linear infinite;}
  @keyframes ab-current{to{stroke-dashoffset:-22;}}
  @keyframes ab-current-2{to{stroke-dashoffset:-42;}}
  .ab-boo{animation:ab-bob 2.4s ease-in-out infinite;}
  @keyframes ab-bob{50%{translate:0 -4px; rotate:-2deg;}}
  .ab-moment :is(.ab-stop, .ab-chap, .ab-knows){transition:opacity .5s ease;}
  .ab-says{transform-origin:0 50%; transition:opacity .25s ease, scale .35s cubic-bezier(.3, 1.4, .5, 1), translate .35s cubic-bezier(.3, 1.4, .5, 1);}
  .ab-moment:nth-child(even) .ab-says{transform-origin:100% 50%;}
  .ab-when{transition:text-decoration-color .15s ease;}
  .ab-cta{transition:background-color .15s ease, border-color .15s ease;}

  /* ---- the scenes play: boostory.js puts each scene's drawing in the page
     (svg) waiting, its moving parts not there yet; when Boo reaches it, it
     plays and each part arrives, ending as the drawing is ---- */
  .ab-stop svg.is-waiting .a{opacity:0;}
  .ab-stop svg.is-waiting .draw{stroke-dasharray:1; stroke-dashoffset:1;}
  .ab-stop svg.is-playing .a{transform-box:fill-box; transform-origin:center; animation:var(--k) var(--t, .5s) cubic-bezier(.3, 1.4, .5, 1) var(--d, 0s) both;}
  .ab-stop svg.is-playing .draw{stroke-dasharray:1; animation:ab-draw var(--t, .8s) ease-in-out var(--d, 0s) both;}
  .ab-stop svg .pop{--k:ab-pop;} .ab-stop svg .drop{--k:ab-drop;} .ab-stop svg .slide{--k:ab-slide;} .ab-stop svg .rise{--k:ab-rise;} .ab-stop svg .hop{--k:ab-hop;}
  .ab-stop svg.is-playing .swing{--k:ab-swing; transform-origin:50% 0;}
  @keyframes ab-pop{from{opacity:0; transform:scale(.2);}}
  @keyframes ab-drop{from{opacity:0; transform:translateY(-70px) rotate(-6deg);}}
  @keyframes ab-slide{from{opacity:0; transform:translate(150px, 110px) rotate(10deg);}}
  @keyframes ab-swing{0%{opacity:0; transform:rotate(-34deg);} 60%{opacity:1; transform:rotate(9deg);} 100%{transform:none;}}
  @keyframes ab-rise{from{opacity:0; transform:translateY(46px);}}
  @keyframes ab-hop{0%, 100%{transform:none;} 40%{transform:translateY(-16px);}}
  @keyframes ab-draw{from{stroke-dashoffset:1;} to{stroke-dashoffset:0;}}
  @keyframes ab-wob{0%, 100%{transform:rotate(0);} 25%{transform:rotate(-10deg);} 75%{transform:rotate(10deg);}}
  /* when each part arrives, scene by scene */
  .ab-stop svg .t1{--d:.3s;} .ab-stop svg .l2{--d:.6s; --t:.6s;} .ab-stop svg .t2{--d:1.2s;} .ab-stop svg .p1{--d:1.6s;}
  .ab-stop svg .run{--d:1.8s;} .ab-stop svg .p2{--d:2s;}
  .ab-stop svg .lens{--d:2.5s; --t:.9s; animation-timing-function:cubic-bezier(.2, .8, .3, 1);}
  .ab-stop svg.is-playing .q{transform-box:fill-box; transform-origin:50% 80%; animation:ab-wob .5s ease-in-out 3.5s 2;}
  .ab-stop svg .x1{--d:.4s;} .ab-stop svg .x2{--d:.7s;} .ab-stop svg .sun{--d:1.3s; --t:1s; animation-timing-function:cubic-bezier(.2, .8, .3, 1);}
  .ab-stop svg .tk{--d:2.3s;}
  .ab-stop svg .kid{--d:2.6s; --t:.6s; animation-timing-function:ease-in-out;}
  .ab-stop svg .card{--d:.2s; --t:.9s; animation-timing-function:ease-out;} .ab-stop svg .curve{--d:1.1s; --t:1.1s;}
  .ab-stop svg .axis{--d:2.1s;} .ab-stop svg .vtx{--d:2.4s;}
  .ab-stop svg .cal{--d:.2s; --t:.6s;} .ab-stop svg .c1{--d:.9s; --t:.6s;} .ab-stop svg .c2{--d:1.3s; --t:.6s;} .ab-stop svg .c3{--d:1.7s; --t:.6s;}
}

/* ---------- SMALL SHAPES (asked for, 3 October) ---------------------------------
   "Too many rectangles or squares with curved corners": the SMALL things
   each take a shape that says what they are. Of the shapes written then,
   the one left on the page (5 October) is the search's Try, a tag pointing
   at what it types. A clip-path cuts a focus ring too, so a clipped
   control drops its clip when it has the keyboard's focus. */

/* the search's Try: a tag pointing at what it types */
.hs-try{border-radius:var(--r-1) 0 0 var(--r-1); padding-right:var(--sp-5);
  clip-path:polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%);}


/* ---------- JEGG ON THE FEATURES (landjegg.js) ---------------------------------
   Jegg, the lessons' egg, flat as he is in them (art/cast/, drawn from the
   design set by tools/cast/draw.mjs), and only ever here (asked for, 6
   October: the 3D character, its controls and the Boo/Jegg switch went).
   He stands on the feature shown, over its drawing; his frame's foot is
   his feet. Without the script he stands on the first; the script moves
   him with a transform, and with motion allowed he jumps. Three poses,
   one shown (data-pose). Over the index there is room for him to stand
   (a step of the space scale, his height or more), and on two rows the
   gap between them is that room too. */
.show-head{--jegg-h:64px; position:relative;}
.show-index{padding-top:var(--sp-13);}
.jegg{position:absolute; z-index:2; left:calc(var(--gutter) + 20px - var(--jegg-h) / 2); top:0; width:var(--jegg-h); height:var(--jegg-h);
  pointer-events:none; transform-origin:50% 100%;}
.jegg img{position:absolute; inset:0; width:100%; height:100%; visibility:hidden;}
.jegg[data-pose="stand"] .jegg-stand, .jegg[data-pose="jump"] .jegg-jump, .jegg[data-pose="point"] .jegg-point{visibility:visible;}
/* the button he lands on goes down under him, and comes back */
@media (prefers-reduced-motion: no-preference){
  .show-ent{transition:translate .12s ease;}
  .show-ent.is-landed{translate:0 3px;}
}
@media (max-width:900px){ .show-head{--jegg-h:60px;} }
@media (max-width:720px){
  .show-head{--jegg-h:52px;}
  .show-index{row-gap:var(--sp-13);}
}


/* ---------- the showcase ----------------------------------------------------
   What is inside: four entries, and a rail of slides that goes round, the
   one shown in the middle and its neighbours faded at the sides.

   Cleaner, 5 October (asked for: "the swipe section ... with slightly
   cleaner style and updated screens"; the boxes, pills and solid offsets
   read as made by a machine). The entries are words with their drawings,
   no boxes: the selected one in ink, a line under it that runs with its
   film. Each slide is a soft field of its colour, no edge, no offset, no
   dots, and on it the product itself: a real screen, filmed as it plays,
   white on the field with a hairline; beside it, what it is in one line
   of mono, the sentence, and the way in. (Old Boo in each field's corner
   went on 6 October: Jegg, over the entries, is this section's character.) */

/* The current slide's colours, for the steps. The script copies them from
   the selected entry; these are the first slide's, for before it runs. */
.show{padding-top:var(--sp-11); padding-bottom:var(--sp-13);
  --now:var(--boo-blue-deep); --now-field:var(--boo-blue-field);}

/* ---- the index --------------------------------------------------------
   Four entries in a row, each its drawing on a tile of its field, its
   number and its name, over a hairline. The selected one is in ink and
   semibold, and its line is its accent, running with the film (the
   script sets its width); the others are in ink-soft. State is on three
   channels — the name's colour and weight and the line — so it survives a
   colour-blind reader and a greyscale print. */
.show-head{display:flex; align-items:flex-end; gap:var(--sp-10); margin-bottom:var(--sp-10);}
.show-index{flex:1 1 auto; display:grid; grid-template-columns:repeat(4, minmax(0,1fr));
  gap:var(--sp-8); min-width:0;}
.show-ent{position:relative; display:flex; align-items:center; gap:var(--sp-5); width:100%; min-width:0; text-align:left;
  --ico:40px; padding:0 0 var(--sp-6);
  background:none; border:0; border-radius:0;
  font-family:inherit; color:var(--ink); cursor:pointer;}
.show-ent-ico{flex:0 0 auto; display:block; width:var(--ico); height:var(--ico);
  border-radius:var(--r-3); background:var(--field-ent);}
/* the entry is its drawing and its name: no "01"-style index (the folio
   still counts) */
.show-ent b{display:none;}
.show-ent span{display:block; min-width:0; font-size:var(--ty-7); font-weight:var(--fw-medium);
  letter-spacing:var(--ls-tight); line-height:var(--lh-3); color:var(--ink-soft);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.show-ent:hover span{color:var(--ink);}
.show-ent[aria-selected="true"] span{font-weight:var(--fw-semibold); color:var(--ink);}
/* the hairline under every entry, in a grey that clears 3:1 so the line
   is seen as the entries' edge; and the selected one's line over it,
   heavier (3px), so the state is on its weight as well as its colour */
.show-ent::after{content:''; position:absolute; left:0; right:0; bottom:1px; height:1px;
  background:var(--border-strong);}
.show-ent .run{position:absolute; z-index:1; left:0; right:0; bottom:0; height:3px; border-radius:var(--r-pill);
  background:var(--accent-ent); transform:scaleX(0); transform-origin:left;}
.show-ent[aria-selected="true"] .run{transform:scaleX(1);}
@media (max-width:1100px){
  .show-ent{--ico:36px;}
  .show-index{gap:var(--sp-6);}
}

/* ---- the folio and the two steps -------------------------------------
   Plain: two round steps on a hairline in the current slide's accent, the
   count between them in mono. */
.show-nav{flex:0 0 auto; display:flex; align-items:center; gap:var(--sp-5); padding-bottom:var(--sp-4);}
.show-step{width:44px; height:44px; flex:0 0 auto; display:flex; align-items:center;
  justify-content:center; padding:0; border:0; border-radius:var(--r-3);
  background:none; color:var(--ink); cursor:pointer;}
.show-step:hover{background:var(--now-field);}

/* ---- the track --------------------------------------------------------
   Still a scroll-snap scroller: flick, trackpad and keyboard all work before
   the script does. It runs the width of the WINDOW, not the page's column
   (asked for: the cards either side should show, faded): the slide shown
   sits in the middle, no wider than the page's column and leaving at least
   --side each side, and the slides before and after it show in those
   margins, faded (showcase.js marks them is-away; pressed, one comes to
   the middle). And it goes round (asked for): showcase.js puts two copies
   at each end (.show-clone), and a swipe or a step past an end carries
   on, the track jumping unseen from the copy to the slide itself. */
.show-track{display:flex; gap:var(--show-gap); overflow-x:auto; scroll-snap-type:x mandatory;
  scroll-behavior:smooth; scrollbar-width:none; -ms-overflow-style:none;
  --show-gap:var(--sp-8); --side:clamp(32px, 9vw, 160px);
  --slide:min(1200px - 2 * var(--gutter), 100% - 2 * var(--side));}
.show-track::-webkit-scrollbar{display:none;}
.show-slide, .show-clone{flex:0 0 var(--slide); scroll-snap-align:center; min-width:0;}
/* Room before the first and after the last, so each can come to the middle.
   Margins, not padding on the track: Chrome leaves a flex container's
   trailing padding out of scrollWidth, so the padding form came up short. */
.show-track > :first-child{margin-left:calc((100% - var(--slide)) / 2);}
.show-track > :last-child{margin-right:calc((100% - var(--slide)) / 2);}
.show-slide.is-away, .show-clone.is-away{opacity:.4; cursor:pointer;}
@media (max-width:900px){ .show-track{--show-gap:var(--sp-6);} }
@media (max-width:640px){ .show-track{--show-gap:var(--sp-4);} }

/* ---- the slide --------------------------------------------------------
   Framed as Linear frames its product (6 October, asked for: "less screen
   recordy, more linear style"): the title large on the left, the sentence
   and the way in on the right, and under them the real screen, whole
   (6 October, asked for: "just show the whole screen"; it was cropped and
   ran off the slide's right and foot). No player. */
.show-spread{position:relative; display:flex; flex-direction:column; height:100%; overflow:hidden;
  padding:clamp(28px, 4vw, 52px) clamp(20px, 4vw, 52px);
  border-radius:var(--r-6); background:color-mix(in srgb, var(--field) 55%, #FFF);}
.show-field{order:-1;}
.show-sheet{position:relative; margin:clamp(28px, 3.6vw, 44px) 0 0; min-width:0;}
.show-sheet video{display:block; width:100%; height:auto; border-radius:var(--r-5); background:#FFF;
  box-shadow:0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent), 0 30px 60px -30px color-mix(in srgb, var(--accent) 45%, transparent);}

/* the words, straight on the field. --ink runs 10.59-11.29:1 on these
   fields and --ink-soft 6.21-6.62:1 (more on the lighter field), so a
   whole line can sit on the colour. --muted must NOT: 4.12-4.33:1. */
.show-field{position:relative; display:grid; grid-template-columns:minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows:auto auto 1fr; column-gap:clamp(24px, 5vw, 72px);
  min-width:0; padding-right:clamp(20px, 4vw, 52px);}
.show-field h3{grid-row:1 / span 3; font-family:var(--font-head); font-size:clamp(26px, 3vw, 40px);
  font-weight:var(--fw-semibold); line-height:1.12; letter-spacing:var(--ls-tighter);
  color:var(--ink); margin:0; max-width:15ch;}
:lang(ko) .show-field h3{font-weight:var(--fw-medium);}
.show-field p{grid-column:2; margin:var(--sp-2) 0 0; font-size:var(--ty-7); line-height:var(--lh-4);
  color:var(--ink-soft); max-width:36ch;}
.show-field .btn{grid-column:2; justify-self:start; align-self:start; margin-top:var(--sp-6); position:relative; z-index:1;}
@media (max-width:640px){
  .show-field{grid-template-columns:minmax(0, 1fr);}
  .show-field h3, .show-field p, .show-field .btn{grid-column:1; grid-row:auto;}
  .show-field p{margin-top:var(--sp-5);}
}
/* One intent, colour only, like every other .btn-* — the slide supplies the
   accent. A ghost outline on a field this light would sit near 1.8:1. */
.btn-accent{background:var(--accent); border-color:var(--accent); color:#FFF;}
.btn-accent:hover{filter:brightness(.88);}

@media (prefers-reduced-motion:no-preference){
  .show-slide, .show-clone{transition:opacity .4s ease;}
  .show-ent span{transition:color .15s ease;}
  .show-step{transition:background-color .15s ease, border-color .15s ease, color .15s ease;}
}

/* ---- narrow ------------------------------------------------------------
   The slide stacks, the screen first — the thing itself before the claim
   about it. The steps take their own line under the index; the index
   folds to two columns. */
@media (max-width:900px){
  .show-head{flex-direction:column; align-items:stretch; gap:var(--sp-6); margin-bottom:var(--sp-8);}
  .show-nav{justify-content:space-between; padding-bottom:0;}
  .show-spread{grid-template-columns:1fr; gap:var(--sp-8); padding:var(--sp-6);}
  .show-field{padding:0 var(--sp-2) var(--sp-2);}
  .show-field h3{max-width:none;}
  .show-field p{max-width:none;}
}
@media (max-width:720px){
  /* the second row keeps Jegg's room over it too, or he stands on the first row's words */
  .show-index{grid-template-columns:repeat(2, minmax(0,1fr)); gap:var(--sp-13) var(--sp-6);}
}
@media (max-width:640px){
  .show{padding-top:var(--sp-8); padding-bottom:var(--sp-12);}
  .show-ent span{font-size:var(--ty-6);}
  .show-spread{padding:var(--sp-4); gap:var(--sp-6); border-radius:var(--r-5);}
  .show-sheet video{border-radius:var(--r-3);}
  .show-field{padding:0 var(--sp-3) var(--sp-3);}
  }

/* Korean headings keep their weight and natural phrase breaks throughout the story. */
:lang(ko) .ab-title{font-weight:700; line-height:1.25; letter-spacing:-.035em;}
:lang(ko) .ab-lede{font-size:17px; line-height:1.8; max-width:36ch;}
:lang(ko) .ab .ab-chap{font-weight:650; line-height:1.3;}
:lang(ko) .ab-says{font-weight:500; line-height:1.65; letter-spacing:-.015em;}
:lang(ko) .ab-knows{line-height:1.7;}
:lang(ko) .show-field h3{font-weight:650; line-height:1.35;}
/* The landing bar starts clear on the sky and becomes paper after scrolling. */
.landing .sb:not(.is-floating){background:transparent;}
.landing .sb:not(.is-floating)::before{background:transparent; box-shadow:none;}
/* ---------- the page as screens (6 October, asked for: Kakao's "every
   viewport deserves to look finished") ----------------------------------
   On a screen wide and tall enough, each story section is one screen under
   the bar: the top (its stage peeking), the stage, the showcase, the
   story's title, each of its chapters, the team. No snapping (tried, 6
   October: it felt glitchy, not on purpose); each screen just ends where
   the window does. Each has one thing at its middle; the next never shows
   by accident. Phones
   and short windows keep the page's natural scroll. */
@media (min-width:900px) and (min-height:640px){
  .landing{--screen:calc(100svh - var(--bar-h)); --frame-top:clamp(40px, 7vh, 88px);}

  /* the stage: the pill and its line at the top, the lesson as big as the
     screen allows at its foot, Boo on the stage's edge */
  .hs-stage{min-height:var(--screen); display:flex; flex-direction:column;}
  .hs-screen{margin-top:auto; width:min(var(--stage-w), (var(--screen) - 150px) * 1230 / 600);}

  /* the showcase: one screen; its four entries a pill like the stage's (no
     tab strip), the slide under it, its film as tall as the screen allows */
  .show{height:var(--screen); display:flex; flex-direction:column; padding-top:var(--sp-6); padding-bottom:var(--sp-8);}
  .show-track{flex:1 1 0; min-height:0;}
  .show-head{margin-bottom:var(--sp-6);}
  .show > .wrap, .team > .wrap{width:100%;}
  .show-index{flex:0 0 auto; display:flex; gap:0; padding:5px; margin-left:-5px; border-radius:var(--r-pill);
    background:color-mix(in srgb, var(--ink) 6%, #FFF); box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--ink) 6%, transparent);}
  .show-ent{--ico:26px; width:auto; min-height:40px; padding:0 var(--sp-7) 0 var(--sp-4); border-radius:var(--r-pill); gap:var(--sp-4);}
  .show-ent-ico{border-radius:var(--r-2);}
  .show-ent::after{display:none;}
  .show-ent span{font-size:var(--ty-6); font-weight:var(--fw-medium); color:color-mix(in srgb, var(--ink) 72%, transparent);}
  .show-ent[aria-selected="true"] span{font-weight:var(--fw-bold);}
  .show-ent[aria-selected="true"]{background:var(--ink);}
  .show-ent[aria-selected="true"] span{color:#FFF;}
  .show-ent .run{left:var(--sp-6); right:var(--sp-6); bottom:6px; height:2px; background:var(--sun);}
  .show-nav{display:none;}
  /* the film whole, as big as the slide's room under the words allows */
  .show-field h3{max-width:none;}
  .show-spread{padding-top:clamp(24px, 2.6vw, 36px); padding-bottom:clamp(20px, 2vw, 28px);}
  .show-sheet{flex:1 1 0; min-height:0; margin-top:var(--sp-8); container-type:size; display:flex; justify-content:center;}
  .show-sheet video{width:min(100cqw, 100cqh * var(--ratio, 1440 / 746));}
  .show-sheet video[height="720"]{--ratio:1440 / 720;}
  .show-sheet video[height="886"]{--ratio:1440 / 886;}

  /* the story: its title alone, large, one screen; then each chapter one
     screen, its scene the screen's middle */
  .ab{padding-top:0; padding-bottom:var(--sp-11);}
  .ab-head{min-height:var(--screen); align-content:center; padding-top:0;}
  .landing .ab-title{font-size:clamp(36px, 4.4vw, 60px);}
  .ab-lede{font-size:var(--ty-8);}
  .ab{--scene-h:clamp(300px, var(--screen) * .58, 540px);}
  .ab-moments{gap:var(--sp-12); margin-top:0; padding:0;}
  .ab-moment{min-height:calc(var(--screen) - var(--sp-12)); align-content:center;}

  /* the team: one screen */
  .team{min-height:var(--screen); display:flex; flex-direction:column; justify-content:center;}
}
