/* The second section in the figurine look (./story.ts): one picture pinned to
   the window and played by the scroll. Everything that moves is placed from
   the stage's top left by a transform the frame loop writes (./storyboard.ts
   says where), so nothing here is laid out twice; this file only says what
   each thing looks like standing still.

   The world is dark (Sergei 2026-11-26: "keep the bg dark"), and what stands
   in it is glazed ceramic and figurines, cut out of the grey they were
   pictured on. What is interface and not a toy is flat. The post is white
   with dark words (Sergei 2026-11-27: "make it white so its contrast"), and
   so are the counts by it; the tags at the
   figurines' feet and the AI notes are the page's dark with white words.
   The post was the product's cream campaign card first ("dont like current
   look (remove yellowish), make it more suitable to the rest of the scene.
   now kinda off"), then dark like the tags. Its corners stay nearly square
   ("make it less rounded"), and the notes took the same corners with it. */

@font-face {
  font-family: 'Reckless';
  src: url('/fonts/RecklessHeads-TRIAL.woff2') format('woff2');
  font-weight: 100 900;
  font-display: block;
}
/* the compact look's words (./compact.html; Sergei 2026-11-27: "lets change the font to smth like this
   (the brand one)", of a tight grotesk). Haffer, from Displaay, who make the brand's Reckless: the face
   nearest the one he showed that has every mark the words use. Klim's test copy of Söhne, nearer still,
   has no apostrophe, ampersand or colon. A trial copy, as Reckless is, for showing within the company */
@font-face {
  font-family: 'Haffer';
  src: url('/fonts/Haffer-TRIAL-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: 'Haffer';
  src: url('/fonts/Haffer-TRIAL-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: block;
}
@font-face {
  font-family: 'Haffer';
  src: url('/fonts/Haffer-TRIAL-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: block;
}

*,
::before,
::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #0a0a0a;
}
h2,
p {
  margin: 0;
}
img,
svg,
canvas {
  display: block;
  max-width: none;
}

.story {
  --story-void: #0a0a0a;
  /* the interface's surface, the hairline round it, and a field set into it */
  --story-paper: #171717;
  --story-line: rgb(255 255 255 / 0.14);
  --story-field: rgb(255 255 255 / 0.07);
  --story-ink: #fff;
  --story-grey: rgb(255 255 255 / 0.58);
  /* the product's blue, and the same blue light enough to be read as words on the dark */
  --story-accent: #2f55ff;
  --story-accent-soft: #9db0ff;
  /* What is drawn in pixels on the stage besides the canvas's marks: the post's plate and the counts by
     it. A cell of a plate's frame, of its discs and of the steps its boxes turn their corners in; a cell
     of the fine things on it, its small pictures and its lines, half that; and a box with one cell cut
     off each corner */
  --cell: 4px;
  --dot: 2px;
  --story-step: polygon(
    var(--cell) 0,
    calc(100% - var(--cell)) 0,
    calc(100% - var(--cell)) var(--cell),
    100% var(--cell),
    100% calc(100% - var(--cell)),
    calc(100% - var(--cell)) calc(100% - var(--cell)),
    calc(100% - var(--cell)) 100%,
    var(--cell) 100%,
    var(--cell) calc(100% - var(--cell)),
    0 calc(100% - var(--cell)),
    0 var(--cell),
    var(--cell) var(--cell)
  );
  position: relative;
  width: 100%;
  background: var(--story-void);
}

/* the scroll the story is played over: its 17 seconds at about a window for every three */
.story-track {
  height: 600vh;
  height: 600svh;
}

/* one window tall, held at the top while the track passes. dvh, so a phone's
   stage still reaches the window's foot once its address bar has slid away */
.story-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--story-void);
}
/* off screen (./story.ts sets it) every loop in it stands still, so none restyles the page while another part is read */
.story-stage[data-off] *,
.story-stage[data-off] *::before,
.story-stage[data-off] *::after {
  animation-play-state: paused !important;
}
/* a reader who asked for less motion: three stills one under another, nothing pinned */
.story-stills .story-stage {
  position: relative;
  min-height: 620px;
}

/* the picture stays empty until every piece is decoded, then comes up once */
.story-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}
.story-scene[data-ready] {
  opacity: 1;
}
.story-scene > *,
.story-at {
  position: absolute;
  left: 0;
  top: 0;
}
.story-moves {
  will-change: transform, opacity;
}

