/* Dimly landing: the "Journey" below the hero.
   Design source: design canvas v0.28 "Website refresh 3", boards w28a (1440) and w28b (390).
   Loaded by index.html and cs/index.html only, after style.css (which keeps the tokens, base, header, hero,
   phone mockup, badges and footer). The other pages never download it.

   Layout: an intro line, four chapters on a vertical spine (Evening, Bedtime, Night, Morning), a quiet "Also"
   line, the privacy promise and a closing call with the store badges.
   - Phone first: the spine runs down the left edge, each chapter shows its UI fragment above its text.
   - From 900 px: the spine is centred, text and fragment sit on either side of it (520 / 128 / 520 at 1440).
   UI fragments are decorative drawings (aria-hidden); everything they show is also said in the chapter text.
   Each fragment is drawn at a fixed size (310 wide on phones, 520 x 440 on desktop) and scaled by --fs in a few
   steps, so its type is always declared in whole pixels.
   No JavaScript. Motion lives at the end, inside "no-preference"; the page is complete without it. */

/* Tokens: night grounds of the journey, chapter accents, the red night view (src/theme/tokens.ts `red`) */
:root {
  --j-ink: #eaf6f2;
  --j-white: #fff;
  --j-ivory-dim: #b4b1a7;

  --j-g-evening: #050f1e;
  --j-g-evening-2: #061020;
  --j-g-bedtime: #0a0c22;
  --j-g-bedtime-2: #070815;
  --j-g-night: #020204;
  --j-g-black: #000;
  --j-g-dawn: #120e16;
  --j-g-dawn-2: #1e1a28;
  --j-g-dawn-3: #141824;
  --j-g-after: #0e1520;
  --j-g-after-2: #0a121c;

  --j-mint: #2ed69e;
  --j-mint-rgb: 46, 214, 158;
  --j-mint-ink: #bff3df;
  --j-violet: #8456e0;
  --j-violet-rgb: 132, 86, 224;
  --j-violet-ink: #d9ccf7;
  --j-peach: #f0a876;
  --j-peach-rgb: 240, 168, 118;
  --j-peach-ink: #f6cfaf;

  --j-red-text: #ff6b5e;
  --j-red-text-2: #e0554a;
  --j-red-rgb: 224, 85, 74;
  --j-red-line: #4a140e;
  --j-red-surface: #120403;
  --j-red-surface-2: #170605;
  --j-red-star: #a8382a;
  --j-red-star-rgb: 168, 56, 42;
  --j-red-star-dim: #7e2618;
  --j-red-dust: #541812;
  --j-red-ember-rgb: 130, 26, 18;

  --j-line-soft: rgba(234, 246, 242, 0.14);
  --j-rule: rgba(234, 246, 242, 0.18);
  --j-chip: rgba(255, 255, 255, 0.08);
  --j-chip-on: rgba(255, 255, 255, 0.22);
  --j-edge-hi: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --j-blur: blur(30px) saturate(140%);
}

/* The landing ground stays on the app's ground colour down to the footer */
.page--landing {
  background: linear-gradient(180deg, var(--ground-top) 0, var(--ground) 1000px);
}

@media (min-width: 760px) {
  .page--landing {
    background: linear-gradient(180deg, var(--ground-top) 0, var(--ground) 900px);
  }
}

/* Shared small type */
.j-cap {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.j-eyebrow {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- Intro */
.j-intro {
  position: relative;
  background: linear-gradient(180deg, var(--ground) 0%, var(--j-g-evening) 100%);
}

.j-intro__in {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 24px 72px;
}

.j-intro__rule {
  display: block;
  width: 160px;
  height: 1px;
  margin-bottom: 32px;
  background: linear-gradient(90deg, var(--j-rule), rgba(234, 246, 242, 0));
}

.j-intro__text {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink-head);
  text-wrap: balance;
}

.j-intro__text em {
  font-style: italic;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- Journey and spine */
.journey {
  position: relative;
  --fs: 1;
}

.j-spine {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: max(24px, calc(50% - 256px));
  width: 1px;
  pointer-events: none;
  --spine: linear-gradient(180deg, rgba(var(--j-mint-rgb), 0) 0%, rgba(var(--j-mint-rgb), 0.5) 4%, rgba(var(--j-mint-rgb), 0.34) 22%, rgba(var(--j-violet-rgb), 0.44) 32%, rgba(var(--j-violet-rgb), 0.3) 48%, rgba(var(--j-red-rgb), 0.5) 56%, rgba(var(--j-red-ember-rgb), 0.44) 74%, rgba(var(--j-peach-rgb), 0.5) 84%, rgba(var(--j-peach-rgb), 0) 100%);
  --spine-glow: linear-gradient(180deg, rgba(var(--j-mint-rgb), 0) 0%, rgba(var(--j-mint-rgb), 0.4) 4%, rgba(var(--j-mint-rgb), 0.26) 22%, rgba(var(--j-violet-rgb), 0.34) 32%, rgba(var(--j-violet-rgb), 0.24) 48%, rgba(var(--j-red-rgb), 0.4) 56%, rgba(var(--j-red-ember-rgb), 0.34) 74%, rgba(var(--j-peach-rgb), 0.4) 84%, rgba(var(--j-peach-rgb), 0) 100%);
  --spine-lit: linear-gradient(180deg, rgba(var(--j-mint-rgb), 0) 0%, rgba(var(--j-mint-rgb), 0.95) 4%, rgba(var(--j-mint-rgb), 0.8) 22%, rgba(var(--j-violet-rgb), 0.9) 32%, rgba(var(--j-violet-rgb), 0.8) 48%, rgba(var(--j-red-rgb), 0.95) 56%, rgba(var(--j-red-rgb), 0.7) 74%, rgba(var(--j-peach-rgb), 0.95) 84%, rgba(var(--j-peach-rgb), 0) 100%);
}

.j-spine__glow,
.j-spine__line,
.j-spine__fill,
.j-spine__lit,
.j-spine__head {
  position: absolute;
  top: 0;
  bottom: 0;
}

.j-spine__glow {
  left: -2px;
  width: 5px;
  background: var(--spine-glow);
  filter: blur(3px);
  opacity: 0.5;
}

.j-spine__line {
  left: 0;
  width: 1px;
  background: var(--spine);
}

/* The lit part of the spine follows the scroll (see Motion). Hidden where scroll timelines are missing. */
.j-spine__fill,
.j-spine__head {
  display: none;
  left: -4px;
  width: 9px;
}

.j-spine__fill {
  overflow: hidden;
}

.j-spine__lit {
  left: 4px;
  width: 1px;
  background: var(--spine-lit);
}

.j-spine__lit::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -2px;
  width: 5px;
  background: var(--spine-lit);
  filter: blur(3px);
  opacity: 0.6;
}

.j-spine__head::after {
  content: "";
  position: absolute;
  left: 1px;
  bottom: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-head);
  box-shadow: 0 0 10px 3px rgba(242, 250, 247, 0.35);
}

