/* dosides.com landing page. Paper (light) only for now; tokens from Docs/v1 design/design-system.
   Two modes: the default is a plain, readable column (no script, or reduced motion).
   html.anim (set by landing.js once GSAP loads) turns the story into one pinned stage the scroll plays. */

@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #f4efe4;
  --ink: #2e3a46;
  --ink-muted: #5b6672;
  --swim: #3f7fa6;
  --lift: #b5653a;
  --cardio: #c9963a;
  --distance: #285f82;
  --clock: #74530c;
  --lockin: #007a5e;
  --waterline: #7fb8b3;
  --waterline-wash: #a9d3cc;
  --rule: rgba(46, 58, 70, 0.12);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --top: 64px;
  color-scheme: light;
}
@media (max-width: 899px) { :root { --top: 56px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(1200px 700px at 15% 0%, rgba(255,255,255,.45), transparent 60%), radial-gradient(900px 600px at 100% 100%, rgba(232,223,204,.5), transparent 70%); }
main, .foot { position: relative; z-index: 1; }
img { max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--swim); outline-offset: 3px; border-radius: 4px; }
h1, h2, p { margin: 0; }
i { font-style: normal; }

/* ── top bar ── */
.top { position: fixed; z-index: 50; left: 0; right: 0; top: 0; height: calc(var(--top) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0; display: flex; align-items: center; gap: 28px;
  background: rgba(244, 239, 228, .82); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--rule); }
.wordmark { font-family: var(--serif); font-style: italic; font-size: 24px; text-decoration: none; margin-right: auto; }
.top-nav { display: flex; gap: 24px; font-size: 15px; color: var(--ink-muted); }
.top-nav a { text-decoration: none; } .top-nav a:hover { color: var(--ink); }
.badge-link img { display: block; height: 36px; width: auto; }
@media (max-width: 899px) { .top-nav { display: none; } .wordmark { font-size: 21px; } .badge-link img { height: 32px; } }

/* ── the opening ── */
.hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--top) + 48px) var(--gutter) 64px; }
.hero-in { width: 100%; max-width: 1180px; margin: 0 auto; }
.eyebrow { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 14px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.6vw, 68px); line-height: 1.03; letter-spacing: -0.02em; max-width: 15em; text-wrap: balance; }
.star { font-size: .7em; vertical-align: .35em; margin-left: .04em; }
.fine { font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.6vw, 21px); color: var(--ink-muted); margin-top: 10px; }