/* ---------------------------------------------------- the room, the Earth */

/* The room's picture is a floor that runs to the horizon, the evening's light
   on it, under a sky that is black by its top. That top fades out into the
   page's own dark, so the picture has no edge in a window taller than it. */
.story-room {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%);
}

.story-earth {
  width: 1000px;
  height: 1000px;
  margin: -500px;
}
.story-fx {
  width: 100%;
  height: 100%;
}

/* ------------------------------------------------------------ the counts */

/* a count by the post: a small plate of the post's own kind, in the same frame at half the size */
.story-pill {
  --cell: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 6px;
  border: calc(var(--cell) * var(--story-plate-rim)) solid transparent;
  border-image: var(--story-plate) var(--story-plate-cut) / calc(var(--cell) * var(--story-plate-corner)) stretch;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--story-ink);
  background: var(--story-paper) padding-box;
}
/* under the post on a desk, on its corner on a phone */
.story-chip > .story-pill {
  translate: -50% -50%;
}

/* the post and the counts by it are white: the same names for the surface, its hairline, a field set into
   it and its two inks, turned over */
.story-card,
.story-pill {
  --story-paper: #fff;
  --story-line: rgb(10 10 10 / 0.16);
  --story-field: #eef0f5;
  --story-ink: #0a0a0a;
  --story-grey: rgb(10 10 10 / 0.56);
}

/* ---------------------------------------------------------------- the card */

.story-card {
  width: var(--story-card);
  margin-left: calc(var(--story-card) / -2);
  font-size: max(15px, calc(var(--story-card) / 33.75));
  transform-origin: 50% 50%;
}
/* the post floats: a slow bob on the clock, the one thing on the card the scroll does not drive */
.story-card > * {
  animation: story-bob 4.8s ease-in-out infinite alternate;
}
@keyframes story-bob {
  from {
    translate: 0 -0.28em;
  }
  to {
    translate: 0 0.28em;
  }
}
/* the light the post wears over the room, and the flash round it when it is ready */
.story-halo {
  position: absolute;
  inset: 0;
  box-shadow:
    0 0 1.4em 0.2em rgb(255 255 255 / 0.5),
    0 0 4.5em 1.2em rgb(255 255 255 / 0.22);
}
/* The plate (Sergei 2026-11-27: "tight now its just a UI. maybe also in ceramic/pixel style?"). Its frame
   is a picture cut in nine (./pixels.ts plate) and laid as the box's border, four cells deep. The corner
   pieces are cut deeper than the frame, to hold the glint, and lie over the plate's own white; the white
   stops at the frame's inside, so the stepped corners stay open. The shadow is hard and falls two cells
   down and to the right, as a pixel window's does, the tail's with it */
.story-paper {
  position: relative;
  padding: 1.05em 1.1em 1em;
  border: calc(var(--cell) * var(--story-plate-rim)) solid transparent;
  border-image: var(--story-plate) var(--story-plate-cut) / calc(var(--cell) * var(--story-plate-corner)) stretch;
  color: var(--story-ink);
  background: var(--story-paper) padding-box;
  filter: drop-shadow(calc(var(--cell) * 2) calc(var(--cell) * 2) 0 rgb(0 0 0 / 0.4));
}
/* the tail hangs from the plate's foot, its top rows over the plate's own edge; it comes out from there */
.story-tail {
  position: absolute;
  left: 50%;
  top: calc(100% + var(--cell) * (var(--story-plate-rim) - var(--story-tail-over)));
  width: calc(var(--cell) * 9);
  margin-left: calc(var(--cell) * -4.5);
  transform-origin: 50% 0;
}
/* the post's small pictures, on the fine cell */
.story-icon {
  flex: none;
  width: calc(var(--dot) * 11);
}
.story-icon[data-icon='tick'] {
  width: calc(var(--dot) * 9);
}
.story-who {
  display: flex;
  align-items: center;
  gap: 0.7em;
}
/* who posts: a disc of whole cells (./story.ts FACE) */
.story-who > img {
  width: calc(var(--cell) * var(--story-face));
  height: calc(var(--cell) * var(--story-face));
}
.story-name {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.2;
}
.story-handle {
  font-size: 0.875em;
  line-height: 1.3;
  color: var(--story-grey);
}
.story-words-post {
  position: relative;
  margin-top: 0.9em;
  font-size: 1em;
  line-height: 1.45;
}

