/*
 * Soft daylight: the product's visual world (face round, decisions FCW20 to FCW35). One file of
 * tokens that the landing page (`site/`, which inlines it at build) and the app's own screens
 * share. The direction lives in DESIGN.md; this file is its values.
 *
 * Fonts: Ultra Display is Hubot Sans and Ultra Text is Mona Sans, both by GitHub under the SIL
 * Open Font License 1.1, subset to Latin and served under a name that is not a reserved one
 * (licenses/hubot-sans-OFL-1.1.txt, licenses/mona-sans-OFL-1.1.txt).
 */

@font-face {
  font-family: "Ultra Display";
  src: url("/fonts/ultra-display.woff2") format("woff2");
  font-weight: 500 800;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ultra Text";
  src: url("/fonts/ultra-text.woff2") format("woff2");
  font-weight: 380 620;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* Colour. A sunny cream ground, near-black words, white, and one strong colour: orange,
     which belongs to the plush and its dot and to nothing a person reads. The action is a
     near-black pill, the way a dark pebble sits on sand. */
  --ground: oklch(0.962 0.024 85);
  --ground-sunk: oklch(0.928 0.036 80);
  --ink: oklch(0.2 0.008 70);
  --ink-soft: oklch(0.44 0.014 70);
  --line: oklch(0.2 0.008 70 / 0.12);
  --action: oklch(0.2 0.008 70);
  --action-press: oklch(0.33 0.01 70);
  --on-action: oklch(0.975 0.018 85);
  --orange: oklch(0.72 0.185 52);
  --focus: oklch(0.2 0.008 70);
  --selection: oklch(0.72 0.185 52 / 0.28);
  /* The light the plush sits in, and the frosted cards that float over it. */
  --glow: oklch(0.9 0.075 68);
  --card: oklch(0.995 0.006 85 / 0.62);
  --card-edge: oklch(1 0 0 / 0.7);
  --card-shadow: 0 18px 40px -18px oklch(0.45 0.08 60 / 0.35);

  /* Type. Display is the name and a screen's one headline, set in capitals, never a paragraph. */
  --face-display:
    "Ultra Display", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --face-text:
    "Ultra Text", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --display-stretch: 100%;
  --display-weight: 800;
  --display-tracking: -0.04em;
  --display-leading: 0.84;
  --text-weight: 440;
  --text-weight-strong: 580;
  --size-lede: clamp(1.125rem, 0.98rem + 0.55vw, 1.4375rem);
  --size-body: 1rem;
  --size-small: 0.875rem;
  --size-micro: 0.8125rem;

  /* Space: one scale, 4 px based. The gutter is 16 px on a phone and grows with the screen. */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 3rem);
  --radius-pill: 999px;
  --radius-card: 1.375rem;
  --radius-field: 1rem;
  --radius-focus: 0.375rem;
  /* The corner a chat bubble speaks from. */
  --radius-tail: 0.3rem;
  --hairline: 1px;

  /* Motion. Soft things have weight: they arrive decelerating (settle), change state quickly
     (state), and leave faster than they came (exit). Only the plush and its dot use springs;
     a control never bounces. Durations name a job, not a speed. */
  --dur-tap: 120ms;
  --dur-state: 220ms;
  --dur-move: 420ms;
  --dur-arrive: 900ms;
  --stagger: 70ms;
  --stagger-cap: 350ms;
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-state: cubic-bezier(0.2, 0, 0, 1);
  --ease-press: cubic-bezier(0.55, 0, 0.8, 0.25);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  /* How far a thing travels as it arrives, in its own line heights. Zero under reduced motion. */
  --travel: 1;
}

