/* Aoide Studio / So Today: one stylesheet for every page.
   Round 3: the paintings carry the page; type and spacing get out of their way. Light only (the gouache is painted on
   cream; a dark ground would cut it out). Newsreader speaks, Onest explains (the app's own pair). */

:root {
  --paper: #fbf7ef;
  --paper-2: #f4eee2;
  --card: #ffffff;
  --ink: #16171b;
  --ink-2: #4b4d56;
  --ink-3: #5a5c66;
  --rule: rgba(22, 24, 38, .12);
  /* The six petal colours (the icon's blobs; the app's kind hues, theme.ts hueHex light: dot / deep). One or two per
     section; all six together only in the icon, the hero's wash and the bloom. */
  --people: #EA7CA1; --people-deep: #9C3E60;
  --mood: #E78A45; --mood-deep: #964C04;
  --place: #D79628; --place-deep: #855904;
  --body: #3FBF86; --body-deep: #04764C;
  --work: #3FAFF3; --work-deep: #026A9D;
  --rest: #A494F6; --rest-deep: #6453A7;
  --hue: var(--rest); --hue-deep: var(--rest-deep);
  --mark: #fff1b8;
  --on-ink: #fbf7ef;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --gutter: 16px;
  --max: 1200px;
  --col-gap: 16px;
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 32px; --col-gap: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink);
  background: var(--paper) url("img/paper-grain.webp") repeat;
  background-size: 1024px 1024px;
  font: 400 17px/1.6 var(--sans); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1.5px; text-decoration-color: var(--hue); }
a:hover { color: var(--hue-deep); }
:focus-visible { outline: 2px solid var(--hue-deep); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.grid > * { grid-column: 1 / -1; }

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.site-header { border-bottom: 1px solid var(--rule); }
.brand { font-family: var(--serif); font-size: 21px; text-decoration: none; letter-spacing: -.02em; white-space: nowrap; }
.site-nav { display: flex; gap: 22px; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--ink-2); white-space: nowrap; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { text-decoration: underline; }
@media (max-width: 380px) { .site-nav { gap: 14px; font-size: 14px; } .brand { font-size: 19px; } }

/* Type: one display size (the hero), one heading size, one reading size, one label */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: clamp(50px, 9vw, 88px); line-height: .98; letter-spacing: -.035em; }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.015em; }
h3 { font-size: clamp(26px, 3vw, 32px); line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.9vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 30em; }
.label, .eyebrow { font-size: 15px; font-weight: 600; color: var(--hue-deep); }
.hue-people { --hue: var(--people); --hue-deep: var(--people-deep); }
.hue-mood { --hue: var(--mood); --hue-deep: var(--mood-deep); }
.hue-place { --hue: var(--place); --hue-deep: var(--place-deep); }
.hue-body { --hue: var(--body); --hue-deep: var(--body-deep); }
.hue-work { --hue: var(--work); --hue-deep: var(--work-deep); }
.hue-rest { --hue: var(--rest); --hue-deep: var(--rest-deep); }
.small { font-size: 14px; color: var(--ink-3); }
.body-copy { color: var(--ink-2); font-size: 18px; line-height: 1.6; max-width: 32em; }

.btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); text-decoration: none; font-weight: 500; font-size: 16px;
}
.btn:hover { color: var(--on-ink); background: #2a2b31; }
.quiet { color: var(--ink-2); font-size: 15px; font-weight: 500; }

section { padding: 72px 0; }

/* ── Hero: a scene, the Listener at its table ── */
.hero { padding: 40px 0 64px; }
.hero .grid { row-gap: 36px; }
.hero-copy { display: grid; gap: 24px; justify-items: start; align-content: start; }
.app-mark { display: flex; align-items: center; gap: 14px; color: var(--ink-2); }
.app-mark img { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 0 0 1px rgba(22, 24, 38, .08); }
.app-mark strong.wordmark {
  display: block; width: max-content; color: var(--ink);
  font-family: var(--serif); font-size: clamp(32px, 3.6vw, 42px); font-weight: 400; line-height: 1.05; letter-spacing: -.045em;
}
.wordmark-today { display: inline-block; position: relative; top: .065em; margin-left: -.035em; font-style: italic; transform: rotate(-3deg); transform-origin: left center; }
.app-kind { display: block; margin-top: 9px; font-size: 14px; letter-spacing: 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.scene { position: relative; padding-bottom: 16%; }
.scene .room { width: 100%; }
/* The Listener at the table; her bust fades at its foot, so the flat cut never shows against the painting. */
.scene .f { position: absolute; -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 97%); mask-image: linear-gradient(to bottom, #000 74%, transparent 97%); }
.scene .f-listener { width: 36%; left: -2%; bottom: 0; }
.scene .said { position: absolute; left: 37%; right: 6%; bottom: 3%; font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.9vw, 22px); line-height: 1.3; color: var(--ink); }
.scene .said b { display: block; font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 14px; color: var(--hue-deep); margin-bottom: 2px; }
@media (max-width: 719px) {
  .scene { padding-bottom: 30%; }
  .scene .f-listener { width: 40%; left: -1%; }
  .scene .said { left: 41%; right: 0; font-size: 17px; }
  .scene .said b { font-size: 13px; }
}
@media (min-width: 960px) {
  .hero { padding: 64px 0 56px; }
  .hero-copy { grid-column: 1 / span 5; padding-top: 24px; }
  .scene { grid-column: 6 / -1; margin-right: calc(var(--gutter) * -1); transform: translateY(8px); padding-bottom: 12%; }
}

/* ── Phone frame around an unaltered capture (iPhone 6.9": screen corner 12.5%, island 28% wide) ── */
.phone { container-type: inline-size; width: 100%; }
.bezel { position: relative; background: #0c0c0f; padding: 2.6cqw; border-radius: 15.5cqw; box-shadow: inset 0 0 0 .5cqw #2b2b31, 0 18px 40px rgba(22, 24, 38, .16); }
.screen { position: relative; border-radius: 12.9cqw; overflow: hidden; aspect-ratio: 1320 / 2868; background: #fff; }
.screen img { width: 100%; height: 100%; object-fit: cover; }
.island { position: absolute; left: 50%; top: 2.4cqw; transform: translateX(-50%); width: 27.5cqw; height: 8cqw; border-radius: 99px; background: #000; }

/* ── After a Talk: the one tinted section, the page's demonstration ── */
.after { background: var(--paper-2); padding: 72px 0 88px; }
.after-head { display: grid; gap: 12px; margin-bottom: 48px; align-items: end; }
.after-head .label { margin-bottom: 10px; }
.after-head .spot { display: none; }
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: 40px; }
.results li { display: grid; grid-template-columns: 44% 1fr; gap: 18px; align-items: center; }
.results b { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; letter-spacing: -.01em; margin-bottom: 6px; }
.results span { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
@media (min-width: 720px) {
  .after { padding: 88px 0 104px; }
  .after-head { grid-template-columns: 1fr auto; margin-bottom: 64px; }
  .after-head .spot { display: block; width: 140px; margin-bottom: -28px; }
  .results { grid-template-columns: 1.15fr 1fr .85fr; gap: 48px; align-items: start; }
  .results li { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .results li:nth-child(2) { margin-top: 48px; }
  .results li:nth-child(3) { margin-top: 20px; }
  .results li:nth-child(1) .phone { width: 92%; }
  .results li:nth-child(2) .phone { width: 86%; }
  .results li:nth-child(3) .phone { width: 92%; }
}

/* ── Afterwords: a small interlude, the letter typeset on its painted sheet ── */
.interlude { padding: 56px 0 80px; }
.interlude .grid { row-gap: 28px; align-items: center; }
.interlude-copy { display: grid; gap: 14px; }
.letter {
  background: url("img/letter-paper.webp") center / 100% 100% no-repeat;
  color: #1f1e1a; padding: 9% 9% 11% 19.5%; min-height: 0;
}
.letter .from { font-size: 14px; color: #5b584f; margin-bottom: 14px; line-height: 1.35; }
.letter .from b { color: #1f1e1a; font-weight: 600; }
.letter blockquote { margin: 0; font-family: var(--serif); font-size: clamp(21px, 2.3vw, 27px); line-height: 1.25; letter-spacing: -.01em; }
.letter .sign { font-family: var(--serif); font-style: italic; color: #6453a7; font-size: 19px; margin-top: 8px; }
.letter .note { font-size: 16px; color: #5b584f; margin-top: 14px; line-height: 1.5; }
.letter .stamp { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #5b584f; font-weight: 600; margin-top: 14px; }
@media (max-width: 719px) { .letter { padding: 11% 8% 14% 21%; } }
@media (min-width: 960px) {
  .interlude-copy { grid-column: 1 / span 4; }
  .letter { grid-column: 6 / span 6; }
}

/* ── Companions ── */
.companions-section { padding: 56px 0 72px; }
.brush { width: 180px; margin: 0 0 40px; }
.companions-head { display: grid; gap: 14px; margin-bottom: 44px; }
.companions { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.companions li { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; }
.companions img { width: 96px; aspect-ratio: 1; object-fit: contain; object-position: center bottom; }
.companions b { display: block; font-family: var(--serif); font-weight: 400; font-size: 25px; letter-spacing: -.01em; line-height: 1.1; margin-bottom: 4px; }
.companions span { font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.companions-foot { margin-top: 44px; color: var(--ink-2); font-size: 16px; max-width: 40em; }
@media (min-width: 720px) {
  .companions-head { grid-column: 1 / span 7; }
  .companions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .companions li { grid-template-columns: 120px 1fr; gap: 20px; }
  .companions img { width: 120px; }
}
@media (min-width: 1100px) { .companions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; } .companions-section { padding: 64px 0 96px; } }

/* ── Privacy ── */
.privacy { padding: 96px 0 72px; }
.privacy .grid { row-gap: 36px; }
.privacy-head { display: grid; gap: 16px; align-content: start; }
.privacy-head .spot { width: min(220px, 55%); margin-top: 20px; }
.promises { list-style: none; padding: 0; margin: 0; }
.promises li { padding: 20px 0; border-top: 1px solid var(--rule); display: grid; gap: 4px; }
.promises li:last-child { border-bottom: 1px solid var(--rule); }
.promises b { font-weight: 600; font-size: 18px; }
.promises span { color: var(--ink-2); }
@media (min-width: 960px) { .privacy-head { grid-column: 1 / span 5; } .promises { grid-column: 7 / -1; } }

/* ── FAQ (also on support) ── */
.faq-section { padding: 104px 0 112px; }
.faq-head { margin-bottom: 32px; display: grid; gap: 18px; align-content: start; }
.faq-head .spot { display: none; }
@media (min-width: 960px) {
  .faq-section .faq-head { grid-column: 1 / span 4; }
  .faq-section .faq { grid-column: 6 / -1; }
  .faq-head .spot { display: block; width: 200px; margin-top: 24px; }
}
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-size: 18px; font-weight: 500; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 15px; font-size: 26px; font-weight: 300; color: var(--ink-3); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); display: grid; gap: 10px; max-width: 40em; }

/* ── Studio ── */
.studio { padding: 0 0 72px; }
.studio p { color: var(--ink-2); max-width: 44em; }
.studio p + p { margin-top: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 36px 0 48px; font-size: 14px; color: var(--ink-2); }
.site-footer .wrap { display: grid; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--ink); }
.footer-note { color: var(--ink-3); }

/* ── Support page ── */
.page-head { padding: 64px 0 28px; display: grid; gap: 18px; }
.page-head h1 { font-size: clamp(44px, 8vw, 72px); }
.page-body { padding: 24px 0 96px; }
.page-body h2 { font-size: clamp(28px, 3.6vw, 36px); margin: 52px 0 14px; }
.page-body h2:first-child { margin-top: 0; }
.page-body p, .page-body li { color: var(--ink-2); }
.page-body b { color: var(--ink); }
.page-body p + p { margin-top: 12px; }
.page-body ol, .page-body ul { padding-left: 1.3em; display: grid; gap: 6px; margin: 12px 0 0; }
.page-body ul + p, .page-body ol + p { margin-top: 14px; }
.contact-card { background: var(--card); border-radius: 20px; box-shadow: 0 0 0 1px var(--rule); padding: 28px; display: grid; gap: 8px; }
.contact-card a.email { font-family: var(--serif); font-size: clamp(24px, 5vw, 34px); letter-spacing: -.015em; color: var(--ink); word-break: break-word; }
.page-body .faq { margin-top: 8px; }

/* ── Legal pages (drafts in the site's shell; their text is unchanged) ── */
.legal { padding: 56px 0 96px; }
.legal h1 { font-size: clamp(36px, 6vw, 52px); line-height: 1.05; margin-bottom: 20px; }
.legal h2 { font-size: 28px; letter-spacing: -.015em; margin: 2em 0 .5em; }
.legal h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: 0; margin: 1.5em 0 .4em; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; }
.legal p { margin: .8em 0; }
.legal strong { color: var(--ink); }
.legal ul { padding-left: 1.3em; }
.legal li { margin: .35em 0; }
.legal li.sub { margin-left: 1.4em; }
.legal table { border-collapse: collapse; width: 100%; font-size: 14px; display: block; overflow-x: auto; margin: 1em 0; }
.legal td, .legal th { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; color: var(--ink-2); }
.legal th { color: var(--ink); }
.legal mark { background: var(--mark); color: inherit; padding: 0 2px; border-radius: 3px; }
.legal-switch { font-size: 14px; color: var(--ink-3); margin-bottom: 8px; }

/* ── The home hero (variant B, chosen 2026-10-20): the Listener alone on the cream, her rig (rig.js) ── */
.variant-b .solo { position: relative; justify-self: center; width: 71%; display: grid; gap: 4px; }
.variant-b .rig { position: relative; width: 100%; aspect-ratio: 1; -webkit-mask-image: linear-gradient(to bottom, #000 73%, transparent 93.5%); mask-image: linear-gradient(to bottom, #000 73%, transparent 93.5%); }
.rig-l, .rig-head { position: absolute; inset: 0; width: 100%; height: 100%; }
.rig-head { will-change: transform; }
.rig-p { position: absolute; display: block; }
.rig-m { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.rig-on .said .w { opacity: 0; transition: opacity .18s ease-out; }
.rig-on .said .w.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .rig-on .said .w { transition: none; } }
.variant-b .solo .said { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.3; text-align: center; }
.variant-b .solo .said b { display: block; font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 13px; color: var(--hue-deep); margin-bottom: 2px; }
@media (min-width: 960px) {
  .variant-b .hero .grid { align-items: center; }
  .variant-b .solo { grid-column: 7 / -1; width: auto; justify-self: stretch; display: block; height: 530px; }
  .variant-b .rig { position: absolute; left: calc(4% - 38px); top: -29px; width: 506px; }
  .variant-b .solo .said { position: absolute; left: 4%; top: 448px; width: 428px; font-size: 22px; margin: 0; }
  .variant-b .solo .said b { font-size: 14px; }
}

/* ── Brand pass: the mark, today, the petals ── */
.nav-app { display: inline-flex; align-items: center; gap: 7px; }
.nav-app img { width: 20px; height: 20px; border-radius: 5px; box-shadow: 0 0 0 1px rgba(22, 24, 38, .08); }
.app-mark img { width: 72px; height: 72px; border-radius: 16px; }
@media (max-width: 719px) { .app-mark img { width: 60px; height: 60px; border-radius: 14px; } }
/* Today, as the Journal's header shows it: the weekday small, the date large */
.today { display: grid; gap: 0; margin-top: -6px; }
.today-wd { font-size: 16px; color: var(--ink-3); }
.today-d { font-weight: 700; font-size: clamp(28px, 3vw, 34px); letter-spacing: -.02em; line-height: 1.1; }
/* The hero's wash: the icon's six blobs, blurred and faint, off-centre behind the Listener */
.hero { position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.hero > .wash {
  position: absolute; z-index: 0; pointer-events: none; top: -4%; right: -6%; width: 64%; height: 112%;
  background:
    radial-gradient(closest-side at 50% 16%, rgba(234, 124, 161, .17), transparent),
    radial-gradient(closest-side at 80% 34%, rgba(231, 138, 69, .15), transparent),
    radial-gradient(closest-side at 78% 70%, rgba(215, 150, 40, .15), transparent),
    radial-gradient(closest-side at 48% 86%, rgba(63, 191, 134, .14), transparent),
    radial-gradient(closest-side at 18% 68%, rgba(63, 175, 243, .14), transparent),
    radial-gradient(closest-side at 20% 32%, rgba(164, 148, 246, .17), transparent);
  background-size: 100% 100%; filter: blur(28px);
}
@media (max-width: 959px) { .hero > .wash { top: 34%; right: -20%; width: 120%; height: 70%; } }
/* Petal marks: one colour each, the app's kind dots */
.results b[class^="dot-"]::before, .promises b::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 9px; vertical-align: .12em; background: var(--dot, var(--hue)); }
.dot-people { --dot: var(--people); }
.dot-work { --dot: var(--work); }
.cap-bloom { display: grid; grid-template-columns: 1fr 30%; column-gap: 10px; align-items: start; }
.cap-bloom b, .cap-bloom span { grid-column: 1; }
.cap-bloom .bloom { grid-column: 2; grid-row: 1 / span 2; width: 100%; margin-top: -8px; }
@media (min-width: 720px) { .cap-bloom { grid-template-columns: 1fr 44%; } .cap-bloom .bloom { margin-top: -84px; } }
.companions b::after { content: ""; display: block; width: 28px; height: 2px; border-radius: 2px; background: var(--hue); margin-top: 7px; }
.faq summary::after { color: var(--hue-deep); }
.faq details[open] summary { color: var(--hue-deep); }
.privacy .brush { grid-column: 1 / -1; }

/* ── Reveal on scroll (reveal.js adds .reveal-on; without it, or with reduced motion, nothing is hidden).
   The app's EASE_OUT (motion.ts: 0.2, 0.8, 0.2, 1); transform and opacity only, so nothing shifts the layout. ── */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 520ms cubic-bezier(.2, .8, .2, 1), transform 520ms cubic-bezier(.2, .8, .2, 1); }
.reveal-on [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-on [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ── Scroll-driven scenes (motion.js adds .motion and .sda (native) or .sdj (fallback); without them, all is static).
   Each [data-s] runs --anim against its nearest [data-tl] wrapper over --range (animation-range syntax). The wrappers
   never move, so the timelines never chase their own transforms. Transform and opacity only. ── */
[data-tl] { --tl: 1; }
.sda [data-tl] { view-timeline-name: --v; }
.motion [data-s] { will-change: transform, opacity; }
.sda [data-s] { animation: var(--anim) var(--ease, cubic-bezier(.25, .7, .25, 1)) both; animation-timeline: --v; animation-range: var(--range); }
.sdj [data-s] { animation: var(--anim) 1s var(--ease, cubic-bezier(.25, .7, .25, 1)) both paused; animation-delay: calc(var(--p, 0) * -1s); }
@media (prefers-reduced-motion: reduce) { .motion [data-s] { animation: none !important; } }

@keyframes s-sink { to { transform: translateY(var(--sink, 300px)); } }
@keyframes s-lift { to { transform: translateY(-90px); } }
@keyframes s-fade { to { opacity: .08; transform: translateY(-28px); } }
@keyframes s-phone { from { opacity: 0; transform: translateY(60px) scale(.94); } }
@keyframes s-cap { from { opacity: 0; transform: translateY(24px); } }
@keyframes s-paper { from { opacity: 0; transform: translateY(80px) scale(1.02); } }
@keyframes s-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes s-rise { from { opacity: 0; transform: translateY(40px); } }
@keyframes s-draw { from { transform: scaleX(0); } }
@keyframes s-bloom { from { opacity: 0; transform: scale(.7) rotate(6deg); } }

/* Hero: as it scrolls away, the Listener sinks back (moves at ~0.6 of the page), the headline and date fade, the wash
   drifts the other way */
.hero .rig { --anim: s-sink; --ease: linear; --range: exit 0% exit 100%; }
.hero > .wash { --anim: s-lift; --ease: linear; --range: exit 0% exit 100%; }
.hero h1, .hero .today { --anim: s-fade; --ease: linear; --range: exit 0% exit 60%; }
@media (max-width: 959px) { .hero .rig { --sink: 220px; } }

/* After a Talk, without a pin (phones, tablets): each phone and its caption rise as they enter */
.results .phone { --anim: s-phone; --range: entry 0% entry 100%; }
.results li > div[data-s] { --anim: s-cap; --range: entry 30% entry 100%; }
.results .bloom { --anim: s-bloom; --range: entry 40% cover 45%; transform-origin: 50% 100%; }

/* After a Talk, pinned (wide and tall enough): the section is 250vh, its content sticks, and the three phones
   assemble one after another against the section's own timeline; then the pin lets go */
@media (min-width: 960px) and (min-height: 640px) {
  .motion .after { height: 250vh; padding: 0; }
  .motion .after > .wrap { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 24px; padding-bottom: 24px; }
  .motion .after-head { margin-bottom: 28px; }
  .motion .after-head .spot { width: 110px; margin-bottom: -16px; }
  .motion .results { --pw: calc((100vh - 400px) * .47); }
  .motion .results li .phone { width: calc(var(--pw) * 1.06); }
  .motion .results li:nth-child(2) .phone { width: var(--pw); }
  .motion .results li:nth-child(3) .phone { width: calc(var(--pw) * .94); }
  .motion .results li:nth-child(2) { margin-top: 40px; }
  .motion .results li:nth-child(3) { margin-top: 16px; }
  .motion .results { gap: 32px; }
  .motion .results li { gap: 16px; }
  .motion .cap-bloom { grid-template-columns: 1fr 34%; }
  .motion .cap-bloom .bloom { margin-top: -56px; }
  .motion .results li { --tl: 0; }
  .sda .results li { view-timeline-name: none; }
  .results li:nth-child(1) > [data-s] { --range: entry 70% contain 26%; }
  .results li:nth-child(2) > [data-s] { --range: contain 22% contain 50%; }
  .results li:nth-child(3) > [data-s] { --range: contain 46% contain 74%; }
  .results li > div[data-s] { --anim: s-cap; }
  .results li:nth-child(1) > div[data-s] { --range: contain 6% contain 30%; }
  .results li:nth-child(2) > div[data-s] { --range: contain 30% contain 54%; }
  .results li:nth-child(3) > div[data-s] { --range: contain 54% contain 78%; }
  .results .bloom { --range: contain 64% contain 92%; }
}

/* Afterwords: the letter paper is set down (from 80 px below, settling from 1.02), the words follow it */
.interlude .letter { --anim: s-paper; --range: entry 10% cover 48%; }
.interlude .interlude-copy { --anim: s-up; --range: cover 26% cover 52%; }

/* Companions: the divider draws itself from the left; the cards rise, a column at a time */
.companions-section .brush { --anim: s-draw; --range: entry 5% entry 55%; transform-origin: 0 50%; }
.companions li > [data-s] { --anim: s-rise; --range: entry 0% cover 32%; }
@media (min-width: 720px) and (max-width: 1099px) { .companions li:nth-child(2n) > [data-s] { --range: entry 30% cover 38%; } }
@media (min-width: 1100px) {
  .companions li:nth-child(3n+2) > [data-s] { --range: entry 25% cover 36%; }
  .companions li:nth-child(3n) > [data-s] { --range: entry 50% cover 40%; }
}

/* ══ The story (index.html on desktop with motion allowed; story.js adds .story-on). Without it: display none. ══ */
.story { display: none; }
.story-on .story { display: block; position: relative; }
.story-on .hero, .story-on #after, .story-on #afterwords, .story-on #companions { display: none; }
.story-on .site-header { position: fixed; left: 0; right: 0; top: 0; z-index: 50; background: rgba(251, 247, 239, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.story .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; --L: max(32px, calc((100vw - 1136px) / 2)); }
.story [data-k], .story .tw, .story .qc, .story .lw { will-change: transform, opacity; }
.story-a { height: 1000vh; }
.story-b { height: 280vh; }
.story-c { height: 300vh; }
.story-d { height: 190vh; }
.story h2 { font-size: clamp(44px, 5vw, 72px); line-height: 1.02; letter-spacing: -.03em; }

/* A: the headlines, one per scene, stacked in the left column */
.sa-heads { position: absolute; left: var(--L); top: 0; width: min(44vw, 560px); height: 100%; }
.sh { position: absolute; left: 0; right: 0; top: 18vh; display: grid; gap: 18px; justify-items: start; }
.sh1 { top: 14vh; gap: 20px; }
.sh1 .sh-title { font-size: clamp(56px, 6.6vw, 92px); line-height: .98; letter-spacing: -.035em; }
.sh .body-copy { max-width: 26em; }
/* the Listener and her line */
.sa-listener { position: absolute; left: 52vw; top: 6vh; width: min(46vh, 30vw); margin: 0; display: grid; justify-items: center; gap: 0; }
.sa-listener .rig { position: relative; width: 100%; aspect-ratio: 1; -webkit-mask-image: linear-gradient(to bottom, #000 73%, transparent 93.5%); mask-image: linear-gradient(to bottom, #000 73%, transparent 93.5%); }
.sa-listener .said { font-family: var(--serif); font-style: italic; font-size: 22px; text-align: center; margin-top: -2vh; }
.sa-listener .said b { display: block; font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 14px; color: var(--rest-deep); }
/* the visitor's words, as they talk */
.sa-words { position: absolute; left: 52vw; top: 57vh; width: min(30vw, 400px); margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.1vw, 29px); line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.sa-words .tw { display: inline-block; }
.sa-you { display: block; font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--people-deep); letter-spacing: 0; margin-bottom: 6px; }
.sa-talkphone { position: absolute; right: max(24px, calc(var(--L) - 2vw)); bottom: 2vh; width: min(13vw, 180px); }
.sa-ribbon { position: absolute; right: max(16px, calc(var(--L) - 3vw)); bottom: calc(2vh + min(10.6vw, 147px)); width: min(15vw, 205px); transform-origin: 35% 100%; }
/* the moment card, as the app draws it */
.sa-card { position: absolute; left: 52vw; top: 57vh; width: min(30vw, 400px); background: #fff; border-radius: 24px; padding: 24px 26px; display: grid; gap: 10px;
  box-shadow: 0 1px 0 rgba(22, 24, 38, .08), 0 1px 2px rgba(22, 24, 38, .03), 0 8px 20px rgba(22, 24, 38, .05), 0 24px 50px rgba(22, 24, 38, .10); }
.sa-card .chip { justify-self: start; padding: 4px 11px; border-radius: 999px; background: #FEE8EE; color: #95385B; font-size: 13px; font-weight: 500; }
.sa-card .title { font-weight: 700; font-size: 30px; letter-spacing: -.02em; line-height: 1.1; }
.sa-card .text { font-size: 18px; line-height: 1.45; }
/* the one phone */
.sa-phone { position: absolute; top: 9vh; left: calc(100vw - var(--L) - 40vh); width: 39vh; }
.sa-phone .screen { background: #F6F6F9; }
.sa-phone .scr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen-blank { position: absolute; inset: 0; background: linear-gradient(#fbe9ef, #fff 40%); }
/* Find: the ask bar types, the answer draws, the sources rise */
.sa-ask { position: absolute; left: var(--L); top: 50vh; width: min(40vw, 520px); display: grid; gap: 18px; }
.sa-ask .ask-bar { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 8px 8px 8px 20px; box-shadow: 0 0 0 1px rgba(22, 24, 38, .06), 0 6px 20px rgba(22, 24, 38, .06); }
.sa-ask .ask-bar svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); }
.sa-ask .q { flex: 1; font-size: 21px; font-weight: 500; white-space: nowrap; }
.sa-ask .qc { display: inline-block; }
.sa-ask .go { background: var(--ink); color: var(--on-ink); border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 15px; }
.sa-ask .answer { display: grid; gap: 6px; font-family: var(--serif); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.38; padding: 0 4px; }
.sa-ask .sources { display: flex; flex-wrap: wrap; gap: 8px; }
.sa-ask .src { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: #E0F1FF; color: #00649E; font-weight: 500; }
/* Reflect: the bloom, petal by petal */
.sa-bloom { position: absolute; left: calc(var(--L) + 9vw); top: 43vh; height: 54vh; aspect-ratio: 477 / 824; }
.sa-bloom .pt { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 53.8% 39.1%; }
.kl { position: absolute; z-index: 2; font-size: 15px; font-weight: 600; color: var(--hue-deep); white-space: nowrap; }
.kl::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--hue); margin-right: 7px; vertical-align: .08em; }
.kl-people { left: 66%; top: 1%; }
.kl-place { left: 98%; top: 20%; }
.kl-rest { left: 96%; top: 64%; }
.kl-work { right: 100%; top: 59%; }
.kl-body { right: 100%; top: 23%; }

/* B: the letter, set down */
.sb-copy { position: absolute; left: var(--L); top: 30vh; width: min(34vw, 440px); display: grid; gap: 16px; }
.sb-letter { position: absolute; top: 20vh; left: calc(var(--L) + 40vw); width: min(48vw, 640px); color: #1f1e1a;
  background: url("img/story/letter-paper-plain.webp") center / 100% 100% no-repeat; --w: min(48vw, 640px); padding: calc(var(--w) * .075) calc(var(--w) * .08) calc(var(--w) * .1) calc(var(--w) * .2); }
.sb-letter > * + * { margin-top: 12px; }
.sb-rule { position: absolute; left: 14.5%; top: 4.6%; height: 89.4%; width: 2px; border-radius: 2px; background: rgba(100, 83, 167, .55); transform-origin: 50% 0; }
.sb-letter .from { font-size: 14px; color: #5b584f; } .sb-letter .from b { color: #1f1e1a; font-weight: 600; }
.sb-letter blockquote { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.3vw, 32px); line-height: 1.22; letter-spacing: -.01em; }
.sb-letter .lw { display: inline-block; }
.sb-letter .sign { font-family: var(--serif); font-style: italic; color: #6453a7; font-size: 20px; }
.sb-letter .note { font-size: 17px; color: #5b584f; line-height: 1.5; }
.sb-letter .stamp { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #5b584f; font-weight: 600; }

/* C: the companions on an arc, the Listener last, in the middle */
.sc-copy { position: absolute; left: var(--L); top: 10vh; width: min(30vw, 400px); display: grid; gap: 14px; }
.sc-copy h2 { font-size: clamp(40px, 4vw, 58px); }
.sc-brush { width: 160px; transform-origin: 0 50%; }
.sc { position: absolute; margin: 0 0 0 -100px; width: 200px; display: grid; justify-items: center; text-align: center; gap: 6px; }
.sc > img { width: 13vh; height: auto; }
.sc figcaption b { display: block; font-family: var(--serif); font-weight: 400; font-size: 23px; letter-spacing: -.01em; }
.sc figcaption span { display: block; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.c-winddown { left: 12%; top: 58vh; } .c-detective { left: 30%; top: 40vh; } .c-untangler { left: 50%; top: 13vh; }
.c-coach { left: 70%; top: 40vh; } .c-joker { left: 88%; top: 58vh; }
.c-listener { left: 50%; top: 40vh; width: 300px; margin-left: -150px; }
.c-listener .rig { position: relative; width: 33vh; aspect-ratio: 1; -webkit-mask-image: linear-gradient(to bottom, #000 73%, transparent 93.5%); mask-image: linear-gradient(to bottom, #000 73%, transparent 93.5%); }
.c-listener figcaption { margin-top: -3vh; }
.sc-foot { position: absolute; left: 0; right: 0; bottom: 4vh; text-align: center; font-size: 15px; color: var(--ink-2); }

/* D: the close, the petals in full colour */
.story-d .stage { display: grid; place-items: center; }
.sd-wash { position: absolute; inset: 0; pointer-events: none; }
.sd-wash i { position: absolute; left: 50%; top: 50%; width: 52vmin; height: 52vmin; margin: -26vmin 0 0 -26vmin; border-radius: 50%; filter: blur(34px);
  background: radial-gradient(closest-side, var(--c) 0%, transparent 100%); opacity: .62;
  transform: rotate(var(--a)) translateY(-27vmin) rotate(calc(var(--a) * -1)); }
.sd-wash i:nth-child(1) { --a: 0deg; --c: #EA7CA1; }
.sd-wash i:nth-child(2) { --a: 60deg; --c: #E78A45; }
.sd-wash i:nth-child(3) { --a: 120deg; --c: #D79628; }
.sd-wash i:nth-child(4) { --a: 180deg; --c: #3FBF86; }
.sd-wash i:nth-child(5) { --a: 240deg; --c: #3FAFF3; }
.sd-wash i:nth-child(6) { --a: 300deg; --c: #A494F6; }
.sd-copy { position: relative; display: grid; justify-items: center; text-align: center; gap: 20px; }
.sd-icon { width: 150px; height: 150px; border-radius: 34px; box-shadow: 0 0 0 1px rgba(22, 24, 38, .06), 0 18px 44px rgba(22, 24, 38, .16); }
.sd-copy h2 { font-size: clamp(60px, 7vw, 104px); line-height: .98; letter-spacing: -.035em; }
.sd-copy .today { justify-items: center; }
