﻿/* ==========================================================================
   d1.css — Concept D1 · phone first, then the spiral winds in behind it
   Sits on top of site.css (tokens, buttons, .phone / .app-* widget).
   Nothing in here ships to the real page.

   one orb, one feature, twelve times: the coil carries twelve slots in the
   order the sections are presented, and each orb that reaches the front is
   already gone — the empty slot is what the screen change fills.
   ========================================================================== */

/* --------------------------------------------------------------- shell -- */
.lab-nav {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 100;
}
.lab-nav__in {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 14px 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: var(--shadow-sm);
}
.lab-tag {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 12px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}
.lab-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.lab-switch a {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 7px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background-color 180ms var(--ease);
}
.lab-switch a:hover { color: var(--ink); }
.lab-switch a.is-on {
  color: var(--ink);
  border-color: var(--line);
  background: var(--ghost-bg);
}
[data-theme="dark"] .lab-switch a.is-on { color: var(--lime); border-color: rgba(var(--ar), 0.32); }
.lab-switch a.is-soon { color: var(--muted); opacity: 0.42; pointer-events: none; }

/* ------------------------------------------------------------- curtain -- */
/* the first paint is the one frame nobody should ever see: the glass is still
   at its natural width, the coil has not been drawn, and the rig is sitting
   dead centre. this sheet covers that beat — it is already painted by the time
   the canvas exists — and it lifts on the first composed frame, so the arrival
   animation plays out from behind it instead of from a frozen screenshot.
   it is a plain solid of the page's own paper, so it costs no colour. */
.d1-splash {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  background: var(--paper);
  opacity: 1;
  transition: opacity 780ms var(--ease) 40ms, visibility 0s linear 860ms;
}
.d1-splash.is-done { opacity: 0; visibility: hidden; }
/* a soft bloom behind the mark, so the sheet is not a flat rectangle while it
   is up — the same lime the coil is made of, at a fraction of its weight */
.d1-splash::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(520px, 72vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--ar), 0.10), transparent 64%);
  pointer-events: none;
}
[data-theme="light"] .d1-splash::before {
  background: radial-gradient(circle, rgba(var(--ar), 0.09), transparent 64%);
}
.d1-splash__in {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
}
.d1-splash__mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--ghost-bg);
}
.d1-splash__line {
  position: relative;
  display: block;
  width: 132px;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line-soft);
}
.d1-splash__line i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  transform-origin: left center;
  animation: d1SplashRun 1.15s var(--ease) infinite;
}
@keyframes d1SplashRun {
  0%   { transform: translateX(-100%); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
.no-js .d1-splash { display: none; }

@media (prefers-reduced-motion: reduce) {
  .d1-splash { transition: none; }
  .d1-splash__line i { animation: none; }
}

/* --------------------------------------------------------- scrub + pin -- */
/* the page never translates — only this spacer moves under the pin */
.d1-scrub {
  position: relative;
  /* the scrub is two travels long. the acts keep the 1300vh they were tuned on
     and the release gets its own viewport behind them — the pin stays welded for
     it, the coil lifts through it, and the band under the hero climbs over the
     top of it. that is what makes the handoff a map of the scroll instead of a
     race against a timer: there is no gap left to cross, so there is nothing for
     the page to run on its own. js measures this, it does not copy it */
  --d1-rel: 100vh;
  height: calc(1300vh + var(--d1-rel));
}
.d1-pin {
  /* the only number that decides where the device sits inside the stage. the
     coil keeps its own centre — this pushes the glass alone, and everything
     that is welded to the glass (its glow, the ring it throws) reads the same
     value, so the three never drift apart */
  --phdy: clamp(20px, 4vh, 44px);
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  /* a pin taller than the window is a pin whose last row is under the fold, so
     the floor is capped by the frame itself: on a short laptop the pin gives up
     its own minimum rather than pushing the offer off the bottom edge */
  min-height: min(660px, 100svh);
  display: flex;
  flex-direction: column;
  /* the section badge no longer takes a row of its own, so the strip it used to
     occupy is given back to the top of the frame — the art gets it. the bottom
     strip is the counter/rail row that used to sit under the copy; with that
     gone the foot is the last thing in the pin, so its old reserve goes back
     into the stage and the whole rig can sit lower without eating the band */
  /* the bottom reserve is larger than the strip that used to live there: the
     always-on copy is the last thing in the pin and it must clear both the
     device's glow and the browser's own bottom edge, so the pin keeps a wider
     sill under it than the old rail row needed */
  padding: 96px 0 clamp(96px, 12vh, 132px);
  overflow: hidden;
  /* the cut is a camera move, not a fade. through the last stretch of the scrub
     the whole pinned frame is pulled back on its own axis — the hero recedes a
     tenth of its size toward the point just above its centre while the band
     underneath rises to meet the eye — and the coil, which is the deepest thing
     on the stage, goes soft as it goes (see .d1-canvas). it is scrubbed, not
     triggered, so the same move plays backwards on the way up: scroll down and
     the room draws away from you, scroll up and it comes back into focus.
     a scale of a single plane is the same picture a dolly gives, without
     handing the browser a 3d context for text that has not left yet */
  transform-origin: 50% 46%;
  transform: translateY(calc(var(--out, 0) * 26px))
             scale(calc(1 - var(--out, 0) * 0.16));
}

/* ---------------------------------------------------------------- head -- */
.d1-head {
  position: relative;
  z-index: 6;
  text-align: center;
  /* the fold carries the whole head into the right column. it is scrubbed, so
     there is no transition here — the value is written every frame. the column
     is one block: sections tab, feature name, title, description. the copy and
     the two buttons below the phone are deliberately not counted, so that block
     is centred in the full span from the underside of the nav to the top of
     that copy: top = 76 (site nav is 12 + 64 tall), bottom = 100vh − 157,
     hence a centre at 50vh − 40.5. the fixed part covers the chrome that never
     moves; the second term is half of the head's own height, so wherever the
     title wraps the folded column still lands on that centre instead of
     depending on a hand-measured 215 */
  transform: translateX(calc(var(--fold, 0) * 22vw))
             translateY(calc(var(--fold, 0) * (50vh - 120.5px)))
             translateY(calc(var(--fold, 0) * -50%))
             translateY(calc((1 - var(--in, 1)) * 20px))
             translateY(calc(var(--out, 0) * -26px))
             scale(calc(1 - var(--out, 0) * 0.03));
  /* the arrival term is the same number the stage and the rail read, so the
     frame composes itself in one move instead of three that do not know about
     each other. unset (no js) falls back to 1 and the head is simply there.
     --out is the exit: the last stretch of the scrub lifts the whole frame a
     shade and lets it dim, so the section underneath is arrived at through a
     dissolve instead of a cut */
  opacity: calc(var(--in, 1) * (1 - var(--out, 0) * 0.86));
  will-change: transform, opacity;
}
.d1-kicker {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
  min-height: 1em;
}

/* -------------------------------------------------- right column -- */
/* the fold opens a text column beside the glass, and it reads in four levels:
   the section tab, the feature name, then the title, then the description.
   the top two are stacked above the head and are out of flow, gated on --rev —
   which is only written once the fold has carried the head into the column — so
   at rest the frame is still the device with its title over it, and neither
   level ever takes a pixel of height away from the stage. */
.d1-coltop {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
  pointer-events: none;
  opacity: var(--rev, 0);
  transform: translateY(calc((1 - var(--rev, 0)) * -10px));
}
.d1-secbar {
  display: flex;
  justify-content: center;
}
/* the feature name: the largest of the three labels, smaller than the title it
   sits over, so the column climbs from the tab up to the headline */
.d1-fname {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.65vw, 1.45rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.d1-secbar__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  backdrop-filter: blur(14px) saturate(1.35);
  box-shadow: 0 0 0 5px rgba(var(--ar), 0.05), var(--shadow-sm);
}
[data-theme="light"] .d1-secbar__pill {
  box-shadow: 0 0 0 5px rgba(var(--ar), 0.07), var(--shadow-sm);
}
.d1-secbar__num {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  color: var(--mint);
  padding: 4px 8px 3px;
  border-radius: 999px;
  background: rgba(var(--ar), 0.13);
}
[data-theme="dark"] .d1-secbar__num {
  color: var(--lime);
  background: rgba(var(--ar), 0.15);
}
.d1-secbar__name {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.d1-secbar__of {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.d1-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  /* it is the rest-state line, not one of the column's four levels, so it gives
     the column over rather than sitting in the middle of it */
  opacity: calc(1 - var(--rev, 0));
}
.d1-eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(var(--ar), 0.16);
}
[data-theme="dark"] .d1-eyebrow i { background: var(--lime); box-shadow: 0 0 0 3px rgba(var(--ar), 0.16); }

/* both heading layers live in one reserved box, so nothing under them moves */
.d1-hbox {
  position: relative;
  height: 1.9em;
  /* the landing line is the first thing anyone reads, so it is allowed to be
     the biggest thing on the page. the two layers still share one reserved box,
     which is why the height stays in em and nothing under them can move */
  font-size: clamp(2rem, 4vw, 3.8rem);
  margin: 14px auto 0;
  max-width: 26ch;
}
.d1-h {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1em;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
  transition: opacity 380ms var(--ease), transform 380ms var(--ease);
}
.js .d1-h { opacity: 0; transform: translateY(12px); }
.js .d1-h.is-on { opacity: 1; transform: none; }

/* the fold's second read: one short line per orb, sitting under the title in
   the right column. it is out of flow (see .d1-desc below) so it can arrive
   without the stage losing a single pixel of height. */
.d1-desc {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: min(56ch, 36vw);
  display: grid;
  opacity: var(--rev, 0);
  transform: translateY(calc((1 - var(--rev, 0)) * 12px));
  pointer-events: none;
}
.d1-d {
  grid-area: 1 / 1;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.66;
  color: var(--muted);
  transition: opacity 380ms var(--ease), transform 380ms var(--ease);
}
.js .d1-d { opacity: 0; transform: translateY(8px); }
.js .d1-d.is-on { opacity: 1; transform: none; }

/* the highlighter, laid softer here than in the titles: body copy at this size
   cannot carry the full lime bar, so the band drops to a wash under the word
   and the word itself keeps the ink */
.d1-d .mark {
  color: var(--ink);
  background: linear-gradient(180deg,
    transparent 68%,
    rgba(var(--ar), 0.26) 68%,
    rgba(var(--ar), 0.26) 94%,
    transparent 94%);
  padding: 0 0.03em;
}
[data-theme="light"] .d1-d .mark {
  background: linear-gradient(180deg,
    transparent 68%,
    rgba(var(--ar), 0.18) 68%,
    rgba(var(--ar), 0.18) 94%,
    transparent 94%);
}

/* ----------------------------------------------------------------- art -- */
.d1-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  isolation: isolate;
  /* the fold turns the device on its own vertical axis, so the stage lends it
     a vanishing point. nothing else in here is rotated in z, so this costs
     the rest of the art nothing */
  perspective: 1500px;
  perspective-origin: 50% 50%;
}
.d1-canvas {
  position: absolute;
  /* the fold grows the coil out of the glass at both ends — its crown breaks
     the bezel's top corner and its foot runs on under the always-on copy — so
     the canvas keeps a band above and below the stage for that to be drawn in.
     the buffer is what clips, and a turn severed at the edge is the one thing
     that makes the spiral look broken rather than cut, so both bands are
     generous; the top one stops short of the nav, which keeps its own layer
     over it. js scales the world back by the same ratio (WORLD_FIT), so the
     room costs the composition nothing.
     both bands are the same size, and that is the point: the camera looks at
     the world's origin, so the canvas's own centre is where the deep field
     lives. an uneven pair would park the rings above the glass, and the whole
     assembly is supposed to read as one centred mass */
  inset: -20% -6%;
  width: 112%;
  /* a canvas is a replaced element with an intrinsic 2:1 box, so it will not
     stretch between the two insets — the height has to be spoken for. 140% is
     the whole of it: the stage, plus 20% of it above and 20% below */
  height: 140%;
  z-index: 1;
  pointer-events: none;
  display: block;
  /* the coil is the deepest thing on the stage, so it is what goes out of focus
     first when the camera draws back: a blur that only exists inside the last
     four percent of the scrub, and reaches full value exactly when the pinned
     frame has finished receding */
  filter: blur(calc(var(--out, 0) * 7px));
}
/* D1's coil runs the full height of the glass, so the light behind the device
   is a tall column, not a pool under its base — it is the spiral's own glow
   leaking around the phone's silhouette. */
.d1-glow {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: min(560px, 74%);
  height: 84%;
  /* it follows the slab left and takes its growth, so the light behind the
     device keeps the same relationship to the silhouette it is leaking around */
  transform: translate(-50%, -50%) translateY(calc(var(--fy, 0px) + var(--idle, 0px) + var(--phdy, 0px)))
             translateX(var(--fx, 0px)) scale(var(--fg, 1));
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(var(--ar), 0.17) 0%,
    rgba(var(--ar), 0.06) 46%,
    transparent 72%);
  filter: blur(34px);
}
[data-theme="light"] .d1-glow {
  background: radial-gradient(ellipse at 50% 50%,
    rgba(var(--ar), 0.11) 0%,
    rgba(var(--ar), 0.04) 46%,
    transparent 72%);
  filter: blur(36px);
}

