/* HEY HEY LABS: "How we designed our own front door", a case study of the landing page (Fri 9 Oct 2026).
   Colours are the landing page's (variants/v3-r5/page.css, T2 Catalogue, U35; B64): Graphite ink on rice paper by day,
   Plasma on Graphite by night. Type (round 10): nr2 "Heavier" (U52) as variants/v4 sets it (round 2b), Newsreader
   only, its settings at the end of this file (round 8 brought nr1, U48); Source Code Pro (self-hosted, fonts/) only for code. Scale: 14, 15, 17, 18, 20, 22, 28, 36, 44,
   56, 72, 104. Space: 4, 8, 16, 24, 40, 64, 104, 160. Radius 2 px; the theme toggle is round. Buttons monochrome (B51). */

/* round 7: code in Source Code Pro 400 (Adobe, SIL OFL 1.1, fonts/SourceCodePro-LICENSE.md), Source Sans 3's companion;
   the file is Adobe's own woff2, unmodified (round 8: Source Sans 3 is gone; Source Code Pro stays, for code). Before, every <code> fell back to the browser's generic monospace */
@font-face { font-family: "Source Code Pro"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/SourceCodePro-Regular.ttf.8badfe75.woff2") format("woff2"); }

:root {
  --ground: #15171A; --raised: #1D2024; --ink: #F3F2F0; --ink-2: #CFD0D2; --steel: #9BA1A8; --rule: #2E3237;
  --btn: #F3F2F0; --on-btn: #15171A; --btn-hover: #E3E8FF; --btn-press: #CDD5FA;
  --quiet-line: rgba(243, 242, 240, 0.42); --quiet-line-hi: rgba(243, 242, 240, 0.7);
  --veil: rgba(21, 23, 26, 0.72); --wash: rgba(243, 242, 240, 0.08); --wash-2: rgba(243, 242, 240, 0.14);
  --focus: #E3E8FF; --plate: #E7E5E1;
  /* the type tokens of variants/v4/page.css: Newsreader only; --sans keeps its name for the rules that read it, and
     reads Newsreader. Round 10: nr2 "Heavier" (U52, v4's :root.type-nr2): headlines 500, the coda 400, labels and
     buttons in small capitals (capitals at 0.74 of the text size, 12.6 and 13.3 px, 500 and 520, tracked 0.08 em) */
  --display: "Newsreader", Georgia, serif;
  --text: "Newsreader", Georgia, serif;
  --sans: var(--text);
  --h-w: 500; --coda-w: 400;
  --lab-size: 12.6px; --lab-w: 500; --lab-track: 0.08em; --btn-size: 13.3px; --btn-sm: 12.6px; --btn-w: 520; --btn-track: 0.08em;
  --mono: "Source Code Pro", ui-monospace, monospace;
  --m: 24px; --head: 64px; --chap: 88px;   /* round 10: 104 on a phone before (U53, fewer screens) */
  --t-h1: 46px; --t-h2: 36px; --t-h3: 24px; --t-body: 18px; --t-coda: 26px; --t-cap: 15px;
  --mark-src: url("../mark.0c5527d1.svg");
  --ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --ground: #E7E5E1; --raised: #F2F1ED; --ink: #15171A; --ink-2: #33373C; --steel: #5A5F66; --rule: #CFCCC6;
  --btn: #15171A; --on-btn: #F6F7F6; --btn-hover: #2E3237; --btn-press: #3A3F45;
  --quiet-line: rgba(21, 23, 26, 0.5); --quiet-line-hi: rgba(21, 23, 26, 0.78);
  --veil: rgba(231, 229, 225, 0.8); --wash: rgba(21, 23, 26, 0.06); --wash-2: rgba(21, 23, 26, 0.12);
  --focus: #15171A;
  color-scheme: light;
}
@media (min-width: 600px) { :root { --m: 40px; --head: 72px; --t-h1: 72px; --t-h2: 48px; --t-h3: 26px; --t-coda: 30px; --chap: 136px; } }
@media (min-width: 960px) { :root { --m: max(64px, calc((100vw - 1312px)/2)); --t-h1: 104px; --t-h2: 56px; --t-h3: 28px; --t-body: 20px; --t-coda: 34px; --chap: 176px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 16px); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--t-body)/1.55 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-numeric: lining-nums; overflow-x: clip; }
/* the rice paper's grain by day, as on the landing page (faint, multiplied) */
/* the ground is flat in both themes, so the live canvases meet it with no visible edge */
main, .top { position: relative; z-index: 1; }
img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 20; padding: 15px 16px; background: var(--btn); color: var(--on-btn);
  font: 600 15px/1 var(--sans); text-decoration: none; border-radius: 2px; }
.skip:focus { top: 12px; }
.theme-night { display: none !important; }
:root[data-theme="dark"] .theme-night { display: block !important; }
:root[data-theme="dark"] .theme-day { display: none !important; }

.wrap { width: 100%; padding-inline: var(--m); margin-inline: auto; }

/* ---------- type ---------- */
h1 { font: 500 var(--t-h1)/1.0 var(--display); letter-spacing: -0.012em; text-wrap: balance; }
h2 { font: 500 var(--t-h2)/1.06 var(--display); letter-spacing: -0.008em; text-wrap: balance; }
h3 { font: 500 var(--t-h3)/1.18 var(--display); text-wrap: balance; }
.prose p, .prose-p { color: var(--ink-2); text-wrap: pretty; max-width: 34em; }
.prose p + p, .prose p + figure, .prose figure + p { margin-top: 1em; }
.coda { font: italic 400 var(--t-coda)/1.25 var(--display); color: var(--ink); }
.prose .coda { color: var(--ink); margin-top: 40px; }
figcaption, .small { font: 400 var(--t-cap)/1.45 var(--sans); color: var(--steel); text-wrap: pretty; }
.inline { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  text-decoration-color: var(--quiet-line); white-space: nowrap; transition: text-decoration-color 160ms ease, opacity 100ms ease-out; }
.inline:hover { text-decoration-color: var(--ink); }
.inline:active { color: var(--ink-2); }

