/* ============================================================
   toreel — landing

   Committed to one look rather than two: the product is a dark
   room you glance at from a phone at night, and a light variant
   would be a different product's page. Every colour is painted
   explicitly so the page never borrows a host's ground.
   ============================================================ */

:root {
  --ink:     #0c0d0e;
  --cell:    #121316;
  --cell-2:  #17181c;
  --line:    #232529;
  --line-2:  #2d3036;
  --text:    #edeef0;
  --mute:    #8b8f97;
  /* 4.83:1 on the page ground and 4.62:1 on a card — both clear the 4.5:1
     minimum for body text. It was #5f636b, which measured 3.23:1 and 3.08:1
     while carrying captions, figure notes and form hints. Still visibly
     quieter than --mute, so the hierarchy survives the fix. */
  --dim:     #7a7f88;
  --accent:  #6ba5e7;
  --accent-d:#274a70;
  --good:    #5fa97e;

  --display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --edge:    22px;
  --r:       18px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--edge); }

a { color: inherit; }

/* ---------- header ---------- */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 0;
}

.logo { display: block; text-decoration: none; line-height: 0; }
.logo img { height: 30px; width: auto; display: block; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #08111c;
  border: 0;
  border-radius: 999px;
  padding: 11px 19px;
  font: 500 15px/1 var(--body);
  text-decoration: none;
  white-space: nowrap;
  transition: transform .16s ease, background .16s ease;
}
.cta:hover { background: #82b5ee; transform: translateY(-1px); }
.cta.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
}
.cta.ghost:hover { background: var(--cell-2); }

/* ---------- hero ---------- */

.hero { padding: 78px 0 10px; }

h1 {
  margin: 0 0 20px;
  font: 500 clamp(38px, 7.4vw, 72px)/1.03 var(--display);
  letter-spacing: -0.045em;
  text-wrap: balance;
  max-width: 15ch;
}
h1 em { font-style: normal; color: var(--accent); }

.lede {
  margin: 0 0 32px;
  max-width: 46ch;
  color: var(--mute);
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.5;
}

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.note {
  margin: 18px 0 0;
  color: var(--dim);
  font: 400 14px/1.5 var(--body);
}

/* ---------- the machine: hero vignette ---------- */

.machine {
  margin: 54px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--cell-2), var(--cell));
  padding: 26px 24px 30px;
  overflow: hidden;
}

.prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0e0f12;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  font: 400 15px/1 var(--body);
  color: var(--text);
}
.prompt .dot-blue { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
/* Mono on purpose: `ch` is the width of a digit, so in a proportional face the
   animated width never lands on the end of the word and the caret floats in
   open space. In a monospaced face one ch is one character, exactly — which is
   why each line carries its own length rather than sharing one. */
.typing {
  position: relative;
  display: block;
  height: 1em;
  flex: 1;
  min-width: 0;
}
.typed {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: -0.01em;
  border-right: 2px solid var(--accent);
  width: 0;
  visibility: hidden;
  /* Four lines share one 24s cycle, each with a 6s slot: type, hold, erase,
     then stay out of the way while the next one takes its turn. */
  animation: type 24s steps(40) infinite, caret .85s step-end infinite;
}
.t1 { animation-delay: 0s, 0s }
.t2 { animation-delay: 6s, 6s }
.t3 { animation-delay: 12s, 12s }
.t4 { animation-delay: 18s, 18s }

@keyframes type {
  0%            { width: 0;      visibility: visible }
  7%            { width: var(--n); visibility: visible }
  19%           { width: var(--n); visibility: visible }
  23%           { width: 0;      visibility: visible }
  24%, 100%     { width: 0;      visibility: hidden }
}
@keyframes caret { 50% { border-color: transparent } }

.arrowdown {
  display: block;
  margin: 16px auto 14px;
  width: 14px;
  height: 22px;
  opacity: .5;
}

/* Six across, always. Letting them wrap left an orphan row and turned the
   vignette into the tallest thing on the page — the opposite of a vignette. */
.queue {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
}
.reel {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0e0f12;
  padding: 6px;
  opacity: 0;
  transform: translateY(9px);
  animation: reel-in 3.4s ease-out infinite;
}
.thumb {
  display: block;
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 6px;
}

/* The frames are real output now, so the tile needs no invented gradient. */
.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(12,13,14,.42);
  border: 1px solid rgba(255,255,255,.30);
  backdrop-filter: blur(2px);
}
/* A triangle, nudged right of centre — a play mark centred on its bounding box
   reads as sitting left of centre inside a circle. */
.play::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 4.5px 0 4.5px 7px;
  border-color: transparent transparent transparent rgba(255,255,255,.92);
}

.dur {
  position: absolute;
  right: 4px; top: 4px;
  font: 500 8px/1 var(--mono);
  color: rgba(255,255,255,.82);
  background: rgba(12,13,14,.55);
  border-radius: 3px;
  padding: 2px 3px;
  letter-spacing: .02em;
}

.reel u {
  display: block;
  padding-top: 1px;
  font: 500 9px/1 var(--mono);
  color: var(--dim);
  text-decoration: none;
  letter-spacing: .02em;
}
.reel:nth-child(1) { animation-delay: .40s }
.reel:nth-child(2) { animation-delay: .52s }
.reel:nth-child(3) { animation-delay: .64s }
.reel:nth-child(4) { animation-delay: .76s }
.reel:nth-child(5) { animation-delay: .88s }
.reel:nth-child(6) { animation-delay: 1.00s }
@keyframes reel-in {
  0%, 10%   { opacity: 0; transform: translateY(9px) }
  22%, 88%  { opacity: 1; transform: none }
  100%      { opacity: 0; transform: translateY(9px) }
}

.machine-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 18px;
  font: 500 12px/1 var(--mono);
  color: var(--dim);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.machine-foot .on { color: var(--good); }

/* ---------- facts ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin: 26px 0 0;
}
.fact { background: var(--ink); padding: 24px 22px; }
.fact dt {
  font: 500 clamp(26px, 4vw, 34px)/1 var(--display);
  letter-spacing: -0.04em;
  margin-bottom: 7px;
}
.fact dd { margin: 0; color: var(--mute); font-size: 15px; line-height: 1.45; }

/* ---------- section heads ---------- */

.sec { padding: 96px 0 0; }

h2 {
  margin: 0 0 8px;
  font: 500 clamp(29px, 4.6vw, 44px)/1.08 var(--display);
  letter-spacing: -0.04em;
  text-wrap: balance;
  max-width: 18ch;
}
.sec-sub { margin: 0 0 30px; color: var(--mute); max-width: 48ch; }

/* ---------- stage grid (the Framer principle, our meanings) ---------- */