/* the fold layer. it owns where the device sits and the single turn it makes,
   while the phone inside keeps its own scale and hover nudge — so the scrub can
   drive position and spin without ever fighting the fit. --fg is the same
   growth factor the webgl coil takes, so the glass and the spiral enlarge as
   one object during the fold. */
.d1-flip {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 300px;
  transform-origin: center center;
  transform-style: preserve-3d;
  /* --fy gives back the downward half of the growth in page pixels, so the
     glass opens upward instead of pushing its bezel onto the foot copy */
  transform: translate(-50%, -50%) translateY(calc(var(--fy, 0px) + var(--idle, 0px) + var(--phdy, 0px)))
             translateX(var(--fx, 0px))
             rotateY(var(--flip, 0deg)) scale(var(--fg, 1));
}
.d1-flip > .phone {
  position: relative;
  width: 100%;
  transform-origin: center center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotate(1.4deg)
             rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
             scale(var(--ph, 1));
  transition: transform 240ms var(--ease);
}
.d1-stage:hover .d1-flip > .phone {
  transform: translateY(-6px) rotate(0.6deg)
             rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
             scale(var(--ph, 1));
}

/* the back of the slab — it only exists so the turn has a second face to show
   instead of going see-through at the halfway point */
.d1-back {
  position: absolute;
  inset: 0;
  border-radius: 46px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* a hair behind the glass, so the two faces never fight for the same plane.
     the scale matters: the back of the slab is a sibling of the phone, not a
     child, so it has to wear the same --ph fit or it would turn as something
     noticeably bigger than the device it is supposed to be the back of */
  transform-origin: center center;
  transform: scale(var(--ph, 1)) rotateY(180deg) translateZ(1px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--sf) 0%, var(--bg) 76%);
}
.d1-back::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 38px;
  border: 1px solid rgba(var(--ar), 0.16);
}
.d1-back i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(var(--ar), 0.22);
  box-shadow: 0 0 60px -16px rgba(var(--ar), 0.55) inset;
}
.d1-back b {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.16em;
  color: var(--ac3);
  opacity: 0.72;
}
[data-theme="light"] .d1-back {
  background: linear-gradient(160deg, var(--sf) 0%, var(--sf2) 78%);
}
[data-theme="light"] .d1-back::before { border-color: rgba(var(--ar), 0.22); }
[data-theme="light"] .d1-back i {
  border-color: rgba(var(--ar), 0.28);
  box-shadow: 0 0 60px -16px rgba(var(--ar), 0.5) inset;
}
[data-theme="light"] .d1-back b { color: var(--ac2); opacity: 0.6; }

[data-theme="dark"] .d1-flip > .phone,
[data-theme="dark"] .d1-back {
  box-shadow: 0 46px 90px -40px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(var(--ar), 0.2),
              0 0 86px -22px rgba(var(--ar), 0.4),
              inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
[data-theme="light"] .d1-flip > .phone,
[data-theme="light"] .d1-back {
  box-shadow: 0 46px 80px -40px rgba(var(--valley-ink), 0.4),
              0 0 0 1px rgba(var(--ar), 0.2),
              0 0 66px -18px rgba(var(--ar), 0.32),
              inset 0 0 0 1px rgba(var(--valley-ink), 0.1);
}

/* a band of light dragged across the glass, tying the coil to the device -- */
.d1-spill {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 46px;
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(105deg,
    transparent 34%, rgba(var(--ar), 0.3) 50%, transparent 66%);
  background-size: 260% 100%;
  background-repeat: no-repeat;
  animation: d1Sweep 8.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
[data-theme="light"] .d1-spill {
  mix-blend-mode: multiply;
  background: linear-gradient(105deg,
    transparent 34%, rgba(var(--ar), 0.15) 50%, transparent 66%);
  background-size: 260% 100%;
}
@keyframes d1Sweep {
  0%, 44% { background-position: 160% 0; }
  82%, 100% { background-position: -60% 0; }
}

.d1-note {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.53rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
  /* they annotate the solo device, so they leave as soon as the fold begins —
     by a quarter of the way in the slab is already turning and they are gone */
  opacity: clamp(0, calc(1 - var(--fold, 0) * 4), 1);
}
.d1-note i { width: 22px; height: 1px; background: currentColor; opacity: 0.45; }
.d1-note b { font-weight: 500; color: var(--mint); }
[data-theme="dark"] .d1-note b { color: var(--lime); }
.d1-note--l { left: 2%; top: 20%; }
.d1-note--r { right: 2%; top: 78%; flex-direction: row-reverse; }

/* --------------------------------------------------------- the screens -- */
/* all twelve screens share one grid cell, so the phone height never jumps
   between beats — the tallest screen decides, once. */
.d1-screens {
  display: grid;
  margin-top: 10px;
}
.d1-screen {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
.js .d1-screen { opacity: 0; transform: translateY(9px); pointer-events: none; }
.js .d1-screen.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* screen 2 — the seven tools */
.d1-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.d1-tool {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 7px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.545rem;
  line-height: 1.1;
  color: var(--tx);
}
.d1-tool:last-child { grid-column: 1 / -1; }
.d1-tool i {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 0.42rem;
  font-style: normal;
  color: var(--lime);
  background: rgba(var(--ar), 0.14);
  border: 1px solid rgba(var(--ar), 0.36);
}

/* screen 3 — the live paper */
.d1-clock {
  font-family: var(--font-display);
  font-size: 1.72rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 6px 0 8px;
  font-variant-numeric: tabular-nums;
  color: var(--lime);
}
.d1-vs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.d1-vs > span {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(var(--tx-rgb), 0.62);
}
.d1-vs b {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: -0.03em;
  color: var(--tx);
}
.d1-vs em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.46rem;
  letter-spacing: 0.1em;
  color: rgba(var(--tx-rgb), 0.4);
}

/* screen 4 — the planner */
.d1-week {
  display: flex;
  gap: 4px;
  margin: 8px 0 2px;
}
.d1-week i {
  flex: 1;
  height: 26px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.4rem;
  letter-spacing: 0.06em;
  color: var(--tx);
  background: rgba(var(--ar), 0.12);
  border: 1px solid rgba(var(--ar), 0.28);
}
.d1-week i.is-rev { background: rgba(var(--ar), 0.1); border-color: rgba(var(--ar), 0.26); }
.d1-week i.is-buf {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(var(--tx-rgb), 0.5);
}
.d1-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.52rem;
  letter-spacing: 0.01em;
  color: rgba(var(--tx-rgb), 0.78);
}
.d1-row span { flex: none; }
.d1-row .app-bar { flex: 1; margin: 0; }
.d1-row b {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.44rem;
  font-weight: 400;
  color: rgba(var(--tx-rgb), 0.45);
}

/* light theme — the device turns daylight */
[data-theme="light"] .d1-tool {
  background: #ffffff;
  border-color: rgba(var(--valley-ink), 0.08);
  color: var(--ink);
}
[data-theme="light"] .d1-tool i {
  color: var(--mint);
  background: rgba(var(--ar), 0.1);
  border-color: rgba(var(--ar), 0.3);
}
[data-theme="light"] .d1-clock { color: var(--mint); }
[data-theme="light"] .d1-vs > span {
  background: #ffffff;
  border-color: rgba(var(--valley-ink), 0.08);
  color: var(--muted);
}
[data-theme="light"] .d1-vs b { color: var(--ink); }
[data-theme="light"] .d1-vs em { color: var(--muted); }
[data-theme="light"] .d1-week i {
  color: var(--mint);
  background: rgba(var(--ar), 0.08);
  border-color: rgba(var(--ar), 0.24);
}
[data-theme="light"] .d1-week i.is-buf {
  background: rgba(var(--valley-ink), 0.04);
  border-color: rgba(var(--valley-ink), 0.1);
  color: var(--muted);
}
[data-theme="light"] .d1-row { color: var(--ink-2); }
[data-theme="light"] .d1-row b { color: var(--muted); }

/* ---------------------------------------------------------------- foot -- */
.d1-foot {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}
/* the fade band. the coil and the device's own foot run on past the stage, and
   instead of stopping dead on the copy line they dissolve into the paper here.
   it is painted inside the foot's stacking context (z-index -1), so it veils the
   canvas and the glass but never the copy, the buttons or the rail. */
.d1-foot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 230px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg,
    transparent 0%,
    transparent 10%,
    var(--paper) 88%);
}
.d1-sbox {
  position: relative;
  flex: 1 1 420px;
  width: 100%;
  max-width: 46ch;
  display: grid;
}
.d1-s {
  grid-area: 1 / 1;
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--ink-2);
  transition: opacity 380ms var(--ease), transform 380ms var(--ease);
}
.js .d1-s { opacity: 0; transform: translateY(10px); }
.js .d1-s.is-on { opacity: 1; transform: none; }

.d1-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: none;
}

/* ---------------------------------------------------------------- band -- */
.d1-band {
  padding: 40px 0 20px;
  /* the handoff is a wipe, and a wipe needs two layers that can actually
     overlap. the pin owns a transform, which parks it above ordinary content in
     the paint order, so the band has to be lifted over it deliberately — and it
     has to be paper, because the hero is still drawn underneath. the paper is
     the body's own colour, so nothing about the palette moves */
  position: relative;
  z-index: 1;
  background: var(--paper);
}
/* the edge of a wipe is the one thing that gives it away. this is the soft
   half: the band's own paper fading up into the hero over the top of it, so the
   seam arrives as a dissolve instead of as a ruler laid across the stage */
.d1-band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14vh;
  height: 14vh;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--paper) 96%);
}
.d1-band__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 44px;
  align-items: start;
}
/* the rail is placed by hand rather than by source order: it takes the head of
   the right column and the three seasons move down one row under it, while the
   copy on the left spans both rows and keeps its position exactly */
@media (min-width: 981px) {
  .d1-band__grid { row-gap: 0; }
  .d1-band__grid > div:first-child { grid-column: 1; grid-row: 1 / span 2; }
  .d1-year { grid-column: 2; grid-row: 1; }
  .d1-phases { grid-column: 2; grid-row: 2; }
}
.d1-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 10px 0 16px;
}
.d1-band p {
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.72;
  max-width: 48ch;
}
.d1-phases { list-style: none; margin: 0; padding: 0; counter-reset: phase; }
.d1-phases li {
  position: relative;
  padding: 13px 0 15px 34px;
  border-bottom: 1px solid var(--line-soft);
}
.d1-phases li:last-child { padding-bottom: 0; border-bottom: 0; }
.d1-phases li::before {
  counter-increment: phase;
  content: "0" counter(phase);
  position: absolute;
  left: 0;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.d1-phases__when {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.d1-phases__name {
  display: block;
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.d1-phases p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 46ch;
}
.d1-phases em {
  display: inline-block;
  margin-top: 8px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  color: var(--mint);
}
[data-theme="dark"] .d1-phases em { color: var(--lime); }

/* ------------------------------------------------------------ year rail -- */
/* the band after the spiral is the one that explains the whole product — a
   year that changes shape three times — so it gets an object of its own instead
   of another paragraph. this is the year as a measured rail: twelve month
   ticks, three season notches, a fill that walks April to March, and a bead
   riding the head of it. it is the same current the coil carries, laid flat.
   colour and transform only; nothing here moves a line of type */
.d1-year {
  position: relative;
  height: 30px;
  margin: 0 0 26px;
  /* the rail is decoration for the list under it, so it is drawn with the same
     soft rule the list uses and takes the accent only where it is lit */
  border-bottom: 0;
}
.d1-year::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
}
.d1-year::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 11px;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 8.3333%);
}
/* three notches where the seasons turn: every fourth month, taller and
   brighter than the twelve, so the rail reads as a year and not as a ruler */
.d1-year b {
  position: absolute;
  top: 5px;
  width: 2px;
  height: 17px;
  border-radius: 2px;
  background: var(--muted);
  opacity: 0.65;
}
.d1-year b:nth-of-type(1) { left: 0; }
.d1-year b:nth-of-type(2) { left: 33.3333%; }
.d1-year b:nth-of-type(3) { left: 66.6666%; }
/* the fill: a year already spent. it runs on a twelve second loop, which is
   slow enough that a reader never catches it restarting */