/* ---------- the header: the lockup (t01 beside the name in Newsreader capitals, WM-111), the switch, one quiet action ---------- */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  height: var(--head); padding-inline: var(--m); background: color-mix(in srgb, var(--ground) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color 200ms ease; }
.top.scrolled { border-bottom-color: var(--rule); }
.brand { display: block; padding: 7px 0; color: var(--ink); text-decoration: none; border-radius: 2px; }   /* round 9: 44 px tall on a phone (30 + 14) */
.lk, .lockup { display: flex; align-items: center; }
.mark { display: block; flex: none; background: currentColor;
  -webkit-mask: var(--mark-src) center / contain no-repeat; mask: var(--mark-src) center / contain no-repeat; }
svg.wm { flex: none; overflow: visible; color: inherit; }
.top .lk { gap: 10px; }
.top .mark { width: 30px; height: 30px; margin-left: -2px; }
.top .wm { height: 14px; width: auto; aspect-ratio: 1499.42 / 136; }   /* round 10: nr2's outline (U52), v4's header sizes */
@media (min-width: 960px) { .top .mark { width: 32px; height: 32px; } .top .wm { height: 15px; } }
.top-end { display: flex; align-items: center; gap: 8px; margin-right: -10px; }
@media (max-width: 599.98px) { .top .talk { display: none; } }
@media (min-width: 600px) { .top-end { margin-right: 0; } }

.mode { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; margin: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color 160ms ease, transform 160ms var(--ease), opacity 100ms ease-out; }
.mode svg { width: 22px; height: 22px; overflow: visible; }
.mode .core { fill: currentColor; r: 7.5px; transition: r 300ms var(--ease); }
.mode .bite { transition: cx 300ms var(--ease), cy 300ms var(--ease); }
.mode .rays path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.mode .rays { transform-origin: 12px 12px; opacity: 0; transform: rotate(-45deg) scale(0.6);
  transition: transform 300ms var(--ease), opacity 180ms ease; }
[data-theme="light"] .mode .core { r: 4.25px; }
[data-theme="light"] .mode .bite { cx: 27px; cy: -3px; }
[data-theme="light"] .mode .rays { opacity: 1; transform: none; }
.mode:hover { background: var(--wash); }
.mode:active { background: var(--wash-2); transform: scale(0.94); }
.mode:focus-visible { outline-offset: 0; border-radius: 50%; }

/* ---------- buttons: monochrome (B51), one primary per view ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  font: 600 17px/1.2 var(--sans); text-decoration: none; text-align: center; border-radius: 2px; border: 1px solid transparent; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, opacity 100ms ease-out; }
.btn.primary { background: var(--btn); color: var(--on-btn); }
.btn.primary:hover { background: var(--btn-hover); }
.btn.primary:active { background: var(--btn-press); box-shadow: inset 0 2px 0 rgba(21, 23, 26, 0.2); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--quiet-line); }
.btn.quiet:hover { border-color: var(--quiet-line-hi); background: var(--wash); }
.btn.quiet:active { background: var(--wash-2); border-color: var(--quiet-line-hi); }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font: 600 17px/1.2 var(--sans); color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--quiet-line);
  border-radius: 2px; transition: text-decoration-color 160ms ease, opacity 100ms ease-out; }
.text-link:hover { text-decoration-color: var(--ink); }
.text-link:active { color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* ---------- the opening ---------- */
.opening { padding-top: 56px; }
.opening h1 { max-width: 11em; }
.standfirst { margin-top: 24px; max-width: 33em; color: var(--ink-2); font-size: calc(var(--t-body) + 2px); line-height: 1.5; text-wrap: pretty; }
.door { margin-top: 56px; }
.door img { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 2px; }
.door figcaption { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
/* round 7: on a phone the frame runs the text column (24 to 366 at 390) in both themes, its caption set left under it.
   Round 11 (the round-10 panel): the capture's top band, the landing page's own header (64 of its 390 px), is cropped
   off, so the first screen has one header; the frame takes the page's 2 px corner */
@media (max-width: 599.98px) {
  .door picture { display: block; overflow: hidden; border: 1px solid var(--rule); border-radius: 2px; }
  .door img { display: block; border: 0; border-radius: 0; margin-top: calc(-100% * 64 / 390); }
}
/* round 2: on a desktop the work leads. The headline and the standfirst share one row, and the landing page's capture
   runs the full width of the page directly under them, its top edge by y = 340 px on a 900 px screen */
@media (min-width: 960px) {
  .opening { padding-top: 48px; }
  .opening > .wrap:first-child { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: end; }
  /* round 11 (the round-10 panel): the standfirst starts on the right-hand column's one edge (column 7, 736 px at 1440),
     so the headline keeps to six columns, sized to keep its two lines 64 px clear of it (76 px at most, 71 at 1440) */
  .opening h1 { grid-column: 1 / span 6; max-width: none; font-size: clamp(56px, calc((min(100vw - 128px, 1312px)/2 - 48px)*0.1175), 76px); }
  .standfirst { grid-column: 7 / span 5; margin-top: 0; font-size: var(--t-body); padding-bottom: 6px; }
  .door { margin-top: 40px; padding-inline: max(24px, calc(var(--m) - 20px)); }
}

/* ---------- chapters ---------- */
.chapter { padding-top: var(--chap); }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 960px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
  .split > :first-child { grid-column: 1 / span 5; }
  .split > :last-child { grid-column: 7 / span 6; }
  .split h2 { padding-top: 4px; }
}

/* the mark: three steps, then the word */
.steps { margin-top: 64px; display: grid; gap: 56px; counter-reset: s; }
.step { position: relative; }
.step-art { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; margin-bottom: 24px; }
.step-art img { width: 92%; height: auto; }
:root[data-theme="light"] .step-art > img { mix-blend-mode: multiply; }
:root[data-theme="dark"] .step-art > img { mix-blend-mode: screen; }
.sph { position: relative; width: 84%; }
.sph img { width: 100%; height: auto; }
.sph .rim { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sph .rim circle { fill: none; stroke: rgba(21, 23, 26, 0.45); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.mk-big { width: 50%; height: 50%; color: var(--ink); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); max-width: 24em; text-wrap: pretty; }
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; }
  .step + .step .step-art::before { content: ""; position: absolute; top: 50%; left: -40px; width: 32px; height: 1px; background: var(--steel); opacity: 0.7; }
  .step + .step .step-art::after { content: ""; position: absolute; top: calc(50% - 3px); left: -14px; width: 6px; height: 6px; border-top: 1px solid var(--steel);
    border-right: 1px solid var(--steel); transform: rotate(45deg); opacity: 0.7; }
}
/* round 8: the name (04): the two outlines at one capital height, between the same two lines (1299.71 / 1498.08 of the
   width: one scale) */
