/* Dijmo: the words are the edit. One typeface, a quiet ground, and one accent: the caret, which is also the playhead. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00B7, U+00D7, U+00E9, U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2026, U+2212;
}
/* Metric-matched fallback, so the swap doesn't move the layout. */
@font-face {
  font-family: "Schibsted Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica"), local("Roboto");
  size-adjust: 104.3%;
  ascent-override: 93.6%;
  descent-override: 24.7%;
  line-gap-override: 0%;
}

:root {
  --ground: #f2f3f1;
  --ink: #17181a;
  --quiet: #5e6166;
  --line: #d9dbd8;
  --caret: #e0301a;
  --on-ink: #f2f3f1;
  --shade: rgba(242, 243, 241, .9);

  --f: "Schibsted Grotesk", "Schibsted Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --g: clamp(16px, 4.4vw, 64px);
  --max: 1200px;
  --w: min(100% - 2 * var(--g), var(--max));

  /* Perfect fourth, fluid at the top end. */
  --t-small: .875rem;
  --t-body: 1.125rem;
  --t-lede: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  --t-line: clamp(1.25rem, 1.05rem + 1vw, 1.75rem);
  --t-say: clamp(2rem, 1.25rem + 3.3vw, 3.75rem);
  --t-big: clamp(2.5rem, 1.3rem + 5.4vw, 5.5rem);

  --ease-edit: cubic-bezier(.7, 0, .15, 1);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --edit: .9s;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #000;
    --ink: #f2f2ef;
    --quiet: #8f8f8a;
    --line: #262626;
    --caret: #f2f2ef;
    --on-ink: #000;
    --shade: rgba(0, 0, 0, .88);
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  min-height: 100svh;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--f);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

svg { display: block; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

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

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

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

.skip {
  position: absolute;
  left: var(--g);
  top: 12px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ground);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; }

/* A checkbox switch whose label is clicked on Enter: iPhone's native haptic. Never visible. */
.haptic {
  position: fixed;
  left: -40px; top: 0;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.quiet { color: var(--quiet); }

.text-link,
.hero__join,
.foot a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  text-decoration-color: var(--line);
  transition: text-decoration-color .2s;
}
.text-link:hover,
.hero__join:hover,
.foot a:hover { text-decoration-color: currentColor; }

/* ---------- top bar ---------- */

.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--w);
  margin-inline: auto;
  padding-top: clamp(16px, 3vw, 32px);
}

.mark {
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
}
.mark__logo { display: block; width: auto; height: 24px; }