.d1-year span {
  position: absolute;
  left: 0;
  top: 13px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--mint), var(--lime));
  animation: d1YearFill 10.8s cubic-bezier(0.46, 0, 0.42, 1) infinite;
}
.d1-year i {
  position: absolute;
  top: 9px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(var(--ar), 0.14), 0 0 16px rgba(var(--ar), 0.55);
  animation: d1YearBead 10.8s cubic-bezier(0.46, 0, 0.42, 1) infinite;
}
@keyframes d1YearFill {
  0%        { transform: scaleX(0); }
  86%, 100% { transform: scaleX(1); }
}
@keyframes d1YearBead {
  0%        { left: 0; animation-timing-function: cubic-bezier(0.46, 0, 0.42, 1); }
  86%, 100% { left: calc(100% - 10px); }
}
[data-theme="light"] .d1-year span { background: linear-gradient(90deg, var(--mint), var(--lime)); }
[data-theme="light"] .d1-year i {
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(var(--ar), 0.12), 0 0 14px rgba(var(--ar), 0.4);
}

/* -------------------------------------------------------- season window -- */
/* the second live object in the band, and deliberately not another ring. the
   rail above counts the year; this window shows what the counting does to the
   app — a map of topics, an answer with its credit-worthy words marked, a clock.
   it turns on the same ten-and-eight second clock as the rail and the season
   numbers, so the band reads as one instrument instead of three things that
   happen to blink at each other */
.d1-season {
  position: relative;
  margin-top: 28px;
  padding: 13px 15px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(var(--ar), 0.07), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.014), transparent 70%);
  overflow: hidden;
}
/* one hairline across the head, so the window reads as an instrument face
   rather than a floating card */
.d1-season::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--ar), 0.35) 22%, transparent 78%);
}
.d1-season__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.d1-season__dots { display: flex; gap: 5px; }
.d1-season__dots i {
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  animation: d1SeasonDot 10.8s linear infinite;
  animation-delay: calc(var(--s, 0) * 3.6s);
}
.d1-season__dots i:nth-child(1) { --s: 0; }
.d1-season__dots i:nth-child(2) { --s: 1; }
.d1-season__dots i:nth-child(3) { --s: 2; }
@keyframes d1SeasonDot {
  0%          { background: var(--lime); }
  29%         { background: var(--lime); }
  33.4%, 100% { background: var(--line); }
}

/* the three states are stacked and cross-faded in place, so nothing about the
   card's box ever changes — only which face is lit */
.d1-season__body {
  position: relative;
  height: 76px;
  margin-top: 10px;
}
.d1-season__frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: d1SeasonShow 10.8s linear infinite;
  animation-delay: calc(var(--s, 0) * 3.6s);
}
.d1-season__frame:nth-child(1) { --s: 0; }
.d1-season__frame:nth-child(2) { --s: 1; }
.d1-season__frame:nth-child(3) { --s: 2; }
@keyframes d1SeasonShow {
  0%          { opacity: 0; transform: translateY(8px); }
  3%          { opacity: 1; transform: none; }
  29%         { opacity: 1; transform: none; }
  33.4%, 100% { opacity: 0; transform: translateY(-6px); }
}
.d1-season__say { flex: 1 1 auto; min-width: 0; }
.d1-season__when {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.d1-season__say b {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.d1-season__viz {
  position: relative;
  flex: none;
  width: 92px;
  height: 72px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(var(--ar), 0.035);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* april: the syllabus as a map, with the weak zones quietly marked */
.d1-season__viz--map {
  display: grid;
  grid-template-columns: repeat(4, 5px);
  gap: 9px;
  place-content: center;
}
.d1-season__viz--map i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line);
}
.d1-season__viz--map i:nth-child(6),
.d1-season__viz--map i:nth-child(7),
.d1-season__viz--map i:nth-child(11) {
  background: var(--mint);
  box-shadow: 0 0 8px rgba(var(--ar), 0.5);
}
/* july: three written lines, one of them carrying the words that earn */
.d1-season__viz--ans {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
}
.d1-season__viz--ans i {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
}
.d1-season__viz--ans i:nth-child(1) { width: 74%; }
.d1-season__viz--ans i:nth-child(2) {
  background: linear-gradient(90deg,
    var(--line) 0 32%, var(--mint) 32% 60%, var(--line) 60%);
}
.d1-season__viz--ans i:nth-child(3) { width: 86%; }
/* november: the clock, turning on the same loop as everything else */
.d1-season__viz--clock i {
  position: relative;
  width: 30px;
  height: 30px;
  border: 2px solid var(--line);
  border-radius: 50%;
}
.d1-season__viz--clock i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 11px;
  margin: -11px 0 0 -1px;
  border-radius: 2px;
  background: var(--lime);
  transform-origin: 50% 100%;
  animation: d1SeasonHand 10.8s linear infinite;
}
.d1-season__viz--clock i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--lime);
}
@keyframes d1SeasonHand { to { transform: rotate(360deg); } }

[data-theme="light"] .d1-season {
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(var(--ar), 0.06), transparent 58%);
}
[data-theme="light"] .d1-season::before {
  background: linear-gradient(90deg, transparent, rgba(var(--ar), 0.28) 22%, transparent 78%);
}
[data-theme="light"] .d1-season__viz { background: rgba(var(--ar), 0.04); }
[data-theme="light"] .d1-season__viz--map i:nth-child(6),
[data-theme="light"] .d1-season__viz--map i:nth-child(7),
[data-theme="light"] .d1-season__viz--map i:nth-child(11) {
  background: var(--mint);
  box-shadow: none;
}

.d1-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.d1-meta div {
  flex: 1 1 150px;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.d1-meta b {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  margin-top: 4px;
}
.d1-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding: 24px 0 64px;
  border-top: 1px solid var(--line-soft);
}
.d1-next span {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.d1-next a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}
.d1-next a svg { transition: transform 200ms var(--ease); }
.d1-next a:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1180px) {
  .d1-flip { width: 276px; }
}

@media (max-width: 980px) {
  .d1-scrub { height: calc(860vh + var(--d1-rel)); }
  .lab-tag { display: none; }
  .d1-pin { padding: 76px 0 88px; }
  /* no fold, so no right column and no stacked levels to put in it */
  .d1-coltop { display: none; }
  .d1-hbox { font-size: clamp(2rem, 7vw, 3rem); }
  /* there is no second column to fold into on a stacked screen, so the device
     keeps the middle and the copy keeps the space under it */
  .d1-desc { display: none; }
  .d1-foot { flex-direction: column; gap: 2px; padding: 0 20px; }
  .d1-actions { justify-content: center; flex-wrap: wrap; }
  .d1-sbox { flex: 0 1 auto; max-width: 40ch; margin: 0 auto; text-align: center; }
  .d1-s { font-size: 0.9rem; line-height: 1.58; }
  .d1-band__grid { grid-template-columns: 1fr; gap: 26px; }
  .d1-note { display: none; }
}

/* the frame the fold never touches. above the stacked break the head is lifted
   out of the flow and the stage becomes the whole band from the nav's underside
   to the top of the copy — so the spiral, the glass and the weather behind them
   are all centred in that band as one assembly, instead of the art hanging off
   the bottom of the title. the head keeps its own layer and its fold term, and
   because the stage now starts where the head does, the device's headroom is
   decided by the title's height (js caps --ph against it) */
@media (min-width: 981px) {
  .d1-pin { padding-top: 80px; }
  .d1-head {
    position: absolute;
    left: 0;
    right: 0;
    top: 80px;
  }
}

@media (max-width: 640px) {
  .lab-switch a { padding: 6px; font-size: 0.53rem; }
  .lab-switch a b { display: none; }
  .lab-nav__in { padding: 0 10px 0 14px; height: 52px; gap: 8px; }
  .brand__name { display: none; }
  /* a thumb flicks a phone a screen at a time, so the handoff is given less
     travel here than on a wheel — short enough to cross in one throw, long
     enough that the release is still a place you can stop inside */
  .d1-scrub { --d1-rel: 76vh; height: calc(720vh + var(--d1-rel)); }
  .d1-pin { min-height: 580px; padding: 68px 0 80px; }
  .d1-hbox { font-size: clamp(1.8rem, 9vw, 2.5rem); height: 1.92em; }
  .d1-kicker { font-size: 0.5rem; }
  .d1-flip { width: 300px; }
  .d1-actions .btn--lg { padding-left: 18px; padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .d1-spill { animation: none; }
  .d1-h, .d1-s, .d1-d, .d1-screen { transition: none; }
}

/* ================================================================= v2 ====
   the site build. everything below is additive: the lab rules above still
   describe the geometry, these just give the stage a pulse, a lock-on and a
   little weather behind the glass. */

/* ------------------------------------------------------------- weather -- */
/* two slow blooms drifting behind the coil. they live on the pin, under the
   canvas, so they never touch the phone or the type */
.d1-aurora {
  position: absolute;
  inset: -12% -6%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
  filter: blur(38px);
}
.d1-aurora i {
  position: absolute;
  display: block;
  border-radius: 50%;
  mix-blend-mode: screen;
}
.d1-aurora i:nth-child(1) {
  width: 46vmin; height: 46vmin;
  left: 18%; top: 8%;
  background: radial-gradient(circle, rgba(var(--ar), 0.20), transparent 66%);
  animation: d1Drift1 30s var(--ease) infinite alternate;
}
.d1-aurora i:nth-child(2) {
  width: 52vmin; height: 52vmin;
  right: 12%; bottom: 6%;
  background: radial-gradient(circle, rgba(64, 176, 255, 0.14), transparent 68%);
  animation: d1Drift2 38s var(--ease) infinite alternate;
}
.d1-aurora i:nth-child(3) {
  width: 30vmin; height: 30vmin;
  left: 44%; top: 52%;
  background: radial-gradient(circle, rgba(var(--ar), 0.16), transparent 64%);
  animation: d1Drift3 24s var(--ease) infinite alternate;
}
[data-theme="light"] .d1-aurora { opacity: 0.34; mix-blend-mode: multiply; }
[data-theme="light"] .d1-aurora i:nth-child(2) {
  background: radial-gradient(circle, rgba(52, 130, 190, 0.10), transparent 68%);
}

@keyframes d1Drift1 {
  from { transform: translate3d(-4%, -6%, 0) scale(1); }
  to   { transform: translate3d(6%, 9%, 0) scale(1.18); }
}
@keyframes d1Drift2 {
  from { transform: translate3d(5%, 4%, 0) scale(1.1); }
  to   { transform: translate3d(-7%, -8%, 0) scale(0.92); }
}
@keyframes d1Drift3 {
  from { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0.5; }
  to   { transform: translate3d(-10%, -6%, 0) scale(1.22); opacity: 0.9; }
}

/* -------------------------------------------------------------- lock-on -- */
/* the click: when a beat lands, the orb has just been swallowed by the front
   slot. the device answers for it — one ring out of the centre, one scan down
   the glass, one breath of light. it is fired from js on the beat change, so
   it lands exactly on the screen swap */
.d1-flip .phone__screen { position: relative; }

.d1-click {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  overflow: hidden;
}
.d1-click.is-fire { animation: d1ClickFlash 620ms var(--ease) both; }

.d1-click i {
  position: absolute;
  left: 50%; top: 50%;
  width: 34%; aspect-ratio: 1;
  margin: -17% 0 0 -17%;
  border: 1px solid rgba(var(--ar), 0.9);
  border-radius: 50%;
  opacity: 0;
}
.d1-click.is-fire i {
  animation: d1ClickRing 620ms cubic-bezier(0.16, 0.9, 0.24, 1) both;
}
.d1-click.is-fire i:nth-child(2) { animation-delay: 70ms; }

.d1-click b {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  top: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--ar), 0.75), transparent);
  opacity: 0;
}
.d1-click.is-fire b { animation: d1ClickScan 620ms var(--ease) both; }

@keyframes d1ClickFlash {
  0%   { opacity: 0; }
  12%  { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes d1ClickRing {
  0%   { transform: scale(0.42); opacity: 0; }
  18%  { opacity: 0.85; }
  100% { transform: scale(1.75); opacity: 0; }
}
@keyframes d1ClickScan {
  0%   { top: 4%;  opacity: 0; }
  16%  { opacity: 0.9; }
  100% { top: 94%; opacity: 0; }
}

/* a breath on the glow so the light behind the glass is never quite still */
.d1-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 50%, rgba(var(--ar), 0.14), transparent 70%);
  animation: d1Breathe 7.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes d1Breathe {
  0%, 100% { opacity: 0.35; transform: scale(0.96); }
  50%      { opacity: 0.85; transform: scale(1.04); }
}

/* the band under the stage is the first ordinary page section in the build,
   so it gets the room a section gets — but it no longer gets a lorry-load of
   it. the pin already reserves a sill under the copy, and the two together were
   leaving a stretch of blank paper between the buttons and "April to March"
   wide enough to read as a missing section */
.d1-band { padding: 6px 0 76px; }

@media (max-width: 980px) {
  .d1-band { padding: 0 0 56px; }
  .d1-aurora { display: none; }
  .d1-rig { display: none; }
}

/* ------------------------------------------------------ the band arrives -- */
/* the first section after the spiral opens like a chapter instead of appearing:
   the copy column climbs in four steps, and the three seasons are drawn down
   the list one behind the other. --i is stamped by js in document order, so the
   ladder stays correct however many rows the markup has */
.js #read .d1-band__grid > div > *,
.js #read .d1-year,
.js #read .d1-phases li,
.js #read .d1-meta > div,
.js #read .d1-next > * {
  opacity: 0;
  transform: translateY(34px);
  /* the first band after the spiral is arrived at, not switched on. the extra
     travel and the blur are taken out over nine hundred milliseconds, which is
     long enough to overlap the hero's own release above it, so the wheels of the
     two sections turn into one another instead of meeting on a line */
  filter: blur(9px);
  transition: opacity 900ms var(--ease),
              transform 1000ms var(--ease),
              filter 820ms var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js #read.is-live .d1-band__grid > div > *,
.js #read.is-live .d1-year,
.js #read.is-live .d1-phases li,
.js #read.is-live .d1-meta > div,
.js #read.is-live .d1-next > * {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* the headline carries the same lime mark the rest of the page uses, but here
   it is written rather than printed: the swipe crosses "Neither is the work."
   a beat after the copy lands, so the one line that states the thesis is also
   the one line that moves */
.js #read .d1-band h2 .mark {
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 1100ms cubic-bezier(0.22, 1, 0.36, 1) 460ms;
}
.js #read.is-live .d1-band h2 .mark { background-size: 100% 100%; }