/* Soft dark edges beside the spine on wide screens */
.j-vignette {
  display: none;
}

/* ---------------------------------------------------------------- Chapters */
.chapter {
  position: relative;
}

.chapter--evening {
  --c: var(--j-mint);
  --c-rgb: var(--j-mint-rgb);
  --c-ink: var(--j-mint-ink);
  --c-ground: var(--j-g-evening);
  background: radial-gradient(closest-side at 60% 30%, rgba(var(--j-mint-rgb), 0.06), rgba(var(--j-mint-rgb), 0)), linear-gradient(180deg, var(--j-g-evening) 0%, var(--j-g-evening-2) 100%);
}

.chapter--bedtime {
  --c: var(--j-violet);
  --c-rgb: var(--j-violet-rgb);
  --c-ink: var(--j-violet-ink);
  --c-ground: var(--j-g-evening-2);
  background: radial-gradient(closest-side at 40% 30%, rgba(118, 76, 214, 0.08), rgba(118, 76, 214, 0)), linear-gradient(180deg, var(--j-g-evening-2) 0%, var(--j-g-bedtime) 50%, var(--j-g-bedtime-2) 100%);
}

.chapter--night {
  --c: var(--j-red-text-2);
  --c-rgb: var(--j-red-rgb);
  --c-ink: var(--j-red-text-2);
  --c-ground: #050508;
  background: radial-gradient(closest-side at 50% 26%, rgba(var(--j-red-ember-rgb), 0.14), rgba(var(--j-red-ember-rgb), 0)), linear-gradient(180deg, var(--j-g-bedtime-2) 0%, var(--j-g-night) 24%, var(--j-g-black) 100%);
}

.chapter--morning {
  --c: var(--j-peach);
  --c-rgb: var(--j-peach-rgb);
  --c-ink: var(--j-peach-ink);
  --c-ground: #050406;
  background: radial-gradient(closest-side at 50% 30%, rgba(var(--j-peach-rgb), 0.08), rgba(var(--j-peach-rgb), 0)), linear-gradient(180deg, var(--j-g-black) 0%, var(--j-g-dawn) 24%, var(--j-g-dawn-2) 60%, var(--j-g-dawn-3) 100%);
}

.chapter__in {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 24px 72px 56px;
}

/* Chapter tag: a lit node on the spine and a small label (a capsule on the spine from 900 px) */
.chapter__tag {
  position: relative;
  display: flex;
  align-items: center;
  height: 24px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink);
}

.chapter__node {
  position: absolute;
  left: -36px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-ground);
  border: 2px solid var(--c);
  box-shadow: 0 0 0 3px var(--c-ground);
}

.chapter__glow {
  position: absolute;
  left: -36px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(var(--c-rgb), 0.7);
  pointer-events: none;
}

.chapter__grid {
  display: flex;
  flex-direction: column;
}

.chapter__copy {
  display: flex;
  flex-direction: column;
}

.chapter h2 {
  margin-top: 40px;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-head);
  text-wrap: balance;
}

.chapter__lede {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-body);
  text-wrap: pretty;
}

.chapter__points {
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.chapter__points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  background: linear-gradient(90deg, var(--j-line-soft), rgba(234, 246, 242, 0)) top left / 100% 1px no-repeat;
}

.chapter__points svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--c-ink);
}

/* Night: the whole chapter switches to the app's red night view */
.chapter--night h2 {
  color: var(--j-red-text);
}

.chapter--night .chapter__lede,
.chapter--night .chapter__points li {
  color: var(--j-red-text-2);
}

.chapter--night .chapter__points li {
  background-image: linear-gradient(90deg, rgba(var(--j-red-rgb), 0.24), rgba(var(--j-red-rgb), 0));
}

/* ---------------------------------------------------------------- Fragments (decorative drawings) */
.frag {
  position: relative;
  order: -1;
  margin-top: 24px;
  width: calc(var(--fw) * var(--fs));
  height: calc(var(--fh) * var(--fs));
  --fw: 310px;
}

.frag__stage {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--fw);
  height: var(--fh);
  transform: scale(var(--fs));
  transform-origin: 0 0;
  font-family: var(--sans);
  color: var(--j-ink);
}

.frag svg {
  display: block;
  flex: none;
}