.word { margin-top: 120px; align-items: center; }
.word .prose-p { margin-top: 16px; }
.word-fig { display: grid; gap: 32px; }
.word-row { display: grid; gap: 12px; }
.word-svg { width: 100%; height: auto; color: var(--ink); overflow: visible; }
.word-svg.word-hl { width: 86.76%; }
.word-fig line { vector-effect: non-scaling-stroke; stroke: var(--rule); stroke-width: 1; }
.word-k { color: var(--steel); }
/* round 11: the lockup that closed the name's story (05) is cut (the round-10 panel's remove-one); the close keeps it */

/* the type specimen (07): the landing page's own lines, each in its role (U48); on a desktop each row sits on the
   page's grid, its role under the headline's columns and its line under the paragraph's */
.spec-fig { margin-top: 88px; }
.spec { border-bottom: 1px solid var(--rule); }
.spec li { display: grid; gap: 10px; padding: 24px 0; border-top: 1px solid var(--rule); }
.spec-k { color: var(--steel); }
.spec-v { color: var(--ink); }
.sv-head { font: 500 var(--t-h2)/1.06 var(--display); text-wrap: balance; }
.sv-read { font: 400 var(--t-body)/1.55 var(--text); color: var(--ink-2); text-wrap: pretty; max-width: 28.5em; }
.sv-cap { font-size: var(--t-cap); line-height: 1.45; color: var(--steel); }
.sv-caps { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.sv-caps > span { white-space: nowrap; }
.spec-fig figcaption { margin-top: 16px; }
@media (min-width: 960px) {
  .spec li { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: baseline; padding: 28px 0; }
  .spec-k { grid-column: 1 / span 5; }
  .spec-v { grid-column: 7 / span 6; }
}

/* ---------- the live figures ---------- */
.live-split { align-items: center; }
.live-words .prose { margin-top: 24px; }
.stage-fig { position: relative; }
.stage { position: relative; aspect-ratio: 1 / 1; width: 100%; background: var(--ground); overflow: hidden;
  /* the live art fades out over its last few percent on every side, so a close-up never stops at a hard invisible edge */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent);
  mask-composite: intersect; }
.live-cv { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--ground); opacity: 0; transition: opacity 240ms ease; }
.live-cv.drawn { opacity: 1; }
/* P18 (B119 round 4): the stills are fetched after the page's load event (case.js adds .loaded), not with the first screen.
   round 3: until its engine has drawn its first frame, each stage shows the page's ground and a still of the same figure
   (captured from the engine on the GPU), so a fast flick never meets an empty box */
