/* "What can Doddy do?" (/what-can-doddy-do/). Builds on tokens.css and styles.css; colours only from tokens.
   Per-scene positions are in day-scenes.css (generated by tools/build_day.py), because the production CSP
   allows no style attributes. Type as on the homepage: Bricolage Grotesque for headings, Caveat for Doddy's voice,
   system text for reading. Motion: transform and opacity on still frames, nothing loops, reduced motion shows the finished page. */

[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; }
.text-link.inline { display: inline; min-height: 0; }

/* ---------- Hero: Doddy and the objects around him ---------- */

.wcd-hero { position: relative; isolation: isolate; padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.wcd-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(to bottom, transparent 0 35px, var(--rule) 35px 36px);
  -webkit-mask: linear-gradient(to bottom, #000 30%, transparent 95%);
          mask: linear-gradient(to bottom, #000 30%, transparent 95%);
}
.wcd-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .wcd-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.wcd-copy { min-width: 0; }
.wcd-copy .display { max-width: 11ch; }
.hand-word {
  display: inline-block; position: relative; padding: 0 0.08em; white-space: nowrap;
  font-family: var(--hand); font-weight: 700; font-size: clamp(1.7rem, 1.1rem + 2.4vw, 3.2rem); line-height: 1.05; color: var(--accent-text);
  transform: rotate(-3deg); transform-origin: left bottom;
}
.hand-word .scribble { bottom: -0.1em; }
.wcd-copy .lede { max-width: 30rem; }

.stage { position: relative; width: min(100%, 600px); aspect-ratio: 1 / 0.96; margin: 0 auto clamp(64px, 9vw, 84px); isolation: isolate; }
.stage-glow {
  position: absolute; z-index: -1; left: 50%; top: 52%; width: 110%; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--orange-cue) 20%, transparent), color-mix(in srgb, var(--orange-cue) 5%, transparent) 60%, transparent);
  pointer-events: none;
}
.doddy-main { position: absolute; left: 50%; bottom: 3%; width: 46%; translate: -50% 0; margin: 0; }
.doddy-main img { width: 100%; height: auto; display: block; filter: drop-shadow(0 14px 14px rgb(60 40 10 / 14%)); }
.stage .says {
  display: block; left: 50%; right: auto; top: calc(100% + 18px); translate: -50% 0; width: max-content; max-width: 94%;
  white-space: normal; text-align: center; transform: rotate(-2deg);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.05; transition: opacity 120ms ease;
}
.stage .says.swap { opacity: 0; }