.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.stage {
  background: var(--ink);
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  min-height: 268px;
}
.viz {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0 20px;
  min-height: 128px;
}
.stage h3 {
  margin: 0 0 5px;
  font: 500 18px/1.2 var(--display);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 7px;
}
.stage h3 .n {
  font: 500 11px/1 var(--mono);
  color: var(--dim);
  letter-spacing: .06em;
}
.stage p { margin: 0; color: var(--mute); font-size: 14.5px; line-height: 1.5; }

/* --- vignette 1: research — sources accumulating --- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 200px; }
.chip {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 5px 10px;
  font: 400 11px/1 var(--mono);
  color: var(--mute);
  background: var(--cell);
  opacity: 0;
  animation: pop 4.2s ease-out infinite;
}
.chip:nth-child(1) { animation-delay: .1s }
.chip:nth-child(2) { animation-delay: .35s }
.chip:nth-child(3) { animation-delay: .6s }
.chip:nth-child(4) { animation-delay: .85s }
.chip:nth-child(5) { animation-delay: 1.1s; border-color: var(--accent-d); color: var(--accent) }
@keyframes pop {
  0%, 4%    { opacity: 0; transform: scale(.9) }
  14%, 86%  { opacity: 1; transform: none }
  100%      { opacity: 0; transform: scale(.9) }
}

/* --- vignette 2: scripts — lines writing themselves --- */
.lines { width: 100%; max-width: 210px; display: grid; gap: 9px; }
.lines i {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--line-2), #3a3e46);
  width: 0;
  animation: write 4.2s ease-out infinite;
}
.lines i:nth-child(1) { animation-delay: .1s }
.lines i:nth-child(2) { animation-delay: .5s }
.lines i:nth-child(3) { animation-delay: .9s }
.lines i:nth-child(4) { animation-delay: 1.3s }
@keyframes write {
  0%, 4%    { width: 0 }
  20%, 86%  { width: var(--w, 100%) }
  100%      { width: 0 }
}
/* Ragged right: equal lines read as a loading bar, not as writing. */
.lines i:nth-child(2) { --w: 84% }
.lines i:nth-child(3) { --w: 96% }
.lines i:nth-child(4) { --w: 58% }

/* --- vignette 3: avatar — a face on camera, abstracted --- */
.cam {
  width: 100%;
  max-width: 190px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: linear-gradient(170deg, #16181d, #0f1013);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.cam .head {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(160deg, #33536f, #1f3247);
  box-shadow: 0 0 0 6px rgba(107,165,231,.07);
  animation: breathe 3.1s ease-in-out infinite;
}
@keyframes breathe { 50% { box-shadow: 0 0 0 11px rgba(107,165,231,.10) } }
.wave {
  position: absolute; bottom: 11px; left: 0; right: 0;
  display: flex; gap: 3px; justify-content: center; align-items: flex-end; height: 16px;
}
.wave i {
  width: 3px; border-radius: 2px; background: var(--accent); opacity: .85;
  animation: talk 1.05s ease-in-out infinite;
}
.wave i:nth-child(1) { height: 6px;  animation-delay: 0s }
.wave i:nth-child(2) { height: 12px; animation-delay: .1s }
.wave i:nth-child(3) { height: 16px; animation-delay: .2s }
.wave i:nth-child(4) { height: 9px;  animation-delay: .3s }
.wave i:nth-child(5) { height: 13px; animation-delay: .4s }
.wave i:nth-child(6) { height: 5px;  animation-delay: .5s }
@keyframes talk { 50% { transform: scaleY(.32) } }

/* --- vignette 4: montage — clips landing on a track --- */
.track { width: 100%; max-width: 210px; }
.track .row { display: flex; gap: 4px; height: 30px; }
.track .row i {
  flex: 1;
  border-radius: 5px;
  background: linear-gradient(165deg, #223549, #141a22);
  border: 1px solid var(--line-2);
  transform: translateX(18px);
  opacity: 0;
  animation: snap 3.6s cubic-bezier(.2,.9,.3,1) infinite;
}
.track .row i:nth-child(1) { animation-delay: .1s }
.track .row i:nth-child(2) { animation-delay: .3s }
.track .row i:nth-child(3) { animation-delay: .5s; flex: 1.6 }
.track .row i:nth-child(4) { animation-delay: .7s }
@keyframes snap {
  0%, 3%    { opacity: 0; transform: translateX(18px) }
  16%, 86%  { opacity: 1; transform: none }
  100%      { opacity: 0; transform: translateX(18px) }
}
.ruler {
  margin-top: 8px; height: 6px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 11px);
}

/* --- vignette 5: covers — tiles dealt out --- */
.covers { display: flex; gap: 7px; }
.covers i {
  width: 42px; aspect-ratio: 9/16; border-radius: 7px;
  border: 1px solid var(--line-2);
  position: relative;
  overflow: hidden;
  opacity: 0; transform: translateY(10px) rotate(-3deg);
  animation: deal 3.8s ease-out infinite;
}
.covers i::after {
  content: ''; position: absolute; left: 6px; right: 6px; bottom: 8px;
  height: 4px; border-radius: 2px; background: rgba(233,234,236,.55);
}
.covers i:nth-child(1) { animation-delay: .15s; background: radial-gradient(85% 55% at 32% 20%, #2f5f8c, transparent 62%), linear-gradient(168deg, #1a2430, #0d1116) }
.covers i:nth-child(2) { animation-delay: .35s; background: radial-gradient(88% 58% at 24% 32%, #3c4a86, transparent 62%), linear-gradient(168deg, #1b1f33, #0e0f16) }
.covers i:nth-child(3) { animation-delay: .55s; background: radial-gradient(84% 54% at 66% 24%, #8a6340, transparent 60%), linear-gradient(168deg, #2a2018, #14100c) }
@keyframes deal {
  0%, 4%    { opacity: 0; transform: translateY(10px) rotate(-3deg) }
  18%, 86%  { opacity: 1; transform: none }
  100%      { opacity: 0; transform: translateY(10px) rotate(-3deg) }
}

/* --- vignette 6: publish — a day filling with slots --- */
.slots { width: 100%; max-width: 186px; display: grid; gap: 7px; }
.slot {
  display: flex; align-items: center; gap: 9px;
  font: 400 11px/1 var(--mono); color: var(--mute);
}
.slot .t { width: 38px; color: var(--dim); }
.slot .bar { flex: 1; height: 7px; border-radius: 4px; background: var(--cell-2); overflow: hidden; }
.slot .bar span {
  display: block; height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-d), var(--accent));
  animation: fill 4.4s ease-out infinite;
}
.slot .ok { width: 13px; color: var(--good); opacity: 0; animation: tick 4.4s ease-out infinite; }
.slot:nth-child(1) span, .slot:nth-child(1) .ok { animation-delay: .2s }
.slot:nth-child(2) span, .slot:nth-child(2) .ok { animation-delay: .8s }
.slot:nth-child(3) span, .slot:nth-child(3) .ok { animation-delay: 1.4s }
.slot:nth-child(4) span, .slot:nth-child(4) .ok { animation-delay: 2.0s }
@keyframes fill { 0%,4% { width: 0 } 18%,86% { width: 100% } 100% { width: 0 } }
@keyframes tick { 0%,14% { opacity: 0 } 24%,86% { opacity: 1 } 100% { opacity: 0 } }

/* ---------- avatar routes ---------- */

/* The route people actually come for — a likeness trained from their own
   recording — gets the width and a real face. Three equal text columns were
   not carrying it: what sells this is seeing a person, not reading that one
   is possible. */

.lead {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--cell);
  overflow: hidden;
  display: grid;
  grid-template-columns: 320px 1fr;
}

.stage {
  position: relative;
  background: #000;
  min-height: 360px;
  overflow: hidden;
}
.stage .face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Held high in the frame: when the card stacks on a phone the stage becomes
     wide and short, and a centred crop lands on the chin. */
  object-position: 50% 14%;
  display: block;
}

/* A sweep across the frame: the likeness being read off the take. Decorative,
   so it sits behind nothing and carries no meaning a still reader would miss. */
.stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(107,165,231,.18), transparent);
  animation: sweep 5.4s ease-in-out infinite;
}
@keyframes sweep { 0% { top: -34% } 60%, 100% { top: 100% } }

.stage-tag {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
  font: 500 10px/1 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(12,13,14,.66);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 6px 9px;
}

/* Three moments of one take, not three people — all cropped from the same
   still at different scales for exactly that reason. */
.takes { position: absolute; left: 13px; bottom: 13px; z-index: 2; display: flex; gap: 6px; }
.takes img {
  width: 42px;
  height: 53px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,.26);
  opacity: .42;
  animation: take 3.6s steps(1) infinite;
}
.takes img:nth-child(2) { animation-delay: 1.2s }
.takes img:nth-child(3) { animation-delay: 2.4s }
@keyframes take { 0%, 33% { opacity: 1 } 34%, 100% { opacity: .42 } }