.weekrow { display: grid; grid-template-columns: minmax(0, 520px) 110px minmax(0, 1fr); align-items: center; gap: 8px 12px; margin-top: clamp(32px, 5vh, 56px); }
.week-svg { display: block; width: 100%; height: auto; overflow: visible; }
.wl { font-family: var(--sans); font-size: 11px; }
.words { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; font-size: clamp(12px, 1.2vw, 15px); color: var(--ink-muted); margin-top: 2px; }
.wd.swim { color: #2f6e96; } .wd.lift { color: #9a522c; } .wd.cardio { color: #8a6410; } .wd.today { color: var(--ink); font-weight: 600; }
.arrow { position: relative; align-self: start; padding-top: 18px; }
.arrow svg { width: 100%; height: auto; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .75; filter: url(#pencilds); }
.sotoday { position: absolute; left: 8px; top: -6px; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-muted); white-space: nowrap; }
.setblk { position: relative; isolation: isolate; padding: 18px 22px 20px; }
.sb-wash { position: absolute; inset: -16px -12px; z-index: -1; border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%;
  background: radial-gradient(closest-side, rgba(127,184,179,.48), rgba(169,211,204,.32) 70%, rgba(169,211,204,0)); filter: url(#wcds); }
.sb-k { font-size: 12px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--ink-muted); }
.sb-t { font-family: var(--serif); font-size: clamp(24px, 2.5vw, 32px); line-height: 1.1; margin-top: 6px; }
.sb-n { margin-top: 4px; font-family: var(--serif); font-size: 20px; color: var(--ink-muted); }
.sb-n b { font-weight: 400; font-size: clamp(40px, 4.2vw, 54px); color: var(--ink); letter-spacing: -1px; }
.sb-n span { font-family: var(--sans); font-size: 15px; margin-left: 6px; }
.sb-m { margin-top: 4px; font-size: clamp(15px, 1.4vw, 17px); font-weight: 600; font-variant-numeric: tabular-nums; }
.sb-m .dist { color: var(--distance); } .sb-m .clk { color: var(--clock); }

.promise-wrap { margin-top: clamp(28px, 4.5vh, 48px); max-width: 760px; }
.promise { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.18; letter-spacing: -.01em; text-wrap: balance; }
.kick { margin-top: 10px; font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-muted); max-width: 46ch; }
.badge-big { display: inline-block; margin-top: 26px; }
.badge-big img { display: block; height: 52px; width: auto; }

@media (max-width: 899px) {
  .hero { align-items: flex-start; padding-top: calc(var(--top) + 28px); }
  .weekrow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .week { max-width: 420px; }
  .arrow { width: 80px; height: 74px; margin: 6px 0 -6px auto; padding: 0; }
  .arrow svg { transform: rotate(100deg); transform-origin: 50% 50%; width: 74px; }
  .sotoday { left: -84px; top: 22px; font-size: 16px; }
  .setblk { padding: 14px 16px 16px; }
  .badge-big img { height: 46px; }
}

/* ── the story: plain column by default ── */
.story { position: relative; padding: 40px var(--gutter) 80px; }
.stage { max-width: 1080px; margin: 0 auto; display: grid; gap: 40px; }
.poolbg, .chapters, .ring, .hit, .watch, .sc-hit, .sc-thread, .sc-today { display: none; }
.devices { display: flex; justify-content: center; }
.phone { --pw: min(300px, 70vw); }
.beats { display: grid; gap: 36px; max-width: 640px; margin: 0 auto; }
.beat h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.06; letter-spacing: -.01em; text-wrap: balance; }
.beat.big h2 { font-size: clamp(44px, 6vw, 72px); }
.beat p { margin-top: 12px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; }
.beat u { text-decoration: none; border-bottom: 2px solid rgba(63,127,166,.4); }
.peek { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--swim); text-decoration: none; border-bottom: 2px solid rgba(63,127,166,.35); }
.why { max-width: 560px; margin: 0 auto; }