.frag__halo {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  filter: blur(32px);
  pointer-events: none;
}

/* Glass: the app's frosted card with a light top edge, a soft stack of shadows and the grain */
.j-card,
.j-tile,
.j-pill {
  position: absolute;
  overflow: hidden;
  overflow: clip;
  -webkit-backdrop-filter: var(--j-blur);
  backdrop-filter: var(--j-blur);
}

.j-card {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.11) 36%, rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--j-edge-hi), 0 1px 1px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.16), 0 16px 32px rgba(0, 0, 0, 0.22), 0 32px 64px rgba(2, 7, 15, 0.36);
}

.j-tile {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 2px 4px rgba(0, 0, 0, 0.2), 0 16px 32px rgba(0, 0, 0, 0.3);
}

.j-card::after,
.j-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url(assets/aurora/grain.png) 0 0 / 256px 256px repeat;
  opacity: 0.14;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.j-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 2px 4px rgba(0, 0, 0, 0.2), 0 12px 24px rgba(0, 0, 0, 0.3);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--j-white);
  white-space: nowrap;
}

/* Evening: the list of thoughts */
.frag--list {
  --fh: 264px;
}

.frag--list .frag__halo {
  background: radial-gradient(closest-side at 42% 44%, rgba(var(--j-mint-rgb), 0.28), rgba(var(--j-mint-rgb), 0)), radial-gradient(closest-side at 72% 64%, rgba(28, 150, 172, 0.22), rgba(28, 150, 172, 0)), radial-gradient(closest-side at 20% 80%, rgba(118, 76, 214, 0.14), rgba(118, 76, 214, 0));
}

.list {
  left: 0;
  top: 8px;
  width: 310px;
  padding: 6px 16px 16px;
}

.list__row,
.list__input {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  font-size: 17px;
  line-height: 24px;
}

.list__row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--j-ink);
}

.list__row span {
  flex: 1;
}

.list__ring {
  color: rgba(234, 246, 242, 0.5);
}

.list__x {
  color: var(--ink-faint);
}

.list__input {
  margin: 8px -6px 0;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--j-chip);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 4px rgba(var(--j-mint-rgb), 0.06);
  color: var(--ink-head);
}

.list__input svg {
  color: var(--ink-2);
}

.list__typing {
  display: inline-flex;
  align-items: center;
}

.list__caret {
  display: inline-block;
  width: 2px;
  height: 22px;
  margin-left: 2px;
  border-radius: 1px;
  background: var(--j-mint);
  box-shadow: 0 0 6px rgba(var(--j-mint-rgb), 0.6);
}

.list__note {
  left: 64px;
  top: 220px;
}

/* Bedtime: the sound picker, the count and the mix */
.frag--sound {
  --fh: 408px;
}

.frag--sound .frag__halo {
  background: radial-gradient(closest-side at 56% 40%, rgba(var(--j-violet-rgb), 0.3), rgba(var(--j-violet-rgb), 0)), radial-gradient(closest-side at 30% 72%, rgba(30, 190, 180, 0.18), rgba(30, 190, 180, 0)), radial-gradient(closest-side at 80% 76%, rgba(220, 80, 170, 0.12), rgba(220, 80, 170, 0));
}

.sound {
  left: 0;
  top: 56px;
  width: 310px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.sound__chips {
  margin-top: 12px;
  height: 124px;
  overflow: hidden;
  overflow: clip;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 56%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 56%, transparent 100%);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--j-chip);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: rgba(234, 246, 242, 0.85);
  white-space: nowrap;
}

.chip.is-on {
  padding-left: 12px;
  background: var(--j-chip-on);
  box-shadow: var(--j-edge-hi);
  font-weight: 600;
  color: var(--j-white);
}

.sound__rule {
  margin-top: 16px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1) 70%, rgba(255, 255, 255, 0));
}

.sound__fade {
  margin-top: 16px;
  font-size: 14px;
  line-height: 19px;
  color: var(--ink-2);
}

.seg {
  margin-top: 8px;
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.seg span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(234, 246, 242, 0.7);
  white-space: nowrap;
}

.seg .is-on {
  background: var(--j-chip-on);
  box-shadow: var(--j-edge-hi), 0 2px 6px rgba(0, 0, 0, 0.2);
  font-weight: 600;
  color: var(--j-white);
}

.count {
  left: 214px;
  top: 0;
  width: 96px;
  height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.count__num {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-head);
}

.mix {
  left: 24px;
  top: 336px;
  width: 286px;
  height: 68px;
  padding: 0 12px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mix__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mix__title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  color: var(--ink-head);
}

.mix__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--j-ivory-dim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3);
  color: var(--ground);
}

/* Night: the Night sky light and the five lights */
.frag--night {
  --fh: 288px;
}

.frag--night .frag__halo {
  background: radial-gradient(closest-side at 50% 40%, rgba(var(--j-red-ember-rgb), 0.24), rgba(var(--j-red-ember-rgb), 0));
}

.sky {
  position: absolute;
  left: 0;
  top: 0;
  width: 310px;
  height: 224px;
  -webkit-mask-image: radial-gradient(closest-side at 50% 46%, #000 52%, transparent 100%);
  mask-image: radial-gradient(closest-side at 50% 46%, #000 52%, transparent 100%);
}

.sky > span {
  position: absolute;
}

.sky__band {
  left: -64px;
  top: 72px;
  width: 440px;
  height: 80px;
  transform: rotate(32deg);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(84, 24, 18, 0.62), rgba(84, 24, 18, 0));
  filter: blur(10px);
}

.sky__core {
  left: 84px;
  top: 84px;
  width: 150px;
  height: 40px;
  transform: rotate(32deg);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(126, 38, 24, 0.3), rgba(126, 38, 24, 0));
  filter: blur(8px);
}