.obj {
  position: absolute; width: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 8px 9px;
  background: var(--paper); border: 1px solid var(--separator); border-radius: 4px 14px 4px 14px; box-shadow: var(--lift);
  cursor: pointer; text-decoration: none; color: inherit;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.obj img, .obj svg { width: 62px; height: 62px; object-fit: contain; display: block; flex: none; }
.obj-cap {
  display: block; max-width: 100%; margin: 0; text-align: center; overflow-wrap: anywhere;
  font-family: var(--hand); font-weight: 700; font-size: 1.1rem; line-height: 1; color: var(--accent-text);
}
.obj:hover, .obj:focus-visible, .obj.is-hover { border-color: var(--orange-cue); transform: translateY(-5px) rotate(0deg) !important; }
.obj.is-active { border-color: var(--orange-cue); box-shadow: inset 0 -4px 0 var(--orange-cue), var(--lift); }
.obj.o-bubble { left: 50%; top: 0; translate: -50% 0; rotate: 2deg; }
.obj.o-alarm { left: 2%; top: 9%; rotate: -6deg; }
.obj.o-phone { right: 2%; top: 7%; rotate: 5deg; }
.obj.o-coffee { left: -1%; top: 46%; rotate: 3deg; }
.obj.o-suitcase { right: -1%; top: 42%; rotate: -4deg; }
.obj.o-calendar { left: 7%; bottom: 1%; rotate: 4deg; }
.obj.o-bag { right: 7%; bottom: 0; rotate: -5deg; }
@media (max-width: 700px) {
  .stage { aspect-ratio: 1 / 1.05; }
  .stage-glow { width: 100%; }
  .obj { width: 88px; padding: 7px 5px 6px; gap: 3px; }
  .obj img, .obj svg { width: 40px; height: 40px; }
  .obj-cap { font-size: 0.95rem; }
  .doddy-main { width: 50%; }
}

/* Hero arrival: Doddy pops in, the seven objects drop in 60 ms apart (the class is added by day.js, and never under reduced motion). */
.stage.intro .obj { opacity: 0; transform: translateY(-40px); }
.stage.intro:not(.in) .doddy-main img { opacity: 0; }
.stage.intro.in .obj { opacity: 1; transform: none; transition: transform 300ms cubic-bezier(.2,.8,.2,1) calc(120ms + var(--i, 0) * 60ms), opacity 300ms ease calc(120ms + var(--i, 0) * 60ms); }

/* ---------- Day strip: the film's chapter chips, reused as the page's table of contents ---------- */

.daystrip { padding: 0 0 clamp(32px, 4vw, 48px); }
.daystrip .section-label { margin: 0 0 12px; font-size: 0.8125rem; font-weight: 650; color: var(--secondary-text); }
.daystrip .chapters { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.daystrip .chapters a {
  display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 8px 14px 9px;
  color: var(--reading-ink); text-decoration: none; background: var(--paper); border: 1px solid var(--separator); border-radius: 4px 14px 4px 14px;
  font-family: var(--hand); font-weight: 600; font-size: 1.35rem; line-height: 1.1; transition: border-color 150ms, box-shadow 150ms;
}
.daystrip .chapters li:nth-child(odd) a { transform: rotate(-1.2deg); }
.daystrip .chapters li:nth-child(even) a { transform: rotate(1deg); }
.daystrip .chapters a:hover { border-color: var(--orange-cue); }
.daystrip .chapters .t { font-family: var(--text); font-size: 0.75rem; font-weight: 600; color: var(--secondary-text); font-variant-numeric: tabular-nums; }
.daystrip .chapters a[aria-current="true"] { border-color: var(--orange-cue); box-shadow: inset 0 -3px 0 var(--orange-cue); }
@media (max-width: 700px) {
  .daystrip .chapters { flex-wrap: nowrap; overflow-x: auto; padding: 6px 2px 10px; scroll-snap-type: x mandatory; }
  .daystrip .chapters li { flex: none; scroll-snap-align: start; }
}

/* ---------- A moment: time, problem, what Doddy does, and the scene card ---------- */

.moment { padding: clamp(56px, 8vw, 104px) 0; overflow-x: clip; }
.moment + .moment, .travel + .moment { border-top: 0; }
.moment-grid { display: grid; gap: 32px 56px; align-items: center; }
@media (min-width: 960px) {
  .moment-grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); }
  .moment.flip .moment-grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); }
  .moment.flip .moment-copy { order: 2; }
}
.moment-copy { min-width: 0; }
.time { margin: 0 0 8px; font-family: var(--hand); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--accent-text); transform: rotate(-3deg); transform-origin: left bottom; }
.moment-copy .display-m { margin-bottom: 14px; }
.moment-problem { font-size: 1.125rem; color: var(--secondary-text); max-width: 28rem; margin: 0 0 14px; }
.helps { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 10px; max-width: 30rem; }
.helps li { position: relative; padding-left: 30px; }
.helps li::before {
  content: "\2713"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--confirmed); color: var(--paper); font-size: 0.75rem; font-weight: 700;
}
.moment-copy .says-small { margin-top: 18px; }
.send-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 10px 0 0; }
.send { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--hand); font-weight: 700; font-size: 1.3rem; line-height: 1; color: var(--accent-text); text-decoration: none; }
.send:hover { text-decoration: underline; text-decoration-color: var(--orange-cue); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.send svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.send-status { font-size: 0.8125rem; font-weight: 650; color: var(--confirmed); }
.send-status:empty { display: none; }

/* The scene: a paper card taped on the page. Doddy and the props on the left; on the right what you said (ink),
   what Doddy said (handwriting) and the card the app would show (paper), top to bottom. */
.scene { position: relative; margin: 0; isolation: isolate; }
.scene-card { position: relative; padding: 12px; background: var(--paper); border: 1px solid var(--separator); border-radius: 30px; box-shadow: var(--lift-strong); }
.scene-art .doddy.r-enter { display: none; }
.scene-art .fx { position: absolute; width: 8%; height: auto; opacity: 0; }
.scene-art .big-time {
  position: absolute; z-index: 2; left: 5%; top: 7%; margin: 0; padding: 2px 12px 6px; font-family: var(--hand); font-weight: 700; font-size: 2.8rem; line-height: 1; color: var(--accent-text);
  rotate: -4deg; background: color-mix(in srgb, var(--paper) 82%, transparent); border-radius: 4px 14px 4px 14px; opacity: 0;
}
.scene-art .dash-path { position: absolute; z-index: 1; left: 3%; bottom: 10%; width: 40%; height: 20px; opacity: 0; }
.dash-path path { fill: none; stroke: var(--secondary-text); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; opacity: 0.6; }
.u-bubble, .o-bubble-l { position: absolute; margin: 0; max-width: 40%; padding: 10px 14px 11px; border: 1px solid var(--separator); box-shadow: var(--lift); }
.u-bubble { top: 6%; right: 5%; background: var(--reading-ink); border-color: var(--reading-ink); color: var(--canvas); border-radius: 18px 18px 4px 18px; font: 600 0.9375rem/1.35 var(--text); }
.d-bubble.stack { right: 5%; top: 27%; left: auto; }
.u-bubble.two-lines ~ .d-bubble.stack, .d-bubble.stack.lower { top: 34%; }
.scene-art .o-bubble-l { max-width: 34%; background: var(--paper); border-radius: 18px 18px 18px 4px; font: 600 0.9375rem/1.35 var(--text); }
.o-bubble-l .who { display: block; margin-bottom: 2px; font-size: 0.7rem; font-weight: 650; color: var(--secondary-text); }
.scene-art .o-bubble-l.kiosk { left: 5%; top: 10%; }
.scene-art .d-bubble.kiosk-reply { right: 5%; top: 10%; max-width: 32%; border-radius: 18px 18px 4px 18px; }
.scene-art .note {
  position: absolute; margin: 0; padding: 6px 10px; background: var(--paper); border: 1px solid var(--separator);
  border-radius: 4px 12px 4px 12px; font-family: var(--hand); font-weight: 600; font-size: 1.1rem; line-height: 1; box-shadow: var(--lift);
}
.scene-art .note.n1 { left: 4%; top: 12%; rotate: -4deg; }
.scene-art .note.n2 { left: 22%; top: 24%; rotate: 3deg; }
.scene-art .note.n3 { left: 9%; top: 36%; rotate: -2deg; }

.scene-panel {
  position: absolute; right: 5%; bottom: 5%; width: 38%; padding: 12px 14px;
  background: var(--paper); border: 1px solid var(--separator); border-radius: 16px; box-shadow: var(--lift); font-size: 0.8125rem; line-height: 1.4;
}
.scene-panel strong { display: block; font-size: 0.875rem; }
.scene-panel .row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--separator); }
.scene-panel .row:first-of-type { border-top: 0; }
.scene-panel .row .t { color: var(--secondary-text); font-variant-numeric: tabular-nums; }
.scene-panel .late { color: var(--error); font-weight: 650; }
.scene-panel .ok { color: var(--confirmed); font-weight: 650; }
.scene-panel .undo { font-size: 0.75rem; color: var(--secondary-text); text-decoration: underline; }
.scene-panel .panel-line { margin: 4px 0 6px; transition: opacity 120ms ease; }
.scene-panel .panel-line.swap { opacity: 0; }
.scene-panel .from { margin: 2px 0 6px; padding: 3px 8px; border-left: 3px solid var(--separator); color: var(--secondary-text); font-size: 0.75rem; line-height: 1.35; }
.scene-panel .from b { display: block; color: var(--reading-ink); font-size: 0.7rem; }
.scene-panel .opts { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.scene-panel .opts span { padding: 4px 9px; border-radius: 999px; border: 1.5px solid var(--separator); font-size: 0.75rem; font-weight: 600; }
.scene-panel .opts .on { background: var(--reading-ink); border-color: var(--reading-ink); color: var(--canvas); }
.scene-panel .btns { display: flex; gap: 6px; margin-top: 8px; }
.scene-panel .btns span { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--separator); font-weight: 600; font-size: 0.75rem; }
.scene-panel .btns .primary { background: var(--reading-ink); border-color: var(--reading-ink); color: var(--canvas); }
.scene-panel .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 0.75rem; color: var(--secondary-text); }
.scene-panel .meta b { color: var(--confirmed); }
.scene-panel .mt8 { margin-top: 8px; }
.scene-panel.receipt-note .quote { margin: 4px 0 8px; font-family: var(--display); font-weight: 650; font-size: 0.95rem; line-height: 1.3; letter-spacing: -0.01em; }
.stamp {
  position: absolute; z-index: 3; padding: 6px 10px; border: 3px solid var(--confirmed); color: var(--confirmed); border-radius: 8px;
  font: 800 0.75rem/1 var(--display); letter-spacing: 0.05em; text-transform: uppercase; rotate: -8deg; background: color-mix(in srgb, var(--paper) 75%, transparent);
}
/* The stamp sits on the card's top edge, outside the app card, so it never covers its text. */
.stamp.on-card { right: auto; left: 22px; top: -15px; bottom: auto; z-index: 4; }

