/* ============================================================================
   Curivox — light
   ----------------------------------------------------------------------------
   Sinch's shape: white ground, one accent, dark confident sans, and the product
   shown as a real surface rather than described.

   Two measured constraints drive the whole palette:
     · Bright orange as TEXT on white is 2.61 and fails. Orange text is #b54e09.
     · White on bright orange is 2.61 and fails. Buttons are INK on orange, 6.94.

   So the accent has two forms and they are not interchangeable: a dark burnt
   orange for anything that is read, a bright orange for anything that is filled.
   ========================================================================== */

:root {
  --paper:  #ffffff;
  --alt:    #f5f4f1;   /* alternating band */
  --sunk:   #ecebe7;   /* insets, rails */

  --ink:    #14161a;   /* 18.11 on white */
  --muted:  #55595f;   /*  7.05 */
  --dim:    #53585f;   /*  7.17 */

  --line:   #e6e4e0;
  --line-2: #d8d5cf;
  --edge:   #b9b5ad;

  --accent-text: #963f06;  /* 6.98 on white — anything read */
  --accent-fill: #ff7a1a;  /* ink on it = 6.94 — anything filled */
  --accent-deep: #e56a0d;
  --on-accent:   #14161a;

  /* --- TYPE SCALE ---------------------------------------------------------
     One scale, stated once. Before this the page carried 35 distinct type
     styles across four weights (400/500/600/700) with a top-to-bottom ratio of
     only 5.1:1 - measured, not estimated. Four weights is not a hierarchy, it
     is four ways of saying "important" that do not agree with each other.

     TWO WEIGHTS, and the rule is what they mean rather than how loud they are:
       400  everything the reader READS - headings, prose, labels, numbers
       500  everything the reader OPERATES - buttons, nav, controls
     Nothing is 600 or 700. Hierarchy comes from size, case, colour and the
     switch to mono, all of which survive a font failing to load.

     TWO LEADING SYSTEMS, deliberately separate:
       display  0.92 and below - lines interlock, the block reads as one shape
       body     1.55 - actually readable for real paragraphs
     The reference sets its body at 1.2, which suits its very short copy. This
     site has paragraphs people have to read, so that number is not copied. */
  --t-display: clamp(2.6rem, 1.2rem + 5.6vw, 8rem);
  --t-wall:    clamp(2.4rem, 1.1rem + 5.2vw, 7.5rem);
  --t-h2:      clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem);
  --t-h3:      clamp(1.15rem, 1rem + .5vw, 1.4rem);
  --t-body:    1rem;
  --t-small:   .88rem;
  --t-micro:   .68rem;

  --lh-display: .92;
  --lh-h2:      .95;
  --lh-h3:      1.12;
  --lh-body:    1.55;

  --w-read: 400;    /* things you read    */
  --w-do:   500;    /* things you operate */

  --ease-out:  cubic-bezier(.23, 1, .32, 1);
  --ease-soft: cubic-bezier(.32, .72, 0, 1);
  --spring:    cubic-bezier(.34, 1.4, .64, 1);

  /* RENAMED FROM --t-micro, WHICH IT WAS SILENTLY DESTROYING.

     --t-micro is declared above as .68rem, the smallest type size, and is used
     as a font-size in twenty places. This line redeclared the same name as a
     duration on the same :root, so the duration won everywhere and every one of
     those twenty `font-size: var(--t-micro)` declarations was invalid - the
     browser dropped them and the text fell back to inherited 16px.

     That is why small labels across the site rendered at body size: the eyebrow
     rows, the walk and night-work meta, the queue chrome and the reading pane's
     "WRITTEN, NOT SENT". One character of overlap in a token name. */
  --t-fast: 150ms;

  --shadow-sm: 0 1px 2px rgb(20 22 26 / 6%), 0 4px 12px -6px rgb(20 22 26 / 10%);
  --shadow-lg: 0 1px 2px rgb(20 22 26 / 5%), 0 30px 60px -30px rgb(20 22 26 / 22%);
  --rule-fade: linear-gradient(90deg, transparent, var(--line) 10%, var(--line) 90%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
/* Declared, not assumed. Without this, Chrome's auto-dark on Android will
   invert the whole palette on a page that never opted into dark — which is
   what it was doing here: white bands rendered as near-black. The design is
   light on purpose, so say so. */
html { color-scheme: light; -webkit-text-size-adjust: 100%; background: var(--paper); scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Flat on purpose now. The wash is the .aurora layer, which moves. */
  background: var(--paper);
}

/* The browser defaults b and strong to 700, which reintroduces a third weight
   through the back door - it was still measurable after every declaration in
   this file had been normalised. In this system emphasis is carried by colour
   and by the switch to mono, so these carry no extra weight of their own. The
   elements stay because the semantics are right; only the styling changes. */
b, strong { font-weight: var(--w-read); }

h1, h2, h3 {
  margin: 0;
  font-weight: var(--w-read);
  letter-spacing: -.03em;
  line-height: var(--lh-h2);
  text-wrap: balance;
}
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(1.15rem, 3.5vw, 2.5rem); }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 120;
  background: var(--ink); color: var(--paper);
  padding: .7rem 1rem; font-weight: var(--w-do); text-decoration: none;
}
.skip:focus { left: 0; }

.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .69rem; letter-spacing: .07em; text-transform: uppercase; }

.scroll-progress {
  position: fixed; z-index: 110; top: 0; left: 0; right: 0; height: 2px;
  transform: scaleX(0); transform-origin: 0 50%; background: var(--accent-fill);
}