.stage { background-size: cover; background-position: center; background-repeat: no-repeat; }
:root.loaded #stage-sphere { background-image: url("assets/poster-sphere-night.30e1d260.webp"); }
:root.loaded #stage-closeup { background-image: url("assets/poster-closeup-night.563f9b81.webp"); }
:root.loaded #stage-whole { background-image: url("assets/poster-whole-night.92606faa.jpg"); }
:root.loaded[data-theme="light"] #stage-sphere { background-image: url("assets/poster-sphere-day.f331a84a.webp"); }
:root.loaded[data-theme="light"] #stage-closeup { background-image: url("assets/poster-closeup-day.c4b99bdb.webp"); }
:root.loaded[data-theme="light"] #stage-whole { background-image: url("assets/poster-whole-day.bdf169ed.jpg"); }
.live-cap { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.num { font-variant-numeric: tabular-nums; color: var(--ink); }
.ctl { flex: none; min-height: 44px; min-width: 88px; padding: 0 16px; border: 1px solid var(--quiet-line); border-radius: 2px; background: transparent;
  color: var(--ink); font: 600 15px/1 var(--sans); cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, opacity 100ms ease-out; }
.ctl:hover { background: var(--wash); border-color: var(--quiet-line-hi); }
.ctl:active { background: var(--wash-2); }
.ctl:disabled { opacity: 0.45; cursor: not-allowed; background: transparent; }
.no-gl .ctl, .reduced .ctl { display: none; }
.code { margin: 24px 0; padding: 20px 0 0; border-top: 1px solid var(--rule); }
.code pre { margin: 0; overflow-x: auto; font: 400 13px/1.6 var(--mono); color: var(--ink); tab-size: 2; }
/* round 7: the browser's own sheet sets code to its generic monospace; every code element takes the page's mono */
code { font-family: var(--mono); font-weight: 400; font-size: 13px; }
@media (min-width: 960px) { code { font-size: 14px; } }
.code figcaption { margin-top: 12px; }
@media (max-width: 959.98px) {
  .live-split { gap: 40px; }
  .stage-fig { margin-inline: calc(-1 * var(--m)); }
  .stage-fig .live-cap { padding-inline: var(--m); }
}
@media (min-width: 960px) {
  .live-split > .live-words { grid-column: 1 / span 5; }
  .live-split > .stage-fig { grid-column: 7 / span 6; }
  .live-split.flip > .live-words { grid-column: 7 / span 5; grid-row: 1; }   /* round 11: the one right-hand edge (was 8) */
  .live-split.flip > .stage-fig { grid-column: 1 / span 6; grid-row: 1; }
  .code pre { font-size: 14px; }
}
/* the close-up (round 2): its stage leads on a phone, in its own 358 by 420 frame above the words; on a desktop it
   runs out to the screen's left edge. live.js keeps the whole bird inside the stage's solid middle every frame */
@media (max-width: 959.98px) {
  .live-bird .stage-fig { order: -1; }
  .live-bird .stage { aspect-ratio: 358 / 420; }
}
@media (min-width: 960px) {
  .live-bird .stage-fig { margin-left: calc(-1 * var(--m)); }
  .live-bird .stage-fig .live-cap { padding-left: var(--m); }
}
.no-gl .stage::after { content: "This browser cannot draw the live engine."; position: absolute; inset: auto 0 16px 0; text-align: center; font: 400 15px/1.4 var(--sans); color: var(--steel); }

/* your bird's card */
.card { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); }
.card-no { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font: 500 40px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.card-label { font: 600 15px/1.2 var(--sans); color: var(--steel); }
.card-sub { margin-top: 8px; font: 400 15px/1.45 var(--sans); color: var(--steel); }
.genes { margin-top: 24px; width: 100%; border-collapse: collapse; font: 400 17px/1.3 var(--sans); font-variant-numeric: tabular-nums; }
.genes th, .genes td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.genes thead th { font: 600 14px/1.3 var(--sans); color: var(--steel); padding-top: 0; transition: color 300ms ease; }
.genes tbody th { font: 400 15px/1.3 var(--sans); color: var(--steel); width: 34%; }
.genes td { color: var(--ink-2); width: 33%; transition: color 300ms ease; }
.card[data-life="a"] .genes td:nth-child(2), .card[data-life="b"] .genes td:nth-child(3) { color: var(--ink); font-weight: 600; }
.card[data-life="a"] #th-a, .card[data-life="b"] #th-b { color: var(--ink); }
.others { margin-top: 104px; }
.others-h { font: 400 var(--t-cap)/1.45 var(--sans); color: var(--steel); max-width: 40em; }
.plates { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plates li { background: var(--plate); border-radius: 2px; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.plates img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 6%; }
/* round 4: by night the birds are drawn in light on the page's own Graphite, with no tile and no border (U30) */
:root[data-theme="dark"] .plates li { background: none; }
:root[data-theme="dark"] .plates img { mix-blend-mode: normal; padding: 0; }
@media (min-width: 960px) { .plates { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }

/* ---------- day and night ---------- */
.compare { margin-top: 64px; position: relative; }
.cmp-frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--rule); border-radius: 2px; touch-action: pan-y; }
.cmp-frame picture, .cmp-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-day { clip-path: inset(0 calc(100% - var(--cut)) 0 0); }
.cmp-rule { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 1px; margin-left: -0.5px; background: #F3F2F0; box-shadow: 0 0 0 1px rgba(21, 23, 26, 0.35); pointer-events: none; }
.cmp-knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: #F3F2F0; box-shadow: 0 0 0 1px rgba(21, 23, 26, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cpath d='M17 16l-6 6 6 6M27 16l6 6-6 6' fill='none' stroke='%2315171A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* round 3: the two labels sit in one caption row under the frame, never on the capture they label */
.cmp-key { margin-top: 12px; display: flex; justify-content: space-between; font: 600 14px/1.2 var(--sans); color: var(--ink); }
.cmp-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.compare:has(.cmp-range:focus-visible) .cmp-frame { outline: 2px solid var(--focus); outline-offset: 3px; }
.compare:has(.cmp-range:active) .cmp-knob { transform: scale(0.94); }
.compare figcaption { margin-top: 16px; max-width: 40em; }
/* round 3: on a phone the frame takes the phone capture's own shape (1170 by 2532), so nothing of it is cropped */
@media (max-width: 599.98px) {
  .cmp-frame { aspect-ratio: 1170 / 2532; }
}

/* ---------- the process ---------- */
.method { margin-top: 64px; display: grid; gap: 32px; counter-reset: m; }
.method li { counter-increment: m; border-top: 1px solid var(--rule); padding-top: 20px; }
.method li::before { content: counter(m); display: block; font: 500 36px/1 var(--display); color: var(--steel); margin-bottom: 16px; font-variant-numeric: lining-nums; }
.method h3 { margin-bottom: 8px; }
.method p { color: var(--ink-2); text-wrap: pretty; }
@media (min-width: 720px) { .method { grid-template-columns: repeat(2, minmax(0, 1fr)); } }   /* round 7: the page's 32 px gutter (gap above) */
/* two columns of two on desktop and laptop: four across left each column 36 to 43 characters (round 6b, measure 45 to 75);
   round 7: the column gap is the page gutter, so column 2 starts on the intro paragraph's left edge (736 at 1440, 656 at 1280) */
@media (min-width: 1100px) { .method { row-gap: 48px; } .method p { font-size: 18px; max-width: 27em; } }
.figures { margin-top: 88px; display: grid; gap: 32px; }
.figures li { display: grid; gap: 6px; }
.figures .fig { font: 500 72px/1 var(--display); color: var(--ink); font-variant-numeric: lining-nums; }
.figures .cap { font: 400 15px/1.45 var(--sans); color: var(--steel); max-width: 18em; }
/* round 2: where each public number comes from, one line under it (NOTES has the full record) */
.src { font: 400 14px/1.45 var(--sans); color: var(--steel); max-width: 24em; text-wrap: pretty; }
.figures .src { margin-top: 2px; }
.live-words .src { margin-top: 16px; }
@media (min-width: 720px) { .figures { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; } .figures .fig { font-size: 104px; } }
.pairs-h { margin-top: 120px; }
.pair { margin-top: 40px; display: grid; gap: 32px; }
.pair + .pair { margin-top: 72px; }
.pa .shot { display: block; border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; transition: border-color 160ms ease, opacity 100ms ease-out; }
.pa .shot:hover { border-color: var(--steel); }
.pa img { width: 100%; height: auto; }
.pa figcaption { margin-top: 14px; max-width: 34em; }
.score { display: block; font: 500 36px/1.1 var(--display); color: var(--ink); margin-bottom: 4px; }
/* round 3: every before and after shows whole at every width (round 2's phone half crop cut out the subjects); each
   image links to its full-size file, and a line under the heading says so */
.pairs-note { margin-top: 12px; font: 400 15px/1.45 var(--sans); color: var(--steel); }
@media (min-width: 720px) { .pair:not(.pair-wide) { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.thrown { margin-top: 104px; padding-top: 32px; border-top: 1px solid var(--rule); max-width: 36em;
  font: italic 300 var(--t-coda)/1.3 var(--display); color: var(--ink); text-wrap: pretty; }

/* ---------- the platform (round 8): the stack module is cut (C27); one line and a link to the Asimov Cloud page ---------- */
.platform { padding-top: 104px; }
@media (max-width: 599.98px) { .platform { padding-top: 64px; } }   /* round 10: nearer the process story than a chapter (88) on a phone too */   /* one line closing the process story, nearer it than a chapter */
.platform .lead { max-width: 34em; color: var(--ink-2); text-wrap: pretty; }

/* ---------- the close ---------- */
.close { padding-top: var(--chap); }
.close-in { display: grid; justify-items: center; text-align: center; gap: 32px; padding-top: 64px; padding-bottom: 104px; }
.lockup-close { --cm: 64px; color: var(--ink); flex-direction: column; gap: calc(var(--cm) * 14 / 56); }
.lockup-close .mark { width: var(--cm); height: var(--cm); }
.lockup-close .wm { height: calc(var(--cm) * 24 / 56); width: auto; aspect-ratio: 1504.42 / 141; }   /* nr2 (round 10) at v4's proportions */
.close-line { font-size: calc(var(--t-coda) + 6px); }
.close .actions { justify-content: center; }
@media (min-width: 960px) {
  .lockup-close { --cm: 104px; flex-direction: row; gap: calc(var(--cm) * 32 / 88); }
  .lockup-close .wm { height: calc(var(--cm) * 46 / 88); }
}
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px 40px; border-top: 1px solid var(--rule); }
.legal { font: 400 14px/1.4 var(--sans); color: var(--steel); }
.legal a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; margin-block: -12px; color: var(--steel); text-underline-offset: 4px; }
.legal a:hover { color: var(--ink); }

/* ---------- theme change and reduced motion ---------- */
.theme-fade, .theme-fade * { transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- round 5 ---------- */
/* the measure: no line on a desktop runs over 75 characters (tools/measure.mjs, shots/round-5/measure.json). Newsreader
   sets about 2.4 characters to the em, Source Sans 3 about 2.5, so each block is held to 28.5 to 30 em */
.prose p, .prose-p, .platform .lead { max-width: 28.5em; }
main figcaption:not(.live-cap), main .src, .others-h, .pairs-note { max-width: 29em; }
.thrown { max-width: 28.5em; }
/* the opening's landing page capture on a desktop: round 4 ran it the full width, so its own headline sat as large as
   this page's. At 0.62 of that width, centred, this page's headline is the only headline on the first screen */
@media (min-width: 960px) {
  .door { display: grid; justify-items: center; }
  .door picture { width: 62%; }
  .opening .door figcaption { width: 62%; max-width: none; }   /* round 7: wins over the 29em measure, so the caption starts on the frame's left edge */
}
/* the before and after viewer: each image opens over the page, never as a bare file */
.lb { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: color-mix(in srgb, var(--ground) 90%, transparent); color: var(--ink); overscroll-behavior: contain; }
.lb[open] { display: block; }
.lb::backdrop { background: transparent; }
/* round 9: the image sits in a frame under the close button's band (64 px), so the button never covers it; on a desktop at
   its own size, up to the screen; on a phone at twice the page's column, panned with one finger and pinch-zoomed */
.lb-pan { position: absolute; inset: 64px 0 0 0; overflow: auto; overscroll-behavior: contain; }
.lb-in { min-width: 100%; min-height: 100%; width: max-content; display: grid; place-items: center; padding: 0 24px 24px; }
.lb img { display: block; max-width: calc(100vw - 48px); max-height: calc(100dvh - 88px); width: auto; height: auto; border: 1px solid var(--rule); border-radius: 2px; background: var(--ground); }
@media (max-width: 599.98px) {
  .lb-pan { touch-action: pan-x pan-y; }
  .lb-in { padding: 0 16px 16px; }
  .lb img { width: calc(2*(100vw - 48px)*var(--z, 1)); max-width: none; max-height: none; }
}
.lb-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--quiet-line); border-radius: 2px; background: var(--ground); color: var(--ink); cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, opacity 100ms ease-out; }
.lb-close:hover { background: var(--wash); border-color: var(--quiet-line-hi); }
.lb-close:active { background: var(--wash-2); }
.lb-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.pa .shot { cursor: zoom-in; }
html:has(.lb[open]) { overflow: hidden; }

/* ---------- round 6 ---------- */
/* "Three befores and afters." at the page's H2 style, as "How we judged it." (the review's top fix 3). On a phone the H2
   is 36 px, the scores' own size, so there the scores step down to 30 px and the heading stays the louder */
.pairs-h { font: 500 var(--t-h2)/1.06 var(--display); letter-spacing: -0.008em; }
.pairs-h + .pairs-note { margin-top: 16px; }
@media (max-width: 599.98px) { .pa .score { font-size: 30px; } }
/* the mark's origin as one figure the reader's scroll moves through (morph.js, the review's top fix 1): with a script
   and motion allowed only; reduced motion, ?reduced=1 and no 2D canvas (.off) keep the three stills exactly as before */
.morph { display: none; }
.morph-stage { position: relative; aspect-ratio: 1 / 1; width: 100%; overflow: hidden; }
.morph-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.morph-sph { position: absolute; max-width: none; opacity: 0; pointer-events: none; }
.morph-mark { position: absolute; color: var(--ink); opacity: 0; }
/* until the figure has drawn (its path is traced in an idle moment after load), the path's own still holds its place,
   at the figure's scale: 1,020 of the still's units are 2.14 sphere radii at 0.38 of the stage each */
.morph-poster { position: absolute; left: 50%; top: 50%; width: 83.08%; height: auto; max-width: none; transform: translate(-50%, -50%); pointer-events: none; }
.morph-stage.drawn .morph-poster { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .js .mark-morph:not(.off) { margin-top: 56px; display: grid; gap: 32px; }
  .js .mark-morph:not(.off) .morph { display: block; width: 100%; max-width: min(520px, calc(100svh - var(--head) - 120px)); justify-self: center; }
  .js .mark-morph:not(.off) .steps { margin-top: 0; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .js .mark-morph:not(.off) .step-art { display: none; }
  .js .mark-morph:not(.off) .step { padding: 18px 0 22px; border-top: 1px solid var(--rule); transition: border-color 240ms ease; }
  .js .mark-morph:not(.off) .step h3, .js .mark-morph:not(.off) .step p { color: var(--steel); transition: color 240ms ease; }
  .js .mark-morph[data-step="1"]:not(.off) .step:nth-child(1),
  .js .mark-morph[data-step="2"]:not(.off) .step:nth-child(2),
  .js .mark-morph[data-step="3"]:not(.off) .step:nth-child(3) { border-top-color: var(--ink); }
  .js .mark-morph[data-step="1"]:not(.off) .step:nth-child(1) h3,
  .js .mark-morph[data-step="2"]:not(.off) .step:nth-child(2) h3,
  .js .mark-morph[data-step="3"]:not(.off) .step:nth-child(3) h3 { color: var(--ink); }
  .js .mark-morph[data-step="1"]:not(.off) .step:nth-child(1) p,
  .js .mark-morph[data-step="2"]:not(.off) .step:nth-child(2) p,
  .js .mark-morph[data-step="3"]:not(.off) .step:nth-child(3) p { color: var(--ink-2); }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 960px) {
  .js .mark-morph:not(.off) { margin-top: 64px; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: center; }
  .js .mark-morph:not(.off) .morph { grid-column: 1 / span 6; max-width: min(100%, calc(100svh - var(--head) - 160px)); justify-self: start; }
  .js .mark-morph:not(.off) .steps { grid-column: 7 / span 5; }   /* round 11: the one right-hand edge (was 8) */
}
/* round 7: on a phone the figure holds under the header, its art 280 px square from y 72, while its three captions pass
   beneath it, so each caption lights directly under the state it names (morph.js reads the scrub off the captions
   there). The band is the page's own ground; a caption passing up fades over its last 16 px and goes under it. The
   captions stand 160 px apart, so the art changes while the space between two of them crosses the band's foot. It
   holds for the captions' length, under one screen (M40 allows 1.2) */
@media (prefers-reduced-motion: no-preference) and (max-width: 599.98px) {
  .js .mark-morph:not(.off) { display: block; }
  /* round 8 (the coordinator, from the gate measuring art on solid stages): the band runs 16 px past the art, so a caption
     coming out from under it is 24 px or more clear of the sphere on its first frame (it measured 18 px in one frame) */
  .js .mark-morph:not(.off) .morph { position: sticky; top: var(--head); z-index: 2; max-width: none; padding-top: 8px; padding-bottom: 16px; background: var(--ground); }
  .js .mark-morph:not(.off) .morph::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px;
    background: linear-gradient(var(--ground), transparent); pointer-events: none; }
  .js .mark-morph:not(.off) .morph-stage { width: 280px; margin-inline: auto; }
  .js .mark-morph:not(.off) .steps { margin-top: 16px; row-gap: 160px; }
}
/* round 7: on a phone each before and after shows a 2x crop of the area its caption names; the viewer still opens the
   whole screenshot. --x, --y: the crop's top left corner, in crop widths; --ar: its shape. In the files' own pixels: the
   words and buttons (40, 0, 800 by 290; 40, 240, 800 by 500), the day sphere (265, 280, 400 square), the bird (60, 270,
   400 square), the tiles (643, 0, 1312 by 552) and the logos (1394, 0, 1440 by 542) */
@media (max-width: 599.98px) {
  .pa .shot { box-sizing: content-box; aspect-ratio: var(--ar, auto); min-height: 0; }
  .pa .shot img { width: 200%; max-width: none; margin-left: calc(var(--x, 0) * -100%); margin-top: calc(var(--y, 0) * -100%); }
  .pa .shot[href$="pair-page-r1-below.1e02d390.jpg"] { --x: 0.05; --y: 0; --ar: 800 / 290; }
  .pa .shot[href$="pair-page-now.d2ac6ef5.jpg"] { --x: 0.05; --y: 0.28; --ar: 800 / 525; }   /* round 9: v4's words and buttons (40, 224, 800 by 525) */
  .pa .shot[href$="pair-stack-r1.3647e13b.jpg"] { --x: 0.4901; --y: 0; --ar: 1312 / 552; }
  .pa .shot[href$="pair-stack-r7.682d819a.jpg"] { --x: 0.9681; --y: 0; --ar: 1440 / 542; }
}

/* ---------- the type settings, ported from variants/v4/page.css ("the type settings"). Round 8 brought nr1 "Publisher"
   (U48); round 10 moves to nr2 "Heavier" (U52, v4's round 2b), through the tokens at the top of this file: headlines
   Newsreader 500 at optical size 72 with nr2's tracking; reading text Newsreader 400; buttons, text links, labels, the
   openers and the footer in small capitals (12.6 and 13.3 px, 500 and 520, 0.08 em); captions italic 400; figures
   tabular lining. Sizes and line heights stay the page's own ---------- */
h1, h2, h3, .coda, .score, .figures .fig, .card-no, .method li::before, .thrown, .sv-head { font-variation-settings: "opsz" 72; }
h1 { letter-spacing: -0.012em; }
h2, .pairs-h, .sv-head, .sheet-t { letter-spacing: -0.01em; }
@media (min-width: 960px) { h1 { letter-spacing: -0.024em; } h2, .pairs-h, .sv-head, .sheet-t { letter-spacing: -0.022em; } }   /* round 10: nr2's tracking (v4 --h1-ls-d, --h2-ls-d) */
.btn, .text-link, .inline, .skip, .ctl, .sv-caps { font-family: var(--text); font-style: normal; font-weight: var(--btn-w); font-size: var(--btn-size);
  letter-spacing: var(--btn-track); text-transform: uppercase; font-variation-settings: normal; line-height: 1.2; }
.btn, .skip, .ctl { text-indent: var(--btn-track); }
.btn.small, .ctl, .inline { font-size: var(--btn-sm); }
.sv-caps { color: var(--ink); }
.card-label, .genes thead th, .genes tbody th, .cmp-key, .legal, .word-k, .spec-k { font-family: var(--text); font-style: normal;
  font-weight: var(--lab-w); font-size: var(--lab-size); letter-spacing: var(--lab-track); text-transform: uppercase; font-variation-settings: normal; }
.legal a { font-style: italic; font-weight: 400; font-size: 16px; letter-spacing: 0; text-transform: none; }
figcaption, .card-sub, .others-h, .figures .cap, .src, .pairs-note, .live-state, .sv-cap, .no-gl .stage::after { font-family: var(--text);
  font-style: italic; font-weight: 400; letter-spacing: 0; }
.genes, .num, .src, .live-state, .card-sub { font-variant-numeric: tabular-nums lining-nums; }
.card[data-life="a"] .genes td:nth-child(2), .card[data-life="b"] .genes td:nth-child(3) { font-weight: 500; }
code { font-style: normal; }   /* Source Code Pro has no italic here: no slanted copy inside an italic source line */

/* ---------- round 9 (the round-8 panel, NINE.md: subtraction first, then the named fixes) ---------- */
/* the third live canvas is cut: the card follows the words on a phone and takes the canvas's column on a desktop, its
   rule level with the top of "One phoenix per visitor." */
.live-yours .card { margin-top: 0; }
@media (min-width: 960px) { .live-yours .live-split { align-items: start; } }
/* below 720 px each before and after sits side by side, two columns 8 px apart (167 px each on a 390 px phone), the
   score at 20 px over its caption */
@media (max-width: 719.98px) {
  .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
  .pa .score { font-size: 20px; }
}
/* "Not everything made it..." in the reading style: Newsreader 400 roman, 18 px on a phone, 20 on a desktop */
.thrown { font: 400 var(--t-body)/1.55 var(--text); font-variation-settings: normal; color: var(--ink-2); }

/* ---------- round 10 (U53): the landing page's panels (variants/v4/page.css "the panel", B6's system) ---------- */
/* The scroll keeps each chapter's heading, its words and its figure; the long parts (the names, the four roles, the
   method, the figures, the befores and afters) open over the page from openers named after their panels (C28). */
:root { --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px); }
/* the opener: v4's quiet way to more, the panel's name in the label face beside a hairline plus that turns on hover */
.more { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 0 2px 0 0; border: 0; background: none;
  cursor: pointer; font-family: var(--text); font-style: normal; font-weight: var(--btn-w); font-size: var(--btn-size); line-height: 1.2;
  letter-spacing: var(--btn-track); text-transform: uppercase; color: var(--ink-2); border-radius: 2px; transition: color 160ms ease, opacity 100ms ease-out; }