.lipsync {
  position: absolute;
  right: 14px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
}
.lipsync i {
  width: 3px;
  height: 30%;
  border-radius: 2px;
  background: var(--accent);
  animation: lip 1.05s ease-in-out infinite;
}
.lipsync i:nth-child(2) { animation-delay: .12s }
.lipsync i:nth-child(3) { animation-delay: .26s }
.lipsync i:nth-child(4) { animation-delay: .07s }
.lipsync i:nth-child(5) { animation-delay: .33s }
@keyframes lip { 0%, 100% { height: 26% } 50% { height: 100% } }

.lead-copy { padding: 28px 26px; align-self: center; }

.routes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }

.route {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--cell);
  padding: 20px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: center;
}
.route .one {
  width: 96px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.cat { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 96px; }
.cat img {
  width: 100%;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
  opacity: .4;
  animation: pick 5.2s steps(1) infinite;
}
.cat img:nth-child(2) { animation-delay: 1.3s }
.cat img:nth-child(3) { animation-delay: 2.6s }
.cat img:nth-child(4) { animation-delay: 3.9s }
@keyframes pick { 0%, 25% { opacity: 1 } 26%, 100% { opacity: .4 } }

.way-n {
  display: block;
  font: 500 11px/1 var(--mono);
  color: var(--dim);
  letter-spacing: .06em;
  margin-bottom: 11px;
}

.lead-copy h3, .route h3 {
  margin: 0 0 7px;
  font: 500 19px/1.2 var(--display);
  letter-spacing: -0.025em;
}
.lead-copy h3 { font-size: 24px; }

.lead-copy p, .route p {
  margin: 0;
  color: var(--mute);
  font-size: 15px;
  line-height: 1.5;
}
.lead-copy p { font-size: 16px; max-width: 44ch; }

@media (max-width: 860px) {
  .lead { grid-template-columns: 1fr; }
  .stage { min-height: 330px; }
  .routes { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .stage::after, .takes img, .lipsync i, .cat img { animation: none; }
  .stage::after { display: none; }
  .takes img, .cat img { opacity: 1; }
}

/* ---------- where the queue goes ---------- */

.nets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 22px;
}

.net {
  background: var(--ink);
  padding: 22px 18px 20px;
  display: grid;
  gap: 11px;
  justify-items: start;
}
.net svg { width: 25px; height: 25px; color: var(--text); }
.net b { font: 500 15px/1.2 var(--display); letter-spacing: -.02em; }
.net .state {
  font: 500 10px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 5px 8px;
}
.net .state.on { color: var(--good); border-color: rgba(95,169,126,.38); }

@media (max-width: 760px) { .nets { grid-template-columns: 1fr 1fr; } }

/* ---------- questions ---------- */

.qa {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.q { border-bottom: 1px solid var(--line); }
.q:last-child { border-bottom: 0; }
.q summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font: 500 17px/1.4 var(--display);
  letter-spacing: -0.02em;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.q summary::-webkit-details-marker { display: none; }
.q summary::after {
  content: '+';
  color: var(--dim);
  font: 400 20px/1 var(--body);
  flex: none;
}
.q[open] summary::after { content: '\2013'; }
.q summary:hover { background: var(--cell); }
.q p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--mute);
  max-width: 68ch;
  font-size: 15.5px;
}

/* ---------- overnight ---------- */

.night {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    radial-gradient(120% 130% at 88% -10%, rgba(107,165,231,.12), transparent 55%),
    var(--cell);
  padding: 30px 26px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: center;
}
.night h2 { margin-bottom: 12px; }
.night p { margin: 0; color: var(--mute); }

.clockstrip { display: grid; gap: 10px; }
.tick {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 12px;
  font: 400 12px/1 var(--mono);
  color: var(--dim);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.tick:last-child { border-bottom: 0; padding-bottom: 0; }
.tick .what { color: var(--mute); font-family: var(--body); font-size: 14px; }
.tick .cnt { color: var(--text); }
.tick.done .cnt { color: var(--good); }

/* ---------- closing ---------- */

.end {
  margin: 96px 0 0;
  border-top: 1px solid var(--line);
  padding: 64px 0 0;
  text-align: center;
}
.end h2 { margin: 0 auto 12px; max-width: 20ch; }
.end p { color: var(--mute); margin: 0 auto 26px; max-width: 44ch; }

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 76px;
  padding: 22px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
}
footer a { text-decoration: none; color: var(--mute); }
footer a:hover { color: var(--text); }

/* ---------- narrow ---------- */