/* Dim stars: small dots drawn with gradients, so they scale with the sky */
.sky__dust {
  inset: 0;
  --d: var(--j-red-dust) 0 1px, rgba(84, 24, 18, 0) 1.6px;
  --s: var(--j-red-star-dim) 0 1.5px, rgba(126, 38, 24, 0) 2.2px;
  background-image:
    radial-gradient(circle at 8% 22%, var(--d)), radial-gradient(circle at 15% 58%, var(--d)), radial-gradient(circle at 21% 12%, var(--d)),
    radial-gradient(circle at 27% 41%, var(--d)), radial-gradient(circle at 33% 70%, var(--d)), radial-gradient(circle at 38% 28%, var(--d)),
    radial-gradient(circle at 44% 52%, var(--d)), radial-gradient(circle at 49% 16%, var(--d)), radial-gradient(circle at 55% 64%, var(--d)),
    radial-gradient(circle at 61% 36%, var(--d)), radial-gradient(circle at 66% 78%, var(--d)), radial-gradient(circle at 71% 20%, var(--d)),
    radial-gradient(circle at 76% 48%, var(--d)), radial-gradient(circle at 82% 30%, var(--d)), radial-gradient(circle at 88% 62%, var(--d)),
    radial-gradient(circle at 92% 14%, var(--d)), radial-gradient(circle at 12% 80%, var(--d)), radial-gradient(circle at 58% 8%, var(--d)),
    radial-gradient(circle at 64% 56%, var(--d)), radial-gradient(circle at 47% 34%, var(--d)), radial-gradient(circle at 26% 30%, var(--d)),
    radial-gradient(circle at 52% 26%, var(--d)), radial-gradient(circle at 79% 70%, var(--d)), radial-gradient(circle at 90% 40%, var(--d)),
    radial-gradient(circle at 18% 30%, var(--s)), radial-gradient(circle at 30% 18%, var(--s)), radial-gradient(circle at 42% 44%, var(--s)),
    radial-gradient(circle at 53% 40%, var(--s)), radial-gradient(circle at 63% 46%, var(--s)), radial-gradient(circle at 72% 62%, var(--s)),
    radial-gradient(circle at 84% 44%, var(--s)), radial-gradient(circle at 24% 66%, var(--s)), radial-gradient(circle at 36% 52%, var(--s)),
    radial-gradient(circle at 68% 26%, var(--s)), radial-gradient(circle at 40% 38%, var(--s)), radial-gradient(circle at 50% 46%, var(--s)),
    radial-gradient(circle at 58% 52%, var(--s));
}

.sky__shoot {
  left: 180px;
  top: 36px;
  width: 64px;
  height: 1px;
  transform: rotate(24deg);
  transform-origin: 100% 50%;
  background: linear-gradient(90deg, rgba(var(--j-red-star-rgb), 0), rgba(var(--j-red-star-rgb), 0.7));
  box-shadow: 0 0 4px rgba(var(--j-red-star-rgb), 0.4);
}

.sky__star {
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--j-red-star);
  box-shadow: 0 0 8px 1px rgba(var(--j-red-star-rgb), 0.55);
}

.sky__star:nth-of-type(5) { left: 22%; top: 24%; }
.sky__star:nth-of-type(6) { left: 57%; top: 30%; }
.sky__star:nth-of-type(7) { left: 74%; top: 54%; }
.sky__star:nth-of-type(8) { left: 35%; top: 62%; }
.sky__star:nth-of-type(9) { left: 86%; top: 22%; display: none; }

.lights {
  position: absolute;
  left: 0;
  top: 204px;
  width: 310px;
  padding: 12px 8px;
  display: flex;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--j-red-surface-2) 0%, var(--j-red-surface) 100%);
  border: 1px solid var(--j-red-line);
  box-shadow: inset 0 1px 0 rgba(var(--j-red-rgb), 0.1), 0 4px 8px rgba(0, 0, 0, 0.5), 0 24px 48px rgba(0, 0, 0, 0.7);
}

.lights > span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(var(--j-red-rgb), 0.7);
  white-space: nowrap;
}

.lights i {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  opacity: 0.55;
}

.lights .is-on {
  font-weight: 600;
  color: var(--j-red-text-2);
}

.lights__embers { background: #8a2a1c; }
.lights__aurora { background: var(--j-red-star); }
.lights__breath { background: #7a3a2e; }

.lights__dark {
  background: #1e0a08;
  border: 1px solid var(--j-red-line);
}

.lights .lights__dark {
  opacity: 0.8;
}

.lights .lights__sky {
  opacity: 1;
  background-color: #4a1a18;
  background-image: radial-gradient(circle at 30% 34%, var(--j-red-star) 0 1.5px, rgba(168, 56, 42, 0) 2px), radial-gradient(circle at 64% 26%, var(--j-red-star-dim) 0 1px, rgba(126, 38, 24, 0) 1.6px), radial-gradient(circle at 58% 66%, var(--j-red-star) 0 1px, rgba(168, 56, 42, 0) 1.6px), radial-gradient(circle at 26% 70%, var(--j-red-star-dim) 0 1px, rgba(126, 38, 24, 0) 1.6px);
  box-shadow: 0 0 14px rgba(var(--j-red-star-rgb), 0.45);
}

/* Morning: how was the night, and the week as moons */
.frag--morning {
  --fh: 260px;
}

.frag--morning .frag__halo {
  background: radial-gradient(closest-side at 50% 34%, rgba(var(--j-peach-rgb), 0.22), rgba(var(--j-peach-rgb), 0)), radial-gradient(closest-side at 28% 72%, rgba(48, 196, 176, 0.12), rgba(48, 196, 176, 0)), radial-gradient(closest-side at 80% 72%, rgba(226, 118, 150, 0.12), rgba(226, 118, 150, 0));
}

.moon {
  color: #f2faf7;
}

.mood {
  left: 0;
  top: 0;
  width: 296px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mood__tiles {
  display: flex;
  gap: 8px;
}

.mood__tile {
  position: relative;
  flex: 1;
  height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(234, 246, 242, 0.72);
}

/* The chosen tile: its fill sits on a layer so it can light up on its own */
.mood__tile.is-on {
  font-weight: 600;
  color: var(--j-white);
}

.mood__tile.is-on::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--j-chip-on);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.14), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.mood__tiles,
.week__days {
  position: relative;
  z-index: 0;
}

.week {
  left: 14px;
  top: 140px;
  width: 296px;
  padding: 14px 12px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.13));
  border-color: rgba(255, 255, 255, 0.12);
}