.sound {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 13px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--quiet);
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s, border-color .2s;
}
.sound:hover { color: var(--ink); }
.sound[aria-pressed="true"] { color: var(--ink); border-color: var(--quiet); }
.sound__icon {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sound__cone { fill: currentColor; stroke: none; }
.sound__wave { opacity: 0; transition: opacity .3s; }
.sound[aria-pressed="true"] .sound__wave { opacity: 1; }
.sound[aria-pressed="true"] .sound__wave--2 { transition-delay: .08s; }
.sound[aria-pressed="true"] .sound__off { opacity: 0; }
.sound__off { transition: opacity .2s; }
.sound__state { min-width: 1.6em; }

/* The caret: zero-width, so it never reflows the line it sits in. */
.caret {
  display: inline-block;
  position: relative;
  width: 0;
  height: 1em;
  vertical-align: -.12em;
}
.caret::after {
  content: "";
  position: absolute;
  left: .06em;
  top: 0;
  bottom: 0;
  width: max(2px, .085em);
  border-radius: 1px;
  background: var(--caret);
}
@media (prefers-reduced-motion: no-preference) {
  .caret::after { animation: blink 1.06s steps(1) infinite; }
  .is-typing .caret::after { animation: none; }
}
@keyframes blink { 50% { opacity: 0; } }


/* ---------- hero: the take ---------- */

.hero {
  width: var(--w);
  margin-inline: auto;
  padding-top: clamp(96px, 13vh, 136px);
  padding-bottom: clamp(56px, 9vh, 112px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "side" "demo";
  gap: 18px;
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    grid-template-areas: "title side" "demo demo";
    gap: clamp(40px, 7vh, 72px) 48px;
    align-items: end;
  }
}

.hero__title {
  grid-area: title;
  font-size: clamp(2.5rem, 1rem + 4.3vw, 5.25rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
  max-width: 18ch;
  text-wrap: balance;
}
@media (min-width: 600px) {
  .hero__phrase { white-space: nowrap; }
}
.hero__side {
  grid-area: side;
  display: grid;
  gap: 12px;
  justify-items: start;
  padding-bottom: .35em;
}
.hero__lede {
  font-size: var(--t-lede);
  line-height: 1.4;
  color: var(--quiet);
  max-width: 28ch;
}
.hero__join {
  font-size: var(--t-lede);
  font-weight: 500;
  color: var(--ink);
  text-decoration-color: var(--caret);
  text-decoration-thickness: 2px;
}
.hero__join:hover { text-decoration-color: var(--ink); }

.hero__demo {
  grid-area: demo;
  position: relative;
  max-width: 60rem;
  margin-top: 26px;
}
@media (min-width: 960px) {
  .hero__demo { margin-top: 0; }
}

.take { --tsize: clamp(1.1875rem, .9rem + 1.2vw, 1.875rem); }

/* The clip's duration: a hairline, with the running time riding its end. */
.take__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(14px, 2.4vh, 24px);
}
.take__rule {
  flex: 1;
  height: 1px;
  background: var(--quiet);
  opacity: .45;
  transform-origin: left center;
  transition: transform .7s var(--ease-edit);
}
.take__time {
  font-size: 1rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  transition: transform .7s var(--ease-edit);
}

.take__words {
  position: relative;
  font-size: var(--tsize);
  line-height: 1.6;
  letter-spacing: -.008em;
}
.take__words .w { display: inline-block; }

/* A pause: a quiet mark with its length, between two hairlines. */
.g {
  font-size: .5em;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--quiet);
  vertical-align: .32em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.g::before, .g::after {
  content: "";
  display: inline-block;
  width: 1.6em;
  height: 1px;
  margin: 0 .5em;
  background: currentColor;
  vertical-align: .32em;
  opacity: .8;
}

.cmd {
  display: flex;
  align-items: center;
  min-height: 1.5em;
  margin-top: clamp(16px, 2.6vh, 26px);
  padding-right: 8em;
  font-size: var(--t-line);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.3;
  white-space: nowrap;
}
.cmd__text { overflow: hidden; }

/* The edited take, shown beside the raw one when nothing animates. */
.take__after { margin-top: clamp(28px, 5vh, 48px); }
.take__after .take__rule { flex: 0 0 auto; width: calc((100% - 4.5em) * .389); }
.take .cmd { display: none; }

/* Live: the paragraph is laid out invisibly; visible words are placed over it and glide. */
.take.is-live .take__after { display: none; }
.take.is-live .cmd { display: flex; }
.take.is-live .take__words { visibility: hidden; }
.take.is-live .wv,
.take.is-live .take__under { visibility: visible; }
.take.is-live .take__words .w.is-gone { display: none; }
.take.is-live .take__words.is-measuring .w.is-gone { display: inline-block; }
.wv {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  transition: transform .62s var(--ease-edit), opacity .32s var(--ease-out);
}
.take.no-tx .wv,
.take.no-tx .take__under { transition: none; }
.wv.is-out { opacity: 0; }
.wv.f::after {
  content: "";
  position: absolute;
  left: -.06em;
  right: -.06em;
  top: 52%;
  height: max(2px, .075em);
  border-radius: 1px;
  background: var(--caret);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s var(--ease-out);
}
.wv.f.is-struck::after { transform: none; }
.take.is-reading .wv { opacity: .24; transition: transform .62s var(--ease-edit), opacity .14s linear; }
.take.is-reading .wv.is-said { opacity: 1; }
.take .wv.is-out,
.take .wv.is-hop { opacity: 0; }
.take .wv.is-hop { transition: opacity .12s linear; }
.take__under {
  position: absolute;
  left: 0;
  top: 0;
  width: 100px;
  height: 2px;
  border-radius: 1px;
  background: var(--caret);
  opacity: 0;
  transform-origin: left center;
  transition: transform .16s var(--ease-out), opacity .25s;
  pointer-events: none;
}
.take.is-reading .take__under { opacity: 1; }

.demo-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  min-height: 40px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--quiet);
  font-size: var(--t-small);
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: .25em;
}
.demo-toggle:hover { color: var(--ink); text-decoration-color: currentColor; }
@media (max-width: 599px) {
  .cmd { padding-right: 0; }
  .demo-toggle { position: static; display: block; margin: 2px 0 0 auto; }
}

