/* Lumi — public site.
   One stylesheet for every page. Colours come from DESIGN.md (RoomTheme): the wall paint follows
   the visitor's clock (html[data-phase]), phosphor lime only means "charged / Lumi's light". */

/* ---------- Font: Nunito (SIL OFL 1.1), self-hosted, variable 500–900 ---------- */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("/assets/fonts/nunito-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("/assets/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("/assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Five type steps per page. */
  --step-display: clamp(2.5rem, 1rem + 5.4vw, 6.5rem);
  --step-title: clamp(1.5rem, 1.05rem + 1.6vw, 2.25rem);
  --step-lead: clamp(1.1875rem, 1.05rem + 0.45vw, 1.4375rem);
  --step-body: 1.125rem;
  --step-small: 0.9375rem;

  --margin: clamp(16px, 2.6vw, 40px);
  --gap: clamp(16px, 2vw, 32px);
  --section-pad: clamp(80px, 8.5vw, 136px);
  --radius: 18px;
  --rim: 3px;

  /* Phosphor sticker plastic (DESIGN.md "One Material Rule"). */
  --phosphor-unlit: #eef4d2;
  --phosphor-lit: #d9ff85;
  --phosphor-deep: #9ee85a;
  --creature-ink: #241f45;
  --shadow-ink: 27 22 64;
  --sunny-glow: #ffd978;
  --sunny-glow-hover: #ffe59e;
  --star-gold: #f5a623;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-room: 700ms;

  /* Default room: day (also the no-JS state). */
  --wall-top: #cfe0f1;
  --wall-bottom: #b4c9e2;
  --duvet: #f1f2fa;
  --duvet-bottom: #e3e6f4;
  --ink: #1f2a4a;
  --ink-2: #46557a;
  --matte: #ffffff;
  --glow: 0;
  --sticker-fill: var(--phosphor-unlit);
  --window: 1;
  --lamp: 0;
  color-scheme: light;
}

:root[data-phase="morning"] {
  --wall-top: #f8dec9; --wall-bottom: #eec3aa; --duvet: #f7ebf0; --duvet-bottom: #efdbe4;
  --ink: #3a2440; --ink-2: #6e4b62; --matte: #ffffff; --glow: 0.12; --sticker-fill: #ecf5c9;
  --window: 1; --lamp: 0; color-scheme: light;
}
:root[data-phase="day"] {
  --wall-top: #cfe0f1; --wall-bottom: #b4c9e2; --duvet: #f1f2fa; --duvet-bottom: #e3e6f4;
  --ink: #1f2a4a; --ink-2: #46557a; --matte: #ffffff; --glow: 0; --sticker-fill: var(--phosphor-unlit);
  --window: 1; --lamp: 0; color-scheme: light;
}
:root[data-phase="evening"] {
  --wall-top: #bba6d8; --wall-bottom: #9b84c2; --duvet: #e6d7f0; --duvet-bottom: #d9c6e8;
  --ink: #2a1e4a; --ink-2: #4b3d72; --matte: #ffffff; --glow: 0.4; --sticker-fill: #e4f9ae;
  --window: 0.55; --lamp: 0; color-scheme: light;
}
:root[data-phase="lamp"] {
  --wall-top: #4a4c8c; --wall-bottom: #3a3c74; --duvet: #434a8c; --duvet-bottom: #313670;
  --ink: #f2f0ff; --ink-2: #bdbae6; --matte: #313670; --glow: 0.45; --sticker-fill: #e2fba3;
  --window: 0; --lamp: 1; color-scheme: dark;
}
:root[data-phase="night"] {
  --wall-top: #323874; --wall-bottom: #262a58; --duvet: #434a8c; --duvet-bottom: #313670;
  --ink: #f2f0ff; --ink-2: #bdbae6; --matte: #313670; --glow: 1; --sticker-fill: var(--phosphor-lit);
  --window: 0; --lamp: 0; color-scheme: dark;
}
/* Without script the room follows the system appearance. */
@media (prefers-color-scheme: dark) {
  :root:not([data-phase]) {
    --wall-top: #323874; --wall-bottom: #262a58; --duvet: #434a8c; --duvet-bottom: #313670;
    --ink: #f2f0ff; --ink-2: #bdbae6; --matte: #313670; --glow: 1; --sticker-fill: var(--phosphor-lit);
    --window: 0; --lamp: 0; color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-body);
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
  background: var(--duvet);
  overflow-x: clip;
  transition: background-color var(--t-room) ease, color var(--t-room) ease;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.14em; }
strong, b { font-weight: 800; }
::selection { background: var(--phosphor-lit); color: var(--creature-ink); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 6px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--margin); top: -100px; z-index: 50;
  background: var(--matte); color: var(--ink); padding: 12px 18px; border-radius: 999px; font-weight: 800;
}
.skip-link:focus { top: 12px; }
.no-js .only-js { display: none !important; }