.week .j-cap {
  padding-left: 4px;
}

.week__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  justify-items: center;
}

.week__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 2px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink-faint);
}

.week__day.is-today {
  padding: 6px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  font-weight: 600;
  color: var(--ink-head);
}

.week__dot {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.week__dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

/* ---------------------------------------------------------------- Also, privacy, closing */
.j-also {
  position: relative;
  background: linear-gradient(180deg, var(--j-g-dawn-3) 0%, var(--j-g-after) 100%);
}

.j-also__in {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.j-also__label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.j-also ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.j-also li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-body);
}

.j-also svg {
  flex: none;
  margin-top: 3px;
  color: var(--j-mint-ink);
}

.j-privacy {
  position: relative;
  background: linear-gradient(180deg, var(--j-g-after) 0%, var(--j-g-after-2) 100%);
}

.j-privacy__in {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.j-privacy__rule {
  display: block;
  width: 240px;
  max-width: 100%;
  height: 1px;
  margin-bottom: 72px;
  background: linear-gradient(90deg, rgba(234, 246, 242, 0) 0%, rgba(234, 246, 242, 0.16) 50%, rgba(234, 246, 242, 0) 100%);
}

.j-privacy__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: rgba(234, 246, 242, 0.8);
}

.j-privacy__icon::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--j-mint-rgb), 0.16), rgba(var(--j-mint-rgb), 0));
  filter: blur(8px);
}

.j-privacy__icon svg {
  position: relative;
  width: 44px;
  height: 44px;
}

.j-privacy h2 {
  margin-top: 20px;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.j-privacy ul {
  margin-top: 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 16px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-body);
}

.j-privacy li,
.j-also li {
  position: relative;
}

/* Thin separators between the three promises */
.j-privacy li + li {
  display: flex;
  align-items: center;
  gap: 16px;
}

.j-privacy li + li::before {
  content: "";
  width: 1px;
  height: 18px;
  background: linear-gradient(180deg, rgba(234, 246, 242, 0), rgba(234, 246, 242, 0.24), rgba(234, 246, 242, 0));
}

/* overflow: clip (with hidden as the fallback) everywhere a scroll-driven child sits inside: hidden would turn
   the box into a scroll container that never scrolls, and view() would stop there */
.j-close {
  position: relative;
  overflow: hidden;
  overflow: clip;
  background: linear-gradient(180deg, var(--j-g-after-2) 0%, var(--ground) 100%);
}

/* The hero's aurora, mirrored and faint, rising behind the closing call (still frame, no video) */
.j-close__aurora {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 360px;
  pointer-events: none;
  background: url(assets/aurora/aurora-tall-still.webp) 50% 0 / cover no-repeat;
  opacity: 0.36;
  transform: scaleY(-1);
  /* drawn upside down: the first stops are the bottom edge, softened so it does not cut into the footer */
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, #000 18%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, #000 18%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
}