.more-i { position: relative; display: block; width: 18px; height: 18px; flex: none; border: 1px solid var(--quiet-line); border-radius: 50%;
  transition: border-color 160ms ease, transform 240ms var(--ease); }
.more-i::before, .more-i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 1px; margin: -0.5px 0 0 -4px; background: currentColor; }
.more-i::after { transform: rotate(90deg); }
@media (hover: hover) { .more:hover { color: var(--ink); } .more:hover .more-i { border-color: var(--quiet-line-hi); transform: rotate(90deg); } }   /* no sticky hover on a phone */
.more:active { color: var(--ink-2); }
.more[aria-expanded="true"] .more-i { transform: rotate(45deg); }
.prose .more, .word .more { margin-top: 14px; }
.openers { margin-top: 14px; display: grid; justify-items: start; }
.prose p + .openers { margin-top: 14px; }
/* the name's words: the heading over the words' column's left, the words and their opener on the right (as the chapters) */
.word { margin-top: 104px; align-items: start; }
.word .prose-p { margin-top: 0; }
@media (max-width: 959.98px) { .word { margin-top: 72px; } .word .prose-p { margin-top: 0; } }

/* the dialog (v4): fixed, one raised ground, a hairline, the brand's 2 px; the page behind it veiled, so its words never
   read through beside the panel's */