/* --- Kicker -------------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--accent-text); font-size: .69rem; font-weight: var(--w-read);
  letter-spacing: .16em; text-transform: uppercase;
  font-family: "IBM Plex Mono", monospace;
}
.pill__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-fill); }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: .45rem .95rem;
  border: 1px solid transparent; border-radius: 7px;
  font: inherit; font-weight: var(--w-do); font-size: .84rem;
  text-decoration: none; cursor: pointer;
  /* --t-fast, NOT --t-micro. --t-micro is .68rem, a font size. A transition
     component with a length where a duration belongs is invalid, and one
     invalid component invalidates the WHOLE comma-separated declaration - so
     every .btn on the site had no transition at all, including the two
     components that were correct. Leftover from the rename; see the token
     block. */
  transition: background var(--t-fast) var(--ease-soft), border-color var(--t-fast) var(--ease-soft),
              color var(--t-fast) var(--ease-soft), transform var(--t-fast) var(--spring);
}
.btn--accent { background: var(--accent-fill); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-deep); }
.btn--accent:active { transform: scale(.97); }
.btn--quiet { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.btn--quiet:hover { border-color: var(--edge); background: var(--alt); }
.btn--quiet:active { transform: scale(.97); }

.cta {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .5rem .5rem .5rem 1.25rem; border-radius: 999px;
  background: var(--accent-fill); color: var(--on-accent);
  font-weight: var(--w-do); font-size: .92rem; text-decoration: none;
  box-shadow: 0 8px 20px -10px rgb(255 122 26 / 80%);
  transition: background 300ms var(--ease-soft), transform 300ms var(--spring), translate 420ms var(--ease-soft);
  translate: var(--mx, 0) var(--my, 0);
}
.cta:hover { background: var(--accent-deep); }
.cta:active { transform: scale(.975); }
.cta__orb {
  display: grid; place-items: center; width: 1.9rem; height: 1.9rem;
  border-radius: 50%; background: rgb(20 22 26 / 12%); font-style: normal; font-size: .85rem;
  transition: transform 300ms var(--ease-soft);
}
.cta:hover .cta__orb { transform: translate(2px, -2px); }

.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: var(--w-do); color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* --- Status bar + header ------------------------------------------------- */
.statusbar { position: relative; z-index: 41; background: var(--ink); color: #c9ccd1; }
.statusbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: .5rem; }
.statusbar .mono:first-child { color: #ffb37a; }
.statusbar__aside { color: #9aa0a8; }

.masthead { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / 88%); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.masthead__inner { display: flex; align-items: center; gap: 1.25rem; min-height: 62px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: var(--w-read); font-size: 1.02rem; letter-spacing: -.025em; }
.brand__mark { width: 15px; height: 15px; flex: 0 0 auto; border-radius: 4px; background: linear-gradient(140deg, var(--accent-fill), var(--accent-deep)); }

.nav { display: none; margin-left: auto; gap: .1rem; }
.nav a { padding: .42rem .72rem; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: var(--w-do); transition: color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out); }
.nav a:hover { color: var(--ink); background: var(--alt); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: var(--w-do); background: var(--alt); }

.burger { margin-left: auto; display: inline-flex; align-items: center; gap: .5rem; min-height: 38px; padding: .35rem .8rem; border-radius: 7px; background: var(--paper); border: 1px solid var(--line-2); font: inherit; font-size: .84rem; font-weight: var(--w-do); color: var(--ink); cursor: pointer; }
.burger__bars { display: grid; gap: 4px; }
.burger__bars i { display: block; width: 15px; height: 1.5px; background: var(--ink); transition: transform 320ms var(--ease-soft); }
.burger[aria-expanded="true"] .burger__bars i:first-child { transform: translateY(2.75px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.panel { position: relative; z-index: 39; background: var(--paper); border-bottom: 1px solid var(--line); }
.panel__head { display: flex; justify-content: space-between; align-items: center; padding: .8rem clamp(1.15rem,3.5vw,2.5rem); border-bottom: 1px solid var(--line); color: var(--dim); }
.panel__close { background: none; border: 0; font: inherit; font-weight: var(--w-do); color: var(--accent-text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.panel a { display: flex; align-items: center; justify-content: space-between; padding: .95rem clamp(1.15rem,3.5vw,2.5rem); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: var(--w-do); }
.panel a i { font-style: normal; color: var(--dim); transition: transform 260ms var(--ease-soft); }
.panel a:hover i { transform: translateX(4px); }
.panel a[aria-current="page"] { color: var(--accent-text); }

/* --- Scroll reveal (armed by script only) -------------------------------- */
[data-rise].is-armed { opacity: 0; transform: translateY(18px); }
[data-rise].is-risen {
  opacity: 1; transform: none;
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--rise-delay, 0ms);
}

/* ============================================================================
   THE TICKER

   A running status line in the top band. LINEAR, and permanently so: this is a
   constant-speed loop that meets itself, and any easing on it changes speed
   across the seam, which reads as a stutter every time the track wraps. The
   house rule against linear transitions is about UI feedback, where easing
   carries meaning; a conveyor belt is the exception and this is a conveyor
   belt.

   The track holds the same run twice and travels exactly -50% of itself, so the
   second copy is under the first at the moment it resets and the join is
   invisible. Transform only, so it composites and never touches layout.
   ========================================================================== */
.ticker { overflow: hidden; }
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 46s linear infinite;
}
.ticker__run {
  display: flex; align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
}
.ticker__run b { font-weight: var(--w-read); color: var(--accent-fill); }
.ticker__run span { color: #b9bec7; }
.ticker__run i { font-style: normal; color: #6c727c; padding: 0 1.25rem; }

@keyframes ticker {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Paused on hover, so anyone trying to actually read a line can. */
.ticker:hover .ticker__track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  /* Stopped, not slowed. The content is all still there and readable from the
     start of the track. */
  .ticker__track { animation: none; }
}

/* ============================================================================
   HERO
   ========================================================================== */

.hero { padding-block: clamp(3rem, 6vw, 5.5rem) 0; }
.hero__intro { max-width: 64rem; }
.hero__title { margin-top: 1.3rem; font-size: clamp(2.1rem, 1.35rem + 2.9vw, 4rem); color: var(--dim); }
.hero__title em { font-style: normal; color: var(--ink); }
.hero__lede { margin-top: 1.3rem; max-width: 56ch; font-size: clamp(1rem, .96rem + .25vw, 1.12rem); color: var(--muted); }
.hero__cta { margin-top: 1.9rem; display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.hero__hint { color: var(--dim); }

/* --- The product surface ------------------------------------------------- */
.hero__stage { margin-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(3rem, 6vw, 5.5rem); }

.app {
  border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
  background: var(--paper); box-shadow: var(--shadow-lg);
}
.app__bar { display: flex; align-items: center; gap: 1rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: var(--alt); }
.app__id { display: inline-flex; align-items: center; gap: .5rem; font-size: .84rem; font-weight: var(--w-read); color: var(--ink); }
.app__id i { width: 12px; height: 12px; border-radius: 3px; background: linear-gradient(140deg, var(--accent-fill), var(--accent-deep)); }
.app__ctx { margin-inline: auto; color: var(--dim); }
.app__who { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sunk); font-family: "IBM Plex Mono", monospace; font-size: .66rem; font-weight: var(--w-read); color: var(--muted); letter-spacing: .04em; }

.app__body { display: grid; }

/* The morning is the argument, so it must survive on a phone. Below 900px it
   drops under the queue: decisions first, then what was read to produce them. */
.rail { order: 2; padding: 1rem .75rem; border-top: 1px solid var(--line); background: var(--alt); }
.rail__group { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; color: var(--dim); padding: .4rem .6rem; }
.rail__group b { font-weight: var(--w-read); font-variant-numeric: tabular-nums; color: var(--muted); }
.rail__list { margin-bottom: 1.1rem; }
.rail__item { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .42rem .6rem; border-radius: 6px; font-size: .84rem; color: var(--muted); }
.rail__item b { font-weight: var(--w-read); font-variant-numeric: tabular-nums; color: var(--dim); font-size: .78rem; }
.rail__item.is-on { background: rgb(255 122 26 / 14%); color: var(--ink); font-weight: var(--w-read); box-shadow: inset 2px 0 0 var(--accent-fill); }
/* Ink, not orange: on the tinted active row the burnt orange composites to
   4.15 and fails. The row is already signalled by tint, bar and weight. */
.rail__item.is-on b { color: var(--ink); }

.rail__feed { display: grid; gap: .05rem; }
.feed { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; padding: .3rem .6rem; border-radius: 5px; font-size: .79rem; line-height: 1.35; color: var(--muted); }
.feed i { flex: 0 0 auto; font-style: normal; font-family: "IBM Plex Mono", monospace; font-size: .66rem; color: var(--dim); }
.feed--noise { color: var(--dim); }
.feed--rest { color: var(--dim); font-style: italic; padding-top: .5rem; }

.app__foot { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 1rem; border-top: 1px solid var(--line); background: var(--alt); color: var(--dim); }

/* ============================================================================
   Demo 1 — the approval queue
   ========================================================================== */

/* ONE HEIGHT FOR EVERY VIEW.

   The briefing, the reading pane and the approval list are different lengths -
   measured at 651, 607 and 802px - so switching between them resized the whole
   window and shoved the page under the cursor. A panel that changes size when
   you click inside it is the thing that reads as "bugging out".

   The window is fixed and the CONTENT scrolls, which is how every mail client
   and chat app has always worked. 650px matches what the briefing already
   needed, so the default view is unchanged. */
.queue {
  position: relative; min-width: 0; background: var(--paper);
  display: flex; flex-direction: column;
  /* HEIGHT, NOT MIN-HEIGHT. min-height is a floor, so the approval list grew
     to its content and took the window to 4,452px - worse than the 151px shift
     it was meant to cure. A fixed height is what makes the children scroll. */
  height: 650px;
}
.queue > .digest,
.queue > .detail,
.queue > .queue__stack { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.queue__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
.queue__title { font-size: .88rem; font-weight: var(--w-read); color: var(--ink); }
.queue__count { color: var(--dim); display: inline-flex; align-items: baseline; gap: .32em; }
.roller { display: inline-block; height: 1em; overflow: hidden; vertical-align: baseline; font-variant-numeric: tabular-nums; color: var(--accent-text); }
.roller__track { display: block; will-change: transform; }
.roller__digit { display: block; height: 1em; line-height: 1; }

/* A FIXED RADIUS, NOT AN INFINITE LIST.

   Fifty cards rendered as 3,235px of stack, which took the hero to 4,786px -
   five and a third screens before the second section. An app window does not
   grow to fit its contents; it keeps its shape and scrolls inside. 340px shows
   three cards and the top of a fourth, which is enough to read as "there are
   more" without becoming the page. */
.queue__stack {
  position: relative;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.queue__stack[hidden] { display: none; }

/* --- the morning briefing ------------------------------------------------ */
.digest { padding: .9rem 1.1rem 1.1rem; }
.digest[hidden] { display: none; }
.digest__lead { margin: 0 0 1rem; font-size: .95rem; line-height: 1.5; }
.digest__lead b { font-weight: var(--w-read); color: var(--ink); }
.digest__lead span { color: var(--dim); }
.digest__group {
  margin: 1rem 0 .35rem; font-size: var(--t-micro); letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
.digest__group:first-of-type { margin-top: 0; }
.digest__list { margin: 0; padding: 0; list-style: none; }
.digest__row + .digest__row { border-top: 1px solid var(--line); }
.digest__hit {
  display: flex; align-items: baseline; gap: .8rem; width: 100%;
  padding: .55rem .4rem; margin: 0; text-align: left;
  background: none; border: 0; font: inherit; color: inherit;
}
.digest__row.is-open .digest__hit { cursor: pointer; }
.digest__row.is-open .digest__hit:hover,
.digest__row.is-open .digest__hit:focus-visible { background: var(--sunk); border-radius: 8px; }
.digest__n {
  flex: 0 0 auto; min-width: 2.6rem; font-variant-numeric: tabular-nums;
  font-size: .95rem; color: var(--muted);
}
.digest__row[data-tone="act"] .digest__n { color: var(--accent-text); }
.digest__row[data-tone="ask"] .digest__n { color: var(--accent-text); }
.digest__text { min-width: 0; }
.digest__label { display: block; color: var(--ink); font-size: .9rem; }
.digest__note { display: block; margin-top: .1rem; color: var(--dim); font-size: .82rem; line-height: 1.4; }
.digest__go {
  margin-left: auto; flex: 0 0 auto; align-self: center;
  font-size: var(--t-micro); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-text); opacity: .85;
}
/* THE HIT AREA IS THE FLOOR, NOT THE TYPE SIZE. This is micro type with .2rem
   of padding, which measured 30.3px tall on a phone - the only control on the
   site under the floor the rest of the demo chrome keeps. The box grows; the
   label does not.

   44, AND 44 IS NOT ARBITRARY: `.wrap` carries `scale(.88)` on a phone, so
   every control inside the demo renders at 88% of what it declares. The
   approve buttons declare 44 and measure 38.7 on screen. 36 here measured
   31.7 - still under the floor, which is how the first attempt at this was
   caught. Declare what the rest of the panel declares and it lands where the
   rest of the panel lands. */
.queue__back {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: var(--t-micro); letter-spacing: .06em; color: var(--dim); padding: .2rem .3rem;
}
.queue__back:hover, .queue__back:focus-visible { color: var(--ink); }
.queue__back[hidden] { display: none; }

/* --- the left rail is a LIST ---------------------------------------------
   Rows are buttons that open on the right. Nothing expands in place: the list
   is for finding, the panel is for reading, and a row that grows under the
   cursor pushes everything below it down the screen mid-click. */
.rail__item--open, .feed--open { padding: 0; display: block; }
.rail__hit, .feed__hit {
  display: flex; align-items: baseline; justify-content: space-between; gap: .6rem;
  width: 100%; margin: 0; text-align: left; cursor: pointer;
  background: none; border: 0; font: inherit; color: inherit; border-radius: 7px;
}
.rail__hit { padding: .4rem .6rem; }
.feed__hit { padding: .3rem .45rem; }
.rail__hit:hover, .feed__hit:hover,
.rail__hit:focus-visible, .feed__hit:focus-visible { background: var(--sunk); }

/* Which row you are reading. A left edge, the same device the queue uses. */
.rail__item.is-reading, .feed.is-reading { position: relative; }
.rail__item.is-reading .rail__hit,
.feed.is-reading .feed__hit { background: var(--sunk); }
.rail__item.is-reading::before, .feed.is-reading::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 2px; border-radius: 2px; background: var(--accent-fill);
}

/* --- the reading pane ----------------------------------------------------- */
.detail { padding: 1rem 1.15rem 1.2rem; }
.detail[hidden] { display: none; }
.detail:focus { outline: none; }
.detail__kind {
  margin: 0 0 .3rem; font-size: var(--t-micro); letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
.detail__title { margin: 0 0 .5rem; font-size: 1.05rem; font-weight: var(--w-read); color: var(--ink); line-height: 1.35; }
.detail__state {
  display: inline-block; margin: 0 0 .9rem;
  font-size: var(--t-micro); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.detail__state[data-state="needs"], .detail__state[data-state="drafted"] { color: var(--accent-text); }
.detail__draft {
  margin: 0 0 1rem; padding: .7rem .85rem;
  border-left: 2px solid var(--accent-fill);
  background: var(--sunk); border-radius: 0 8px 8px 0;
  font-size: .9rem; line-height: 1.6; color: var(--ink);
}
.detail__wlab {
  margin: 0 0 .25rem; font-size: var(--t-micro); letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent-text);
}
.detail__why { margin: 0 0 1rem; font-size: .85rem; line-height: 1.6; color: var(--dim); }
.detail__rows { margin: 0 0 1rem; padding: 0; list-style: none; }
.detail__rows li {
  display: flex; flex-direction: column; gap: .05rem;
  padding: .45rem 0; border-top: 1px solid var(--line);
}
.detail__rows li:first-child { border-top: 0; }
.detail__rows b { font-weight: var(--w-read); font-size: .86rem; color: var(--ink); }
.detail__rows span { font-size: .8rem; line-height: 1.45; color: var(--dim); }
.detail__acts { display: flex; gap: .5rem; flex-wrap: wrap; }

/* --- the morning list, openable ------------------------------------------- */
.feed--open { padding: 0; }
.feed__hit {
  display: flex; align-items: baseline; justify-content: space-between; gap: .6rem;
  width: 100%; padding: .3rem .45rem; margin: 0; text-align: left;
  background: none; border: 0; font: inherit; color: inherit; cursor: pointer;
  border-radius: 6px;
}
.feed__hit:hover, .feed__hit:focus-visible { background: var(--sunk); }
.feed__hit[aria-expanded="true"]::after { content: "close"; }

.btn--sm { padding: .3rem .7rem; font-size: .74rem; }
.btn--sm[disabled] { opacity: .5; cursor: default; }
.card { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.card:last-child { border-bottom: 0; }

.card__top { display: flex; align-items: center; gap: .7rem; }
.card__avatar { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 7px; background: var(--sunk); font-family: "IBM Plex Mono", monospace; font-size: .66rem; color: var(--muted); letter-spacing: .04em; }
.card__id { min-width: 0; }
.card__kind { color: var(--ink); font-weight: var(--w-read); }
.card__meta { color: var(--dim); margin-top: .12rem; text-transform: none; letter-spacing: .01em; }
.card__age { margin-left: auto; flex: 0 0 auto; color: var(--dim); text-transform: none; letter-spacing: .02em; }

.card__body, .card__actions { display: none; }
.card.is-active { background: #fffdfb; }
.card.is-active .card__body { display: block; }
.card.is-active .card__actions { display: flex; }

.card__body { margin-top: .85rem; padding-left: calc(30px + .7rem); }
.card__draft { padding: .8rem .9rem; border-radius: 3px 8px 8px 3px; background: var(--alt); border-left: 2px solid var(--accent-fill); color: var(--ink); font-size: .89rem; line-height: 1.6; white-space: pre-wrap; }
.card__why { margin-top: .7rem; font-size: .83rem; color: var(--muted); line-height: 1.5; }
.card__why b { display: block; color: var(--accent-text); font-family: "IBM Plex Mono", monospace; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; font-weight: var(--w-read); margin-bottom: .2rem; }
.card__edit { display: block; width: 100%; margin-top: .55rem; padding: .8rem .9rem; font: inherit; font-size: .89rem; line-height: 1.6; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: 8px; resize: vertical; min-height: 7rem; }
.card__actions { gap: .45rem; margin-top: .95rem; margin-left: calc(30px + .7rem); flex-wrap: wrap; }

.ghost { position: absolute; margin: 0; pointer-events: none; z-index: 4; display: block; list-style: none; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); will-change: transform, opacity; }

.queue__log:not(:empty) { border-top: 1px solid var(--line); }
.record { display: flex; align-items: center; gap: .7rem; padding: .6rem 1.1rem; border-bottom: 1px solid var(--line); }
.record:last-child { border-bottom: 0; }
.record__what { color: var(--dim); font-size: .82rem; flex: 1 1 auto; min-width: 0; }
.record__what b { color: var(--muted); font-weight: var(--w-read); }
.record__tag { color: var(--accent-text); font-weight: var(--w-read); }
.record--skipped .record__tag { color: var(--dim); }

.queue__empty { padding: 1.2rem 1.1rem; color: var(--muted); font-size: .9rem; }
.queue__status { padding: 0 1.1rem .6rem; font-size: .82rem; color: var(--muted); }
.queue__status:empty { display: none; }

/* ============================================================================
   SECTIONS
   ========================================================================== */

.tuesday { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--ink); color: #e8eaec; }
.tuesday__inner { max-width: 40rem; }
.tuesday__mark { color: #ffb37a; }
.tuesday__lead { margin-top: 1.1rem; color: #fff; font-size: clamp(1.3rem, 1.02rem + 1.3vw, 2rem); line-height: 1.28; letter-spacing: -.024em; }
.tuesday__turn { margin-top: 1.3rem; color: #a8adb4; max-width: 48ch; }

.loop { padding-block: clamp(3.5rem, 7vw, 6rem); border-bottom: 1px solid var(--line); }
.loop__title { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.2rem); max-width: 24ch; color: var(--dim); }
.loop__title em { font-style: normal; color: var(--ink); }
.loop__steps { position: relative; margin-top: clamp(2rem, 4vw, 3rem); display: grid; gap: 1.8rem; }
.step { position: relative; padding-top: 1.2rem; border-top: 1px solid var(--line-2); }
.step__name { font-weight: var(--w-read); font-size: 1.02rem; color: var(--ink); }
.step__text { margin-top: .45rem; color: var(--muted); font-size: .91rem; line-height: 1.55; }
.step--you { border-top-color: transparent; }
.step--you .step__name { color: var(--accent-text); }
.loop__line { position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none; }
.loop__line i { display: block; height: 100%; transform-origin: left center; background: linear-gradient(90deg, var(--line-2), var(--accent-fill)); }
.loop__steps.js .loop__line i { transform: scaleX(0); }
.loop__steps.js.is-drawn .loop__line i { transform: scaleX(1); transition: transform 1200ms var(--ease-out); }

.ledger { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--alt); border-bottom: 1px solid var(--line); }
.ledger__top { display: grid; gap: .6rem; margin-bottom: clamp(1.8rem, 3vw, 2.5rem); }
.ledger__title { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.2rem); color: var(--dim); }
.ledger__title em { font-style: normal; color: var(--ink); }
.ledger__note { color: var(--dim); font-size: .9rem; }
.ledger__rows { border-top: 1px solid var(--line-2); }
.row { border-bottom: 1px solid var(--line-2); }
.row__link { position: relative; display: grid; gap: .3rem 1.5rem; align-items: center; padding: 1.15rem .4rem; color: inherit; text-decoration: none; transition: background var(--t-fast) var(--ease-soft), padding-inline-start var(--t-fast) var(--ease-soft); }
.row__link:hover, .row__link:focus-visible { background: var(--paper); padding-inline-start: 1rem; }
.row__link::after { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 2px; background: var(--accent-fill); transform: scaleY(0); transform-origin: center; transition: transform 260ms var(--spring); }
.row__link:hover::after, .row__link:focus-visible::after { transform: scaleY(1); }
.row__name { font-weight: var(--w-read); font-size: 1.02rem; color: var(--ink); }
.row__eg { color: var(--muted); font-size: .91rem; line-height: 1.5; }
.row__orb { display: grid; place-items: center; justify-self: end; width: 1.9rem; height: 1.9rem; border-radius: 50%; font-style: normal; font-size: .8rem; color: var(--muted); background: var(--paper); border: 1px solid var(--line-2); transition: transform 260ms var(--ease-soft), background 260ms var(--ease-soft), color 260ms var(--ease-soft); }
.row__link:hover .row__orb { transform: translate(2px, -2px); color: var(--on-accent); background: var(--accent-fill); border-color: var(--accent-fill); }

.position { padding-block: clamp(4rem, 8vw, 6.5rem); border-bottom: 1px solid var(--line); }
.position__inner { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
.position__title { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); max-width: 16ch; color: var(--dim); }
.position__title em { font-style: normal; color: var(--ink); }
.position__body { max-width: 48ch; display: grid; gap: 1rem; color: var(--muted); line-height: 1.66; }
.position__kicker { color: var(--ink); font-weight: var(--w-read); padding-top: 1.1rem; border-top: 1px solid transparent; border-image: var(--rule-fade) 1; }

.closing { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--alt); }
.closing__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.closing__col { display: grid; gap: .9rem; align-content: start; }
.closing__h { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); color: var(--dim); }
.closing__h em { font-style: normal; color: var(--ink); }
.closing__col p { color: var(--muted); max-width: 46ch; }
.slot { margin-top: .5rem; padding: 1rem 1.1rem; border-radius: 10px; border: 1px dashed var(--edge); background: var(--paper); }
.slot__tag { color: var(--accent-text); }
.slot__what { margin-top: .25rem; font-weight: var(--w-read); font-size: 1rem; color: var(--ink); }
.slot__why { margin-top: .35rem; font-size: .86rem; color: var(--muted); }

/* THE FOOTER IS A DARK SURFACE ON SIX LIGHT PAGES, AND NOW IT SAYS SO.

   --dim and --accent-text are tuned for WHITE (7.17 and 6.98 there). The
   footer paints --ink, and anything inside it that reached for either token
   inherited the light-page value onto a near-black ground:

     .levi-note       --dim        2.53:1   (1.51 with its opacity: .5)
     focus ring       --accent-text 2.60:1   below the 3:1 non-text floor

   Measured on all six light pages; the homepage passed only because its body
   already redefines both tokens globally. Rescoping them here fixes both at
   the cause, and matches the footer to the homepage's own dark values rather
   than inventing new ones: #9aa0a8 is what .foot__by already uses (6.9:1), and
   #ff9d52 is the homepage's dark-surface orange (8.8:1 on this ink). */
.foot {
  padding-block: 2.5rem; background: var(--ink); color: #c9ccd1;
  --dim: #9aa0a8;
  --accent-text: #ff9d52;
}
.foot .brand { color: #fff; }
.foot__inner { display: grid; gap: 1.5rem; }
.foot__by { margin-top: .6rem; color: #9aa0a8; font-size: .86rem; max-width: 38ch; }
.foot__nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.foot__nav a { color: #c9ccd1; text-decoration: none; font-size: .88rem; transition: color var(--t-fast) var(--ease-out); }
.foot__nav a:hover { color: #fff; }

/* ============================================================================
   INNER PAGES
   ========================================================================== */

.phero { padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.phero__title { margin-top: 1.2rem; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.3rem); color: var(--dim); max-width: 20ch; }
.phero__title em { font-style: normal; color: var(--ink); }
.phero__lede { margin-top: 1.2rem; max-width: 58ch; color: var(--muted); font-size: clamp(1rem, .96rem + .25vw, 1.08rem); }

.prose { padding-block: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.prose--alt { background: var(--alt); }
.prose__grid { display: grid; gap: .8rem 3rem; }
.prose__side { color: var(--dim); }
.prose__body { max-width: 60ch; display: grid; gap: 1rem; }
.prose__body h2 { font-size: clamp(1.25rem, 1.1rem + .75vw, 1.65rem); color: var(--ink); }
.prose__body p { color: var(--muted); line-height: 1.68; }
.prose__lede { color: var(--ink) !important; font-size: 1.05rem; font-weight: var(--w-read); }
.prose__body b { color: var(--ink); font-weight: var(--w-read); }
.prose__note { padding: .85rem 1rem; border-radius: 8px; background: rgb(255 122 26 / 9%); border-left: 2px solid var(--accent-fill); font-size: .92rem; }

.checks { display: grid; gap: .65rem; }
.checks li { position: relative; padding-left: 1.4rem; color: var(--muted); line-height: 1.6; }
.checks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-fill); }

.pclose { padding-block: clamp(3rem, 6vw, 5rem); }
.pclose__inner { display: grid; gap: 1.6rem; align-items: center; }
.pclose__h { font-size: clamp(1.35rem, 1.15rem + 1vw, 1.9rem); color: var(--ink); }
.pclose__inner p { margin-top: .6rem; color: var(--muted); max-width: 52ch; }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */

@media (min-width: 700px) {
  .loop__steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .row__link { grid-template-columns: 16rem minmax(0, 1fr) auto; padding-inline: .5rem; }
  .closing__grid { grid-template-columns: 1fr 1fr; }
  .foot__inner { grid-template-columns: 1fr auto; align-items: start; }
  .position__inner { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (min-width: 800px) {
  .prose__grid { grid-template-columns: 9rem minmax(0, 1fr); }
  .prose__side { text-align: right; padding-top: .35rem; }
  .pclose__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; }
}

@media (max-width: 899px) {
  .app__body { display: flex; flex-direction: column; }
  .queue { order: 1; }
}

@media (min-width: 900px) {
  .app__body { grid-template-columns: 290px minmax(0, 1fr); }
  .rail { order: 0; border-top: 0; border-right: 1px solid var(--line); }
}

@media (min-width: 1000px) {
  .burger, .panel { display: none !important; }
  .nav { display: flex; }
}

/* ============================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ghost { display: none; }
  .btn, .cta, .cta__orb, .nav a, .foot__nav a, .row__link, .row__orb, .burger__bars i, .panel a i, .roller__track { transition: none; }
  .cta { translate: none; }
  .row__link:hover { padding-inline-start: .4rem; }
  .row__link::after { transition: none; }
  .row__link:hover .row__orb, .cta:hover .cta__orb { transform: none; }
  .loop__steps.js .loop__line i,
  .loop__steps.js.is-drawn .loop__line i { transform: none; transition: none; }
  [data-rise].is-armed { opacity: 1; transform: none; }
  [data-rise].is-risen { transition: none; }
}


/* ============================================================================
   SINCH-SHAPED REFINEMENTS
   What actually makes that site feel like a product company, minus the hero
   photograph: a pinned CTA, headings with real presence, and sections that
   breathe instead of stacking.
   ========================================================================== */

/* Pinned CTA. Sinch keeps "Talk to an expert" visible at every scroll depth. */
.masthead__cta {
  display: none; margin-left: .75rem;
  padding: .5rem 1.05rem; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: .85rem; font-weight: var(--w-do); text-decoration: none; white-space: nowrap;
  transition: background var(--t-fast) var(--ease-soft), transform var(--t-fast) var(--spring);
}
.masthead__cta:hover { background: #2a2e35; }
.masthead__cta:active { transform: scale(.97); }

/* Headings carry more of the page now that nothing is illustrated. */
.loop__title, .ledger__title, .position__title { letter-spacing: -.032em; }
.loop, .ledger, .position, .closing { padding-block: clamp(4rem, 8vw, 7rem); }
.loop__steps { margin-top: clamp(2.4rem, 5vw, 3.6rem); }

/* Steps read as three statements, not three paragraphs. */
.step { padding-top: 1.4rem; border-top-width: 2px; border-top-color: var(--line-2); }
.step--you { border-top-color: var(--accent-fill); }
.step__name { font-size: 1.15rem; letter-spacing: -.02em; }
.step__text { font-size: .95rem; }

/* Ledger rows get presence: the name is the thing you scan. */
.row__link { padding-block: 1.5rem; }
.row__name { font-size: 1.2rem; letter-spacing: -.025em; }
.row__eg { font-size: .95rem; }

.position__body { gap: 1.2rem; }
.position__kicker { margin-top: .4rem; font-size: 1.05rem; }

@media (min-width: 1000px) {
  .masthead__cta { display: inline-flex; align-items: center; }
  .nav { margin-left: auto; }
}


/* ============================================================================
   BUILT LIKE SINCH
   ----------------------------------------------------------------------------
   Measured off sinch.com rather than guessed:

     section padding-top   120px, uniform on every section
     h2                    40px / 600, flat — not clamped down
     card radius           24–32px
     card padding          64px
     card border           none. Blocks are separated by FILL, never by a line.
     band rotation         white → warm grey → dark → white → brand tint

   That last one is the real tell. Hairline borders between sections are what
   made this page read as a document; Sinch reads as a product because each
   block is a slab of colour.
   ========================================================================== */

/* Uniform rhythm. One number, everywhere. */
.loop, .ledger, .position, .closing, .tuesday, .prose, .pclose {
  padding-block: clamp(3.5rem, 8vw, 120px);
  border-top: 0; border-bottom: 0;
}
.hero__stage { padding-bottom: clamp(3.5rem, 8vw, 120px); }

/* Separation by fill, not by line. */
.loop     { background: var(--paper); }
.ledger   { background: var(--alt); }
.position { background: #fff3e8; }          /* the brand tint band, their yellow */
.closing  { background: var(--paper); }
.prose    { background: var(--paper); }
.prose--alt { background: var(--alt); }
.phero    { border-bottom: 0; padding-bottom: clamp(2rem, 5vw, 4rem); }

/* Headings at a fixed, confident size. */
.loop__title, .ledger__title, .position__title, .pclose__h {
  font-size: var(--t-h2); font-weight: var(--w-read);
  letter-spacing: -.032em; line-height: var(--lh-h2);
}
.closing__h, .prose__body h2 {
  font-size: var(--t-h2); font-weight: var(--w-read);
  letter-spacing: -.028em; line-height: var(--lh-h2);
}
@media (max-width: 700px) {
  .loop__title, .ledger__title, .position__title, .pclose__h { font-size: 30px; }
  .closing__h, .prose__body h2 { font-size: 23px; }
}

/* Cards: big radius, generous padding, no border. */
.app { border: 0; border-radius: 24px; box-shadow: 0 2px 4px rgb(20 22 26 / 5%), 0 40px 80px -40px rgb(20 22 26 / 28%); }
.app__bar, .app__foot { background: var(--alt); border-color: transparent; }
.rail { background: var(--alt); border-top: 0; }
.card { border-bottom: 0; }
.card + .card { box-shadow: inset 0 1px 0 var(--line); }
.queue__head { border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); }

.step {
  padding: 32px; border-radius: 20px; border-top: 0;
  background: var(--alt);
}
.step--you { background: #fff3e8; }
.loop__line { display: none; }          /* the rule belonged to a bordered layout */

.slot { border-radius: 20px; padding: 28px; }
.prose__note { border-radius: 16px; padding: 20px 22px; border-left-width: 3px; }

/* Ledger rows sit on the tint, so they need fill separation too. */
.ledger__rows { border-top: 0; }
.row { border-bottom: 0; }
.row + .row { box-shadow: inset 0 1px 0 var(--line-2); }
.row__link { border-radius: 14px; }
.row__link:hover, .row__link:focus-visible { background: var(--paper); }

@media (min-width: 900px) {
  .rail { border-right: 0; box-shadow: inset -1px 0 0 var(--line); }
}


/* ============================================================================
   THE LIVING BACKGROUND  -  rebuilt to actually be visible

   The first version failed for a measurable reason: a 72px-blurred blob
   travelling 16vw over 34 seconds moves about 2.5 pixels per second, and every
   edge in it is soft. The eye cannot track a soft edge moving that slowly, so
   it reads as a still image. Slow + blurred = invisible, whatever the colour.

   So the layer now moves things the eye CAN track:
     - a hard-edged grid translating one full tile per cycle, forever
     - a light beam sweeping the whole viewport every 7s
     - blobs that are faster, travel further, and are blurred less

   Contrast is protected where text lands, not globally: the bands are close to
   opaque, and the hero copy carries its own soft radial scrim. The open areas
   - page edges, the gap around the product surface - run at full strength.
   That trade is what lets it be vivid and legible at the same time.
   ========================================================================== */

.aurora {
  position: fixed; z-index: 0;
  /* Bigger than the viewport: the layer is translated on scroll and clips its
     own children, so an exact-viewport box would leave a hard empty band. */
  inset: -28vh -12vw;
  pointer-events: none; overflow: hidden;
  contain: layout paint style;
  transform: translate3d(0, var(--scroll-y, 0px), 0);
  will-change: transform;
}

/* --- The colour fields ----------------------------------------------------
   Offsets are percentages of the .aurora box, which is bigger than the
   viewport - not of the viewport itself. */
.aurora i {
  position: absolute; display: block; border-radius: 50%;
  will-change: transform;
}

/* NO BLUR. THIS WAS THE THING BURNING THE MACHINE.

   These four were `filter: blur(56px)` on elements up to 780x780, each with a
   CSS animation running infinitely - so the GPU ran a 56px separable
   convolution over 1.55 MEGAPIXELS, every composited frame, forever. Measured
   across the page: 5.11MP of blurred area, 4.3x the whole viewport.

   And it bought nothing. Every one of these is a radial-gradient that already
   fades to transparent by 64-68%, sitting at 42% layer opacity on a near-black
   page. Rendered side by side with the filter forced off, the two screenshots
   are indistinguishable - a soft gradient does not get meaningfully softer by
   being blurred.

   The stops below are widened slightly to give back the few pixels of falloff
   the blur was contributing at the rim. */
.aurora__a { background: radial-gradient(circle at 50% 50%, rgb(255 138 46 / 52%) 0%, rgb(255 138 46 / 26%) 34%, transparent 72%) !important; }
.aurora__b { background: radial-gradient(circle at 50% 50%, rgb(255 96 12 / 42%) 0%, rgb(255 96 12 / 21%) 34%, transparent 70%) !important; }
.aurora__c { background: radial-gradient(circle at 50% 50%, rgb(96 142 255 / 32%) 0%, rgb(96 142 255 / 16%) 34%, transparent 72%) !important; }
.aurora__d { background: radial-gradient(circle at 50% 50%, rgb(255 178 92 / 46%) 0%, rgb(255 178 92 / 23%) 34%, transparent 74%) !important; }
.aurora__a {
  width: max(46vw, 420px); height: max(46vw, 420px); left: 0%; top: 6%;
  background: radial-gradient(circle at 50% 50%, rgb(255 138 46 / 62%), transparent 66%);
  animation: drift-a 17s ease-in-out infinite;
}
.aurora__b {
  width: max(40vw, 370px); height: max(40vw, 370px); right: 1%; top: 11%;
  background: radial-gradient(circle at 50% 50%, rgb(255 96 12 / 50%), transparent 64%);
  animation: drift-b 23s ease-in-out infinite;
}
.aurora__c {
  width: max(38vw, 340px); height: max(38vw, 340px); left: 30%; top: 44%;
  background: radial-gradient(circle at 50% 50%, rgb(96 142 255 / 38%), transparent 66%);
  animation: drift-c 19s ease-in-out infinite;
}
.aurora__d {
  width: max(34vw, 320px); height: max(34vw, 320px); right: 12%; bottom: 4%;
  background: radial-gradient(circle at 50% 50%, rgb(255 178 92 / 55%), transparent 68%);
  animation: drift-d 14s ease-in-out infinite;
}

/* --- The grid, scrolling forever ------------------------------------------
   This is the part you actually see move. The element is one tile bigger than
   it needs to be on every side and translates exactly one tile (84px) per
   cycle, so the loop is seamless and the motion never stops or reverses. Hard
   1px edges on a light ground is the most trackable motion available, and it
   costs almost nothing in contrast because the lines are 1px at 5%. */
.aurora__grid {
  position: absolute; inset: -84px;
  background-image:
    linear-gradient(90deg, rgb(20 22 26 / 5%) 1px, transparent 1px),
    linear-gradient(rgb(20 22 26 / 5%) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(80% 65% at 50% 34%, #000, transparent 82%);
  -webkit-mask-image: radial-gradient(80% 65% at 50% 34%, #000, transparent 82%);
  animation: grid-scroll 9s linear infinite;
  will-change: transform;
}

/* --- The sweep ------------------------------------------------------------
   A wide, soft, skewed band of light crossing the page: 7s end to end, fast
   enough to register, soft enough not to strobe. The second thing that moves. */
.aurora::before {
  content: ""; position: absolute; top: -20%; bottom: -20%;
  left: -40%; width: 38%;
  background: linear-gradient(100deg,
    transparent, rgb(255 255 255 / 72%) 42%, rgb(255 236 214 / 80%) 58%, transparent);
  transform: skewX(-14deg);
  animation: sweep 7s cubic-bezier(.55, 0, .45, 1) infinite;
  will-change: transform;
}

/* --- The ceiling ----------------------------------------------------------
   Light, not heavy: 12%, against the 28% that flattened the whole layer last
   time. The work for contrast now happens where text actually sits - the bands
   below, and .hero__intro's own scrim. */
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background: rgb(255 255 255 / 12%);
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(26vw, 16vh, 0) scale(1.35); }
}
@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.15); }
  50%      { transform: translate3d(-24vw, 20vh, 0) scale(.78); }
}
@keyframes drift-c {
  0%, 100% { transform: translate3d(0, 0, 0) scale(.9); }
  50%      { transform: translate3d(-28vw, -20vh, 0) scale(1.3); }
}
@keyframes drift-d {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-18vw, -26vh, 0) scale(1.3); }
}
/* Exactly one tile. Any other distance and the loop visibly jumps. */
@keyframes grid-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(84px, 84px, 0); }
}
@keyframes sweep {
  0%        { transform: translate3d(0, 0, 0) skewX(-14deg); opacity: 0; }
  8%        { opacity: 1; }
  70%       { opacity: 1; }
  78%, 100% { transform: translate3d(390%, 0, 0) skewX(-14deg); opacity: 0; }
}

/* --- Where content sits ---------------------------------------------------
   Bands are near-opaque so body copy never fights the layer. The hero is the
   exception: it is transparent, which is where the background runs at full
   strength, and its copy carries its own scrim instead. */
main, .foot { position: relative; z-index: 1; }
/* .statusbar (41), .masthead (40, sticky) and .panel (39) already sit in their
   own layers above this - do not restate their position here or the header
   stops sticking. */

.hero, .phero { background: transparent; }
.loop, .closing, .prose, .pclose { background: rgb(255 255 255 / 94%); }
.ledger, .prose--alt { background: rgb(245 244 241 / 96%); }
.position { background: rgb(255 243 232 / 96%); }

/* The hero copy's own ground. A soft radial, so it has no visible edge - it
   reads as light falling on the text rather than as a box behind it.

   INVERTED, because the hero is now dark and the scene behind it is bright.
   The old white version was catching the headline against a moving orange
   aurora; the same job now has to be done against an accretion disk, which is
   considerably brighter, so this is darker and reaches further. Contrast is
   measured against the worst case that actually occurs - the ring's hottest
   pass directly behind a character - not against the ground. */
.hero__intro { position: relative; z-index: 2; }

/* TOP ANCHORED, NOT RADIAL, and it belongs to the void rather than to the copy.

   A radial centred on the copy block has to guess where the copy ends, and it
   guessed wrong: the last row — the button and the small caps line beside it —
   fell outside the 80% stop and landed directly on the brightest part of the
   accretion disk. "OR APPROVE SOMETHING BELOW" was legible as a shape and not
   as words.

   A linear wash from the top has no such guess in it. Everything above the band
   is on near-ground whatever its height, the band keeps the bottom quarter to
   itself, and the two never negotiate. Full width, because the copy is full
   width and a radial's own edge is the thing that reads as a smear. */
/* NO SCRIM, AND NO TEXT SHADOW.

   Both existed to keep the headline legible where the accretion band crosses
   it, and both were visible as a dark smear - which is worse than the problem
   they solved. Removed together.

   What makes that safe is the shape of the subject rather than anything added
   on top of it. MEASURED at 1536x864: the shadow disc is opaque black and spans
   37-63% of the viewport; the headline sits at 34-49%. Most of the headline is
   therefore already against pure black, which is the best contrast available
   anywhere on this page. The scene supplies its own ground.

   Where the ring does cross the type, the fix is to move the SUBJECT, not to
   put a box behind the words - see the vertical offset in singularity.js. */



/* The product surface floats. It is the hero image, so it earns some life. */
.app { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -14px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  /* The scroll parallax is written by script, which already returns early for
     reduced motion - this covers switching the preference on mid-session. */
  .aurora { transform: none; }
  .aurora i, .aurora__grid, .aurora::before, .app { animation: none; }
  .aurora::before { opacity: 0; }
  .aurora i { opacity: .75; }
}

/* ============================================================================
   MOTION LAYER
   ----------------------------------------------------------------------------
   Nothing below changes what the page says or where anything sits. It is all
   transform / opacity / filter, it all collapses under prefers-reduced-motion,
   and every resting state is the visible one — so with JS off the page is
   complete and still.
   ========================================================================== */

/* --- Entrances get weight ------------------------------------------------
   Further travel, a little blur burning off, and a longer curve. A 6px fade
   reads as a glitch; 28px with defocus reads as arriving. */
[data-rise].is-armed { opacity: 0; transform: translateY(28px); filter: blur(6px); }
[data-rise].is-risen {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity 820ms var(--ease-soft) var(--rise-delay, 0ms),
              transform 820ms var(--ease-soft) var(--rise-delay, 0ms),
              filter   620ms var(--ease-soft) var(--rise-delay, 0ms);
}

/* Children of a risen block cascade instead of arriving as one slab. */
[data-rise].is-armed .checks li,
[data-rise].is-armed .prose__body > * { opacity: 0; transform: translateY(14px); }
[data-rise].is-risen .checks li,
[data-rise].is-risen .prose__body > * {
  opacity: 1; transform: none;
  transition: opacity 620ms var(--ease-soft), transform 620ms var(--ease-soft);
}
[data-rise].is-risen .checks li:nth-child(1) { transition-delay: 120ms; }
[data-rise].is-risen .checks li:nth-child(2) { transition-delay: 210ms; }
[data-rise].is-risen .checks li:nth-child(3) { transition-delay: 300ms; }

/* --- The morning arrives --------------------------------------------------
   The feed is above the fold, so it cascades on load rather than on scroll.
   Each row is one more thing that landed while the owner was doing something
   else; they should land one after another, not as a block. */
.rail__feed .feed {
  animation: land 620ms var(--ease-soft) backwards;
}
.rail__feed .feed:nth-child(1)  { animation-delay: 260ms; }
.rail__feed .feed:nth-child(2)  { animation-delay: 330ms; }
.rail__feed .feed:nth-child(3)  { animation-delay: 400ms; }
.rail__feed .feed:nth-child(4)  { animation-delay: 470ms; }
.rail__feed .feed:nth-child(5)  { animation-delay: 540ms; }
.rail__feed .feed:nth-child(6)  { animation-delay: 610ms; }
.rail__feed .feed:nth-child(7)  { animation-delay: 680ms; }
.rail__feed .feed:nth-child(8)  { animation-delay: 750ms; }
.rail__feed .feed:nth-child(9)  { animation-delay: 820ms; }
.rail__feed .feed:nth-child(10) { animation-delay: 890ms; }
@keyframes land {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: none; }
}

.rail__list .rail__item { animation: land 560ms var(--ease-soft) backwards; }
.rail__list .rail__item:nth-child(1) { animation-delay: 40ms; }
.rail__list .rail__item:nth-child(2) { animation-delay: 95ms; }
.rail__list .rail__item:nth-child(3) { animation-delay: 150ms; }
.rail__list .rail__item:nth-child(4) { animation-delay: 205ms; }

/* The live row keeps a pulse, because that queue is still filling. */
.rail__item.is-on { position: relative; overflow: hidden; }
.rail__item.is-on::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 2px;
  background: var(--accent-fill);
  animation: bar-pulse 2.6s var(--ease-soft) infinite;
}
@keyframes bar-pulse {
  0%, 100% { opacity: 1;  transform: scaleY(1); }
  50%      { opacity: .45; transform: scaleY(.4); }
}

.feed { transition: background 200ms var(--ease-soft), transform 200ms var(--ease-soft); }
.feed:hover { background: rgb(20 22 26 / 4%); transform: translateX(3px); }

/* --- Surfaces respond ----------------------------------------------------- */
.step {
  transition: transform 420ms var(--ease-soft), box-shadow 420ms var(--ease-soft);
  will-change: transform;
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 2px 4px rgb(20 22 26 / 4%), 0 28px 50px -28px rgb(20 22 26 / 26%);
}

/* Nav links get a sweep rather than an instant colour swap. */
.nav a { position: relative; }
.nav a::after {
  content: ""; position: absolute; left: .72rem; right: .72rem; bottom: .18rem;
  height: 1.5px; background: var(--accent-fill);
  transform: scaleX(0); transform-origin: left;
  transition: transform 320ms var(--ease-soft);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }

/* --- Everything above is decoration; none of it runs for people who said no. */
@media (prefers-reduced-motion: reduce) {
  [data-rise].is-armed,
  [data-rise].is-armed .checks li,
  [data-rise].is-armed .prose__body > * { opacity: 1; transform: none; filter: none; }
  [data-rise].is-risen,
  [data-rise].is-risen .checks li,
  [data-rise].is-risen .prose__body > * { transition: none; }
  .rail__feed .feed, .rail__list .rail__item { animation: none; }
  .rail__item.is-on::after { animation: none; }
  .step:hover { transform: none; }
  .feed:hover { transform: none; }
  .nav a::after { transition: none; }
}

/* --- The autoplay hint ----------------------------------------------------
   Present only while the demo is driving itself; script removes it the moment
   a person takes over. */
.autoplay-hint {
  margin: 0; padding: .5rem 1rem 0;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--dim); display: none;
}
.app.is-autoplaying .autoplay-hint { display: block; }
.app.is-autoplaying .autoplay-hint::before {
  content: ""; display: inline-block; vertical-align: baseline;
  width: .42em; height: .42em; margin-right: .55em; border-radius: 50%;
  background: var(--accent-fill);
  animation: live-dot 1.6s ease-in-out infinite;
}
@keyframes live-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .25; transform: scale(.62); }
}
@media (prefers-reduced-motion: reduce) {
  .app.is-autoplaying .autoplay-hint::before { animation: none; }
}


/* --- Masked word reveal ---------------------------------------------------
   .word is the clipping box, .word__in is what rises out of it. The box has to
   be inline-block for overflow to clip, and needs a hair of bottom padding or
   descenders (g, y, p) are sheared off by their own mask. */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .12em;
  margin-bottom: -.12em;
}
.word__in {
  display: inline-block;
  will-change: transform;
}
.words-armed .word__in {
  transform: translateY(108%);
}
.words-in .word__in {
  transform: translateY(0);
  transition: transform 900ms cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--w, 0) * 55ms);
}