/* ── devices, drawn ── */
.phone { position: relative; width: var(--pw); padding: calc(var(--pw) * .03); border-radius: calc(var(--pw) * .16); background: #1f262d;
  box-shadow: 0 0 0 1.5px #59626b inset, 0 34px 70px rgba(46,58,70,.26), 0 6px 16px rgba(46,58,70,.16); }
.screen { position: relative; border-radius: calc(var(--pw) * .13); overflow: hidden; background: var(--paper); aspect-ratio: 402 / 874; }
.screen::after { content: ""; position: absolute; left: 50%; top: calc(var(--pw) * .028); width: 30%; height: calc(var(--pw) * .085); transform: translateX(-50%); background: #0d1013; border-radius: 999px; z-index: 5; }
.sc { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ring { position: absolute; z-index: 3; fill: none; stroke: rgba(46,58,70,.6); stroke-width: 2.4; vector-effect: non-scaling-stroke; filter: url(#pencilds); overflow: visible; }
.ring-week { left: 2%; top: 20%; width: 96%; height: 12.5%; }
.ring-set { left: 0%; top: 42.5%; width: 100%; height: 31%; }
.hit { position: absolute; z-index: 6; left: calc(3% - 12% * .94); width: calc(124% * .94); top: calc(3% * .46 + 89.6% * .97); overflow: visible; }
.hit line { stroke: var(--lockin); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* the thread lives inside the phone, sized off the phone's width */
.sc-thread { background: #fff; color: #111; font-family: var(--sans); font-size: calc(var(--pw) * .04); flex-direction: column; justify-content: flex-start; overflow: hidden; }
.im-head { position: absolute; z-index: 2; left: 0; right: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: .1em; padding: 2.9em 0 .6em;
  background: rgba(246,246,247,.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid #e3e3e6; }
.im-av { display: flex; } .im-av span { width: 2.3em; height: 2.3em; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: .9em; margin-left: -.6em; border: .15em solid #f6f6f7; }
.im-av span:nth-child(1) { background: #8e9aa6; } .im-av span:nth-child(2) { background: #a3b18a; } .im-av span:nth-child(3) { background: #c49a7a; }
.im-head b { font-size: 1em; } .im-head small { font-size: .75em; color: #8a8a8e; }
.im-body { flex: 1; min-height: 0; overflow: hidden; padding: 0 .9em .3em; display: flex; flex-direction: column; justify-content: flex-end; gap: .3em; }
.im-time { align-self: center; font-size: .68em; color: #8a8a8e; margin: .9em 0 .3em; }
.im-name { margin: .5em 0 0 .8em; font-size: .75em; color: #8a8a8e; }
.bub { max-width: 78%; padding: .55em .85em; border-radius: 1.3em; line-height: 1.3; }
.bub.l { background: #e9e9eb; align-self: flex-start; }
.bub.r { align-self: flex-end; }
.hearts { position: relative; margin-top: .25em; }
.tap { position: absolute; top: -.95em; width: 1.7em; height: 1.7em; border-radius: 50%; background: #e9e9eb; border: .15em solid #fff; color: #ff3b5c; font-size: .85em; display: grid; place-items: center; }
.tap.t1 { right: -.8em; } .tap.t2 { right: .7em; }
.cardbub { padding: 0; width: 78%; max-width: none; }
.shot { padding: 0; width: 62%; max-width: none; background: none !important; }
.run { background: #0f1114; color: #fff; border-radius: 1.2em; padding: .9em .9em .8em; font-size: .62em; line-height: 1.3; }
.r-k { font-weight: 700; font-size: 1.25em; } .r-when { color: #8e939a; font-size: .9em; margin-bottom: .6em; }
.r-map { display: block; width: 100%; height: auto; background: #1d2228; border-radius: .7em; }
.r-street { stroke: #2c333b; stroke-width: 2.4; fill: none; } .r-route { stroke: #4cd964; stroke-width: 2.6; fill: none; stroke-linecap: round; } .r-map circle { fill: #4cd964; }
.r-stats { display: flex; justify-content: space-between; margin-top: .7em; }
.r-stats span { display: flex; flex-direction: column; font-size: .8em; color: #8e939a; letter-spacing: .04em; }
.r-stats b { color: #fff; font-size: 1.55em; letter-spacing: 0; }
.im-bar { margin: .5em .9em 1.4em; border: 1px solid #d6d6da; border-radius: 1.4em; padding: .45em .9em; color: #a0a0a5; font-size: .9em; }
.card { background: #0a0c10; color: #e9eef3; border-radius: 1.3em; padding: 1.5em 1.3em 1.3em; font-family: var(--mono); font-size: .66em; line-height: 1.55; }
.c-set { margin-top: .4em; }
.card hr { border: 0; border-top: 1px solid #1c2230; margin: .7em 0; }
.c-brand { letter-spacing: .3em; color: #5d7290; }
.c-yds { white-space: nowrap; font-family: var(--sans); font-weight: 800; font-size: 3.4em; line-height: 1.1; margin: .1em 0 .2em; letter-spacing: -.02em; }
.c-row { color: #8193a8; font-size: 1.15em; font-weight: 600; }
.card .y { color: #e8c81b; } .card .o { color: #e8921b; } .card .r { color: #ff5a4e; } .card .b { color: #2e8cf0; }
.c-title { font-family: var(--sans); font-weight: 700; font-size: 1.35em; margin-bottom: .3em; }

/* the watch */
.watch { --ww: 240px; position: relative; width: var(--ww); aspect-ratio: .84; }
.case { position: absolute; inset: 0; border-radius: 27%; background: #22272c; padding: 6%; box-shadow: 0 0 0 1.5px #4b535b inset, 0 34px 70px rgba(46,58,70,.28); }
.wscreen { position: relative; width: 100%; height: 100%; border-radius: 22%; background: #000; color: #fff; overflow: hidden; font-family: var(--sans); font-size: calc(var(--ww) * .058); line-height: 1.2; }
.band { position: absolute; left: 16%; width: 68%; height: 42%; z-index: -1; border-radius: 14px; }
.band-top { bottom: 82%; background: linear-gradient(to top, #2c3238 55%, rgba(44,50,56,0)); }
.band-bot { top: 82%; background: linear-gradient(to bottom, #2c3238 55%, rgba(44,50,56,0)); }
.crown { position: absolute; right: -5%; top: 24%; width: 7%; height: 19%; border-radius: 4px; background: repeating-linear-gradient(180deg, #5d656e 0 2px, #383f46 2px 4px); background-size: 100% 4px; }
.sidebtn { position: absolute; right: -2.5%; top: 52%; width: 4%; height: 22%; border-radius: 3px; background: #3a4148; }
.ws { position: absolute; inset: 0; opacity: 0; }
.ws-face { opacity: 1; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding-right: 14%; line-height: .82; font-weight: 800; letter-spacing: -.04em; }
.ws-face span:first-child { font-size: 3.4em; color: #f3e6c4; } .ws-face span:last-child { font-size: 4.4em; color: #f2c73a; }
.w-status { position: absolute; right: 14%; top: 7%; font-size: .8em; font-weight: 600; z-index: 2; }
.w-scroll { position: absolute; left: 0; right: 0; top: 0; height: 100%; }
.w-card { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: .15em; text-align: center; }
.w-card.walk { top: 18%; height: 60%; justify-content: center; background: radial-gradient(120% 80% at 50% 100%, rgba(150,200,40,.5), transparent 70%); }
.w-card b { font-size: .95em; }
.w-card.ds { top: 78%; height: 66%; padding-top: 4%; background: radial-gradient(120% 90% at 50% 100%, #6a3df0, #2a1470 55%, #000 90%); }
.w-card.ds img { width: 20%; height: auto; border-radius: 22%; }
.w-card.ds small { font-size: .62em; color: #c9b8ff; padding: 0 10%; }
.w-play { margin-top: 4%; width: 1.9em; height: 1.9em; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: .8em; }
.ws-pool { display: flex; flex-direction: column; gap: 5%; padding: 16% 8% 6%; }
.w-title { color: #b18cff; font-weight: 700; font-size: .8em; text-align: right; }
.w-picker { border: .14em solid #9fe870; border-radius: .8em; display: flex; flex-direction: column; align-items: center; padding: 2% 0; line-height: 1.15; }
.w-picker span { color: #8a8f96; font-size: .8em; } .w-picker b { font-size: 1.3em; }
.w-unit { background: #5a2fd6; color: #d9ccff; border-radius: .6em; text-align: center; font-size: .7em; padding: 2% 0; }
.w-start { background: #8b5cf6; border-radius: 999px; text-align: center; padding: 6% 0; font-weight: 600; font-size: .85em; }
.cring { position: absolute; left: 21%; top: 18%; width: 58%; transform: rotate(-90deg); }
.cring circle { fill: none; stroke-width: 7; }
.cring .track { stroke: rgba(124,77,255,.25); } .cring .prog { stroke: #7c4dff; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 0; }
.cnum { position: absolute; left: 0; right: 0; top: 18%; height: 49%; display: grid; place-items: center; }
.cnum span { grid-area: 1 / 1; font-size: 2.6em; font-weight: 500; opacity: 0; }
.cnum .c0 { font-size: 1.5em; font-weight: 600; opacity: 1; }
.cl { position: absolute; left: 0; right: 0; bottom: 12%; text-align: center; font-weight: 600; font-size: .85em; }
.w-nx { position: absolute; left: 10%; right: 8%; bottom: 14%; }
.w-nx p { font-weight: 700; font-size: .75em; }
.w-nx b { display: block; color: #8fc6ff; font-size: 1.35em; line-height: 1.12; font-weight: 600; }
.ws-done { display: flex; flex-direction: column; gap: 3%; padding: 14% 10%; }
.ws-done .w-title { text-align: left; }
.ws-done b { font-size: 2em; font-weight: 600; line-height: 1; } .ws-done b small { font-size: .45em; margin-left: .2em; }
.ws-done span { font-size: .8em; color: #ddd; }

/* the Why this set? card */
.why { background: #fbf8f1; border-radius: 22px; padding: 26px 28px 22px; box-shadow: 0 30px 70px rgba(46,58,70,.22), 0 0 0 1px rgba(46,58,70,.08); }
.why-k { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin-bottom: 12px; }
.why ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.why li { font-size: 16px; line-height: 1.38; padding-left: 16px; position: relative; }
.why li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--swim); opacity: .7; }
.why-life { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 19px; }
.why-num { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 11.5px; color: var(--ink-muted); }

/* ── the ending + footer ── */
.end { max-width: 1180px; margin: 0 auto; padding: 18vh var(--gutter) 14vh; display: flex; flex-direction: column; align-items: flex-start; }
.end-icon { width: 104px; height: auto; border-radius: 23px; box-shadow: 0 12px 28px rgba(46,58,70,.2); }
.end h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(76px, 13vw, 168px); line-height: .92; letter-spacing: -.035em; margin-top: 30px; }
.end p { margin-top: 20px; font-size: clamp(18px, 1.8vw, 23px); max-width: 30ch; }
.end .badge-big img { height: 58px; }
.foot { border-top: 1px solid var(--rule); padding: 26px var(--gutter) calc(26px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; font-size: 15px; color: var(--ink-muted); }
.foot a { text-decoration: none; } .foot a:hover { color: var(--ink); }

/* ════════ html.anim: the pinned stage ════════ */
.anim .story { padding: 0; height: 1270vh; }
.anim .stage { position: sticky; top: 0; height: 100vh; height: 100lvh; max-width: none; display: block; overflow: hidden; }
.anim .poolbg { display: block; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(60vw 45vh at 30% 50%, rgba(127,184,179,.42), transparent 70%), radial-gradient(70vw 50vh at 75% 62%, rgba(169,211,204,.42), transparent 72%), linear-gradient(180deg, rgba(215,232,228,.55), rgba(215,232,228,.9)); }
.anim .chapters { display: flex; position: absolute; z-index: 6; list-style: none; margin: 0; padding: 0; gap: 22px; font-size: 13px; color: var(--ink-muted); }
.chapters li { display: flex; }
.chapters button { display: flex; align-items: center; gap: 8px; padding: 8px 4px; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chapters button:hover .nm { color: var(--ink); }
.chapters button:hover .dot { border-color: rgba(46,58,70,.75); }
.chapters .dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(46,58,70,.4); filter: url(#wcds); transition: background-color .4s, border-color .4s, transform .4s; }
.chapters li.done .dot, .chapters li.on .dot { background: var(--swim); border-color: transparent; }
.chapters li.on .dot { transform: scale(1.35); }
.chapters li.on .nm { color: var(--ink); font-weight: 600; }
.anim .devices { display: block; position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 3; }
.anim .phone, .anim .watch { position: absolute; left: 0; top: 0; }
.anim .ring, .anim .hit, .anim .watch, .anim .sc-hit, .anim .sc-today { display: block; }
.anim .sc-thread { display: flex; }
.anim .ring .draw { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.anim .hit { opacity: 0; }
.anim .sc-set, .anim .sc-hit, .anim .sc-thread { opacity: 0; }
.why-x { display: none; }
.anim .scrim { position: fixed; inset: 0; z-index: 40; background: rgba(46,58,70,.22); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.anim .scrim[hidden] { display: none; }
.anim .why { position: fixed; z-index: 45; left: 50%; top: calc(50% + var(--top) / 2); margin: 0; width: min(560px, calc(100vw - 24px));
  max-height: calc(100svh - var(--top) - 32px); overflow: auto; visibility: hidden; }
.anim .why-x { display: grid; place-items: center; position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(46,58,70,.07); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.anim .why-x:hover { background: rgba(46,58,70,.13); }
.anim .beats { position: absolute; z-index: 4; display: block; margin: 0; max-width: none; }
.anim .beat { position: absolute; inset: 0 auto auto 0; width: 100%; opacity: 0; visibility: hidden; }

@media (min-width: 900px) {
  .anim .phone { --pw: min(320px, 25vw, calc((100svh - var(--top) - 70px) / 2.2)); }
  .anim .watch { --ww: min(270px, 22vw, calc((100svh - var(--top)) * .36)); }
  .anim .chapters { left: 32px; top: 50%; transform: translateY(-50%); flex-direction: column; }
  /* the journey: every stop is named and clickable, joined by a line that fills as you go */
  .anim .chapters { gap: 30px; font-size: 15px; }
  .anim .chapters li { position: relative; }
  .anim .chapters li:not(:last-child)::after { content: ''; position: absolute; left: 10px; top: calc(50% + 8px); height: calc(100% + 14px); width: 2px; border-radius: 1px; background: rgba(46,58,70,.16); transition: background-color .4s; }
  .anim .chapters li.done::after { background: var(--swim); }
  .anim .chapters button { padding: 8px 6px 8px 4px; position: relative; z-index: 1; }
  .anim .chapters .dot { position: relative; background-clip: padding-box; }
  .anim .chapters li:not(.on):not(.done) .dot { background: var(--paper); }
  .anim .beats { left: 57vw; top: 50%; width: min(36vw, 480px); }
}
@media (max-width: 899px) {
  /* the phone is the show: nearly the full width, tucked under the tabs, its lower part sitting behind the copy */
  .anim .stage { --mpw: min(88vw, 360px, calc((100svh - var(--top) - 60px) / 2.0)); }
  .anim .phone { --pw: var(--mpw); }
  .anim .watch { --ww: min(220px, 56vw, calc((50svh - var(--top)) * .62)); }
  .anim .devices { top: calc(var(--top) + 52px + var(--mpw) * 1.08); }
  .anim .chapters { left: 50%; transform: translateX(-50%); top: calc(var(--top) + 6px); padding: 0 12px; border-radius: 999px; gap: 6px; white-space: nowrap;
    background: rgba(244,239,228,.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .anim .beats { left: var(--gutter); right: var(--gutter); top: 66svh; }
  /* the copy sits on a paper card over the phone's lower edge, full width to the bottom of the screen */
  .anim .beat { left: calc(var(--gutter) * -1); width: calc(100% + var(--gutter) * 2); box-sizing: border-box; padding: 56px var(--gutter) 0; margin-top: -56px; min-height: calc(36svh + 56px);
    background: linear-gradient(to bottom, rgba(244,239,228,0), rgba(244,239,228,.95) 56px); }
  /* Share: the headline goes above the phone so the chat can be read */
  .anim .beat[data-b="post"] { min-height: 0; background: none; top: calc(var(--top) + 54px - 66svh); margin-top: 0; padding-top: 0; }
  .anim .watch { margin-top: calc(var(--mpw) * -.45); }
  .anim .beat h2 { font-size: clamp(26px, 7.4vw, 34px); }
  .anim .beat.big h2 { font-size: clamp(40px, 12vw, 56px); }
  .anim .beat p { font-size: 16px; margin-top: 8px; }
  .anim .beat p + p { margin-top: 6px; }
  .anim .peek { margin-top: 10px; font-size: 15px; }
  .anim .why { padding: 18px 18px 16px; border-radius: 18px; }
  .anim .why-k { font-size: 23px; margin-bottom: 8px; }
  .anim .why ul { gap: 6px; } .anim .why li { font-size: 14px; }
  .anim .why-life { font-size: 16px; margin-top: 10px; } .anim .why-num { font-size: 10px; }
}
@media (max-width: 899px) and (max-height: 700px) {
  .anim .beat p:not(:first-of-type) { display: none; }
  .anim .why li:nth-child(n+5) { display: none; }
}

/* step arrows (anim only) */
.steps { display: none; }
.anim .steps { display: block; }
.step { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border-radius: 50%; border: 1px solid var(--rule); background: rgba(244,239,228,.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ink); cursor: pointer; box-shadow: 0 6px 18px rgba(46,58,70,.12); transition: opacity .3s, transform .2s; }
.step svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step:hover { background: rgba(251,248,241,.95); }
.step.down { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); animation: bob 2.4s ease-in-out infinite; }
.step.off { opacity: 0; pointer-events: none; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 5px); } }
@media (max-width: 899px) { .step { width: 38px; height: 38px; left: auto; right: calc(var(--gutter) - 4px); transform: none; }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } } }
@media (prefers-reduced-motion: reduce) { .step.down { animation: none; } }