html.panel-open { overflow: hidden; }
.panel { position: fixed; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: 2px; background: var(--raised); color: var(--ink);
  max-width: none; max-height: none; overflow: hidden; }
:root { --panel-veil: rgba(21, 23, 26, 0.84); }
:root[data-theme="light"] { --panel-veil: rgba(231, 229, 225, 0.86); }
.panel::backdrop { background: var(--panel-veil); }
.panel[open] { animation: panel-in 240ms var(--ease) both; }
.panel[open]::backdrop { animation: veil-in 240ms ease both; }
.panel.closing { animation: panel-out 140ms ease-in both; }
.panel.closing::backdrop { animation: veil-out 140ms ease-in both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes panel-out { to { opacity: 0; transform: translateY(6px); } }
@keyframes veil-in { from { opacity: 0; } }
@keyframes veil-out { to { opacity: 0; } }
.pane.swap { animation: pane-in 220ms var(--ease) both; }
@keyframes pane-in { from { opacity: 0; } }
/* the scroller is static, so the close button sits on the panel itself, never in the scrolling content */
.panel-in { position: static; height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 0 40px 48px 32px; }
.close-x { position: absolute; z-index: 3; right: 12px; top: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background-color 160ms ease, opacity 100ms ease-out; }
.close-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
@media (hover: hover) { .close-x:hover { background: var(--wash); } }
.close-x:active { background: var(--wash-2); }
/* the heading row: the pane's heading mirrored into a bar that stays at the panel's top on its own ground; the content
   fades under the bar's last 24 px once scrolled. The pane's own heading stays for screen readers and focus */
.sheet-bar { display: block; position: sticky; top: 0; z-index: 1; margin: 0 -40px 0 -32px; padding: 40px 72px 0 32px;
  background: var(--raised); pointer-events: none; }
.sheet-bar::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 24px; opacity: 0; transition: opacity 160ms ease;
  background: linear-gradient(var(--raised), color-mix(in srgb, var(--raised) 0%, transparent)); }