/* The dark theme is the same room at dusk, never the page's main face: charcoal at chroma 0.005,
   cream words, and a cream pill with near-black words as the action. Orange stays the dot's alone
   and never carries words (FCF3); the glow is a neutral lift, since any dim orange on charcoal
   reads brown (FCF4). Pages that are shown light only (the landing page) set color-scheme: light
   and never read these. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: oklch(0.19 0.005 75);
    --ground-sunk: oklch(0.155 0.004 75);
    --ink: oklch(0.95 0.02 85);
    --ink-soft: oklch(0.76 0.02 80);
    --line: oklch(0.95 0.02 85 / 0.14);
    --action: oklch(0.95 0.02 85);
    --action-press: oklch(0.87 0.022 85);
    --on-action: oklch(0.2 0.008 70);
    --orange: oklch(0.74 0.175 54);
    --focus: oklch(0.95 0.02 85);
    --selection: oklch(0.74 0.175 54 / 0.3);
    --glow: oklch(0.25 0.005 75);
    --card: oklch(0.25 0.006 75 / 0.7);
    --card-edge: oklch(1 0 0 / 0.08);
    --card-shadow: 0 18px 40px -18px oklch(0 0 0 / 0.6);
  }
}

:root[data-theme="dark"],
.dark {
  --ground: oklch(0.19 0.005 75);
  --ground-sunk: oklch(0.155 0.004 75);
  --ink: oklch(0.95 0.02 85);
  --ink-soft: oklch(0.76 0.02 80);
  --line: oklch(0.95 0.02 85 / 0.14);
  --action: oklch(0.95 0.02 85);
  --action-press: oklch(0.87 0.022 85);
  --on-action: oklch(0.2 0.008 70);
  --orange: oklch(0.74 0.175 54);
  --focus: oklch(0.95 0.02 85);
  --selection: oklch(0.74 0.175 54 / 0.3);
  --glow: oklch(0.25 0.005 75);
  --card: oklch(0.25 0.006 75 / 0.7);
  --card-edge: oklch(1 0 0 / 0.08);
  --card-shadow: 0 18px 40px -18px oklch(0 0 0 / 0.6);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-move: 200ms;
    --dur-arrive: 280ms;
    --stagger: 0ms;
    --stagger-cap: 0ms;
    --travel: 0;
  }
}
/* The landing page. Tokens come from app/styles/brand/world.css, which the build puts first. The
   page is shown light only: the html element carries data-theme="light". */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ground);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--face-text);
  font-weight: var(--text-weight);
  font-size: var(--size-body);
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--selection);
  color: var(--ink);
}

p,
h1,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: var(--hairline);
  text-underline-offset: 0.28em;
}

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

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* One viewport. The phone is the first reader, so the flow below is the phone's: the mark, the
   scene (the name, the plush, one moment), the words, the action in the thumb's reach, the
   company line. A computer composes the same parts over the whole screen. */

.page {
  /* The name's size: each half of it fills the column on a phone, and holds its own side of
     the plush on a computer. --name-part-em is the widest half in em, from the build. */
  --F: min(
    calc((100vw - 2 * var(--gutter)) / var(--name-part-em) * 0.94),
    13.5svh
  );
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: max(var(--space-3), env(safe-area-inset-top)) var(--gutter) 0;
  isolation: isolate;
  overflow: clip;
}

/* The light the plush sits in: a warm sun behind it and a softer one low on the left. */
.glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      52% 42% at 54% 40%,
      color-mix(in oklch, var(--glow) 90%, transparent) 0%,
      transparent 72%
    ),
    radial-gradient(
      40% 34% at 6% 96%,
      color-mix(in oklch, var(--glow) 55%, transparent) 0%,
      transparent 70%
    ),
    linear-gradient(180deg, var(--ground) 0%, var(--ground-sunk) 100%);
  animation: dawn 1400ms var(--ease-settle) both;
  pointer-events: none;
}

.top {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  min-height: 2.75rem;
}

.mark {
  display: inline-flex;
  margin: -0.5rem;
  padding: 0.5rem;
  color: var(--ink);
  border-radius: var(--radius-field);
}

.mark svg {
  width: 1.75rem;
  height: 1.75rem;
  overflow: visible;
}

.mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.6;
  stroke-linecap: round;
}

.mark circle {
  fill: var(--orange);
}

/* The scene: the name split round the plush, the plush between its halves, one moment. */
.scene {
  position: relative;
  flex: none;
  height: clamp(15rem, 40svh, 31rem);
  margin: 0 calc(-1 * var(--gutter));
}

.name {
  font-family: var(--face-display);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  font-size: var(--F);
  line-height: var(--display-leading);
  letter-spacing: var(--display-tracking);
  text-transform: uppercase;
  color: var(--ink);
}

/* Each half shows through a window at its own baseline and rises into it. */
.word {
  position: absolute;
  display: block;
  white-space: nowrap;
  clip-path: inset(-0.1em -0.3em -0.14em -0.3em);
}

.word > span {
  display: block;
  animation: rise var(--dur-arrive) var(--ease-settle) both;
}