.choices { display: none; }
.js .choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.choices .chip span { background: var(--paper); }
.choices .chip input:checked + span { background: var(--reading-ink); }
.scene .caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin-top: 12px; }
.play-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--reading-ink); color: var(--canvas); font: 650 0.75rem/1 var(--text); box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--orange-cue) 85%, transparent);
}
.play-chip .pc-replay { display: none; }
.scene.has-played .play-chip .pc-play, .scene.is-running .play-chip .pc-play { display: none; }
.scene.has-played .play-chip .pc-replay, .scene.is-running .play-chip .pc-replay { display: inline; }
.scene.is-running .play-chip { opacity: 0.5; pointer-events: none; }

/* The paper sun: the hero glow travels down the day. One token colour; position and opacity are fixed per section. */
.scene::before {
  content: ""; position: absolute; z-index: -1; left: var(--sun-x, 50%); top: var(--sun-y, 40%); width: 95%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; opacity: var(--sun, 0); pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--orange-cue) 22%, transparent), color-mix(in srgb, var(--orange-cue) 6%, transparent) 60%, transparent);
}
.sun-0845 .scene { --sun: 1; --sun-x: 18%; --sun-y: 10%; }
.sun-0910 .scene { --sun: .95; --sun-x: 30%; --sun-y: 4%; }
.sun-1020 .scene { --sun: .9; --sun-x: 44%; --sun-y: 0%; }
.sun-1300 .scene { --sun: .85; --sun-x: 50%; --sun-y: -4%; }
.sun-away .scene { --sun: .8; --sun-x: 58%; --sun-y: 0%; }
.sun-1530 .scene { --sun: .7; --sun-x: 68%; --sun-y: 6%; }
.sun-1845 .scene { --sun: .55; --sun-x: 82%; --sun-y: 22%; }
.sun-2015 .scene { --sun: .4; --sun-x: 90%; --sun-y: 46%; }
.sun-2230 .scene { --sun: .22; --sun-x: 94%; --sun-y: 78%; }
.sun-2330 .scene { --sun: 0; }