@media (max-width: 860px) {
  .stages { grid-template-columns: repeat(2, 1fr); }
  .night { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --edge: 16px; }
  .hero { padding-top: 52px; }
  .facts { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; }
  .stage { min-height: 232px; }
  .machine { padding: 18px 16px 22px; }
  .queue { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .typed { animation: none; border-right-color: transparent; visibility: hidden; width: 0 }
  .t1 { visibility: visible; width: var(--n) }
  .reel, .chip, .covers i, .track .row i { opacity: 1; transform: none; animation: none; }
  .lines i, .slot .bar span { width: 100%; animation: none; }
  .slot .ok { opacity: 1; animation: none; }
  .wave i, .cam .head { animation: none; }
}

/* ---------- waitlist ---------- */

.joinbox {
  width: min(440px, calc(100vw - 32px));
  padding: 28px 26px 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--cell);
  color: var(--text);
  position: relative;
}
.joinbox::backdrop { background: rgba(0, 0, 0, .62); }
.joinbox h2 {
  margin: 0 0 8px;
  font: 500 24px/1.15 var(--display);
  letter-spacing: -0.03em;
  max-width: none;
}
.joinbox p { margin: 0; color: var(--mute); font-size: 14.5px; line-height: 1.5; }
.joinbox .join { margin-top: 20px; }
.joinbox .join-note { text-align: left; }

.joinbox-close { position: absolute; top: 10px; right: 12px; }
.joinbox-close button {
  appearance: none;
  border: 0;
  background: none;
  color: var(--dim);
  font-size: 24px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}
.joinbox-close button:hover { color: var(--text); }

button.cta { border: 0; font: inherit; font-size: 15px; cursor: pointer; }


.join {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 26px auto 0;
  max-width: 460px;
}
.join input {
  flex: 1 1 240px;
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--cell);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
}
.join input::placeholder { color: var(--dim); }
.join input:focus { border-color: var(--accent); }
.join input[aria-invalid='true'] { border-color: #e0575c; }
.join .cta { flex: 0 0 auto; border: 0; cursor: pointer; font: inherit; font-size: 15px; }
.join button[disabled] { opacity: .6; cursor: default; }

.join-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--dim);
  min-height: 1.4em;
}
.join-note.is-good { color: var(--good); }
.join-note.is-bad { color: #e0575c; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- site navigation ---------- */

/* The other pages exist only if something links to them — a crawler has no
   other way in, and neither does a reader who landed on the home page. */
.sitenav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  margin-right: 18px;
  font-size: 14px;
}
.sitenav a {
  color: var(--mute);
  text-decoration: none;
  white-space: nowrap;
}
.sitenav a:hover { color: var(--text); }
.sitenav a[aria-current='page'] { color: var(--text); }

@media (max-width: 900px) { .sitenav { display: none; } }

.footnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-bottom: 16px;
  font-size: 14px;
}
.footnav a { color: var(--mute); text-decoration: none; }
.footnav a:hover { color: var(--text); }

.footline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}

/* ---------- article pages ---------- */

.page { padding: 56px 0 0; max-width: 760px; }
.page .eyebrow {
  margin: 0 0 10px;
  font: 500 11px/1 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--dim);
}
.page h1 {
  margin: 0 0 16px;
  font: 500 clamp(32px, 5.4vw, 52px)/1.06 var(--display);
  letter-spacing: -0.04em;
  max-width: 20ch;
}
.page .standfirst {
  margin: 0 0 34px;
  max-width: 58ch;
  color: var(--mute);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
}

.page h2 {
  margin: 44px 0 12px;
  font: 500 clamp(23px, 3vw, 30px)/1.15 var(--display);
  letter-spacing: -0.03em;
  max-width: 24ch;
}
.page h3 {
  margin: 28px 0 8px;
  font: 500 18px/1.25 var(--display);
  letter-spacing: -0.02em;
}
.page p {
  margin: 0 0 16px;
  max-width: 68ch;
  color: var(--mute);
  font-size: 16px;
  line-height: 1.62;
}
.page p strong { color: var(--text); font-weight: 500; }
.page a { color: var(--accent); }

.page ul, .page ol { margin: 0 0 18px; padding-left: 20px; max-width: 66ch; }
.page li { margin-bottom: 8px; color: var(--mute); font-size: 16px; line-height: 1.6; }
.page li strong { color: var(--text); font-weight: 500; }

/* A fact worth stopping on, not a pull quote pretending to be one. */
.figure {
  margin: 26px 0;
  padding: 18px 20px;
  border-left: 2px solid var(--accent);
  background: var(--cell);
  border-radius: 0 var(--r) var(--r) 0;
}
.figure b {
  display: block;
  font: 500 clamp(26px, 4vw, 36px)/1 var(--display);
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 6px;
}
.figure span { color: var(--mute); font-size: 15px; line-height: 1.5; }

.page figure { margin: 28px 0; }
.page figure img {
  width: 100%;
  /* Without this the width attribute is capped and the height attribute is
     not, so a 640x800 portrait renders 340x800 — squeezed, which is exactly
     what it looked like. */
  height: auto;
  border-radius: var(--r);
  display: block;
  border: 1px solid var(--line);
}
.page figcaption {
  margin-top: 10px;
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.5;
}

.crumbs { margin: 0 0 22px; font-size: 13px; color: var(--dim); }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* The step list: the pipeline is a sequence, so the numbers mean something. */
.steps { margin: 26px 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.step { background: var(--ink); padding: 20px 22px; }
.step-n {
  display: block;
  font: 500 11px/1 var(--mono);
  letter-spacing: .08em;
  color: var(--dim);
  margin-bottom: 8px;
}
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; font-size: 15px; }
.step .step-fact {
  display: block;
  margin-top: 10px;
  font: 400 12.5px/1.5 var(--mono);
  color: var(--dim);
}

.pagecta {
  margin: 52px 0 0;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--cell);
  text-align: center;
}
.pagecta h2 { margin: 0 0 8px; max-width: none; }
.pagecta p { margin: 0 auto 18px; max-width: 48ch; }

.next {
  margin: 44px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 15px;
}
.next span { color: var(--dim); }

/* ==========================================================================
   Blocks
   --------------------------------------------------------------------------
   The article pages were paragraphs and one stretched photograph each. These
   are the pieces that replace that: a proportional timeline of where the two
   hours actually go, a funnel from one subject to fifteen reels, the loop a
   published batch goes round, and a before/after of somebody's week.

   Everything is drawn in CSS or inline SVG rather than exported as images, so
   it stays sharp, stays selectable, and stays correct when a number changes.
   ========================================================================== */

