/* ============================================================================
   site/film.css: the page after the first screen, six acts and the night.

   index.css is the cold open; this file is everything after it. The rules at the top are the finished
   still: every act composed, every word in place, nothing waiting on a motion to be read, and every block
   rendered where it stands (no placeholder whose height could move the scrollbar when the real block
   arrives). The motion is a second layer at the end, inside one guard (a wide screen, a reader who has not
   asked for less motion, and a browser with scroll-driven animations): there some acts hold the frame while
   the reader's scroll plays them. Five moves only: a dissolve, a cut, an inscription, a push, and the frame
   opening from 2.39:1 to full height. Time is the scroll. One thing below runs on a clock, at every width: an
   act's headline types itself out once the reader reaches it, as the hero's does.

   01 Set  02 Slates and type  03 The record  04 Tested with  05 How it works  06 The rules
   07 The hard cases  08 The night  09 Work with us  10 Footer  11 Modes  12 Focus  13 Motion
   ============================================================================ */

/* ----- 01 Set: the frame, the grid, the light -------------------------------------------------------
   One frame for every act: 1280 px wide on a laptop, growing with a large screen (72% of its width) so a
   2560 px monitor is filled the way a 1440 px one is. Twelve columns. The light is the coin's lamp, upper
   left, 60 degrees up: a plate --z pixels above the page casts its shadow 0.41 --z right and down. */
html { --gilt-hi: oklch(0.93 0.06 88); --gilt-lo: oklch(0.55 0.07 75); --hair: oklch(0.45 0.03 80 / 0.55);
       --plate: oklch(0.18 0.01 265); --stone: oklch(0.13 0.004 270);
       --gutter: clamp(16px, 4vw, 48px); --col-gap: clamp(16px, 1.6vw, 40px);
       --frame: min(100% - 2 * var(--gutter), max(1280px, 72vw)); }
/* from 900 px wide, the frame keeps 72 px of margin on each side */
@media screen and (min-width: 900px) { html { --gutter: 72px; } }
@property --z  { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --az { syntax: "<angle>"; inherits: true; initial-value: 135deg; }
::selection { background: oklch(0.85 0.06 85 / 0.28); color: var(--ink); }
.act :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; box-shadow: 0 0 0 5px var(--ground); }

/* ----- 02 Slates and type ------------------------------------------------------------------------------
   Each act opens on a slate, its name in the machine's face. Inter is the narrator; Cinzel is reserved for
   what is inscribed (the rules, their numerals, the motto); JetBrains Mono for what a machine said. */