/* ---------- The three beats (day.js adds .primed, then .b1 .b2 .b2b .b3 .b4; the finished card is the default) ---------- */

.scene.primed .r-rest, .scene.primed .u-bubble, .scene.primed .d-bubble, .scene.primed .o-bubble-l, .scene.primed .scene-panel, .scene.primed .stamp { opacity: 0; }
.scene.primed .r-enter { display: block; transform: translateX(-60px); will-change: transform; }
.scene.primed.b1 .r-enter { transform: none; transition: transform 600ms cubic-bezier(.2,.8,.2,1); }
.scene.primed .big-time { clip-path: inset(0 100% 0 0); }
.scene.primed.b1 .big-time { opacity: 1; clip-path: inset(0 0 0 0); transition: clip-path 300ms cubic-bezier(.3,.7,.2,1); }
.scene.primed.b2b .big-time { opacity: 0; transition: opacity 150ms ease; }
.scene.primed.b1 .fx { opacity: 1; transition: opacity 200ms ease 300ms; }
.scene.primed.b2 .fx { opacity: 0; transition: opacity 150ms ease; }
.scene.primed.b1 .dash-path { opacity: 1; transition: opacity 200ms ease; }
.scene.primed.b2 .dash-path { opacity: 0; transition: opacity 150ms ease; }
.scene.primed.b1 .r-prop { animation: wobble 240ms ease 300ms 2 both; }
@keyframes wobble { 0%, 100% { rotate: 0deg; } 25% { rotate: -6deg; } 75% { rotate: 6deg; } }
.scene.primed .u-bubble, .scene.primed .o-bubble-l { transform: scale(.97); }
.scene.primed.b2 .u-bubble, .scene.primed.b2 .o-bubble-l { opacity: 1; transform: none; transition: opacity 150ms ease, transform 150ms cubic-bezier(.2,.8,.2,1); }
.scene.primed.b2b .r-enter { display: none; }
.scene.primed.b2b .r-rest { opacity: 1; }
.scene.primed.b2b .d-bubble { opacity: 1; transition: opacity 120ms ease; }
.scene.primed .scene-panel { transform: translateY(24px); }
.scene.primed.b3 .scene-panel { opacity: 1; transform: none; transition: opacity 300ms ease, transform 300ms cubic-bezier(.2,.8,.2,1); }
.scene.primed .stamp { scale: 1.3; }
.scene.primed.b4 .stamp { opacity: 1; scale: 1; transition: opacity 200ms ease, scale 200ms cubic-bezier(.2,.8,.2,1); }
.scene.primed.b4 .stamp.land { opacity: 1; }
/* Doddy's line, word by word, with a caret until it ends. */
.d-bubble.typing .w { opacity: 0; }
.d-bubble.typing.show .w { opacity: 1; transition: opacity 80ms linear; transition-delay: var(--d, 0ms); }
.d-bubble.typing:not(.done) .line::after { content: ""; display: inline-block; width: 2px; height: 0.85em; margin-left: 2px; vertical-align: -0.08em; background: var(--accent-text); }