.j-close__in {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.j-close h2 {
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.j-close .badges {
  margin-top: 32px;
  align-self: center;
  justify-content: center;
}

.j-close__link {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

/* Footer: a hairline above it on the landing */
.page--landing .site-footer {
  background: linear-gradient(90deg, rgba(234, 246, 242, 0.1), rgba(234, 246, 242, 0.1) 60%, rgba(234, 246, 242, 0)) top / 100% 1px no-repeat;
}

/* Narrow screens: the promises stack, so no separator is left hanging at the start of a line */
@media (max-width: 559px) {
  .j-privacy ul {
    flex-direction: column;
  }

  .j-privacy li + li::before {
    display: none;
  }
}

/* ---------------------------------------------------------------- Small phones: scale the drawings down */
@media (max-width: 389px) {
  .journey {
    --fs: 0.9;
  }
}

@media (max-width: 358px) {
  .journey {
    --fs: 0.77;
  }
}

/* ---------------------------------------------------------------- Wide: the spine in the middle */
@media (min-width: 760px) {
  .page--landing .site-footer {
    background-image: linear-gradient(90deg, rgba(234, 246, 242, 0), rgba(234, 246, 242, 0.1) 20%, rgba(234, 246, 242, 0.1) 80%, rgba(234, 246, 242, 0));
  }

  .j-close__aurora {
    height: 420px;
    background-image: url(assets/aurora/aurora-wide-still.webp);
    background-position: 50% 35%;
  }
}

@media (min-width: 900px) {
  .j-intro__in {
    max-width: 1040px;
    padding: 48px 40px 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .j-intro__rule {
    width: 320px;
    margin-bottom: 40px;
    background: linear-gradient(90deg, rgba(234, 246, 242, 0) 0%, var(--j-rule) 50%, rgba(234, 246, 242, 0) 100%);
  }

  .j-intro__text {
    max-width: 760px;
    margin-top: 24px;
    font-size: 40px;
  }

  .journey {
    --fs: 0.7;
    --gap: 96px;
  }

  .j-spine {
    left: 50%;
    margin-left: -1px;
  }

  .j-spine__glow {
    left: -3px;
    width: 6px;
  }

  .j-vignette {
    display: block;
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 320px, #000 calc(100% - 320px), transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 320px, #000 calc(100% - 320px), transparent 100%);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0) 14%, rgba(0, 0, 0, 0) 86%, rgba(0, 0, 0, 0.24) 100%);
  }

  .chapter--evening {
    background-image: radial-gradient(closest-side at 72% 58%, rgba(var(--j-mint-rgb), 0.06), rgba(var(--j-mint-rgb), 0)), linear-gradient(180deg, var(--j-g-evening) 0%, var(--j-g-evening-2) 100%);
  }

  .chapter--bedtime {
    --c-ground: #080d22;
    background-image: radial-gradient(closest-side at 28% 54%, rgba(118, 76, 214, 0.08), rgba(118, 76, 214, 0)), linear-gradient(180deg, var(--j-g-evening-2) 0%, var(--j-g-bedtime) 50%, var(--j-g-bedtime-2) 100%);
  }

  .chapter--night {
    background-image: radial-gradient(closest-side at 72% 50%, rgba(var(--j-red-ember-rgb), 0.14), rgba(var(--j-red-ember-rgb), 0)), linear-gradient(180deg, var(--j-g-bedtime-2) 0%, var(--j-g-night) 30%, var(--j-g-black) 100%);
  }

  .chapter--morning {
    --c-ground: #0f0c13;
    background-image: radial-gradient(closest-side at 28% 50%, rgba(var(--j-peach-rgb), 0.08), rgba(var(--j-peach-rgb), 0)), linear-gradient(180deg, var(--j-g-black) 0%, var(--j-g-dawn) 26%, var(--j-g-dawn-2) 60%, var(--j-g-dawn-3) 100%);
  }

  .chapter__in {
    max-width: 1248px;
    padding: 80px 32px;
  }

  /* The tag becomes a capsule sitting on the spine; its own ground cuts the line around it */
  .chapter__tag {
    width: fit-content;
    height: 32px;
    margin: 0 auto;
    gap: 8px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--c-ground);
    border: 1px solid rgba(var(--c-rgb), 0.3);
    box-shadow: 0 0 0 4px var(--c-ground);
  }

  .chapter__node {
    position: static;
    width: 6px;
    height: 6px;
    border: 0;
    background: var(--c);
    box-shadow: 0 0 8px rgba(var(--c-rgb), 0.8);
  }

  .chapter__glow {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    box-shadow: 0 0 32px rgba(var(--c-rgb), 0.22);
  }

  .chapter--night .chapter__glow {
    box-shadow: 0 0 32px rgba(var(--j-red-ember-rgb), 0.45);
  }

  .chapter__grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--gap) minmax(0, 1fr);
    align-items: center;
  }

  .chapter__copy {
    grid-column: 1;
    grid-row: 1;
    max-width: 520px;
  }

  .chapter--bedtime .chapter__copy,
  .chapter--morning .chapter__copy {
    grid-column: 3;
  }

  .chapter h2 {
    margin-top: 0;
  }

  .chapter__lede {
    margin-top: 24px;
    font-size: 18px;
  }

  .chapter__points {
    max-width: 440px;
    margin-top: 32px;
  }

  .frag {
    grid-column: 3;
    grid-row: 1;
    margin-top: 0;
    --fw: 520px;
    --fh: 440px;
  }

  .chapter--bedtime .frag,
  .chapter--morning .frag {
    grid-column: 1;
    justify-self: end;
  }

  .frag__halo {
    filter: blur(40px);
  }

  /* The list and the picker fade out toward the page edge */
  .frag--list .frag__stage {
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 86%, transparent 100%);
  }

  .frag--sound .frag__stage {
    -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 86%, transparent 100%);
    mask-image: linear-gradient(270deg, #000 0%, #000 86%, transparent 100%);
  }

  .j-card {
    border-radius: 26px;
    box-shadow: var(--j-edge-hi), 0 1px 1px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.16), 0 16px 32px rgba(0, 0, 0, 0.22), 0 40px 80px rgba(2, 7, 15, 0.36);
  }

  .frag--list .frag__halo {
    background-image: radial-gradient(closest-side at 42% 46%, rgba(var(--j-mint-rgb), 0.28), rgba(var(--j-mint-rgb), 0)), radial-gradient(closest-side at 70% 64%, rgba(28, 150, 172, 0.22), rgba(28, 150, 172, 0)), radial-gradient(closest-side at 24% 78%, rgba(118, 76, 214, 0.14), rgba(118, 76, 214, 0));
  }

  .list {
    top: 88px;
    width: 440px;
    padding: 8px 20px 20px;
  }

  .list__row,
  .list__input {
    gap: 14px;
    height: 52px;
  }

  .list__input {
    margin: 12px -8px 0;
    padding: 0 16px;
    border-radius: 16px;
  }

  .list__note {
    left: 200px;
    top: 328px;
  }

  .frag--sound .frag__halo {
    background-image: radial-gradient(closest-side at 58% 40%, rgba(var(--j-violet-rgb), 0.3), rgba(var(--j-violet-rgb), 0)), radial-gradient(closest-side at 36% 70%, rgba(30, 190, 180, 0.18), rgba(30, 190, 180, 0)), radial-gradient(closest-side at 78% 74%, rgba(220, 80, 170, 0.12), rgba(220, 80, 170, 0));
  }

  .sound {
    left: 80px;
    top: 80px;
    width: 440px;
    padding: 20px;
  }

  .seg {
    gap: 4px;
  }

  .seg span {
    font-size: 14px;
  }

  .count {
    left: 400px;
    top: 8px;
    width: 112px;
    height: 112px;
    gap: 4px;
    border-radius: 26px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 2px 4px rgba(0, 0, 0, 0.2), 0 16px 32px rgba(0, 0, 0, 0.3), 0 32px 64px rgba(2, 7, 15, 0.3);
  }

  .count__num {
    font-size: 76px;
  }

  .mix {
    top: 360px;
    width: 296px;
    height: 72px;
    padding: 0 14px 0 20px;
    border-radius: 26px;
  }

  .frag--night .frag__halo {
    left: -40px;
    top: -40px;
    width: calc(100% + 80px);
    height: calc(100% + 80px);
  }

  .sky {
    width: 520px;
    height: 340px;
  }

  .sky__band {
    left: -90px;
    top: 120px;
    width: 700px;
    height: 110px;
    filter: blur(12px);
  }

  .sky__core {
    left: 150px;
    top: 132px;
    width: 240px;
    height: 56px;
    filter: blur(10px);
  }

  .sky__shoot {
    left: 300px;
    top: 52px;
    width: 96px;
  }

  .sky__star:nth-of-type(8) { top: 60%; }
  .sky__star:nth-of-type(9) { display: block; }

  .lights {
    left: 60px;
    top: 320px;
    width: 400px;
    padding: 16px 12px;
  }

  .frag--morning .frag__halo {
    left: 40px;
    top: 64px;
    width: 440px;
    height: 300px;
    background-image: radial-gradient(closest-side at 50% 36%, rgba(var(--j-peach-rgb), 0.22), rgba(var(--j-peach-rgb), 0)), radial-gradient(closest-side at 30% 72%, rgba(48, 196, 176, 0.12), rgba(48, 196, 176, 0)), radial-gradient(closest-side at 76% 70%, rgba(226, 118, 150, 0.12), rgba(226, 118, 150, 0));
  }

  .mood {
    left: 40px;
    top: 80px;
    width: 400px;
    padding: 20px;
    gap: 16px;
  }

  .mood__tile {
    height: 104px;
    border-radius: 18px;
  }

  .week {
    left: 160px;
    top: 240px;
    width: 360px;
    padding: 16px 20px;
    border-radius: 22px;
    gap: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.18), 0 16px 32px rgba(0, 0, 0, 0.3), 0 32px 64px rgba(2, 7, 15, 0.3);
  }

  .week .j-cap {
    padding-left: 0;
  }

  .week__day {
    padding: 6px 4px;
  }

  .week__day.is-today {
    padding: 6px 8px;
  }

  .j-also__in {
    max-width: 1040px;
    padding: 24px 40px 96px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 32px;
  }

  .j-also ul {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 32px;
  }

  .j-also li {
    align-items: center;
    gap: 10px;
  }

  .j-also svg {
    margin-top: 0;
  }

  .j-also li + li::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 50%;
    width: 1px;
    height: 24px;
    margin-top: -12px;
    background: linear-gradient(180deg, rgba(234, 246, 242, 0), rgba(234, 246, 242, 0.24), rgba(234, 246, 242, 0));
  }

  .j-privacy__in {
    max-width: 1040px;
    padding: 0 40px 96px;
  }

  .j-privacy__rule {
    width: 480px;
    margin-bottom: 96px;
  }

  .j-privacy__icon {
    width: 64px;
    height: 64px;
  }

  .j-privacy__icon::before {
    inset: -24px;
  }

  .j-privacy__icon svg {
    width: 48px;
    height: 48px;
  }

  .j-privacy h2 {
    margin-top: 24px;
    font-size: 56px;
  }

  .j-privacy ul {
    margin-top: 24px;
    gap: 8px 24px;
    font-size: 18px;
  }

  .j-privacy li + li {
    gap: 24px;
  }

  .j-privacy li + li::before {
    height: 20px;
  }

  .j-close__in {
    max-width: 1040px;
    padding: 24px 40px 120px;
  }

  .j-close h2 {
    max-width: 820px;
    font-size: 72px;
  }

  .j-close .badges {
    margin-top: 40px;
  }

  .j-close__link {
    margin-top: 24px;
  }
}