/* ---------- story sections ---------- */

main > section:not(.hero) {
  width: var(--w);
  margin-inline: auto;
}

.say {
  font-size: var(--t-say);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.038em;
  max-width: 19ch;
  text-wrap: balance;
}

.problem {
  padding-block: clamp(120px, 22vh, 240px) clamp(80px, 14vh, 160px);
  display: grid;
  gap: clamp(24px, 4vh, 40px);
}
.pile {
  display: grid;
  justify-items: start;
  gap: .08em;
  font-size: var(--t-say);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.038em;
  color: var(--quiet);
}
.pile li { position: relative; }
.pile li::after {
  content: "";
  position: absolute;
  left: -.04em;
  right: -.04em;
  top: 55%;
  height: max(2px, .05em);
  border-radius: 1px;
  background: var(--caret);
  transform: scaleX(0);
  transform-origin: left center;
}
.problem__after { display: grid; gap: clamp(18px, 3vh, 28px); }
.cmd--answer {
  margin-top: clamp(4px, 1vh, 12px);
  padding-right: 0;
}
.problem .cmd--answer { display: none; }

.turn {
  min-height: 92svh;
  display: grid;
  align-content: center;
  padding-block: 64px;
}
.turn__q {
  font-size: var(--t-big);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
  max-width: 14ch;
}
.ch { opacity: 0; }
.ch.on { opacity: 1; }