/* Phones: the card is the page, a chip plays the scene (the finished card is the default; day.js primes it on tap). */
/* Up to 1100 px the card stacks like a phone: the scene, then what you said, then the app's card. */
@media (max-width: 1100px) {
  .scene-card { display: grid; gap: 10px; padding: 7px; border-radius: 20px; }
  .scene-art { border-radius: 14px; }
  .u-bubble { position: static; justify-self: end; max-width: 86%; font-size: 0.875rem; }
  .d-bubble { font-size: 1.2rem; max-width: 58%; }
  /* Below the stamp on the card's edge, clear of the top of the scene. */
  .d-bubble.stack, .u-bubble.two-lines ~ .d-bubble.stack, .d-bubble.stack.lower { top: 24%; }
  .scene-art .note { font-size: 0.9rem; padding: 4px 7px; }
  .scene-art .note.n1 { left: 3%; top: 13%; }
  .scene-art .note.n2 { left: 3%; top: 32%; }
  .scene-art .note.n3 { left: 3%; top: 51%; }
  #text .r-extra.r-extra { left: 3%; top: 26%; max-width: 30%; }
  .scene-panel { position: relative; width: auto !important; font-size: 0.8125rem; }
  .scene-art .o-bubble-l { font-size: 0.8125rem; max-width: 40%; }
  .scene-art .o-bubble-l + .d-bubble { font-size: 1.05rem; max-width: 40%; }
  .scene-art .d-bubble.kiosk-reply { max-width: 40%; }
  .scene-art .big-time { font-size: 2rem; }
  .scene.primed .r-enter { transform: translateX(-40px); }
}
@media (max-width: 700px) { .stamp.on-card { top: -14px; } }

/* ---------- Doddy between moments ---------- */