/* a row is a field pressed into the plate: a cell off each corner, and a cell of shade under its top and left */
.story-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-top: 0.75em;
  padding: 0 1em;
  background: var(--story-field);
  box-shadow: inset var(--cell) var(--cell) 0 rgb(10 10 30 / 0.07);
  clip-path: var(--story-step);
}
.story-row[data-row='budget'] {
  height: 4.1em;
  margin-top: 1em;
}
.story-row[data-row='when'] {
  height: 2.9em;
}
/* Over the room the budget and the time are folded away (./story.ts writes --fold, 0 open to 1 shut), as
   the product's card folds them at step 02, and one line that keeps the time opens in their place. They
   close and open by their height alone and never turn (Sergei 2026-11-26, of the product's rows folding:
   "dont like how its rotating with z axe"). 8.75em is the two rows with the gap over each */
.story-fold {
  height: calc(8.75em * (1 - var(--fold, 0)));
  overflow: hidden;
  opacity: calc(1 - var(--fold, 0) * 1.6);
}
.story-when {
  display: flex;
  align-items: flex-end;
  gap: 0.55em;
  height: calc(2.3em * var(--fold, 0));
  overflow: hidden;
  font-size: 0.875em;
  font-weight: 600;
  line-height: calc(var(--dot) * 11);
  color: var(--story-grey);
  opacity: calc(var(--fold, 0) * 2.5 - 1.5);
}
.story-row-main {
  position: relative;
  flex: 1;
  min-width: 0;
  align-self: stretch;
}
.story-row-main > * {
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  white-space: nowrap;
}
.story-unset {
  color: var(--story-grey);
}
.story-amount {
  font-size: 1.375em;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.story-sub {
  margin-top: 0.3em;
  font-size: 0.875em;
  line-height: 1.25;
  color: var(--story-grey);
  font-variant-numeric: tabular-nums;
}
.story-label {
  flex: none;
  font-size: 0.875em;
  color: var(--story-grey);
}
.story-side {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5em;
}
.story-slider {
  position: relative;
  width: 5.5em;
  height: var(--dot);
  background: rgb(10 10 10 / 0.16);
}
.story-slider-fill {
  position: absolute;
  inset: 0;
  background: var(--story-accent);
  transform-origin: 0 50%;
}
.story-slider-track {
  position: absolute;
  inset: 0;
}
.story-slider-knob {
  position: absolute;
  left: calc(var(--dot) * -3);
  top: 50%;
  width: calc(var(--dot) * 6);
  height: calc(var(--dot) * 6);
  margin-top: calc(var(--dot) * -3);
  background: #fff;
  box-shadow: 0 0 0 var(--dot) var(--story-accent);
}
/* the row being set wears one line, a cell thick so that it turns the row's corners with it, in the slider's blue */
.story-focus {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 var(--cell) var(--story-accent);
  pointer-events: none;
}
/* the launch time's wheel: one time in view, the others rolling past */
.story-reel-window {
  position: relative;
  flex: 1;
  min-width: 0;
  align-self: stretch;
  overflow: hidden;
}
.story-reel {
  display: flex;
  flex-direction: column;
}
.story-reel > span {
  display: flex;
  align-items: center;
  height: 2.9em;
  font-weight: 650;
  white-space: nowrap;
}

/* the foot is ruled off with a line of single fine cells */
.story-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1em;
  padding-top: 0.95em;
  background: repeating-linear-gradient(to right, var(--story-line) 0 var(--dot), transparent var(--dot) calc(var(--dot) * 2)) top / 100% var(--dot) no-repeat;
}
/* the seats stand in a row a cell apart, each a disc of whole cells (./story.ts SEAT), and the count of the rest closes the row */
.story-seats {
  display: flex;
  align-items: center;
  gap: var(--cell);
}
.story-seat {
  position: relative;
  flex: none;
  width: calc(var(--cell) * var(--story-seat));
  height: calc(var(--cell) * var(--story-seat));
}
/* a seat not taken: a hollow pressed into the plate, as a row is */
.story-seat > i {
  position: absolute;
  inset: 0;
  background: var(--story-field);
  box-shadow: inset var(--cell) var(--cell) 0 rgb(10 10 30 / 0.09);
}
/* a seat taken: the figurine's own head, on the grey it was pictured on */
.story-seat > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #7d7d7d;
}
.story-more {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  height: calc(var(--cell) * 6);
  margin-left: var(--cell);
  padding: 0 0.6em;
  font-size: 0.875em;
  font-weight: 700;
  line-height: 1;
  background: var(--story-field);
  clip-path: var(--story-step);
  transform-origin: 0 50%;
}