.wrap { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* ---------- Type ---------- */
.display {
  font-size: var(--step-display);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.title { font-size: var(--step-title); font-weight: 850; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
.lead { font-size: var(--step-lead); font-weight: 650; line-height: 1.45; max-width: 40ch; text-wrap: pretty; }
.small { font-size: var(--step-small); line-height: 1.5; }
.prose p + p { margin-top: 0.9em; }
.measure { max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border-radius: 999px; border: var(--rim) solid #fff;
  background: var(--sunny-glow); color: var(--creature-ink);
  font: inherit; font-size: var(--step-body); font-weight: 850; line-height: 1.15; text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.btn:hover { background: var(--sunny-glow-hover); }
.btn:active { transform: scale(0.96); }
.btn:focus-visible { outline-color: var(--ink); outline-offset: 4px; border-radius: 999px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--small { min-height: 44px; padding: 8px 18px; }
.text-link { font-weight: 800; }

/* ---------- Navigation ---------- */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 20; color: var(--ink); }
.nav-space { padding-top: 84px; }
@media (max-width: 719px) { .nav-space { padding-top: 72px; } }
.nav__row { display: flex; align-items: center; gap: clamp(12px, 2vw, 32px); min-height: 84px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--step-lead); font-weight: 900; letter-spacing: -0.02em; text-decoration: none; color: var(--ink);
  min-height: 44px;
}
.wordmark img { width: 36px; height: 36px; border-radius: 22.5%; }
.nav__row > nav { margin-left: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(4px, 1.6vw, 24px); list-style: none; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px;
  font-weight: 800; font-size: var(--step-body); text-decoration: none; color: var(--ink);
  border-radius: 999px;
  transition: background-color var(--t-hover) ease;
}
.nav__links a:hover { background: color-mix(in srgb, var(--matte) 55%, transparent); }
.nav__links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 0.12em; text-underline-offset: 0.3em; }
@media (max-width: 719px) {
  .nav__row { min-height: 72px; gap: 8px; }
  .nav__links .nav__page { display: none; }
  .nav .btn--small { padding-inline: 14px; }
}

/* ---------- The wall ---------- */
.wall {
  position: relative;
  color: var(--ink);
  background-color: var(--wall-bottom);
  background-image: linear-gradient(180deg, var(--wall-top) 0%, var(--wall-bottom) 100%); /* taste-skill-ignore: DESIGN.md wall paint is a top-to-bottom gradient */
  transition: color var(--t-room) ease;
  isolation: isolate;
}
.wall::before { /* soft window light falling on the wall (day phases) */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 46%; top: -12%; width: 26%; height: 92%;
  background: rgb(255 255 255 / 0.2);
  transform: skewX(-16deg);
  filter: blur(44px);
  opacity: var(--window);
  transition: opacity var(--t-room) ease;
}
.wall::after { /* bedside lamp pool (lamp night) */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 4% 92%, rgb(255 201 138 / 0.22), transparent 70%); /* taste-skill-ignore: DESIGN.md lamp-night pool of light */
  opacity: var(--lamp);
  transition: opacity var(--t-room) ease;
}
.js .wall { transition: color var(--t-room) ease, background-color var(--t-room) ease; }

/* Duvet edge: soft hill with quilted stitching. */
.duvet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  height: var(--duvet-h, 26%);
  background-color: var(--duvet);
  background-image:
    repeating-linear-gradient(45deg, transparent 0 34px, rgb(var(--shadow-ink) / 0.07) 34px 35.5px), /* taste-skill-ignore: DESIGN.md quilted duvet stitching */
    repeating-linear-gradient(-45deg, transparent 0 34px, rgb(var(--shadow-ink) / 0.07) 34px 35.5px); /* taste-skill-ignore: DESIGN.md quilted duvet stitching */
  clip-path: ellipse(78% 100% at 50% 100%);
  transition: background-color var(--t-room) ease;
}