/* --- The ticker -----------------------------------------------------------
   Two identical tracks side by side, the pair translated by exactly half its
   own width. At -50% the second track sits precisely where the first started,
   so the loop is seamless with no measurement and no JavaScript. */
.ticker {
  position: relative; z-index: 1;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper);
  padding-block: .85rem;
}
.ticker__rail {
  display: flex; width: max-content;
  animation: ticker 34s linear infinite;
  will-change: transform;
}
.ticker__track {
  display: flex; flex: 0 0 auto; align-items: center;
  gap: 2.6rem; padding-right: 2.6rem;
}
.ticker__track span {
  flex: 0 0 auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--dim); white-space: nowrap;
}
.ticker__track b {
  color: var(--accent-text); font-weight: var(--w-read);
}
.ticker__track i {
  flex: 0 0 auto; font-style: normal; color: var(--edge);
}
@keyframes ticker {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.ticker:hover .ticker__rail { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .words-armed .word__in { transform: none; }
  .words-in .word__in { transition: none; }
  /* The ticker's whole content is off-screen when it is not moving, so it is
     removed outright rather than frozen mid-scroll. */
  .ticker { display: none; }
}


/* --- Scroll-linked motion -------------------------------------------------
   The elements script writes transforms to. They must not carry a transform of
   their own in CSS or the two fight and the script wins silently. */
[data-par], [data-scale-in] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  [data-par], [data-scale-in] { will-change: auto; transform: none !important; }
}