/* ----------------------------------------------------------- the creators */

.story-board {
  isolation: isolate;
}
/* placed by the middle of their feet */
.story-creator {
  width: 0;
  height: 0;
}
/* the shadow a figurine standing on the floor throws under itself */
.story-shade {
  position: absolute;
  left: calc(var(--w) * -0.5);
  top: calc(var(--w) * -0.07);
  width: var(--w);
  height: calc(var(--w) * 0.14);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(10 10 16 / 0.6), rgb(10 10 16 / 0.26) 55%, rgb(10 10 16 / 0));
}
/* Picked: a ring of dots on the floor round their feet, going round, in the tick's blue (Sergei 2026-11-27: "when
   character selected besides the tick lets add a dotted animated circle around the character"). The figurine is a
   picture, so the ring is not round its outline but on the floor it stands on, as flat as the shadow under it: its
   far half goes behind the legs and its near half in front of the feet. It comes out from the feet as the tick pops,
   and goes when they leave for the bus */
.story-ring {
  position: absolute;
  left: calc(var(--w) * -0.68);
  top: calc(var(--w) * -0.16);
  width: calc(var(--w) * 1.36);
  height: calc(var(--w) * 0.32);
  overflow: visible;
  opacity: 0;
  scale: 0.5;
  transition:
    opacity 0.2s ease-out,
    scale 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.story-creator[data-picked] .story-ring {
  opacity: 1;
  scale: 1;
}
/* forty dots round the ellipse of ./story.ts RING, whose length is 269.26: a dot every 6.7315, and a step on in
   each half second */
.story-ring > ellipse {
  fill: none;
  stroke: var(--story-accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 0 6.7315;
  animation: story-ring 0.5s linear infinite;
}
@keyframes story-ring {
  to {
    stroke-dashoffset: -6.7315;
  }
}
@media (prefers-reduced-motion: reduce) {
  .story-ring > ellipse {
    animation: none;
  }
}
/* the figurine itself, and the same picture upside down under its feet: the polished floor shows it back, fainter the further from the feet */
.story-figure,
.story-mirror {
  position: absolute;
  left: calc(var(--w) / -2);
  bottom: 0;
  width: var(--w);
  height: var(--h);
  transform-origin: 50% 100%;
}
.story-mirror {
  transform: scaleY(-1);
  filter: blur(1.5px);
  -webkit-mask-image: linear-gradient(to top, rgb(0 0 0 / 0.34), rgb(0 0 0 / 0) 42%);
  mask-image: linear-gradient(to top, rgb(0 0 0 / 0.34), rgb(0 0 0 / 0) 42%);
}
.story-mirror > .story-figure {
  left: 0;
}
.story-dance,
.story-dance > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.story-dance {
  transform-origin: 50% 100%;
}
/* picked: the figurine starts to move and keeps moving, a crouch, a hop and a sway, each on its own beat
   (Sergei 2026-11-26: "after we choose the character they also have to be animated") */
.story-creator[data-picked] .story-dance {
  animation: story-dance var(--beat) cubic-bezier(0.3, 0, 0.3, 1) infinite;
}
@keyframes story-dance {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1, 1);
  }
  14% {
    transform: translateY(0) rotate(-2deg) scale(1.05, 0.93);
  }
  40% {
    transform: translateY(-7%) rotate(2.5deg) scale(0.97, 1.05);
  }
  62% {
    transform: translateY(0) rotate(1deg) scale(1.04, 0.95);
  }
  80% {
    transform: translateY(0) rotate(-1deg) scale(1, 1);
  }
}

/* the tag at each one's feet, as a shop puts a price by a toy: who they are as a blogger, and what they ask.
   A name, a following, and under a line the one price */