/* --------------------------------------------------- the run underneath -- */
/* from here down the page stops arriving as blocks and starts arriving as a
   run. nothing new is drawn: each card is the reveal the page already had, only
   now it is given a turn, and the small figures inside the archive tiles come
   in a beat after the tile that holds them. --i and --j are the row's place in
   its own set, so a ninth subject lands last without anyone counting */
.js #problem .problem.reveal.is-in,
.js #papers .bento .tile.reveal.is-in,
.js #tokens .token-card.reveal.is-in {
  transition-delay: calc(var(--i, 0) * 90ms);
}

@keyframes d1RowIn {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: none; }
}
.js #papers .tile.is-in .viz--library b,
.js #papers .tile.is-in .viz--library i,
.js #papers .tile.is-in .viz--hubs span,
.js #faq .faq__list.is-in details,
.js #examiner .split__art.is-in .script__notes li {
  animation: d1RowIn 600ms var(--ease) both;
}
.js #papers .tile.is-in .viz--library b,
.js #papers .tile.is-in .viz--library i,
.js #papers .tile.is-in .viz--hubs span {
  animation-delay: calc(var(--j, 0) * 55ms);
}
.js #faq .faq__list.is-in details {
  animation-delay: calc(var(--i, 0) * 70ms);
}
.js #examiner .split__art.is-in .script__notes li {
  animation-delay: calc(240ms + var(--k, 0) * 140ms);
}

/* -------------------------------------------------- the current keeps on -- */
/* battlemode has the live rig; the bands under it are paper, and paper that has
   finished arriving is paper that has stopped breathing — which is why every
   section but that one reads as a still. so the coil's current is carried on
   down the page in the two places it can be spent without a canvas: it walks
   the three season markers one after the other, the way a year does, and it
   reads the archive shelf back a row at a time. both spend colour only — no
   block moves, nothing reflows — and both are slow enough to be noticed
   rather than watched */
/* the numbers keep the band's clock: each season's digit is lit for exactly the
   third of the cycle its face is showing in the window, so the list is reading
   out the same instrument rather than blinking on its own timer */
.js #read.is-live .d1-phases li::before {
  animation: d1Step 10.8s linear infinite;
  animation-delay: calc(var(--i, 0) * 3.6s);
}
@keyframes d1Step {
  0%          { color: var(--lime); }
  28%         { color: var(--lime); }
  34%, 100%   { color: var(--muted); }
}

.js #papers .tile.is-in .viz--library i {
  animation: d1RowIn 600ms var(--ease) calc(var(--j, 0) * 55ms) both,
             d1Shelf 9s ease-in-out calc(760ms + var(--j, 0) * 110ms) infinite;
}
@keyframes d1Shelf {
  0%, 100% { color: var(--muted); }
  50%      { color: var(--ink); }
}

/* ------------------------------------------------- the page has a pulse -- */
/* the bands under the fold are not dead paper. every section carries the same
   small signal — the dot before its kicker lets one ring travel outward every
   four and a half seconds — so the eye is told, in one place on every screen,
   that the page is still switched on. it is seven pixels wide, it never moves
   anything, and it costs one pseudo-element */
.js .eyebrow i { position: relative; }
.js .eyebrow i::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid var(--mint);
  border-radius: 50%;
  opacity: 0;
  animation: d1Ping 4.6s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}
[data-theme="dark"] .eyebrow i::after { border-color: var(--lime); }
@keyframes d1Ping {
  0%        { transform: scale(0.72); opacity: 0; }
  10%       { opacity: 0.5; }
  60%, 100% { transform: scale(2.6); opacity: 0; }
}

/* the three failures light in turn, the way the three seasons do — the current
   walking a different shelf of the same page */
.js #problem .problem.is-in .problem__n {
  animation: d1Wick 7.4s ease-in-out infinite;
}
.js #problem .problem:nth-child(2) .problem__n { animation-delay: 820ms; }
.js #problem .problem:nth-child(3) .problem__n { animation-delay: 1640ms; }
@keyframes d1Wick {
  0%, 100% { color: var(--muted); border-color: var(--line); }
  8%       { color: var(--mint); border-color: var(--mint); }
  24%      { color: var(--muted); border-color: var(--line); }
}

/* the archive sits on its own sheet, and a sheet that never moves reads as a
   scan rather than a page. so one soft light crosses it, forty-odd seconds end
   to end — far too slow to watch, just fast enough that the band is never
   frozen when you look back at it */
#papers.section--system { position: relative; z-index: 0; overflow: hidden; }
#papers.section--system::before {
  content: "";
  position: absolute;
  inset: -22% -12%;
  z-index: -1;
  background: radial-gradient(40% 44% at 50% 50%, rgba(var(--ar), 0.15), rgba(var(--ar), 0) 70%);
  animation: d1Drift 42s ease-in-out infinite alternate;
  pointer-events: none;
}
/* on paper the same wash would sit on cream rather than on near-black, where a
   fifteenth of the mint reads as a stain instead of a glow — so light keeps the
   motion but halves the weight */
[data-theme="light"] #papers.section--system::before {
  background: radial-gradient(44% 48% at 50% 50%, rgba(var(--ar), 0.075), rgba(var(--ar), 0) 72%);
}
@keyframes d1Drift {
  from { transform: translate3d(-16%, -5%, 0) scale(1); }
  to   { transform: translate3d(16%, 5%, 0) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .d1-aurora i, .d1-glow::after { animation: none; }
  .d1-click.is-fire, .d1-click.is-fire i, .d1-click.is-fire b { animation: none; }
  .d1-click { display: none; }
  .js #read .d1-band__grid > div > *,
  .js #read .d1-year,
  .js #read .d1-phases li,
  .js #read .d1-meta > div,
  .js #read .d1-next > * { opacity: 1; transform: none; filter: none; transition: none; }
  .js #papers .tile.is-in .viz--library b,
  .js #papers .tile.is-in .viz--library i,
  .js #papers .tile.is-in .viz--hubs span,
  .js #faq .faq__list.is-in details,
  .js #examiner .split__art.is-in .script__notes li { animation: none; }
  .js #read.is-live .d1-phases li::before { animation: none; color: var(--muted); }
  .js .eyebrow i::after,
  .js #problem .problem.is-in .problem__n,
  #papers.section--system::before { animation: none; }
  .js #problem .problem.reveal.is-in,
  .js #papers .bento .tile.reveal.is-in,
  .js #tokens .token-card.reveal.is-in { transition-delay: 0s; }
  .d1-splash { transition: none; }
  .d1-splash__line i { animation: none; }
}

/* ============================================================= pro max ====
   the attention layer. nothing here invents a colour: every value is a weight
   of the lime, the mint, the forest or the ink the page already owns, so the
   light and dark contrasts stay exactly where they were. what changes is that
   the coil now drives the device on screen instead of framing it. */

/* ------------------------------------------------------------- arrival -- */
/* --in is one number written by js on the pin: 0 on the first frame, 1 once the
   page has composed itself. the head rises into place, the stage pushes out
   from just under full size, and the two always-on strips come up last, so the
   eye is walked from the headline into the glass instead of being handed the
   whole composition at once */
.d1-stage {
  /* --rel is the release, written once the finale has fired: the room gives up
     a little of its weight, lifts and draws back a shade, so the hero is not
     switched off at the end of the scrub — it lets go. the floors are high on
     purpose. a room that has already faded to nothing by the time the rings
     leave it has no origin, and the burst then reads as a graphic dropped on an
     empty page instead of something the coil did. the hero stays lit right to
     the last frame and the floor under it is what carries the eye into the band */
  opacity: calc(var(--in, 1) * (1 - var(--out, 0) * 0.25) * (0.80 + 0.20 * var(--rel, 1)));
  /* the exit settles rather than switches off: the whole room gives back four
     percent and drops a little as it goes, so the last frame of the hero is
     still moving when the band below starts to arrive */
  transform: translateY(calc(var(--out, 0) * -18px - (1 - var(--rel, 1)) * 46px))
             scale(calc(1 - var(--out, 0) * 0.04 - (1 - var(--rel, 1)) * 0.07));
}
.d1-foot {
  /* the copy is the thing the reader actually came to act on, so it is not part
     of the exit. it lifts instead of sinking — the pin's bottom sill, plus this
     pull, plus the taller padding is what finally puts real air under the two
     buttons — and it only gives back a quarter of its weight as the hero leaves,
     so the last frame of the scrub is still a legible offer rather than a
     ghost of one */
  opacity: calc(var(--in, 1) * (1 - var(--out, 0) * 0.10) * (0.62 + 0.38 * var(--rel, 1)));
  transform: translateY(calc(-40px - var(--out, 0) * 10px));
}

/* short frames. a laptop with the browser chrome eating the window, or a phone
   held sideways: the pin's own sill plus the foot's lift is a fixed number of
   pixels counted up from the bottom of the frame, so on a five-hundred-pixel
   window the copy ended up a hair off the edge and read as clipped even though
   nothing was actually over it. below 760px the sill is given back to the
   illustration and the lift is halved; below 620 it goes further. the offer is
   the last thing the reader acts on, so it keeps its air at every height */
@media (max-height: 760px) {
  .d1-pin { min-height: 560px; padding: 76px 0 64px; }
  .d1-foot { transform: translateY(calc(-18px - var(--out, 0) * 10px)); }
}
@media (max-height: 620px) {
  .d1-pin { min-height: 470px; padding: 60px 0 42px; }
  .d1-foot { transform: translateY(calc(-8px - var(--out, 0) * 8px)); }
}

/* ------------------------------------------------------------- current -- */
/* --surge is 1 on the frame the bead of current crosses the front slot and
   decays over about half a second. the bezel answers it directly: the edge
   lights, the phone blooms, and the wash behind the glass swells. this is the
   sentence the spiral has to say — the device is downstream of it */
.d1-flip > .phone::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 6;
  border-radius: inherit;
  pointer-events: none;
  opacity: calc(var(--surge, 0) * 0.95);
  box-shadow: inset 0 0 0 1px rgba(var(--ar), 0.9),
              0 0 40px rgba(var(--ar), 0.5);
}
[data-theme="light"] .d1-flip > .phone::after {
  box-shadow: inset 0 0 0 1px rgba(13, 120, 84, 0.55),
              0 0 30px rgba(var(--ar), 0.4);
}

.d1-glow {
  box-shadow: 0 0 calc(var(--surge, 0) * 96px) rgba(var(--ar), 0.34);
}
[data-theme="light"] .d1-glow {
  box-shadow: 0 0 calc(var(--surge, 0) * 80px) rgba(var(--ar), 0.24);
}

/* ------------------------------------------------------------- headline -- */
/* one slow pass of light across the highlighted words. same two bands, the
   lighter one travelling, so the highlight never changes contrast — it just
   catches the light once every few seconds */
.d1-h .mark {
  background-image:
    linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.20) 50%, transparent 60%),
    linear-gradient(180deg,
      transparent 58%, rgba(var(--ar), 0.24) 58%,
      rgba(var(--ar), 0.24) 93%, transparent 93%);
  background-size: 240% 100%, 100% 100%;
  background-repeat: no-repeat, no-repeat;
  background-position: 180% 0, 0 0;
  animation: d1MarkSheen 6.8s var(--ease) infinite;
}
/* the light theme's highlight is a solid marker block, so the same sheen is
   brighter there to stay equally visible without touching the band itself */
[data-theme="light"] .d1-h .mark {
  background-image:
    linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.55) 50%, transparent 60%),
    linear-gradient(180deg,
      transparent 63%, var(--lime) 63%, var(--lime) 92%, transparent 92%);
}
@keyframes d1MarkSheen {
  0%, 58%   { background-position: 180% 0, 0 0; }
  92%, 100% { background-position: -90% 0, 0 0; }
}