/* Product: three beats, named by verbs; the right side is type only. */
.product { padding-block: clamp(80px, 14vh, 160px); }
.beats { margin-top: clamp(48px, 9vh, 96px); }
.beat {
  display: grid;
  gap: 32px 48px;
  align-items: center;
  padding-block: clamp(48px, 10vh, 112px);
}
@media (min-width: 900px) {
  .beat { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.beat__verb {
  font-size: var(--t-say);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.038em;
  margin-bottom: .45em;
}
.beat__text p {
  font-size: var(--t-lede);
  line-height: 1.45;
  color: var(--quiet);
  max-width: 30ch;
}

/* Record: each source arms, like a track. */
.arms {
  display: grid;
  gap: .06em;
  font-size: var(--t-say);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.038em;
}
.arm {
  position: relative;
  display: flex;
  align-items: center;
  gap: .42em;
}
.arm::before, .arm::after {
  content: "";
  flex: none;
  width: .3em;
  height: .3em;
  border-radius: 50%;
}
.arm::before { box-shadow: inset 0 0 0 max(1.5px, .045em) var(--quiet); }
.arm::after {
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -.15em;
  background: var(--caret);
  transition: transform .22s cubic-bezier(.3, 1.5, .5, 1), opacity .15s;
}

/* Say it: a request, a one-line preview, and two quiet text buttons. */
.ask { display: grid; gap: 18px; }
.ask__line {
  font-size: clamp(1.625rem, 1.1rem + 2vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.3;
  min-height: 1.3em;
  white-space: nowrap;
}
.ask__preview {
  font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem);
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  transition: opacity .4s var(--ease-out);
}
.ask__actions { display: flex; gap: 28px; font-size: 1.125rem; font-weight: 500; }
.ask__btn {
  color: var(--quiet);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
  transition: color .2s, text-decoration-color .2s;
}

/* Post it: one caption sets itself in three outlined frames. */
.frames {
  display: flex;
  align-items: flex-end;
  gap: 4%;
  padding-bottom: 2.2em;
}
.fr {
  position: relative;
  margin: 0;
  border: 1px solid var(--quiet);
  border-radius: 6px;
  container-type: size;
  transition: transform .8s var(--ease-edit), opacity .5s var(--ease-out);
}
.fr--tall { width: 21%; aspect-ratio: 9 / 16; }
.fr--square { width: 31%; aspect-ratio: 1; }
.fr--wide { width: 40%; aspect-ratio: 16 / 9; }
.fr__cap {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 12%;
  text-align: center;
  font-size: max(12px, 10.5cqmin);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.015em;
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
}
.fr figcaption {
  position: absolute;
  left: 0;
  top: calc(100% + .7em);
  font-size: .875rem;
  font-weight: 500;
  color: var(--quiet);
  font-variant-numeric: tabular-nums;
}

/* Promise. */
.promise {
  padding-block: clamp(120px, 22vh, 240px);
  display: grid;
  gap: clamp(16px, 2.6vh, 28px);
}
.promise__note {
  margin-top: clamp(8px, 2vh, 20px);
  font-size: var(--t-lede);
}

/* Outcome: a hairline runs to its end. */
.outcome {
  padding-block: clamp(96px, 18vh, 200px);
  display: grid;
  gap: clamp(16px, 2.6vh, 28px);
}
.rail {
  position: relative;
  height: 2px;
  margin-bottom: clamp(40px, 8vh, 80px);
  background: var(--line);
  border-radius: 1px;
}
.rail__fill {
  position: absolute;
  inset: 0;
  background: var(--ink);
  border-radius: 1px;
  transform-origin: left center;
}
.rail::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -9px;
  width: 2px;
  height: 20px;
  border-radius: 1px;
  background: var(--caret);
}
.outcome__after { color: var(--quiet); }

/* ---------- the close: the waitlist line ---------- */

.join {
  padding-block: clamp(96px, 18vh, 220px) clamp(72px, 12vh, 140px);
  scroll-margin-top: 24px;
}
.join__title {
  font-size: var(--t-say);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.038em;
  max-width: 19ch;
  margin-bottom: clamp(32px, 6vh, 56px);
}

.entry { max-width: 920px; }
.entry__label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--quiet);
  margin-bottom: 4px;
}
.entry__row {
  display: grid;
  gap: 16px;
  align-items: center;
}
@media (min-width: 720px) {
  .entry__row { grid-template-columns: minmax(0, 1fr) auto; gap: 24px; }
}
.entry__field { position: relative; min-width: 0; }
.entry__input {
  display: block;
  width: 100%;
  padding: .12em 0 .16em;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: clamp(1.75rem, 1rem + 3.6vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.2;
  caret-color: var(--caret);
  -webkit-appearance: none;
  appearance: none;
}
.entry__input::placeholder { color: var(--quiet); opacity: 1; }
.entry__input:focus { outline: none; }
.entry__input:focus-visible { outline: none; }
.entry__field:has(.entry__input:focus-visible) {
  outline: 2px solid var(--caret);
  outline-offset: 6px;
  border-radius: 4px;
}
.entry__input[aria-invalid="true"] { text-decoration: underline wavy var(--quiet) 1px; text-underline-offset: .2em; }

/* With JS, a thick caret replaces the native one. */
.entry__mirror {
  position: absolute;
  left: 0; top: 0;
  visibility: hidden;
  white-space: pre;
  font-size: clamp(1.75rem, 1rem + 3.6vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.2;
  pointer-events: none;
}
.entry__caret {
  position: absolute;
  left: 0;
  top: .2em;
  height: 1.05em;
  width: 0;
  font-size: clamp(1.75rem, 1rem + 3.6vw, 3.25rem);
  pointer-events: none;
  opacity: 0;
}
.entry__caret::after {
  content: "";
  position: absolute;
  left: .02em;
  top: 0;
  bottom: 0;
  width: max(3px, .07em);
  border-radius: 1px;
  background: var(--caret);
}
.has-caret .entry__input { caret-color: transparent; }
.entry__caret.on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .entry__caret.on.blink::after { animation: blink 1.06s steps(1) .5s infinite; }
}

.entry__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s var(--ease-out), opacity .3s;
}
.entry__send:active { transform: scale(.97); }
.entry__key {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .75;
}
@media (max-width: 719px) {
  .entry__send { width: 100%; }
}

.entry__rail {
  position: relative;
  height: 2px;
  margin-top: 10px;
  background: var(--line);
  border-radius: 1px;
}
.entry__fill {
  position: absolute;
  inset: 0;
  background: var(--ink);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left center;
}
.entry__fill::after { content: none; }
.entry.is-sending .entry__fill,
.entry.is-sent .entry__fill { transform: none; transition: transform var(--edit) var(--ease-edit); }

.entry__status {
  min-height: 1.6em;
  margin-top: 18px;
  font-size: var(--t-lede);
  font-weight: 500;
  line-height: 1.45;
}
.entry__status:empty { min-height: 1.6em; }
.entry__note { margin-top: 6px; font-size: 1rem; }
.entry.is-sent .entry__send { opacity: .35; pointer-events: none; }
.entry.is-sent .entry__caret { opacity: 0; }