/* --- Lenis ----------------------------------------------------------------
   Required by the library: it takes over scrolling on <html>, so the element
   must be allowed to size to its content and native smooth-scroll must be off
   or the two fight over every anchor jump. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* SplitText's masked lines. The mask wrapper needs to clip and the line needs
   to be a block for yPercent to mean anything. */
.gsline { will-change: transform; }


/* --- GSAP ownership -------------------------------------------------------
   motion.js stamps this on any element it drives. A CSS transition on a
   property GSAP is writing every frame turns each write into a new 820ms
   destination instead of a value, so the element eases toward a target that has
   already moved and never arrives. One owner per property, always. */
.gsap-owned {
  transition: none !important;
}

/* ============================================================================
   THE POINTER'S SHADOW

   A soft shadow cast by the cursor onto the page, which separates from it while
   you scroll and settles back under it when you stop. See cursor.js for why the
   separation goes upward when you scroll down: the shadow belongs to the PAGE,
   so when the page travels the shadow travels with it and the cursor is briefly
   left hanging over nothing.

   NO BLUR FILTER. A blurred element is repainted through a filter on every
   frame it moves, and this one moves on every frame there is. A radial gradient
   is already soft, costs nothing beyond a normal paint, and unlike a blur its
   edge does not crawl when the element is scaled.

   BLEND MODE RATHER THAN COLOUR. This page is white for most of its length and
   near-black for the singularity chapter. A dark shadow is invisible on one and
   a pale one is invisible on the other, so the script reads what is actually
   beneath the pointer and switches. The honest reading is that the cursor is
   lit from behind: what it casts on a dark ground is a glow, on a light one a
   shadow.
   ========================================================================== */
.pshadow {
  position: fixed;
  left: 0; top: 0;
  width: 116px; height: 116px;
  margin: -58px 0 0 -58px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 90;
  opacity: 0;
  /* Transform is written every frame by script, so it must never be
     transitioned — a transition here fights the rAF loop and produces exactly
     the stutter that reads as a dropped frame. Only the fade is CSS. */
  transition: opacity 320ms var(--ease-out);
  will-change: transform, opacity;
  background: radial-gradient(circle at 50% 50%,
    rgb(20 22 26 / 40%) 0%,
    rgb(20 22 26 / 22%) 34%,
    rgb(20 22 26 / 7%) 58%,
    transparent 74%);
  mix-blend-mode: multiply;
}

/* Over a dark ground. Warm rather than white, because the one dark chapter here
   is lit by an accretion disk and a neutral highlight on it reads as a screen
   artefact. */
.pshadow.is-lit {
  background: radial-gradient(circle at 50% 50%,
    rgb(255 236 208 / 30%) 0%,
    rgb(255 228 190 / 16%) 34%,
    rgb(255 224 180 / 5%) 58%,
    transparent 74%);
  mix-blend-mode: screen;
}

.pshadow.is-on { opacity: 1; }

/* Never on touch: there is no hovering pointer to cast anything, and the layer
   would sit wherever a finger last was. */
@media (hover: none), (pointer: coarse) {
  .pshadow { display: none; }
}

/* ============================================================================
   THE HERO VOID

   The hero's ground, and the singularity lives in it. See singularity.js for
   the shader and for the measurements everything here shares.

   WHY A BLACK HOLE CAN CARRY A HEADLINE. Seen near edge-on it concentrates
   almost all of its light into one narrow horizontal band - measured at 11.4%
   of frame height against 48.4% of frame width - and a tight ring. The rest of
   the frame is genuinely empty. So the band is put low, the type sits above it,
   and the two never compete. That is the whole composition, and it is the
   reason this works where a flat dark panel with a picture on it would not.
   ========================================================================== */
/* TRANSPARENT. The dark ground is painted by the fixed layer underneath, which
   is what lets the scene be continuous with the rest of the page instead of
   ending at this element's edges. */
/* NO BAND ACROSS THE TOP OF THE HERO. There was a .hero__void::after here: a
   90px full-width strip pinned to top: 0, ramping from solid #05070a down to
   transparent. It was added to soften the join where the oversized disk was
   being cut off by the section's top edge - and it read as exactly what it
   was, a hard black bar. Every earlier attempt to remove "the black shading"
   deleted ::before, the scrim, and left this one standing.

   The disk no longer reaches the hero's top edge, so there is no join left to
   soften. The fix was the composition; this was covering for it. */

.hero__void {
  position: relative;
  /* clip, never hidden: hidden makes this a scroll container, which is what a
     position:sticky descendant resolves against, and the masthead above it
     would stop sticking. */
  overflow: clip;
  background: transparent;
  /* Sized against what is actually VISIBLE, which is the viewport less the
     status bar and masthead above it. At a flat 90svh the void was 620px on a
     620px screen, the two bands above it took another 145, and the hole sat
     below the fold on the one screen it is supposed to own.

     The subtraction is deliberately generous rather than exact: the masthead's
     height moves with its own type, and a hero that is fifteen pixels short is
     invisible where one that is fifteen pixels long pushes its own subject off
     the bottom. */
  /* DEFINITE, not content-driven. The gap below is computed from this height,
     and a height that grows with the content it is used to lay out oscillates:
     measure, enlarge the gap, grow the box, measure again. Fixing the box ends
     the loop, and the gap is then solved to fit inside it. */
  /* TALLER, because the arithmetic never worked at the old height.

     At 94svh - 150px the void was 527px on a 720px screen. The copy block -
     pill, four headline lines, three lede lines, the button row - is about
     400px of that on its own, leaving roughly 127px for a subject whose ring
     alone wants 250. Every placement tried against that simply pushed the hole
     off the bottom: the last one put its CENTRE at 108% of the viewport, and
     the contrast check passed only because the subject was not on screen.

     A hero that is the full height of the window and a little more is the
     normal shape for a cinematic one. The copy holds the top, the hole owns
     the lower half, and neither is negotiating for the same pixels. */
  /* ONE SCREEN, no dead scroll. 118svh - 140px made the void 1134px on a
     1080p display - taller than the window - so there was a stretch of empty
     dark to scroll past before anything arrived. The subject does not live in
     this box: .singularity is fixed and full-viewport, so the ring's size and
     position are set by the WINDOW, not by the hero's height. Shortening this
     therefore removes the dead space without shrinking the black hole at all.
     Sized to end at the fold: the status bar and masthead above take ~110px. */
  /* MEASURED, not guessed. Above this box sit the status bar (48px) and the
     masthead (63px), and the hero section's own lead-in - 198px in total at
     1440x900, where a 116px subtraction left 82px of the void hanging below
     the fold. The lead-in scales with the viewport, so it is subtracted as the
     same expression rather than as a fixed number. */
  /* The lead-in is .hero's padding-block, clamp(3rem, 6vw, 5.5rem) - based on
     VIEWPORT WIDTH, not height, so it is subtracted as that same expression.
     A first attempt used 9vh here and was wrong at every width. */
  height: clamp(520px, calc(100svh - 111px - clamp(3rem, 6vw, 5.5rem)), 1000px);
  display: flex;
  /* TOP, not centre. Centred, the copy's last row — the button and the hint
     beside it — landed in the middle of the frame, which is exactly where the
     disk's band is. The two were fighting over the same two hundred pixels.

     Anchoring the copy to the top gives the band the lower third to itself,
     and the lower third is the only part of this composition that is bright. */
  align-items: flex-start;
  padding-block: clamp(3rem, 9vh, 6rem) clamp(2rem, 6vh, 4rem);
}

.singularity__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 0;
  /* Nothing here starts invisible waiting on an observer - the still beneath is
     painted the whole time, so there is no frame in which this area is blank.
     This is a crossfade between two finished states. */
  opacity: 0;
  transition: opacity 1100ms var(--ease-out);
}


/* --------------------------------------------------------------------------
   The copy, inverted for the ground it now sits on.

   Every value here is measured against the worst case that actually occurs:
   the scrim at its own opacity with the ring's hottest pixel behind it. Not
   against #05070a, which is the easy case and the one that has let this
   project ship a contrast failure four times.
   -------------------------------------------------------------------------- */
/* NO BAND GAP. The copy is one block at the top.

   This carried a large computed gap so the accretion band could pass BETWEEN
   the headline and the lede, back when the hole was dead centre and the copy
   split around it. The hole has since moved down, and the gap was left behind
   pushing the headline down into the ring rather than clear of it — which is
   why dimming and nudging kept not being enough. I was treating the symptom.

   With the copy compact at the top, the headline lands high and the scene owns
   the lower two thirds. Nothing overlaps, so nothing needs a scrim. */
.hero__void .hero__lede { margin-top: 1.4rem; }

/* THE HEADLINE IS ARCHITECTURE, NOT A LABEL.

   Taken from the reference, which sets its display type large enough that the
   frame cuts it off and does not apologise for it. That single decision is most
   of why its pages feel enormous: a line that runs past the edge tells you the
   thing you are looking at is bigger than the window.

   nowrap plus a clipped parent is what makes that happen without a scrollbar —
   .hero__void already carries overflow: clip, so the overflow is contained by
   the section rather than pushed onto the document. Checked: horizontal
   overflow on the page is still zero. */
/* IT WRAPS. NOTHING IS CUT.

   This carried white-space: nowrap, borrowed from a reference whose display
   type runs past the frame on purpose. That works there because the line reads
   as CONTINUING. Here it cut "work" to "wor" and took the full stop off
   "instructions" — reproduced at 1536x864, which is what a 1920 screen reports
   at 125% Windows scaling, an extremely common setup.

   A headline that loses its last letter is not a device, it is a defect. The
   type stays large; it is allowed a third line rather than losing characters. */
/* THE MEASURE BELONGS TO THE COLUMN, NOT TO ME.

   My first attempt at this put max-width: 26ch on .hero__intro, which is the
   block holding the headline AND the lede AND the button. It collapsed the
   whole column to 205px and broke the headline one word per line — twenty-two
   lines of it. Measured, not noticed by eye.

   The markup already sets the line breaks it wants with a <br>. So the width is
   left alone and the SIZE is solved instead: the longest line is "Curivox
   hands you finished work." at 33 characters, and DM Sans averages about half
   an em per character, so it needs roughly 16.5em. Against the 1100px of usable
   wrap at desktop that puts the ceiling at about 66px, and 4rem sits under it
   with margin. Wrapping stays enabled as insurance rather than as the plan. */
/* COPY LEFT, SCENE RIGHT. They stop sharing a column.

   Every previous attempt had the headline and the accretion band occupying the
   same horizontal strip and then tried to referee it — a scrim, then per-glyph
   shadows, then dimming, then moving the hole down. Each one worked at a single
   viewport and failed at the next, because the collision was structural and I
   was fixing it cosmetically.

   The copy now owns the left half and the scene the right. Nothing overlaps, so
   nothing needs protecting, and the scene goes back to full brightness. */
/* THE COPY COLUMN, AND WHY THE CAP MOVED OFF THIS ELEMENT.

   .hero__intro IS the .wrap - one element, two classes - and .wrap is
   max-width: 1180px with margin-inline: auto. So capping .hero__intro at
   min(54%, 40rem) did not make a LEFT column, it made a narrower CENTRED one:
   measured at 1521px the copy ran 31.6% to 65% of the frame while the disk
   started at 41%. The headline was sitting on the brightest part of the disk
   the entire time, and measured contrast on it was 1.13:1.

   So the wrap keeps its page gutter and its auto margins - the hero lines up
   with every other section again - and the MEASURE is capped on the children
   instead. The copy now runs 13.8% to 49.6% and the disk begins at 52%. */