/* ---------- Stickers ---------- */
.sticker {
  position: absolute; width: var(--s, 40px); height: var(--s, 40px);
  color: var(--sticker-fill);
  transform: rotate(var(--r, 0deg));
  filter: drop-shadow(0 1.5px 1.5px rgb(var(--shadow-ink) / calc(0.22 * (1 - var(--glow))))) /* taste-skill-ignore: DESIGN.md Day-Shadow / Night-Glow rule for stickers */
          drop-shadow(0 0 calc(9px * var(--glow)) rgb(217 255 133 / calc(0.85 * var(--glow)))); /* taste-skill-ignore: phosphor glow is the brand material */
  transition: color var(--t-room) ease, filter var(--t-room) ease;
}
.sticker svg { width: 100%; height: 100%; overflow: visible; }
.sticker use { fill: currentColor; stroke: #fff; stroke-width: 2.5px; stroke-linejoin: round; paint-order: stroke; }
:root[data-phase="night"] .sticker use, :root[data-phase="lamp"] .sticker use { stroke: rgb(255 255 255 / 0.55); }

/* ---------- Screens (real App Store screenshots) ---------- */
.screen {
  display: block; width: 100%; aspect-ratio: 1320 / 2868;
  border-radius: 13.5% / 6.2%;
  background: var(--wall-bottom);
  overflow: hidden;
}
.screen picture { display: contents; }
.screen img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { margin-top: 16px; font-size: var(--step-small); font-weight: 700; max-width: 36ch; }

/* ---------- Hero ---------- */
.hero { min-height: max(660px, 100svh); display: flex; flex-direction: column; overflow: hidden; --duvet-h: 17%; }
.hero__body { flex: 1; position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.hero__copy { grid-column: 1 / span 6; padding-top: clamp(40px, 9vh, 120px); position: relative; z-index: 5; }
.hero__title { font-size: var(--step-display); font-weight: 900; line-height: 0.98; letter-spacing: -0.035em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; white-space: nowrap; }
.hero__title [data-line] { display: block; }
.hero__lead { margin-top: 36px; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero__note { margin-top: 22px; font-size: var(--step-small); font-weight: 700; max-width: 38ch; }
.hero__scene { grid-column: 7 / span 6; position: relative; align-self: stretch; min-height: 560px; }
.hero__shot {
  position: absolute; z-index: 2;
  left: 50%; top: clamp(24px, 6vh, 72px);
  width: min(64%, 380px, 44vh);
  transform: translateX(-50%);
}
.hero__shot img { display: none; }
.hero__shot img[data-for~="day"] { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-phase]) .hero__shot img[data-for~="day"] { display: none; }
  :root:not([data-phase]) .hero__shot img[data-for~="night"] { display: block; }
}
:root[data-phase] .hero__shot img[data-for~="day"] { display: none; }
:root[data-phase="morning"] .hero__shot img[data-for~="morning"],
:root[data-phase="day"] .hero__shot img[data-for~="day"],
:root[data-phase="evening"] .hero__shot img[data-for~="evening"],
:root[data-phase="lamp"] .hero__shot img[data-for~="lamp"],
:root[data-phase="night"] .hero__shot img[data-for~="night"] { display: block; }

.hero .sticker { z-index: 1; }

/* Light switch: a plate on the wall (DESIGN.md "Light Switch"). */
.switch {
  position: absolute; z-index: 4;
  display: grid; justify-items: center; gap: 8px;
  padding: 0; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.switch__plate {
  position: relative; width: 52px; height: 78px; border-radius: 13px;
  background: #fbf6ea; border: var(--rim) solid #fff;
  transition: background-color var(--t-room) ease, transform var(--t-press) var(--ease-out);
}
:root[data-phase="night"] .switch__plate, :root[data-phase="lamp"] .switch__plate { background: #aab0e6; border-color: rgb(255 255 255 / 0.6); }
.switch__toggle {
  position: absolute; left: 50%; top: 14px; width: 20px; height: 44px; margin-left: -10px; border-radius: 6px;
  background: #e6dfcc;
}
.switch__toggle::after {
  content: ""; position: absolute; left: 2px; right: 2px; top: 2px; height: 20px; border-radius: 5px;
  background: #fffdf6;
  transition: transform 260ms var(--ease-out);
}
.switch[aria-checked="false"] .switch__toggle::after { transform: translateY(20px); }
:root[data-phase="night"] .switch__toggle, :root[data-phase="lamp"] .switch__toggle { background: #8a90d0; }
:root[data-phase="night"] .switch__toggle::after, :root[data-phase="lamp"] .switch__toggle::after { background: #d4d8ff; }
.switch__pilot { /* tiny phosphor pilot dot, lit when the light is off */
  position: absolute; left: 50%; top: 5px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: var(--phosphor-unlit); opacity: 0.6;
  transition: background-color var(--t-room) ease, box-shadow var(--t-room) ease, opacity var(--t-room) ease;
}
.switch[aria-checked="false"] .switch__pilot { background: var(--phosphor-lit); opacity: 1; box-shadow: 0 0 8px var(--phosphor-lit); } /* taste-skill-ignore: lit phosphor pilot dot (DESIGN.md Light Switch) */
.switch__label { font-size: var(--step-small); font-weight: 800; line-height: 1.2; text-align: center; max-width: 9em; }
.switch:active .switch__plate { transform: scale(0.95); }
.switch:focus-visible { outline: none; }
.switch:focus-visible .switch__plate { outline: 3px solid var(--ink); outline-offset: 4px; }
.hero .switch { right: 0; top: 46%; }

@media (max-width: 899px) {
  .hero { --duvet-h: 15%; }
  .hero__body { grid-template-columns: 1fr; }
  .hero__copy { grid-column: 1; padding-top: 16px; }
  .hero__lead { margin-top: 20px; }
  .hero__actions { margin-top: 24px; }
  .hero__scene { grid-column: 1; min-height: clamp(400px, 112vw, 640px); margin-top: 8px; }
  .hero__shot { width: min(62%, 300px); top: 24px; }
  .hero .switch { right: 0; top: 38%; }
  .switch__plate { width: 46px; height: 68px; }
  .switch__toggle { top: 12px; height: 38px; }
  .switch__toggle::after { height: 17px; }
  .switch[aria-checked="false"] .switch__toggle::after { transform: translateY(17px); }
}

/* ---------- Chapters: one flat field each (colour = a time of day in Lumi's room) ---------- */
.field { position: relative; color: var(--ink); background: var(--bg); padding-block: var(--section-pad); min-height: 90svh; }
.field--day { --bg: #cfe0f1; --ink: #1f2a4a; --tone: #b4c9e2; --matte: #ffffff; --glow: 0; --sticker-fill: var(--phosphor-unlit); }
.field--night { --bg: #262a58; --ink: #f2f0ff; --tone: #323874; --matte: #313670; --glow: 1; --sticker-fill: var(--phosphor-lit); color-scheme: dark; }
.field--evening { --bg: #bba6d8; --ink: #2a1e4a; --tone: #a994cc; --matte: #ffffff; --glow: 0.4; --sticker-fill: #e4f9ae; }
.field--morning { --bg: #f8dec9; --ink: #3a2440; --tone: #eec3aa; --matte: #ffffff; --glow: 0.12; --sticker-fill: #ecf5c9; }
.field--lamp { --bg: #3a3c74; --ink: #f2f0ff; --tone: #4a4c8c; --matte: #313670; --glow: 0.45; --sticker-fill: #e2fba3; color-scheme: dark; }
.field--paper { --bg: #f1f2fa; --ink: #1f2a4a; --tone: #e1e5f3; --matte: #ffffff; --glow: 0; --sticker-fill: #d3e494; }
.field--sky { --bg: #b4c9e2; --ink: #1f2a4a; --tone: #cfe0f1; --matte: #ffffff; --glow: 0; --sticker-fill: var(--phosphor-unlit); }
.field--blush { --bg: #f7ebf0; --ink: #3a2440; --tone: #efdbe4; --matte: #ffffff; --glow: 0; --sticker-fill: var(--phosphor-unlit); }
.field--chrome { --bg: #1e2250; --ink: #f2f0ff; --tone: #262b63; --matte: #262b63; --glow: 1; --sticker-fill: var(--phosphor-lit); color-scheme: dark; }
.field .btn:focus-visible { outline-color: var(--ink); }
.chapter__head { grid-column: 1 / -1; max-width: 15ch; }
.chapter__head--wide { max-width: 17ch; }
.chapter__lead { grid-column: 1 / span 6; margin-top: 32px; }

/* Talk (day) — square plate, spare text */
.talk__plate {
  grid-column: 1 / span 5; margin-top: clamp(48px, 6vw, 88px);
  aspect-ratio: 1; background: var(--tone); border-radius: var(--radius);
  display: flex; justify-content: center; overflow: hidden; position: relative;
}
.talk__plate .screen { width: 54%; margin-top: 9%; border-radius: 13.5% / 6.2%; }
.talk__plate figcaption { position: absolute; left: 24px; bottom: 20px; right: 24px; }
.talk__plate figcaption span { display: inline-block; background: var(--matte); padding: 8px 14px; border-radius: 999px; font-size: var(--step-small); font-weight: 800; }
.talk__text { grid-column: 7 / span 6; margin-top: clamp(48px, 6vw, 88px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.ways { display: grid; gap: clamp(28px, 3vw, 44px); list-style: none; }
.ways h3 { margin-bottom: 10px; }
.ways p { max-width: 46ch; }

/* Memory (night) — constellation of labelled memory stickers */
.memory__main, .grow__main { grid-column: 1 / span 7; }
.memory__text { margin-top: 32px; max-width: 40em; }
.memory__text p + p { margin-top: 1em; }
.constellation { position: relative; margin-top: 40px; min-height: 420px; }
.constellation svg.links { position: absolute; inset: 0; width: 100%; height: 100%; }
.constellation .links line { stroke: var(--phosphor-lit); stroke-width: 2; stroke-dasharray: 1 7; stroke-linecap: round; opacity: 0.8; }
.memo { position: absolute; display: flex; align-items: center; gap: 14px; left: var(--x); top: var(--y); }
@media (max-width: 899px) { .memo { left: var(--mx, var(--x)); top: var(--my, var(--y)); } }
.memo .sticker { position: relative; flex: none; }
.memo__label { position: relative; z-index: 1; font-size: var(--step-lead); font-weight: 800; line-height: 1.2; max-width: 13ch; background: var(--bg); padding: 4px 8px; border-radius: 8px; margin-left: -8px; }
.memory__shot { grid-column: 9 / span 4; align-self: start; margin-top: 32px; }
.memory__shot .screen { max-width: 380px; margin-left: auto; }
.memory__shot figcaption { margin-left: auto; max-width: 380px; }

/* Grow (evening) — the stages, charged one by one */
.grow__text { margin-top: 32px; }
.stages { margin-top: clamp(40px, 5vw, 72px); list-style: none; position: relative; display: grid; gap: 0; }
.stage { z-index: 1; display: grid; grid-template-columns: 48px minmax(0, 11rem) minmax(0, 1fr); column-gap: 20px; align-items: baseline; padding-block: 16px; position: relative; }
.stage__dot {
  width: 22px; height: 22px; border-radius: 50%; justify-self: center; align-self: center;
  background: var(--phosphor-unlit); border: var(--rim) solid #fff; position: relative; z-index: 1;
  transition: background-color 500ms ease, box-shadow 500ms ease;
}
.stage.is-charged .stage__dot, .no-js .stage__dot { background: var(--phosphor-lit); box-shadow: 0 0 10px rgb(217 255 133 / 0.9); } /* taste-skill-ignore: charged phosphor (growth bar) */
.stages::before { /* the growth bar */
  content: ""; position: absolute; left: 21px; top: 30px; bottom: 30px; width: 6px; border-radius: 3px;
  background: rgb(255 255 255 / 0.45);
}
.stages::after { /* the charge, filling like the app's growth bar */
  content: ""; position: absolute; left: 21px; top: 30px; bottom: 30px; width: 6px; border-radius: 3px;
  background: var(--phosphor-lit); transform-origin: top; transform: scaleY(var(--charge, 1));
  transition: transform 1600ms var(--ease-out);
}
.stage__name { font-size: var(--step-title); font-weight: 900; line-height: 1.1; letter-spacing: -0.015em; }
.stage__what { max-width: 38ch; }
.grow__shot { grid-column: 9 / span 4; align-self: start; margin-top: 32px; }
.grow__shot .screen { max-width: 360px; margin-left: auto; }
.grow__shot figcaption { margin-left: auto; max-width: 360px; }

/* Care (morning) — picture left, four acts right */
.care__shot { grid-column: 1 / span 4; margin-top: clamp(48px, 6vw, 88px); }
.care__shot .screen { max-width: 360px; }
.care__body { grid-column: 6 / span 7; margin-top: clamp(48px, 6vw, 88px); display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) var(--gap); list-style: none; }
.acts h3 { margin-bottom: 8px; }
.promise { font-size: var(--step-title); font-weight: 850; line-height: 1.2; letter-spacing: -0.01em; max-width: 26ch; text-wrap: balance; }
.little { list-style: none; display: grid; gap: 10px; }
.little li { padding-left: 30px; position: relative; }
.little li::before { /* tiny unlit sticker star */
  content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.little-h { font-size: var(--step-lead); font-weight: 850; margin-bottom: 14px; }

/* Play (lamp) — two screens, staggered */
.play__text { grid-column: 1 / span 5; margin-top: 32px; display: grid; gap: clamp(28px, 3vw, 40px); align-content: start; }
.play__text h3 { margin-bottom: 8px; }
.play__shots { grid-column: 7 / span 6; grid-row: 2 / span 1; margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.play__shots .shot:nth-child(2) { margin-top: clamp(64px, 9vw, 140px); }

/* Private (paper) */
.private__list { grid-column: 1 / span 7; margin-top: clamp(40px, 5vw, 72px); list-style: none; display: grid; gap: clamp(28px, 3.4vw, 48px); }
.private__list li { font-size: var(--step-title); font-weight: 850; line-height: 1.18; letter-spacing: -0.01em; max-width: 22ch; text-wrap: balance; display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; }
.private__list .sticker { position: relative; --s: 36px; margin-top: 2px; }
.ai-note { grid-column: 9 / span 4; margin-top: clamp(40px, 5vw, 72px); background: var(--matte); border-radius: var(--radius); padding: clamp(24px, 2.6vw, 36px); align-self: start; }
.ai-note h3 { margin-bottom: 12px; }
.ai-note p + p { margin-top: 0.9em; }
.ai-note .links-row { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Free (sky) */
.plans { grid-column: 1 / -1; margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; }
.plan--free { grid-column: 1 / span 5; }
.plan--plus { grid-column: 7 / span 6; background: var(--matte); border-radius: var(--radius); padding: clamp(24px, 3vw, 44px); }
.plan h3 { margin-bottom: 14px; }
.plan ul { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.plan li { padding-left: 30px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 18px; height: 18px;
  background: var(--sunny-glow);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.plan--plus li::before { background: var(--star-gold); }
.fine { margin-top: 24px; font-size: var(--step-small); font-weight: 600; max-width: 70ch; }

/* FAQ — filled tiles, one open at a time */
.faq__head { grid-column: 1 / span 4; align-self: start; }
@media (min-width: 900px) { .faq__head { position: sticky; top: 96px; } }
.faq__list { grid-column: 5 / span 8; display: grid; gap: 8px; }
.faq__more { margin-top: 24px; }
.tile { background: var(--matte); border-radius: var(--radius); transition: background-color var(--t-ui) ease; }
.tile summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 72px; padding: 18px 24px; font-size: var(--step-body); font-weight: 850; line-height: 1.3; border-radius: var(--radius);
}
.tile summary::-webkit-details-marker { display: none; }
.tile summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.plus { position: relative; width: 16px; height: 16px; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; border-radius: 2px; background: currentColor; transition: transform var(--t-ui) var(--ease-out); }
.plus::after { transform: rotate(90deg); }
.tile[open] .plus::after { transform: rotate(0deg); }
.tile[open] { background: var(--sunny-glow); color: var(--creature-ink); }
.tile[open] summary:focus-visible { outline-color: var(--creature-ink); }
.tile__body { padding: 0 24px 24px; max-width: 60ch; }
.tile__body p + p, .tile__body p + ol, .tile__body ol + p { margin-top: 0.8em; }
.tile__body ol { padding-left: 1.3em; display: grid; gap: 6px; }
.tile__body a { font-weight: 800; }

/* CTA (night) */
.cta { overflow: hidden; min-height: 0; }
.cta__grid { align-items: center; }
.cta__copy { grid-column: 1 / span 7; position: relative; z-index: 2; }
.cta__copy .lead { margin-top: 28px; }
.cta__copy .btn { margin-top: 36px; }
.cta__icon { grid-column: 9 / span 4; justify-self: end; position: relative; z-index: 2; }
.cta__icon img { width: clamp(160px, 22vw, 300px); border-radius: 22.5%; }
.cta .sticker { z-index: 1; }

/* Footer — the name first */
.footer { background: #1e2250; color: #f2f0ff; padding-block: clamp(72px, 9vw, 128px) 40px; --ink: #f2f0ff; color-scheme: dark; }
.footer__name { font-size: clamp(5rem, 2rem + 17vw, 17rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1; padding-block: 0.06em; }
.footer__row { margin-top: 72px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; }
.footer__reach { grid-column: 1 / span 5; display: grid; gap: 8px; align-content: start; }
.footer__reach a { font-size: var(--step-title); font-weight: 850; color: var(--phosphor-unlit); text-decoration: none; overflow-wrap: anywhere; }
.footer__reach a:hover { text-decoration: underline; }
.footer__reach p { font-size: var(--step-small); }
.footer__cols { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.footer__cols h2 { font-size: var(--step-small); font-weight: 850; margin-bottom: 10px; color: #bdbae6; }
.footer__cols ul { list-style: none; display: grid; gap: 2px; }
.footer__cols a { display: inline-flex; min-height: 40px; align-items: center; font-size: var(--step-body); font-weight: 700; text-decoration: none; }
.footer__cols a:hover { text-decoration: underline; }
.footer__legal { margin-top: 96px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: var(--step-small); font-weight: 650; color: #bdbae6; }
.footer__legal a { color: #f2f0ff; }

/* Bracketed placeholders the owner still has to fill in. */
.placeholder {
  background: color-mix(in srgb, var(--star-gold) 22%, transparent);
  border-bottom: 2px solid color-mix(in srgb, var(--star-gold) 70%, transparent);
  border-radius: 4px; padding: 0 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Inner pages (privacy, terms, support, safety) ---------- */
.page-head { overflow: hidden; padding-bottom: clamp(88px, 10vw, 150px); --duvet-h: clamp(40px, 6vw, 72px); }
.page-head__body { position: relative; z-index: 5; padding-top: clamp(32px, 6vw, 88px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.page-head__text { grid-column: 1 / span 9; }
.page-title { font-size: clamp(2.125rem, 1rem + 4.6vw, 5.5rem); font-weight: 900; line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
.page-head .lead { margin-top: 24px; max-width: 46ch; }
.page-head .meta { margin-top: 18px; font-size: var(--step-small); font-weight: 750; }
.page-head .switch { right: 0; top: 0; position: relative; justify-self: end; align-self: start; grid-column: 11 / span 2; grid-row: 1; margin-top: clamp(8px, 2vw, 32px); }
.page-head .sticker { z-index: 1; }
.page-head .duvet { clip-path: ellipse(90% 100% at 50% 100%); }

.page-body { position: relative; margin-top: -1px; background: var(--duvet); color: var(--ink); padding-block: clamp(24px, 4vw, 56px) clamp(96px, 10vw, 160px); transition: background-color var(--t-room) ease, color var(--t-room) ease; }
.page-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.toc { grid-column: 1 / span 3; align-self: start; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; padding-bottom: 8px; }
.toc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer;
  font-size: var(--step-small); font-weight: 850; margin-bottom: 8px;
}
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; display: grid; gap: 0; }
.toc a { display: block; padding: 6px 0; font-size: var(--step-small); font-weight: 700; text-decoration: none; line-height: 1.35; }
.toc a:hover { text-decoration: underline; }
@media (min-width: 1100px) {
  .toc summary { pointer-events: none; }
  .toc summary .plus { display: none; }
}
.doc { grid-column: 4 / span 6; min-width: 0; }
.side-card { grid-column: 10 / span 3; align-self: start; position: sticky; top: 24px; background: var(--matte); border-radius: var(--radius); padding: 24px; }
.side-card h2 { font-size: var(--step-lead); font-weight: 900; line-height: 1.2; margin-bottom: 10px; }
.side-card p + p { margin-top: 12px; }
.side-card a { overflow-wrap: anywhere; }
.doc--wide { grid-column: 1 / span 8; }
.doc h2 { font-size: var(--step-title); font-weight: 900; line-height: 1.15; letter-spacing: -0.015em; margin-top: 1.9em; margin-bottom: 0.6em; text-wrap: balance; scroll-margin-top: 24px; }
.doc h3 { font-size: var(--step-lead); font-weight: 850; line-height: 1.3; margin-top: 1.6em; margin-bottom: 0.5em; scroll-margin-top: 24px; }
.doc > :first-child { margin-top: 0; }
.doc p, .doc li { max-width: 68ch; }
.doc p + p { margin-top: 0.9em; }
.doc ul, .doc ol { padding-left: 1.4em; margin-block: 0.8em; display: grid; gap: 0.5em; }
.doc ul { list-style: none; padding-left: 0; }
.doc ul > li { padding-left: 26px; position: relative; }
.doc ul > li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: 0.55; }
.doc code { font-family: inherit; font-weight: 800; }
.doc a { font-weight: 750; overflow-wrap: anywhere; }
.doc .table-wrap { margin-block: 1.2em; overflow-x: auto; border-radius: var(--radius); background: var(--matte); }
.doc table { width: 100%; border-collapse: collapse; font-size: var(--step-small); line-height: 1.45; min-width: 560px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.doc th { font-weight: 850; }
.doc tr:last-child td { border-bottom: 0; }
.notice { background: var(--matte); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 40px; max-width: 72ch; }
.notice p { max-width: none; }
.notice strong { font-weight: 900; }

/* Support + safety blocks */
.block + .block { margin-top: clamp(56px, 7vw, 96px); }
.block > h2:first-child { margin-top: 0; }
.mail-big { display: inline-block; font-size: var(--step-title); font-weight: 900; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; display: grid; gap: 18px !important; }
.steps > li { padding-left: 52px !important; position: relative; }
.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: var(--step-small);
  background: var(--matte); color: var(--ink); opacity: 1;
}
.path { font-weight: 850; }
.code-sample { display: inline-block; font-weight: 900; letter-spacing: 0.08em; background: var(--matte); padding: 2px 10px; border-radius: 8px; }
.helplines { list-style: none; padding: 0 !important; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px !important; margin-block: 1.2em !important; }
.helplines > li { padding: 20px 22px !important; background: var(--matte); border-radius: var(--radius); max-width: none !important; }
.helplines > li::before { display: none; }
.helplines a { display: inline-block; font-size: var(--step-title); font-weight: 900; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.helplines a:hover { text-decoration: underline; }
.helplines p { margin-top: 6px; font-size: var(--step-small); }
.bubble {
  position: relative; background: #fff; color: var(--creature-ink); border-radius: 20px; border: 2.5px solid #fff;
  padding: 14px 20px; font-weight: 700; max-width: 52ch; margin-block: 1.2em;
}
:root[data-phase="night"] .bubble, :root[data-phase="lamp"] .bubble { background: #262b63; color: #f2f0ff; border-color: rgb(255 255 255 / 0.85); }
.bubble::after { content: ""; position: absolute; left: 40px; bottom: -10px; width: 18px; height: 10px; background: inherit; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.bubble cite { display: block; margin-top: 8px; font-style: normal; font-size: var(--step-small); font-weight: 700; opacity: 0.85; }
.aside-shot { grid-column: 10 / span 3; align-self: start; position: sticky; top: 24px; }
.aside-shot .screen { max-width: 300px; margin-left: auto; }
.aside-shot figcaption { margin-left: auto; max-width: 300px; }

@media (max-width: 1099px) {
  .doc, .doc--wide { grid-column: 1 / -1; }
  .toc { grid-column: 1 / -1; position: static; max-height: none; margin-bottom: 32px; background: var(--matte); border-radius: var(--radius); padding: 0 20px; }
  .toc summary { min-height: 56px; margin: 0; font-size: var(--step-body); }
  .toc details[open] summary .plus::after { transform: rotate(0deg); }
  .toc ol { padding-bottom: 16px; }
}

/* Interface fragments drawn from the app (data-ui): native iOS list and context menu. */
.aside-ui { grid-column: 10 / span 3; align-self: start; position: sticky; top: 24px; margin: 0; }
.aside-ui figcaption { margin-top: 14px; font-size: var(--step-small); font-weight: 700; }
.ios-header { font-size: var(--step-small); font-weight: 750; color: var(--ink); padding: 0 16px 8px; text-transform: none; }
.ios-list { list-style: none; background: var(--matte); border-radius: 14px; overflow: hidden; }
.ios-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 16px; font-size: var(--step-small); font-weight: 650; }
.ios-row + .ios-row { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 12%, transparent); } /* taste-skill-ignore: native iOS list separator inside a data-ui fragment */
.ios-chev { width: 8px; height: 8px; border-right: 2.5px solid color-mix(in srgb, var(--ink) 40%, transparent); border-top: 2.5px solid color-mix(in srgb, var(--ink) 40%, transparent); transform: rotate(45deg); flex: none; }
.ios-row--code { outline: 3px solid var(--sunny-glow); outline-offset: -3px; border-radius: 0 0 14px 14px; }
.ios-value { font-weight: 850; letter-spacing: 0.08em; }
.ui-bubble { background: #fff; color: var(--creature-ink); border-radius: 20px; padding: 12px 16px; font-size: var(--step-small); font-weight: 700; margin-bottom: 12px; }
:root[data-phase="night"] .ui-bubble, :root[data-phase="lamp"] .ui-bubble { background: #262b63; color: #f2f0ff; box-shadow: inset 0 0 0 2.5px rgb(255 255 255 / 0.85); } /* taste-skill-ignore: die-cut white rim of the night speech bubble (data-ui) */
.ios-menu { max-width: 280px; }
.ios-menu .ios-row { color: var(--ink); }
@media (max-width: 1099px) {
  .aside-ui { grid-column: 1 / -1; position: static; margin-top: 56px; max-width: 420px; }
  .side-card { grid-column: 1 / -1; position: static; margin-top: 48px; max-width: 520px; }
}
@media (max-width: 599px) {
  .doc .table-wrap { background: none; overflow: visible; border-radius: 0; }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; min-width: 0; }
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc tr { background: var(--matte); border-radius: var(--radius); padding: 6px 0; margin-bottom: 10px; }
  .doc td { border: 0; padding: 8px 16px; }
  .doc td::before { content: attr(data-label); display: block; font-weight: 850; font-size: var(--step-small); }
}

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; --duvet-h: 22%; }
.lost__body { flex: 1; position: relative; z-index: 5; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; padding-bottom: 22vh; }
.lost__copy { grid-column: 1 / span 7; display: grid; gap: 28px; }
.lost__body .lead { max-width: 44ch; }
.lost__icon { grid-column: 9 / span 4; justify-self: end; }
.lost__icon img { width: clamp(140px, 22vw, 320px); border-radius: 22.5%; }
@media (max-width: 899px) { .lost__copy, .lost__icon { grid-column: 1 / -1; } .lost__icon { justify-self: start; margin-top: 32px; } }
.lost__links { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }

/* ---------- Responsive chapters ---------- */
@media (max-width: 899px) {
  .field { min-height: 0; }
  .chapter__lead, .talk__plate, .talk__text, .memory__main, .grow__main, .memory__shot,
  .grow__shot, .care__shot, .care__body, .play__text, .play__shots,
  .private__list, .ai-note, .plan--free, .plan--plus, .faq__head, .faq__list, .cta__copy, .cta__icon,
  .footer__reach, .footer__cols, .page-head__text, .aside-shot { grid-column: 1 / -1; grid-row: auto; }
  .talk__plate { margin-top: 40px; }
  .talk__text { margin-top: 40px; }
  .constellation { min-height: 380px; margin-top: 32px; }
  .memo__label { font-size: var(--step-body); max-width: 10ch; }
  .memo { gap: 8px; }
  .memo .sticker { --s: 44px !important; }
  .constellation > .sticker { display: none; }
  .memory__shot, .grow__shot { margin-top: 48px; }
  .memory__shot .screen, .grow__shot .screen, .memory__shot figcaption, .grow__shot figcaption { margin-inline: auto; max-width: 300px; }
  .stage { grid-template-columns: 48px minmax(0, 1fr); }
  .stage__what { grid-column: 2; margin-top: 4px; }
  .care__shot .screen { margin-inline: auto; max-width: 300px; }
  .care__shot figcaption { margin-inline: auto; max-width: 300px; }
  .acts { grid-template-columns: 1fr; }
  .play__shots { margin-top: 48px; }
  .faq__list { margin-top: 32px; }
  .cta__icon { justify-self: start; margin-top: 48px; }
  .cta > .sticker { display: none; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__cols > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .page-head .switch { grid-column: 1 / -1; justify-self: end; position: absolute; top: 0; right: 0; }
  .page-head__text { padding-right: 64px; }
  .page-head .sticker, .lost .sticker:not([data-fallen]) { display: none; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .talk__plate { grid-column: 1 / span 6; }
  .talk__text { grid-column: 7 / span 6; margin-top: 40px; }
  .memory__main, .grow__main { grid-column: 1 / span 7; }
  .memory__shot, .grow__shot { grid-column: 8 / span 5; margin-top: 32px; }
  .care__shot { grid-column: 1 / span 5; margin-top: 40px; }
  .care__body { grid-column: 6 / span 7; margin-top: 40px; }
  .memory__shot .screen, .grow__shot .screen, .memory__shot figcaption, .grow__shot figcaption { max-width: 260px; margin-right: 0; }
  .promise { font-size: var(--step-lead); }
}
@media (max-width: 599px) {
  .private__list li { grid-template-columns: 36px 1fr; gap: 14px; }
  .private__list .sticker { --s: 30px; }
  .tile summary { min-height: 64px; padding: 16px 20px; }
  .tile__body { padding: 0 20px 20px; }
  .footer__legal { margin-top: 64px; }
}

/* ---------- Motion (transform and opacity only; reduced motion keeps the finished state) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(var(--i) * 110ms + 120ms); }
  .js [data-load] { opacity: 0; transform: translateY(14px); animation: rise 560ms var(--ease-out) forwards; animation-delay: var(--d, 420ms); }
  .js .hero__shot { animation: shot-rise 1100ms var(--ease-expo) 160ms both; }
  .hero__shot img { animation: shot-in 520ms ease both; }
  .js .hero .sticker { animation: stamp 620ms var(--ease-expo) both; animation-delay: calc(500ms + var(--n, 0) * 70ms); }

  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: calc(var(--n, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .memo[data-reveal] .sticker { transform: rotate(var(--r, 0deg)) scale(1.8); opacity: 0; transition: transform 620ms var(--ease-expo), opacity 300ms ease; transition-delay: calc(var(--n, 0) * 140ms + 200ms); }
  .js .memo[data-reveal].is-in .sticker { transform: rotate(var(--r, 0deg)); opacity: 1; }
  .js .stages { --charge: 0; }
  .js .stages.is-in { --charge: 1; }
  .js .screen-move img { transform: scale(1.06); transition: transform 1600ms var(--ease-expo); }
  .js .screen-move.is-in img { transform: none; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes shot-rise { from { transform: translate(-50%, 18%); } to { transform: translate(-50%, 0); } }
@keyframes shot-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes stamp { from { opacity: 0; transform: rotate(var(--r, 0deg)) scale(1.8); } to { opacity: 1; transform: rotate(var(--r, 0deg)) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-delay: 0ms !important; scroll-behavior: auto !important; }
}

@media print {
  .nav, .switch, .sticker, .duvet, .footer, .toc, .aside-shot, .skip-link { display: none !important; }
  .wall, .page-body { background: #fff !important; color: #000 !important; }
}