.story-tag {
  position: absolute;
  left: 0;
  top: 14px;
  width: 0;
}
.story-tag-in {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 10px 8px;
  border-radius: 6px;
  white-space: nowrap;
  color: var(--story-ink);
  background: var(--story-paper);
  box-shadow:
    0 6px 16px rgb(0 0 0 / 0.4),
    inset 0 0 0 1px var(--story-line);
  translate: -50% 0;
  transform-origin: 50% 0;
}
.story-tag-in::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -5px;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  background: var(--story-paper);
  rotate: 45deg;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.story-tag-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.story-tag-following {
  display: flex;
  align-items: center;
  gap: 0.28em;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--story-grey);
}
.story-tag-following > b {
  font-weight: 700;
  color: var(--story-ink);
}
/* the word on a desk, the little figure on a phone */
.story-tag-following > svg {
  display: none;
  width: 0.9em;
  height: 0.9em;
}
.story-price {
  position: relative;
  align-self: stretch;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--story-line);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.story-asked {
  position: relative;
  display: inline-block;
}
.story-strike {
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: rgb(255 255 255 / 0.8);
  transform-origin: 0 50%;
}
.story-offer {
  position: absolute;
  inset: 7px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--story-accent-soft);
}
.story-tick {
  position: absolute;
  right: -9px;
  top: -9px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--story-accent);
  box-shadow: 0 0 0 2px var(--story-paper);
}
.story-tick svg {
  width: 100%;
  height: 100%;
}

/* ----------------------------------------------------------------- the bus */

/* placed by its picture's middle, which is also what it turns round */
.story-bus {
  width: 0;
  height: 0;
}
.story-bus-in {
  position: absolute;
  left: calc(var(--story-bus) / -2);
  top: 0;
  width: var(--story-bus);
  translate: 0 -50%;
}
.story-bus-in > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* the fire: a cell of it is a pixel of this canvas, blown up without smoothing. Its right side is at the engine's mouth */
.story-flame {
  position: absolute;
  height: 46%;
  translate: 0 -50%;
  image-rendering: pixelated;
}
/* a small fire under a hover engine (./story.ts BUS_MARKUP): the big fire's tongue on a small canvas whose right side is
   at the engine's mouth, turned a quarter about that side so it burns down */
.story-jet {
  position: absolute;
  rotate: -90deg;
  transform-origin: 100% 50%;
  image-rendering: pixelated;
}
/* a rider, held by the middle of their head at their seat. They sway in their seat on the clock, each on their own beat */
.story-rider {
  position: absolute;
  width: 0;
  height: 0;
}
.story-rider > img {
  position: absolute;
  left: calc(var(--u) * var(--w) * var(--hx) * -1);
  top: calc(var(--u) * var(--h) * var(--hy) * -1);
  width: calc(var(--u) * var(--w));
  height: calc(var(--u) * var(--h));
  transform-origin: calc(var(--hx) * 100%) 100%;
  animation: story-ride var(--beat) ease-in-out infinite alternate;
}
@keyframes story-ride {
  from {
    transform: translateY(0) rotate(-1.6deg);
  }
  to {
    transform: translateY(-2.5%) rotate(1.6deg);
  }
}

/* What is written on its side (Sergei 2026-11-27: "also make the name look better", and of what that
   became: "like the new unfair 2.0 style, maybe actually better to write launch in this style and remove
   the one on the white bg"). The launch's name, in the wordmark's own face and as black as a school
   bus's lettering, with the glaze's light under each letter, over the white stripe; the stripe is bare */
.story-bus-name {
  position: absolute;
  z-index: 4;
  translate: -50% -50%;
  white-space: nowrap;
  color: #1a1408;
  text-shadow: 0 0.035em 0 rgb(255 240 190 / 0.55);
}

/* -------------------------------------------------------- what it earned */

/* What the launch earned, by the Earth: a speedometer in pixels (Sergei 2026-11-27, of the reach set large
   in the page's display face over a line of type: "make it like a pixel speedometr"). It is drawn on a
   small canvas, a cell a pixel (./pixels.ts speedo), and shown at a whole number of screen pixels a cell
   (./storyboard.ts dial), so its edges stay hard. Beside it, who the reach came from and, under a
   hairline, the hearts, reposts and replies with the pixel marks that go up off the globe. In the middle
   under the globe on a phone; under the words, from their left side, on a desk. */
.story-earned {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  translate: -50% -50%;
}
.story-speedo {
  flex: none;
  image-rendering: pixelated;
}
.story-earned-side {
  display: flex;
  flex-direction: column;
  width: 112px;
}
.story-earned-how {
  font-size: 13px;
  line-height: 1.35;
  color: rgb(255 255 255 / 0.8);
}
.story-earned-counts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgb(255 255 255 / 0.35);
}
.story-earned-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.story-earned-count > svg {
  width: 22px;
}