.hero__void .hero__intro { max-width: 1180px; }
.hero__void .hero__intro > * { max-width: 34rem; }
.hero__void .hero__title {
  color: #aab3bf;
  font-size: clamp(2rem, 1rem + 3.1vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.028em;
  white-space: normal;
}

/* Below the measure where the second line would be cut past legibility, it
   wraps again. An overflowing headline is a decision; an unreadable one is not. */
@media (max-width: 700px) {
  .hero__void .hero__title { font-size: clamp(2rem, 8.2vw, 3.2rem); }
  /* One column below this width: the scene is behind the type, not beside it,
     so the measure is the viewport rather than half of it. */
  .hero__void .hero__intro > * { max-width: none; }
}
.hero__void .hero__title em { color: #ffffff; }
/* Same treatment, lighter: the lede sits below the band but its first line can
   still catch the disk's lower glow at short viewports. */
.hero__void .hero__lede {
  color: #d4d9e0;
  text-shadow: 0 0 .14em rgb(5 7 10 / 94%), 0 0 .5em rgb(5 7 10 / 76%);
}
.hero__void .hero__hint { color: #98a1ad; }
.hero__void .pill { color: #f2b183; border-color: rgb(255 255 255 / 18%); background: rgb(255 255 255 / 6%); }

/* The button keeps its orange fill and ink label: ink on --accent-fill is 6.94
   and does not care what is behind the button. */

@media (prefers-reduced-motion: reduce) {
  /* A static alternative, not a shortened one: the still is the whole hero and
     nothing moves. */
  .singularity__canvas { display: none; }
}

/* ============================================================================
   THE RHYTHM

   Three structural changes, all taken from the same observation about the
   reference: it alternates. Full-bleed loud screens against flat quiet ones,
   enormous display type against very small mono, and a caption on everything so
   you always know what you are looking at.

   The page before this was a dark hero followed by eight consecutive sections
   of cream, which reads as one very long section however good each one is.
   ========================================================================== */

/* --- 1. captions ---------------------------------------------------------
   A label and a real datum, the way the reference captions each piece with a
   title and a year. Deliberately NOT 01 / 02 / 03: invented numbering is the
   house style of generated design and it says nothing. "4 things" is the
   actual count of what is in that section. */
.cap {
  display: flex; align-items: baseline; gap: .9rem;
  margin: 0 0 clamp(1.4rem, 3vw, 2.4rem);
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim);
}
.cap::before {
  content: ""; width: 1.6rem; height: 1px; background: var(--edge);
  transform: translateY(-.25em);
}
.cap b { font-weight: var(--w-read); color: var(--accent-text); margin-left: auto; }
.cap span { white-space: nowrap; }

/* --- 2. the second dark screen ------------------------------------------
   Full bleed, and it owns the whole viewport. The copy inside is already
   written as a single held thought, which is exactly what a screen like this
   is for. */
.tuesday--dark {
  background: #0a0d12;
  color: #e7eaef;
  padding-block: clamp(5rem, 16vh, 10rem);
  border-block: 1px solid #171b22;
}
.tuesday--dark .cap { color: #8d96a2; }
.tuesday--dark .cap::before { background: #39414d; }
.tuesday--dark .cap b { color: var(--accent-fill); }
.tuesday--dark .tuesday__mark { color: var(--accent-fill); }
.tuesday--dark .tuesday__lead {
  color: #f2f4f7;                       /* 16.4 on #0a0d12 */
  font-size: clamp(1.5rem, 1.1rem + 2vw, 3rem);
  line-height: 1.16;
  letter-spacing: -.02em;
  max-width: 22ch;
}
.tuesday--dark .tuesday__turn { color: #b6bdc7; }   /* 8.6 */

/* --- 3. the wall ---------------------------------------------------------
   The closing line, set large enough that the frame cuts it. Same move as the
   hero headline and for the same reason: type that runs past the edge reads as
   bigger than the page.

   .closing already clips nothing, so the containment is added here rather than
   letting it push the document sideways. */
.closing { overflow: clip; }
.closing__h--wall {
  font-size: clamp(2.4rem, 8.2vw, 7.5rem);
  line-height: .92;
  letter-spacing: -.04em;
  white-space: nowrap;
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
}
@media (max-width: 760px) {
  .closing__h--wall { white-space: normal; font-size: clamp(2rem, 9vw, 3.2rem); }
}

/* ============================================================================
   THE SINGULARITY LAYER

   Fixed and full viewport. The document scrolls THROUGH it. See index.html for
   why that matters: a canvas inside a section is a picture in a box.

   z-index 0 puts it with .aurora, below main content. The page's light sections
   are opaque and cover it; the dark ones are translucent and let it through. It
   is therefore visible in the hero, hidden through the product surface and the
   body copy, and visible again in the dark morning — one object, seen twice,
   rather than two decorations.
   ========================================================================== */
.singularity {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  contain: layout paint style;
}

/* The dark ground travels with the scene rather than belonging to a section, so
   the hero and the morning are lit by the same thing. Driven by script. */
.singularity__ground {
  position: absolute; inset: 0;
  background: #05070a;
  opacity: var(--void-ground, 0);
  transition: opacity 420ms var(--ease-out);
}

.singularity__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1100ms var(--ease-out);
}
.singularity.is-live .singularity__canvas { opacity: var(--void-scene, 1); }

/* The still: same subject in gradients, on the same measured numbers as the
   shader. What shows without WebGL, under reduced motion, below 720px, and for
   the second before three.js arrives. */
.singularity__still {
  position: absolute;
  left: 76%; top: 50%;
  height: 40svh; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: var(--void-scene, 1);
  background:
    radial-gradient(circle at 50% 50%,
      transparent 0 30.6%,
      rgb(200 205 200 / 96%) 32.2%,
      rgb(247 228 137 / 82%) 34.4%,
      rgb(240 163 96 / 22%) 40%,
      transparent 56%),
    radial-gradient(circle at 50% 50%, #000 0 23.4%, rgb(0 0 0 / 0%) 24.4%);
}
.singularity__still::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 300%; height: 34%;
  transform: translate(-50%, -50%) rotate(-8deg);
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
    rgb(200 205 200 / 78%) 0%, rgb(247 228 137 / 62%) 12%,
    rgb(240 163 96 / 46%) 30%, rgb(220 70 77 / 34%) 58%, rgb(220 70 77 / 0%) 88%);
}
.singularity.is-live .singularity__still { opacity: 0; transition: opacity 1100ms var(--ease-out); }

/* PORTRAIT IS A DIFFERENT COMPOSITION, and this is the path that actually runs
   there. WebGL is gated off below 720px, so a phone sees the STILL - which
   means a portrait fix written into the shader never executes on the devices
   that need it most. That is exactly what happened: the scene was stepped back
   in singularity.js and the phone looked identical, because none of that code
   was running.

   Measured at 390x760: the still is 52svh tall and centred, so it spans 18% to
   76% of the viewport while the headline sits at 38.7% to 55.9%. The ring's
   brightest arc ran straight through the second word.

   Smaller, lower and dimmer: it becomes atmosphere under the type rather than
   an object competing with it. The type wins, which was always the rule. */
/* The .singularity__still portrait rules were removed with the element itself:
   the CSS-gradient fallback was replaced by the video and its poster. */

/* The morning lets the layer through. Translucent rather than opaque, so the
   same object that lit the hero is still there behind it. */
.tuesday--dark { background: rgb(10 13 18 / 82%); }

@media (prefers-reduced-motion: reduce) {
  .singularity__canvas { display: none; }
  .singularity.is-live .singularity__still { opacity: var(--void-scene, 1); transition: none; }
}

/* ============================================================================
   HIT AREAS

   MEASURED at 390x760 before this block, every one of these under the 44x44
   minimum: the brand mark at 26px tall, the menu button at 38, the queue's
   approve / edit / skip buttons at 33, the panel's close at 28, and the footer
   navigation at 23. The desktop navigation measured 23 as well.

   THE TYPE DOES NOT CHANGE. Not one font-size, letter-spacing or colour is
   touched here — a tap target is a property of the hit area, not of the
   lettering, and growing the text to fix a touch problem would break the type
   system that was just built.

   Two techniques, chosen per case:

     min-height + centring   where the element already lays out as a box and can
                             simply be taller. The text stays put; the box grows
                             around it.

     an invisible ::after    where widening the box would visibly change the
                             spacing between items — the footer row, where the
                             narrowest link is 32px wide and the gap between
                             links is only 22px. The pseudo-element extends the
                             hit area 6px each side without moving anything,
                             which still leaves ~10px of dead space between
                             neighbours so two targets can never overlap.
   ========================================================================== */

/* --- boxes that can simply be taller ----------------------------------- */
.brand,
.burger,
.btn,
.cta,
.panel__close,
.linkbtn {
  min-height: 44px;
}
/* These are inline-flex already, but .brand and the text buttons are not
   guaranteed to centre their own content once a min-height is applied. */
.brand, .panel__close, .linkbtn {
  display: inline-flex;
  align-items: center;
}

/* --- rows where widening would move things ------------------------------ */
.nav a,
.foot__nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav a::after,
.foot__nav a::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -6px; right: -6px;
  /* Invisible, and behind its own text so it can never intercept a selection. */
  z-index: -1;
}

/* The focus ring must follow the VISIBLE element, not the expanded hit area,
   or it draws a box that looks wrong by six pixels on every side. :focus-visible
   is already defined globally; this only stops the pseudo-element interfering. */
.nav a:focus-visible,
.foot__nav a:focus-visible { outline-offset: 2px; }

@media (max-width: 720px) {
  /* The footer row gains height from the taller links, so its own vertical gap
     comes down to keep the block the same size it was. */
  .foot__nav { gap: 0 1.4rem; }
}

/* ============================================================================
   THE NIGHT'S WORK — the catalogue

   REFERENCE-STUDY.md section 9.6. Ruled, tabular, small. The restraint is the
   point: this section is EVIDENCE, and evidence styled loudly stops reading as
   evidence.

   It uses the type tokens rather than its own sizes, so it moves with the scale
   set in the typography pass instead of drifting away from it.
   ========================================================================== */
.nightwork {
  background: rgb(255 255 255 / 94%);
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.nightwork__h {
  font-size: var(--t-h2);
  line-height: var(--lh-h2);
  letter-spacing: -.032em;
  max-width: 22ch;
}
.nightwork__h em { font-style: normal; color: var(--accent-text); }

.nw { margin-top: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--line-2); }

.nw__head, .nw__row {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1.1fr) minmax(0, 1.4fr) 7.5rem;
  gap: clamp(.6rem, 2vw, 1.4rem);
  align-items: baseline;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
}

.nw__head {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: var(--t-micro);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  padding-bottom: .7rem;
}

.nw__i    { color: var(--edge); font-size: var(--t-micro); font-variant-numeric: tabular-nums; }
.nw__what { color: var(--ink);   font-size: var(--t-small); }
.nw__did  { color: var(--muted); font-size: var(--t-small); }

.nw__st {
  font-size: var(--t-micro);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
/* The only loud value in the table, and it is loud because it is the only one
   that asks the reader for anything. */
.nw__st--you   { color: var(--accent-text); }
.nw__st--quiet { color: var(--edge); }
.nw__row--rest .nw__what, .nw__row--rest .nw__did { color: var(--dim); }

/* Enough lift to track one line across four columns, which is what a wide
   table actually needs. Hover only — it is not a control. */
@media (hover: hover) {
  .nw__row { transition: background-color var(--t-fast) var(--ease-out); }
  .nw__row:hover { background: var(--alt); }
}

.nw__sum { margin-top: 1.6rem; color: var(--dim); font-size: var(--t-small); }
.nw__sum b { color: var(--ink); font-variant-numeric: tabular-nums; }
.nw__sum i { font-style: normal; color: var(--edge); padding: 0 .45rem; }

/* Narrow: four columns become two rows per record rather than four unreadable
   slivers. Status stays on the top line with the index, because status is what
   anyone scanning this table is looking for. */
@media (max-width: 720px) {
  .nw__head { display: none; }
  .nw__row {
    grid-template-columns: 2.4rem minmax(0, 1fr) auto;
    gap: .3rem .8rem;
    padding: 1rem 0;
  }
  .nw__i    { grid-column: 1; grid-row: 1; }
  .nw__what { grid-column: 2; grid-row: 1; }
  .nw__st   { grid-column: 3; grid-row: 1; }
  .nw__did  { grid-column: 2 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .nw__row { transition: none; }
}

/* ============================================================================
   THE VOID PAGE

   The homepage only - the other pages share this stylesheet and stay light,
   which is why every rule here is scoped to .void-page.

   The scene is a FIXED layer the document scrolls through, so whether it is
   visible is decided entirely by whether the sections on top of it are opaque.
   They were: the page was white, the layer showed in two places, and the
   hyperspace streaks only existed in the two rooms you were least likely to
   be moving quickly through. Making the whole page translucent over the layer
   is what gives the scroll animation somewhere to happen.

   OPACITIES ARE THE LEGIBILITY BUDGET, not a style choice. A streak can put a
   255-value pixel anywhere in the frame, so every panel is sized against that
   worst case rather than against the dark the scene sits at most of the time:
   at 82% over #090b0f a white pixel composites to 53, which is where the body
   text still clears AA. Opening these up is possible; it costs contrast, and
   the number to check is the composite, never the token.
   ========================================================================== */
.void-page {
  --paper:  rgb(9 11 15 / 82%);
  --alt:    rgb(5 7 10 / 88%);

  --ink:    #eef0f2;
  --muted:  #b2b9c2;
  --dim:    #b6bcc4;
  --edge:   #858c95;

  --line:   rgb(255 255 255 / 11%);
  --line-2: rgb(255 255 255 / 19%);

  /* The orange had to move. #963f06 is 6.98 on white and 1.9 on this ground -
     an accent chosen for a light page is not an accent, it is a dark smudge. */
  --accent-text: #ff9d52;

  /* Shadows do nothing on a dark ground except muddy the edges. */
  --shadow-sm: none;
  --shadow-lg: 0 30px 80px -40px rgb(0 0 0 / 80%);

  color-scheme: dark;
  background: #05070a;
  color: var(--ink);
}
/* The root, not the body. html carries background: var(--paper) from the base
   rules and .void-page is on the BODY, so --paper resolves light up there and
   the root painted white behind everything - visible on overscroll. */
html:has(.void-page) { background: #05070a; }

/* THE AURORA WAS BUILT FOR A WHITE PAGE.

   .aurora::before is a 100deg gradient running through rgba(255,255,255,0.72)
   and rgba(255,236,214,0.8) on a skew - a soft sheen across a light ground. On
   this dark ground it is a glaring white diagonal wedge across the hero, and it
   is what I twice mistook for my own mask cutting the footage. Three separate
   mask geometries were tried against a wedge that was never the mask.

   The white sheen and the flat white wash both go. The coloured orbs stay, well
   down, because they are what keeps the dark from being flat. */
.void-page .aurora::before,
.void-page .aurora::after { display: none; }
.void-page .aurora { opacity: .42; }

/* Chrome that used --ink as a BACKGROUND rather than as text. Flipping the
   token would have made these light panels with light text on them. */
.void-page .statusbar { background: rgb(8 10 14 / 90%); }
.void-page .foot      { background: rgb(5 7 10 / 88%); }
.void-page .ticker    { background: rgb(9 11 15 / 86%); }
.void-page .masthead  { background: rgb(8 10 14 / 82%); }

/* Sections that hardcoded a light value instead of taking a token. */
.void-page .nightwork { background: var(--paper); }
.void-page .position  { background: rgb(24 15 9 / 84%); }  /* the warm band, inverted */

/* The one step that asks something of the reader is tinted with the brand
   warm. #fff3e8 on a dark page put 18px accent text at 1.89 and its body copy
   at 1.81 - the only two failures in 162 text nodes, and both from a tint that
   had been written as a literal instead of taken from a token. */
.void-page .step--you { background: rgb(38 23 11 / 82%); }
.void-page .loop      { background: var(--paper); }
.void-page .ledger    { background: var(--alt); }
.void-page .closing   { background: var(--alt); }

/* ---------------------------------------------------------------------------
   THE PRODUCT SURFACE STAYS LIGHT.

   It is the one thing on the page that is not scenery - it is meant to read as
   real chrome, a genuine application, and a real application is what it is
   rather than whatever the page around it happens to be. A light panel lit
   from behind by the starfield also gives the hero the only hard-edged object
   in the composition, which is what stops the whole page being atmosphere.

   So the tokens are re-asserted at its boundary and everything inside it -
   cards, rail, drafts, the ghost row - inherits the light set unchanged.
   ------------------------------------------------------------------------- */
.void-page .app {
  --paper:  #ffffff;
  --alt:    #f5f4f1;
  --ink:    #14161a;
  --muted:  #55595f;
  --dim:    #53585f;
  --edge:   #b9b5ad;
  --line:   #e6e4e0;
  --line-2: #d8d5cf;
  --accent-text: #963f06;
  --shadow-sm: 0 1px 2px rgb(20 22 26 / 6%), 0 4px 12px -6px rgb(20 22 26 / 10%);
  color-scheme: light;
  color: var(--ink);
}

/* The 404's link list. Plain, because the page's whole job is to get someone
   back out of it. */
.nf__list { margin: .9rem 0 1.4rem; padding: 0; list-style: none; display: grid; gap: .6rem; }
.nf__list li { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.nf__list a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.nf__list a:hover { color: var(--accent-text); }

/* ============================================================================
   THE WALKTHROUGH

   Six panels, one per kind of item, and a control that moves between them.
   Styled as an instrument rather than a slideshow: fixed height so the page
   does not jump as you click, monospace labels so the three lanes read as
   fields rather than as prose, and the status borrowed from the catalogue so
   the same three words mean the same three things everywhere on the page.
   ========================================================================== */
.walk { padding-block: clamp(3.5rem, 9vw, 7rem); background: var(--alt); }
.walk__h {
  font-size: var(--t-h2); line-height: var(--lh-h2);
  letter-spacing: -.032em; max-width: 24ch;
}
.walk__h em { font-style: normal; color: var(--accent-text); }

.walk__player {
  margin-top: clamp(2rem, 5vw, 3.2rem);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--paper);
  overflow: hidden;
}

/* --- the type selector --------------------------------------------------- */
.walk__tabs {
  display: flex; flex-wrap: wrap; gap: 0;
  border-bottom: 1px solid var(--line);
}
.walk__tab {
  flex: 1 1 auto;
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px;                    /* the hit-area floor, same as the nav */
  padding: .75rem 1rem;
  background: none; border: 0;
  border-right: 1px solid var(--line);
  font: inherit; font-size: var(--t-micro);
  font-weight: var(--w-do);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--dim); cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out);
}
.walk__tab:last-child { border-right: 0; }
.walk__tabn { color: var(--edge); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .walk__tab:hover { background: var(--alt); color: var(--ink); } }
.walk__tab.is-on { color: var(--ink); background: var(--alt); box-shadow: inset 0 -2px 0 var(--accent-fill); }
.walk__tab.is-on .walk__tabn { color: var(--accent-text); }

/* --- the stage ----------------------------------------------------------- */
/* A floor, not a fixed height: the panels differ in length and a hard height
   would either clip the longest or strand the shortest in whitespace. The floor
   is set to roughly the tallest so the page still does not jump much. */
.walk__stage { padding: clamp(1.2rem, 3vw, 2rem); min-height: 20rem; }

/* THE ENHANCEMENT SWITCH. Panels are visible in the markup and only become
   hideable once walk.js has attached - so a script that never arrives leaves
   six readable panels rather than an empty box with a dead button under it. */
.walk__player.is-enhanced .walk__panel[hidden] { display: none; }
.walk__panel { outline: none; }
.walk__panel + .walk__panel { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.walk__player.is-enhanced .walk__panel + .walk__panel { margin-top: 0; padding-top: 0; border-top: 0; }

.walk__panel.is-in { animation: walkIn 420ms var(--ease-out) both; }
@keyframes walkIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.walk__kind {
  font-size: var(--t-micro); letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-text); margin: 0 0 1.1rem;
}

.walk__grid {
  display: grid; gap: clamp(1.1rem, 3vw, 2.2rem);
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1.2fr);
  align-items: start;
}
.walk__lab {
  font-size: var(--t-micro); letter-spacing: .13em; text-transform: uppercase;
  color: var(--dim); margin: 0 0 .55rem;
}
.walk__who  { margin: 0; color: var(--ink); font-size: var(--t-small); font-weight: var(--w-do); }
.walk__sub  { margin: .3rem 0 0; color: var(--muted); font-size: var(--t-small); line-height: 1.5; }
.walk__meta { margin: .45rem 0 0; color: var(--edge); font-size: var(--t-micro); }
.walk__why  { margin: 0; color: var(--muted); font-size: var(--t-small); line-height: var(--lh-body); }

.walk__draft {
  padding: .85rem .95rem;
  border-radius: 3px 8px 8px 3px;
  border-left: 2px solid var(--accent-fill);
  background: var(--alt);
  color: var(--ink);
  font-size: var(--t-small); line-height: 1.6;
}

.walk__foot {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 1rem;
  margin: 1.4rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line);
}
/* The same three words as the catalogue, and SENT is still not one of them. */
.walk__st {
  font-size: var(--t-micro); letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted);
}
.walk__st--you   { color: var(--accent-text); }
.walk__st--quiet { color: var(--edge); }
.walk__note { color: var(--dim); font-size: var(--t-small); }

