/* Lao'dly version B, round 1. Look: 01-product/look.md (one light: teal is the voice, gold is Lao, near-white is English;
   glow belongs to the voice; fine lines; nothing spins). The story is dark; the band, footer and legal pages follow
   the visitor's light or dark setting. Labels are never under 14px; body 16px; resting Lao 22px or more.
   Round 1: one display scale (the shipped Noto Sans Lao Looped is variable, 100 to 900: display sizes use 300),
   a soft reading shade behind every block of words, no snap points, a quieter header. */
@font-face { font-family: "Lao Looped"; src: url("fonts/noto-sans-lao-looped.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #020507; --ink: #f6efe0; --ink-2: #cfc8b9; --ink-3: #a9a397;
  --gold: #e8c565; --gold-2: #f1d38a; --teal: #8ff5d6; --teal-2: #3fd9b0;
  --line: rgba(143, 245, 214, 0.22);
  --font: "Lao Looped", "Noto Sans Lao Looped", "Saysettha OT", "Lao MN", "Lao Sangam MN", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 64px);
  --hdr: 68px;
  --paper: #f6f1e6; --paper-ink: #1b1712; --paper-ink-2: #4a4337; --paper-gold: #7a5200;
  --shade: rgba(2, 5, 7, 0.86);
  color-scheme: dark;
}
html[data-aa="1"] { font-size: 112.5%; }
html[data-aa="2"] { font-size: 125%; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
button, input, select { font: inherit; color: inherit; }
/* snap points are off: they pulled slow scrollers back (round 1 jury). ?snap=1 brings them back for comparison */
html.snap.gl-on { scroll-snap-type: y proximity; }
html.touring { scroll-snap-type: none !important; }
a { color: var(--teal); }
[lang="lo"] { font-family: var(--font); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 60; padding: 10px 16px; background: #0b1c1f; color: var(--ink); border-radius: 999px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
html.no-gl #gl, html:not(.js) #gl { display: none; }
#overlay { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
#leaders { position: absolute; inset: 0; overflow: visible; }
#leaders line, #leaders path { stroke: var(--teal); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
#leaders .gold { stroke: var(--gold-2); }
/* the overture: the dok champa draws itself in one line, large, where the eye goes */
#mark-draw { position: fixed; z-index: 3; width: clamp(240px, 64vmin, 760px); height: clamp(240px, 64vmin, 760px); left: 50%; top: 44%;
  transform: translate(-50%, -50%); pointer-events: none; opacity: 0; overflow: visible; filter: drop-shadow(0 0 10px rgba(255, 214, 140, .7)) drop-shadow(0 0 28px rgba(255, 200, 120, .35)); }
html.early #mark-draw { top: 30%; width: clamp(200px, 44vmin, 480px); height: clamp(200px, 44vmin, 480px); }
#mark-draw path { fill: rgba(255, 248, 230, 0); stroke: #fff6dc; stroke-width: 170; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
/* round 2: before the light can start (a slow phone fetching the code), the flower already draws itself in CSS, so
   nobody waits on plain text; the light picks it up from there */
html.staged:not(.gl-on):not(.no-gl) #mark-draw { top: 30%; width: clamp(200px, 44vmin, 480px); height: clamp(200px, 44vmin, 480px); animation: markin .5s ease-out .1s both; }
html.staged:not(.gl-on):not(.no-gl) #mark-path { animation: markdraw 1.9s cubic-bezier(.45, 0, .2, 1) .15s forwards; }
@keyframes markin { from { opacity: 0; } to { opacity: 1; } }
@keyframes markdraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { html.staged:not(.gl-on) #mark-draw { display: none; } }
html.no-gl #mark-draw, html:not(.js) #mark-draw { display: none; }

/* ---------- header: the brand, the chapter line, four controls ---------- */
header.site { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 18px; height: var(--hdr);
  padding: max(10px, env(safe-area-inset-top)) var(--gutter) 10px; background: linear-gradient(180deg, rgba(2,5,7,.72), rgba(2,5,7,0)); transition: background .3s; }
header.site.solid { background: rgba(2, 5, 7, .9); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgba(143,245,214,.1); }
header.site .rail { transition: opacity .3s; } header.site.solid .rail { opacity: 0; pointer-events: none; }
/* the phone menu over the band: no backdrop filter on its parent while it is open (the band's words ghosted through) */
header.site.menu-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(2, 5, 7); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.125rem; letter-spacing: .05em; flex: none; min-height: 44px; }
.brand img { width: 26px; height: 26px; }
/* the chapter bar (crew round 8, wave 3; owner note 9: "That should be clearly label. Not just some space bars."): every chapter is named, 14 px,
   the current one bright and the others dim (ink-3 on the header's dark: 8:1; the bar has a glass of its own so a bright scene cannot lower it);
   the line under each name is the progress stroke (app.js sets --p, 0 to 1; a transform, never a layout change). Numbers are counted here, so they
   stay 1 to n with or without the two DRAFT chapters. The widths never change when the current one changes (colour only), so nothing shifts. */
.rail { flex: 1 1 auto; display: flex; justify-content: center; align-items: center; min-width: 0; }
.rail-in { display: flex; align-items: stretch; counter-reset: rail; gap: 2px; padding: 0 4px; border-radius: 999px; background: rgba(2, 5, 7, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rail a { counter-increment: rail; position: relative; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 5px; color: var(--ink-3); text-decoration: none; white-space: nowrap; font-size: .875rem; font-weight: 400; letter-spacing: .015em; transition: color .25s; }
.rail a .rn { display: none; font: 400 .875rem/1 var(--mono); color: var(--gold-2); opacity: .7; letter-spacing: 0; }
.rail a .rn::before { content: counter(rail, decimal-leading-zero); }
.rail a::before { content: ""; position: absolute; left: 5px; right: 5px; bottom: 6px; height: 2px; border-radius: 2px; background: rgba(246, 239, 224, .2); transition: background .3s; }
.rail a::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--gold-2); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.rail a.past::before { background: rgba(241, 211, 138, .55); }
.rail a:hover { color: var(--ink); }
.rail a.on { color: var(--ink); }
.rail a.on .rn { opacity: 1; }
.rail a .rs { display: none; }
.rail-now { display: none; }
/* app.js (fitRail) measures the room between the brand and the tools and sets html[data-rail]: full (every name), short ("Interpreter" for
   "Inside the interpreter"), num (the numbers, with the current name beside them) or pill (the phone's pill). Until it has, the bar is not shown:
   the brand and the tools never move for it, so nothing shifts when it appears. */
html:not([data-rail]) .rail { visibility: hidden; }
html[data-rail="pill"] .rail { display: none; }
.tools { margin-left: auto; }   /* (the bar is hidden where it has no room: the tools stay at the right either way) */
html[data-rail="short"] .rail a .rf { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html[data-rail="short"] .rail a .rs { display: inline; }
html[data-rail="num"] .rail a { padding: 0 6px; gap: 0; }
html[data-rail="num"] .rail a::before, html[data-rail="num"] .rail a::after { left: 6px; right: 6px; }
html[data-rail="num"] .rail a .rn { display: inline; }
html[data-rail="num"] .rail a .rl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html[data-rail="num"] .rail a.on .rn { color: var(--ink); }
html[data-rail="num"] .rail-now { display: block; margin: 0 0 0 14px; min-width: 11em; font-size: .875rem; color: var(--ink); letter-spacing: .02em; white-space: nowrap; }
.tools { display: flex; align-items: center; gap: 8px; flex: none; }
.tool { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(246,239,224,.16); background: rgba(8,20,22,.38); color: var(--ink-2); font-weight: 500; font-size: .875rem; line-height: 1; letter-spacing: .02em;
  cursor: pointer; white-space: nowrap; transition: border-color .2s, color .2s, background .2s; }
/* round 3: hover states a visitor can see (round 2's barely changed) */
.tool:hover { border-color: rgba(143,245,214,.6); color: var(--ink); background: rgba(16,44,44,.72); box-shadow: 0 0 0 1px rgba(143,245,214,.18), 0 0 24px rgba(143,245,214,.16); }
.tool[aria-pressed="true"] { color: var(--teal); border-color: rgba(143,245,214,.5); }
.tool.icon { padding: 0; width: 44px; }
.snd svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.snd .spk { fill: currentColor; fill-opacity: .18; }
.snd .w { display: none; } .snd[aria-pressed="true"] .w { display: inline; } .snd[aria-pressed="true"] .x { display: none; }
.snd span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.aa-glyph { font-size: 1rem; letter-spacing: 0; }
.opts-wrap { position: relative; }
.opts { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; padding: 14px; border-radius: 18px; background: rgba(4,14,16,.96); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.opts-h { margin: 0 0 8px; font-size: .875rem; color: var(--ink-3); letter-spacing: .04em; }
.opts .aa { display: flex; border: 1px solid rgba(246,239,224,.16); border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
.aa button { flex: 1; min-height: 44px; min-width: 44px; padding: 0 8px; background: transparent; border: 0; color: var(--ink-3); cursor: pointer; }
.aa button:nth-child(1) { font-size: 14px; } .aa button:nth-child(2) { font-size: 17px; } .aa button:nth-child(3) { font-size: 20px; }
.aa button[aria-pressed="true"] { color: var(--teal); background: rgba(143,245,214,.1); }
.opts .tool { width: 100%; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; color: #1a1406;
  text-decoration: none; font-size: .875rem; font-weight: 600; letter-spacing: .02em; background: linear-gradient(180deg, #f6dc98, #e2bd5c); border: 0;
  box-shadow: 0 0 0 1px rgba(255,236,180,.25), 0 8px 30px rgba(232,197,101,.18); white-space: nowrap; transition: box-shadow .25s, transform .25s; }
.pill:hover { box-shadow: 0 0 0 1px rgba(255,236,180,.7), 0 10px 44px rgba(232,197,101,.5); transform: translateY(-1px); filter: brightness(1.06); }
.pill.big { min-height: 54px; padding: 0 30px; font-size: 1rem; }
.menu-btn { display: none; }
/* the hero's waitlist button shows only where the header's is hidden (phones, and narrow windows) */
.pill.phone-only { display: none; }
.menu { position: absolute; right: var(--gutter); top: calc(100% - 4px); background: rgb(4,14,16); isolation: isolate; border: 1px solid var(--line); border-radius: 18px; padding: 10px 6px; min-width: 220px;
  max-height: calc(100vh - var(--hdr) - 16px); overflow-y: auto; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; color: var(--ink); text-decoration: none; font-size: 1rem; }
.menu a:hover { color: var(--teal); }
.menu .menu-tools, .menu .menu-ch { display: none; }

/* ---------- the story ---------- */
main { position: relative; z-index: 4; pointer-events: none; }
.ch { position: relative; padding: 0 var(--gutter); }
.ch .snap { position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; }
.copy { pointer-events: none; }
.copy > *, .copy .ctas > * { pointer-events: auto; }
.copy .sr-only { pointer-events: none; }
/* staged from the first paint (html.staged is set in the head when the browser has WebGL2): each chapter's words are
   pinned in place and held for the whole chapter (JS sets --o); html.no-gl puts them back in the page's flow */
html.staged:not(.no-gl) .ch .copy { position: fixed; z-index: 5; left: var(--gutter); bottom: max(44px, calc(env(safe-area-inset-bottom) + 30px)); max-width: min(600px, calc(100vw - 2 * var(--gutter)));
  opacity: var(--o, 0); transform: translate3d(0, calc((1 - var(--o, 0)) * 12px + var(--ty, 0px)), 0); }
html.staged:not(.no-gl) .ch .copy > *, html.staged:not(.no-gl) .ch .copy .ctas > * { pointer-events: var(--pe, none); }
html.staged:not(.no-gl) .ch .copy.hero { --o: 1; max-width: min(1080px, calc(100vw - 2 * var(--gutter))); }
/* the reading shade: a soft dark that follows the block of words, never a hard rectangle (look.md); lines of light
   that pass behind the words dim to almost nothing there */
/* round 2: the CSS shade boxes are gone (they sat above the canvas, dimmed the Lao the voice writes, and were a haze in
   a rectangle, which look.md rules out); the scene's own shade darkens the light under each element instead */
html:not(.staged) .ch, html.no-gl .ch { min-height: 100vh; padding-top: 120px; padding-bottom: 40px; }
/* until the script sets each chapter's length, every chapter keeps a screen of height, so the band never shows first */
html.staged:not(.no-gl) .ch { min-height: 100vh; }
/* crew round 8 (craft): the opening is 0.84 of a screen (PACE in app.js), so the river's chapter does not move up into view, as a layout shift, when the script sets the lengths (CLS 0.009 otherwise); keep it equal to PACE's first chapter */
html.staged:not(.no-gl) #ch-one { min-height: 84vh; }
.kicker { margin: 0 0 26px; font-size: .875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); font-weight: 500; }
h1, h2 { margin: 0; font-weight: 300; text-wrap: balance; }
h1 { font-size: min(clamp(2.6rem, 1rem + 6.1vw, 8.25rem), 12vh); line-height: .98; letter-spacing: -.042em; position: relative; }   /* a short window (1280 x 720, 1200 x 630) keeps room above for the Lao word */
h2 { font-size: clamp(2.1rem, 1rem + 3.3vw, 4.6rem); line-height: 1.02; letter-spacing: -.032em; }
h1 .h1-base { display: block; }
/* the headline's light: a warm band crosses the letters once as they arrive (JS moves --lx across the headline) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  /* (crew round 4, performance: the band's room above and below the letters is kept all the time, not only during the
     sweep; adding it with the sweep moved the headline's box twice, the page's only layout shift, CLS 0.002) */
  html.staged:not(.no-gl) h1 .h1-base { padding: .12em 0 .26em; margin: -.12em 0 -.26em; }
  html.staged:not(.no-gl) h1.sweep .h1-base { color: transparent; -webkit-background-clip: text; background-clip: text;
    background-image: linear-gradient(100deg, var(--ink) 0, var(--ink) calc(var(--lx, -999px) - 150px), #ffe2a0 calc(var(--lx, -999px) - 30px), #fff6dc var(--lx, -999px), #ffe2a0 calc(var(--lx, -999px) + 30px), var(--ink) calc(var(--lx, -999px) + 150px), var(--ink) 100%); }
}
.lede { margin: 22px 0 0; font-size: clamp(1.0625rem, .95rem + .35vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); max-width: 40ch; text-wrap: pretty; }
.hero .h1-sub { margin: .7em 0 0; font-size: clamp(.9375rem, .88rem + .25vw, 1.0625rem); line-height: 1.4; color: var(--ink-2); letter-spacing: .01em; }
.hero .lede { font-size: clamp(1.125rem, 1rem + .45vw, 1.4375rem); max-width: 38ch; margin-top: calc(12px + 2.4vw); }
/* round 9, fix 3 (the headline is visibly in on load): the hero's words arrive from the first paint, in CSS alone, with no wait
   on the script, the flower or the light. The headline's entrance is a rise (transform) and no fade at all (a headline that fades on the
   compositor is not counted as painted until a later repaint: the browser's LCP read 3.2 s at 1440 for a headline that was in
   at 0.3 s); the lines below it rise and fade in briefly, one after the other. It runs while the flower draws, so the words are
   in at about 0.3 s at 1440 and as soon as the font is there on a slow phone. The headline and the lede use a face that is HIDDEN until its font has arrived (font-display: block, the same
   file the page already preloads), so no frame shows them in a fallback face that then jumps: the browser counts them only when
   they are really readable. Nothing starts at a token opacity; the words are either not drawn or drawn in. */
@font-face { font-family: "Lao Looped Hero"; src: url("fonts/noto-sans-lao-looped.woff2") format("woff2"); font-weight: 100 900; font-display: block; }
html.staged:not(.no-gl) .hero h1, html.staged:not(.no-gl) .hero .lede { font-family: "Lao Looped Hero", var(--font); }   /* (the plain page, no-gl, keeps the swap: its words are drawn at first paint) */
html.staged:not(.no-gl) .hero > :nth-child(-n+4) { animation: hero-arrive .62s cubic-bezier(.2,.7,.2,1) both; }
html.staged:not(.no-gl) .hero > :nth-child(1) { animation: hero-rise .7s cubic-bezier(.2,.7,.2,1) both; } html.staged:not(.no-gl) .hero > :nth-child(2) { animation-delay: .2s; }
html.staged:not(.no-gl) .hero > :nth-child(3) { animation-delay: .3s; } html.staged:not(.no-gl) .hero > :nth-child(4) { animation-delay: .4s; }
@keyframes hero-rise { from { transform: translate3d(0, 26px, 0); } to { transform: none; } }
@keyframes hero-arrive { 0% { opacity: 0; transform: translate3d(0, 26px, 0); } 45% { opacity: 1; } 100% { opacity: 1; transform: none; } }
/* the quiet line under the hero (not words to read, so it keeps its own timing) waits for the script's hero-in, shows anyway after 3 s */
html.staged:not(.no-gl) .hero > :nth-child(5) { transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1); }
html.staged:not(.no-gl):not(.hero-in) .hero > :nth-child(5) { opacity: 0; transform: translate3d(0, 22px, 0); animation: failsafe .01s 3s forwards; }
@keyframes failsafe { to { opacity: 1; transform: none; } }
html.demo .hero > * { animation: none !important; }   /* the stepped-clock recorder: its clock is not the CSS clock (the recorder's frames show the words in from the first one) */
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.ctas.center { justify-content: center; }
.hear { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 20px 0 6px; border-radius: 999px; border: 1px solid rgba(143,245,214,.34);
  background: rgba(6,22,24,.5); color: var(--ink); font-weight: 500; font-size: .9375rem; line-height: 1; letter-spacing: .02em; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .2s, background .2s; }
.hear:hover { border-color: rgba(143,245,214,.95); background: rgba(14,48,48,.78); box-shadow: 0 0 0 1px rgba(143,245,214,.25), 0 0 30px rgba(143,245,214,.22); }
.hear .ic { transition: background .2s, transform .2s; } .hear:hover .ic { background: rgba(143,245,214,.3); transform: scale(1.06); }
.hear .ic { width: 36px; height: 36px; border-radius: 50%; background: rgba(143,245,214,.14); border: 1px solid rgba(143,245,214,.45); position: relative; flex: none; }
.hear .ic::after { content: ""; position: absolute; left: 14px; top: 11px; border-left: 10px solid var(--teal); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.hear [lang="lo"] { color: var(--gold-2); font-size: 1.125rem; }
.hear.ghost { padding: 0 22px; }
.copy .hear { margin-top: 26px; }
.copy .ctas .hear { margin-top: 0; }
.live { margin: 26px 0 0; font-size: .875rem; line-height: 1.4; letter-spacing: .04em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.live b { font: 400 .875rem/1 var(--mono); color: var(--gold-2); }
.live i { font-style: normal; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-right: 10px; vertical-align: 1px; box-shadow: 0 0 10px var(--teal); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.note { margin: 16px 0 0; font-size: .875rem; color: var(--ink-3); letter-spacing: .02em; }
.status { margin: 16px 0 0; font-size: .875rem; color: var(--teal); letter-spacing: .06em; min-height: 1.4em; text-transform: uppercase; font-weight: 500; }
.status:not(:empty)::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 10px; vertical-align: 1px; box-shadow: 0 0 10px currentColor; }
.hint { margin: 14px 0 0; font-size: .9375rem; color: var(--ink-3); }
.enote { display: none; }
.nogl-line, .nogl-gloss, .nogl-note { display: none; }
.band .nogl-note { grid-column: 1 / -1; margin-top: 24px; }   /* round 2: it sat in one of the band's twelve columns, a word to a line */
html.no-gl .rail, html.no-gl .chap-pill, html.no-gl .hero-play, html.no-gl .cue, html.no-gl #tour, html.no-gl [data-proxy="tour"] { display: none; }
html.no-gl .nogl-line { display: block; font-size: 2.6rem; color: var(--gold-2); margin: 24px 0 0; }
html.no-gl .nogl-gloss, html.no-gl .nogl-note { display: block; color: var(--ink-2); }
html.no-gl .ch .sr-only, html:not(.js) .ch .sr-only { position: static !important; width: auto; height: auto; clip: auto; clip-path: none; white-space: normal; color: var(--ink-2); max-width: 60ch; margin-top: 18px; }
html.no-gl .ch [lang="lo"], html:not(.js) .ch [lang="lo"] { color: var(--gold-2); font-size: 1.375rem; }

/* the table's seam: the light itself is the control; the range stays for keyboards and screen readers */
.seam-ctl { margin-top: 22px; display: flex; align-items: center; gap: 14px; }
.seam-label { font-size: .875rem; color: var(--gold-2); letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.seam-label::before { content: "⟷"; margin-right: 10px; letter-spacing: 0; }
html.gl-on .seam-ctl input { position: absolute; width: 1px; height: 1px; opacity: 0; }
html.gl-on .seam-ctl input:focus-visible { position: static; width: 180px; height: 44px; opacity: 1; }
.seam-ctl input { width: 180px; height: 44px; accent-color: #e8c565; }
.seam-handle { position: fixed; z-index: 5; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(241,211,138,.7); background: rgba(40,30,8,.55);
  box-shadow: 0 0 24px rgba(241,211,138,.35); touch-action: none; cursor: ew-resize; display: none; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.seam-handle::before, .seam-handle::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; transform: translateY(-50%); }
.seam-handle::before { left: 12px; border-right: 8px solid var(--gold-2); } .seam-handle::after { right: 12px; border-left: 8px solid var(--gold-2); }
.seam-handle.v { cursor: ns-resize; } .seam-handle.v::before, .seam-handle.v::after { left: 50%; top: auto; border: 6px solid transparent; transform: translateX(-50%); }
.seam-handle.v::before { top: 8px; border-bottom: 8px solid var(--gold-2); border-top: 0; } .seam-handle.v::after { bottom: 8px; border-top: 8px solid var(--gold-2); border-bottom: 0; right: auto; }

/* ---------- your turn: the app's voice screen on the night planet ---------- */
/* the voice screen fills the space under the header and centres in it; if it is taller (the largest text), it starts
   at the top instead of under the header */
html.staged:not(.no-gl) .ch .copy.you-a { left: 50%; right: auto; top: var(--hdr); bottom: 0; transform: translate3d(-50%, calc((1 - var(--o, 0)) * 12px), 0); max-width: min(820px, calc(100vw - 2 * var(--gutter))); width: 100%; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; justify-content: safe center; padding: 22px 0 14px; }

/* round 2: the climax at full size (it was a panel of 14 px chips and a 60 px button) */
.you-a h2 { font-size: clamp(2.4rem, 1rem + 3.2vw, 4.75rem); line-height: 1.08; }
.voice { margin: 26px auto 0; display: flex; flex-direction: column; align-items: center; }
.say { margin: 0; font-size: .9375rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); font-weight: 500; }
.phrase { margin: 8px 0 0; font-size: clamp(1.75rem, 1rem + 1.4vw, 2.75rem); font-weight: 300; color: var(--ink); min-height: 1.3em; line-height: 1.2; }
.phrase.lo { color: var(--gold-2); font-size: clamp(3.25rem, 4vw, 4.75rem); font-weight: 500; min-height: 1.55em; line-height: 1.55; opacity: 0; transition: opacity .25s; margin-top: 0; }
.phrase.lo.on { opacity: 1; }
.voice.swapped .phrase.lo { order: -1; }
.orb-slot { width: clamp(220px, 20vw, 320px); height: clamp(150px, 19vh, 220px); }
.mic { position: relative; width: 112px; height: 112px; border-radius: 50%; border: 1px solid rgba(241,211,138,.45); background: radial-gradient(circle at 50% 40%, rgba(30,60,50,.6), rgba(6,20,18,.5)); cursor: pointer;
  touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; margin-top: 4px; box-shadow: 0 0 30px rgba(143,245,214,.12); transition: box-shadow .25s, border-color .25s; }
.mic:hover { box-shadow: 0 0 40px rgba(143,245,214,.25); }
.mic::before { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 24px; border-radius: 8px; border: 2px solid var(--ink); transform: translate(-50%, -64%); }
.mic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 12px; border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 12px 12px; transform: translate(-50%, 10%); }
.mic.held { border-color: var(--gold-2); background: rgba(60,44,10,.5); box-shadow: 0 0 50px rgba(241,211,138,.4); }
.mic::before { width: 18px; height: 30px; border-radius: 10px; }
.mic::after { width: 28px; height: 15px; border-radius: 0 0 15px 15px; }
.mic-state { margin: 12px 0 0; min-height: 1.5em; font-size: 1.0625rem; color: var(--ink-2); font-weight: 400; white-space: nowrap; }
.mic-state.live { color: var(--gold-2); }
.preview { margin: 10px 0 0; font-size: .9375rem; color: var(--ink-3); max-width: 44ch; }
.voice-tools { margin-top: 14px; display: flex; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(246,239,224,.16); background: rgba(8,20,22,.42); color: var(--ink-2); font-weight: 500; font-size: 1rem; line-height: 1; cursor: pointer; white-space: nowrap; transition: border-color .2s, color .2s; }
.chip:hover { border-color: rgba(143,245,214,.6); color: var(--ink); background: rgba(16,44,44,.7); }
.chip[aria-pressed="true"] { color: var(--teal); border-color: rgba(143,245,214,.55); background: rgba(143,245,214,.08); }
.chip.lo { font-size: 1.0625rem; color: var(--gold-2); }
.phrases { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 720px; }
.you-line { margin: 18px auto 0; font-size: 1rem; color: var(--ink-2); max-width: 46ch; }
.you-line b { color: var(--ink); font-weight: 500; }
html.staged:not(.no-gl) .ch .copy.you-b { left: 50%; right: auto; top: 50%; bottom: auto; transform: translate3d(-50%, -50%, 0); text-align: center; max-width: min(720px, calc(100vw - 2 * var(--gutter))); width: 100%; }
.finale .mark { width: clamp(200px, 30vmin, 360px); height: auto; aspect-ratio: 1; opacity: var(--mk, 0); filter: drop-shadow(0 0 30px rgba(255,220,150,.35)); }
.wordmark { margin: 18px 0 0; font-size: clamp(3.25rem, 1rem + 5vw, 6.75rem); font-weight: 400; letter-spacing: .04em; line-height: 1.05; }
.role { margin: 28px 0 0; font-size: 1.625rem; color: #fff8ee; line-height: 1.6; }
.tagline { margin: 22px 0 0; font-size: 1.1875rem; color: var(--ink-2); font-weight: 300; }
.tagline.lo { margin-top: 4px; color: var(--gold-2); font-size: 1.5rem; font-weight: 400; line-height: 1.6; }
.soon { margin: 24px 0 0; font-size: 1.0625rem; letter-spacing: .01em; color: var(--teal); font-weight: 400; }

/* ---------- overlay: tags, crisp lines, callouts (an editorial caption style, not a debug overlay) ----------
   round 2: light text shadows only (the scene's own shade darkens the light under each line and label); the round-1
   shadows of up to 48 px were rastered again on every fade and caused the 50-80 ms frames in the chamber */
.tag { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: clamp(.9375rem, .8rem + .3vw, 1.125rem); line-height: 1.25; font-weight: 400; letter-spacing: .02em; color: var(--ink-2);
  transform: translate3d(-9999px, 0, 0); opacity: 0; transition: opacity .18s; text-shadow: 0 0 5px rgba(2,5,7,.95); will-change: opacity, transform; }
.tag.on { opacity: 1; transition-duration: .3s; }
.tag b { font-weight: 500; color: var(--ink); letter-spacing: .04em; }
.tag i { font: 400 .8125rem/1 var(--mono); color: var(--ink-3); margin-left: 4px; font-style: normal; font-variant-numeric: tabular-nums; }
.tag.gold b { color: var(--gold-2); }
.tag.teal b { color: var(--teal); }
.tag.dot::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 8px; vertical-align: 2px; }
.tag.gold.dot::before { background: var(--gold-2); } .tag.teal.dot::before { background: var(--teal); }
.ln { position: absolute; left: 0; top: 0; white-space: nowrap; transform: translate3d(-9999px, 0, 0); opacity: 0; color: var(--ink); will-change: opacity, transform; }
.ln.lo { color: #ffe7a3; font-weight: 500; text-shadow: 0 0 8px rgba(2,5,7,.55); }   /* round 2: the same weight as its light field (500), so the two line up; the dark halo is lighter (it read as a drop shadow) */
.ln.en { font-weight: 300; text-shadow: 0 0 7px rgba(2,5,7,.9); }
.ln .tok { position: relative; }
.ln .tok.u { text-decoration: underline; text-decoration-color: rgba(143,245,214,.9); text-decoration-thickness: 1px; text-underline-offset: .3em; }
.ln .tok.ug { text-decoration: underline; text-decoration-color: rgba(241,211,138,.95); text-decoration-thickness: 1px; text-underline-offset: .3em; }
.co { position: absolute; left: 0; top: 0; transform: translate3d(-9999px, 0, 0); opacity: 0; font-size: clamp(1rem, .85rem + .3vw, 1.1875rem); line-height: 1.45; font-weight: 400; color: var(--ink-2); letter-spacing: .01em;
  white-space: normal; width: max-content; max-width: min(420px, 30vw); padding: 2px 0; text-shadow: 0 0 5px rgba(2,5,7,.95); pointer-events: none; transition: opacity .18s; will-change: opacity, transform; }
.co .k { color: var(--teal); font-weight: 500; }
.co.gold .k { color: var(--gold-2); }
.co .v { color: var(--ink-2); }
/* numbered rules: the number hangs, the text wraps under itself (round 1 wrapped back to the margin) */
.co.num { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; }
.co.num .n { margin-right: 0; }
/* the same numbers, inline in the English after the words each rule acted on (they used to sit in the gap between
   rows and cut into the line above) */
/* round 3: the marks are always there, dim, and light up as each rule is explained (round 2 kept them invisible until
   then, so the line read 'Go straight  , along', with holes before its commas) */
.ln .fn { display: inline-flex; align-items: center; justify-content: center; width: 1.05em; height: 1.05em; margin: 0 .1em 0 .22em; border-radius: 50%;
  border: 1px solid var(--teal); color: var(--teal); font: 400 .58em/1 var(--mono); vertical-align: .38em; opacity: .4; transition: opacity .25s, box-shadow .25s; text-shadow: none; }
.ln .fn.on { box-shadow: 0 0 10px rgba(143,245,214,.45); }
.ln .fn.gold { border-color: var(--gold-2); color: var(--gold-2); }
.ln .nw { white-space: nowrap; }
.ln .fn.on { opacity: 1; }
.co .num { font-family: var(--mono); font-size: .875rem; font-variant-numeric: tabular-nums; }
.co .n { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; border: 1px solid currentColor; font: 400 .875rem/1 var(--mono); color: var(--teal); vertical-align: 1px; }
.co.gold .n { color: var(--gold-2); }
.co.on { opacity: 1; transition-duration: .3s; }
.co.wide { white-space: normal; width: 380px; max-width: calc(100vw - 32px); }
.co a { pointer-events: auto; }
/* a numbered marker over a word the rule acted on (instead of a leader line across the Lao) */
.mk { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--teal); color: var(--teal); background: rgba(2,5,7,.75);
  font: 400 .875rem/20px var(--mono); text-align: center; transform: translate3d(-9999px, 0, 0); opacity: 0; transition: opacity .2s; }
.mk.gold { border-color: var(--gold-2); color: var(--gold-2); }
.mk.on { opacity: 1; }
.hover-tip { position: absolute; z-index: 3; left: 0; top: 0; padding: 10px 14px; border-radius: 14px; background: rgb(5,16,18); border: 1px solid rgba(143,245,214,.35); font-size: .9375rem; color: var(--ink);
  max-width: 340px; white-space: normal; transform: translate3d(-9999px, 0, 0); pointer-events: none; box-shadow: 0 10px 40px rgba(0,0,0,.6), 0 0 0 4px rgba(2,5,7,.6); }
.hover-tip [lang="lo"] { color: #ffe7a3; font-size: 1.25rem; }
.hover-tip small { display: block; font-size: .875rem; color: var(--ink-3); margin-top: 2px; }
.reading-band { display: none; }

/* ---------- the band below the story (light and dark): one column edge, one grid ---------- */
.band { position: relative; z-index: 6; background: var(--bg); padding: clamp(80px, 10vw, 140px) var(--gutter) 40px; }
.band::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 26vh; pointer-events: none; background: linear-gradient(180deg, rgba(2,5,7,0), rgba(2,5,7,.55) 45%, var(--bg)); }
.band-in { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
.band .lead { grid-column: 1 / span 7; margin: 0 0 64px; }
.band .wait { grid-column: 8 / span 5; margin: 0 0 64px; padding: 28px; border-radius: 22px; border: 1px solid rgba(241,211,138,.32); background: linear-gradient(160deg, rgba(241,211,138,.08), rgba(241,211,138,.02)); align-self: start; }
.band .cols { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 40px; border-top: 1px solid var(--line); }
.band h2 { font-size: 1.125rem; font-weight: 500; margin: 0 0 12px; letter-spacing: .01em; }
.band .wait h2 { font-size: 1.75rem; font-weight: 300; letter-spacing: -.01em; }
.band p { margin: 0 0 12px; color: var(--ink-2); max-width: 62ch; }
.band p.big { font-size: clamp(1.75rem, 1rem + 2vw, 2.75rem); line-height: 1.18; font-weight: 300; letter-spacing: -.02em; color: var(--ink); max-width: 22ch; }
.band .muted { color: var(--ink-3); font-size: .9375rem; }
#waitlist { scroll-margin-top: calc(var(--hdr) + 24px); }
a.btn, .band a.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: linear-gradient(180deg, #f6dc98, #e2bd5c); color: #1a1406; font-weight: 600; text-decoration: none; margin: 6px 0 8px; }
footer.site { position: relative; z-index: 6; background: var(--bg); padding: 0 var(--gutter) 60px; color: var(--ink-3); font-size: .9375rem; }
footer.site .foot-in { max-width: 1160px; margin: 0 auto; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; align-items: center; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer.site a { color: var(--ink-2); display: inline-flex; min-height: 44px; align-items: center; }
footer.site p { margin: 0; }
/* round 3: links inside sentences are 44 px tall to a finger (round 2's were 24-26 px on a 390 phone) */
.band p a:not(.btn), footer.site p a { display: inline-block; padding: 11px 0; margin: -11px 0; }
.band a:not(.btn):hover, footer.site a:hover { text-decoration-thickness: 2px; color: var(--ink); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .band, :root:not([data-theme="dark"]) footer.site { background: var(--paper); color: var(--paper-ink); border-top-color: rgba(0,0,0,.08); }
  /* light: the night opens into paper like a dawn, a long gradient, never a straight edge through the flower */
  :root:not([data-theme="dark"]) .band::before { height: 34vh; background: linear-gradient(180deg, rgba(246,241,230,0), rgba(120,112,96,.18) 35%, rgba(222,214,198,.75) 72%, var(--paper)); }
  :root:not([data-theme="dark"]) .band p { color: var(--paper-ink-2); }
  :root:not([data-theme="dark"]) .band p.big, :root:not([data-theme="dark"]) .band h2 { color: var(--paper-ink); }
  :root:not([data-theme="dark"]) .band a:not(.btn), :root:not([data-theme="dark"]) footer.site a { color: #0d5a49; }
  :root:not([data-theme="dark"]) .band .wait { border-color: rgba(122,82,0,.3); background: linear-gradient(160deg, rgba(122,82,0,.07), rgba(122,82,0,.02)); }
  :root:not([data-theme="dark"]) .band .cols, :root:not([data-theme="dark"]) footer.site .foot-in { border-top-color: rgba(27,23,18,.12); }
  :root:not([data-theme="dark"]) .band .muted, :root:not([data-theme="dark"]) footer.site { color: #5d564a; }
  :root:not([data-theme="dark"]) .band a.btn { background: #1b1712; color: #f6f1e6; }
}

/* ---------- phones (narrow and upright; a phone held sideways is 'compact', below) ---------- */
@media (max-width: 760px) and (orientation: portrait), (max-width: 760px) and (min-height: 501px) {
  .pill.phone-only { display: inline-flex; }
  :root { --gutter: 16px; --hdr: 60px; }
  header.site { gap: 10px; padding-left: 16px; padding-right: 12px; }
  .rail { display: none; }
  .tools #tour, .tools .opts-wrap, .tools > .pill { display: none; }
  .tools { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .menu .menu-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
  .menu .menu-tools .aa { display: flex; width: 100%; border: 1px solid rgba(246,239,224,.16); border-radius: 999px; overflow: hidden; }
  .menu .menu-ch { display: block; border-bottom: 1px solid var(--line); margin-bottom: 6px; padding-bottom: 6px; }
  .menu .menu-ch a.on { color: var(--gold-2); }
  .menu { right: 12px; left: 12px; }
  html.staged:not(.no-gl) .ch .copy { left: 16px; right: 16px; max-width: none; bottom: max(26px, calc(env(safe-area-inset-bottom) + 18px)); }
  h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); line-height: 1; letter-spacing: -.035em; }
  h2 { font-size: clamp(1.95rem, 8.6vw, 2.6rem); line-height: 1.04; }
  .kicker { margin-bottom: 18px; }
  .lede, .hero .lede { font-size: 1.0625rem; margin-top: 16px; }
  .ctas { margin-top: 22px; gap: 10px; }
  .live { margin-top: 16px; }
  html.staged:not(.no-gl) .ch .copy.you-a { left: 16px; right: 16px; transform: translate3d(0, calc((1 - var(--o, 0)) * 12px), 0); width: auto; max-width: none; }
  html.staged:not(.no-gl) .ch .copy.you-b { left: 16px; right: 16px; transform: translate3d(0, -50%, 0); width: auto; max-width: none; }
  .orb-slot { width: 200px; height: 100px; }
  .phrase { font-size: 1.5rem; }
  .phrase.lo { font-size: 2.25rem; }
  .mic { width: 88px; height: 88px; }
  .mic-state { margin-top: 8px; font-size: 1rem; }
  .preview { margin-top: 6px; font-size: .875rem; }
  .chip { font-size: .9375rem; }
  /* the eight phrases scroll sideways in one row, so the voice screen fits a phone at every text size */
  .phrases { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; max-width: calc(100vw - 32px); padding: 2px 8px 6px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
  .phrases::-webkit-scrollbar { display: none; }
  .phrases .chip { flex: none; }
  html.gl-on .enote { display: block; margin: 8px 0 0; min-height: 2.9em; font-size: 1rem; line-height: 1.45; color: var(--ink-2); }
  .enote .k { color: var(--teal); font-weight: 500; } .enote.gold .k { color: var(--gold-2); } .enote .num { font-family: var(--mono); font-size: .9375rem; }
  .enote.num { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; }
  .enote .n { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--teal); font: 400 .875rem/1 var(--mono); color: var(--teal); }
  .enote.gold .n { color: var(--gold-2); border-color: var(--gold-2); }
  .band-in { display: block; }
  .band .lead, .band .wait { margin-bottom: 40px; }
  .band .wait { padding: 22px; }
  .band .cols { grid-template-columns: 1fr; gap: 0; padding-top: 28px; }
  .co { max-width: calc(100vw - 32px); }
  .co.wide { width: calc(100vw - 32px); }
}
/* the voice screen on a short desktop window (1440 x 900, 1366 x 768, 1280 x 720): it is fixed and cannot scroll, so it
   tightens, the city line steps out first (the visitor's light still shows on the planet), and the preview line always
   shows (a truth condition) */
@media (min-width: 761px) and (max-height: 1000px) { .orb-slot { height: clamp(104px, 15vh, 150px); } .you-line { display: none; } .phrase.lo { line-height: 1.4; } .voice { margin-top: 18px; } }
@media (min-width: 761px) and (max-height: 820px) { .you-a h2 { font-size: 3rem; } .phrase { font-size: 1.75rem; } .phrase.lo { font-size: 3rem; } .mic { width: 88px; height: 88px; } .mic-state { margin-top: 8px; }
  .orb-slot { height: 96px; } .voice-tools { margin-top: 10px; }
  .phrases { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; max-width: min(720px, calc(100vw - 32px)); padding: 2px 8px 6px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
  .phrases .chip { flex: none; } }
@media (min-width: 761px) and (max-height: 760px) { .you-a h2 { font-size: 2.6rem; } .say { font-size: .875rem; } .phrase { font-size: 1.5rem; margin-top: 10px; } .phrase.lo { font-size: 2.6rem; } .orb-slot { height: 80px; } .mic { width: 80px; height: 80px; } .preview { margin-top: 6px; } .voice { margin-top: 16px; } .chip { min-height: 42px; } }
html[data-aa="1"] .you-line, html[data-aa="2"] .you-line { display: none; }
@media (min-width: 761px) and (max-height: 1000px) { html[data-aa="2"] .orb-slot, html[data-aa="1"] .orb-slot { height: 84px; } html[data-aa="2"] .you-a h2 { font-size: 2.4rem; } html[data-aa="2"] .phrase.lo { font-size: 2.4rem; } html[data-aa="2"] .mic { width: 80px; height: 80px; }
  html[data-aa="2"] .phrases { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; max-width: min(720px, calc(100vw - 32px)); padding: 2px 8px 6px; scrollbar-width: none; } html[data-aa="2"] .phrases .chip { flex: none; } }
/* a short phone (390 x 664, an in-app browser): the preview line always shows (it is a truth condition); the
   visitor's city line steps out instead (their light still shows on the planet) */
@media (max-width: 760px) and (max-height: 720px) and (orientation: portrait) { .you-line { display: none; } .orb-slot { height: 56px; } .you-a h2 { font-size: 2rem; } .voice { margin-top: 8px; } .phrase.lo { font-size: 1.875rem; } .mic { width: 76px; height: 76px; } .voice-tools { margin-top: 8px; } }
@media (prefers-reduced-motion: reduce) { .tag, .co, .mk, .fn, .phrase.lo, .hero > * { transition: none !important; } html.staged:not(.no-gl) .hero > :nth-child(n) { animation: none; } .live i { animation: none; } }

/* ---------- round 3: one full-bleed type moment. The river line (the owner's words, unchanged) is set across the
   page in two lines, the river itself in gold, instead of the same block every chapter uses ---------- */
#h-river .l1, #h-river .l2 { display: block; }
#h-river .l2 { color: var(--gold-2); }
@media (min-width: 761px) and (min-height: 501px) {
  html.staged:not(.no-gl) #ch-river .copy { max-width: calc(100vw - 2 * var(--gutter)); }
  #h-river { font-size: min(clamp(2.8rem, .6rem + 4.9vw, 7.25rem), calc((100vw - 2 * var(--gutter)) / 16.4), 11.5vh); line-height: .98; letter-spacing: -.045em; text-wrap: nowrap;
    margin: .4em 0 .44em; }   /* (the Lao font's tall line boxes reach past a .98 line: room above and below, so nothing touches them) */
  #ch-river .kicker { margin-bottom: 0; }
  #ch-river .lede { max-width: 46ch; }
}
/* ---------- round 3: narrow desktop windows (761 to 1100 wide): the chapter's name, Play the story and Aa move into
   the menu (round 2 printed the chapter line through the wordmark below about 1040 px) ---------- */
@media (min-width: 761px) and (max-width: 900px) { .tools > .pill { display: none; } }
@media (min-width: 761px) and (max-width: 900px) and (min-height: 501px) { .pill.phone-only { display: inline-flex; } }

/* ---------- round 3: compact, a phone held sideways or any short, wide window (500 px tall or less). Round 2 had no
   layout for it: at 844 x 390 words sat on words in 21 places. The words take a left column, the scene and its lines
   the right column (app.js colX0 uses the same widths), the header is 52 px and its tools are in the menu. ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --hdr: 52px; --gutter: max(20px, env(safe-area-inset-left)); }
  header.site { gap: 10px; padding: max(4px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 4px var(--gutter); }   /* (crew round 4: the wordmark on the words' edge, 20 px; it was 16) */
  .rail, .tools #tour, .tools .opts-wrap { display: none; }
  .tools { margin-left: auto; }
  .tools > .pill { display: inline-flex; }
  .pill.phone-only { display: none; }
  .menu-btn { display: inline-flex; }
  .menu { left: auto; right: max(12px, env(safe-area-inset-right)); width: min(320px, calc(100vw - 24px)); max-height: calc(100vh - var(--hdr) - 12px); }
  .menu .menu-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
  .menu .menu-tools .aa { display: flex; width: 100%; border: 1px solid rgba(246,239,224,.16); border-radius: 999px; overflow: hidden; }
  .menu .menu-ch { display: block; border-bottom: 1px solid var(--line); margin-bottom: 6px; padding-bottom: 6px; }
  .menu .menu-ch a.on { color: var(--gold-2); }
  html.staged:not(.no-gl) .ch .copy, html.staged:not(.no-gl) .ch .copy.hero { left: var(--gutter); right: auto; bottom: max(12px, calc(env(safe-area-inset-bottom) + 8px)); max-width: min(44vw, 460px); }
  h1 { font-size: clamp(1.75rem, 9.4vh, 2.9rem); line-height: 1.0; letter-spacing: -.03em; }
  h2 { font-size: clamp(1.5rem, 7.8vh, 2.4rem); line-height: 1.04; letter-spacing: -.025em; }
  .kicker { margin-bottom: 10px; }
  .lede, .hero .lede { font-size: 1rem; line-height: 1.42; margin-top: 10px; }
  .ctas { margin-top: 14px; gap: 10px; }
  .copy .hear { margin-top: 12px; }
  .hear { min-height: 44px; }
  .live { margin-top: 10px; }
  .status { margin-top: 8px; }
  .hint { margin-top: 6px; font-size: .875rem; }
  .seam-ctl { margin-top: 12px; }
  html.gl-on .enote { display: block; margin: 6px 0 0; min-height: 2.9em; font-size: .9375rem; line-height: 1.4; color: var(--ink-2); }
  .enote .k { color: var(--teal); font-weight: 500; } .enote.gold .k { color: var(--gold-2); } .enote .num { font-family: var(--mono); font-size: .875rem; }
  .enote.num { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; }
  .enote .n { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--teal); font: 400 .875rem/1 var(--mono); color: var(--teal); }
  .enote.gold .n { color: var(--gold-2); border-color: var(--gold-2); }
  .co { max-width: min(380px, 46vw); } .co.wide { width: min(380px, 50vw); }
  /* your turn: two columns (the phrase on the left, the mic and its rings on the right), the phrases in one row under them */
  html.staged:not(.no-gl) .ch .copy.you-a { left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); top: var(--hdr); bottom: 0; width: auto; max-width: none;
    transform: translate3d(0, calc((1 - var(--o, 0)) * 12px), 0); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px;
    grid-template-areas: "h2 orb" "say orb" "en orb" "lo state" "tools prev" "chips chips"; align-content: center; align-items: center; padding: 4px 0 8px; }
  .you-a .voice { display: contents; }
  .you-a h2 { grid-area: h2; font-size: clamp(1.6rem, 8vh, 2.2rem); }
  .you-a .say { grid-area: say; margin-top: 4px; font-size: .875rem; }
  .you-a #phrase-en { grid-area: en; font-size: clamp(1.25rem, 6.4vh, 1.75rem); margin-top: 4px; }
  .you-a #phrase-lo { grid-area: lo; font-size: clamp(1.6rem, 8.6vh, 2.25rem); line-height: 1.4; }
  .you-a .voice.swapped #phrase-lo { grid-area: en; } .you-a .voice.swapped #phrase-en { grid-area: lo; }
  .you-a .orb-slot { grid-area: orb; width: 100%; height: clamp(110px, 34vh, 170px); }
  .you-a .mic { grid-area: orb; place-self: center; width: 76px; height: 76px; margin: 0; }
  .you-a .mic-state { grid-area: state; margin: 4px 0 0; font-size: .9375rem; }
  .you-a .preview { grid-area: prev; margin: 2px auto 0; font-size: .875rem; }
  .you-a .voice-tools { grid-area: tools; justify-content: center; margin: 4px 0 0; }
  .you-a .phrases { grid-area: chips; margin-top: 8px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; max-width: none; padding: 2px 8px 6px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
  .you-a .phrases::-webkit-scrollbar { display: none; }
  .you-a .phrases .chip { flex: none; }
  .you-line { display: none; }
  /* the finale: the flower on the left, the words on the right */
  html.staged:not(.no-gl) .ch .copy.you-b { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 32px; align-items: center; text-align: left;
    left: 50%; right: auto; top: calc(50% + var(--hdr) / 2); width: max-content; max-width: calc(100vw - 40px); transform: translate3d(-50%, -50%, 0); }
  .finale .mark { grid-row: 1 / span 6; width: clamp(110px, 34vh, 180px); }
  .finale > :not(.mark) { grid-column: 2; }
  .wordmark { margin-top: 0; font-size: clamp(2.2rem, 12vh, 3.4rem); }
  .role { margin-top: 16px; font-size: 1.25rem; line-height: 1.45; }
  .tagline { margin-top: 8px; font-size: 1rem; } .tagline.lo { margin-top: 2px; font-size: 1.125rem; line-height: 1.45; }
  .soon { margin-top: 8px; font-size: .9375rem; }
  .finale .ctas.center { justify-content: flex-start; margin-top: 12px; }
  .pill.big { min-height: 46px; padding: 0 22px; font-size: .9375rem; }
}
/* the seam is dragged up and down wherever the two sides are stacked (round 2 showed a sideways arrow there) */
@media (max-width: 760px) and (orientation: portrait), (max-width: 760px) and (min-height: 501px), (max-height: 500px) and (orientation: landscape) { .seam-label::before { content: "↕"; } }
/* round 3: at the Large and Largest text sizes the full header needs more room, so the menu holds its tools up to 1300 */
@media (min-width: 1101px) and (max-width: 1300px) {
}

/* ---------- crew round 4 (Lao cultural designer): the app's own materials ----------
   look.md: black lacquer (#14100d to #0d0a08, cards #110d0a), green silk (#0d3527, lit crest #1f6247) and gold thread
   (#8a6420, #c9a24a, #f3dd92). The chrome (header, controls, the voice screen, the band, the footer) warms from round
   3's blue-black to the app's lacquer and gold thread; space and the night Earth (the canvas) stay neutral, as the 3D
   artist graded them. Teal stays English and the voice; gold stays Lao. The mic is the app's woven green-silk medallion
   in its antique gold thread ring, and turns gold silk with dark ink while held (look.md, "Green silk").
   The woven hem across the top of the band is a DRAFT motif for the owner (01-product/look/website-b/DRAFT-culture.md);
   ?culture=0 removes it with the other new motifs. */
:root { --bg: #0c0907; --lacquer: #14100d; --card: #110d0a; --silk: #0d3527; --silk-lit: #1f6247; --silk-fold: #04150e;
  --thread: rgba(201, 162, 74, .28); --thread-2: rgba(201, 162, 74, .62); --shade: rgba(13, 10, 8, .86); }
.skip { background: var(--lacquer); }
header.site { background: linear-gradient(180deg, rgba(12, 9, 7, .74), rgba(12, 9, 7, 0)); }
header.site.solid { background: rgba(13, 10, 8, .9); box-shadow: 0 1px 0 var(--thread); }
header.site.menu-open { background: rgb(13, 10, 8); }
.opts { background: rgba(18, 14, 11, .96); }
.opts { border-color: var(--thread); }
.tool, .chip { border-color: rgba(201, 162, 74, .26); background: rgba(20, 16, 13, .46); }
.tool:hover, .chip:hover { border-color: rgba(241, 211, 138, .62); color: var(--ink); background: rgba(36, 28, 19, .8); box-shadow: 0 0 0 1px rgba(241, 211, 138, .14), 0 0 24px rgba(241, 211, 138, .12); }
.hover-tip { background: rgb(18, 14, 11); }
/* the mic: a woven medallion of green silk (a fine weave over the silk's fold), set in a 2 px antique gold thread */
.mic { border: 2px solid rgba(201, 162, 74, .62);
  background: repeating-linear-gradient(0deg, rgba(243, 221, 146, .045) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .2) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 44% 34%, var(--silk-lit), var(--silk) 58%, var(--silk-fold));
  box-shadow: 0 0 0 6px rgba(13, 10, 8, .55), 0 0 34px rgba(31, 98, 71, .4); }
.mic::before, .mic::after { border-color: #f3dd92; }
.mic:hover { box-shadow: 0 0 0 6px rgba(13, 10, 8, .55), 0 0 46px rgba(241, 211, 138, .26); }
.mic.held { border-color: #f3dd92;
  background: repeating-linear-gradient(0deg, rgba(255, 246, 208, .12) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(90, 60, 10, .14) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 44% 34%, #f3dd92, #e3b654 60%, #8a6420);
  box-shadow: 0 0 0 6px rgba(13, 10, 8, .55), 0 0 54px rgba(241, 211, 138, .45); }
.mic.held::before, .mic.held::after { border-color: #2a1c07; }
/* the band: lacquer, with the woven hem where the story ends (the hem of the cloth is its lower edge) */
.band::before { background: linear-gradient(180deg, rgba(12, 9, 7, 0), rgba(12, 9, 7, .55) 45%, var(--bg)); }
.band::after { content: ""; position: absolute; left: 0; right: 0; top: clamp(26px, 3.4vw, 48px); height: 34px; pointer-events: none;
  background: var(--thread-2); -webkit-mask: url("look/sinh-hem.svg") repeat-x center / auto 34px; mask: url("look/sinh-hem.svg") repeat-x center / auto 34px; }
.band .cols, footer.site .foot-in { border-top-color: var(--thread); }
html.culture-off .band::after { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .band::after { background: rgba(138, 93, 0, .55); }
}

/* ---------- crew round 4 (typographer): type craft on the live site. Noto stays until the owner picks a headline face
   (owner decision 63; the trial is font-trial.html, not linked). Measured before and after with
   tools/probes/typeaudit.js and tools/type/audit-matrix.sh (01-product/look/website-b/round4/type/).
   1. One uppercase label tier: 14 px, weight 500, tracking .12em. Round 3 had one role at three trackings (.18em on the
      kickers, .16em on the voice screen's label, .06em on the status line and the seam's label) and two sizes.
   2. Tracking follows size: a light display face takes less negative tracking as it gets smaller. Round 3 set the H1 at
      -.042em at 104 px and -.035em at 40 px on a phone, and the H2s kept the desk's -.032em at 31 px on a phone.
   3. Proximity: the kicker sits closer to its headline (18 to 24 px with the H2's size, 14 on phones, 10 sideways; it
      was 26 px above the H2, with 22 px between the H2 and its lede, so the label floated away from what it names).
      That is as close as Noto's tall line boxes allow with no text box touching another (overlap.js).
   4. Nothing under 14 px: the tag's clock was 13 px, and the rule marks in the English lines 13 px (11 px on phones).
      The clock's separator sits as close to the city's name as the sans separators do.
   5. The header's wordmark at look.md's 0.04em (it was .05em; the finale's wordmark already was .04em).
   6. Lao breaks only at its own spaces. Chrome's line breaker splits Lao inside a space-delimited token by dictionary
      (measured with the street line at 120 px: the hospital's name split in two, and two other tokens split), and word-break: keep-all does not stop it, so every token in the
      page's DOM Lao is a nowrap span (.lt: tools/build.py for the page, app.js for the voice screen's phrase).
   7. A separator never ends or starts a line: on phones and short wide screens a two-part kicker stacks (place, then
      context) instead of leaving its dot at a line's edge; everywhere else a no-break space ties each dot to the word
      before it. No one-word last lines in captions, callouts and the scene's English (text-wrap-style: pretty where the
      browser has it). */
.kicker, .status, .seam-label, .say { font-size: .875rem; font-weight: 500; letter-spacing: .12em; }
.kicker { margin-bottom: clamp(18px, calc((1rem + 3.3vw) * .3), 26px); }   /* .3 of the H2's size: Noto's tall line box reaches .27em above an H2's line, so 14 px let the two text boxes meet (3.2 px at 1440, overlap.js) and 18 px still met at 1920 */
.kicker .k1, .kicker .k2 { white-space: nowrap; }
h1 { letter-spacing: -.034em; }
h2 { letter-spacing: -.026em; }
.brand { letter-spacing: .04em; }
.tag i { font-size: .875rem; margin-left: 0; word-spacing: -.32em; }   /* the clock's ' · ' is set in the mono: its spaces were 0.6em each, so the dot floated 12 px off the name */
.ln .fn { font-size: max(14px, .62em); }
.lt, .hover-tip [lang="lo"] { white-space: nowrap; }
.live .k2 { white-space: nowrap; } .live.wrapped .sep { display: none; }
/* text-wrap-style only (not the text-wrap shorthand), so no nowrap line is turned into a wrapping one; the scene's English
   lines too: at 390 the road's line ended on 'stupa.' alone */
.co, .hint, .preview, .you-line, .band p, footer.site p, .enote, .ln.en { text-wrap-style: pretty; }
@media (min-width: 761px) and (min-height: 501px) {
  /* the river line, full-bleed: its fit divisor follows its tracking (16.4 em at -.045em; 16.6 em at -.04em) */
  #h-river { letter-spacing: -.04em; font-size: min(clamp(2.8rem, .6rem + 4.9vw, 7.25rem), calc((100vw - 2 * var(--gutter)) / 16.6), 11.5vh); }
}
@media (max-width: 760px) and (orientation: portrait), (max-width: 760px) and (min-height: 501px) {
  h1 { letter-spacing: -.022em; }
  h2 { letter-spacing: -.018em; }
  /* at the Large and Largest text sizes a phone's H2 is 35 to 39 px: tighter again, as its size asks (at -.018em
     'Inside the interpreter.' took two lines at 390 Largest and pushed the chapter's words into Maly's answer) */
  html[data-aa="1"] h2, html[data-aa="2"] h2 { letter-spacing: -.032em; }
  .kicker { margin-bottom: 14px; }
}
/* the narrowest phones (360) at the Largest text size: the chapter H2 keeps one line where it can (35 px instead of 39),
   so the chamber's words clear Maly's answer (9,878 px² of text on text at 360 Largest before; round 3 did not run it) */
@media (max-width: 374px) and (orientation: portrait) { html[data-aa="2"] h2 { font-size: 1.75rem; } }
@media (max-width: 760px) and (orientation: portrait), (max-width: 760px) and (min-height: 501px), (max-height: 500px) and (orientation: landscape) {
  .kicker .sep { display: none; }
  .kicker .k1, .kicker .k2 { display: block; white-space: normal; }
}
@media (max-height: 500px) and (orientation: landscape) {
  h1 { letter-spacing: -.022em; }
  h2 { letter-spacing: -.02em; }
  .kicker { margin-bottom: 10px; }
}
/* the voice screen on a 360 x 740 phone: its last line (the visitor's city, owner praised) ran 9 px past the bottom of the
   screen (measured: content 60 to 749 px of 740). The orb's slot gives up 20 px there instead of any words stepping out. */
@media (max-width: 760px) and (max-height: 760px) and (min-height: 721px) and (orientation: portrait) { .orb-slot { height: 80px; } }
/* the page without the light (?gl=0, a browser with no WebGL2) at 360: the mic's accessible name, which the no-light rule
   above shows with the other screen-reader text, printed 'Hold to / speak' inside the round button; and the seam's label
   broke as 'Drag the / light' beside its slider. The name stays for screen readers only, and the label keeps one line
   (the slider goes under it when the row is too narrow). */
html.no-gl .ch .mic .sr-only, html:not(.js) .ch .mic .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: 0; }
.seam-label { white-space: nowrap; }
.seam-ctl { flex-wrap: wrap; row-gap: 8px; }

/* ---------- crew round 4 (craft and layout engineer). Measured before and after with tools/probes/overlapt.js,
   header.js, edges.js and the six-size matrix (tools/craft/matrix.sh: 360, 390, 844 x 390, 1440, 1920, 2560);
   01-product/look/website-b/round4/craft/.
   1. A calm header at every size: the brand, the chapter line, Sound, the waitlist and Menu. Play the story, Pause
      motion and the text sizes live in the menu, as on phones (the desk header showed five controls). While the story
      plays by itself its Stop shows in the header. On a desk the menu is a two-column panel: the story's controls and
      chapters on the left, the pages on the right. Hover states are real (and only where there is a mouse). ---------- */
.tools #tour, .tools .opts-wrap { display: none; }
@media (min-width: 761px) and (min-height: 501px) { html.touring:not(.no-gl) .tools #tour { display: inline-flex; } }   /* (phones: a touch stops the story) */
.menu-btn { display: inline-flex; padding: 0 16px 0 14px; }
.mb-ic { position: relative; display: inline-block; width: 16px; height: 10px; flex: none; }
.mb-ic i { position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform .25s, top .25s; }
.mb-ic i:first-child { top: 1px; } .mb-ic i:last-child { top: 7.5px; }
.menu-btn[aria-expanded="true"] .mb-ic i:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .mb-ic i:last-child { top: 4.25px; transform: rotate(-45deg); }
.menu-btn[aria-expanded="true"] { color: var(--ink); border-color: rgba(241, 211, 138, .62); }
.menu[hidden] { display: none !important; }
.menu { background: rgb(18, 14, 11); border-color: var(--thread); box-shadow: 0 24px 70px rgba(0, 0, 0, .55); }
.menu .menu-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 10px 12px; border-bottom: 1px solid var(--thread); margin-bottom: 6px; }
.menu .menu-tools .aa { display: flex; width: 100%; border: 1px solid rgba(246, 239, 224, .16); border-radius: 999px; overflow: hidden; }
.menu-h { width: 100%; margin: 8px 6px 0; font-size: .875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.menu .menu-ch { display: block; border-bottom: 1px solid var(--thread); margin-bottom: 6px; padding-bottom: 6px; }
.menu .menu-ch a.on { color: var(--gold-2); }
.menu a { border-radius: 12px; margin: 0 4px; transition: background .15s, color .15s; }
.menu .menu-ch a.on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); margin-right: 10px; }
@media (min-width: 761px) and (min-height: 501px) {
  .menu { width: 540px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 10px; padding: 14px 8px; }
  .menu .menu-tools { grid-column: 1; grid-row: 1; }
  .menu .menu-tools .tool { flex: 1 1 100%; justify-content: flex-start; padding: 0 16px; }
  .menu .menu-ch { grid-column: 1; grid-row: 2; border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
  .menu ul { grid-column: 2; grid-row: 1 / span 2; border-left: 1px solid var(--thread); padding-left: 10px; }
}
@media (hover: hover) and (pointer: fine) {
  .menu a:hover { background: rgba(241, 211, 138, .09); color: var(--ink); }
  .menu .menu-ch a.on:hover { color: var(--gold-2); }
  .brand { transition: color .2s; } .brand:hover { color: var(--gold-2); }
  .aa button { transition: color .15s, background .15s; } .aa button:hover { color: var(--ink); background: rgba(241, 211, 138, .08); }
  .band a.btn { transition: filter .2s, box-shadow .2s, transform .2s; } .band a.btn:hover { filter: brightness(1.06); box-shadow: 0 0 0 1px rgba(255, 236, 180, .6), 0 10px 40px rgba(232, 197, 101, .35); transform: translateY(-1px); }
}
/* touch screens keep no stuck hover glow after a tap (the round-3 hovers were not behind a hover query) */
@media (hover: none) {
  .tool:not([aria-pressed="true"]):not([aria-expanded="true"]):hover, .chip:not([aria-pressed="true"]):hover { border-color: rgba(201, 162, 74, .26); background: rgba(20, 16, 13, .46); box-shadow: none; color: var(--ink-2); }
  .tool[aria-pressed="true"]:hover, .chip[aria-pressed="true"]:hover { box-shadow: none; }
  .hear:hover { border-color: rgba(143, 245, 214, .34); background: rgba(6, 22, 24, .5); box-shadow: none; }
  .pill:hover { transform: none; filter: none; box-shadow: 0 0 0 1px rgba(255, 236, 180, .25), 0 8px 30px rgba(232, 197, 101, .18); }
  .hear:hover .ic { transform: none; }
}
.tool:active, .chip:active, .pill:active, .hear:active, .band a.btn:active { transform: translateY(1px) scale(.985); }
/* 2. One grid and one left edge for the band and the footer (and, in legal.css, the legal pages' shells): one
      container, 1400 px of columns inside the page's gutter, so up to 1515 px wide the band, the footer, the header's
      wordmark and the story's words all start at the same x, and wider screens centre the same container. Round 3 had
      four edges at 1440 (the story and header 58, the band and footer 140, the legal header 240 and its body 380). */
:root { --wrap: 1400px; --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.band-in, footer.site .foot-in { max-width: var(--wrap); }
/* wider than 1515 px the header and the story's words take the same edge (percentages of the window, so a classic
   scrollbar cannot move them off the band's edge), and the river's full-bleed line is sized to it */
@media (min-width: 761px) and (min-height: 501px) {
  header.site { padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); padding-right: max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
  .menu { right: max(var(--gutter), calc((100% - var(--wrap)) / 2)) !important; }
  html.staged:not(.no-gl) .ch .copy:not(.you-a):not(.you-b) { left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
  html.staged:not(.no-gl) #ch-river .copy { max-width: calc(100vw - 2 * var(--edge)); }
  #h-river { font-size: min(clamp(2.8rem, .6rem + 4.9vw, 7.25rem), calc((100vw - 2 * var(--edge)) / 16.6), 11.5vh); }
  .ch { padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); padding-right: max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
}
/* 3. The waitlist form (owner decision 64; off until it is switched on, see app.js setupWaitlist). One field, a real
      label, 16 px or larger type (iOS zooms into smaller fields), 52 px targets, the status read aloud. */
.band .btn.wl-submit { font: inherit; cursor: pointer; }
.wl-status:empty { display: none; }
.band [hidden] { display: none !important; }   /* (hidden things in the band are switched with the hidden attribute; an author display rule would override it) */
.wl-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }   /* the robots' trap field: never seen, never focused */
.wl-label { display: block; margin: 18px 0 8px; font-size: .875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.wl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.wl-input { flex: 1 1 15em; min-width: 0; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(241, 211, 138, .4); background: rgba(12, 9, 7, .65);
  color: var(--ink); font-size: max(16px, 1rem); scroll-margin-top: calc(var(--hdr) + 24px); scroll-margin-bottom: 120px; transition: border-color .2s, box-shadow .2s; }
.wl-input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-color: rgba(143, 245, 214, .7); }
.wl-input[aria-invalid="true"] { border-color: #ffb4a3; }
.wl-input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 40px #1a140f inset; caret-color: var(--ink); }
.band .btn.wl-submit { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border: 0; margin: 0; min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: linear-gradient(180deg, #f6dc98, #e2bd5c); color: #1a1406; font-weight: 600; transition: filter .2s, box-shadow .2s, transform .2s; }
@media (max-width: 480px) { .band .btn.wl-submit { flex: 1 1 100%; } }
.band .btn.wl-submit:disabled { opacity: .6; cursor: progress; }
.wl-status { margin: 12px 0 0; font-size: .9375rem; color: var(--ink-2); }
.wl-status.err { color: #ffb4a3; } .wl-status.ok { color: var(--teal); }
.wl-form.done .wl-row { opacity: .55; }
@media (hover: hover) and (pointer: fine) {
  .band .btn.wl-submit:hover { filter: brightness(1.06); box-shadow: 0 0 0 1px rgba(255, 236, 180, .6), 0 10px 40px rgba(232, 197, 101, .35); }
  .wl-input:hover { border-color: rgba(241, 211, 138, .7); }
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .wl-input { background: #fffdf8; color: var(--paper-ink); border-color: rgba(27, 23, 18, .3); }
  :root:not([data-theme="dark"]) .wl-input:-webkit-autofill { -webkit-text-fill-color: var(--paper-ink); box-shadow: 0 0 0 40px #fffdf8 inset; }
  :root:not([data-theme="dark"]) .wl-input:focus-visible { outline-color: #0d5a49; }
  :root:not([data-theme="dark"]) .wl-label, :root:not([data-theme="dark"]) .wl-status { color: #5d564a; }
  :root:not([data-theme="dark"]) .wl-status.err, :root:not([data-theme="dark"]) .wl-input[aria-invalid="true"] { color: #9b2c1a; border-color: #9b2c1a; }
  :root:not([data-theme="dark"]) .wl-status.ok { color: #0d5a49; }
  :root:not([data-theme="dark"]) .band .btn.wl-submit { background: #1b1712; color: #f6f1e6; }
}
/* 4. A label that leaves where words now are is cut at once (app.js applyShown), not faded over them. */
.tag.cut, .co.cut, .mk.cut { transition: none !important; opacity: 0 !important; }
/* 5. The floor's hover, discoverable: a hand over a phrase, the phrase brightens (app.js), and once per visit a ring
      on one phrase's light while it shows its tip by itself. The hint names the gesture with a small ring. */
html.floor-pt, html.floor-pt body { cursor: pointer; }
.floor-ping { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(241, 211, 138, .85); opacity: 0; pointer-events: none; transform: translate3d(-9999px, 0, 0); }
.floor-ping.on { opacity: 1; animation: fping 1.6s ease-out infinite; }
@keyframes fping { 0% { box-shadow: 0 0 0 0 rgba(241, 211, 138, .45); } 100% { box-shadow: 0 0 0 16px rgba(241, 211, 138, 0); } }
#floor-hint { color: var(--ink-2); transition: color .4s; } #floor-hint.nudge { color: var(--gold-2); }
#floor-hint::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 10px; vertical-align: -1px; border-radius: 50%; border: 1.5px solid var(--gold-2); box-shadow: 0 0 8px rgba(241, 211, 138, .5); }
@media (prefers-reduced-motion: reduce) { .floor-ping.on { animation: none; } }
/* 6. A phone at the larger text sizes, in the chamber, while her answer is on screen: the lede and the floor's hint step
      out so her Lao and its English fit above the heading (app.js adds .tight only when they would not fit). */
.ch .copy.tight .lede, .ch .copy.tight .hint { display: none; }
.wl-form .muted { margin-top: 14px; }

/* ---- crew round 4 (sound designer): the invitation to sound (DRAFT copy). It lives in the header, in the wordmark's
   place, for the seconds it is shown: the header is the one place no word of the story ever lands (under the header it
   met the scene's words at 390, 360 and 1920, tools/sound/invite-overlap.sh). Never a pop-up, takes no focus, and leaves
   after 9 s, on Escape, or on either button. Where the message does not fit before the chapter line, it is read to
   screen readers only (.tight, set by app.js from the measured room). */
.invite { position: fixed; z-index: 21; top: 0; left: max(var(--gutter), env(safe-area-inset-left)); height: var(--hdr); display: flex; align-items: center; gap: 6px;
  opacity: 0; transform: translate3d(0, -4px, 0); transition: opacity .25s ease, transform .25s ease; }
.invite.on { opacity: 1; transform: none; transition-delay: .12s; }   /* (it arrives once the wordmark has gone: no crossfade of text on text) */
.invite[hidden] { display: none; }
.invite p { margin: 0 8px 0 0; display: flex; gap: 10px; align-items: center; font-size: .9375rem; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.invite .ic { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 4px rgba(241, 211, 138, .14), 0 0 14px rgba(241, 211, 138, .5); }
.invite .tool.on { gap: 8px; padding: 0 16px 0 14px; color: var(--ink); border-color: rgba(241, 211, 138, .62); background: rgba(40, 30, 18, .92); }
.invite .tool.on .ic { display: none; }
.invite.tight .tool.on .ic { display: block; }
.invite .tool.icon { width: 40px; min-width: 40px; border-color: transparent; background: none; }
.invite .l-short, .invite.tighter .l-long, .invite.tighter #invite-no { display: none; }
.invite.tighter .l-short { display: inline; }
.invite .tool.icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
header.site .brand { transition: opacity .15s ease .3s, color .2s; }   /* (back only once the note has gone) */
html.inviting header.site .brand { opacity: 0; transition: opacity .1s ease 0s, color .2s; }
@media (max-width: 380px) { .invite .tool.on { padding: 0 12px 0 11px; } .invite .tool.icon { width: 36px; min-width: 36px; } }
@media (prefers-reduced-motion: reduce) { .invite { transition: none; transform: none; } }
/* the review build's DRAFT bed switch (never on the public page) */
.menu .tool.draft { border-style: dashed; }

/* ---- crew round 4 (performance): the posters. Without the light (no WebGL2, a lost context, the 8 s watchdog, or the
   governor's give-up on a device under 20 fps), each chapter is its own still, drawn by this page's renderer at the
   chapter's reading pose with every word hidden (tools/perf/posters.sh). A shade keeps the words over it at 4.5:1 or
   more. Fetched only when html.posters is set; ?posters=0 shows the plain text path as before. */
html.posters .ch { background-color: var(--bg); background-repeat: no-repeat; background-position: center 30%; background-size: cover; }
html.posters #ch-one { background-image: linear-gradient(180deg, rgba(2,5,7,.8) 0, rgba(2,5,7,.58) 46%, rgba(2,5,7,.9) 100%), url(posters/one-desk.jpg); }
html.posters #ch-river { background-image: linear-gradient(180deg, rgba(2,5,7,.8) 0, rgba(2,5,7,.58) 46%, rgba(2,5,7,.9) 100%), url(posters/river-desk.jpg); }
html.posters #ch-vientiane { background-image: linear-gradient(180deg, rgba(2,5,7,.8) 0, rgba(2,5,7,.58) 46%, rgba(2,5,7,.9) 100%), url(posters/vientiane-desk.jpg); }
html.posters #ch-engine { background-image: linear-gradient(180deg, rgba(2,5,7,.8) 0, rgba(2,5,7,.58) 46%, rgba(2,5,7,.9) 100%), url(posters/engine-desk.jpg); }
html.posters #ch-road { background-image: linear-gradient(180deg, rgba(2,5,7,.8) 0, rgba(2,5,7,.58) 46%, rgba(2,5,7,.9) 100%), url(posters/road-desk.jpg); }
html.posters #ch-table { background-image: linear-gradient(180deg, rgba(2,5,7,.8) 0, rgba(2,5,7,.58) 46%, rgba(2,5,7,.9) 100%), url(posters/table-desk.jpg); }
html.posters #ch-you { background-image: linear-gradient(180deg, rgba(2,5,7,.8) 0, rgba(2,5,7,.7) 46%, rgba(2,5,7,.9) 100%), url(posters/you-desk.jpg); }
/* crew round 6 (performance engineer): the two new chapters' posters (the loom; Home's quiet beat), tools/perf/posters.sh */
html.posters #ch-now { background-image: linear-gradient(180deg, rgba(2,5,7,.8) 0, rgba(2,5,7,.58) 46%, rgba(2,5,7,.9) 100%), url(posters/now-desk.jpg); }
html.posters #ch-home { background-image: linear-gradient(180deg, rgba(2,5,7,.8) 0, rgba(2,5,7,.58) 46%, rgba(2,5,7,.9) 100%), url(posters/home-desk.jpg); }   /* (the orb's rings sit behind the voice screen's small print: 4.27:1 at 1920 with .58) */
@media (max-width: 760px) and (orientation: portrait) {
  html.posters #ch-one { background-image: linear-gradient(180deg, rgba(2,5,7,.82) 0, rgba(2,5,7,.7) 46%, rgba(2,5,7,.92) 100%), url(posters/one-phone.jpg); }
  html.posters #ch-river { background-image: linear-gradient(180deg, rgba(2,5,7,.82) 0, rgba(2,5,7,.7) 46%, rgba(2,5,7,.92) 100%), url(posters/river-phone.jpg); }
  html.posters #ch-vientiane { background-image: linear-gradient(180deg, rgba(2,5,7,.82) 0, rgba(2,5,7,.7) 46%, rgba(2,5,7,.92) 100%), url(posters/vientiane-phone.jpg); }
  html.posters #ch-engine { background-image: linear-gradient(180deg, rgba(2,5,7,.82) 0, rgba(2,5,7,.7) 46%, rgba(2,5,7,.92) 100%), url(posters/engine-phone.jpg); }
  html.posters #ch-road { background-image: linear-gradient(180deg, rgba(2,5,7,.82) 0, rgba(2,5,7,.7) 46%, rgba(2,5,7,.92) 100%), url(posters/road-phone.jpg); }
  html.posters #ch-table { background-image: linear-gradient(180deg, rgba(2,5,7,.82) 0, rgba(2,5,7,.7) 46%, rgba(2,5,7,.92) 100%), url(posters/table-phone.jpg); }
  html.posters #ch-you { background-image: linear-gradient(180deg, rgba(2,5,7,.82) 0, rgba(2,5,7,.7) 46%, rgba(2,5,7,.92) 100%), url(posters/you-phone.jpg); }
  html.posters #ch-now { background-image: linear-gradient(180deg, rgba(2,5,7,.82) 0, rgba(2,5,7,.7) 46%, rgba(2,5,7,.92) 100%), url(posters/now-phone.jpg); }
  html.posters #ch-home { background-image: linear-gradient(180deg, rgba(2,5,7,.82) 0, rgba(2,5,7,.7) 46%, rgba(2,5,7,.92) 100%), url(posters/home-phone.jpg); }
}
html.no-gl #overlay, html.no-gl .seam-handle, html.no-gl .hover-tip { display: none !important; }
/* a soft dark halo round the words, so a bright light in a still never sits behind a letter unshaded */
html.posters .ch .copy, html.posters .ch .sr-only, html.posters .ch .nogl-line, html.posters .ch .nogl-gloss { text-shadow: 0 0 3px rgba(2,5,7,.95), 0 0 14px rgba(2,5,7,.85); }

/* ---------- crew round 5 (3D artist): the first frame's plate (index.src.html #plate). A still of the night Earth at
   the opening's camera, from the first paint until the light has the real Earth up; then it fades and is removed.
   It is fitted by height, as the light's camera is (a fixed vertical field of view), and placed across by the same
   share as the camera's own offset (views.one ox: desk 0.24, compact 0.32, phone 0.04), so the two line up. */
#plate { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 74% 50%; z-index: 1; pointer-events: none;
  opacity: 0; transition: opacity .5s ease-out; }
#plate.in { opacity: 1; }
#plate.in.out { opacity: 0; transition: opacity .8s ease-in-out; }
html:not(.staged) #plate, html.no-gl #plate, html.posters #plate { display: none; }
@media (max-height: 500px) and (orientation: landscape) { #plate { object-position: 82% 50%; } }
@media (max-width: 760px) and (orientation: portrait), (max-width: 760px) and (min-height: 501px) { #plate { object-position: 54% 50%; } }
@media (prefers-reduced-motion: reduce) { #plate, #plate.in.out { transition: none; } }
/* crew round 6 (3D artist): on a wide screen (16:9 and wider) the opening's planet steps right (ox +0.13) and down (oy
   +0.09) so the headline sits on the sky (app.js buildViews); the desk plate keeps the 1440 framing, so it is moved by
   the same amounts here (object-position exact at 16:9; about 4% of the height off at 17:10 or 2:1, during its 0.8 s fade) */
@media (min-aspect-ratio: 17/10) and (min-width: 761px) and (min-height: 501px) { #plate { object-position: 37% 50%; transform: translateY(9%); } }

/* ---------- crew round 5 (typographer): type against the page's own graphics, the menu and the band's fine print.
   Noto stays until the owner picks a headline face (decision 63; the trial is font-trial.html). Measured before and after
   with tools/type/collide.sh (the Lao against the mic, the silk and the seam's handle; the phrase chips' row) and
   tools/probes/typeaudit.js; 01-product/look/website-b/round5/type/.
   1. The Lao the app writes on the voice screen keeps 12 px or more from the mic under it. Its light is drawn in the
      phrase's box and the timing line under it reaches .2em below the baseline, so at 1440 x 813 the line sat 1 px over
      the ring (judges 2 and 4: 0 to 4 px); 9.6 at 1440 x 900, 7.6 on a 390 phone. Sideways, the same gap above the
      Swap row (the mic is in the other column there).
   2. Stacked (phones, sideways), the seam's handle is a 44 px fingertip in a lane the table's lines leave free
      (app.js SEAM_LANE): it sat on the end of the mother's Lao line at 390 and 360 when the seam was dragged.
   3. The phrase chips: where two rows fit (a desk window 790 to 820 px tall, the usual laptop browser) they wrap, so
      no phrase is cut; where the row scrolls, the fade sits only on the side that has more (app.js sets .more-l and
      .more-r), 56 px wide, and the chips snap to their edges.
   4. Sideways, the river kicker's two stacked parts hug their words (their boxes ran the column's width, over the
      Mekong's light; the glyphs were already clear).
   5. The menu reads as a contents page: the chapters numbered as the header numbers them (Geist Mono), their names in
      the display voice (light, larger), the pages second; on an upright phone it is a full sheet under the header.
   6. The band's fine print is its own tier: the column heads in the label voice, the text a step smaller with more
      leading, the Sources' run-in heads set off; the two privacy notes share a column and Sources flows in two, so
      the three columns no longer end 350 px apart. No word is changed. ---------- */
/* 1 */
.voice .mic { margin-top: 16px; }
/* (on a 360 x 740 phone the voice screen has no spare height: 16 px put the visitor's city line, owner praised, past the
   bottom of the screen again (overlap.js, 6.05 and 6.2), so the mic keeps 10 px there: the Lao's line still clears it) */
@media (max-width: 760px) and (max-height: 760px) and (min-height: 721px) and (orientation: portrait) { .voice .mic { margin-top: 10px; } }
@media (max-height: 500px) and (orientation: landscape) { .you-a .voice-tools { margin-top: 12px; } }
/* 2 */
.seam-handle.v { width: 44px; height: 44px; }
.seam-handle.v::before { top: 6px; } .seam-handle.v::after { bottom: 6px; }
/* 3 */
@media (min-width: 761px) and (min-height: 790px) and (max-height: 820px) {
  html:not([data-aa="1"]):not([data-aa="2"]) .phrases { flex-wrap: wrap; justify-content: center; overflow-x: visible; padding: 2px 0 0; -webkit-mask-image: none; mask-image: none; }
  html:not([data-aa="1"]):not([data-aa="2"]) .phrases .chip { min-height: 40px; }
}
#phrases.scroll { scroll-snap-type: x proximity; scroll-padding-inline: 8px; -webkit-mask-image: none; mask-image: none; }
#phrases.scroll .chip { scroll-snap-align: start; }
#phrases.scroll.more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
#phrases.scroll.more-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
#phrases.scroll.more-l.more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
/* 4 */
@media (max-width: 760px) and (orientation: portrait), (max-width: 760px) and (min-height: 501px), (max-height: 500px) and (orientation: landscape) {
  .kicker .k1, .kicker .k2 { width: fit-content; }
}
/* 4b. Punctuation stays with its word: the ocean's two clocks stack without their dot where they do not fit on one line
   (app.js sets data-stk; at 360 x 740 Largest a line ended on the dot), and a link keeps the full stop after it (at 360
   Largest the band's sentence put "." alone at the start of a line, after the 44 px-tall email link) */
.co .cp { white-space: nowrap; }
.co[data-stk="1"] .sep { display: none; } .co[data-stk="1"] .cp { display: block; }
.nw { white-space: nowrap; }
/* 5 */
.menu .menu-ch { counter-reset: mch; }
.menu .menu-ch a { counter-increment: mch; gap: 14px; font-size: 1.3125rem; font-weight: 300; letter-spacing: -.008em; min-height: 46px; align-items: baseline; line-height: 1.4; padding-top: 8px; padding-bottom: 8px; }   /* the numeral sits on the name's baseline */
.menu .menu-ch a::before, .menu .menu-ch a.on::before { content: counter(mch, decimal-leading-zero); content: counter(mch, decimal-leading-zero) / ""; flex: none; width: auto; height: auto; min-width: 2ch; margin: 0; border-radius: 0; background: none;
  font: 400 .875rem/1 var(--mono); letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.menu .menu-ch a.on::before { color: var(--gold-2); }
.menu ul a { color: var(--ink-2); }
.menu ul li:first-child a { color: var(--gold-2); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .menu ul a:hover { color: var(--ink); } .menu ul li:first-child a:hover { color: var(--gold-2); } }
@media (min-width: 761px) and (min-height: 501px) {
  .menu { width: 620px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
@media (max-width: 760px) and (orientation: portrait), (max-width: 760px) and (min-height: 501px) {
  .menu { left: 0; right: 0; top: 100%; height: calc(100vh - var(--hdr)); height: calc(100dvh - var(--hdr)); max-height: none; border-radius: 0; border-width: 1px 0 0; box-shadow: none;
    padding: 14px 6px calc(28px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
  .menu .menu-ch { padding: 6px 0 12px; margin-bottom: 10px; }
  .menu .menu-ch a { font-size: 1.5rem; min-height: 52px; padding-top: 9px; padding-bottom: 9px; }
  .menu ul a { font-size: 1.0625rem; }
}
/* 6 */
.band .cols h2 { font-size: .875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.band .cols p { font-size: .9375rem; line-height: 1.65; max-width: 58ch; }
.band .cols p b { font-weight: 500; color: var(--ink); }
@media (min-width: 761px) {
  .band .cols { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: clamp(32px, 4vw, 64px); row-gap: 28px; }
  .band .cols > section:nth-child(1) { grid-column: 1; grid-row: 1; }
  .band .cols > section:nth-child(2) { grid-column: 1; grid-row: 2; }
  .band .cols > section:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
}
@media (min-width: 1100px) {
  .band .cols > section:nth-child(3) { columns: 2; column-gap: clamp(28px, 3vw, 48px); }
  .band .cols > section:nth-child(3) h2 { column-span: all; }
  .band .cols > section:nth-child(3) p { break-inside: avoid; }
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .band .cols h2 { color: #5d564a; }
  :root:not([data-theme="dark"]) .band .cols p b { color: var(--paper-ink); }
}

/* ======================================================================================================================
   crew round 5 (craft and layout engineer). Measured with tools/craft5/judges.js, tools/craft5/run.sh and the probes;
   the numbers are in the work log entry of 18 Oct (crew round 5, craft) and in 01-product/look/website-b/round5/craft/.
   ====================================================================================================================== */
/* 1. A callout's link takes a tap only while its callout is on screen. The engine's 'After' callout (its 'Privacy policy'
      link) sat at opacity 0 with pointer-events auto after a visit to the end and back, and a finger's tap on the floor
      at (120, 380) on a 390 phone was adjusted onto it and opened privacy.html (judge 2, twice). Hidden callouts are now
      visibility: hidden once their fade has run, and their links never take a pointer unless the callout is on. */
.co a { pointer-events: none; }
.co.on:not(.cut) a { pointer-events: auto; }
.co:not(.on), .co.cut { visibility: hidden; transition: opacity .18s, visibility 0s linear .18s; }
.co.on:not(.cut) { visibility: visible; transition: opacity .3s, visibility 0s; }
/* 2. The finale rides up with the band (app.js sets --fy): the band's soft top edge never lies over its two actions. */
html.staged:not(.no-gl) .ch .copy.you-b { translate: 0 var(--fy, 0px); }
/*    Without the light the finale is in the page's own flow, right above the band: the band's shade would sit on it
      for good, so the band starts with its own edge instead. */
html.no-gl .band::before, html.posters .band::before, html:not(.staged) .band::before { display: none; }
/* 3. The chapter line steps out once the band has the screen (app.js sets .past). */
header.site.past .rail { opacity: 0; pointer-events: none; }
/* 4. The invitation to sound keeps the brand's mark: only the wordmark's letters give way for the 9 s it is shown (the
      brand left the header for those seconds, as a first impression was being formed: judge 1). */
html.inviting header.site .brand { opacity: 1; }
header.site .brand span { transition: opacity .15s ease .3s; }
html.inviting header.site .brand span { opacity: 0; transition: opacity .1s ease 0s; }
.invite { left: calc(max(var(--gutter), env(safe-area-inset-left)) + 36px); }
/* wave 3b: on a desk the sound note stands under the header, at the brand's edge, in a glass of its own; the chapter bar stays and the brand keeps its letters */
.invite.under { top: calc(var(--hdr) + 8px); height: auto; min-height: 50px; left: max(var(--gutter), calc((100% - var(--wrap, 1400px)) / 2)); padding: 3px 5px 3px 18px; border-radius: 999px; background: rgba(2, 5, 7, .9); border: 1px solid rgba(241, 211, 138, .32);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 8px 28px rgba(2, 5, 7, .5); }
html.inviting.inv-under header.site .brand span { opacity: 1; transition: none; }
/* wave 3b: while the story plays by itself, the header's Stop button takes the waitlist pill's place (the finale has the button), so the chapter bar keeps its form instead of dropping to numbers */
@media (min-width: 761px) and (min-height: 501px) { html.touring:not(.no-gl) .tools > .pill { display: none; } }
@media (max-height: 500px) and (orientation: landscape) { html.inviting .chap-pill { visibility: hidden; } }
/* 5. Held sideways (a phone at 844 x 390), the band's lead and the waitlist take the full width one after the other: side
      by side the card ran two screens down and left the lead's column empty beside it (judge 3). */
@media (orientation: landscape) and (max-height: 500px) and (min-width: 600px) {
  .band .lead, .band .wait { grid-column: 1 / -1; }
  .band .lead { margin-bottom: 32px; }
  .band .wait { max-width: 640px; }
  .band p.big { max-width: 32ch; }
}
/* 6. The band's soft top edge is shorter (26vh to 14vh; light, 34vh to 20vh): the finale, 682 px tall at 1440 x 900, had
      no room to ride clear of a 234 px shade below the header. The edge is still a gradient, never a line. */
.band::before { height: 14vh; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .band::before { height: 20vh; } }
/* 7. Without the light the finale's words sit flush left in the page's flow, so its two actions do too (they were
      centred under a left-aligned lockup). */
html.no-gl .finale .ctas.center, html:not(.staged) .finale .ctas.center { justify-content: flex-start; }
/* ---------------------------------------------------------------------------------------------------------------------
   crew round 6 (Lao cultural designer): the content brief's DRAFT chapters, the founder block, decision 80's switch */
.laos-off #ch-now, .laos-off #ch-home { display: none; }
.laos-off .rail a[data-ch="now"], .laos-off .rail a[data-ch="home"] { display: none; }   /* (wave 3: the chapter bar follows the story: ?laos=0 leaves the two draft chapters out of it too, and the numbers run 1 to 7) */
/* "Laos, right now": the sentence for the meeting on screen is lit, the others step back; its one fact shows under it */
.now-copy .lede span { transition: opacity .45s ease, color .45s ease; }
.now-copy:not([data-m=""]) .lede span:not(.mx) { opacity: .5; }
.now-copy[data-m="0"] .lede span.m0, .now-copy[data-m="1"] .lede span.m1, .now-copy[data-m="2"] .lede span.m2 { opacity: 1; color: var(--ink); }
.now-copy .src { margin: 16px 0 0; font-size: .875rem; line-height: 1.5; letter-spacing: .02em; color: var(--ink-3); max-width: 52ch; min-height: 3em; }
html.staged:not(.no-gl) .now-copy .src span { display: none; }
html.staged:not(.no-gl) .now-copy[data-m="0"] .src .m0, html.staged:not(.no-gl) .now-copy[data-m="1"] .src .m1, html.staged:not(.no-gl) .now-copy[data-m="2"] .src .m2 { display: inline; }
html.no-gl .now-copy .src span, html:not(.staged) .now-copy .src span { display: block; margin-top: 6px; }
@media (max-width: 760px) { .now-copy .src { min-height: 4.5em; } }
@media (orientation: landscape) and (max-height: 500px) { .now-copy .lede span:not(.mx) { display: none; } .now-copy[data-m="0"] .lede .m0, .now-copy[data-m="1"] .lede .m1, .now-copy[data-m="2"] .lede .m2 { display: inline; } .now-copy .src { min-height: 0; } }
/* the founder block (decision 84): his line in plain ink, never gold (gold is for Lao on this site) */
.band .founder { grid-column: 1 / span 7; grid-row: 2; margin: -16px 0 64px; padding-left: 22px; border-left: 1px solid var(--line); }
.band .lead { grid-row: 1; }
.band .wait { grid-row: 1 / span 2; }
.band .founder-line { margin: 0; }
.band .founder-line p { font-size: clamp(1.25rem, .95rem + 1.05vw, 1.75rem); line-height: 1.42; font-weight: 300; letter-spacing: -.005em; color: var(--ink); max-width: 34ch; text-wrap: pretty; }
.band .founder-by { margin: 14px 0 0; font-size: .9375rem; letter-spacing: .04em; color: var(--ink-3); }
@media (max-width: 760px) { .band .founder { grid-column: 1 / -1; grid-row: auto; margin: 0 0 40px; padding-left: 16px; } .band .lead, .band .wait { grid-row: auto; } }
@media (orientation: landscape) and (max-height: 500px) and (min-width: 600px) { .band .founder { grid-column: 1 / -1; grid-row: auto; margin: 0 0 32px; } .band .lead, .band .wait { grid-row: auto; } }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .band .founder-line p { color: var(--paper-ink); } :root:not([data-theme="dark"]) .band .founder { border-left-color: rgba(27,23,18,.16); } :root:not([data-theme="dark"]) .band .founder-by { color: #5d564a; } }
/* decision 80: the all-Lao switch, large, in Lao letters (hidden until the owner approves the Lao) */
.lao-switch { font-family: "Lao Looped", var(--font); font-size: 1.0625rem; min-height: 44px; }
.lao-switch.prominent { border-color: rgba(241,211,138,.6); color: var(--gold-2); }

/* ---- crew round 6 (typographer). Typesetting only: no word added or changed (DRAFT-copy.tsv lists each change).
   1. A wide-screen tier (judges 1 and 2: at 1920 the H2s were 74 px, the ledes 21 px and every label 14 px, the same as
      at 1440, in a 600 px column, so a big monitor got a small page). From 1600 px wide (and 860 tall) the display tier,
      the ledes, the labels, the column and the band grow with the width; each size is continuous at 1600 (the old size
      there) and reaches its 1920 target: chapter H2 96 px, lede 25, hero lede 28, labels 16, column 840 px, the band's
      big line 54 px. The H1 keeps its own size and its three lines (a wider box would push it onto the planet's limb,
      judge 4); the river line keeps its full-bleed fit; the voice screen keeps its height-bound sizes. */
@media (min-width: 1600px) and (min-height: 860px) {
  main h2:not(#h-river):not(#h-you) { font-size: clamp(4.3rem, calc(8.5vw - 67.2px), 7rem); }
  .ch .kicker { margin-bottom: clamp(18px, calc((8.5vw - 67.2px) * .3), 34px); }
  .lede { font-size: clamp(1.3rem, 1.3vw, 1.875rem); }
  .hero .lede { font-size: clamp(1.45rem, 1.45vw, 1.875rem); }
  html.staged:not(.no-gl) .ch .copy:not(.hero):not(.you-a):not(.you-b) { max-width: min(calc(600px + (100vw - 1600px) * .75), 960px, calc(100vw - 2 * var(--gutter))); }
  .kicker, .status, .seam-label, .say, .live, .now-copy .src { font-size: clamp(.875rem, calc(.875rem + (100vw - 1600px) / 160), 1.125rem); }
  .tool, .pill { font-size: clamp(.875rem, calc(.875rem + (100vw - 1600px) / 320), 1rem); }
  .hint, .preview { font-size: clamp(.9375rem, calc(.9375rem + (100vw - 1600px) / 160), 1.1875rem); }
  .tagline { font-size: calc(19px + (100vw - 1600px) / 80); } .tagline.lo { font-size: calc(24px + (100vw - 1600px) / 80); }
  .role { font-size: calc(26px + (100vw - 1600px) / 80); } .soon { font-size: calc(17px + (100vw - 1600px) / 160); }
  .band p.big { font-size: min(calc(2.75rem + (100vw - 1600px) / 32), 3.5rem); }
  .band p:not(.big), .band .muted, footer.site { font-size: min(calc(.9375rem + (100vw - 1600px) / 160), 1.1875rem); }
  .band .wait h2 { font-size: min(calc(1.75rem + (100vw - 1600px) / 53), 2.5rem); }
  .band .founder-line p { font-size: min(calc(1.75rem + (100vw - 1600px) / 40), 2.5rem); }
  .band .founder-by { font-size: min(calc(.9375rem + (100vw - 1600px) / 160), 1.1875rem); }
}
/* 2. Fingers (judge 1): the engine's 'Privacy policy' link was 26 px tall on a phone and the footer's 'Terms' 43 px
      wide. An inline link's padding grows its box (and what a finger can hit) without moving a line of text. */
.co a { padding: 9px 2px; margin: 0 -2px; }
footer.site a { min-width: 44px; justify-content: center; }
/* 3. No one-word last line in the new chapter's source line (at 390, the Largest text size: 'loom.' alone). */
.now-copy .src { text-wrap-style: pretty; }
/* 4. The hidden all-Lao switch (decision 80) showed as an empty 44 px ring in the header on every screen: .tool's
      display beat the hidden attribute. Hidden means not shown, until the owner approves its Lao. */
.tool[hidden], #lao-switch[hidden] { display: none !important; }
/* 5. The phrase row's arrows (app.js setupPhrases): a round chip-styled button on the side that has more, over the fade */
.chips-more { position: absolute; z-index: 2; width: 44px; height: 44px; padding: 0; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(241, 211, 138, .45); background: rgb(14, 12, 10); color: var(--gold-2); cursor: pointer; box-shadow: 0 0 0 6px rgba(2, 5, 7, .55); }
.chips-more svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chips-more[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .chips-more:hover { border-color: var(--gold-2); } }
html.no-gl .chips-more { display: none; }
/* 6. The new chapter's kicker names three places; held whole, its second part dropped to a line of its own at the
      Largest text size and left 'Laos ·' ending the first line. It may break between the places, at their commas. */
#ch-now .kicker .k2 { white-space: normal; }
/* 7. With the wide tier's larger H2, Noto's tall line box (it reaches about .19em below a .98 line) met the lede's top
      at 1920 (2,042 to 3,323 px², overlap.js) and 2560: the gap under an H2 grows with the H2. */
@media (min-width: 1600px) and (min-height: 860px) {
  .ch .copy h2:not(#h-river) + .lede { margin-top: calc(22px + (clamp(4.3rem, calc(8.5vw - 67.2px), 7rem) - 74px) * .4); }
}
/* ---- crew round 6 (craft and layout engineer). Layout and motion only: no word added or changed.
   1. A masked wipe instead of a cross-dissolve (judge 1: at 390, g 0.6, the opening's headline and waitlist button sat at
      about 40% over the globe's land and labels; at g 6.5 'Your turn', its mic and chips ghosted over the planet). app.js
      sets --wp from 0 to 1 while the block leaves and keeps it at full opacity with its reading shade under it; the mask
      takes the lines from below, with a soft edge 15% of the block tall, so a word is whole, or gone, or briefly in the edge. */
html.staged:not(.no-gl) .ch .copy.wipe {
  -webkit-mask-image: linear-gradient(to top, transparent calc(var(--wp, 0) * 115% - 15%), #000 calc(var(--wp, 0) * 115%));
  mask-image: linear-gradient(to top, transparent calc(var(--wp, 0) * 115% - 15%), #000 calc(var(--wp, 0) * 115%)); }
/* 2. The band carries the story's thread (judge 2: 'an ordinary document layout under one textile border; the last
      impression is a template'). One gold-thread line runs down the band's left edge, in the gutter, from the woven hem
      to the footer, as the family's threads ran across the planet; each block that starts on the band's left edge (the
      lead, the founder's line, the fine print) is a light on it. The founder's own rule gives way to the thread. Thread
      colour only (look.md's antique gold thread), never the Lao gold of the words. Layout only: no word changed. */
@media (min-width: 761px) and (min-height: 501px) {   /* (on a phone, upright or sideways, the gutter is 16 to 20 px: the thread would crowd the words) */
.band-in { position: relative; --tx: calc(var(--gutter) * -.5); }
.band-in::before { content: ""; position: absolute; left: var(--tx); top: calc(clamp(16px, 2vw, 28px) + 34px - clamp(64px, 6.6vw, 100px)); bottom: 0; width: 1px; pointer-events: none;
  background: linear-gradient(180deg, var(--thread-2), var(--thread) 22%, var(--thread) 82%, rgba(201, 162, 74, 0)); }
.band p.big, .band .founder-line p, .band .cols { position: relative; }
.band p.big::before, .band .founder-line p::before, .band .cols::before { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; pointer-events: none;
  left: calc(var(--tx) - 3px); background: #f1d9a0; box-shadow: 0 0 0 3px rgba(201, 162, 74, .16), 0 0 14px 2px rgba(232, 197, 101, .45); }
.band p.big::before { top: calc(.59em - 3.5px); }            /* on the first line's middle (line-height 1.18) */
.band .founder-line p::before { top: calc(.71em - 3.5px); }  /* (line-height 1.42) */
.band .cols::before { top: -4px; }                           /* on the hem's rule, where the fine print begins */
.band .founder { border-left: 0; padding-left: 0; }
}
/* the woven hem sits a little higher and the band's words start sooner after it, so the finale's words and the band's
   first line are never both off the screen (judge 2: a near-empty dark half screen between the finale and the band;
   tools/probes/deadzone.js counted 2 rows of 40 px at 1440 and 390 with under 4 words and under 4% light) */
.band { padding-top: clamp(64px, 6.6vw, 100px); }
.band::after { top: clamp(16px, 2vw, 28px); }
/* and the band's soft top edge is shorter (26vh to 9vh; 34vh to 12vh in light mode): app.js keeps the finale's lockup
   20 px above that edge (crew round 5), so a 234 px edge at 1440 x 900 held the lockup a third of a screen above the band
   and it left under the header before the band's first line arrived: an empty dark screen between them (judge 2). The
   woven hem now marks the band's top; the edge only softens it. */
.band::before { height: 9vh; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .band::before { height: 12vh; } }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .band-in::before { background: linear-gradient(180deg, rgba(138, 93, 0, .6), rgba(138, 93, 0, .3) 22%, rgba(138, 93, 0, .3) 82%, rgba(138, 93, 0, 0)); }
  :root:not([data-theme="dark"]) .band p.big::before, :root:not([data-theme="dark"]) .band .founder-line p::before, :root:not([data-theme="dark"]) .band .cols::before { background: #8a5d00; box-shadow: 0 0 0 3px rgba(138, 93, 0, .14); }
}
html.culture-off .band-in::before, html.culture-off .band p.big::before, html.culture-off .band .founder-line p::before, html.culture-off .band .cols::before { display: none; }

/* ---------- crew round 8, wave 2 (Lao cultural designer and craft and layout engineer; the owner's notes 5 and 6): the place stamp ----------
   "Where am I, what changed, why": a small chip under the header, in the kicker's own face (14 px, .12em, capitals, 500), on a dark
   glass of its own so it reads over the white-out of a dive (ink 9:1, teal 8:1 over the brightest frame, tools/probes/contrast.js).
   app.js sets --so (0 to 1, no transition, so a rest point never reads a half-faded chip) and writes its words: the place the camera is
   in or flying to, and a line on why the story moved. It is not part of the header, the rail or any chapter's words, and no scene label
   lands on it (app.js reserves its box). Reduced motion: --so is 0 or 1. */
.stamp { position: fixed; z-index: 6; left: max(var(--gutter), calc((100% - var(--wrap, 1400px)) / 2)); top: calc(var(--hdr) + 14px); max-width: min(560px, calc(100vw - 2 * var(--gutter)));
  padding: 9px 16px 10px; border-radius: 14px; background: rgba(2, 5, 7, .88); border: 1px solid rgba(143, 245, 214, .24); box-shadow: 0 0 0 1px rgba(2, 5, 7, .4), 0 8px 28px rgba(2, 5, 7, .5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: var(--so, 0); pointer-events: none; visibility: hidden; }
.stamp.on { visibility: visible; }
.stamp p { margin: 0; }
.st-1 { font-size: .875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); line-height: 1.45; }
.st-k { color: var(--teal); }
.st-k:not(:empty)::after { content: "\00a0\00b7\00a0"; }
.st-y { margin-top: 3px; font-size: .9375rem; line-height: 1.4; color: var(--ink-2); text-wrap-style: pretty; }
.st-y:empty { display: none; }
html:not(.gl-on) .stamp, html.no-gl .stamp, html.posters .stamp { display: none; }
@media (max-width: 760px) and (orientation: portrait), (max-width: 760px) and (min-height: 501px) { .stamp { left: 16px; right: 16px; max-width: none; top: calc(var(--hdr) + 10px); padding: 8px 14px 9px; } }
@media (max-height: 500px) and (orientation: landscape) { .stamp { left: var(--gutter); top: calc(var(--hdr) + 8px); max-width: min(46vw, 420px); padding: 6px 12px 7px; } .st-y { margin-top: 1px; } }
@media (prefers-color-scheme: light) { .stamp { background: rgba(2, 5, 7, .9); } }

/* crew round 8, wave 2: the band's words wait until the finale's lockup has left (app.js sets --bo); with no light, or before the script, they are always shown */
html.gl-on:not(.posters) .band-in { opacity: var(--bo, 1); }
/* wave 2b: the stamp's second slot, where a chapter's own words stand (free while they are away), when words are in the first (app.js stampGuard) */
/* wave 3: the low slot is the same box moved by a transform (app.js measures --ly from .stamp-probe, which stands where the slot ends): switching top for bottom was a layout shift, CLS 0.255 at 390 over a first scroll */
.stamp, .stamp-probe { --lb: max(44px, calc(env(safe-area-inset-bottom) + 30px)); }
.stamp.low { transform: translateY(var(--ly, 0px)); }
.stamp-probe { position: fixed; left: 0; width: 0; height: 0; bottom: var(--lb); visibility: hidden; pointer-events: none; }
@media (max-width: 760px) and (orientation: portrait), (max-width: 760px) and (min-height: 501px) { .stamp, .stamp-probe { --lb: max(26px, calc(env(safe-area-inset-bottom) + 18px)); } }
@media (max-height: 500px) and (orientation: landscape) { .stamp, .stamp-probe { --lb: max(12px, calc(env(safe-area-inset-bottom) + 8px)); } }


/* ---------- crew round 8, wave 3 (typographer; craft and layout; sound and performance): the welcome, the phone's chapter pill, Play the story in the hero ----------
   1. The quiet line under the hero: it says to scroll and how long the story is, and goes as soon as the visitor has scrolled (app.js sets --cue). */
.cue { margin: 14px 0 0; display: flex; align-items: center; gap: 10px; font-size: .875rem; line-height: 1.4; letter-spacing: .06em; color: var(--ink-3); pointer-events: none; }
.cue-ar { flex: none; width: 7px; height: 7px; border-right: 1.5px solid var(--gold-2); border-bottom: 1.5px solid var(--gold-2); transform: translateY(-2px) rotate(45deg); opacity: .8; }
html.staged:not(.no-gl).hero-in .hero > .cue { opacity: var(--cue, 1); transition: opacity .35s; }
html.staged:not(.no-gl) .hero > :nth-child(5) { transition-delay: .66s; }
html.staged:not(.no-gl).hero-in .hero > .cue { transition-delay: 0s; }
html.no-gl .cue, html:not(.js) .cue { display: none; }
@media (min-width: 761px) and (min-height: 501px) { .cue { position: absolute; left: 0; top: 100%; margin-top: 8px; white-space: nowrap; } }
@media (max-height: 500px) and (orientation: landscape) { .cue { display: none; } }
@media (max-width: 760px) and (orientation: portrait), (max-width: 760px) and (min-height: 501px) { .cue { margin-top: 6px; } }   /* (a phone: the line is in the block's flow; the block moves up by its height, so keep it to one tight line) */
@media (prefers-reduced-motion: reduce) { html.staged:not(.no-gl).hero-in .hero > .cue { transition: none; } }
/*    Play the story beside Hear it in Lao (desktop; phones and a sideways phone keep it in the Menu, where a touch stops the story anyway). */
.hero-play { display: none; min-height: 48px; padding: 0 20px 0 16px; gap: 11px; font-size: .9375rem; }
.hp-ic { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; opacity: .85; }
.hero-play[aria-pressed="true"] .hp-ic { width: 9px; height: 9px; border: 0; background: currentColor; border-radius: 1px; }
@media (min-width: 761px) and (min-height: 501px) { .hero-play { display: inline-flex; } }
/* 2. The chapter pill ("4 of 9 · Inside the interpreter"), where the bar has no room (a phone, or a narrow window or a large text size: app.js sets html[data-rail="pill"]):
   under the header's left edge, in from the first scroll (the hero's own line says it until then); it opens the Menu's chapter list. The place stamp moves down to make room for it. */
.chap-pill { display: none; }
html[data-rail="pill"] .chap-pill { display: inline-flex; align-items: center; position: absolute; left: max(16px, calc((100% - var(--wrap, 1400px)) / 2)); top: calc(100% - 2px); min-height: 40px; max-width: calc(100vw - 32px); padding: 0 14px 0 16px; border-radius: 999px; border: 1px solid rgba(246, 239, 224, .2);
  background: rgba(2, 5, 7, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ink); font: 500 .875rem/1 var(--font); letter-spacing: .02em; white-space: nowrap; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
html[data-rail="pill"] .chap-pill::after { content: ""; flex: none; width: 6px; height: 6px; margin: -3px 0 0 12px; border-right: 1.5px solid var(--gold-2); border-bottom: 1.5px solid var(--gold-2); transform: rotate(45deg); }
html[data-rail="pill"] .chap-pill.on { opacity: 1; visibility: visible; transition: opacity .3s; }
html[data-rail="pill"] header.site.past .chap-pill, html[data-rail="pill"] header.site.menu-open .chap-pill, html[data-rail="pill"] header.site.solid .chap-pill { opacity: 0; visibility: hidden; }
html[data-rail="pill"] .chap-pill.on.hit { opacity: 0; visibility: hidden; transition: opacity .12s, visibility 0s .12s; }   /* words sit under it (app.js stampGuard) */
html[data-rail="pill"] .stamp { top: calc(var(--hdr) + 54px); }
@media (max-width: 760px) and (orientation: portrait), (max-width: 760px) and (min-height: 501px) { html[data-rail="pill"] .chap-pill { left: 16px; } }
/*    A sideways phone: the pill takes its place in the header's row, between the brand and the tools. */
@media (max-height: 500px) and (orientation: landscape) {
  html[data-rail="pill"] .chap-pill { position: static; flex: 0 1 auto; min-width: 0; min-height: 36px; margin-left: 4px; padding: 0 14px; background: rgba(2, 5, 7, .5); overflow: hidden; text-overflow: ellipsis; }
  html[data-rail="pill"] .chap-pill::after { display: none; }
  html[data-rail="pill"] header.site.past .chap-pill, html[data-rail="pill"] header.site.menu-open .chap-pill { visibility: hidden; }
  html[data-rail="pill"] .stamp { top: calc(var(--hdr) + 8px); }
}
/* 3. The sound button says what it is on a phone (judge 3: an unlabelled icon). Largest text keeps the icon alone: the header has no room for the words. */
@media (max-width: 760px) and (orientation: portrait), (max-width: 760px) and (min-height: 501px) {
  .tool.snd { width: auto; padding: 0 14px 0 12px; gap: 8px; }
  .snd span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  html[data-aa="2"] .snd span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  html[data-aa="2"] .tool.snd { width: 44px; padding: 0; }
  html.inviting .tool.snd { visibility: hidden; }   /* the invitation to sound stands where the button does, for its 9 s (it is the same question); no layout moves */
}

/* wave 3c: the floor demonstration's tip, where the whole tip has no clear slot, is the phrase alone (app.js) */
.hover-tip.compact small { display: none; }