/* The drawings grow back to their full size as the columns widen: 0.7 from 900, 0.8 from 1000,
   0.86 from 1120 and full size from 1248 (520 + 128 + 520 + padding) */
@media (min-width: 1000px) {
  .journey {
    --fs: 0.8;
  }

  .chapter h2 {
    font-size: 56px;
  }
}

@media (min-width: 1120px) {
  .journey {
    --fs: 0.86;
    --gap: 128px;
  }

  .chapter__in {
    padding: 80px 40px;
  }

  .chapter h2 {
    font-size: 64px;
  }
}

@media (min-width: 1248px) {
  .journey {
    --fs: 1;
  }
}

/* ---------------------------------------------------------------- Motion
   Time-based details (stars, caret, a rare shooting star) and scroll-driven reveals. Everything sits inside
   "no-preference", and the scroll part also inside @supports, so without either the page is simply still.
   Only transform (translate, scale) and opacity move. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes j-twinkle {
    0% {
      opacity: 0.45;
    }
    100% {
      opacity: 1;
    }
  }

  @keyframes j-caret {
    0%,
    49% {
      opacity: 1;
    }
    50%,
    100% {
      opacity: 0;
    }
  }

  /* Mostly invisible; once every 16 s the streak slides along its own direction and fades */
  @keyframes j-shoot {
    0%,
    88% {
      opacity: 0;
      translate: -46px -20px;
    }
    91% {
      opacity: 1;
    }
    97%,
    100% {
      opacity: 0;
      translate: 46px 20px;
    }
  }

  .sky__star {
    animation: j-twinkle 5s ease-in-out infinite alternate;
  }

  .sky__star:nth-of-type(6) { animation-delay: -2s; }
  .sky__star:nth-of-type(7) { animation-delay: -4s; }
  .sky__star:nth-of-type(8) { animation-delay: -1s; }
  .sky__star:nth-of-type(9) { animation-delay: -3s; }

  .list__caret {
    animation: j-caret 1.1s steps(1) infinite;
  }

  .sky__shoot {
    animation: j-shoot 16s ease-out 3s infinite both;
  }

  /* Hover: a drawing lifts a little and its glow brightens */
  @media (hover: hover) {
    .frag {
      transition: translate 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
    }

    .frag::before {
      content: "";
      position: absolute;
      inset: 4%;
      border-radius: 50%;
      background: radial-gradient(closest-side, rgba(var(--c-rgb), 0.16), rgba(var(--c-rgb), 0));
      opacity: 0;
      transition: opacity 0.5s ease;
      pointer-events: none;
    }

    .frag:hover {
      translate: 0 -3px;
    }

    .frag:hover::before {
      opacity: 1;
    }
  }

  @supports (animation-timeline: view()) {
    @keyframes j-rise {
      from {
        opacity: 0;
        translate: 0 28px;
      }
    }

    @keyframes j-lift {
      from {
        opacity: 0;
        translate: 0 32px;
      }
    }

    @keyframes j-fade-in {
      from {
        opacity: 0;
        translate: 0 6px;
      }
    }

    @keyframes j-drift {
      from {
        translate: 0 28px;
      }
      to {
        translate: 0 -28px;
      }
    }

    @keyframes j-pop {
      from {
        opacity: 0;
        scale: 0.86;
      }
    }

    @keyframes j-press {
      0%,
      30% {
        scale: 1;
      }
      62% {
        scale: 0.94;
      }
      100% {
        scale: 1;
      }
    }

    @keyframes j-light {
      from {
        opacity: 0;
      }
    }

    @keyframes j-window {
      from {
        translate: 0 -100%;
      }
      to {
        translate: 0 0;
      }
    }

    @keyframes j-counter {
      from {
        translate: 0 100%;
      }
      to {
        translate: 0 0;
      }
    }

    /* Intro and chapter text */
    .j-intro__text,
    .chapter__copy > *,
    .j-also__in,
    .j-privacy h2,
    .j-privacy ul,
    .j-close h2 {
      animation: j-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 20%;
    }

    .chapter__lede {
      animation-range: entry 5% cover 24%;
    }

    .chapter__points {
      animation-range: entry 10% cover 28%;
    }

    /* Fragment layers, front ones a little later than the card under them */
    .frag .j-card,
    .frag .sky,
    .frag .lights {
      animation: j-lift linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 24%;
    }

    .frag .j-tile,
    .frag .j-pill {
      animation: j-lift linear both;
      animation-timeline: view();
      animation-range: entry 15% cover 32%;
    }

    .frag .lights {
      animation-range: entry 10% cover 30%;
    }

    /* Back layers drift: the glows move slower than the page */
    .frag__halo,
    .sky__band {
      animation: j-drift linear both;
      animation-timeline: view();
      animation-range: cover;
    }

    .sky__band {
      animation-name: j-drift;
    }

    /* The count settles in once, the chips follow one after another */
    .count__num {
      animation: j-pop linear both;
      animation-timeline: view();
      animation-range: entry 40% cover 46%;
    }

    .chip {
      animation: j-fade-in linear both;
      animation-timeline: view();
      animation-range: entry 30% cover 36%;
    }

    .chip:nth-child(n + 3) { animation-range: entry 45% cover 40%; }
    .chip:nth-child(n + 6) { animation-range: entry 60% cover 43%; }
    .chip:nth-child(n + 9) { animation-range: entry 75% cover 46%; }

    /* Morning: "Good" is pressed and lights up as it comes into view */
    .mood__tile.is-on {
      animation: j-press linear both;
      animation-timeline: view();
      animation-range: entry 60% cover 50%;
    }

    .mood__tile.is-on::before {
      animation: j-light linear both;
      animation-timeline: --j-good;
      animation-range: entry 60% cover 42%;
    }

    .mood__tile.is-on {
      view-timeline: --j-good block;
    }

    /* The chapter node lights up as it passes the middle of the screen */
    .chapter__glow {
      animation: j-light linear both;
      animation-timeline: view();
      animation-range: cover 28% cover 46%;
    }

    /* The spine fills down to the middle of the screen: a window slides down over the lit line while the
       line slides back up by the same amount, so the colours stay put. The head marks the tip. */
    .journey {
      view-timeline: --journey block;
    }

    .j-spine__fill,
    .j-spine__head {
      display: block;
      animation: j-window linear both;
      animation-timeline: --journey;
      animation-range: cover 50vh cover calc(100% - 50vh);
    }

    .j-spine__lit {
      animation: j-counter linear both;
      animation-timeline: --journey;
      animation-range: cover 50vh cover calc(100% - 50vh);
    }
  }
}