/* The first half sits behind the plush, the second in front of it. */
.w1 {
  z-index: 1;
  top: var(--space-2);
  left: var(--gutter);
}

.w1 > span {
  animation-delay: 80ms;
}

.w2 {
  z-index: 3;
  right: var(--gutter);
  bottom: 7%;
}

.w2 > span {
  animation-delay: 170ms;
}

/* A one-word name keeps the first window only. */
.w1:last-child {
  top: auto;
  bottom: 7%;
}

.stage {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: min(118vw, 112%, calc(var(--scene-h, 31rem) * 1.18));
  aspect-ratio: 1;
  translate: -50% -48%;
  animation: arrive-plush 1200ms var(--ease-settle) 120ms both;
}

.scene .stage {
  --scene-h: clamp(15rem, 40svh, 31rem);
}

.body {
  position: absolute;
  inset: 0;
  transform-style: flat;
}

.still,
.body canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  /* The plush leans a little, as a soft thing put down on its own does. */
  rotate: -7deg;
}

.body canvas {
  /* Not 0: while the still shows, the plush warms up on this canvas (FCF1), and a browser skips
     work for a layer it never composites, so the warm-up would measure nothing. At 1 % in the
     still's own pose it cannot be seen. */
  opacity: 0.01;
}

/* Live: the drawn plush takes over from the still once its first picture is on the canvas, in
   the same pose, by a short dissolve, so the hand-over never jumps. The still goes only once the
   live plush covers it; leaving live brings it back at once. */
.live .body canvas {
  opacity: 1;
  transition: opacity var(--dur-move) var(--ease-settle);
}

.live .still {
  visibility: hidden;
  transition: visibility 0s linear var(--dur-move);
}

/* The lifted dot: the mark's dot, a ball of orange fur. Without a script it rests where the
   still frame leaves it, above the short stroke; with one, the script carries it. */
.dot {
  position: absolute;
  z-index: 2;
  left: var(--dot-rest-x);
  top: var(--dot-rest-y);
  width: 12%;
  aspect-ratio: 1;
  translate: -50% -50%;
  pointer-events: none;
  animation: drop 1100ms var(--ease-settle) 620ms both;
}

.dot img,
.dot canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* The live dot, drawn by the same renderer as the U, replaces its picture once it is drawn. */
.dot canvas {
  opacity: 0.01;
}

.live .dot.drawn canvas {
  opacity: 1;
  transition: opacity var(--dur-move) var(--ease-settle);
}

.live .dot.drawn img {
  visibility: hidden;
  transition: visibility 0s linear var(--dur-move);
}

.dot.behind {
  z-index: 0;
}

/* The moments: what a chat with it looks like, small and frosted. Each card holds every moment
   and shows one; the script turns them over, the ask first and its answer a beat later. A phone
   has one card under the scene, so the plush stays clear (the founder, 2026-11-17: "ui on mobile
   looks werd too"); a computer floats two over the scene. */
.moments {
  position: relative;
  z-index: 4;
  margin-top: var(--space-3);
  pointer-events: none;
}

.moment {
  display: grid;
  width: min(24rem, 100%);
  padding: var(--space-3);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow:
    inset 0 0 0 1px var(--card-edge),
    var(--card-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
  font-size: var(--size-small);
  line-height: 1.38;
  pointer-events: auto;
  animation: surface 900ms var(--ease-settle) 700ms both;
  translate: var(--px, 0) var(--py, 0);
}

/* Every moment takes the same cell, so a card is as tall as its tallest and never jumps. */
.turn {
  grid-area: 1 / 1;
  align-self: center;
  visibility: hidden;
  transition: visibility 0s linear 240ms;
}

.turn.on {
  visibility: visible;
  transition: visibility 0s;
}

/* One leaves upward and quickly; the next rises into its place. */
.turn > p {
  opacity: 0;
  filter: blur(calc(var(--travel) * 5px));
  transform: translate3d(0, calc(var(--travel) * -0.4rem), 0);
  transition:
    opacity 220ms var(--ease-exit),
    filter 220ms var(--ease-exit),
    transform 220ms var(--ease-exit);
}

.turn.on > p {
  opacity: 1;
  filter: none;
  transform: none;
  transition: none;
}

.turning .turn.on > p {
  animation: say var(--dur-move) var(--ease-settle) 160ms both;
}

/* It answers a beat after it is asked. */
.turning .turn.on > .reply {
  animation-delay: 600ms;
}

.ask {
  width: fit-content;
  max-width: 88%;
  margin-left: auto;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-field) var(--radius-field) var(--radius-tail)
    var(--radius-field);
  background: color-mix(in oklch, var(--ground-sunk) 85%, transparent);
  color: var(--ink-soft);
}