/* ---------------------------------------------------------------- grain -- */
/* a photographed frame, not a rendered one. the noise is 6% soft-light, which
   is below the threshold of "texture you can name" and above the threshold of
   "why does this look expensive" */
.d1-pin::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* the floor. the weather behind the coil is painted edge to edge on the pin and
   then clipped by it, so its glow used to stop on a dead-straight line exactly
   where the next section's paper begins — which is the "gap" the eye reads
   between the hero and the band under it. this skirts the last strip of the
   frame in the page's own paper, under the copy, so the room leaves through its
   own floor instead of through a cut. it sits below the foot (z 6) so it can
   never veil the buttons or the copy */
.d1-pin::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(40vh, 380px);
  z-index: 5;
  pointer-events: none;
  /* a long, dead-soft settle rather than a strip: the weather behind the glass
     is given a third of the frame to leave through, so there is no edge the eye
     can name at the join. the last fourteen percent is solid paper, which is
     what lets the band below start on the same value as the last row of this
     one. it used to be two hundred pixels, which on a tall frame was a ramp
     short enough to read as a step */
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(0, 0, 0, 0) 4%,
    color-mix(in srgb, var(--paper) 22%, transparent) 26%,
    color-mix(in srgb, var(--paper) 62%, transparent) 52%,
    var(--paper) 86%,
    var(--paper) 100%);
}

/* -------------------------------------------------------------- finale -- */
/* the scrub ends by letting go, and the letting go is a place on the scroll
   rather than an event: js writes --fin across the release window it keeps
   behind the turn, and every piece below is a window into that one number. the
   coil lifts, two rings leave the glass, a wave crosses the room and the flash
   at the origin throws its last gram of light — all of it wherever the reader
   stops, and all of it running backwards when they go back up.
   it used to be a one-shot timed animation on a class, which is what made the
   handoff a different page depending on how hard the wheel was turned: a flick
   outran it, a crawl waited for it, and a reader who stopped mid-move watched
   a light show they had already scrolled past. a finale that is a map of the
   scroll is only a still image when they stop, which was always the point.
   it costs no new colour: the rings are the lime the coil is already drawn in */
.d1-bloom {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: min(380px, 50%);
  aspect-ratio: 1 / 1;
  pointer-events: none;
  /* it rides the same two page-pixel numbers as the glass, so the rings leave
     the phone and not the stage box */
  transform: translate(-50%, -50%)
             translateY(calc(var(--fy, 0px) + var(--idle, 0px) + var(--phdy, 0px) - (1 - var(--rel, 1)) * 46px))
             translateX(var(--fx, 0px));
  opacity: 0;
  will-change: transform, opacity;
}
.d1-bloom i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--ar), 0.9);
  box-shadow: 0 0 34px rgba(var(--ar), 0.45), inset 0 0 44px rgba(var(--ar), 0.16);
  opacity: 0;
}
/* the second ring leaves later and travels the same distance, so the pair
   reads as a wave with a trail rather than one circle breathing in place */
.d1-bloom i + i {
  border-color: rgba(var(--ar), 0.66);
  box-shadow: 0 0 20px rgba(var(--ar), 0.22);
}
/* the wide one: the room answering the glass, flattened so it reads as a
   shockwave crossing the stage rather than a third circle */
.d1-bloom u {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300%;
  aspect-ratio: 3.2 / 1;
  border-radius: 50%;
  border: 1px solid rgba(var(--ar), 0.4);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
}
/* the flash at the origin — what makes the rings read as something released
   rather than something drawn */
.d1-bloom b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  background: radial-gradient(circle, rgba(var(--ar), 0.5), rgba(var(--ar), 0) 68%);
  opacity: 0;
}
/* the whole-stage pass: the rings are married to the glass, this one is not.
   it is a soft elliptical wash wider than any window, so the release reads as
   light crossing the room rather than two outlines drawn around the phone */
.d1-bloom::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 460%;
  aspect-ratio: 2.2 / 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--ar), 0.20),
    rgba(var(--ar), 0.06) 46%,
    rgba(var(--ar), 0) 72%);
  transform: translate(-50%, -50%) scale(0.45) scaleY(0.5);
  opacity: 0;
}
/* one number, six windows. every piece keeps the span it held on the old
   stopwatch, stated as a share of the release's travel instead of a share of a
   second: the second ring still trails the first, the wave still lands inside
   them, the flash still outlives all three. none of it can be late, because
   none of it is timed — `--k` is the piece's own 0 to 1 across --fin, and the
   shapes are drawn straight through it, which is what a scrub reads as anyway */
.d1-bloom {
  /* the wrapper opens for the whole release and shuts at the end, or the hero
     leaves a ring frozen on the stage behind it. it is not needed at rest: the
     four things inside it are all invisible until --fin moves */
  --k-out: clamp(0, calc((var(--fin, 0) - 0.74) / 0.26), 1);
  opacity: calc(1 - var(--k-out));
}
.d1-bloom i:nth-child(1) {
  --k: clamp(0, calc(var(--fin, 0) / 0.7917), 1);
  transform: scale(calc(0.18 + 2.87 * var(--k)));
  opacity: calc(min(1, var(--k) / 0.08) * (1 - var(--k)));
}
/* the second ring leaves a tenth of the release later and travels the same
   distance, so the pair reads as a wave with a trail rather than one circle
   breathing in place */
.d1-bloom i:nth-child(2) {
  --k: clamp(0, calc((var(--fin, 0) - 0.1167) / 0.7917), 1);
  transform: scale(calc(0.18 + 2.87 * var(--k)));
  opacity: calc(min(1, var(--k) / 0.08) * (1 - var(--k)) * 0.74);
}
/* the wide one: the room answering the glass, flattened so it reads as a
   shockwave crossing the stage rather than a third circle */
.d1-bloom u {
  --k: clamp(0, calc((var(--fin, 0) - 0.05) / 0.625), 1);
  transform: translate(-50%, -50%)
             scale(calc(0.14 + 1.21 * var(--k)))
             scaleY(calc(0.46 - 0.06 * var(--k)));
  opacity: calc(0.75 * min(1, var(--k) / 0.10) * (1 - var(--k)));
}
/* the origin light — what makes the rings read as something released rather
   than something drawn. it blooms in over the first tenth of the window and is
   still burning while the first ring is half-way across the stage, which is
   what makes them read as one event */
.d1-bloom b {
  --k: clamp(0, calc(var(--fin, 0) / 0.9167), 1);
  transform: translate(-50%, -50%) scale(calc(0.18 + 2.42 * var(--k)));
  opacity: calc(min(1, var(--k) / 0.09) * (1 - var(--k)));
}
/* the whole-stage pass: the rings are married to the glass, this one is not. it
   is a soft elliptical wash wider than any window, so the release reads as light
   crossing the room rather than two outlines drawn around the phone */
.d1-bloom::after {
  --k: clamp(0, calc((var(--fin, 0) - 0.025) / 0.8333), 1);
  transform: translate(-50%, -50%)
             scale(calc(0.45 + 1.45 * var(--k)))
             scaleY(calc(0.5 + 0.12 * var(--k)));
  opacity: calc(min(1, var(--k) / 0.11) * (1 - var(--k)));
}
/* the coil itself catches the release: the webgl owns the orbs, so the canvas
   takes the glare — a brightness lift that peaks as the rings go out and spends
   the rest of the window falling back, so the room is still settling while the
   band under it arrives. it is gated on is-rel, which js writes from the same
   number rather than from a clock, so a page that has not reached the release
   never pays for a filter pass over a live webgl canvas */
.d1-pin.is-rel .d1-canvas {
  --k: clamp(0, calc(var(--fin, 0) / 0.625), 1);
  filter: brightness(calc(1 + 0.7 * min(1, var(--k) / 0.12) * (1 - var(--k))));
}
/* and the room answers: the wash behind the glass throws one long halo and gives
   it back over the rest of the window, so the burst is not only two rings on a
   dark stage — the light in the room physically swells and settles */
.d1-pin.is-rel .d1-glow {
  --v: min(1, var(--fin, 0) / 0.10) * (1 - var(--fin, 0));
  box-shadow: 0 0 calc(130px * var(--v)) calc(46px * var(--v))
    rgba(var(--ar), calc(0.32 * var(--v)));
}
/* and the light lands on the glass itself. the canvas glare lifts the room, but
   the device is a sheet of glass and glass is the one thing in the frame that
   answers a flash with a sweep — so one specular band crosses the screen, fast
   off the top corner and slow out of the bottom, clipped to the screen radius.
   it is painted on the device and not on the stage, so it rides the tilt the
   reader's pointer gives it, and it carries no colour the coil is not drawn in */
.d1-flip .phone::after {
  content: "";
  position: absolute;
  inset: 11px;
  z-index: 9;
  border-radius: 36px;
  pointer-events: none;
  background: linear-gradient(104deg,
    transparent 36%,
    rgba(var(--ar), 0.10) 45%,
    rgba(var(--tx-rgb), 0.42) 50%,
    rgba(var(--ar), 0.14) 55%,
    transparent 64%);
  background-size: 280% 100%;
  background-position: 128% 0;
  opacity: 0;
}
.d1-pin .d1-flip .phone::after {
  /* the sweep crosses the glass in the first half of the release and is gone
     before the rings finish, so the device lets go rather than twinkling */
  --k: clamp(0, calc((var(--fin, 0) - 0.029) / 0.5208), 1);
  background-position: calc(128% - 162% * var(--k)) 0;
  opacity: calc(min(1, var(--k) / 0.10) * (1 - var(--k)) * 0.94);
}
/* on cream the screen is already near-white, so a white sweep lands on white
   and says nothing. the same band is drawn in the theme's own current instead —
   green, at half the reach — so the glass still answers the flash */
[data-theme="light"] .d1-flip .phone::after {
  background: linear-gradient(104deg,
    transparent 36%,
    rgba(var(--ar), 0.10) 45%,
    rgba(var(--ar), 0.30) 50%,
    rgba(var(--ar), 0.12) 55%,
    transparent 64%);
}
[data-theme="light"] .d1-bloom i { border-color: rgba(var(--ar), 0.78); box-shadow: 0 0 26px rgba(var(--ar), 0.24), inset 0 0 34px rgba(var(--ar), 0.1); }
[data-theme="light"] .d1-bloom i + i { border-color: rgba(var(--ar), 0.5); box-shadow: 0 0 14px rgba(var(--ar), 0.14); }
[data-theme="light"] .d1-bloom u { border-color: rgba(var(--ar), 0.34); }
[data-theme="light"] .d1-bloom::after {
  background: radial-gradient(
    ellipse at center,
    rgba(var(--ar), 0.14),
    rgba(var(--ar), 0.04) 46%,
    rgba(var(--ar), 0) 72%);
}
[data-theme="light"] .d1-bloom b {
  background: radial-gradient(circle, rgba(var(--ar), 0.3), rgba(var(--ar), 0) 68%);
}

/* --------------------------------------------------------- the bands live -- */
/* battlemode has the live rig; the paper bands under it used to have nothing
   that kept moving, which is why they read as stills next to it. what they get
   now is the coil's own behaviour carried down the page in the only currency a
   paper layout has: a signal that travels. each band is entered by the same
   hairline of current running along its top edge, and each band spends that
   current on the one object in it that is about movement — the row of problems,
   the shelf of papers, the four voices, the token balance. colour and transform
   only; nothing here reflows and nothing here changes a contrast */
.js #problem,
.js #examiner,
.js #tokens,
.js #papers { position: relative; }

.js #problem::after,
.js #examiner::after,
.js #tokens::after,
.js #papers::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 14%, var(--mint) 50%, transparent 86%);
  background-size: 52% 100%;
  background-repeat: no-repeat;
  background-position: -60% 0;
  box-shadow: 0 0 18px 1px rgba(var(--ar), 0.35);
  opacity: 0;
  animation: d1Seam 9.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes d1Seam {
  0%        { background-position: -60% 0; opacity: 0; }
  14%       { opacity: 0.9; }
  86%       { opacity: 0.9; }
  100%      { background-position: 160% 0; opacity: 0; }
}

/* the three problems: one light crosses the row, and each card's own edge
   answers it in turn, so the row is read left to right without anything moving */
.js #problem .problems { position: relative; }
.js #problem .problems::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 3px;
  border-radius: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--lime) 34%, var(--mint) 50%, transparent 78%);
  background-size: 36% 100%;
  background-repeat: no-repeat;
  background-position: -38% 0;
  box-shadow: 0 0 16px rgba(var(--ar), 0.5);
  opacity: 0;
  animation: d1Beam 6.4s cubic-bezier(0.42, 0, 0.2, 1) infinite;
}
@keyframes d1Beam {
  0%   { background-position: -40% 0; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { background-position: 140% 0; opacity: 0; }
}
.js #problem .problem.is-in {
  animation: d1CardEdge 7.6s ease-in-out infinite,
             d1Sweep 8s cubic-bezier(0.42, 0, 0.3, 1) infinite;
  animation-delay: calc(var(--i, 0) * 620ms), calc(var(--i, 0) * 900ms);
}
@keyframes d1CardEdge {
  0%, 100% { border-color: var(--line); }
  50%      { border-color: rgba(var(--ar), 0.42); }
}
[data-theme="light"] .js #problem .problem.is-in,
[data-theme="light"] #problem .problem.is-in {
  animation-name: d1CardEdgeL;
}
@keyframes d1CardEdgeL {
  0%, 100% { border-color: var(--line); }
  50%      { border-color: rgba(var(--ar), 0.4); }
}