/* Motion is opt-in and JS-gated: with scripting off there is no .js class, so
   nothing is ever hidden waiting to be revealed. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s cubic-bezier(.2, .7, .3, 1), transform .6s cubic-bezier(.2, .7, .3, 1);
}
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- section lead ---------- */

.blocklead { margin: 56px 0 22px; max-width: 62ch; }
.blocklead h2 { margin: 0 0 10px; }
.blocklead p { margin: 0; }

/* ---------- proportional timeline ---------- */

/* The point of this one is proportion: the two stages that take 80% of the
   night look like 80% of the bar, which a list of numbers never does. */
.timeline { margin: 30px 0; }

.timebar {
  display: flex;
  height: 46px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cell);
}
.timeseg {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  font: 500 11px/1 var(--mono);
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  transform-origin: left center;
}
.js [data-reveal] .timeseg { transform: scaleX(0); }
.js [data-reveal].in .timeseg {
  transform: scaleX(1);
  transition: transform .9s cubic-bezier(.2, .7, .3, 1);
}
.js [data-reveal].in .timeseg:nth-child(2) { transition-delay: .07s }
.js [data-reveal].in .timeseg:nth-child(3) { transition-delay: .14s }
.js [data-reveal].in .timeseg:nth-child(4) { transition-delay: .21s }
.js [data-reveal].in .timeseg:nth-child(5) { transition-delay: .28s }
.js [data-reveal].in .timeseg:nth-child(6) { transition-delay: .35s }
.js [data-reveal].in .timeseg:nth-child(7) { transition-delay: .42s }

.timekey {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--mute);
}
.timekey span { display: inline-flex; align-items: center; gap: 7px; }
.timekey i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.timekey b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- funnel ---------- */

.funnel { margin: 30px 0; display: grid; gap: 10px; }
.frow {
  display: grid;
  grid-template-columns: 128px 1fr;
  align-items: center;
  gap: 16px;
}
.frow span { font-size: 13.5px; color: var(--mute); text-align: right; }
.fbar {
  position: relative;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent-d));
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--ink);
  font: 500 15px/1 var(--display);
  transform-origin: left center;
}
.js [data-reveal] .fbar { transform: scaleX(.02); }
.js [data-reveal].in .fbar {
  transform: scaleX(1);
  transition: transform .8s cubic-bezier(.2, .7, .3, 1);
}
.js [data-reveal].in .frow:nth-child(2) .fbar { transition-delay: .1s }
.js [data-reveal].in .frow:nth-child(3) .fbar { transition-delay: .2s }
.js [data-reveal].in .frow:nth-child(4) .fbar { transition-delay: .3s }
.js [data-reveal].in .frow:nth-child(5) .fbar { transition-delay: .4s }
.fbar b { font-weight: 600; margin-right: 8px; }
.fbar em { font-style: normal; opacity: .72; font-size: 13px; font-family: var(--body); }

/* ---------- the loop ---------- */

/* Three stations on a ring, because the thing being described is a cycle and
   drawing it as a list would say the opposite. */
.loop {
  margin: 30px 0;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.loopring { position: relative; aspect-ratio: 1; }
.loopring svg { width: 100%; height: 100%; display: block; overflow: visible; }
.loopring .track { fill: none; stroke: var(--line); stroke-width: 1.5; }
.loopring .runner {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 44 240;
}
.js [data-reveal].in .loopring .runner { animation: orbit 5s linear infinite; }
@keyframes orbit { to { stroke-dashoffset: -284; } }

.loopring .node { fill: var(--cell); stroke: var(--line-2); stroke-width: 1.5; }
.loopring .node.is-live { stroke: var(--accent); }
.loopring text {
  fill: var(--text);
  font: 500 11px var(--mono);
  letter-spacing: .06em;
  text-anchor: middle;
}
.loopring text.n { fill: var(--dim); font-size: 9.5px; }

.loopsteps { display: grid; gap: 16px; }
.loopstep { display: grid; grid-template-columns: 26px 1fr; gap: 14px; }
.loopstep b {
  font: 500 11px/1.6 var(--mono);
  color: var(--accent);
  letter-spacing: .06em;
}
.loopstep h3 { margin: 0 0 4px; font: 500 17px/1.25 var(--display); letter-spacing: -.02em; }
.loopstep p { margin: 0; font-size: 14.5px; }

@media (max-width: 760px) {
  .loop { grid-template-columns: 1fr; }
  .loopring { max-width: 260px; margin: 0 auto; }
}

/* ---------- before / after ---------- */

.swap {
  margin: 30px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.swapside { background: var(--ink); padding: 22px 20px; }
.swapside.is-after { background: var(--cell); }
.swaphead {
  display: block;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
}
.swapside.is-after .swaphead { color: var(--good); }
.swapside ul { margin: 0; padding: 0; list-style: none; }
.swapside li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  margin-bottom: 11px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--mute);
}
.swapside li::before { content: '—'; color: var(--dim); }
.swapside.is-after li::before { content: '✓'; color: var(--good); }
.swapfoot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font: 500 13px/1.3 var(--mono);
  color: var(--dim);
}
.swapside.is-after .swapfoot { color: var(--text); }

@media (max-width: 680px) { .swap { grid-template-columns: 1fr; } }

/* ---------- stat row ---------- */

.stats {
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.stat { background: var(--ink); padding: 20px 18px; }
.stat b {
  display: block;
  font: 500 clamp(26px, 3.6vw, 34px)/1 var(--display);
  letter-spacing: -.03em;
  margin-bottom: 7px;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 13px; color: var(--mute); line-height: 1.45; display: block; }
.stat.is-good b { color: var(--good); }
.stat.is-warm b { color: var(--accent); }

/* ---------- pain / answer ---------- */

.pains { margin: 30px 0; display: grid; gap: 10px; }
.pain {
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--cell);
  border: 1px solid var(--line);
}
.pain q {
  font-size: 15px;
  color: var(--mute);
  font-style: italic;
  quotes: '“' '”';
}
.pain .arrow { color: var(--dim); text-align: center; font-size: 18px; }
.pain strong { font-size: 15px; font-weight: 500; color: var(--text); line-height: 1.45; }

@media (max-width: 680px) {
  .pain { grid-template-columns: 1fr; gap: 8px; }
  .pain .arrow { text-align: left; transform: rotate(90deg); width: 18px; }
}

/* ---------- figure, sized ---------- */

/* Portraits were rendering a metre tall because nothing capped them. */
.page figure.portrait img { max-width: 340px; margin: 0 auto; }
.page figure.wide img { max-width: 100%; }
.page figure.portrait { display: grid; justify-items: center; }
.page figure.portrait figcaption { text-align: center; max-width: 46ch; }

/* ---------- gantt ---------- */

/* Stages on one clock, so the overlap is visible. A stacked bar said they
   happen one after another, which is not what the log says. */