.reply {
  position: relative;
  margin-top: var(--space-2);
  padding-left: 1.25rem;
  color: var(--ink);
  font-weight: 500;
}

/* The agent speaks as its dot. */
.reply::before {
  content: "";
  position: absolute;
  left: 0.125rem;
  top: 0.32em;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    color-mix(in oklch, var(--orange) 55%, white) 0%,
    var(--orange) 60%
  );
}

/* A phone shows the second card only, and it steps through every moment. */
.m1 {
  display: none;
}

/* Only a very short phone has no room for a moment between the scene and the words: a phone's
   browser shows about 660 px of an 844 px screen, and the moment must still be there. */
@media (max-width: 55.99rem) and (max-height: 35.99rem) {
  .moments {
    display: none;
  }
}

.intro {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  padding-top: var(--space-4);
}

/* One short line that says what it is worth, set a step above the reading size. */
.lede {
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 560;
  text-wrap: balance;
  animation: settle-in var(--dur-arrive) var(--ease-settle) 380ms both;
}

.promise {
  margin-top: var(--space-2);
  color: var(--ink-soft);
  font-size: var(--size-small);
  animation: settle-in var(--dur-arrive) var(--ease-settle) 450ms both;
}

/* The one action: a near-black pill. */
.act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  height: 3.5rem;
  margin-top: var(--space-5);
  padding: 0 1.5rem 0 1.75rem;
  border-radius: var(--radius-pill);
  background: var(--action);
  color: var(--on-action);
  font-size: 1.0625rem;
  font-weight: var(--text-weight-strong);
  letter-spacing: -0.005em;
  text-decoration: none;
  box-shadow: 0 14px 30px -16px oklch(0.2 0.008 70 / 0.55);
  transition:
    background-color var(--dur-state) var(--ease-state),
    box-shadow var(--dur-state) var(--ease-state),
    scale var(--dur-tap) var(--ease-state);
  animation: settle-in var(--dur-arrive) var(--ease-settle) 540ms both;
  touch-action: manipulation;
}

.act svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: translate var(--dur-state) var(--ease-state);
}

.act:hover {
  background: var(--action-press);
  box-shadow: 0 18px 34px -16px oklch(0.2 0.008 70 / 0.6);
}

.act:hover svg {
  translate: 3px 0;
}

.act:active {
  scale: 0.97;
}

.act:focus-visible {
  outline-offset: 3px;
  border-radius: var(--radius-pill);
}

.foot {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--space-4);
  margin-top: auto;
  padding: var(--space-4) 0 max(var(--space-3), env(safe-area-inset-bottom));
  color: var(--ink-soft);
  font-size: var(--size-micro);
  animation: settle-in var(--dur-arrive) var(--ease-settle) 640ms both;
}

.foot nav {
  display: flex;
  gap: var(--space-4);
}

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}

.foot a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* A tablet held upright keeps the phone's order with room to breathe: a taller scene, and the
   action as wide as its words need, not the whole screen (found moving a finger over it at
   820 by 1180, 2026-11-17). */
@media (min-width: 40rem) and (max-width: 55.99rem) {
  .scene {
    height: clamp(20rem, 56svh, 44rem);
  }

  .scene .stage {
    --scene-h: clamp(20rem, 56svh, 44rem);
  }

  .act {
    align-self: flex-start;
    min-width: 16rem;
  }
}

/* A phone on its side: a short scene, so the action stays on the first screen. */
@media (max-width: 55.99rem) and (max-height: 30rem) {
  .scene {
    height: 11rem;
  }

  .scene .stage {
    --scene-h: 11rem;
  }
}

/* A phone on its side, as its browser shows it (about 844 by 340 to 390): the scene on the left,
   and the one moment over the words and the action on the right, so the pill and the card are
   both on the first screen (found at 844 by 390, 2026-11-18: the card was hidden and the pill
   cut by the fold; FCF11). The company line follows below. */