.panel.scrolled .sheet-bar::after { opacity: 1; }
.sheet-t { display: block; max-width: 15em; font: var(--h-w) 38px/1.06 var(--display); font-variation-settings: "opsz" 72; color: var(--ink); text-wrap: balance; }
.pane > h2 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; outline: none; }
.pane { padding-top: 8px; }
.pane p, .pane figcaption { max-width: 30em; }

/* desktops: over the column its opener sits in (--px, that column's left edge, set on open), its text six columns wide
   (50vw - m - 16 px: 640 at 1440, 560 at 1280), the chapter's heading or figure veiled beside it */
@media (min-width: 960px) {
  .panel { left: calc(var(--px, 50vw) - 33px); right: auto; top: calc(var(--head) + 16px); bottom: auto; width: calc(50vw - var(--m) + 58px); height: auto;
    max-height: calc(100svh - var(--head) - 40px); }   /* under the header's band, so nothing of it shows above the panel */
  .panel-in { max-height: inherit; }
}
/* phones and tablets: a sheet from the foot, its top under the opener; on its first scroll it rises to near full height;
   a downward drag of 80 px or a tap above it closes it (case.js) */
@media (max-width: 959.98px) {
  .panel { left: 0; right: 0; bottom: 0; top: var(--sheet-top, 40svh); width: 100%; height: auto; border-width: 1px 0 0; border-radius: 2px 2px 0 0;
    transition: top 280ms var(--ease); }
  .panel.tall { top: calc(var(--safe-t) + 44px); }
  .panel.dragging { transition: none; }
  .panel-in { padding: 0 var(--m) calc(40px + var(--safe-b)); }
  .panel[open] { animation-name: sheet-in; animation-duration: 240ms; }
  .panel.closing { animation-name: sheet-out; animation-duration: 140ms; }
  @keyframes sheet-in { from { transform: translateY(32px); opacity: 0; } }
  @keyframes sheet-out { to { transform: translateY(32px); opacity: 0; } }
  .sheet-bar { margin: 0 calc(-1 * var(--m)) 4px; padding: 18px 64px 12px var(--m); }
  .sheet-bar::before { content: ""; position: absolute; left: 50%; top: 7px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--rule); }
  .sheet-t { font-size: 23px; line-height: 1.15; }
  .close-x { right: 8px; top: 8px; }
}
.reduced .panel[open], .reduced .panel.closing, .reduced .panel[open]::backdrop, .reduced .panel.closing::backdrop, .reduced .pane.swap { animation: none; }
.reduced .panel { transition: none; }