/* ------------------------------------------------------------- the words */

/* the product's head: Reckless at width 85 and contrast 22 (Product/components/landing-v4/reckless.css) */
.reckless-title {
  font-family: 'Reckless', Georgia, serif;
  font-weight: 400;
  font-variation-settings:
    'wght' 400,
    'wdth' 85,
    'CNTR' 22;
  line-height: 1;
  letter-spacing: -0.03em;
  -webkit-font-smoothing: auto;
}
.story-words {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  top: 60px;
}
.story-rail {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.story-rail > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.story-rail i {
  position: relative;
  display: block;
  width: 36px;
  height: 2px;
  border-radius: 1px;
  background: rgb(255 255 255 / 0.3);
  overflow: hidden;
}
.story-rail b {
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: 0 50%;
}
.story-steps {
  position: relative;
}
/* the three steps' words share one place and cross-fade; the first holds the room */
.story-step + .story-step {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}
.story-stills .story-step + .story-step {
  position: static;
}
/* the words stand over the room's evening sky in steps 02 and 03: a soft dark under them keeps them read where the sky is brightest */
.story-title,
.story-lead {
  text-shadow: 0 1px 14px rgb(0 0 0 / 0.5);
}
.story-title {
  font-size: 32px;
  text-wrap: balance;
}
.story-lead {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.55;
  color: rgb(255 255 255 / 0.9);
}

/* The one thing AI does in the step, under its words (Sergei 2026-11-27:
   "dont forget to add these (adapt the style)"). On the product's page it is
   a soft round panel of white glass; here it is white (Sergei: "make a bg of
   this white"), with the post's line and corners, and what is typed in it
   ends in a block of a caret, a pixel like the agent's spark that leads it. */
.story-note {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 460px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--story-line);
}
.story-note-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 22px;
}
/* the agent's spark, three screen pixels a cell: its star breathes out to its tips and back on a step, never a fade */
.story-spark {
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: -4px;
}
.story-spark-tip {
  animation: story-spark-tip 1.5s steps(1, end) infinite;
}
.story-spark-mid {
  animation: story-spark-mid 1.5s steps(1, end) infinite;
}
.story-spark-near {
  animation: story-spark-near 1.5s steps(1, end) infinite;
}
.story-spark-far {
  animation: story-spark-far 1.5s steps(1, end) infinite;
}
@keyframes story-spark-tip {
  0%,
  54%,
  85%,
  100% {
    opacity: 1;
  }
  55%,
  84% {
    opacity: 0;
  }
}
@keyframes story-spark-mid {
  0%,
  69%,
  80%,
  100% {
    opacity: 1;
  }
  70%,
  79% {
    opacity: 0;
  }
}
@keyframes story-spark-near {
  0%,
  29%,
  53%,
  100% {
    opacity: 0;
  }
  30%,
  52% {
    opacity: 1;
  }
}
@keyframes story-spark-far {
  0%,
  61%,
  75%,
  100% {
    opacity: 0;
  }
  62%,
  74% {
    opacity: 1;
  }
}
/* the angle being written: one of the lineup's faces, their name, and the words as they are typed */
.story-angle {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  min-width: 0;
  padding: 0 14px 0 6px;
  border-radius: 4px;
  font-size: 15px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  background: var(--story-field);
}
.story-angle > img {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #7d7d7d;
}
.story-angle-who {
  color: var(--story-grey);
}
.story-angle-caret {
  display: inline-block;
  width: 7px;
  height: 15px;
  margin-left: 2px;
  vertical-align: -2px;
  background: #fff;
  animation: story-blink 0.9s steps(1, end) infinite;
}
@keyframes story-blink {
  50% {
    opacity: 0;
  }
}

@media (min-width: 680px) {
  .story-words {
    max-width: 560px;
  }
  .story-title {
    font-size: clamp(36px, 3vw, 44px);
  }
  .story-lead {
    font-size: 17px;
  }
}