@media (max-width: 55.99rem) and (max-height: 30rem) and (orientation: landscape) {
  .page {
    --side: min(20rem, 42vw);
    --F: min(
      calc(
        (100vw - 2 * var(--gutter) - var(--side) - var(--space-5)) /
          var(--name-part-em) * 0.9
      ),
      19svh
    );
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--side);
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    column-gap: var(--space-5);
    /* The first three rows are the first screen; the company line is the one thing below it. */
    min-height: calc(100svh + 4.5rem);
  }

  .top {
    grid-column: 1 / -1;
  }

  .scene,
  .scene .stage {
    --scene-h: calc(100svh - 3.5rem);
  }

  .scene {
    grid-column: 1;
    grid-row: 2 / 4;
    height: auto;
    min-height: 13rem;
    margin: 0 0 0 calc(-1 * var(--gutter));
  }

  .w1 {
    top: 0;
  }

  .w2 {
    bottom: 4%;
  }

  .moments {
    display: block;
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    margin-top: 0;
  }

  .intro {
    grid-column: 2;
    grid-row: 3;
    padding: var(--space-3) 0 var(--space-3);
  }

  .lede {
    font-size: 1.375rem;
  }

  .act {
    margin-top: var(--space-4);
  }

  .foot {
    grid-column: 1 / -1;
    grid-row: 4;
  }
}

/* A computer: the name across the screen, the plush between its halves, the words and the
   action low on the left, two moments, the company line along the foot. */
@media (min-width: 56rem) {
  .page {
    --F: min(14.6vw, 25svh);
    height: 100svh;
    min-height: 40rem;
    padding-top: max(var(--space-5), env(safe-area-inset-top));
  }

  .scene {
    position: absolute;
    inset: 0;
    height: auto;
    margin: 0;
  }

  .w1 {
    top: calc(var(--space-5) + 3.25rem);
  }

  .w2 {
    top: 39svh;
    bottom: auto;
  }

  .w1:last-child {
    top: 39svh;
    bottom: auto;
  }

  .stage {
    width: min(60vw, 102svh);
    translate: -50% -53%;
  }

  .moments {
    position: absolute;
    inset: 0;
    margin: 0;
  }

  .moment {
    position: absolute;
    width: 16.5rem;
  }

  .m1 {
    display: grid;
    top: 15svh;
    right: calc(var(--gutter) + 1vw);
  }

  .m2 {
    left: var(--gutter);
    /* Above the words low on the left, however short the screen. */
    top: min(46svh, calc(100svh - 25rem));
    animation-delay: 820ms;
  }

  .intro {
    position: absolute;
    left: var(--gutter);
    bottom: calc(var(--gutter) + 2.75rem);
    width: min(25rem, 32vw);
    padding: 0;
  }

  .act {
    align-self: flex-start;
  }

  .foot {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 0;
    padding-top: 0;
  }
}

/* The hero's parts sit in a main landmark for screen readers and browsing agents, without a box of
   its own, so the page's flex column is exactly as it was (SEO8). */
.hero {
  display: contents;
}

/* The supporting pages and the page an unknown address answers with (SEO1, SEO7): the same
   morning, quieter. Cream with the sun up in the corner, the mark, a headline in the name's
   capitals, then plain reading at a comfortable measure. No script, no plush. */
.sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: max(var(--space-3), env(safe-area-inset-top)) var(--gutter) 0;
  isolation: isolate;
}

.sheet::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: min(52rem, 92svh);
  background: radial-gradient(
    58% 62% at 86% 0%,
    color-mix(in oklch, var(--glow) 88%, transparent) 0%,
    transparent 72%
  );
  animation: dawn 1400ms var(--ease-settle) both;
  pointer-events: none;
}

.doc {
  width: 100%;
  max-width: 36rem;
  padding: var(--space-8) 0;
  animation: settle-in var(--dur-arrive) var(--ease-settle) 80ms both;
}

.doc h1 {
  font-family: var(--face-display);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  font-size: clamp(2.5rem, 1.55rem + 4.2vw, 4.75rem);
  /* Capitals with a Q's tail need a full line: at 0.9 the lines of a three-line heading nearly
     touched on a phone (2026-11-17). */
  line-height: 1;
  letter-spacing: var(--display-tracking);
  text-transform: uppercase;
  text-wrap: balance;
}