/* the archive: the shelf is being read. a soft read-head travels down the nine
   subjects, and the three year counts light their top rules one after another */
.js #papers .tile.is-in .viz--library {
  position: relative;
  overflow: hidden;
}
.js #papers .tile.is-in .viz--library::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: 0;
  height: 22%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(var(--ar), 0.13), transparent);
  animation: d1Read 8.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes d1Read {
  0%   { transform: translateY(-120%); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(480%); opacity: 0; }
}
.js #papers .tile.is-in .viz--years span {
  animation: d1YearRule 8.4s ease-in-out infinite;
  animation-delay: calc(var(--j, 0) * 420ms);
}
@keyframes d1YearRule {
  0%, 100% { border-top-color: var(--line); }
  16%      { border-top-color: var(--lime); }
  42%      { border-top-color: var(--line); }
}
[data-theme="light"] .js #papers .tile.is-in .viz--years span,
[data-theme="light"] #papers .tile.is-in .viz--years span {
  animation-name: d1YearRuleL;
}
@keyframes d1YearRuleL {
  0%, 100% { border-top-color: var(--line); }
  16%      { border-top-color: var(--mint); }
  42%      { border-top-color: var(--line); }
}

/* the marking band: one answer, four voices — so the four chips take turns
   being the one that is on. the class the markup ships with is overridden by
   the animation, which means the loop starts on the first voice and walks the
   row in reading order, one and a half seconds each */
.js #examiner .split__art.is-in .script__moods span {
  animation: d1Mood 6.4s step-end infinite;
}
.js #examiner .split__art.is-in .script__moods span:nth-child(1) { animation-delay: 0s; }
.js #examiner .split__art.is-in .script__moods span:nth-child(2) { animation-delay: 1.6s; }
.js #examiner .split__art.is-in .script__moods span:nth-child(3) { animation-delay: 3.2s; }
.js #examiner .split__art.is-in .script__moods span:nth-child(4) { animation-delay: 4.8s; }
@keyframes d1Mood {
  0%, 24.9% { background: var(--lime); border-color: var(--lime); color: var(--edge); }
  25%, 100% { background: transparent; border-color: var(--line); color: var(--muted); }
}
/* and the answer above them is scanned, the way the checker reads it */
.js #examiner .split__art.is-in .script__ans {
  position: relative;
  overflow: hidden;
}
.js #examiner .split__art.is-in .script__ans::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(var(--ar), 0.10), transparent);
  animation: d1Read 6.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  animation-delay: 300ms;
}

/* the token band: the free card's edge carries the balance, and the number
   itself catches a light once per pass — the one figure on the page that is
   supposed to feel like credit */
.js #tokens .token-card--free.is-in::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  background-size: 38% 100%;
  background-repeat: no-repeat;
  background-position: -40% 0;
  animation: d1Beam 6.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.js #tokens .token-card--free.is-in .token-card__num {
  animation: d1Credit 6.6s ease-in-out infinite;
}
@keyframes d1Credit {
  0%, 62%, 100% { color: var(--tx); }
  70%           { color: var(--lime); }
  86%           { color: var(--tx); }
}
/* on cream the card is pale mint and its figure is ink, so the charge warms the
   number towards the darker green instead — and back to ink, never to white */
[data-theme="light"] .js #tokens .token-card--free.is-in .token-card__num,
[data-theme="light"] #tokens .token-card--free.is-in .token-card__num {
  animation-name: d1CreditL;
}
@keyframes d1CreditL {
  0%, 62%, 100% { color: var(--ink); }
  70%           { color: var(--mint); }
  86%           { color: var(--ink); }
}

/* ---------------------------------------------------- the bands, louder -- */
/* the first pass gave every band a one-pixel hairline and a colour pulse, which
   is true but quiet: at arm's length a hairline is not an event. so each band
   now carries one instrument that is plainly *running*, built out of the words
   it already has —
     problems  the current crosses the row, and each fix line answers it
     papers    the counts are drawn as bars instead of set as numerals
     tokens    the balance is charged along a gauge under the figure
     faq       the row you opened is lit down its edge
   and every card in the run arrives from further down and out of blur, because
   weight is the cheapest thing a paper layout can borrow from a dark one. no
   new colour is introduced here and no existing contrast is touched. */

/* the arrival. site.css lifts a card twenty-odd pixels and fades it; these
   bands are the argument of the page, so they come up from twice that and
   resolve out of blur, in reading order */
.js .problem.reveal,
.js .tile.reveal,
.js .token-card.reveal,
.js .split__art.reveal {
  opacity: 0;
  translate: 0 56px;
  filter: blur(11px);
  transition:
    opacity 780ms var(--ease),
    translate 960ms var(--ease),
    filter 720ms var(--ease);
}
.js .problem.reveal.is-in,
.js .tile.reveal.is-in,
.js .token-card.reveal.is-in,
.js .split__art.reveal.is-in {
  opacity: 1;
  translate: 0 0;
  filter: blur(0);
}
.js #problem .problem.reveal.is-in { transition-delay: calc(var(--i, 0) * 130ms); }
.js #papers .bento .tile.reveal.is-in { transition-delay: calc(var(--i, 0) * 110ms); }
.js #tokens .token-card.reveal.is-in { transition-delay: calc(var(--i, 0) * 120ms); }

/* the fix line under each problem is the one dashed rule in the band, so it is
   the one that can carry a current without moving anything: the light runs the
   dash a beat after the card above it has finished arriving */
.js #problem .problem.is-in .problem__fix { position: relative; }
.js #problem .problem.is-in .problem__fix::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  background-size: 46% 100%;
  background-repeat: no-repeat;
  background-position: -48% 0;
  opacity: 0;
  animation: d1Beam 5.4s cubic-bezier(0.42, 0, 0.2, 1) infinite;
  animation-delay: calc(600ms + var(--i, 0) * 520ms);
}

/* the archive counts itself in. the three years become three bars whose lengths
   are the counts they carry — 29, 34, 22 against the largest year — and the
   nine subjects grow the same way against the largest subject, so the shelf
   stops being a list of numbers and starts being a chart that fills */
.js #papers .tile.is-in .viz--years span { position: relative; }
.js #papers .tile.is-in .viz--years span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--lime), var(--mint));
  transform: scaleX(0);
  transform-origin: left center;
  animation: d1Grow 1s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
.js #papers .tile.is-in .viz--years span:nth-child(1)::before { width: 85%;  animation-delay: 240ms; }
.js #papers .tile.is-in .viz--years span:nth-child(2)::before { width: 100%; animation-delay: 380ms; }
.js #papers .tile.is-in .viz--years span:nth-child(3)::before { width: 65%;  animation-delay: 520ms; }

.js #papers .tile.is-in .viz--library b { position: relative; }
.js #papers .tile.is-in .viz--library b::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: var(--w, 0%);
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  animation: d1Grow 760ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
  animation-delay: calc(320ms + var(--j, 0) * 90ms);
}
/* the subject counts against the largest subject: mathematics holds seventeen,
   the row of fourteen-item subjects a shade over four fifths of it, and the
   three optional-language papers a sixth */
.js #papers .viz--library span:nth-child(1) { --w: 100%; }
.js #papers .viz--library span:nth-child(2),
.js #papers .viz--library span:nth-child(3),
.js #papers .viz--library span:nth-child(4),
.js #papers .viz--library span:nth-child(5) { --w: 82%; }
.js #papers .viz--library span:nth-child(6),
.js #papers .viz--library span:nth-child(7),
.js #papers .viz--library span:nth-child(8),
.js #papers .viz--library span:nth-child(9) { --w: 18%; }

@keyframes d1Grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* the free card's figure is a balance, so it is charged: a gauge under the
   5,000 fills and empties on the same six-and-a-half second pass that lights
   the card's top edge and warms the number */
.js #tokens .token-card--free.is-in .token-card__num { position: relative; }
.js #tokens .token-card--free.is-in .token-card__num::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--lime), transparent);
  transform: scaleX(0);
  transform-origin: left center;
  animation: d1Charge 6.6s ease-in-out infinite;
}
@keyframes d1Charge {
  0%   { transform: scaleX(0);   opacity: 0; }
  14%  { transform: scaleX(1);   opacity: 0.95; }
  64%  { transform: scaleX(1);   opacity: 0.32; }
  100% { transform: scaleX(0.04); opacity: 0; }
}

/* the question you open takes the current down its gutter, so the answer that
   unfolds is attached to something in the page rather than simply taller */
.js #faq .faq__list details { position: relative; }
.js #faq .faq__list details::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--lime), var(--mint) 42%, transparent);
  opacity: 0;
  transform: scaleY(0.12);
  transform-origin: top center;
  transition: opacity 300ms var(--ease), transform 460ms var(--ease);
}
.js #faq .faq__list details[open]::before { opacity: 1; transform: scaleY(1); }

/* on cream the lime is a highlighter and a two-pixel highlighter is a smudge,
   so the bars keep the motion and take the darker of the two greens */
[data-theme="light"] .js #papers .tile.is-in .viz--years span::before {
  background: linear-gradient(90deg, var(--mint), var(--lime));
}
[data-theme="light"] .js #papers .tile.is-in .viz--library b::after { background: var(--mint); }
[data-theme="light"] .js #faq .faq__list details::before {
  background: linear-gradient(180deg, var(--mint), transparent);
}

/* ---------------------------------------------------------------- arena -- */
/* battlemode stands out because it has a lit room around it — depth, dust in
   the air, something luminous behind the glass. the paper bands had only their
   own flat sheet, so no matter what moved inside them the eye read a still.
   each of the four bands is now given that room in one pseudo-element: a mint
   haze off the top, two fields of mint dust at different scales, and the wire
   lattice the coil is strung on at a hundredth of the weight. the two dust
   fields travel at different speeds, which is all parallax is, and the haze
   breathes on its own clock so the light in the room is never quite steady.
   everything falls off to nothing at the edges, so no band ever draws a border */
.js #problem,
.js #examiner,
.js #tokens,
.js #faq { position: relative; z-index: 0; }
.js #problem::before,
.js #examiner::before,
.js #tokens::before,
.js #faq::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(62% 68% at 50% -4%, rgba(var(--ar), 0.20), rgba(var(--ar), 0) 72%),
    radial-gradient(58% 72% at 50% 46%, rgba(var(--ar), 0.16), rgba(var(--ar), 0) 70%),
    radial-gradient(circle at 26px 26px, rgba(var(--ar), 0.40) 0 1.3px, transparent 2.2px),
    radial-gradient(circle at 96px 74px, rgba(var(--ar), 0.18) 0 1px, transparent 1.8px),
    repeating-linear-gradient(90deg, rgba(var(--ar), 0.055) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(var(--ar), 0.055) 0 1px, transparent 1px 72px);
  background-size: 100% 100%, 150% 150%, 132px 132px, 232px 232px, 100% 72px, 72px 100%;
  background-repeat: no-repeat, no-repeat, repeat, repeat, repeat, repeat;
  -webkit-mask-image: radial-gradient(76% 80% at 50% 30%, #000 16%, transparent 79%);
  mask-image: radial-gradient(76% 80% at 50% 30%, #000 16%, transparent 79%);
  animation: d1Lattice 26s linear infinite,
             d1Aurora 17s ease-in-out infinite;
}
@keyframes d1Lattice {
  from { background-position: 0 0, 0% 0%, 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: 0 0, 100% 100%, 0 132px, 0 232px, 0 72px, 72px 0; }
}
/* the room is lit by something that moves. a shallow breath over the whole
   field, so the dust never sits on a fixed value and the band is caught at a
   different moment every time it is looked at */
@keyframes d1Aurora {
  0%, 100% { opacity: 0.68; }
  46%      { opacity: 1; }
}
/* cream reads a line of mint as a stain and a dot of mint as a speck, so light
   keeps the geometry and drops the green for a fraction of the ink it prints
   with — the field is still there, it is just drawn in pencil */
[data-theme="light"] .js #problem::before,
[data-theme="light"] #problem::before,
[data-theme="light"] .js #examiner::before,
[data-theme="light"] #examiner::before,
[data-theme="light"] .js #tokens::before,
[data-theme="light"] #tokens::before,
[data-theme="light"] .js #faq::before,
[data-theme="light"] #faq::before {
  background-image:
    radial-gradient(62% 68% at 50% -4%, rgba(var(--ar), 0.10), rgba(var(--ar), 0) 72%),
    radial-gradient(58% 72% at 50% 46%, rgba(var(--ar), 0.08), rgba(var(--ar), 0) 70%),
    radial-gradient(circle at 26px 26px, rgba(var(--valley-ink), 0.13) 0 1.2px, transparent 2px),
    radial-gradient(circle at 96px 74px, rgba(var(--valley-ink), 0.07) 0 1px, transparent 1.8px),
    repeating-linear-gradient(90deg, rgba(var(--valley-ink), 0.05) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(var(--valley-ink), 0.05) 0 1px, transparent 1px 72px);
}