.gantt { margin: 30px 0; position: relative; }

.gantt-scale {
  position: relative;
  height: 18px;
  margin-left: 92px;
  border-bottom: 1px solid var(--line);
}
.gantt-scale span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font: 400 10.5px/1 var(--mono);
  color: var(--dim);
}
.gantt-scale span:first-child { transform: none; }

.grow { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 0; }
.glabel { font-size: 13px; color: var(--mute); padding-right: 12px; }
.gtrack {
  position: relative;
  height: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.gbar {
  position: absolute;
  top: 5px;
  height: 20px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 0 7px;
  min-width: 14px;
  transform-origin: left center;
}
.gbar b {
  font: 500 10.5px/1 var(--mono);
  color: var(--ink);
  opacity: .85;
  white-space: nowrap;
}
.gbar.is-a { background: #4a6f8f; }
.gbar.is-b { background: #6ba5e7; }
.gbar.is-c { background: #a9c9e8; }
/* Montage is the one that overlaps; it reads as a different layer on purpose. */
.gbar.is-d { background: repeating-linear-gradient(135deg, #7fb0e0 0 6px, #6a9ccd 6px 12px); }

.js [data-reveal] .gbar { transform: scaleX(0); }
.js [data-reveal].in .gbar { transform: scaleX(1); transition: transform .7s cubic-bezier(.2,.7,.3,1); }
.js [data-reveal].in .grow:nth-child(3) .gbar { transition-delay: .06s }
.js [data-reveal].in .grow:nth-child(4) .gbar { transition-delay: .12s }
.js [data-reveal].in .grow:nth-child(5) .gbar { transition-delay: .18s }
.js [data-reveal].in .grow:nth-child(6) .gbar { transition-delay: .24s }
.js [data-reveal].in .grow:nth-child(7) .gbar { transition-delay: .30s }
.js [data-reveal].in .grow:nth-child(8) .gbar { transition-delay: .36s }

.gnote {
  margin: 14px 0 0 !important;
  font-size: 13px !important;
  color: var(--mute);
  max-width: 62ch;
}

@media (max-width: 620px) {
  .gantt-scale { margin-left: 68px; }
  .grow { grid-template-columns: 68px 1fr; }
  .glabel { font-size: 12px; }
  .gbar b { display: none; }
}

/* ---------- one account ---------- */

.acct { margin: 30px 0; }
.acct-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 0 4px 0;
  border-bottom: 1px solid var(--line);
}
.acol {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.acol em {
  font: 500 12px/1 var(--mono);
  font-style: normal;
  color: var(--mute);
}
.acol b {
  width: 100%;
  max-width: 74px;
  border-radius: 7px 7px 0 0;
  background: var(--accent);
  transform-origin: bottom center;
}
/* The months the machine wrote most of them, told apart without a legend
   doing the work alone. */
.acol.is-machine b {
  background: repeating-linear-gradient(135deg, #a9c9e8 0 7px, #8fb6dd 7px 14px);
}
.acol span {
  font-size: 12px;
  color: var(--dim);
  padding-top: 8px;
}

.js [data-reveal] .acol b { transform: scaleY(0); }
.js [data-reveal].in .acol b { transform: scaleY(1); transition: transform .7s cubic-bezier(.2,.7,.3,1); }
.js [data-reveal].in .acol:nth-child(2) b { transition-delay: .08s }
.js [data-reveal].in .acol:nth-child(3) b { transition-delay: .16s }
.js [data-reveal].in .acol:nth-child(4) b { transition-delay: .24s }
.js [data-reveal].in .acol:nth-child(5) b { transition-delay: .32s }

/* ---------- comparison table ---------- */

.compare { margin: 26px 0; overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 11px 12px; text-align: right; white-space: nowrap; }
.compare thead th {
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
}
.compare thead th:first-child,
.compare tbody th { text-align: left; }
.compare tbody th { font-weight: 500; color: var(--text); }
.compare tbody td { color: var(--mute); font-variant-numeric: tabular-nums; }
.compare tbody tr:first-child th,
.compare tbody tr:first-child td { border-bottom: 1px solid rgba(255,255,255,.05); }

/* ---------- skip link ---------- */

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: top .18s;
}
.skip:focus { top: 12px; }

/* ---------- mobile menu ---------- */

/* .sitenav is hidden below 900px, and until now nothing replaced it — the
   other five pages were reachable only by scrolling to the footer. */
.burger {
  display: none;
  appearance: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform .22s, opacity .22s;
}
.burger[aria-expanded='true'] span:first-child { transform: translateY(3.2px) rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { transform: translateY(-3.2px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: grid; }

  .sitenav {
    display: none;
    position: absolute;
    top: 100%;
    left: var(--edge);
    right: var(--edge);
    z-index: 40;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--cell-2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  }
  .sitenav.is-open { display: flex; }
  .sitenav a {
    padding: 13px 12px;
    border-radius: var(--r-sm, 8px);
    font-size: 15px;
    color: var(--text);
  }
  .sitenav a:hover { background: var(--cell); }

  header { position: relative; }
  /* The single call to action stays; the menu takes the room the links had. */
  header .cta { margin-left: 8px; }
}

/* ---------- the run, animated ---------- */

/* One pass is 12s. Every stage reads its own slice of that timeline from its
   --i, so the sequence is described once rather than six times.

   The resting state — no .js, motion turned off, or the demo paused — is the
   finished run: bars full, counters at their number. Animation only replays
   what has already happened. */
.rundemo {
  margin: 30px 0;
  padding: 20px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--cell-2), var(--cell));
}

.rd-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.rd-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.rd-typed {
  flex: 1;
  min-width: 0;
  font: 400 13.5px/1 var(--mono);
  color: var(--mute);
  overflow: hidden;
  white-space: nowrap;
}
.rd-typed i { font-style: normal; }
.rd-toggle {
  appearance: none;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: none;
  color: var(--mute);
  font: inherit;
  font-size: 12px;
  padding: 5px 12px;
  cursor: pointer;
  flex: none;
}
.rd-toggle:hover { color: var(--text); border-color: var(--text-3, var(--mute)); }

.rd-stages { list-style: none; margin: 0; padding: 16px 0 0; display: grid; gap: 12px; }
.rd-stage {
  display: grid;
  grid-template-columns: 88px 1fr 34px;
  grid-template-areas: 'name track count' 'name detail detail';
  align-items: center;
  gap: 3px 12px;
}
.rd-name { grid-area: name; font-size: 14px; color: var(--text); }
.rd-track {
  grid-area: track;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .06);
  overflow: hidden;
}
.rd-fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-d), var(--accent));
  transform-origin: left center;
}
.rd-count {
  grid-area: count;
  text-align: right;
  font: 500 13px/1 var(--mono);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.rd-detail {
  grid-area: detail;
  font-size: 12px;
  color: var(--dim);
}

.rd-slots {
  display: flex;
  gap: 4px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.rd-slots i {
  flex: 1;
  height: 22px;
  border-radius: 4px;
  background: var(--good);
  opacity: .85;
}

/* --- motion, only with scripting and only when asked for --- */

.js .rundemo.is-running .rd-fill {
  animation: rdFill 12s linear infinite;
  animation-delay: calc(var(--i) * 1.5s);
}
@keyframes rdFill {
  0%, 2% { transform: scaleX(0); }
  12% { transform: scaleX(1); }
  92%, 100% { transform: scaleX(1); }
}

.js .rundemo.is-running .rd-stage {
  animation: rdWake 12s linear infinite;
  animation-delay: calc(var(--i) * 1.5s);
}
@keyframes rdWake {
  0%, 2% { opacity: .38; }
  10%, 92% { opacity: 1; }
  100% { opacity: .38; }
}

.js .rundemo.is-running .rd-slots i {
  animation: rdSlot 12s linear infinite;
  /* The queue fills last, one slot after another. */
  animation-delay: calc(9s + var(--s) * 0.11s);
}
@keyframes rdSlot {
  0%, 1% { transform: scaleY(.12); opacity: .25; }
  6%, 24% { transform: scaleY(1); opacity: .85; }
  100% { transform: scaleY(1); opacity: .85; }
}
.rd-slots i { transform-origin: bottom center; }

.js .rundemo.is-running .rd-typed i {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  border-right: 2px solid var(--accent);
  animation: rdType 12s steps(28, end) infinite;
}
@keyframes rdType {
  0% { width: 0; }
  10%, 100% { width: 27ch; }
}

@media (prefers-reduced-motion: reduce) {
  .js .rundemo.is-running .rd-fill,
  .js .rundemo.is-running .rd-stage,
  .js .rundemo.is-running .rd-slots i,
  .js .rundemo.is-running .rd-typed i { animation: none; }
}

@media (max-width: 560px) {
  .rd-stage { grid-template-columns: 74px 1fr 30px; }
  .rd-name { font-size: 13px; }
}

/* ---------- the distribution ---------- */

/* Three bands, each as wide as its share of all views. The top band running
   most of the width is the point; a pie would have hidden it. */
.spread { margin: 30px 0; display: grid; gap: 14px; }

.sprow {
  display: grid;
  grid-template-columns: 132px 1fr 44px;
  grid-template-areas: 'name track val' 'name note note';
  align-items: center;
  gap: 4px 14px;
}
.spname { grid-area: name; font-size: 14px; color: var(--text); }
.spname em {
  display: block;
  font-style: normal;
  font: 400 11.5px/1.4 var(--mono);
  color: var(--dim);
  margin-top: 3px;
}
.sptrack {
  grid-area: track;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .045);
  overflow: hidden;
}
.sptrack i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent-d), var(--accent));
  transform-origin: left center;
  min-width: 3px;
}
.spval {
  grid-area: val;
  text-align: right;
  font: 500 14px/1 var(--mono);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.spnote { grid-area: note; font-size: 12px; color: var(--dim); }

.js [data-reveal] .sptrack i { transform: scaleX(0); }
.js [data-reveal].in .sptrack i {
  transform: scaleX(1);
  transition: transform .85s cubic-bezier(.2, .7, .3, 1);
}
.js [data-reveal].in .sprow:nth-child(2) .sptrack i { transition-delay: .12s }
.js [data-reveal].in .sprow:nth-child(3) .sptrack i { transition-delay: .24s }

@media (max-width: 560px) {
  .sprow { grid-template-columns: 104px 1fr 40px; }
  .spname { font-size: 13px; }
}

/* ==========================================================================
   App vignettes
   --------------------------------------------------------------------------
   The product's own screens, rebuilt here rather than screenshotted. Same
   tokens the app uses, so they cannot drift into a different-looking product,
   and they animate — a still of a pipeline says nothing a sentence did not.
   ========================================================================== */

.uishot { margin: 32px 0; }
.uishot figcaption {
  margin-top: 12px;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.5;
}

.ui {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #121315;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  font-size: 12px;
  line-height: 1.35;
  position: relative;
}

/* ---------- chrome ---------- */

.ui-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #121315;
}
.ui-mark { display: flex; align-items: center; gap: 3px; }
.ui-mark i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.ui-mark i:nth-child(2) { width: 3px; height: 3px; opacity: .8 }
.ui-mark i:nth-child(3) { width: 3px; height: 3px; opacity: .55 }
.ui-brand { font-weight: 600; font-size: 14px; letter-spacing: -.02em; color: #e9eaec; }
.ui-icons { margin-left: auto; display: flex; gap: 10px; }
.ui-icons i { width: 13px; height: 13px; border-radius: 3px; background: #2a2c30; }

.ui-body { display: grid; grid-template-columns: 150px 1fr; min-height: 300px; }
.ui-body.is-dim { filter: blur(1.5px) saturate(.7); opacity: .45; }

/* ---------- rail ---------- */

.ui-rail {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 12px 10px;
  background: #121315;
  border-right: 1px solid var(--line);
}
.ui-new {
  display: block;
  text-align: center;
  padding: 8px;
  border-radius: 9px;
  background: var(--accent);
  color: #0e1620;
  font-weight: 600;
  font-size: 11.5px;
}
.ui-search {
  display: block;
  padding: 7px 9px;
  border-radius: 7px;
  background: #212326;
  color: #7e828a;
  font-size: 11px;
  margin-bottom: 2px;
}
.ui-card {
  display: grid;
  gap: 5px;
  padding: 8px 9px;
  border-radius: 9px;
  border-left: 3px solid #4a4d53;
  background: transparent;
}
.ui-card.is-on { background: #212326; }
.ui-card.is-done { border-left-color: #5fa97e; }
.ui-card.is-running, .ui-card.is-queued { border-left-color: #d3a24a; }
.ui-card b {
  font-size: 11.5px;
  font-weight: 600;
  color: #e9eaec;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ui-card em { font-style: normal; font-size: 10.5px; color: #7e828a; }
.ui-pips { display: flex; gap: 3px; }
.ui-pips i { width: 5px; height: 5px; border-radius: 50%; background: #4a4d53; }
.ui-pips i.is-done { background: #5fa97e; }
.ui-pips i.is-queued { background: #d3a24a; }

/* ---------- main ---------- */

.ui-main { display: grid; align-content: start; gap: 8px; padding: 12px 14px 16px; background: #191a1c; }
.ui-head { display: flex; align-items: center; gap: 10px; }
.ui-head b { font-size: 13px; font-weight: 600; color: #e9eaec; }
.ui-chip {
  margin-left: auto;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #a8abb2;
  font-size: 10.5px;
  font-style: normal;
}
.ui-tabs { display: flex; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ui-tabs i {
  font-style: normal;
  font-size: 11px;
  color: #7e828a;
  position: relative;
  padding-bottom: 7px;
}
.ui-tabs i::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #4a4d53;
}
.ui-tabs i.is-done::after { background: #5fa97e; }
.ui-tabs i.is-running::after, .ui-tabs i.is-queued::after { background: #d3a24a; }
.ui-tabs i.is-on { color: #e9eaec; box-shadow: inset 0 -2px 0 var(--accent); }

.ui-bar { display: block; height: 4px; border-radius: 2px; background: #2a2c30; overflow: hidden; }
.ui-bar-q { display: block; height: 100%; width: 100%; background: #d3a24a; transform-origin: left; }
.ui-sub { font-size: 10.5px; color: #7e828a; }

.ui-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #212326;
  border-left: 3px solid #4a4d53;
}
.ui-row.is-queued { border-left-color: #d3a24a; }
.ui-row.is-running { border-left-color: #d3a24a; }
.ui-check {
  width: 15px; height: 15px;
  border-radius: 4px;
  background: var(--accent);
  color: #0e1620;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-style: normal;
}
.ui-num { font-size: 10px; color: #7e828a; font-style: normal; }
.ui-thumb { width: 22px; height: 28px; border-radius: 3px; background: linear-gradient(140deg, #2f3540, #1b1f26); }
.ui-text { min-width: 0; display: grid; gap: 3px; font-style: normal; }
.ui-text b {
  font-size: 11.5px;
  font-weight: 400;
  color: #e9eaec;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ui-text em { font-style: normal; font-size: 10px; color: #7e828a; }
.ui-time {
  font-size: 10.5px;
  color: var(--accent);
  background: rgba(107, 165, 231, .14);
  padding: 4px 6px;
  border-radius: 5px;
  font-style: normal;
}
.ui-more { font-size: 10.5px; color: #5f636b; padding-left: 4px; }

/* Montage step dots. */
.ui-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.ui-steps i {
  font-style: normal;
  font-size: 9.5px;
  color: #5f636b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ui-steps i::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #4a4d53;
}
.ui-steps i.is-done::before { background: #5fa97e; }
.ui-steps i.is-done { color: #a8abb2; }
.ui-steps i.is-running::before { background: #d3a24a; }
.ui-steps i.is-running { color: #d3a24a; }

/* Avatars grid. */
.ui-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui-av {
  display: grid;
  gap: 6px;
  padding: 7px;
  border-radius: 9px;
  background: #212326;
  border-left: 3px solid #4a4d53;
}
.ui-av.is-done { border-left-color: #5fa97e; }
.ui-av.is-running { border-left-color: #d3a24a; }
.ui-frame {
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  background: linear-gradient(140deg, #343b46, #191d24);
  position: relative;
}
.ui-frame::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  transform: translate(-40%, -50%);
  border-left: 8px solid rgba(255, 255, 255, .5);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.ui-avmeta { display: grid; gap: 2px; font-style: normal; }
.ui-avmeta b { font-size: 10px; color: #7e828a; font-weight: 500; }
.ui-avmeta em { font-style: normal; font-size: 10px; color: #a8abb2; }

/* The numbers window. */
.ui-overlay {
  position: absolute;
  inset: 44px 18px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #191a1c;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px 14px;
  overflow: hidden;
}
.ui-ohead { display: flex; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.ui-ohead b { font-size: 12.5px; font-weight: 600; color: #e9eaec; }
.ui-ohead i { margin-left: auto; color: #7e828a; font-style: normal; }
.ui-filters { display: flex; gap: 6px; }
.ui-filters i {
  font-style: normal;
  font-size: 10px;
  color: #a8abb2;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  background: #212326;
}
.ui-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ui-tile { display: grid; gap: 3px; padding: 8px 9px; border-radius: 8px; background: #212326; }
.ui-tile em { font-style: normal; font-size: 9.5px; color: #7e828a; }
.ui-tile b { font-size: 15px; font-weight: 600; color: #e9eaec; }
.ui-srow {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 5px 6px;
  border-radius: 7px;
}
.ui-srow b {
  font-size: 11px;
  font-weight: 400;
  color: #e9eaec;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ui-srow em { font-style: normal; font-size: 11px; color: #a8abb2; font-family: var(--mono); }

@media (max-width: 620px) {
  .ui-body { grid-template-columns: 1fr; }
  .ui-rail { display: none; }
  .ui-grid { grid-template-columns: repeat(2, 1fr); }
  .ui-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- motion ---------- */

/* Each piece arrives off its own index, so a screen assembles the way the real
   one does rather than appearing all at once. Resting state is assembled. */
.js [data-reveal].uishot .ui-card,
.js [data-reveal].uishot .ui-row,
.js [data-reveal].uishot .ui-av,
.js [data-reveal].uishot .ui-tile,
.js [data-reveal].uishot .ui-srow {
  opacity: 0;
  transform: translateY(8px);
}
.js [data-reveal].uishot.in .ui-card,
.js [data-reveal].uishot.in .ui-row,
.js [data-reveal].uishot.in .ui-av,
.js [data-reveal].uishot.in .ui-tile,
.js [data-reveal].uishot.in .ui-srow {
  opacity: 1;
  transform: none;
  transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .3, 1);
  transition-delay: calc(0.18s + var(--r, var(--c, 0)) * 0.08s);
}

.js [data-reveal].uishot .ui-bar-q { transform: scaleX(0); }
.js [data-reveal].uishot.in .ui-bar-q {
  transform: scaleX(1);
  transition: transform 1s cubic-bezier(.2, .7, .3, 1) .3s;
}

/* The montage dots go green one after another, which is the thing the screen
   is actually for. */
.js [data-reveal].uishot.in .ui-steps i.is-done::before {
  animation: uiDot .5s ease both;
  animation-delay: calc(0.5s + var(--r, 0) * 0.12s + var(--k, 0) * 0.09s);
}
@keyframes uiDot {
  from { background: #4a4d53; transform: scale(.6); }
  to { background: #5fa97e; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal].uishot .ui-card,
  .js [data-reveal].uishot .ui-row,
  .js [data-reveal].uishot .ui-av,
  .js [data-reveal].uishot .ui-tile,
  .js [data-reveal].uishot .ui-srow { opacity: 1; transform: none; }
  .js [data-reveal].uishot .ui-bar-q { transform: scaleX(1); }
  .js [data-reveal].uishot.in .ui-steps i.is-done::before { animation: none; }
}