.wrap.travel { overflow-x: clip; }
.travel { display: flex; align-items: flex-end; gap: 14px; padding: 0 0 8px; }
.travel .t-doddy { width: 84px; height: auto; flex: none; }
.travel .look-prop { width: 40px; height: auto; margin-left: -6px; }
.travel .path { flex: 1 1 0; min-width: 0; width: 100%; height: 28px; }
.travel .path path { fill: none; stroke: var(--separator); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.travel .says-small { flex: 0 1 auto; min-width: 0; max-width: 60%; margin: 0 0 20px; }
@media (max-width: 700px) { .travel .path { display: none; } .travel .says-small { flex: 1 1 0; max-width: none; font-size: 1.35rem; } }
.travel.primed .t-doddy { transform: translateX(-120px); }
.travel.primed .look-prop, .travel.primed .says-small .line { opacity: 0; }
.travel.go .t-doddy { transform: none; transition: transform 600ms cubic-bezier(.2,.8,.2,1); }
.travel.go .look-prop, .travel.go .says-small .line { opacity: 1; transition: opacity 200ms ease 400ms; }
@media (max-width: 700px) { .travel.primed .t-doddy { transform: translateX(-60px); } }

/* The 18:45 peek (one of four surprises, once per visit). */
.peek { position: absolute; z-index: 4; right: -26px; bottom: 18px; width: 86px; height: auto; transform: scaleX(-1); filter: drop-shadow(0 8px 8px rgb(60 40 10 / 14%)); }
.peek-note { position: absolute; z-index: 4; right: -30px; bottom: 110px; margin: 0; font-family: var(--hand); font-weight: 700; font-size: 1.2rem; color: var(--accent-text); rotate: 6deg; white-space: nowrap; }
.peek.pre { transform: scaleX(-1) translateX(30px); opacity: 0; }
.peek.in { transition: transform 300ms cubic-bezier(.2,.8,.2,1), opacity 200ms ease; }
@media (max-width: 700px) { .peek, .peek-note { display: none !important; } }
.surprise-shush { margin: 18px 0 0; display: flex; align-items: flex-end; gap: 10px; }
.surprise-shush img { width: 72px; height: auto; }
.surprise-shush .says-small { margin: 0 0 18px; }
.surprise-shush.pre { opacity: 0; }
.surprise-shush.in { transition: opacity 300ms ease; }

/* ---------- Sign-off, honesty strip, final ask ---------- */

.signoff-wrap { padding: clamp(40px, 6vw, 72px) 0 clamp(8px, 2vw, 24px); border-top: 1px solid var(--separator); }
.signoff {
  position: relative; width: 100%; max-width: 440px; margin: 0 auto; padding: 22px 26px 24px; background: var(--quiet-surface); border-radius: 6px 6px 0 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--rule) 31px 32px); transform: rotate(-1.2deg);
  filter: drop-shadow(0 18px 24px color-mix(in srgb, #000 18%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, radial-gradient(circle at 8px 0, #000 7px, transparent 7.5px) bottom / 16px 10px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, radial-gradient(circle at 8px 0, #000 7px, transparent 7.5px) bottom / 16px 10px repeat-x;
}
.signoff p { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 1.6rem; line-height: 1.1; }
.signoff .so-2 { font-size: 1.3rem; margin-top: 8px; }
.so-send { color: var(--accent-text); text-decoration-line: underline; text-decoration-color: var(--orange-cue); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.signoff .send-status { margin-left: 8px; font-family: var(--text); }

.truth { padding: clamp(24px, 4vw, 48px) 0; }
.truth-panel { position: relative; overflow: hidden; isolation: isolate; padding: clamp(36px, 6vw, 72px); background: var(--paper); border: 1px solid var(--separator); border-radius: 36px; box-shadow: var(--lift); display: grid; gap: 16px 40px; align-items: start; }
.truth-panel::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--orange-cue) 16%, transparent), transparent); pointer-events: none; z-index: -1; }
@media (min-width: 900px) { .truth-panel { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.truth-panel h2 { font-family: var(--display); font-weight: 750; font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 6px; }
.truth-panel p { color: var(--secondary-text); margin: 0; max-width: 30rem; }
.truth-panel .says-small { color: var(--accent-text); }
.truth-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.truth-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.truth-list .cap { margin-top: 2px; }
.truth-list span:last-child { color: var(--secondary-text); font-size: 0.9375rem; }

.ask-end .join-panel { align-items: center; }
.ask-end .scraps { margin: 18px 0 8px; }
.ask-end .waitlist { margin-top: 20px; }

@media (prefers-reduced-motion: reduce) {
  .stage.intro .obj, .stage.intro.in .obj { opacity: 1; transform: none; }
  .scene.primed .r-enter { transform: none; }
}

/* Narrow phones: the tiles and the card's bubbles shrink so nothing touches. */
@media (max-width: 400px) {
  .obj { width: 80px; padding: 6px 4px 5px; gap: 2px; }
  .obj img, .obj svg { width: 34px; height: 34px; }
  .obj-cap { font-size: 0.82rem; }
  .obj.o-alarm { top: 6%; }
  .obj.o-phone { top: 4%; }
  .obj.o-coffee { top: 38%; }
  .obj.o-suitcase { top: 33%; }
  .obj.o-calendar, .obj.o-bag { bottom: 0; }
  .scene-art .d-bubble { font-size: 1.05rem; max-width: 62%; }
  .scene-art .note { font-size: 0.82rem; }
}
/* Mid widths: tiles and their captions shrink so none touch. */
@media (min-width: 701px) and (max-width: 1100px) {
  .obj { width: 102px; padding: 8px 6px 7px; gap: 4px; }
  .obj img, .obj svg { width: 50px; height: 50px; }
  .obj-cap { font-size: 0.98rem; }
}