/* ---------- footer ---------- */

.foot {
  width: var(--w);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 28px 40px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 1rem;
}
.foot__ship { color: var(--ink); font-weight: 500; }
.foot__nav { display: flex; gap: 24px; }
.foot a { color: var(--quiet); }
.foot a:hover { color: var(--ink); }

/* ---------- small pages: confirm, leave, errors, privacy ---------- */

.note-page {
  width: var(--w);
  min-height: 78svh;
  margin-inline: auto;
  padding-block: clamp(112px, 18vh, 180px) clamp(64px, 10vh, 120px);
  display: grid;
  align-content: start;
  gap: 18px;
}
.note-page__title {
  font-size: var(--t-say);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.038em;
  max-width: 19ch;
  text-wrap: balance;
}
.note-page__body {
  font-size: var(--t-lede);
  line-height: 1.45;
  color: var(--quiet);
  max-width: 38ch;
}
.note-page__next { margin-top: 10px; font-size: var(--t-lede); font-weight: 500; }
.note-page__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 14px;
  font-size: var(--t-lede);
  font-weight: 500;
}

.prose {
  width: var(--w);
  margin-inline: auto;
  padding-block: clamp(112px, 18vh, 180px) clamp(64px, 12vh, 140px);
}
.prose__title {
  font-size: var(--t-say);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.038em;
}
.prose__lede {
  margin-top: 14px;
  font-size: var(--t-lede);
  color: var(--quiet);
}
.prose h2 {
  margin-top: 2.4em;
  margin-bottom: .5em;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.prose p, .prose li { line-height: 1.6; max-width: 60ch; }
.prose ul, .prose p { max-width: 640px; }
.prose ul { padding-left: 1.15em; display: grid; gap: .4em; }
.prose li::marker { color: var(--quiet); }

.note-page__code {
  font-size: var(--t-big);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--quiet);
  font-variant-numeric: tabular-nums;
  margin-bottom: clamp(8px, 2vh, 20px);
}
.celebrate__um { display: inline-block; position: relative; color: var(--quiet); transition: opacity .3s var(--ease-out); }
.celebrate__um::after {
  content: "";
  position: absolute;
  left: -.04em;
  right: -.04em;
  top: 55%;
  height: max(2px, .055em);
  border-radius: 1px;
  background: var(--caret);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--ease-out);
}
.celebrate__um.is-struck::after { transform: none; }
.celebrate__um.is-out { opacity: 0; }
.celebrate__rest { display: inline-block; transition: transform .6s var(--ease-edit); }

/* ================================================================
   Motion. Hidden starting states apply only when JS is running
   (html.js) and the visitor hasn't asked for reduced motion.
   ================================================================ */