@media (min-width: 1180px) {
  .story-words {
    left: 7.7vw;
    right: auto;
    top: clamp(84px, 12.5vh, 132px);
    width: min(452px, 36vw);
  }
  .story-pill {
    height: 36px;
    padding: 0 8px;
    font-size: 14px;
  }
  .story-earned {
    gap: 22px;
    translate: 0 -50%;
  }
  .story-earned-side {
    width: 132px;
  }
  .story-earned-how {
    font-size: 15px;
  }
  .story-earned-counts {
    gap: 13px;
    margin-top: 16px;
    padding-top: 16px;
  }
  .story-earned-count {
    gap: 9px;
    font-size: 21px;
  }
  .story-earned-count > svg {
    width: 27px;
  }
}

/* The compact look (./compact.html; Sergei 2026-11-27, of the words lost among everything in the picture:
   "lets try to make the more compact version where all the animation happens on the right side of the
   screen (so the test is on the left with enough contrast)"). On a desk the words stand alone on the
   page's dark at the left, in the middle of the window's height, and the whole picture plays right of
   them, to the window's right side and its foot (of the framed window it was first: "dont limit on the
   right and bottom"). It has no edge to see: its left side fades out into the page's dark ("it have to
   be bordered with like blured mask so nothing is visible"), over the width ./storyboard.ts gives it
   (--story-fade), eased in and out so no line shows where the fade starts or ends; ./storyboard.ts keeps
   everything that matters right of it. A phone's words are over the picture already, and stay as they
   are */