/* the panes. The names: three outlines at one scale (Heavier the widest), between the same capital and base lines */
.pane .word-fig { margin-top: 24px; display: grid; gap: 28px; }
.pane .word-svg.word-hl { width: 86.68%; }   /* 1299.71 / 1499.42 */
.pane .word-svg.word-nr1 { width: 99.91%; }  /* 1498.08 / 1499.42 */
/* the four roles: one column, each role over its line */
.pane .spec-fig { margin-top: 16px; }
.pane .spec li { grid-template-columns: none; display: grid; gap: 10px; padding: 20px 0; }
.pane .spec-k, .pane .spec-v { grid-column: auto; }
.pane .sv-head { font-size: 40px; }
.pane .sv-read { font-size: 18px; }
/* the method: numbered, as v4's "How a change ships" */
.pane .method { margin-top: 20px; display: block; border-top: 1px solid var(--rule); }
.pane .method li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 8px; padding: 16px 0; border-top: 0; border-bottom: 1px solid var(--rule); }
.pane .method li::before { grid-row: span 2; margin: 0; font: 400 16px/1.75 var(--text); color: var(--steel); font-variant-numeric: tabular-nums lining-nums; }
.pane .method h3 { margin: 0; font: var(--h-w) 22px/1.3 var(--display); font-variation-settings: "opsz" 72; }
.pane .method p { margin-top: 6px; font-size: 17px; line-height: 1.55; max-width: 30em; }
/* the figures: each count beside what it counts and where it was counted */
.pane .figures { margin-top: 20px; display: block; border-top: 1px solid var(--rule); }
.pane .figures li { display: grid; grid-template-columns: 116px minmax(0, 1fr); column-gap: 24px; row-gap: 4px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.pane .figures .fig { grid-row: span 2; font-size: 64px; line-height: 0.9; }
.pane .figures .cap { font-size: 17px; color: var(--ink); max-width: none; }
.pane .figures .src { margin-top: 0; max-width: none; }
/* the befores and afters: each pair before over after, the panel's whole width; the viewer still opens each larger */
.pane .pairs-note { margin-top: 12px; }
.pane .pair { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.pane .pair + .pair { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--rule); }
.pane .pa figcaption { margin-top: 10px; }
.pane .score { font-size: 26px; }
.pane .thrown { margin-top: 36px; padding-top: 28px; font-size: 17px; max-width: 30em; }
@media (max-width: 599.98px) {
  .pane .sv-head { font-size: 30px; }
  .pane .sv-read { font-size: 17px; }
  .pane .method h3 { font-size: 20px; }
  .pane .figures li { grid-template-columns: 84px minmax(0, 1fr); column-gap: 16px; }
  .pane .figures .fig { font-size: 46px; }
  .pane .score { font-size: 22px; }
  .pane .pair { gap: 24px; }
}
.panel.dropping::backdrop { animation: veil-out 140ms ease-in both; }
html:not(.js) .more { display: none; }
/* no dialog element (an old browser): the panels' words stand at the page's foot, the openers stepped aside */
.panel.flat { position: static; display: block; border: 0; background: none; padding: 0 var(--m) 64px; }
.panel.flat .sheet-bar, .panel.flat .close-x { display: none; }
.panel.flat .pane > h2 { position: static; width: auto; height: auto; margin: 64px 0 0; overflow: visible; clip: auto; white-space: normal; }
/* the code that draws it, and the four other birds, in the panel's one column */
.pane .code { margin: 20px 0 0; }
.pane .code + p { margin-top: 20px; color: var(--ink-2); }
.pane .src { margin-top: 12px; }
.pane .others-h { margin-top: 12px; }
.pane .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
:root[data-theme="dark"] .pane .plates li { background: var(--ground); }   /* a plate in both themes: Graphite on the raised ground */

/* ---------- round 11 (the round-10 panel) ---------- */
/* critic B finding 4: no browser tap flash. A press dims a link, button or opener to .55 at once; it comes back over
   100 ms (each control's transition carries opacity 100ms ease-out; a plain link or button takes it from here) */
html, a, button, input, label, summary { -webkit-tap-highlight-color: transparent; }
a, button { transition: opacity 100ms ease-out; }
:is(a, button):active { opacity: .55; transition-duration: 0s !important; }
/* C31 (Tim): on a touch screen the comparison's caption drops "or use the arrow keys" */
@media (hover: none) and (pointer: coarse) { .compare .keys { display: none; } }

/* B119 round 4 (Decision HHL-BRAND B119-WEB-ARCHIVO): one name across the site. The header and the close set HEY HEY LABS
   in the landing's Archivo drawing (variants/v4/wordmark/ar4), at the landing's header size and gap; every other line
   keeps its Newsreader */
.top .wm { height: 13.6px; aspect-ratio: 1744.92 / 136; }
.top .lk { gap: 4.8px; }
@media (min-width: 960px) { .top .wm { height: 14.5px; } .top .lk { gap: 5.1px; } }
.lockup-close .wm { aspect-ratio: 1749.92 / 141; }