@media (prefers-reduced-motion: no-preference) {
  /* Problem: the jargon piles up, the last line lands, then one command clears the pile. */
  .js .problem .pile li,
  .js .problem__after > .say {
    opacity: 0;
    transform: translateY(-.35em);
  }
  .js .problem.is-on .pile li,
  .js .problem.is-on .problem__after > .say {
    opacity: 1;
    transform: none;
    transition: opacity .35s var(--ease-out), transform .5s cubic-bezier(.3, 1.35, .5, 1);
  }
  .js .problem.is-on .pile li:nth-child(1) { transition-delay: .25s; }
  .js .problem.is-on .pile li:nth-child(2) { transition-delay: .5s; }
  .js .problem.is-on .pile li:nth-child(3) { transition-delay: .75s; }
  .js .problem.is-on .pile li:nth-child(4) { transition-delay: 1s; }
  .js .problem.is-on .pile li:nth-child(5) { transition-delay: 1.25s; }
  .js .problem.is-on .problem__after > .say { transition: opacity .9s var(--ease-out) 1.9s, transform .9s var(--ease-out) 1.9s; }
  .js .problem .cmd--answer { display: flex; opacity: 0; transition: opacity .3s; }
  .js .problem.is-asking .cmd--answer { opacity: 1; }
  .js .problem.is-struck .pile li::after { transform: none; transition: transform .26s var(--ease-out); }
  .js .problem.is-struck .pile li:nth-child(2)::after { transition-delay: .12s; }
  .js .problem.is-struck .pile li:nth-child(3)::after { transition-delay: .24s; }
  .js .problem.is-struck .pile li:nth-child(4)::after { transition-delay: .36s; }
  .js .problem.is-struck .pile li:nth-child(5)::after { transition-delay: .48s; }
  .js .problem.is-folded .pile li { opacity: 0; transition: opacity .4s var(--ease-out); }
  .problem__after { transition: transform .8s var(--ease-edit) .15s; }
  .js .problem.is-folded .problem__after { transform: translateY(calc(-1 * var(--fold, 0px))); }

  /* Record: the rings fill, one by one, as each source arms. */
  .js .beat--record .arm { opacity: .38; transition: opacity .3s var(--ease-out); }
  .js .beat--record .arm::after { transform: scale(0); opacity: 0; }
  .js .beat--record.is-on .arm { opacity: 1; }
  .js .beat--record.is-on .arm::after { transform: none; opacity: 1; }
  .js .beat--record.is-on .arm:nth-child(1), .js .beat--record.is-on .arm:nth-child(1)::after { transition-delay: .3s; }
  .js .beat--record.is-on .arm:nth-child(2), .js .beat--record.is-on .arm:nth-child(2)::after { transition-delay: .6s; }
  .js .beat--record.is-on .arm:nth-child(3), .js .beat--record.is-on .arm:nth-child(3)::after { transition-delay: .9s; }
  .js .beat--record.is-on .arm:nth-child(4), .js .beat--record.is-on .arm:nth-child(4)::after { transition-delay: 1.2s; }

  /* Say it: the preview appears, Apply is pressed, Undo is offered. */
  .js .beat--say .ask__preview,
  .js .beat--say .ask__actions { opacity: 0; transition: opacity .4s var(--ease-out); }
  .js .beat--say.is-preview .ask__preview,
  .js .beat--say.is-preview .ask__actions { opacity: 1; }
  .js .beat--say.is-done .ask__btn--apply { color: var(--ink); text-decoration-color: var(--caret); text-decoration-thickness: 2px; }
  .js .beat--say.is-done .ask__btn--undo { color: var(--ink); transition-delay: .5s; }

  /* Post it: the frames draw in, then the caption sets itself in each. */
  .js .beat--post .fr { opacity: 0; transform: translateY(10px); }
  .js .beat--post .fr__cap { opacity: 0; transform: translateY(.3em); }
  .js .beat--post.is-on .fr,
  .js .beat--post.is-on .fr__cap { opacity: 1; transform: none; }
  .js .beat--post.is-on .fr:nth-child(2) { transition-delay: .1s; }
  .js .beat--post.is-on .fr:nth-child(3) { transition-delay: .2s; }
  .js .beat--post.is-on .fr:nth-child(1) .fr__cap { transition-delay: .7s; }
  .js .beat--post.is-on .fr:nth-child(2) .fr__cap { transition-delay: 1s; }
  .js .beat--post.is-on .fr:nth-child(3) .fr__cap { transition-delay: 1.3s; }

  /* Promise: two lines take their time; the third is instant. */
  .js .promise__line, .js .promise__note { opacity: 0; }
  .js .promise.is-on .promise__line { opacity: 1; transition: opacity 1.1s var(--ease-out); }
  .js .promise.is-on .promise__line:nth-child(2) { transition-delay: .9s; }
  .js .promise.is-on .promise__line--instant { transition: opacity 0s linear 2.3s; }
  .js .promise.is-on .promise__note { opacity: 1; transition: opacity .8s var(--ease-out) 3s; }

  /* Outcome: the playhead runs to the end, then the words arrive. */
  .js .outcome .rail { container-type: inline-size; }
  .js .outcome .rail__fill { transform: scaleX(0); }
  .js .outcome .rail::after { transform: translateX(-100cqi); opacity: 0; }
  .js .outcome.is-on .rail__fill { transform: none; transition: transform 1.6s var(--ease-edit) .1s; }
  .js .outcome.is-on .rail::after { transform: none; opacity: 1; transition: transform 1.6s var(--ease-edit) .1s, opacity .2s .1s; }
  .js .outcome > .say { opacity: 0; transform: translateY(.25em); }
  .js .outcome.is-on > .say { opacity: 1; transform: none; transition: opacity .8s var(--ease-out) 1.6s, transform .8s var(--ease-out) 1.6s; }
  .js .outcome.is-on > .say + .say { transition-delay: 2.3s; }
}

/* With reduced motion, everything is already where it ends up. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .ch { opacity: 1; }
}