.doc h2 {
  margin: 0;
  font-size: 1.1875rem;
  line-height: 1.3;
  font-weight: var(--text-weight-strong);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.doc p,
.doc li {
  text-wrap: pretty;
}

.updated {
  margin-top: var(--space-4);
  color: var(--ink-soft);
  font-size: var(--size-micro);
}

.opening {
  margin-top: var(--space-6);
  font-size: var(--size-lede);
  line-height: 1.4;
  letter-spacing: -0.012em;
}

.doc section {
  margin-top: var(--space-7);
}

.doc h2 + * {
  margin-top: var(--space-2);
}

/* The name inside a heading keeps its two halves a little apart, as the lockup does (FCF12): set as one
   run of capitals it reads as a double A (FCS46). */
.doc h1 .name-half + .name-half {
  margin-left: 0.16em;
}

/* The questions: one each, a hairline between them, the answer straight under its question. */
.doc .qa {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: var(--hairline) solid var(--line);
}

.doc .qa:first-of-type {
  margin-top: var(--space-7);
}

.list li {
  position: relative;
  padding-left: 1.25rem;
}

.list li + li {
  margin-top: var(--space-3);
}

.list li::before {
  content: "";
  position: absolute;
  left: 0.125rem;
  top: 0.62em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--ink-soft);
}

/* The one action on a reading page arrives with the page, not after it. */
.doc .act {
  margin-top: var(--space-5);
  animation: none;
}

.onward {
  margin-top: var(--space-8);
}

.onward a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  font-weight: var(--text-weight-strong);
  text-decoration: underline;
  text-decoration-color: var(--line);
  transition: text-decoration-color var(--dur-state) var(--ease-state);
}

.onward a:hover {
  text-decoration-color: currentColor;
}

.onward svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: translate var(--dur-state) var(--ease-state);
}

.onward a:hover svg {
  translate: 3px 0;
}

/* An unknown address: the headline and the way home, in the middle of the screen. */
.lost .doc {
  margin-block: auto;
}

/* The hand-over into sign-up: the words step back, the plush gathers itself, the dot goes into
   the action. */
.leaving .name,
.leaving .moments,
.leaving .intro > p,
.leaving .foot {
  opacity: 0;
  translate: 0 calc(var(--travel) * -0.5rem);
  transition:
    opacity 260ms var(--ease-exit),
    translate 260ms var(--ease-exit);
}

.leaving .stage {
  scale: 0.94;
  opacity: 0;
  transition:
    scale 420ms var(--ease-exit),
    opacity 380ms var(--ease-exit) 60ms;
}

.leaving .act {
  scale: 0.97;
}

/* Every entrance starts at 0.001, never 0: Chrome leaves an element painted at opacity 0 out of
   Largest Contentful Paint, so a page whose name, plush and words all faded in from 0 reported a
   chat card turning over seconds later as its LCP, or none (FCV11). 0.001 cannot be seen. */
@keyframes dawn {
  from {
    opacity: 0.001;
  }
}

@keyframes rise {
  from {
    opacity: 0.001;
    transform: translate3d(0, calc(var(--travel) * 0.95em), 0);
  }
}

@keyframes settle-in {
  from {
    opacity: 0.001;
    transform: translate3d(0, calc(var(--travel) * 0.6rem), 0);
  }
}

@keyframes arrive-plush {
  from {
    opacity: 0.001;
    transform: translate3d(0, calc(var(--travel) * 7%), 0)
      scale(calc(1 - var(--travel) * 0.1));
  }
}

@keyframes surface {
  from {
    opacity: 0.001;
    filter: blur(calc(var(--travel) * 10px));
    transform: translate3d(0, calc(var(--travel) * 0.75rem), 0)
      scale(calc(1 - var(--travel) * 0.04));
  }
}

@keyframes say {
  from {
    opacity: 0.001;
    filter: blur(calc(var(--travel) * 5px));
    transform: translate3d(0, calc(var(--travel) * 0.5rem), 0);
  }
}

@keyframes drop {
  from {
    opacity: 0.001;
    transform: translate3d(0, calc(var(--travel) * -60%), 0);
  }
}

/* While the script drives the dot, its own drop is the script's. */
.live .dot {
  left: 0;
  top: 0;
  animation: none;
  translate: none;
  will-change: transform;
}
:root{--name-em:6.932;--name-part-em:3.561;--dot-rest-x:67.91%;--dot-rest-y:31.50%}