/* ------------------------------------------------------------------ rig -- */
/* battlemode's pull is a live object standing in the band's empty half. this is
   the same idea built from flat parts: five great circles threaded on one
   preserve-3d spindle, each entering the view at its own latitude, the whole
   set turned on a slow clock so no two frames repeat. a wavefront of light sits
   inside the shell and breathes. it is transform-only, lives at z-index -1
   behind the cards, and is placed per band with three custom properties, so the
   same two elements read as a different machine at every stop on the page */
.d1-rig {
  --rx: 80%;
  --ry: 26%;
  --rs: min(600px, 46vw);
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  perspective: 1500px;
  perspective-origin: var(--rx) var(--ry);
  -webkit-mask-image: radial-gradient(circle at var(--rx) var(--ry), #000 0 44%, rgba(0, 0, 0, 0.55) 72%, transparent 94%);
  mask-image: radial-gradient(circle at var(--rx) var(--ry), #000 0 44%, rgba(0, 0, 0, 0.55) 72%, transparent 94%);
}
.d1-rig__hub {
  position: absolute;
  left: var(--rx);
  top: var(--ry);
  width: var(--rs);
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  animation: d1RigTurn 58s linear infinite;
}
.d1-rig__hub i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.2px solid rgba(var(--ar), 0.34);
  box-shadow: 0 0 30px rgba(var(--ar), 0.12), inset 0 0 64px rgba(var(--ar), 0.06);
}
.d1-rig__hub i:nth-child(1) { border-color: rgba(var(--ar), 0.46); }
.d1-rig__hub i:nth-child(2) { transform: rotateX(62deg) scale(0.86); }
.d1-rig__hub i:nth-child(3) { transform: rotateX(-58deg) rotateY(46deg) scale(0.72); border-style: dashed; border-color: rgba(var(--ar), 0.4); box-shadow: none; }
.d1-rig__hub i:nth-child(4) { transform: rotateY(64deg) scale(0.92); border-color: rgba(var(--ar), 0.24); box-shadow: none; }
.d1-rig__hub i:nth-child(5) { transform: rotateY(-52deg) rotateX(34deg) scale(0.58); border-color: rgba(var(--ar), 0.2); box-shadow: none; }
/* the light inside the shell — this is what keeps the wireframe from reading as
   a diagram and makes it read as a lit object */
.d1-rig > span {
  position: absolute;
  left: var(--rx);
  top: var(--ry);
  width: calc(var(--rs) * 0.34);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--ar), 0.30), rgba(var(--ar), 0.05) 50%, transparent 70%);
  filter: blur(2px);
  animation: d1RigPulse 7.5s ease-in-out infinite;
}
/* the spindle carries a 20deg pitch so the equator is never dead-on: every ring
   in the set crosses the vertical axis at some point of the turn, which is what
   sells the third dimension without ever showing a true circle */
@keyframes d1RigTurn {
  from { transform: translate(-50%, -50%) rotateX(20deg) rotateY(0deg); }
  to   { transform: translate(-50%, -50%) rotateX(20deg) rotateY(360deg); }
}
@keyframes d1RigPulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.92); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.08); }
}
#problem  .d1-rig { --rx: 80%; --ry: 26%; --rs: min(620px, 47vw); }
/* and it stays in one band only. a shell repeated down the page stops being an
   object and becomes wallpaper — two copies in a row and the third reads as
   page furniture. so the machine lives behind the first band and the two after
   it get their own gesture, drawn in the same two colours */
[data-theme="light"] .d1-rig__hub i { border-color: rgba(var(--ar), 0.3); box-shadow: 0 0 22px rgba(var(--ar), 0.1), inset 0 0 44px rgba(var(--ar), 0.05); }
[data-theme="light"] .d1-rig__hub i:nth-child(1) { border-color: rgba(var(--ar), 0.4); }
[data-theme="light"] .d1-rig__hub i:nth-child(3) { border-color: rgba(var(--ar), 0.34); }
[data-theme="light"] .d1-rig__hub i:nth-child(4),
[data-theme="light"] .d1-rig__hub i:nth-child(5) { border-color: rgba(var(--ar), 0.2); }
[data-theme="light"] .d1-rig > span { background: radial-gradient(circle, rgba(var(--ar), 0.16), rgba(var(--ar), 0.04) 52%, transparent 72%); }

/* ---------------------------------------------------------------- scan -- */
/* the examiner's band gets the examiner's own gesture: a ruled answer field in
   the half of the band the copy does not use, and one long pass of light
   travelling down it, the way an eye reads a script. no ring, no shell — the
   motion is linear and cold, which is what marking is */
.d1-scan {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg,
    rgba(var(--ar), 0.12) 0 1px, transparent 1px 33px);
  -webkit-mask-image: radial-gradient(52% 64% at 76% 64%, #000 0 24%, rgba(0, 0, 0, 0.62) 58%, transparent 86%);
  mask-image: radial-gradient(52% 64% at 76% 64%, #000 0 24%, rgba(0, 0, 0, 0.62) 58%, transparent 86%);
}
.d1-scan i {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 24%;
  background: linear-gradient(180deg,
    transparent,
    rgba(var(--ar), 0.05) 46%,
    rgba(var(--ar), 0.26) 94%,
    rgba(var(--ar), 0.72) 100%);
  animation: d1ScanRun 11s cubic-bezier(0.42, 0, 0.35, 1) infinite;
}
@keyframes d1ScanRun {
  0%        { transform: translateY(-24%); opacity: 0; }
  9%        { opacity: 1; }
  84%       { opacity: 1; }
  100%      { transform: translateY(430%); opacity: 0; }
}
[data-theme="light"] .d1-scan {
  background-image: repeating-linear-gradient(0deg,
    rgba(var(--valley-ink), 0.11) 0 1px, transparent 1px 33px);
}
[data-theme="light"] .d1-scan i {
  background: linear-gradient(180deg,
    transparent,
    rgba(var(--ar), 0.04) 46%,
    rgba(var(--ar), 0.18) 94%,
    rgba(13, 120, 84, 0.55) 100%);
}

/* ----------------------------------------------------------- the chips -- */
/* tokens get value that rises. eight small bars climb out of the empty half of
   the band, each on its own phase, so the field is never still and never
   synchronised — a balance filling rather than a diagram of one. they live
   behind everything, they never touch a card, and they cost one transform each */
.d1-tokens {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(52% 62% at 82% 26%, #000 0 30%, rgba(0, 0, 0, 0.55) 64%, transparent 88%);
  mask-image: radial-gradient(52% 62% at 82% 26%, #000 0 30%, rgba(0, 0, 0, 0.55) 64%, transparent 88%);
}
.d1-tokens i {
  position: absolute;
  bottom: 46%;
  left: calc(66% + var(--n, 0) * 4.1%);
  width: 6px;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(var(--ar), 0.9), rgba(var(--ar), 0.14));
  box-shadow: 0 0 12px rgba(var(--ar), 0.4);
  opacity: 0;
  animation: d1Chip 10.5s linear infinite;
  animation-delay: calc(var(--n, 0) * -1.3s);
}
.d1-tokens i:nth-child(1) { --n: 0; }
.d1-tokens i:nth-child(2) { --n: 1; }
.d1-tokens i:nth-child(3) { --n: 2; }
.d1-tokens i:nth-child(4) { --n: 3; }
.d1-tokens i:nth-child(5) { --n: 4; }
.d1-tokens i:nth-child(6) { --n: 5; }
.d1-tokens i:nth-child(7) { --n: 6; }
.d1-tokens i:nth-child(8) { --n: 7; }
@keyframes d1Chip {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  14%  { opacity: 1; }
  62%  { opacity: 0.5; }
  100% { transform: translateY(-30vh) scale(1); opacity: 0; }
}
[data-theme="light"] .d1-tokens i {
  background: linear-gradient(180deg, rgba(var(--ar), 0.75), rgba(var(--ar), 0.1));
  box-shadow: 0 0 10px rgba(var(--ar), 0.28);
}

/* ---------------------------------------------------------------- sweep -- */
/* one pass of light along the face of every card in the running bands — the
   same gesture the headline's marker makes. painted as a background layer on
   the card itself, so it can never sit over a word, never catches a click, and
   needs no extra element. it used to hold still for four seconds out of nine,
   which meant a reader who looked once saw a dead card; now the pass is
   continuous and staggered by index, so there is always light moving somewhere
   in a band and no two neighbours ever catch it at the same moment */
.js #problem .problem,
.js #papers .bento .tile,
.js #tokens .token-card {
  background-image: linear-gradient(104deg,
    transparent 44%,
    rgba(var(--ar), 0.16) 48.6%,
    rgba(255, 255, 255, 0.10) 51.2%,
    transparent 58%);
  background-size: 260% 100%;
  background-repeat: no-repeat;
  background-position: 160% 0;
}
.js #papers .bento .tile.is-in,
.js #tokens .token-card.is-in {
  animation: d1Sweep 8s cubic-bezier(0.42, 0, 0.3, 1) infinite;
  animation-delay: calc(var(--i, 0) * 900ms);
}
@keyframes d1Sweep {
  from { background-position: 160% 0; }
  to   { background-position: -60% 0; }
}
[data-theme="light"] .js #problem .problem,
[data-theme="light"] #problem .problem,
[data-theme="light"] .js #papers .bento .tile,
[data-theme="light"] #papers .bento .tile,
[data-theme="light"] .js #tokens .token-card,
[data-theme="light"] #tokens .token-card {
  background-image: linear-gradient(104deg,
    transparent 44%,
    rgba(var(--ar), 0.12) 48.6%,
    rgba(255, 255, 255, 0.50) 51.2%,
    transparent 58%);
}


@media (prefers-reduced-motion: reduce) {
  .d1-bloom { display: none; }
  .d1-scan i,
  .d1-tokens i,
  .d1-year i,
  .d1-rig__hub,
  .d1-rig > span,
  .js #problem::after,
  .js #examiner::after,
  .js #tokens::after,
  .js #papers::after,
  .js #problem::before,
  .js #examiner::before,
  .js #tokens::before,
  .js #faq::before,
  .js #papers .bento .tile.is-in,
  .js #tokens .token-card.is-in,
  .js #problem .problems::after,
  .js #problem .problem.is-in,
  .js #problem .problem__fix::after,
  .js #papers .tile.is-in .viz--library::after,
  .js #papers .tile.is-in .viz--years span,
  .js #examiner .split__art.is-in .script__moods span,
  .js #examiner .split__art.is-in .script__ans::after,
  .js #tokens .token-card--free.is-in::before,
  .js #tokens .token-card--free.is-in .token-card__num { animation: none; }

  .js .problem.reveal,
  .js .tile.reveal,
  .js .token-card.reveal,
  .js .split__art.reveal {
    opacity: 1;
    translate: none;
    filter: none;
    transition: none;
  }
  .js #papers .tile.is-in .viz--years span::before,
  .js #papers .tile.is-in .viz--library b::after,
  .js #tokens .token-card--free.is-in .token-card__num::after { display: none; }
  .js #faq .faq__list details::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .d1-h .mark { animation: none; }
  .d1-canvas { filter: none; }
  .d1-pin { transform: none; }
  .d1-year span { transform: scaleX(1); animation: none; }
  /* the season window holds its first face instead of turning, and the band's
     headline is already written */
  .d1-season__dots i,
  .d1-season__frame,
  .d1-season__viz--clock i::before { animation: none; }
  .d1-season__frame { opacity: 0; }
  .d1-season__frame:first-child { opacity: 1; }
  .d1-season__dots i { background: var(--line); }
  .d1-season__dots i:first-child { background: var(--lime); }
  .js #read .d1-band h2 .mark { background-size: 100% 100%; transition: none; }
  .js #read .d1-phases li::before { animation: none; }
}

/* ==================================================================== mobile
   Everything from here down is inside a size query, so the desktop page is
   untouched by construction — d1.css loads after site.css, which lets these
   win against the older phone pass without editing it.

   The premise: mobile was assembled by subtraction. The aurora went off, the
   rig went off, the fold went off, the battle canvas was deleted from the
   document, every multi-column grid was flattened to one, and the exam card
   was straightened. None of it was replaced. So the first pass gives that back
   and the passes after it add the things a thumb can do that a mouse cannot.
   ==================================================================== */