@media (min-width: 1180px) {
  .story[data-look='compact'] {
    --compact-left: 5.5vw;
    --compact-words: min(400px, 30vw);
  }
  .story[data-look='compact'] .story-words {
    left: var(--compact-left);
    top: 50%;
    width: var(--compact-words);
    translate: 0 -50%;
  }
  .story[data-look='compact'] .story-scene {
    --story-fade-mask: linear-gradient(
      to right,
      transparent 0,
      rgb(0 0 0 / 0.04) calc(var(--story-fade) * 0.15),
      rgb(0 0 0 / 0.22) calc(var(--story-fade) * 0.35),
      rgb(0 0 0 / 0.55) calc(var(--story-fade) * 0.55),
      rgb(0 0 0 / 0.86) calc(var(--story-fade) * 0.78),
      #000 var(--story-fade)
    );
    left: calc(var(--compact-left) + var(--compact-words));
    overflow: hidden;
    -webkit-mask-image: var(--story-fade-mask);
    mask-image: var(--story-fade-mask);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
  /* what the launch earned stands in the middle of the window's foot */
  .story[data-look='compact'] .story-earned {
    translate: -50% -50%;
  }
  /* A creator's tag is one short line: their name, and after a hairline their price (Sergei 2026-11-27, of
     two rows of tags three lines deep: "looks too crowded/loaded with characters and popups together").
     Their following is left to the product's own page. ./storyboard.ts lays the rows out for this tag */
  .story[data-look='compact'] .story-tag {
    top: 10px;
  }
  .story[data-look='compact'] .story-tag-in {
    flex-direction: row;
    gap: 7px;
    padding: 5px 8px 5px 9px;
    border-radius: 5px;
    box-shadow:
      0 3px 8px rgb(0 0 0 / 0.3),
      inset 0 0 0 1px var(--story-line);
  }
  .story[data-look='compact'] .story-tag-in::after {
    top: -4px;
    width: 9px;
    height: 9px;
    margin-left: -4.5px;
  }
  .story[data-look='compact'] .story-tag-name {
    font-size: 12px;
    font-weight: 600;
  }
  .story[data-look='compact'] .story-tag-following {
    display: none;
  }
  .story[data-look='compact'] .story-price {
    align-self: auto;
    margin-top: 0;
    padding: 0 0 0 7px;
    border-top: 0;
    border-left: 1px solid var(--story-line);
    font-size: 13px;
  }
  .story[data-look='compact'] .story-offer {
    inset: 0 0 0 7px;
  }
  .story[data-look='compact'] .story-tick {
    right: -7px;
    top: -7px;
    width: 15px;
    height: 15px;
  }
}

/* the compact look's words, on a desk and a phone: Haffer, its heads at medium weight and drawn tight */
.story[data-look='compact'] .story-words {
  font-family: 'Haffer', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}
.story[data-look='compact'] .story-title.reckless-title {
  font-family: 'Haffer', Inter, sans-serif;
  font-weight: 500;
  font-variation-settings: normal;
  line-height: 1.04;
  letter-spacing: -0.035em;
  -webkit-font-smoothing: antialiased;
}

/* The story on a light ground (./white.html; Sergei 2026-11-27: "make the new host copy where the first
   section will have white bg"). The stage is white and the words are the page's dark ink on it, with no
   shadow under them; the AI note is a pale panel with a hairline. The picture is the same picture: the
   room's sky fades out into the white as it faded into the dark, and the speedometer's housing and the
   tags stay dark. What the launch earned is in the dark ink beside its gauge. ./story.ts leaves the stars out
   and draws the ring dark */
.story[data-ground='light'] {
  --story-void: #fff;
}
.story[data-ground='light'] .story-words {
  --story-paper: #f4f4f5;
  --story-line: rgb(0 0 0 / 0.08);
  --story-field: rgb(0 0 0 / 0.05);
  --story-ink: #0a0a0a;
  --story-grey: rgb(0 0 0 / 0.5);
  color: #0a0a0a;
}
.story[data-ground='light'] .story-title,
.story[data-ground='light'] .story-lead {
  text-shadow: none;
}
.story[data-ground='light'] .story-lead {
  color: rgb(0 0 0 / 0.68);
}
.story[data-ground='light'] .story-rail i {
  background: rgb(0 0 0 / 0.14);
}
.story[data-ground='light'] .story-rail b,
.story[data-ground='light'] .story-angle-caret {
  background: #0a0a0a;
}
.story[data-ground='light'] .story-earned {
  color: #0a0a0a;
}
.story[data-ground='light'] .story-earned-how {
  color: rgb(0 0 0 / 0.6);
}
.story[data-ground='light'] .story-earned-counts {
  border-top-color: rgb(0 0 0 / 0.14);
}

/* a phone's card: narrower, so the rows drop their little pictures and keep their labels, and the seats are a size smaller; and a smaller tag and note */
@media (max-width: 1179px) {
  .story-card {
    font-size: 15px;
  }
  .story-paper {
    padding: 0.85em 0.85em 0.8em;
  }
  .story-row {
    padding: 0 0.8em;
  }
  .story-row > svg,
  .story-chip-desk {
    display: none;
  }
  .story-slider {
    width: 3.6em;
  }
  .story-seat {
    width: 24px;
    height: 24px;
  }
  .story-more {
    padding: 0 0.5em;
  }
  .story-tag {
    top: 9px;
  }
  .story-tag-in {
    padding: 5px 6px 6px;
  }
  .story-tag-name {
    font-size: 11px;
  }
  .story-tag-following {
    margin-top: 3px;
    font-size: 10px;
  }
  .story-tag-following > svg {
    display: block;
  }
  .story-tag-following > span {
    display: none;
  }
  .story-price {
    margin-top: 5px;
    padding-top: 5px;
    font-size: 13px;
  }
  .story-offer {
    inset: 5px 0 0;
  }
  .story-tick {
    right: -7px;
    top: -7px;
    width: 16px;
    height: 16px;
  }
  /* the back row's feet are behind the front row's heads on a phone, and so would their tags be: of a tag
     there, only the tick is kept, over the head of the one it picks */
  .story-creator[data-back] .story-tag {
    top: auto;
    bottom: calc(var(--h) + 4px);
  }
  .story-creator[data-back] .story-tag-in {
    padding: 0;
    background: none;
    box-shadow: none;
  }
  .story-creator[data-back] .story-tag-in::after,
  .story-creator[data-back] .story-tag-in > :not(.story-tick) {
    display: none;
  }
  .story-creator[data-back] .story-tick {
    right: -8px;
    top: -16px;
  }
  .story-note {
    gap: 10px;
    margin-top: 14px;
    padding: 12px 12px;
  }
  .story-note-line {
    font-size: 14px;
    line-height: 20px;
  }
  .story-spark {
    width: 20px;
    height: 20px;
    margin-top: 0;
  }
  .story-angle {
    height: 38px;
    font-size: 14px;
  }
  .story-angle > img {
    width: 28px;
    height: 28px;
  }
}

/* less motion: nothing bobs, sways, dances, twinkles or blinks. The spark stands open, its two small stars lit */
@media (prefers-reduced-motion: reduce) {
  .story-card > *,
  .story-creator[data-picked] .story-dance,
  .story-rider > img,
  .story-angle-caret,
  .story-spark-tip,
  .story-spark-mid,
  .story-spark-near,
  .story-spark-far {
    animation: none;
  }
  .story-scene {
    transition: none;
  }
}