.slate { display: flex; align-items: center; gap: 14px; margin: 0 0 clamp(20px, 2vw, 32px);
         font: 500 12px/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.act h2 { font-size: clamp(2.75rem, 1.2rem + 4.4vw, 7.5rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 600;
          text-wrap: balance; margin: 0 0 0.42em; text-box: trim-both cap alphabetic; }
/* an act's headline types itself out when the reader reaches it (13 Motion): each letter a span, the letters hidden
   from assistive technology under the h2's aria-label, the same sentence; a gold caret rides the newest letter */
.ty { display: block; }
.ty .k { position: relative; }
.ty .k::after { content: ""; position: absolute; left: 100%; top: .08em; bottom: .04em; width: .06em; margin-left: .02em;
                background: var(--gold); opacity: 0; }
/* a span edge costs the shaper the kern of the pair it splits, so each pair's kern is given back in the left letter's
   own advance: letter-spacing, the h2's -0.035em plus the kern, measured plain against split on one line
   (generated; bound to the font file, and the render test holds every letter where the plain text sets it) */
#record-h .k13 { letter-spacing: -0.0537em; }
#record-h .k19 { letter-spacing: -0.0555em; }
#record-h .k20 { letter-spacing: -0.0537em; }
#record-h .k24 { letter-spacing: -0.0430em; }
#tested-h .k3 { letter-spacing: -0.0745em; }
#tested-h .k4 { letter-spacing: -0.0107em; }
#tested-h .k5 { letter-spacing: -0.0505em; }
#tested-h .k7 { letter-spacing: -0.0414em; }
#tested-h .k16 { letter-spacing: -0.0414em; }
#tested-h .k18 { letter-spacing: -0.0430em; }
#how-h .k6 { letter-spacing: -0.0556em; }
#how-h .k11 { letter-spacing: -0.0554em; }
#how-h .k12 { letter-spacing: -0.1107em; }
#how-h .k14 { letter-spacing: -0.0316em; }
#how-h .k16 { letter-spacing: -0.0303em; }
#how-h .k17 { letter-spacing: -0.1037em; }
#design-h .k11 { letter-spacing: -0.0535em; }
#design-h .k20 { letter-spacing: -0.0431em; }
#hard-h .k5 { letter-spacing: -0.0272em; }
#hard-h .k12 { letter-spacing: -0.0414em; }
#work-h .k13 { letter-spacing: -0.0272em; }
#work-h .k16 { letter-spacing: -0.0272em; }

.act h3 { font: 500 12px/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
          margin: 0 0 clamp(20px, 2.4vw, 36px); }
.say { max-width: 46ch; font-size: clamp(1.0625rem, 0.95rem + 0.3vw, 1.375rem); line-height: 1.6; color: var(--ink-2);
       text-wrap: pretty; }

/* ----- 03 The record: what others did, by date ----------------------------------------------------------
   Each entry dated, said in a sentence, and linked to where it happened. */
.act-record { padding-block: clamp(120px, 12vw, 240px) clamp(64px, 6vw, 140px); }
.act-record .stage { width: var(--frame); margin-inline: auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
                     column-gap: var(--col-gap); row-gap: clamp(40px, 4vw, 72px); align-items: start; }
.rec-head { grid-column: 1 / span 4; position: sticky; top: clamp(72px, 9vh, 120px); }
.rec-head h2 { font-size: clamp(2.5rem, 0.6rem + 3.4vw, 6.5rem); }
.rec-groups { grid-column: 5 / -1; display: grid; gap: clamp(44px, 4vw, 72px); }
.rec h3 { margin-bottom: 22px; }
.rec-list { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 1px solid var(--hair); display: grid; gap: 26px; }
.rec-list p { margin: 0; }
.rec-list .when { margin-bottom: 6px; font: 500 13px/1.4 var(--font-mono); letter-spacing: 0.08em; color: var(--ink-3);
                  font-variant-numeric: tabular-nums; }
.rec-list li > p:not(.when, .src) { max-width: 54ch; font-size: clamp(1.0625rem, 0.95rem + 0.3vw, 1.3125rem); line-height: 1.55;
                                    color: var(--ink-2); text-wrap: pretty; }
.rec-list .src { display: flex; flex-wrap: wrap; column-gap: 22px; }
/* the record's sources and every act's closing link: one style, a full tap target */
.rec-list .src a, .act .more a { display: inline-flex; align-items: center; min-height: 44px; font: 500 13px/1.3 var(--font-mono);
                                 letter-spacing: 0.04em; color: var(--gold); text-decoration: none; }
.rec-list .src a::after, .act .more a::after { content: "\00a0\2192"; }   /* a flex box drops a plain leading space */
.rec-list .src a:hover, .act .more a:hover { color: var(--ink); }
.act-record .more { grid-column: 5 / -1; margin: 0; }

/* ----- 04 Tested with: the software, in four groups ---------------------------------------------------
   Read in one look: each group named in its first row, the names wrapping as chips. The count beside them
   is their number. */
.act-outside { padding-block: clamp(120px, 12vw, 260px) clamp(120px, 10vw, 240px); }
.ledger-wrap { width: var(--frame); margin-inline: auto; display: grid;
               grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.ledger-title { grid-column: 1 / span 4; position: sticky; top: clamp(72px, 9vh, 120px); }
.ledger-title h2 { font-size: clamp(2.5rem, 0.6rem + 3.4vw, 6.5rem); }
.tally { margin: clamp(24px, 3vh, 48px) 0 0; display: grid; container-type: inline-size; }
/* the count, then the same no wider than its column (64cqi), so a reader's wider letter spacing (WCAG 1.4.12) keeps it
   off the names in the next column; a browser without container units drops the second size and keeps the first */
.tally b { font: 200 min(21vw, 30vh, 26rem)/0.85 var(--font-sans); font-size: min(21vw, 30vh, 26rem, 64cqi);
           font-variation-settings: "opsz" 32; letter-spacing: -0.05em;
           font-variant-numeric: tabular-nums lining-nums; text-box: trim-both cap alphabetic;
           background: linear-gradient(180deg in oklab, var(--gilt-hi), var(--gold) 45%, var(--ink-3));
           -webkit-background-clip: text; background-clip: text; color: transparent; }
.tally span { margin-top: 18px; font: 500 12px/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.ledger { grid-column: 5 / -1; list-style: none; margin: 0; padding: 0; }
.ledger li { display: inline; color: var(--ink); }
.ledger .grp { display: block; margin: 30px 0 12px; font: 500 13px/1.4 var(--font-mono); letter-spacing: 0.16em;
               text-transform: uppercase; color: var(--ink-3); }
.ledger li:first-child .grp { margin-top: 0; }
.ledger a { display: inline-flex; align-items: center; min-height: 44px; margin: 0 8px 10px 0; padding: 8px 16px;
            border: 1px solid var(--line-strong); border-radius: 999px; background-color: rgba(255, 255, 255, 0.015);
            font: 500 clamp(16px, 0.9rem + 0.25vw, 19px)/1.3 var(--font-sans); letter-spacing: -0.005em;
            color: inherit; text-decoration: none; text-wrap: pretty; }
.ledger a:hover { color: var(--ink); border-color: var(--gold); }
.after { grid-column: 5 / -1; padding-top: clamp(40px, 4vw, 72px); border-top: 1px solid var(--line); }
.after .prov { margin: 0 0 12px; max-width: 60ch; font-size: clamp(1.0625rem, 0.95rem + 0.3vw, 1.25rem); line-height: 1.55; color: var(--ink-2); }
.after .more { margin: 0; }

/* ----- 05 How it works: three objects in a vitrine ----------------------------------------------------
   Issue, hold and verify, each beside an object that does what the step does, path-traced in Blender under
   the coin's lamp: a steel die (an authority's signature is struck, and a die is cut in reverse); a Cardan
   grille over a written page (only what lies under its windows can be read); a printed table of keys
   under a loupe (anyone can check against what was published). Captions say what the objects are. */
.act-how { padding-block: clamp(120px, 12vw, 260px) clamp(96px, 8vw, 200px); }
.act-how .stage { width: var(--frame); margin-inline: auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
                  column-gap: var(--col-gap); row-gap: clamp(56px, 6vw, 120px); }
.how-head { grid-column: 1 / -1; }
.steps, .vitrine { grid-row: 2 / span 3; display: grid; grid-template-rows: subgrid; margin: 0; padding: 0; list-style: none; }
.steps { grid-column: 1 / span 5; }
.vitrine { grid-column: 7 / -1; }
.steps li { align-self: center; }
.verb { margin: 0 0 0.3em; font: 400 clamp(2.5rem, 0.8rem + 4.2vw, 7rem)/0.9 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase;
        font-feature-settings: "kern", "liga", "lnum";
        background: linear-gradient(172deg in oklab, var(--gilt-hi), var(--gold) 46%, var(--gilt-lo));
        -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps p:not(.verb) { max-width: 34ch; font-size: clamp(1.0625rem, 0.9rem + 0.4vw, 1.5rem); line-height: 1.55; color: var(--ink-2);
                      text-wrap: pretty; }
.obj { position: relative; margin: 0; width: min(100%, 720px, 44vw); justify-self: end; }
.obj img { width: 100%; height: auto; aspect-ratio: 1; }
.obj .over { position: absolute; inset: 0; }
.act-how .more { grid-column: 1 / -1; margin: 0; }

/* ----- 06 The rules: four laws cut in stone -----------------------------------------------------------
   The rules are not promised; the database enforces them. So they are cut, in gilt, into a polished black
   marble wall path-traced under two lights: first a raking light from the right, low over the stone, the
   way an inscription is read; then the coin's own lamp. The groove walls of every letter take their shade
   from the lamp's angle (--az), so as the light comes round they turn with it. A lamp pools on the stone above
   a slab; the act is centred; each law is cut into the slab under its numeral, between two short gilt rules,
   with one line under it in the machine's voice saying what enforces it. */
.act-rules { position: relative; isolation: isolate; }
/* the wall's ends fade out to the lit ground the act before it stands on, so no edge of it shows where the act begins */
.wall { position: sticky; top: 0; z-index: -1; height: 100svh; overflow: hidden; overflow: clip; background: var(--stone);
        -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
        mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); }
.wall img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wall .rake { opacity: 0; }
.wall::after { content: ""; position: absolute; inset: 0;
               background: linear-gradient(180deg, var(--ground), transparent 14%, transparent 86%, var(--ground)); }
.wall::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
                background: radial-gradient(ellipse 46% 58% at 50% 34%, oklch(0.36 0.035 80 / 0.34), oklch(0.24 0.02 80 / 0.12) 48%, transparent 76%),
                            radial-gradient(ellipse 90% 70% at 50% 120%, oklch(0 0 0 / 0.6), transparent 70%); }
.tablet { margin-top: -100svh; width: var(--frame); margin-inline: auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
          column-gap: var(--col-gap); padding-block: clamp(120px, 14vh, 200px) clamp(140px, 18vh, 260px); }
.tablet > * { grid-column: 2 / span 10; justify-self: center; text-align: center; }
.tablet .slate { justify-content: center; }
.tablet h2 { max-width: 16ch; }
/* the slab: a hairline gilt edge, an inner bevel, a deep shadow */
.laws { list-style: none; width: min(100%, 980px); margin: clamp(40px, 5vh, 72px) 0 0;
        padding: clamp(24px, 3vh, 40px) clamp(24px, 5vw, 88px); counter-reset: law; display: grid; gap: 0;
        border: 1px solid oklch(0.62 0.05 82 / 0.22); border-radius: 3px;
        background: linear-gradient(180deg in oklab, oklch(0.21 0.007 270 / 0.72), oklch(0.15 0.005 270 / 0.62));
        box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.06), inset 0 -1px 0 oklch(0 0 0 / 0.55),
                    inset 0 0 0 8px oklch(0.15 0.005 270 / 0.5), inset 0 0 0 9px oklch(0.62 0.05 82 / 0.12),
                    0 50px 120px -30px oklch(0 0 0 / 0.85); }
.laws li { counter-increment: law; position: relative; max-width: 22ch; margin: clamp(58px, 7vh, 86px) auto clamp(26px, 3.4vh, 40px);
           font: 500 clamp(1.375rem, 0.6rem + 2.2vw, 4rem)/1.25 var(--font-display); letter-spacing: 0.04em; text-wrap: balance;
           font-feature-settings: "kern", "liga", "lnum"; color: transparent; }
/* the gilt: gold leaf over the coin's gold, under the lamp */
.laws li { background: linear-gradient(172deg in oklab, var(--gilt-hi), var(--gold) 46%, var(--gilt-lo));
           -webkit-background-clip: text; background-clip: text; }
/* the groove walls: a copy of the words under the gilt, its shadow toward the lamp and its catch-light away */
.laws li::before { content: attr(data-rule) / ""; position: absolute; inset: 0; z-index: -1; color: transparent;
                   text-shadow: calc(cos(var(--az)) * 1.6px) calc(sin(var(--az)) * -1.6px) 1px oklch(0 0 0 / 0.9),
                                calc(cos(var(--az)) * -1px) calc(sin(var(--az)) * 1px) 0.5px oklch(0.95 0.03 85 / 0.16); }
/* the numeral above the law, between two short gilt rules (its own background, not the gilt's text clip) */
.laws li::after { content: counter(law, upper-roman); position: absolute; left: 50%; top: -38px; translate: -50% 0; padding-inline: 46px;
                  font: 500 13px/1 var(--font-display); letter-spacing: 0.16em; color: var(--gold-deep);
                  -webkit-text-fill-color: var(--gold-deep);
                  background: linear-gradient(90deg, transparent, oklch(0.62 0.05 82 / 0.55)) left center / 34px 1px no-repeat,
                              linear-gradient(90deg, oklch(0.62 0.05 82 / 0.55), transparent) right center / 34px 1px no-repeat; }
/* what enforces it, one line in the machine's voice */
.laws .by { display: block; margin-top: 16px; font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase;
            color: var(--ink-3); -webkit-text-fill-color: var(--ink-3); }
.laws-size { margin: clamp(40px, 5vh, 72px) auto 12px; max-width: 52ch; font-size: clamp(1.0625rem, 0.95rem + 0.3vw, 1.3125rem);
             line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.tablet .more { margin: 0; }

/* ----- 07 The hard cases: the worst day, in three beats ------------------------------------------------
   Duress, as dramatic irony: the reader sees exactly what a coercer sees, two identical results, and then
   the one line the coercer cannot see. Total loss: independent lines that must cross, never one. And
   migration: two signatures, one active mark that by construction is only ever in one place. Three case
   files: each a headline and its words on one side and a large figure on the other, the second mirrored; the
   duress pair are two phones; the recovery lines and the seals are drawn in gilt, with their own light. */
.act-hard { padding-block: clamp(120px, 12vw, 260px) 0; counter-reset: case;
            overflow-x: clip; }   /* the night pool behind the crossing reaches past the frame, never past the page */
.beat { width: var(--frame); margin-inline: auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
        column-gap: var(--col-gap); row-gap: 0; align-content: center; align-items: center; min-block-size: 0;
        padding-block: clamp(72px, 11vh, 150px); }
.beat > * { grid-column: 1 / span 5; }
.beat-duress > .slate, .beat-duress > h2 { grid-column: 1 / -1; }
.beat-duress > h2 { margin-bottom: clamp(48px, 7vh, 110px); }
/* a case's headline and its words fill the same five columns, so the case keeps one right edge, on a column line */
.act .beat h3 { counter-increment: case; margin: 0 0 18px; font: 600 clamp(1.75rem, 0.9rem + 1.7vw, 3rem)/1.08 var(--font-sans);
                letter-spacing: -0.025em; text-transform: none; color: var(--ink); text-wrap: balance; align-self: end; }
.beat h3::before { content: "Case 0" counter(case) / ""; display: block; margin-bottom: 18px; font: 500 12px/1 var(--font-mono);
                   letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.beat .say { align-self: start; max-width: none; font-size: clamp(1.0625rem, 0.95rem + 0.35vw, 1.375rem); }
.beat figure { grid-column: 7 / span 6; margin: 0; }
.beat-duress h3 { grid-row: 3; } .beat-duress .say { grid-row: 4; } .beat-duress figure { grid-row: 3 / span 2; }
.beat-loss h3, .beat-move h3 { grid-row: 1; } .beat-loss .say, .beat-move .say { grid-row: 2; }
.beat-loss figure, .beat-move figure { grid-row: 1 / span 2; }
.beat-loss > * { grid-column: 8 / span 5; }
.beat-loss figure { grid-column: 1 / span 6; }
/* duress: two phones, the same screen on each; the line the coercer never sees, lit, under the second */
.duress { --pane-gap: clamp(18px, 2.2vw, 34px); justify-self: center; width: min(100%, 520px); }
.seen { margin: 0 0 18px; font: 500 12px/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3);
        text-align: center; }
.panes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pane-gap); }
.pane { --z: 8; position: relative; aspect-ratio: 9 / 17; border-radius: 36px; display: grid; place-content: center; text-align: center;
        gap: clamp(10px, 1.2vw, 18px); padding: 18px; min-width: 0;
        background: linear-gradient(165deg in oklab, oklch(0.23 0.01 265), oklch(0.13 0.008 265)); border: 1px solid oklch(1 0 0 / 0.1);
        box-shadow: calc(var(--z) * 0.41px) calc(var(--z) * 0.41px) calc(var(--z) * 0.9px) oklch(0 0 0 / 0.55),
                    calc(var(--z) * 0.12px) calc(var(--z) * 0.12px) calc(var(--z) * 0.2px) oklch(0 0 0 / 0.5),
                    inset 1px 1px 0 oklch(1 0 0 / 0.07), inset -1px -1px 0 oklch(0 0 0 / 0.45); }
.pane::before { content: ""; position: absolute; top: 14px; left: 50%; translate: -50% 0; width: 32%; height: 18px; border-radius: 10px;
                background: oklch(0.07 0 0); }   /* the notch */
.pane p { margin: 0; }
.pane .code { font: 500 12px/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.pane .dots { font: 400 14px/1 var(--font-mono); letter-spacing: 0.32em; color: var(--ink-2); }
.pane .said { font: 600 clamp(1.5rem, 0.7rem + 1.5vw, 2.4rem)/1 var(--font-sans); letter-spacing: -0.03em; color: var(--ink); }
.pane .said::before { content: "\2713" / ""; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px;
                      border-radius: 50%; border: 1.5px solid oklch(0.62 0.05 82 / 0.8); font-size: 24px; color: var(--gold);
                      background: radial-gradient(circle, oklch(0.8 0.08 85 / 0.16), transparent 70%); }
.tell { width: calc(50% - var(--pane-gap) / 2); margin: 18px 0 0 auto; font: 500 14px/1.4 var(--font-mono); letter-spacing: 0.12em;
        color: var(--gold); text-align: center; text-shadow: 0 0 10px oklch(0.85 0.08 85 / 0.55), 0 0 26px oklch(0.85 0.08 85 / 0.25); }
.crossing svg, .seals svg { display: block; width: 100%; height: auto; overflow: visible; color: var(--ink-3); }
.crossing text, .seals text { font-family: var(--font-mono); letter-spacing: 0.06em; fill: var(--ink-2); }
.seals circle { stroke: var(--ink-2); stroke-width: 1px; vector-effect: non-scaling-stroke; }
/* recovery: three bearings over a pool of night, each in its own colour and numbered at one end; the fix they
   make, lit; under the drawing, the key: each line's name and how it works */
.crossing { position: relative; }
.crossing::before { content: ""; position: absolute; inset: -12% -8%; z-index: -1; border-radius: 50%;
                    background: radial-gradient(closest-side, oklch(0.27 0.035 255 / 0.55), oklch(0.18 0.02 255 / 0.2) 60%, transparent); }
.crossing svg { color: var(--ink-2); filter: drop-shadow(0 0 6px oklch(0.9 0.02 250 / 0.3)); }
.crossing .ch { stroke: var(--gold); stroke-width: 1.75px; vector-effect: non-scaling-stroke; }
.crossing { --c1: var(--accent); --c2: var(--gold); --c3: var(--ink); }
.crossing .c1 { stroke: var(--c1); } .crossing .c2 { stroke: var(--c2); } .crossing .c3 { stroke: var(--c3); }
.crossing .nb text { font: 700 12px/1 var(--font-mono); letter-spacing: 0; fill: var(--ground); }
.crossing .n1 circle { fill: var(--c1); } .crossing .n2 circle { fill: var(--c2); } .crossing .n3 circle { fill: var(--c3); }
.crossing .nb g { transform-box: fill-box; transform-origin: center; }
.key { margin-top: clamp(28px, 4vh, 48px); }
.key ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; counter-reset: key; }
.key li, .key .fix { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 14px; margin: 0;
                     font: 400 15px/1.5 var(--font-sans); color: var(--ink-2); text-wrap: pretty; }
.key li::before, .key .fix::before { grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 50%; display: grid;
                                     place-items: center; font: 700 12px/1 var(--font-mono); color: var(--ground); }
.key li { counter-increment: key; }
.key li::before { content: counter(key); content: counter(key) / ""; }   /* the first for engines without the alt-text form */
.key .k1::before { background: var(--c1); } .key .k2::before { background: var(--c2); } .key .k3::before { background: var(--c3); }
.key b { display: block; margin-bottom: 2px; font: 500 12px/1.6 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
         color: var(--ink); }
.key .fix { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.key .fix::before { content: ""; content: "" / ""; width: 0; height: 0; margin: 5px 0 0 6px; border-radius: 0; border: 7px solid transparent;
                    border-bottom: 12px solid oklch(0.97 0 0 / 0.55); border-top: 0; }
.crossing .cut { fill-opacity: 0.6; }
.crossing text { font-size: 12px; }
/* migration: two seals in gilt, the incoming one lit; the outgoing dimmer, marked retired */
.seals { justify-self: center; width: min(100%, 560px); }
.seals svg { filter: drop-shadow(0 0 8px oklch(0.85 0.08 85 / 0.3)); }
.seals .s2 circle { stroke: var(--gold); stroke-width: 1.5px; }
.seals .s2 .hat { stroke: var(--gold); }
.seals .s1 circle, .seals .s1 .hat { stroke: oklch(0.62 0.05 82); }
.seals text { font-size: 7.4px; }   /* the seals draw at 1.75x: 13px on the screen, as the crossing's labels */
.seals .hat { stroke-width: 0.75px; vector-effect: non-scaling-stroke; }
/* the still shows the move made: both signatures were active through the window, then the outgoing one retired */
.seals .s1 { opacity: 0.5; }
.seals .retired path { stroke: var(--ink-3); stroke-width: 1px; vector-effect: non-scaling-stroke; }
/* each drawing in words, for a screen reader (the drawing is hidden from it); under forced colours, which remove the
   drawings, the words take their place */
.in-words { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ----- 08 The night: the purpose, over the sky ------------------------------------------------------------
   The night the film opened on: the northern sky as a long exposure, computed from the same star catalogue
   as the first screen, every star drawn into an arc round the pole; the one that barely moves is Polaris.
   The purpose and the motto read over it, and the last act stands under it. */
.night { position: relative; isolation: isolate; }
.sky-stage { position: sticky; top: 0; z-index: -1; height: 100svh; overflow: hidden; overflow: clip; container-type: size; background: #000;
             /* the night fades in from the lit ground the act above it stands on, so no edge of it shows where it begins */
             -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%); mask-image: linear-gradient(180deg, transparent, #000 16%);
             /* the plate's side, wide enough that its corners clear the frame at every turn */
             --S: calc(2 * hypot(50cqi, 62cqb)); }
/* a browser without container units or hypot() takes the side from the viewport: hypot() itself where it has it,
   else the sum of the two legs, which is never shorter */
@supports not (width: hypot(1cqi, 1cqb)) { .sky-stage { --S: calc(100vw + 124vh); } }
@supports (width: hypot(1vw, 1vh)) and (not (width: hypot(1cqi, 1cqb))) { .sky-stage { --S: calc(2 * hypot(50vw, 62vh)); } }
/* up to 900 px wide the pole sits at 30% of the stage, not 38%, so the far corners lie 70% of its height below it */
@media (max-width: 900px) {
    .sky-stage { --S: calc(2 * hypot(50cqi, 70cqb)); }
    @supports not (width: hypot(1cqi, 1cqb)) { .sky-stage { --S: calc(100vw + 140vh); } }
    @supports (width: hypot(1vw, 1vh)) and (not (width: hypot(1cqi, 1cqb))) { .sky-stage { --S: calc(2 * hypot(50vw, 70vh)); } }
}
.aperture { position: absolute; inset: 0; }
.exposure { position: absolute; left: 50%; top: 38%; width: var(--S); height: var(--S); translate: -50% -50%; }
.exposure img { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: lighten; }
.exposure > :nth-child(2) img { rotate: 7.52deg; }
.exposure > :nth-child(3) img { rotate: 15.04deg; }
.exposure > :nth-child(4) img { rotate: 22.56deg; }
/* the scrim the purpose is read over: the sky dims toward the left */
.sky-stage::after { content: ""; position: absolute; inset: 0;
                    background: linear-gradient(90deg in oklab, oklch(0.145 0.004 286 / 0.86), oklch(0.145 0.004 286 / 0.5) 30%, transparent 52%),
                                linear-gradient(0deg in oklab, oklch(0.145 0.004 286 / 0.7), transparent 34%); }
.voyage { position: relative; margin-top: -100svh; }
.voyage-frame { width: var(--frame); margin-inline: auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
                column-gap: var(--col-gap); padding-block: clamp(120px, 16vh, 220px) clamp(80px, 10vh, 160px); }
.purpose, .motto { grid-column: 1 / span 6; }
.purpose { margin: clamp(64px, 9vh, 120px) 0 0; display: grid; gap: 16px; max-width: 44ch; }   /* one measure, the creed's and the aim's */
.purpose p { margin: 0; }
.creed { margin-bottom: 8px; font: 600 clamp(1.75rem, 0.8rem + 2.4vw, 4rem)/1.02 var(--font-sans); letter-spacing: -0.03em; color: var(--ink);
         text-wrap: balance; }
.aim { font-size: clamp(1.0625rem, 0.9rem + 0.4vw, 1.5rem); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.motto { margin: clamp(40px, 6vh, 80px) 0 0; font: 500 13px/1 var(--font-display); letter-spacing: 0.3em; text-transform: uppercase;
         color: var(--ink-3); font-feature-settings: "kern", "liga", "lnum"; }

/* ----- 09 Work with us: the end card ---------------------------------------------------------------------
   The last frame, under the same night, the pole star still overhead: a door for each kind of reader, then
   who builds it. Then the night ends at a horizon, as the first screen does. The card keeps the frame's left
   edge, as every act does. The six doors sit three to a row on a subgrid, so in each row the labels, the asks
   and the buttons start on one line; each button fills its column, its words at the left and its arrow at the
   right, so every door has the same two edges; the founder's line ends on the second column's edge. */
.act-end { position: relative; z-index: 1; min-block-size: 100svh; width: var(--frame); margin-inline: auto;
           display: grid; align-content: start; text-align: left; padding-block: 22svh 12svh; }
.act-end h2 { margin-bottom: 0.5em; }
.doors { list-style: none; margin: clamp(32px, 4vw, 64px) 0 0; padding: 0; width: 100%;
         display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); }
.doors li { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; gap: 0; padding: 26px 0 44px;
            border-top: 1px solid var(--line); }
.doors p { margin: 0; }
.doors .who { margin-bottom: 12px; font: 500 13px/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
              color: var(--ink-3); }
.doors .ask { margin-bottom: 22px; font-size: clamp(1.0625rem, 0.95rem + 0.3vw, 1.25rem); font-weight: 600; line-height: 1.5;
              color: var(--ink); text-wrap: pretty; }
.doors .go { display: flex; flex-direction: column; gap: 10px; }
.doors .btn { flex: none; width: 100%; height: auto; min-height: 48px; padding: 10px 18px; font-size: 15px;
              justify-content: space-between; text-align: left; }
/* the gold door takes the lined doors' 1px edge, transparent, so every label starts on one line */
.doors .btn-gold { border: 1px solid transparent; background-clip: padding-box; }
.founder { display: grid; grid-template-columns: 64px minmax(0, calc((200% - var(--col-gap)) / 3 - 82px)); align-items: center;
           column-gap: 18px; width: 100%; margin-top: clamp(36px, 4vw, 64px); padding-top: 30px;
           border-top: 1px solid var(--line); text-align: left; }
.founder img { flex: none; width: 64px; height: 64px; border-radius: 50%; }
.founder p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.night > .horizon { z-index: 0; }

/* ----- 10 Footer ------------------------------------------------------------------------------------- */
.foot { padding: 96px calc((100% - var(--frame)) / 2) 48px; text-align: center; }   /* the frame's own edges */
.foot p { margin: 0; font: 400 12px/1.8 var(--font-mono); letter-spacing: 0.08em; color: var(--ink-3); font-variant-numeric: tabular-nums;
          text-wrap: balance; }
/* the line is also the way to the credits (NOTICE), and looks like nothing more than the line */
/* each item keeps its separator on its line: a line breaks only after a dot */
.foot .fi { white-space: nowrap; }
/* the sky's credit is longer than a phone's line: one box, so a line still breaks only after a dot where it fits
   whole, wrapping inside itself only where it is wider than the line; a no-break space keeps its dot with it */
.foot .fi-credit { display: inline-block; max-width: 100%; white-space: normal; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--ink-2); }
.foot a:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* ----- 11 Modes: narrower screens, forced colours, print ---------------------------------------------- */
/* below 1209 px a third of the frame is narrower than the longest door's button on one line (342 px at 15 px):
   the doors go two to a row, and the founder's line ends on the second column's edge, the doors' right edge */
@media (max-width: 1208px) {
    .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .founder { grid-template-columns: 64px minmax(0, 1fr); }
}
/* the narrow window and the phone, laid out on their own: one column, each object above the step it shows,
   the doors full width; read, not played, the acts close up to the air a column of text needs */
@media (max-width: 900px) {
    .ledger-title, .ledger, .after { grid-column: 1 / -1; }
    .ledger-title { position: static; margin-bottom: 28px; }
    .tablet > * { grid-column: 1 / -1; }
    .laws { padding-inline: 18px; }
    .laws li { margin-block: 52px 22px; padding-block: 28px; border-bottom: 1px solid var(--line); }
    .laws li::before { inset: 28px 0 0 0; }
    .beat > *, .beat figure, .beat-loss > *, .beat-loss figure { grid-column: 1 / -1; grid-row: auto; }
    .beat figure { margin: 28px 0 8px; }
    .act .beat h3 { align-self: start; }
    .duress { width: min(100%, 380px); }
    .purpose, .motto { grid-column: 1 / -1; }
    .sky-stage::after { background: linear-gradient(0deg in oklab, oklch(0.145 0.004 286 / 0.9), oklch(0.145 0.004 286 / 0.55) 60%, transparent); }
    .exposure { top: 30%; }
    .voyage-frame { align-content: end; justify-items: center; padding-bottom: 14svh; text-align: center; }
    .purpose { align-self: end; justify-items: center; }
    .rec-head, .rec-groups, .act-record .more { grid-column: 1 / -1; }
    .rec-head { position: static; }
    .steps, .vitrine { grid-column: 1 / -1; grid-row: 2 / span 6; display: grid; grid-template-rows: subgrid; gap: 0; margin: 0; }
    .obj-die { grid-row: 1; } .step-issue { grid-row: 2; } .obj-paper { grid-row: 3; }
    .step-hold { grid-row: 4; } .obj-table { grid-row: 5; } .step-verify { grid-row: 6; }
    .steps li { align-self: start; }
    .obj { width: 100%; aspect-ratio: 3 / 2; overflow: hidden; margin: 44px 0 22px; justify-self: stretch; }
    .obj img { height: 100%; aspect-ratio: auto; object-fit: cover; }
    .act-how .more { grid-row: 8; margin-top: 44px; }
    .act-record, .act-outside, .act-how, .act-hard { padding-block: 72px 32px; }
    .act-record .stage { row-gap: 32px; }
    .act-how .stage { row-gap: 0; }
    .tally { margin-top: 20px; }
    .tally b { font-size: min(30vw, 9rem); }
    .after { padding-top: 28px; margin-top: 18px; }
    .tablet { padding-block: 72px 56px; }
    .act-end { min-block-size: 0; padding-block: 16svh 8svh; }
    .doors { grid-template-columns: minmax(0, 1fr); }
    .doors li { grid-row: auto; grid-template-rows: none; padding: 24px 0 32px; }
    .founder { grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; align-items: start; }
    .founder img { width: 48px; height: 48px; margin-top: 3px; }
    .foot { padding-block: 40px 32px; }
}
@media (max-width: 560px) {
    .duress { --pane-gap: 14px; }   /* two phones side by side even here, each the same screen */
    .tell { width: auto; margin-left: 0; }
    /* the lines' numbers at a size a phone can read (the drawing scales them down with it) */
    .crossing .nb g { scale: 1.5; }
    .eyebrow, .slate, .act h3, .tally span, .seen, .pane .code, .foot p { font-size: 13px; }
    .eyebrow, .act h3 { line-height: 1.5; text-wrap: balance; }
    .seals text { font-size: 11.6px; letter-spacing: 0; }   /* the seals draw about 1.12x here: 13px on the screen */
    .foot a { display: inline-flex; align-items: center; min-height: 44px; }
    /* the credit runs over three lines or more here: it stays in the text's flow, so its dot keeps to its last word,
       and its lines' boxes meet (the half-leading as padding), one target taller than 44px */
    .foot .fi-credit a { display: inline; padding-block: 0.25em; }
    .pane { padding: 12px; border-radius: 26px; gap: 10px; }
    .pane::before { top: 10px; height: 14px; }
    .pane .dots { font-size: 10px; letter-spacing: 0.22em; }
    .pane .said { font-size: 1.375rem; }
    .pane .said::before { width: 42px; height: 42px; margin-bottom: 12px; font-size: 18px; }
    .tally b { font-size: min(26vw, 7.5rem); }
}
@media (forced-colors: active) {
    .wall, .sky-stage, .crossing svg, .seals svg { display: none; }
    .in-words { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal;
                font: 400 12px/1.5 var(--font-mono); letter-spacing: 0.06em; }
    .tablet, .voyage { margin-top: 0; }   /* they rise a screen over the backdrops just removed */
    .verb, .tally b, .laws li { color: CanvasText; background: none; -webkit-text-fill-color: CanvasText; }
    .laws li::before { display: none; }
}
/* the sheet's own margins, whatever the print dialog's paper */
@page { margin: 16mm 15mm; }
@media print {
    .wall, .sky-stage { display: none; }
    .tablet, .voyage { margin-top: 0; }
    /* ink on paper: the greys made for the dark turn dark, and lettering painted with a background (the gilt,
       the count) is set in plain ink, since a printer leaves backgrounds out */
    body { --ink: #111; --ink-2: #333; --ink-3: #555; --gold: #6b5214; --hair: #bbb; }
    .act, .night { color: #000; }
    .verb, .tally b, .laws li { color: #111; background: none; -webkit-text-fill-color: currentColor; }
    .laws li::before { display: none; }
    /* each act a chapter on its own page; a heading stays with what follows it; a figure, a list item or the
       purpose is never cut by the page */
    .act, .night { break-before: page; }
    .slate, h2, h3 { break-after: avoid; }
    h2, figure, li, .purpose { break-inside: avoid; }
    /* the three objects as one plate; the voyage without the screen's air, so it keeps one sheet; the last
       act a back page */
    .vitrine { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .obj { width: 100%; }
    .voyage-frame { padding-block: 0; }
    /* the sheet's margin is the frame: no act carries the screen's air across a page into a blank one */
    .act, .tablet { padding-block: 0; }
    /* between blocks, margins (a page break swallows them) rather than padding (it carries over); each hard
       case whole; the four laws on one sheet, spaced by their own margins */
    .beat { min-block-size: 0; padding-block: 0; margin-block-end: 48px; break-inside: avoid; }
    .laws { margin-top: 32px; }
    .act-end { min-block-size: 0; padding-block: 36vh 6vh; }
}
/* ----- 12 Focus ----------------------------------------------------------------------------------------
   A link the keyboard reaches shows at once, with whatever holds it, wherever the scroll has it: not yet
   revealed, dimmed, or cut away. The motion is for the eye; it never hides where the reader is. */
:is(.act, .night) :has(:focus-visible), :is(.act, .night) :focus-visible { animation: none !important; }

/* ----- 13 Motion --------------------------------------------------------------------------------------
   Everything below runs only on a screen (paper does not scroll: it gets the still), for a reader who has not
   asked for less motion, in a browser that can tie an animation to the scroll, and not in forced colours (there
   the frames lose the dark that keeps one scene from showing through the next, so the page stays the still).
   Each held act is a tall section with a sticky frame (.stage) the height of the
   screen; its named view timeline (--how, --rules) runs from the moment the frame locks (contain 0%, where its
   link lands, heading in view) to the moment it lets go (contain 100%). The five moves are the keyframes
   at the end. A cut changes in one frame (a step); a dissolve is opacity over at least 6% of the act; an
   inscription reveals left to right; a push settles 4% of scale (the night's, 6%); the aperture opens the 2.39:1
   frame. The night's words have three of their own: a rise out of a soft focus, a drift that keeps a held frame
   moving, and a track-in that closes a line's letter-spacing.
   A phone (900 px wide and under) plays every move that needs no held frame: the rules are cut, the cases draw,
   the night's exposure grows, the last act comes up. The two held acts (how it works, the voyage) stay the still
   there: a held frame on a small screen hides more than it shows. */
@media screen and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
    @supports (animation-timeline: view()) {
        /* How it works: the frame holds; the die settles, dissolves to the written page, the grille slides
           over it, dissolves to the table of keys, the loupe comes down onto it. */
        @media (min-width: 901px) and (min-height: 700px) {
            .act-how { block-size: 300svh; padding-block: 0; view-timeline: --how block; overflow-x: clip; }  /* the grille waits off-frame */
            .act-how .stage { position: sticky; top: 0; block-size: 100svh; width: auto; margin: 0; padding-inline: calc((100% - var(--frame)) / 2);
                              grid-template-rows: auto 1fr auto; row-gap: clamp(20px, 3vh, 40px); align-content: center;
                              padding-block: clamp(48px, 9vh, 120px) clamp(32px, 6vh, 80px); }
            .steps, .vitrine { grid-row: 2; grid-template-rows: none; }
            .steps li, .vitrine .obj { grid-area: 1 / 1; }
            .steps { align-self: center; }
            /* the objects take the height the row leaves them, so on a short, wide screen the heading and the note
               stay in the frame while it holds */
            .vitrine { align-self: stretch; align-content: center; justify-items: end; container-type: size; }
            .obj { width: min(100%, 720px, 44vw, 58svh, 100cqh - 56px); }
            .step-issue  { animation: cut-out linear both; animation-timeline: --how; animation-range: contain 28.99% contain 29%; }
            .step-hold   { animation: cut linear both, cut-out linear forwards; animation-timeline: --how, --how;
                           animation-range: contain 28.99% contain 29%, contain 62.99% contain 63%; }
            .step-verify { animation: cut linear both; animation-timeline: --how; animation-range: contain 62.99% contain 63%; }
            /* the line comes as the grille lands, and holds to the step's cut: a third of a screen of scroll */
            .obj-die   { animation: push linear both, dissolve-out linear both; animation-timeline: --how, --how;
                         animation-range: contain 0% contain 26%, contain 26% contain 32%; }
            .obj-paper { animation: dissolve linear both, dissolve-out linear forwards; animation-timeline: --how, --how;
                         animation-range: contain 26% contain 32%, contain 60% contain 66%; }
            .obj-table { animation: dissolve linear both; animation-timeline: --how; animation-range: contain 60% contain 66%; }
            .grille { animation: grille linear both; animation-timeline: --how; animation-range: contain 32% contain 46%; }
            .loupe  { animation: loupe linear both; animation-timeline: --how; animation-range: contain 66% contain 84%; }
        }

        /* The rules: the raking light gives way to the lamp; each rule is cut as it arrives, its groove
           shadows turning from the raking light to the lamp. */
        .wall .rake { opacity: 1; animation: dissolve-out linear both; animation-timeline: --rules; animation-range: contain 0% contain 60%; }
        .act-rules { view-timeline: --rules block; }
        .laws { animation: light linear both; animation-timeline: --rules; animation-range: contain 0% contain 60%; }
        .laws li { animation: inscribe-law linear both; animation-timeline: view(); animation-range: cover 15% cover 35%; }

        /* The hard cases: the two results arrive together; only later, outside the frame of the second, the
           line the coercer cannot see. The channels cross; the second authority runs through the crossing,
           which fills. The second seal is engraved beside the first; the one active mark moves, in one frame. */
        .panes { animation: dissolve linear both; animation-timeline: view(); animation-range: entry 20% cover 30%; }
        .tell { animation: inscribe linear both; animation-timeline: view(); animation-range: cover 50% cover 60%; }
        .crossing { view-timeline: --cross block; }
        .crossing .rv { stroke-dasharray: 1 1; animation: draw-line linear both; animation-timeline: --cross; }
        .crossing mask:nth-of-type(1) .rv { animation-range: cover 18% cover 32%; }
        .crossing mask:nth-of-type(2) .rv { animation-range: cover 24% cover 38%; }
        .crossing mask:nth-of-type(3) .rv { animation-range: cover 30% cover 44%; }
        .crossing .cut { animation: cut linear both; animation-timeline: --cross; animation-range: cover 47.99% cover 48%; }
        /* each number lights as its line reaches it: the first and second at their lines' ends, the third at its start */
        .crossing .nb g { animation: appear linear both; animation-timeline: --cross; }
        .crossing .nb .n1 { animation-range: cover 29% cover 32%; }
        .crossing .nb .n2 { animation-range: cover 35% cover 38%; }
        .crossing .nb .n3 { animation-range: cover 30% cover 33%; }
        .seals { view-timeline: --seals block; }
        .seals .rv { stroke-dasharray: 1 1; animation: draw-line linear both; animation-timeline: --seals; animation-range: cover 22% cover 46%; }
        .seals .retired { animation: cut linear both; animation-timeline: --seals; animation-range: cover 61.99% cover 62%; }
        .seals .s1 { animation: retire linear both; animation-timeline: --seals; animation-range: cover 61.99% cover 62%; }

        /* The night: it returns and the frame opens as the sky pushes in; the exposure grows from half an hour to
           two hours, each copy of the half-hour plate turning on at the same rate, so the arcs grow without a gap.
           The creed, then the aim, rise into their place while the page still moves them; while the frame holds
           the words drift, never still; the motto tracks in; at the end they dissolve as the last act comes up. */
        .night { view-timeline: --night block; }
        .exposure > :nth-child(2) img { animation: turn-1 linear both; animation-timeline: --night; animation-range: cover 15% cover 35%; }
        .exposure > :nth-child(3) img { animation: turn-2 linear both; animation-timeline: --night; animation-range: cover 15% cover 55%; }
        .exposure > :nth-child(4) img { animation: turn-3 linear both; animation-timeline: --night; animation-range: cover 15% cover 75%; }
        .exposure { animation: night-push linear both; animation-timeline: --night; animation-range: cover 0% cover 45%; }
        .aperture { animation: dissolve linear both; animation-timeline: --night; animation-range: cover 0% cover 22%; }
        @media (min-width: 1100px) and (min-aspect-ratio: 16/10) {
            .aperture { animation: aperture linear both; animation-timeline: --night; animation-range: cover 0% cover 22%; }
        }
        @media (min-width: 901px) and (min-height: 600px) {
            .voyage { block-size: 160svh; view-timeline: --voy block; }
            .voyage-frame { position: sticky; top: 0; block-size: 100svh; align-content: center; padding-block: 0; }
            .purpose { grid-row: 1; align-self: center; margin: 0;
                       animation: drift linear both, dissolve-out linear both; animation-timeline: --voy, --voy;
                       animation-range: entry 0% exit 100%, contain 80% contain 100%; }
            .creed { animation: rise-in linear both; animation-timeline: --voy; animation-range: entry 55% contain 14%; }
            .aim { animation: rise-in linear both; animation-timeline: --voy; animation-range: entry 72% contain 24%; }
            .motto { grid-row: 2; animation: track-in linear both; animation-timeline: --voy; animation-range: contain 30% contain 46%; }
        }
        .act-end > * { animation: dissolve linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
        /* On a phone the voyage is not held: its words rise as they come up the screen, each on its own view,
           settling a third of the way up; the motto dissolves in (tracking its letters would wrap it mid-move on
           a narrow screen). */
        @media (max-width: 900px) {
            .creed, .aim { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
            .motto { animation: dissolve linear both; animation-timeline: view(); animation-range: entry 20% cover 30%; }
            /* how it works, unheld: each object settles as it comes up, the grille slides over the page and the
               loupe comes down on the table as they cross the screen; each step's words rise after its object */
            .obj { animation: dissolve linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
            .obj picture:first-child img { animation: push linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
            .obj-paper { view-timeline: --paper block; } .obj-table { view-timeline: --table block; }
            .grille { animation: grille linear both; animation-timeline: --paper; animation-range: cover 25% cover 55%; }
            .loupe { animation: loupe linear both; animation-timeline: --table; animation-range: cover 25% cover 60%; }
            .steps li { animation: dissolve linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
        }
    }
}
/* The act headlines type themselves out when the reader reaches them, at every width, with the hero's keyframes
   (key-wait, caret-on, caret-end, in index.css). A view timeline on the letters' wrapper (.ty) flips --seen from 0 to
   1 once the headline's top has risen a fifth of the screen above its foot (a length, not a share of the range: the
   range of a headline in a held act runs the length of the hold, and a share of it would wait until mid-screen);
   a style query on --seen hides the letters before that point and starts
   each one's timed reveal after it, so the typing runs in time, not with the scroll, and runs again when the reader
   comes back down to it. --seen rests at 1 and only the timeline's backward fill makes it 0, so with no scroll
   timelines, no style queries, an inactive timeline, or a reader who asks for less motion, nothing here hides a
   letter. */
@property --seen { syntax: "<integer>"; inherits: true; initial-value: 1; }
@media screen and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
    @supports (animation-timeline: view()) {
        .ty { animation: seen-flip linear both; animation-timeline: view(); animation-range: cover 20vh cover calc(20vh + 4px); }
        @container style(--seen: 0) { .ty .k { visibility: hidden; } }
        @container style(--seen: 1) {
            .ty .k { animation-name: key-wait; animation-timing-function: step-end; }
            .ty .k::after { animation-name: caret-on; animation-timing-function: step-end; }
            .ty .k:last-child::after { animation-name: caret-end; animation-timing-function: linear; animation-duration: 1.6s; }
        }
        /* (generated: each letter's time and its caret's stay, the same for every headline) */
        .ty .k1 { animation-duration: 0.12s; } .ty .k1::after { animation-delay: 0.12s; animation-duration: 0.055s; }
        .ty .k2 { animation-duration: 0.175s; } .ty .k2::after { animation-delay: 0.175s; animation-duration: 0.033s; }
        .ty .k3 { animation-duration: 0.208s; } .ty .k3::after { animation-delay: 0.208s; animation-duration: 0.046s; }
        .ty .k4 { animation-duration: 0.254s; } .ty .k4::after { animation-delay: 0.254s; animation-duration: 0.03s; }
        .ty .k5 { animation-duration: 0.284s; } .ty .k5::after { animation-delay: 0.284s; animation-duration: 0.05s; }
        .ty .k6 { animation-duration: 0.334s; } .ty .k6::after { animation-delay: 0.334s; animation-duration: 0.042s; }
        .ty .k7 { animation-duration: 0.376s; } .ty .k7::after { animation-delay: 0.376s; animation-duration: 0.038s; }
        .ty .k8 { animation-duration: 0.414s; } .ty .k8::after { animation-delay: 0.414s; animation-duration: 0.052s; }
        .ty .k9 { animation-duration: 0.466s; } .ty .k9::after { animation-delay: 0.466s; animation-duration: 0.032s; }
        .ty .k10 { animation-duration: 0.498s; } .ty .k10::after { animation-delay: 0.498s; animation-duration: 0.048s; }
        .ty .k11 { animation-duration: 0.546s; } .ty .k11::after { animation-delay: 0.546s; animation-duration: 0.036s; }
        .ty .k12 { animation-duration: 0.582s; } .ty .k12::after { animation-delay: 0.582s; animation-duration: 0.044s; }
        .ty .k13 { animation-duration: 0.626s; } .ty .k13::after { animation-delay: 0.626s; animation-duration: 0.055s; }
        .ty .k14 { animation-duration: 0.681s; } .ty .k14::after { animation-delay: 0.681s; animation-duration: 0.029s; }
        .ty .k15 { animation-duration: 0.71s; } .ty .k15::after { animation-delay: 0.71s; animation-duration: 0.046s; }
        .ty .k16 { animation-duration: 0.756s; } .ty .k16::after { animation-delay: 0.756s; animation-duration: 0.04s; }
        .ty .k17 { animation-duration: 0.796s; } .ty .k17::after { animation-delay: 0.796s; animation-duration: 0.051s; }
        .ty .k18 { animation-duration: 0.847s; } .ty .k18::after { animation-delay: 0.847s; animation-duration: 0.033s; }
        .ty .k19 { animation-duration: 0.88s; } .ty .k19::after { animation-delay: 0.88s; animation-duration: 0.042s; }
        .ty .k20 { animation-duration: 0.922s; } .ty .k20::after { animation-delay: 0.922s; animation-duration: 0.042s; }
        .ty .k21 { animation-duration: 0.964s; } .ty .k21::after { animation-delay: 0.964s; animation-duration: 0.055s; }
        .ty .k22 { animation-duration: 1.019s; } .ty .k22::after { animation-delay: 1.019s; animation-duration: 0.033s; }
        .ty .k23 { animation-duration: 1.052s; } .ty .k23::after { animation-delay: 1.052s; animation-duration: 0.047s; }
        .ty .k24 { animation-duration: 1.099s; } .ty .k24::after { animation-delay: 1.099s; animation-duration: 0.029s; }
        .ty .k25 { animation-duration: 1.128s; } .ty .k25::after { animation-delay: 1.128s; animation-duration: 0.05s; }
        .ty .k26 { animation-duration: 1.178s; } .ty .k26::after { animation-delay: 1.178s; animation-duration: 0.042s; }
        /* (end of the generated letter rules) */
    }
}
/* The five moves, and the few curves built from them. Nothing takes a click before it can be seen: what
   cuts or dissolves in ignores the pointer until it is there. */
@keyframes cut       { from { opacity: 0; pointer-events: none; } to { opacity: 1; } }
@keyframes cut-out   { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes dissolve  { from { opacity: 0; pointer-events: none; } to { opacity: 1; } }
@keyframes dissolve-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes inscribe  { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes inscribe-law { from { clip-path: inset(-48px 100% -0.3em -0.3em); } to { clip-path: inset(-48px -0.3em -0.3em -0.3em); } }
@keyframes push      { from { scale: 1.04; } to { scale: 1; } }
@keyframes night-push { from { scale: 1.06; } to { scale: 1; } }
@keyframes rise-in   { from { opacity: 0; translate: 0 32px; filter: blur(8px); pointer-events: none; }
                       60% { filter: blur(0); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes drift     { from { translate: 0 5vh; } to { translate: 0 -5vh; } }
@keyframes track-in  { from { opacity: 0; letter-spacing: 0.55em; } to { opacity: 1; letter-spacing: 0.3em; } }
@keyframes aperture  { from { clip-path: inset(max(0px, calc((100cqb - 100cqi / 2.39) / 2)) 0); } to { clip-path: inset(0 0); } }
@keyframes light     { from { --az: 0deg; } to { --az: 135deg; } }
@keyframes grille    { from { translate: 38% 0; } to { translate: 0 0; } }
@keyframes loupe     { from { translate: 0 0; } to { translate: 0 6%; } }
@keyframes turn-1    { from { rotate: 0deg; } to { rotate: 7.52deg; } }
@keyframes turn-2    { from { rotate: 0deg; } to { rotate: 15.04deg; } }
@keyframes turn-3    { from { rotate: 0deg; } to { rotate: 22.56deg; } }
@keyframes draw-line { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes retire    { from { opacity: 1; } to { opacity: 0.5; } }
@keyframes seen-flip { from { --seen: 0; } to { --seen: 1; } }

/* On a narrow phone the hero's first line is two lines, the name over the description, with no dot between. */
@media (max-width: 520px) {
    .eyebrow .sep { display: none; }
    .eyebrow .tag { display: block; white-space: nowrap; }
}