/* --- the control bar ----------------------------------------------------- */
.walk__bar {
  display: flex; align-items: center; gap: 1rem;
  padding: .8rem clamp(1.2rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
  background: var(--alt);
}
.walk__nav {
  min-height: 44px; padding: .6rem 1.1rem;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: var(--t-small); font-weight: var(--w-do);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease-out),
              background-color var(--t-fast) var(--ease-out);
}
@media (hover: hover) { .walk__nav:hover { border-color: var(--edge); } }
.walk__nav--go {
  margin-left: auto;
  background: var(--accent-fill); border-color: var(--accent-fill);
  color: var(--on-accent);
}
.walk__pos { color: var(--dim); font-size: var(--t-micro); font-variant-numeric: tabular-nums; }

.walk__disc {
  margin: 0; padding: .7rem clamp(1.2rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
  color: var(--edge); font-size: var(--t-micro);
  letter-spacing: .08em; text-transform: uppercase;
}

/* Narrow: the three lanes stack, and the tabs scroll sideways rather than
   wrapping into a six-row block that pushes the panel off the screen. */
@media (max-width: 860px) {
  .walk__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .walk__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .walk__tabs::-webkit-scrollbar { display: none; }
  .walk__tab { flex: 0 0 auto; }
  .walk__bar { flex-wrap: wrap; }
  .walk__nav--go { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .walk__panel.is-in { animation: none; }
  .walk__tab, .walk__nav { transition: none; }
}

/* ============================================================================
   THE FILM

   The hero's black hole is the reference footage itself, not a reimplementation
   of it. Placed so the hole sits right of centre and its band crosses LOW,
   which is what keeps the copy column dark - the clip is centred in its own
   frame, so it has to be scaled up and pushed to land where the layout needs
   it rather than where it was shot.
   ========================================================================== */
.singularity__film {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Scaled past the frame and offset: the hole lands around 72% across and 68%
     down, so the headline sits above the band and left of the glow. */
  /* THE COPY SITS WHERE THE FOOTAGE IS BLACK.

     Two masking attempts failed for the same reason, and it is worth stating
     so it is not tried a third time: light grey text over a bright orange arm
     cannot reach AA at any opacity. Measured, the arm behind "finished work."
     read (252,108,92) - a 1.33:1 contrast - and feathering the film only
     traded that for a visible diagonal wedge across the hero, which is the
     same edge the scrim was removed for.

     The reference answers this itself: everything above and below its band is
     PURE BLACK - corners measured (0,0,0). So the band goes into the lower
     third and the copy occupies the black upper two thirds. No mask, no
     gradient, no edge anywhere - the type is simply not standing on the light.

     Which means the composition is doing the work, not a treatment over it. */
  /* Scaled DOWN, not up. Cover already fills the box; upscaling past that
     only threw the subject off the bottom edge. 0.95 with a 23% drop puts the
     hole's centre near 72% of the hero - low enough to clear the copy, high
     enough that the whole ring is on screen rather than a sliver of its arc. */
  /* Through VARIABLES, so the composition has one owner.

     film.js animates these three rather than writing a transform of its own.
     That matters because GSAP composes as translate-then-scale while CSS here
     composes scale-then-translate: handing GSAP the same three numbers
     reproduced a DIFFERENT matrix and put the hole's centre at 109% of the
     viewport - off screen, with the contrast check passing because the subject
     was absent. Animating the inputs to this one declaration cannot drift. */
  transform: scale(var(--film-s, 0.95))
             translate(var(--film-x, 31%), var(--film-y, 26%));
  transform-origin: center;
  /* FADED AT ITS OWN EDGES, radially, centred on the hole.

     The element is transformed, so its edges sit INSIDE the viewport -
     measured, the left edge lands at 31.6% and the top at 27.2%. With
     mix-blend-mode: screen that is a step: everything to one side of the line
     receives the film's light and everything to the other receives none. Those
     were the hard vertical and horizontal seams down the page.

     A linear ramp was tried twice and both times its boundary ran ACROSS the
     composition, which is what made it legible as a wedge. A radial fall-off
     centred on the subject runs WITH it - it is the direction the light
     already falls off - so it reaches zero before the element's edges and
     there is no boundary left to find. It also thins the far arm over the copy
     column for free, which is the other thing that kept needing solving.

     Opaque out to 38%, which keeps the whole ring and the bright inner arms at
     full strength; the taper past that is the arms ending, which is what they
     do in the footage anyway. */
  /* The ellipse's RADIUS has to be smaller than the distance to the element's
     edge, or the fade never finishes. At 64% x 68% the ending shape reached
     past the box and left roughly a quarter of the film still showing at its
     own left edge - a softer step, but the same step. 54% x 56% puts the
     transparent stop essentially on the edge, so the residue there is under a
     tenth and there is nothing to see. */
  -webkit-mask-image: radial-gradient(ellipse 48% 50% at 50% 50%,
    #000 0%, #000 40%, rgb(0 0 0 / 55%) 70%,
    rgb(0 0 0 / 15%) 88%, transparent 100%);
  mask-image: radial-gradient(ellipse 48% 50% at 50% 50%,
    #000 0%, #000 40%, rgb(0 0 0 / 55%) 70%,
    rgb(0 0 0 / 15%) 88%, transparent 100%);
  opacity: var(--void-scene, 1);
  pointer-events: none;
  /* The clip is black-on-black, so SCREEN drops its background out entirely and
     leaves only the light. Nothing to key, no rectangle edge, and the page's
     own ground shows through the empty areas. */
  mix-blend-mode: screen;
}

/* Reduced motion keeps the poster - the same frame, holding still. */
@media (prefers-reduced-motion: reduce) {
  .singularity__film { display: none; }
  .singularity__ground {
    background:
      #05070a url("media/singularity-poster.jpg") center / cover no-repeat;
    opacity: var(--void-scene, 1);
  }
}

/* Portrait has no second column, so the film drops below the copy and steps
   back, the same rule the shader followed. */
@media (max-aspect-ratio: 1 / 1) {
  .singularity__film {
    /* THROUGH THE VARIABLES. This block used to write `transform` directly,
       left over from before the composition moved to custom properties - so on
       any portrait screen it silently overrode the variable-driven placement
       with scale(1.5) translate(0, 22%), a big centred hole whose arm crossed
       the copy. Measured on a 390x844 phone: three lede lines at 3.39:1.

       It also set `opacity`, which film.js animates on entry - two owners for
       one property. brightness() steps the film back without that fight. */
    --film-s: .58; --film-x: 0%; --film-y: 30%;
    filter: brightness(.45);
  }
}

/* The hero lede was --muted, #8d97a5 - a value chosen for dark-on-white. Over
   the film's outer glow it measured 2.94:1. Brightening the TEXT is the honest
   fix here rather than dimming the footage further: the last attempt at that
   bought no contrast at all and hid the subject. */
.void-page .hero__void .hero__lede { color: #f2f4f6; }

/* The lede's longest line was the only thing still reaching the disk's left
   arm - 4.19:1 against its tip while every other line cleared 15. Capping the
   measure pulls that line back rather than moving the subject again, and 46ch
   is the better measure for this size regardless. */
.void-page .hero__void .hero__lede { max-width: 46ch; }

/* NARROW DESKTOP WINDOWS. Below about 1100px the hero collapses to one column,
   the copy runs the full width, and the hole - placed for a two-column frame -
   lands directly on it. Measured at 799px: the headline's third line fell to
   2.03:1 and the lede's first to 1.10:1.

   There is no second column to put it beside, so it goes BELOW and steps back,
   which is the same rule portrait already follows. film.js now reads these
   values rather than its own, so the enhancement starts from whichever
   composition applies. */
@media (max-width: 1100px) {
  .singularity__film {
    /* Smaller AND higher. At .82/46% the centre landed near 88% of a 768px
       tall window and the ring fell off the bottom, while the arm still
       crossed the lede at 3.42:1. Shrinking the subject is what buys both:
       a smaller ring fits above the fold, and its arms reach less far. */
    --film-s: .60; --film-x: 6%; --film-y: 34%;
    /* AND IT STEPS BACK. Placement alone cannot solve this width: the copy is
       single-column and full-bleed, the film's arms are full-bleed, and there
       is no empty band to drop the hole into - at 950px the lede's last line
       still measured 1.10:1 with the hole pushed as low as it can go.

       brightness() rather than opacity, because film.js animates opacity on
       entry and the two would fight over the same property. The words win at
       this size; the film is atmosphere. */
    filter: brightness(.5);
  }
}

/* ============================================================================
   THE PRODUCT SURFACE, AS A WINDOW

   This is the one hard-edged object on a page made of atmosphere, and the one
   thing on it that behaves like software rather than describing software. It
   has to survive being looked at closely.

   No fake traffic lights. Three dots borrowed from another operating system
   say "screenshot of someone else's app"; a hairline, one lit edge and a real
   route say "this is the thing".
   ========================================================================== */
.app {
  border: 1px solid var(--line-2);
  /* ONE CRISP EDGE, and only one. A highlight along the top lip is how a
     physical panel catches light - repeated on all four sides it stops being
     light and becomes a stroke. Under it, a tight contact shadow and a wide
     soft one: the tight shadow is what sets the object ON something, the wide
     one is what gives it height above it. */
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 92%),
    0 1px 2px rgb(20 22 26 / 6%),
    0 40px 80px -40px rgb(20 22 26 / 30%);
}

/* The route this view lives at. Mono, quiet, and sized like metadata rather
   than like a label - it should be readable when looked for and ignorable when
   not, which is how a real address bar behaves. */
.app__route {
  font-size: var(--t-micro);
  letter-spacing: .06em;
  /* --dim, not --edge. --edge is #b9b5ad, a LINE colour: as text on --paper it
     measures 2.04:1. Metadata still has to be readable. */
  color: var(--dim);
  padding: .2rem .5rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  white-space: nowrap;
}

/* --- the argument -------------------------------------------------------
   41 in, 3 out. The numbers carry it, so they get the size and the text gets
   out of the way. tabular-nums so they cannot shuffle width, and a fixed
   number column so 41 and 3 align on their right edge - a ragged left column
   reads as two unrelated facts instead of one ratio. */
.rail__arg {
  padding: .2rem .6rem 1rem;
  margin-bottom: .9rem;
  box-shadow: inset 0 -1px 0 var(--line);
}
.rail__arg-line { display: flex; align-items: baseline; gap: .65rem; margin: 0; }
.rail__arg-line + .rail__arg-line { margin-top: .55rem; }
.rail__arg-n {
  flex: 0 0 auto;
  min-width: 2.2ch;
  text-align: right;
  font-size: 1.85rem;
  line-height: 1;
  font-weight: var(--w-read);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  color: var(--ink);
}
.rail__arg-t { font-size: .84rem; line-height: 1.28; color: var(--muted); }

/* The second line is the one that asks something of the reader, so it is the
   only one that gets the accent. --accent-text, never --accent-fill: the fill
   orange is 2.9:1 on this ground and is for surfaces, not words. */
.rail__arg-line--out .rail__arg-n { color: var(--accent-text); }
.rail__arg-line--out .rail__arg-t { color: var(--ink); }

.rail__arg-note {
  margin: .75rem 0 0;
  font-size: var(--t-micro);
  letter-spacing: .06em;
  color: var(--dim);
}

/* --- narrow: a summary row, not a shrunken desktop ----------------------
   Below 700px the rail sits under the queue, and the full morning feed -
   ten rows of things that did NOT need the owner - becomes a long scroll
   past the point it was making. The ratio is the point, so on a phone the
   ratio is all that survives: the two numbers go side by side and the feed
   and status lists are gone. */
@media (max-width: 700px) {
  .rail__list, .rail__feed, .rail > .rail__group { display: none; }
  .rail { padding: .85rem .9rem; }
  .rail__arg {
    display: flex;
    align-items: baseline;
    gap: 1.4rem;
    padding: 0;
    margin: 0;
    box-shadow: none;
    flex-wrap: wrap;
  }
  .rail__arg-line + .rail__arg-line { margin-top: 0; }
  .rail__arg-n { font-size: 1.45rem; min-width: 0; }
  .rail__arg-t { font-size: .78rem; max-width: 9ch; }
  .rail__arg-note { flex: 1 0 100%; margin-top: .55rem; }
}

/* The route label is the first thing to go when the bar runs out of room -
   it is texture, and texture does not get to push the timestamp off. */
@media (max-width: 560px) {
  .app__route { display: none; }
}

/* ============================================================================
   WHERE THE RING CANNOT CLEAR THE COPY

   Two viewports where placement is not a solution and the arithmetic says so.
   At 1024x768 the ring is 188px across and the gap below the copy is 168px; at
   390x844 it is 200px against 154px. There is no offset that both clears the
   type and keeps the ring on screen, because the ring does not fit in the gap.

   So the film overlaps, and brightness is the only lever left. Solved to a
   target rather than nudged: for #f2f4f6 text the background has to sit at or
   below L 0.154 to clear 4.5:1, which works out at brightness .30 for the
   short landscape case and .38 for a phone. Set a little under each.

   768x1024 is deliberately NOT included - it already measures 9.31 at .45, and
   dimming it further would cost contrast it does not need.
   ========================================================================== */
@media (max-width: 1100px) and (max-height: 820px) {
  /* .26 took the worst line from 1.78 to 4.33 - the right lever, one step
     short of the 4.5 floor. .21 closes it with margin. */
  .singularity__film { filter: brightness(.21); }
}
@media (max-aspect-ratio: 1 / 1) and (max-width: 520px) {
  .singularity__film { filter: brightness(.34); }
}

/* ============================================================================
   LEVI — a light with mass.

   IT WAS INVISIBLE. Measured at 1536x830 it was a 28px core parked 110px from
   the right edge with a line box computing to width 0 - a 2mm dot with 9pt
   text in the darkest corner of the screen. It rendered perfectly and could
   not be found three times running. That is the only verdict that counts, so
   everything below is sized against a 1080p screen at arm's length rather than
   against a pixel value.

   Core 84px, three times what it was. Corona 300. A ring and a four-beam flare
   on top of that, which is where the depth comes from: a flat disc reads as a
   sticker, and a core inside a ring inside a haze with beams crossing it reads
   as something with a middle. All of it composited with screen, so it only
   ever adds light and never draws an edge.

   THE LINE HAS A FIXED MEASURE and never compresses. When it cannot sit beside
   the star, the STAR moves - the text is not squeezed to make room.
   ========================================================================== */
.levi,
.levi-say {
  position: fixed;
  left: 0; top: 0;
  width: 0; height: 0;
  pointer-events: none;
  transform: translate3d(var(--levi-x, 50vw), var(--levi-y, 50vh), 0);
  will-change: transform;
}
/* TWO TRANSFORMS, AND THE ORDER MATTERS.

   The first is the station: where Levi belongs, written by write() as
   --levi-x/--levi-y, and stable to the pixel between zone changes. The second
   is the breath, written by GSAP as --levi-bx/--levi-by, which is what makes
   him look alive. Keeping them separate is what stops the breathing from
   entering the numbers that placement decisions are made from - see the long
   note above write() in levi.js. */
.levi {
  transform: translate3d(var(--levi-x, 50vw), var(--levi-y, 50vh), 0)
             translate3d(var(--levi-bx, 0px), var(--levi-by, 0px), 0)
             translate3d(var(--levi-kx, 0px), var(--levi-ky, 0px), 0);
}
.levi     { z-index: 1; }    /* inside main: behind the display type */
.levi-say { z-index: 60; }   /* on body: always readable            */

/* ==========================================================================
   THE WORDS ARE DOCKED. THE LIGHT STILL FLIES.

   The box used to hunt for empty space and hide when it could not find any,
   and the hunting was the defect. A 328px box that must clear all copy, the
   demo panel, the ticker and the masthead has almost nowhere to go on this
   page - at 1300px the gutters are 100 - so it spent its life either
   suppressed or oscillating across a constraint edge as the light breathed.
   Five rounds of placement fixes each measured clean and each came back.

   One permanent position instead. It cannot overlap anything it did not
   already overlap yesterday, it cannot flicker, and it cannot go missing.
   Where it does cover the hero copy or the panel's own chrome it covers it
   outright - the box is opaque, which is what makes that acceptable.

   .levi-say must stop being transformed for this to work: a transformed
   ancestor becomes the containing block for its fixed descendants, so a
   docked box inside the old translate3d layer would have docked to the
   LIGHT rather than to the viewport. The layer is the viewport now. */
.levi-say {
  width: 100%; height: 100%;
  transform: none;
  will-change: auto;
}

.levi__star {
  position: absolute;
  left: 0; top: 0;
  width: 104px; height: 104px;
  margin: -52px 0 0 -52px;
  padding: 0; border: 0; border-radius: 50%;
  background: none;
  pointer-events: auto;
  cursor: pointer;
}
.levi__star:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 10px; }
.levi__star { cursor: grab; }
.levi.is-held .levi__star { cursor: grabbing; }

/* --- how it feels, not what it says ---------------------------------------
   Emotion in a light is brightness, size and how fast it breathes. Held: it
   swells and brightens, the way anything does when you pick it up. Approved:
   one quick flare. Alert: a slow pulse that does not stop until you deal with
   it. No face, no eyes - see the note in the reply about that. */
.levi.is-held .levi__core   { filter: brightness(1.28); }
.levi.is-held .levi__corona { opacity: .95; transform: translate(-50%,-50%) rotate(var(--levi-spin,0deg)) scale(calc(var(--levi-s,1) * 1.12)) scaleX(1.1); }

.levi.is-approved .levi__core { animation: levi-flare 620ms var(--ease-out) 1; }
@keyframes levi-flare {
  0%   { filter: brightness(1); }
  22%  { filter: brightness(1.7); }
  100% { filter: brightness(1); }
}

.levi.is-alert .levi__corona { animation: levi-pulse 2.1s ease-in-out infinite; }
@keyframes levi-pulse {
  0%, 100% { opacity: .6; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .levi.is-approved .levi__core,
  .levi.is-alert .levi__corona { animation: none; }
}

/* REPLACED BY THE CHATBOX. Kept as a no-op so any stale markup cannot paint.
   The cast-light experiment is finished: it read as shading on the artwork
   rather than as something Levi threw, and the box says more. */
.levi__shadow { display: none !important; }

.levi__shadow--retired {
  position: absolute;
  left: 50%; top: 50%;
  width: 210px; height: 68px;
  transform: translate(-50%, -50%)
             translate(var(--levi-shx, 20px), var(--levi-shy, 52px))
             scale(var(--levi-shs, 1));
  border-radius: 50%;
  opacity: var(--levi-sho, .6);
  /* A POOL OF LIGHT, NOT A DARK PATCH. This was black at 52%, and on a page
     whose background is already near-black a black shadow has nothing to
     darken - the only place it showed at all was where it dulled the film's
     orange band, which is precisely why it read as shading on the artwork
     instead of as something cast by Levi.

     Levi is a light. A light does not cast a shadow of itself downwards; it
     lights the surface under it. So this is what it actually throws: warm,
     tight and bright when it is hovering low, wide and faint when it climbs. */
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
    rgb(255 190 120 / 34%) 0%, rgb(255 146 52 / 20%) 30%,
    rgb(229 106 13 / 8%) 58%, rgb(229 106 13 / 2%) 76%, transparent 88%);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* The trail. Behind everything, additive, and gone the moment it stops. */
.levi__trail {
  position: absolute;
  left: 50%; top: 50%;
  width: 34px; height: 34px;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(circle,
    rgb(255 206 150 / 70%) 0%, rgb(255 150 60 / 34%) 42%, transparent 72%);
  transform: translate(-50%, -50%)
             translate(var(--tx, 0px), var(--ty, 0px))
             scale(var(--ts, 1));
  opacity: var(--to, 0);
}
@media (prefers-reduced-motion: reduce) { .levi__trail { display: none; } }

.levi__core, .levi__corona, .levi__flare {
  position: absolute;
  left: 50%; top: 50%;
  display: block;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  /* Transform is set ONCE and never animated. The blur is then rasterised a
     single time and the parent's translate just composites it - animating a
     child under a filter re-runs the convolution every frame. */
  transform: translate(-50%, -50%);
}

/* ============================================================================
   BLURRED SHAPES, NOT GRADIENT DISCS.

   Measured on the old version: four stacked gradients at 78, 199, 280 and
   468px, each with four to six colour stops. Every one of those falloffs is a
   soft edge, and stacked they beat against each other into visible concentric
   rings - a bullseye, which is the opposite of light.

   The award-referenced sites never draw light this way. VITURE stacks
   blur(14px), blur(30px) saturate(2) and blur(150px); typo.love uses blur(24px)
   and blur(36px). The shape underneath is flat colour. That is the whole trick:
   a blurred solid circle has no stops to band and no circumference to see.

   Three layers, each a flat fill:
     core   20px  blur 13   the hot centre
     corona 104px blur 34   the body of it, saturated so it stays warm
     flare  260px blur 110  the reach, faint enough to be felt not seen
   ========================================================================== */
.levi__core {
  width: 30px; height: 30px;
  background: rgb(255 244 226);
  filter: blur(14px);
  opacity: 1;
}
.levi__corona {
  width: 120px; height: 120px;
  /* Lower than it was (62%): the glossy body is the character now, and a
     strong corona flattens exactly the shading that makes it round. */
  background: rgb(255 158 66 / 46%);
  filter: blur(34px) saturate(1.7);
}
.levi__flare {
  width: 300px; height: 300px;
  background: rgb(255 120 26 / 17%);   /* was 26%: it read as brown haze */
  filter: blur(100px);
}

/* ============================================================================
   THE BODY AND THE FACE.

   Everything above this is glow: blurred, screen-blended, no surface. This is
   the opaque part - the disc the face is drawn on, and the eyes and mouth
   drawn on it in ink.

   IT IS DELIBERATELY NOT BLENDED. The three glow layers use mix-blend-mode:
   screen, which is a no-op against white and is why the light needed a
   separate treatment on the six light pages. The body carries its own ground,
   so the face reads identically everywhere and needs no per-page rule.

   EVERY FEATURE IS A DIV WITH TWO RADII, AND THAT IS WHAT MAKES IT TWEENABLE.
   An eye is `border-radius: --e-rt --e-rt --e-rb --e-rb` over a fixed box:
   equal radii give a disc, a top-only radius gives the upward arc of a smile
   seen in an eye, near-zero gives the flat line of a closed one. Same for the
   mouth. All lengths are px - never %, because GSAP cannot tween 50% to 0px,
   and the whole emotion system is one tween of six numbers. */
.levi__body {
  /* THE SMILE, DECLARED RATHER THAN LEFT TO FALLBACKS.

     These lived only as the fallback half of var(--e-h, 10px), which renders
     identically and reads back as the empty string - so GSAP had no start
     value to tween the blink FROM. Declaring them costs nothing and makes the
     face a real, readable state. */
  --e-w:  8px;  --e-h: 10px;
  --e-rt: 5px;  --e-rb: 5px;  --e-ty: 0px;
  --m-w: 22px;  --m-h: 11px;
  --m-rt: 0px;  --m-rb: 22px;

  position: absolute;
  left: 50%; top: 50%;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  pointer-events: none;
  /* A TOY, NOT A STICKER. The reference's bee reads as an object because
     three things are true of its surface and none of them were true of this
     one: there is a hard specular window where the key light hits, the far
     side falls into a real core shadow, and the ground throws a little warm
     light back up into the lower rim. One gradient could not say any of
     that - it was a disc with a vignette. So three layers, top-down:
       specular   a small, near-white, fairly HARD-edged window, top-left.
                  Soft highlights read as matte; hard ones read as glossy.
       sheen      the broad, soft falloff around it.
       body       warm-light to deep-orange across the sphere, lit from the
                  same top-left the specular claims.
     The inset shadows do the core shadow and the fill; ::after (below) does
     the bounce. Everything is lit from one light, which is the whole trick. */
  background:
    radial-gradient(ellipse 13% 9% at 36% 30%,
      rgb(255 255 255 / 97%) 0 52%, rgb(255 255 255 / 0) 100%),
    radial-gradient(circle at 38% 33%,
      rgb(255 238 212 / 46%) 0%, rgb(255 238 212 / 0) 30%),
    radial-gradient(circle at 42% 36%,
      #ffb65c 0%, #ff8b25 30%, #f26c10 56%, #bd4b0b 86%, #8c3406 100%);
  box-shadow:
    inset -6px -8px 13px rgb(104 34 0 / 46%),
    inset 3px 4px 7px rgb(255 228 186 / 32%),
    0 0 0 1px rgb(120 52 0 / 18%);
  display: grid;
  place-items: center;
}

/* BOUNCE LIGHT. A thin warm crescent along the lower-right rim: light from
   the page thrown back up into the underside. It is the single strongest cue
   that a circle is a sphere, and it costs one pseudo-element. Painted over
   the body but confined to the rim, so it never reaches the face. */
.levi__body::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 64% 70%,
    rgb(255 196 128 / 0) 58%, rgb(255 196 128 / 50%) 66%, rgb(255 196 128 / 0) 74%);
}

/* THE CAST SHADOW - the reference's real signature.
   A flat, soft ellipse on the page below and to the right of him, in a dark
   warm tone rather than grey, so it reads as HIS shadow on THIS surface. It
   lives in .levi, so it follows the station; it deliberately cancels the
   vertical breath (--levi-by) so it stays on the ground while the body bobs
   above it, and it tightens and darkens as he comes down (--levi-h, from
   -1 high to +1 low). That is what turns a bob into altitude.
   Behind the body by DOM order. On the dark homepage it all but vanishes,
   which is right: a light does not cast a visible shadow onto the dark. */
.levi__cast {
  position: absolute;
  left: 50%; top: 50%;
  width: 56px; height: 16px;
  margin: -8px 0 0 -28px;
  border-radius: 50%;
  pointer-events: none;
  background: rgb(92 38 4 / 30%);
  filter: blur(4px);
  transform:
    translate(14px, calc(40px - var(--levi-by, 0px)))
    scale(calc(1 + var(--levi-h, 0) * .14), calc(1 + var(--levi-h, 0) * .10));
  opacity: calc(.82 + var(--levi-h, 0) * .18);
}
@media (max-width: 700px) {
  .levi__cast { width: 46px; height: 13px; margin: -6.5px 0 0 -23px;
    transform: translate(11px, calc(33px - var(--levi-by, 0px))); }
}

/* THE FACE TURNS. Eyes slide toward --look-x/--look-y and the mouth follows
   at three quarters. On a sphere whose highlight stays put, that parallax
   reads as the whole head rotating to look - not as features sliding on a
   decal. `translate` (the individual property), so it composes with the
   margins that place them and with nothing GSAP owns. */
.levi__eye   { translate: var(--look-x, 0px) var(--look-y, 0px); }
.levi__mouth { translate: calc(var(--look-x, 0px) * .75) calc(var(--look-y, 0px) * .6); }

.levi__eye,
.levi__mouth {
  position: absolute;
  display: block;
  background: #14161a;
  pointer-events: none;
}

/* CATCHLIGHTS. A flat black oval on a glossy sphere reads as a decal; the
   same oval with one hard white point in it reads as a wet eye reflecting
   the same key light as the body's specular - which is also top-left, so the
   face and the surface agree about where the light is. Drawn as a gradient
   on the eye itself, so it squashes away with the eye during a blink. */
.levi__eye {
  background:
    radial-gradient(circle at 64% 30%, rgb(255 255 255 / 92%) 0 17%, rgb(255 255 255 / 0) 23%),
    #14161a;
}
.levi__eye {
  top: 50%;
  width:  var(--e-w,  8px);
  height: var(--e-h, 10px);
  margin-top: calc(-1 * var(--e-h, 10px) / 2 - 5px + var(--e-ty, 0px));
  border-radius: var(--e-rt, 5px) var(--e-rt, 5px) var(--e-rb, 5px) var(--e-rb, 5px);
}
.levi__eye--l { left: 50%; margin-left: calc(-1 * var(--e-w, 8px) - 4px); }
.levi__eye--r { left: 50%; margin-left: 4px; }

.levi__mouth {
  left: 50%; top: 50%;
  width:  var(--m-w, 22px);
  height: var(--m-h, 11px);
  margin-left: calc(-1 * var(--m-w, 22px) / 2);
  margin-top: 6px;
  border-radius: var(--m-rt, 0px) var(--m-rt, 0px) var(--m-rb, 22px) var(--m-rb, 22px);
}

/* TILT AND SQUASH SHARE ONE TRANSFORM, THROUGH VARIABLES.

   --b-tilt is written by bankTo() in levi.js every frame from his sideways
   speed: he banks into the turn and comes level as he slows. --b-scale is the grab.
   They are separate variables feeding one declaration because two rules both
   setting `transform` would simply overwrite each other, and a CSS transition
   on that declaration would fight GSAP for the same property sixty times a
   second. So there is no transition here - the grab squash is instant, which
   is what a grab should feel like, and everything else is tweened. */
.levi__body { transform: rotate(var(--b-tilt, 0deg)) scale(var(--b-scale, 1)); }
.levi.is-held .levi__body { --b-scale: .94; }

@media (max-width: 700px) {
  .levi__body { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
}

@media (prefers-reduced-motion: reduce) {
  .levi__body { --b-tilt: 0deg; }
}

/* Alive, not flashing. Opacity only - it composites, where a brightness filter
   would re-run all three blurs every frame. Two primes so it never repeats. */
.levi__corona { animation: levi-breathe 7.3s ease-in-out infinite; }
.levi__core   { animation: levi-breathe2 11.1s ease-in-out infinite; }
@keyframes levi-breathe  { 0%,100% { opacity: .82 } 41% { opacity: 1 } }
@keyframes levi-breathe2 { 0%,100% { opacity: .9 } 63% { opacity: 1 } }

/* THE LIGHT PAGES NEED THE OPPOSITE. screen blending against white is a no-op,
   so the same layers would simply vanish. A small dense point with one tight
   halo, composited normally, reads on paper. */
body:not(.void-page) .levi__core {
  width: 14px; height: 14px;
  background: var(--accent-fill);
  filter: blur(3px);
  mix-blend-mode: normal;
  opacity: 1;
}
body:not(.void-page) .levi__corona {
  width: 54px; height: 54px;
  background: rgb(255 122 26 / 30%);
  filter: blur(16px);
  mix-blend-mode: normal;
}
body:not(.void-page) .levi__flare { display: none; }

@media (prefers-reduced-motion: reduce) {
  .levi__core, .levi__corona { animation: none; }
}

/* --- what it says ---------------------------------------------------------
   A FIXED MEASURE. It used to be max-content inside a 0-width layer, which is
   how the line ended up wrapping one word per row against the screen edge.
   It is body size, not micro, and it does not compress: if it will not fit
   beside the star, levi.js moves the star. */
/* A CHATBOX, NOT A VEIL.

   This was bare text sitting on a radial darkening, on the principle that a
   companion should have no container. In practice the words floated with no
   edge, and on a page that is already mostly dark gradient there was nothing
   to tell the eye where Levi stopped and the page began.

   A box is also honest about what this is: a thing talking to you. The surface
   is the page's own dark, not a white or orange floating panel, and the only
   ornament is a hairline and one caret pointing back at the light. */
/* IT CARRIES ITS OWN FOREGROUND, BECAUSE IT IS ITS OWN SURFACE.

   The box is dark on every page. The PAGE is dark on one and light on six,
   and the line was painted with var(--ink) - which is #eef0f2 under
   .void-page and #14161a everywhere else. So on all six light pages Levi's
   sentence was #14161a on a composited rgb(28,30,34): measured on trust,
   a contrast ratio of 1.09 against the 4.5 AA needs, and 2.39 for the LEVI
   label. Invisible, from the moment he was wired onto those pages.

   The lesson is the token, not the number. A surface that does not change
   with the theme must not read colours that do. These four are local to the
   box and answer only to its own background:

     --say-ink     #f1f3f5  16.9 on the box over white, 17.3 over the void
     --say-accent  #ff9d52   8.9 and  9.1  - the dark theme's accent, which is
                             the one that was always meant for a dark surface
   Both measured against the worst-case composite, per the contrast rule.

   96%, not 93%: on a white page the old value let 7% of it through and lifted
   the ground to rgb(28,30,34). Still not glass - the brief bans that - just
   opaque enough that the page underneath cannot bleach it. */
.levi__speech {
  --say-bg:     rgb(12 14 18 / 96%);
  --say-ink:    #f1f3f5;
  --say-accent: #ff9d52;
  --say-edge:   rgb(255 255 255 / 13%);

  /* IT FOLLOWS HIM AGAIN - and this time it can.
     It was docked because a box that followed him flickered. The cause was
     never following; it was that his BREATHING was written into the position
     every placement decision read, so the box inherited a +/-18px wobble and
     oscillated across its own thresholds. The breath is a separate transform
     layer now (--levi-bx/by) that nothing measures. levi.js places this box
     from the STATION alone - stable to the pixel between moves - beside him,
     tail pointing at him, clamped to the viewport. left/top rather than a
     transform because GSAP owns this element's transform for the reveal. */
  position: absolute;
  left: var(--say-l, 12px);
  top: var(--say-t, 80px);
  bottom: auto;
  width: 20.5rem;
  min-width: 20.5rem;
  pointer-events: none;
  padding: .72rem .9rem .78rem;
  border-radius: 13px;
  background: var(--say-bg);
  border: 1px solid var(--say-edge);
  box-shadow: 0 12px 34px rgb(0 0 0 / 52%), inset 0 1px 0 rgb(255 255 255 / 5%);
}
/* RETIRED WITH THE FOLLOWING. The tail pointed back at the light, which was
   the point of it while the box sat beside him. Docked, it points at the edge
   of the screen. A tail aimed at nothing is worse than no tail. */
/* ---- BANTER WEARS A DIFFERENT BOX --------------------------------------

   "Yes?" inside a 328px fixed-width card with a LEVI label over it and a 34px
   drop shadow under it does not read as a throwaway remark. It reads as a
   system notification about nothing, and that is the exact failure the
   reference exposed: the bee's lines carry no information, and the treatment
   is why they still land.

   So the panel becomes a bubble. It hugs the text instead of holding a fixed
   measure, it loses the label - a two-word aside does not need attributing,
   he is the only one here - it loses most of the shadow, and the radius goes
   to a pill so the silhouette itself says "remark" before a word is read.

   Same dock, same colours, same contrast. Only the chrome changes, so there
   is no jump between a section line and a remark. */
.levi-say.is-banter .levi__speech {
  width: auto;
  min-width: 0;
  max-width: 21rem;
  padding: .42rem .82rem .48rem;
  border-radius: 999px;
  box-shadow: 0 5px 16px rgb(0 0 0 / 34%);
}
.levi-say.is-banter .levi__who { display: none; }
.levi-say.is-banter .levi__line {
  font-size: .95rem;
  white-space: nowrap;
}
/* Only the ones that genuinely are short get to stay on one line; the longest
   in the bank is nine words and would otherwise run off the viewport. */
@media (max-width: 560px) {
  .levi-say.is-banter .levi__line { white-space: normal; }
  .levi-say.is-banter .levi__speech { border-radius: 16px; }
}

/* "(click me)". Same dark pill family as his banter, smaller, no tail, no
   border - a caption, not a remark. #f1f3f5 on this pill composites to 7.3:1
   even over white, the worst ground it can land on. */
.levi-hint {
  position: absolute;
  left: var(--hint-l, -999px);
  top: var(--hint-t, -999px);
  font: 500 11px/1 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .02em;
  color: #f1f3f5;
  background: rgb(12 14 18 / 72%);
  padding: 4px 8px 5px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 420ms var(--ease-out);
}
.levi-hint.is-shown { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .levi-hint { transition: none; } }

.levi__speech::after { content: none; }

/* THE TAIL. A speech box that follows someone has to say WHO is speaking,
   and a pointer at him says it faster than the LEVI label does - which is
   why the banter pill, which drops the label, still reads as his. It points
   left by default (he is on the box's left) and flips with the box. --tail-y
   is set per frame so it tracks him even when the box is clamped at a screen
   edge and he is not at its middle. */
.levi__speech::before {
  content: "";
  position: absolute;
  top: var(--tail-y, 50%);
  left: -6px;
  width: 11px; height: 11px;
  margin-top: -5.5px;
  background: var(--say-bg);
  border-left: 1px solid var(--say-edge);
  border-bottom: 1px solid var(--say-edge);
  transform: rotate(45deg);
  pointer-events: none;
}
.levi__speech.is-flip::before {
  left: auto; right: -6px;
  border-left: 0; border-bottom: 0;
  border-right: 1px solid var(--say-edge);
  border-top: 1px solid var(--say-edge);
}
/* Stacked (the phone case): the tail moves to the edge facing him and
   tracks his x, so it still points at him when the box is clamped sideways. */
.levi__speech.is-below::before,
.levi__speech.is-above::before {
  left: var(--tail-x, 50%);
  margin: 0 0 0 -5.5px;
}
.levi__speech.is-below::before {
  top: -6px;
  border-bottom: 0;
  border-top: 1px solid var(--say-edge);
}
.levi__speech.is-above::before {
  top: auto; bottom: -6px;
  border-left: 0;
  border-right: 1px solid var(--say-edge);
}
.levi__speech--tail::after {
  content: "";
  position: absolute;
  left: -6px; top: 18px;
  width: 10px; height: 10px;
  transform: rotate(45deg);
  background: var(--say-bg);
  border-left: 1px solid var(--say-edge);
  border-bottom: 1px solid var(--say-edge);
  border-radius: 2px;
}
/* Who is speaking, once, small. */
.levi__who {
  display: block;
  margin: 0 0 .28rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: var(--t-micro);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--say-accent);
  opacity: .92;
}
/* The cursor that blinks while a line is being typed out. */
.levi__caret {
  display: inline-block;
  width: .52em; height: 1.02em;
  margin-left: .08em;
  vertical-align: -.16em;
  background: var(--say-accent);
  opacity: .9;
  animation: levi-blink 1.05s steps(1, end) infinite;
}
.levi__speech.is-done .levi__caret { display: none; }
@keyframes levi-blink { 0%, 55% { opacity: .9 } 56%, 100% { opacity: 0 } }
@media (prefers-reduced-motion: reduce) {
  .levi__caret { animation: none; display: none; }
}
.levi__line {
  margin: 0;
  /* Two lines reserved. Without this the box grows as the text is typed, which
     changes speech.getBoundingClientRect().height, which moves goal.y, which
     makes Levi bob while it is talking. */
  min-height: 2.7em;
  font-size: var(--t-body, 1rem);
  line-height: 1.35;
  color: var(--say-ink);
  text-shadow: 0 1px 3px rgb(0 0 0 / 80%), 0 0 22px rgb(0 0 0 / 66%);
}

/* --- states --------------------------------------------------------------- */
.levi.is-idle .levi__core   { opacity: .8; }
.levi.is-idle .levi__corona { opacity: .5; }
.levi.is-idle .levi__flare  { opacity: .34; }
.levi.is-speaking .levi__core   { opacity: 1; }
.levi.is-speaking .levi__corona { opacity: .92; }
.levi.is-speaking .levi__flare  { opacity: .6; }
.levi.is-approved .levi__core   { opacity: 1; }
.levi.is-approved .levi__flare  { opacity: .9; }

.levi__speech { transition: opacity 300ms var(--ease-out); }
.levi-say.is-quiet .levi__speech { opacity: 0; }
/* NOTHING TO SAY vs NOWHERE TO SAY IT. Two different facts, and they were one
   class, so they fought: watchQueue() clears is-quiet to react to an approval,
   which is correct, and placement had no way to answer "not here". In the
   holding lane the box is stacked under the light at the page margin, and the
   lane runs straight down the demo panel - measured, 10 overlaps at 1536x830,
   every one of them with no zone and the panel on screen. is-blocked is owned
   by placeBox() and says only that the words have nowhere legal to land. */
.levi-say.is-blocked .levi__speech { opacity: 0; }
/* No zone owns this part of the page, so there is nothing here to be. */
/* is-quiet is now a state of the LINE only - see goQuiet() in levi.js, and
   the rule for it is a few lines above. The object itself is never faded for
   want of a zone; it flies to the holding lane and waits there, because a
   companion that blinks out of existence every time you cross a section
   boundary is not a companion. */
.levi.is-gone, .levi-say.is-gone { opacity: 0; transition: opacity 260ms var(--ease-out); }
.levi.is-boot, .levi-say.is-boot { visibility: hidden; }

/* --- the footnote --------------------------------------------------------- */
/* IN THE FOOTER, IN THE FLOW. Fixed at the bottom-left it landed on the hero
   lede at ordinary window heights - measured at (32, 765) over the paragraph.
   It is a footnote; it does not need to float. */
.levi-note {
  margin: 1.1rem 0 0;
  max-width: 62ch;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: var(--t-micro);
  letter-spacing: .01em;
  line-height: 1.5;
  color: var(--dim);
  /* No opacity. It was .5, which halves contrast on top of whatever the colour
     already achieves - the note measured 1.51:1 on the light pages and 3.26:1
     on the homepage. It is a disclosure about Levi, so it has to be readable;
     "quieter than the footer links" is done by size and colour, not by fading
     it out. The text-shadow went with it: it existed for when this sat fixed
     over the hero, and on a solid footer it only softens the edges. */
  pointer-events: none;
}

@media (max-width: 700px) {
  .levi__star { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
  .levi__core { width: 58px; height: 58px;
    box-shadow: 0 0 36px rgb(255 198 130 / 92%), 0 0 78px rgb(255 140 40 / 54%); }
  .levi__corona { width: 156px; height: 156px; }
  .levi__flare { width: 260px; height: 260px; }
  .levi__shadow { width: 168px; height: 54px; }
  .levi__speech { width: 16rem; min-width: 16rem; }
  .levi-note { max-width: 30ch; bottom: .6rem; }
}


@media (prefers-reduced-motion: reduce) {
  .levi__speech { transition: none; }
  .levi.is-gone, .levi-say.is-gone { transition: none; }
}

/* ============================================================================
   THE COLD START

   NOTHING HERE IS HIDDEN BY DEFAULT. Every rule below is gated on a class that
   only JavaScript can add, and the overlay's own markup is built by boot.js.
   With JavaScript off there is no class, no overlay and no veil - the page is
   simply the page. A preloader that leaves a JS-off visitor staring at black
   is the worst thing this file could do, so the failure direction is chosen
   deliberately: the sequence is the enhancement, the page is the resting state.

   THE VEIL IS A PSEUDO-ELEMENT on <html> rather than a div, because boot.js
   runs in the head, before <body> exists. A class on documentElement is the
   one thing that can be set that early, so the black is present on the very
   first paint instead of flashing the page and then covering it.
   ========================================================================== */
/* THERE IS NO CSS SCROLL LOCK HERE, deliberately.

   Two were tried. overflow:hidden on <html> left the document 15px wider than
   its viewport after the sequence - measured, and genuinely scrollable, where
   the very next load was 0. Moving the same rule to body did exactly the same
   thing. The cause is not which element: body carries overflow-x:hidden and
   the viewport takes its overflow from body, so toggling overflow on either of
   them retargets the viewport's scroll container and leaves a stale scroll
   width behind - with no element overflowing at all, which is why hunting for
   the wide element found nothing.

   boot.js holds the page still by refusing the input instead, which touches no
   layout and so cannot leave anything stale. */

html.is-cold-start::before {
  content: "";
  position: fixed; inset: 0;
  background: #05070a;
  z-index: 9000;
  opacity: var(--cold-veil, 1);
  pointer-events: none;
}

/* The film sits at z-index 0, under the page. For the length of the sequence
   it IS the page, so it comes above the veil - and because it is
   mix-blend-mode: screen over black, what shows is exactly its own light and
   nothing else. No mask, no treatment, no second element.

   Its own class, not .is-cold-start: under reduced motion the film is
   display:none and the poster lives on .singularity__ground, so raising this
   layer would put a photograph where the brief asks for black. */
html.is-cold-film .singularity { z-index: 9001; }

.cold {
  position: fixed; inset: 0;
  z-index: 9002;
  pointer-events: none;
  opacity: var(--cold-ui, 1);
}

/* One small mono line, typed. The caret belongs to the typing rather than
   being decoration, so it goes out when the line finishes. */
.cold__line {
  position: absolute; left: 50%; top: 17%;
  transform: translateX(-50%);
  margin: 0;
  color: var(--dim);
  white-space: nowrap;
  opacity: var(--cold-line, 0);
}
.cold__line::after {
  content: "\258D";
  margin-left: .18em;
  color: var(--accent-fill);
  opacity: var(--cold-caret, 1);
}

/* Beneath the point, once it has formed. */
.cold__caption {
  position: absolute; left: 50%; top: 50%;
  transform: translateX(-50%);
  margin: 3.6rem 0 0;
  color: var(--dim);
  white-space: nowrap;
  opacity: var(--cold-cap, 0);
}

.cold__skip {
  position: absolute;
  right: clamp(1rem, 2.4vw, 2rem);
  bottom: clamp(1rem, 2.4vw, 2rem);
  pointer-events: auto;
  min-height: 44px; padding: .5rem 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit; font-size: var(--t-small); font-weight: var(--w-do);
  cursor: pointer;
  opacity: var(--cold-skip, 0);
}
.cold__skip:hover { border-color: var(--edge); }

/* The light is the same light. It carries .levi__orb so it inherits the exact
   core and corona the component draws - one definition, used twice - but it is
   NOT inside a .levi root, so none of the state animations reach it. Its size
   and brightness come from two variables boot.js owns outright, which is what
   keeps the birth from fighting the component that inherits it afterwards. */
.cold__orb { transition: none; }
.cold__orb .levi__core,
.cold__orb .levi__corona {
  transform: translate(-50%, -50%) scale(var(--cold-orb-s, 1));
  opacity: var(--cold-orb-o, 1);
  animation: none;
}

/* Levi is built but held back until the sequence hands over. Hidden rather
   than absent, so its resting position can be measured before it is shown -
   the sequence has to know where it is travelling TO. */
.levi.is-boot { visibility: hidden; }

@media (max-width: 700px) {
  .cold__line, .cold__caption { font-size: .62rem; }
  .cold__caption { margin-top: 3rem; }
}

/* ============================================================================
   LEVI'S ZONES

   Declared bands the light is allowed to occupy, sized in the layout so they
   are genuinely empty rather than checked for emptiness at runtime. The
   previous version scanned every text rect on the page and scored candidate
   positions each time it moved; that is what produced the hero it could not
   see (mid-reveal text at opacity 0 counted as free space), the dense stops it
   could not solve, and the corner it fell back into - which was inside the
   film's brightest band at 1.26:1.

   A zone reserves star + line + 48px of clearance. 300px is that arithmetic:
   the light is 204px across at its largest state, plus 48 above and below.
   ========================================================================== */
/* ZERO LAYOUT HEIGHT. These were static blocks in the normal flow: seven of
   them at 396px injected about 2,770px of empty space and took the document to
   11,870px. That is what read as "bugging out" - dead gaps down the whole
   page. Every zone is absolute now and contributes nothing to layout; the
   sections it sits in are the positioning context. */
.levi-zone {
  display: block;
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 270px;          /* 2 x 40 clearance + 2 x 95 of visible light */
  pointer-events: none;
}
section { position: relative; }

/* The hero is pinned to one screen by design, so it cannot grow a band. Its
   zone goes in the empty right half instead, beside the copy rather than under
   it. Below 1100px the hero is one column and that half no longer exists, so
   the zone is withdrawn and the hero simply has no Levi. */
.hero__void { position: relative; }
/* The hero's dark area is ABOVE the copy and left of the ring - the band
   between the masthead and the eyebrow. Not over the ring, which is where the
   previous version put it. */
.levi-zone--hero {
  /* The dark half beside the headline, high enough to clear the ring. The band
     above the copy is only 70px measured - it cannot hold the light - and the
     band below is the same, so this is the one place in the hero with room.
     Sitting at the top of that half keeps it off the film bright band, which
     starts around 56% of the hero height. */
  left: 50%; right: 0;
  top: 3%; bottom: auto;
  height: 270px;
}
/* THE QUEUE'S BAND IS THE STAGE. Retired: .levi-zone--hero-b, a 33%-wide
   column to the left of the demo whose measured width was 158px at 1536
   against the 214 the light reserves, so fitsWidth() rejected it every time it
   was asked and the band was never usable at any scroll position. That is the
   whole of "the hero goes silent below 30%" - not a tuning problem, a column
   that was never wide enough.

   The stage is the demo's own box: 1,180px wide, as tall as the panel, and on
   screen exactly when the demo is. Levi is kept off the panel itself by
   keepOffPanel(), and the words are pushed clear below it by placeBox(). */
.hero__stage { position: relative; }
.levi-zone--queue {
  inset: 0;
  left: 0; right: 0; top: 0; bottom: 0;
  height: auto;
}
/* Desktop only - on a phone the hero's band is .levi-zone--hero-m below. */
.levi-zone--hero-m { display: none; }

/* --- BELOW 1240: THE HERO IS ONE COLUMN ------------------------------------
   The right-half band beside the headline stops existing, and withdrawing it
   used to mean the two most important sections of the site - the hero and the
   demo - had no Levi at all for every phone and tablet visitor.

   Both get full-width bands instead. The hero's is the gap between the end of
   its copy and the top of the demo, anchored to the stage so it tracks however
   the headline wraps. The demo keeps the stage itself.

   The line stacks under the light rather than sitting beside it without any
   rule being added for it: retarget() already stacks when
   PAD + 2R + gap + line + PAD exceeds the band, which on a phone is
   40 + 156 + 26 + 256 + 40 = 518 against a 390px screen. */
@media (max-width: 1240px) {
  .levi-zone--hero { display: none; }
  .levi-zone--hero-m {
    display: block;
    left: 0; right: 0;
    top: auto;
    bottom: 100%;          /* the free gap directly above the demo */
    /* 250, NOT 200, BECAUSE THE STAGE IS SCALED. .wrap carries scale(.88) on a
       phone, and this band is inside it - so 200px of CSS measured 176px on
       screen, under the 180 the light reserves, and visibleSlice() rejected
       the band at every scroll position. Placement reads the RENDERED rect,
       so the declared height has to be the rendered one divided by the scale.

       340 x .88 = 299 rendered. 250 was the first attempt and it was too
       short in the other direction: the band ran 722..942 against an 844px
       screen, so at the very top of the page only 122px of it was showing
       against the 180 floor and the hero - the first thing anyone sees - had
       no usable band until they had already scrolled a hundred pixels.

       340 fixed the phone and left the tablet: at 768x1024 the light reserves
       214 rather than 180, the band ran 853..1152 against a 1024 screen, and
       171 visible pixels was still short - the hero was silent for the first
       120px of scroll. 420 x .88 = 370 rendered, which puts 272 on screen at
       390x844 and 242 at 768x1024, clear of both floors from the first paint.

       The band now overlaps the tail of the hero copy, which costs nothing:
       the light is allowed to cross copy, and the words are held off it by
       placeBox(). */
    height: 420px;
  }
}

/* --- THE OTHER SIX PAGES ---------------------------------------------------
   These are compact prose, not the homepage's 600-1600px scenes, so where the
   band's foot lands decides whether Levi can speak at all: the box is anchored
   to it, and a box that lands on copy is suppressed rather than drawn.

   Measured at 1536x830 on trust.html, which is the densest of them - every
   .prose section leaves 123-152px between its last line of type and its own
   bottom edge, and the box is 90. The default band, whose foot is the section
   foot, lands the box inside that tail with room to spare. Nothing to do.

   The page hero is the exception. Its tail is 67px, so the box overhangs into
   the lede - measured, .phero was the one section of seven that was silent on
   arrival, with the box suppressed at 360..450 against type ending at 393.
   Its band reaches into the gap below the section instead, where the next
   section's own 110px of headroom is empty by construction. */
.phero .levi-zone {
  height: 220px;
  bottom: -72px;
}
/* Measured at 1536x830: the hero has 70px above the copy, 70px below it and
   170px to the right of the copy BOX - none of which holds a 396px zone. The
   copy TEXT, though, stops around x 730 while its box runs to 1350, so the
   open dark half beside the headline is the only place in the hero that can
   take the light. Below 1200px the hero is one column and that half stops
   existing, so the hero simply has no zone there. */
@media (max-width: 1100px) {
  .levi-zone--hero { display: none; }
}

/* The fixed measure is declared with the rest of the speech above. max-content
   inside a zero-width layer is what produced a computed width of 0 and a line
   wrapping one word per row against the screen edge. */

/* Set data-levi-debug on <html> to see the zones while working on them. */
html[data-levi-debug] .levi-zone {
  outline: 1px dashed rgb(255 122 26 / 55%);
  background: rgb(255 122 26 / 6%);
}