/* ------------------------------------------------ what mobile threw away -- */
@media (max-width: 980px) {
  /* the weather behind the glass. the desktop blooms are sized in vmin, which
     on a portrait phone collapses to a fraction of the screen, so they are
     re-cut against vw and pinned top and bottom of the band instead. the blur
     is halved: a 38px blur stacked over a live canvas is the most expensive
     paint on the page and at this size the difference is not visible. */
  .d1-aurora {
    display: block;
    inset: -6% -20%;
    opacity: 0.55;
    filter: blur(20px);
  }
  .d1-aurora i:nth-child(1) { width: 86vw; height: 86vw; left: -20vw; top: 4%; }
  .d1-aurora i:nth-child(2) { width: 92vw; height: 92vw; right: -26vw; bottom: 2%; }
  .d1-aurora i:nth-child(3) { width: 54vw; height: 54vw; left: 24vw; top: 46%; }

  /* the lit wireframe behind the problem band — five bordered circles in a
     perspective shell. it costs one composited rotation and no canvas, so
     there was never a performance case for switching it off, only a layout one
     against a desktop origin. the origin moves to the middle of a portrait
     column and the radius is given back in vw. */
  .d1-rig { display: block; }
  #problem .d1-rig { --rx: 50%; --ry: 15%; --rs: min(430px, 122vw); }
}

@media (max-width: 760px) {
  /* three tiles are not a better layout than one, and the old phone pass made
     it one. this keeps the bento: the archive tile is the headline so it holds
     the row, and the two supporting tiles share the row under it. the library
     list already ellipsizes its labels, so it survives half width. */
  .bento { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bento > .tile { grid-column: span 1; min-height: 0; padding: 18px; }
  .bento > .tile--checker { grid-column: span 2; }
  .tile h3 { font-size: 1.14rem; }
  .tile--checker h3 { font-size: 1.55rem; }
  .tile > p { margin-top: 8px; font-size: 0.84rem; line-height: 1.56; }
  .tile__top { margin-bottom: 12px; }
  .viz { padding-top: 16px; }

  /* the exam card is tilted because it is a thing somebody put down in a
     hurry. straightening it on a phone took the only physical object in the
     band and left a form. */
  .exam { transform: rotate(1.4deg); }
}

/* the battle band. neon-battle.js takes the canvas out of the document on
   touch, so on a phone the art column used to be an empty dark band with a
   card floating in it. this is the stand-in, and it is deliberately not a
   second WebGL context: a bloom that only changes opacity and scale, and one
   static ring that costs nothing at all. */
@media (max-width: 900px) {
  .battle__art {
    position: relative;
    isolation: isolate;
    padding: 26px 0 10px;
  }
  .battle__art::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 46%;
    width: 116%;
    aspect-ratio: 1 / 1;
    translate: -50% -50%;
    z-index: -2;
    border-radius: 50%;
    background: radial-gradient(circle,
      rgba(var(--ar), 0.26),
      rgba(var(--ar), 0.06) 44%,
      transparent 68%);
    filter: blur(18px);
    animation: d1MBGlow 9s ease-in-out infinite;
  }
  /* the ring is drawn, not composited — a dashed conic edge reads as the
     orbit the deleted canvas used to trace, and it never repaints */
  .battle__art::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 46%;
    width: 104%;
    aspect-ratio: 1 / 1;
    translate: -50% -50%;
    z-index: -1;
    border-radius: 50%;
    border: 1px dashed rgba(var(--ar), 0.22);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 34%, #000 66%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 34%, #000 66%, transparent);
  }
}

@keyframes d1MBGlow {
  0%, 100% { opacity: 0.5; transform: scale(0.94); }
  50%      { opacity: 1;   transform: scale(1.06); }
}

/* ------------------------------------------------------- thumb-first rails -- */
/* Three problems and three prices do not want a stack, they want a rail: one
   card at a time with the next one already in at the edge, so the row reads as
   continuable before it is touched. The rail is pulled out to the viewport so
   the peek is real, and the wrap's own inset is re-applied as scroll padding so
   the first and last cards can still come to rest clear of the glass. */
@media (max-width: 760px) {
  .problems,
  .token-cards {
    display: flex;
    gap: 12px;
    align-items: stretch;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    margin-inline: -16px;
    /* the free card's badge sits above the card's own top edge, and a scroll
       container clips whatever it overflows — so the room is given back here */
    padding: 18px 16px 6px;
    scroll-padding-inline: 16px;
    -webkit-overflow-scrolling: touch;
  }
  .problems::-webkit-scrollbar,
  .token-cards::-webkit-scrollbar { display: none; }

  .problems > .problem,
  .token-cards > .token-card {
    flex: 0 0 min(78vw, 320px);
    min-height: 0;
    scroll-snap-align: start;
  }
  .problems > .problem { min-height: 262px; }
  .token-cards > .token-card { padding: 22px; }
  .problem h3 { font-size: 1.24rem; }
  .problem > p { font-size: 0.86rem; }
}

/* the hint that there is more off the right edge. it is display:none by
   default so the desktop markup it sits in is invisible there, and it is the
   kind of thing that only earns its place on a touch screen */
.rail-hint { display: none; }

@media (max-width: 760px) {
  .rail-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 2px 16px 0;
    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .rail-hint i {
    position: relative;
    width: 24px;
    height: 1px;
    background: currentColor;
    animation: d1HintSlide 2.4s var(--ease) infinite;
  }
  .rail-hint i::after {
    content: "";
    position: absolute;
    right: -1px;
    top: -3px;
    width: 6px;
    height: 6px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
  }
}

@keyframes d1HintSlide {
  0%, 100% { transform: translateX(-7px); opacity: 0.35; }
  55%      { transform: translateX(2px);  opacity: 1; }
}

/* ------------------------------------------------------- the standing offer -- */
/* On desktop the offer is wherever the reader happens to be looking. On a
   phone the reader is one thumb away from a signup that is eight screens down
   the page, so after the hero releases the offer rides along at the bottom
   until the closing band arrives to say the same thing out loud. */
.mcta { display: none; }

@media (max-width: 760px) {
  .mcta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    /* under the menu (90) and the auth sheet (300) so neither is ever veiled */
    z-index: 80;
    padding: 0 12px calc(10px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
    /* held out of the tab order and the accessibility tree while it is down,
       which a translate alone would not do — the button would still be
       focusable off the bottom of the screen */
    visibility: hidden;
    transform: translateY(140%);
    transition: transform 460ms var(--ease), visibility 0s linear 460ms;
  }
  .mcta.is-up {
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: transform 460ms var(--ease), visibility 0s;
  }
  .mcta__in {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 9px 9px 16px;
    border: 1px solid rgba(127, 228, 171, 0.22);
    border-radius: 999px;
    background: color-mix(in srgb, var(--forest) 84%, transparent);
    backdrop-filter: blur(14px) saturate(1.35);
    -webkit-backdrop-filter: blur(14px) saturate(1.35);
    box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.72);
  }
  .mcta__label {
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--font-mono);
    font-size: 0.54rem;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .mcta__label b { color: var(--lime); font-weight: 500; }
  .mcta__btn {
    flex: none;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 0.84rem;
  }
}

/* -------------------------------------------------------- touch feedback -- */
/* There was exactly one :active rule in the whole stylesheet and thirty-two
   :hover rules, and the native tap highlight is switched off on the body. So a
   phone got no answer back from anything it pressed, and worse, the hover state
   of a card stayed painted on after the finger left. Both halves are fixed
   here, and both are gated on capability rather than width — a tablet keeps
   them, a desktop with a mouse never sees them. */
@media (pointer: coarse) {
  .btn:active,
  .token-card__btn:active { transform: translateY(1px) scale(0.984); }
  .theme-btn:active,
  .burger:active,
  .nav__start:active,
  .auth__close:active { transform: scale(0.9); }
  .problem:active,
  .tile:active,
  .token-card:active { transform: scale(0.99); }
  .menu__links a:active,
  .foot__col a:active,
  .foot__col button:active,
  .faq__list summary:active { opacity: 0.55; }
  .mcta__btn:active { transform: scale(0.96); }
}

@media (hover: none) {
  .problem:hover,
  .tile:hover,
  .token-card:hover { transform: none; box-shadow: none; }
  .js .problem:hover,
  .js .tile:hover,
  .js .token-card:hover { --lift: 0px; }
  .js .problem:hover::after,
  .js .tile:hover::after,
  .js .token-card:hover::after { opacity: 0; }
  .ticker:hover .ticker__track { animation-play-state: running; }
  .d1-stage:hover .d1-flip > .phone { transform: none; }
  .theme-btn:hover { color: var(--ink-2); }
  .faq__list details:hover summary { transform: none; }
}

/* ------------------------------------------------------ the free stagger -- */
/* site.js already stamps --i on the problem cards, the tiles, the token cards
   and the faq rows — and nothing in either stylesheet ever read it. So every
   card in a row arrived on the same frame and the stamping was dead code. On a
   phone, where two of those rows are now rails you swipe, the ladder is the
   difference between a row handed over and a row dumped. */
@media (max-width: 760px) {
  .js .reveal { transition-delay: calc(var(--i, 0) * 90ms); }
}

/* lists that sit inside a revealed column get their own short ladder, keyed off
   the parent's is-in so no second observer is needed and no markup changed */
@media (max-width: 760px) {
  .js .ticks li,
  .js .checks li {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 520ms var(--ease), transform 520ms var(--ease);
  }
  .js .battle__copy.is-in .ticks li,
  .js .split__copy.is-in .checks li { opacity: 1; transform: none; }
  .js .battle__copy.is-in .ticks li:nth-child(1),
  .js .split__copy.is-in .checks li:nth-child(1) { transition-delay: 130ms; }
  .js .battle__copy.is-in .ticks li:nth-child(2),
  .js .split__copy.is-in .checks li:nth-child(2) { transition-delay: 215ms; }
  .js .battle__copy.is-in .ticks li:nth-child(3),
  .js .split__copy.is-in .checks li:nth-child(3) { transition-delay: 300ms; }
  .js .battle__copy.is-in .ticks li:nth-child(4),
  .js .split__copy.is-in .checks li:nth-child(4) { transition-delay: 385ms; }
}

/* ------------------------------------------------------------- the ticker -- */
/* One marquee across a 390px screen is mostly empty travel. Two rows running
   against each other read as a board that is alive rather than a belt that is
   long. The second track is display:none until the phone pass, so the desktop
   band is the same single belt it always was. */
.ticker__track--b { display: none; }

@media (max-width: 760px) {
  .ticker {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 13px 0;
  }
  .ticker__track { gap: 18px; }
  .ticker__track span { font-size: 0.55rem; letter-spacing: 0.16em; }
  .ticker__track i { font-size: 0.5rem; }
  .ticker__track--b {
    display: flex;
    opacity: 0.42;
    animation-duration: 44s;
    animation-direction: reverse;
  }
}

/* ---------------------------------------------------------------- faq -- */
/* the plus already turns into a cross on open; what was missing is the answer
   arriving instead of appearing, and a row tall enough to hit with a thumb. */
@media (max-width: 760px) {
  .faq { gap: 24px; }
  .faq__list summary { padding: 16px 0; font-size: 0.95rem; }
  .faq__list details > p { padding-right: 22px; font-size: 0.88rem; }
  .js #faq .faq__list details[open] > p { animation: d1FaqOpen 340ms var(--ease) both; }
}

@keyframes d1FaqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- the thumb winch -- */
/* the stage keeps vertical panning — the winch only ever claims a drag that has
   already proved itself horizontal, and this is what stops the browser reading
   a sideways flick as a back gesture before the hand ever gets to try */
@media (max-width: 980px) {
  .d1-stage { touch-action: pan-y; }

  .d1-glow {
    /* the room lights a little as the strand is wound, so the drag is answered
       by more than the glass turning under the finger */
    opacity: calc(0.92 + 0.4 * var(--winch, 0));
  }
}

.d1-win { display: none; }

@media (max-width: 980px) {
  .d1-win {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 50%;
    bottom: 11%;
    translate: -50% 0;
    z-index: 9;
    pointer-events: none;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--lime) 66%, transparent);
    transition: opacity 420ms var(--ease);
  }
  .d1-stage.is-winched .d1-win { opacity: 0; }
  .d1-win i {
    width: 15px;
    height: 1px;
    background: currentColor;
  }
  .d1-win i:first-child { animation: d1WinL 2.6s var(--ease) infinite; }
  .d1-win i:last-child { animation: d1WinR 2.6s var(--ease) infinite; }
}

@keyframes d1WinL {
  0%, 100% { transform: translateX(5px);  opacity: 0.25; }
  50%      { transform: translateX(-4px); opacity: 1; }
}
@keyframes d1WinR {
  0%, 100% { transform: translateX(-5px); opacity: 0.25; }
  50%      { transform: translateX(4px);  opacity: 1; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 980px) {
  .d1-win i { animation: none; opacity: 0.7; }
  .rail-hint i { animation: none; }
  .battle__art::before { animation: none; }
  .ticker__track--b { animation-duration: 34s; }
}
