/* S-01 · Home (Main helmet). The skip link, footer, page base, grain and the
   device switch for .h-mac / .h-phone live in site.css. The month the trail
   underlines as the ring passes is .is-target / .h-target (dates.js computes it). */

/* ---------- Nav ---------- */
.sb-nav { z-index: var(--z-sticky); }
.h-nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.h-nav-links { display: flex; align-items: center; gap: 2px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.h-nav-end { display: flex; align-items: center; margin-left: 12px; }
.h-only-sm { display: none; }
/* nav band: the generic .sb-link:hover/:focus-visible rules (same specificity) move it to the baseline
   and 12 px left of the word; pin it where the nav band belongs (proposal: move both into components.css) */
.h-nav-links .sb-link--nav:focus-visible { background-size: calc(100% - 24px) 0.8em, 0 0; background-position: 12px 64%, 0 100%; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .h-nav-links .sb-link--nav:hover { background-position: 12px 64%, 0 100%; } }

/* ---------- Hero ---------- */
.h-hero { position: relative; }
.h-hero > .sb-aura { inset: -76px 0 0 0; }
.h-copy { position: relative; z-index: 3; padding-top: 72px; }
.h-h1 { max-width: none; }
.h-l { display: block; }
.h-rotline { display: inline; }
.h-hero .sb-lede { margin-top: 24px; }
.h-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.h-cta-cap { margin-top: 16px; }

.h-river { position: relative; height: 640px; margin-top: 28px; }
.h-stream { position: absolute; left: -5%; right: -5%; top: 34%; height: 200px; border-radius: 50%; filter: blur(46px); opacity: 0.72;
  background: linear-gradient(90deg, rgba(var(--sky-rgb), 0.9) 0%, rgba(var(--butter-rgb), 0.9) 30%, rgba(var(--rose-rgb), 0.85) 58%, rgba(var(--peach-rgb), 0.95) 85%, rgba(var(--butter-rgb), 0.9) 100%); }
.h-river-in { position: relative; height: 100%; }
.h-fogs { position: absolute; top: 0; bottom: 64px; left: var(--gutter); right: var(--gutter); }
.h-fp { position: absolute; left: calc(var(--m) * 100% / 11); margin-left: 18px; }
/* fog positions, 900-1199 (river under the copy) */
.h-fp--fr { --m: 1; top: 424px; width: 220px; }
.h-fp--sr { --m: 2; top: 236px; width: 250px; }
.h-fp--mo { --m: 5; top: 470px; width: 200px; }
.h-fog { margin: 0; font-size: 17px; line-height: 1.5; letter-spacing: -0.005em; color: var(--ink); text-wrap: pretty; }
.h-fog small { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.h-fog--lg { font-size: 19px; }
.h-fl-b { --sb-fx: -12px; --sb-fy: 5px; --h-float: 23s; }
.h-fl-c { --sb-fx: 8px; --sb-fy: 8px; --h-float: 29s; }

.h-jane-pos { position: absolute; z-index: 2; top: 110px; width: 220px; right: calc(var(--gutter) + min(420px, 34%) + 28px); }
.h-jane { font-size: 22px; line-height: 1.45; }

.h-card-pos { position: absolute; z-index: 3; top: 26px; right: var(--gutter); width: min(420px, 34%); }
.h-card { background: var(--glass-card); box-shadow: var(--edge), var(--elev-4); }
.h-card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.h-card .sb-quote { margin-top: 18px; }
.h-card .sb-card__source { margin-top: 20px; }

/* month axis: 12 months ending now, inside the container */
.h-axis { position: absolute; left: calc(var(--gutter) + 14px); right: calc(var(--gutter) + 14px); bottom: 0; height: 64px; }

/* >= 1200: H1, the morning card and the reading year share the first viewport.
   The river rises into the empty right column; fog sits in the band between the
   CTAs and the axis, never behind the lede or the buttons. */
@media (min-width: 1200px) {
  .h-river { height: 600px; margin-top: -400px; }
  .h-stream { top: 330px; height: 180px; }
  .h-card .sb-quote--lg { font-size: 24px; line-height: 36px; }
  .h-fp--fr { --m: 0; top: 412px; width: 182px; }
  .h-fp--sr { --m: 2; top: 392px; width: 300px; }
  .h-fp--mo { --m: 5.2; top: 330px; width: 160px; }
  .h-jane-pos { top: 410px; width: 150px; }
  /* the fogs drift at a fifth of their depth speed here, so scrolling never lays a caption on the axis */
  .h-fogs, .h-jane-pos { --sb-speed-scale: 0.2; }
}
/* 1200-1439: the H1 is smaller but the card is wider relative to the copy; drop it clear of "Google Play Books" */
@media (min-width: 1200px) and (max-width: 1439px) { .h-card-pos { top: 50px; } }
.h-axis-line { position: absolute; left: 0; right: 0; top: 14px; height: 1px; background: linear-gradient(90deg, rgba(var(--ink-rgb), 0.05), rgba(var(--ink-rgb), 0.24)); }
.h-months { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.h-months li { position: absolute; top: 0; width: 0; display: flex; flex-direction: column; align-items: center; font-size: 13px; line-height: 1.2; color: var(--ink-2); }
.h-months li::before { content: ""; flex: none; width: 5px; height: 5px; margin: 12px 0 11px; border-radius: 50%; background: rgba(var(--ink-rgb), 0.3); }
.h-months li > span { white-space: nowrap; padding-bottom: 3px; }
.h-months li.is-now { color: var(--ink); font-weight: 600; }
.h-target { background-image: linear-gradient(var(--ink), var(--ink)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1.5px; }
.h-trail { position: absolute; left: calc(2 * 100% / 11); right: 0; top: 13px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, rgba(var(--butter-mark-rgb), 1), rgba(var(--butter-mark-rgb), 0.35)); transform: scaleX(0); transform-origin: 0 50%; }
.sb-now-rail { position: absolute; left: 0; right: 0; top: 0; height: 28px; pointer-events: none; }
.sb-now { position: absolute; right: -6px; top: 9px; width: 12px; height: 12px; }
.sb-now::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 5px rgba(var(--butter-rgb), 0.9); }

/* ---------- 2 · Only what you marked ---------- */
.h-marked { position: relative; min-height: 560px; display: flex; align-items: center; justify-content: center; }
.h-marked-copy { position: relative; z-index: 2; max-width: 880px; text-align: center; }
.h-marked-copy .sb-lede { margin: 24px auto 0; }
/* The tags take turns around the passage (h-tag-turn below): a, b, d, c, e, 3 s
   apart on one 15 s loop, so one or two show and only one defogs at a time. All five
   rest in place, clear of the copy, for reduced motion: three above, two below. */
.h-tagloop { position: absolute; inset: 0; z-index: 1; }
.h-tagpos { position: absolute; }
.h-tagpos--a { left: 8%; top: 64px; }
.h-tagpos--b { right: 4%; bottom: 104px; }
.h-tagpos--c { left: 14%; bottom: 40px; }
.h-tagpos--d { right: 10%; top: 20px; }
.h-tagpos--e { left: 36%; top: 0; }
.h-tag { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-md); font-size: 15px; line-height: 1.35; color: var(--ink); white-space: nowrap; }
.h-tag i { font-style: italic; }
.h-tag b { font-weight: 600; }
.h-dotc { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.h-dotc--butter { background: var(--butter-deep); }
.h-dotc--peach { background: var(--peach-deep); }
.h-dotc--rose { background: var(--rose-deep); }
.h-dotc--sky { background: var(--sky-deep); }
@keyframes h-tag-turn {
  0%          { opacity: 0; filter: blur(6px); transform: translate3d(0, 8px, 0); animation-timing-function: var(--ease-out); }
  6%, 29.3%   { opacity: 1; filter: blur(0); transform: none; animation-timing-function: var(--ease-in); }
  33.3%, 100% { opacity: 0; filter: blur(6px); transform: translate3d(0, -6px, 0); }
}
@media (prefers-reduced-motion: no-preference) {
  /* 0.9 s in, 3.5 s held, 0.6 s out (exits are quicker), then it waits its turn.
     No hover pause: the stage is the whole section, so a resting pointer would
     freeze the loop mid-fog. */
  .h-tagloop .h-tag { animation: h-tag-turn 15s linear infinite both; }
  .h-tagloop .h-tagpos--b .h-tag { animation-delay: 3s; }
  .h-tagloop .h-tagpos--d .h-tag { animation-delay: 6s; }
  .h-tagloop .h-tagpos--c .h-tag { animation-delay: 9s; }
  .h-tagloop .h-tagpos--e .h-tag { animation-delay: 12s; }
}
.h-marked > .sb-aura > span { opacity: 0.55; }
.h-marked > .sb-aura > .y { left: 22%; top: 18%; width: 34%; height: 56%; }
.h-marked > .sb-aura > .o { right: 18%; bottom: 10%; width: 32%; height: 54%; }

/* ---------- 3 · This morning (story) ---------- */
.h-how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.h-how-copy .sb-lede { margin-top: 20px; }
.h-steps { margin: 40px 0 0; padding: 0; list-style: none; }
.h-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 20px; padding-block: 22px; }
.h-step + .h-step { border-top: 1px solid var(--line); }
.h-dot { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-top: -2px; border-radius: 50%; background-color: var(--ink); color: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.h-step .sb-body { margin-top: 6px; }
.h-then { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.h-then svg { flex: none; color: var(--ink); }

.h-stage-col { display: flex; flex-direction: column; align-items: flex-end; }
.h-stage-cap { width: min(520px, 100%); margin-bottom: 14px; }
.h-sheet-wrap { position: relative; width: min(520px, 100%); }
.h-sheet-wrap > .sb-aura { inset: -12%; overflow: visible; }
.h-sheet { position: relative; z-index: 2; margin: 0; overflow: hidden; overflow: clip; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--edge), var(--elev-3); padding: 0 32px 30px; }
.h-sheet-rule { display: flex; height: 4px; margin: 0 -32px; }
.h-sheet-rule i { flex: 1; }
.h-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 0 18px; border-bottom: 1px solid var(--mail-hairline); }
.h-sheet-from { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
.h-sheet-from svg { width: 22px; height: 22px; overflow: visible; }
.h-sheet-date { font-size: 13px; color: var(--ink-2); }
.h-book { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; padding-top: 24px; }
.h-book + .h-book { margin-top: 4px; }
.h-book-line { margin: 0; display: flex; flex-direction: column; font-size: 15px; line-height: 20px; }
.h-book-line b { font-weight: 600; }
.h-book-line span { font-size: 13px; line-height: 18px; color: var(--ink-2); }
.h-hl { margin: 10px 0 0; font-size: 17px; line-height: 28px; letter-spacing: -0.008em; color: var(--ink); text-wrap: pretty; }
.h-note { margin: 8px 0 0; font-size: 14px; line-height: 21px; color: var(--ink-2); }
.h-note b { font-weight: 600; color: var(--ink); }
.h-break { display: flex; justify-content: center; gap: 6px; margin: 30px 0 22px; }
.h-break i { width: 12px; height: 4px; border-radius: 2px; }
.h-moment { text-align: center; }
.h-moment-lead { margin: 0; font-size: 14px; line-height: 21px; color: var(--ink-2); }
.h-moment .h-hl { margin-top: 10px; font-size: 19px; line-height: 31px; }
.h-moment-meta { margin: 8px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-2); }

/* ---------- 4 · Starts with Kindle ---------- */
.h-src { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.h-src .sb-body { margin-top: 20px; }
.h-shelf { border-radius: var(--r-xl); background: var(--glass-card); box-shadow: var(--edge), var(--elev-1); }
.h-shelf-list { margin: 0; padding: 6px 0 0; list-style: none; }
.h-shelf-foot { margin: 0; padding: 4px 28px 10px 90px; border-top: 1px solid var(--line); }
.h-shelf-foot .sb-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; background-position: 100% 70%, 0 calc(50% + 0.66em); }
@media (hover: hover) and (pointer: fine) { .h-shelf-foot .sb-link:hover { background-position: 0 70%, 0 calc(50% + 0.66em); } }
.h-shelf-foot .sb-link:focus-visible { background-position: 0 70%, 0 calc(50% + 0.66em); }
.h-shelf-list > li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 18px 28px; }
.h-shelf-list > li + li { border-top: 1px solid var(--line); }
.h-shelf-list > li.is-live { padding-block: 26px; }
.h-tile { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-md); color: var(--ink); }
.is-live .h-tile { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong), var(--elev-1); }
.h-src-name { display: block; font-size: 17px; font-weight: 500; line-height: 1.3; color: var(--ink-2); }
.is-live .h-src-name { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.h-src-desc { display: block; margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.h-src-end { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px 16px; }

/* ---------- 5 · Privacy ---------- */
.h-priv-head { text-align: center; line-height: 1.14; }
.h-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; margin-top: var(--space-stack); }
.h-fact { padding-top: 24px; border-top: 1px solid var(--line); }
.h-fact svg { display: block; color: var(--ink); }
.h-fact .sb-h3 { margin-top: 18px; }
.h-fact .sb-body { margin-top: 8px; }
.h-priv-link { margin-top: 48px; text-align: center; font-size: var(--fs-body); }
.sb-sweep.h-sweep-late { animation-range: cover 28% cover 56%; }

/* ---------- 6 · Coming soon (one card) ---------- */
.h-soon-card { position: relative; border-radius: var(--r-2xl); padding: 96px 64px 88px; box-shadow: var(--edge), var(--elev-2); }
.h-soon-head .sb-lede { margin-top: 20px; }
.h-block-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.h-block-head + .sb-caption { margin-top: 6px; }
.h-block .sb-body { margin-top: 16px; }

.h-ins { position: relative; height: 600px; margin-top: var(--space-stack); }
.h-ins-text { position: absolute; left: 0; top: 0; width: min(440px, 44%); }
.h-ins-thread { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.h-ins-thread path { fill: none; stroke: var(--sky-deep); stroke-width: 2.5; stroke-linecap: round; }
.h-ins-card { position: absolute; z-index: 2; width: 380px; }
.h-ins-card--a { left: 52%; top: 0; }
.h-ins-card--b { right: 0; top: 400px; }
.h-ins-idea { position: absolute; z-index: 2; left: 14%; top: 250px; width: 400px; }
.h-ins-idea p { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.h-ins > .sb-aura > .y { left: 10%; top: 30%; width: 44%; height: 50%; opacity: 0.7; }
.h-ins > .sb-aura > .b { left: 34%; top: 46%; bottom: auto; width: 44%; height: 50%; opacity: 0.7; }
.h-vline { display: none; }
.h-ins-card .sb-caption { margin-top: 2px; }

.h-comm { margin-top: 120px; }
.h-wall { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: end; margin-top: 48px; }
.h-col { display: grid; gap: 20px; }
.h-col--2 { padding-bottom: 72px; }
.h-col--3 { padding-bottom: 0; }
/* the peek, demonstrated: one note stands clear at rest; the rest clear when pointed at */
.h-wall .h-peek-open { filter: none; opacity: 1; }
.h-wall .sb-card .sb-caption { margin-top: 16px; }

/* The done card replaces the form in place (S-08), so it keeps the form's spacing. */
.h-wait, .wl-done { margin-top: 64px; }
.h-wait { max-width: 560px; }
.h-wait-row { display: flex; gap: 10px; }
.h-wait-row .sb-input { flex: 1; min-width: 0; }

/* ---------- 7 · Tomorrow ---------- */
.h-slab { position: relative; padding: 136px 40px 140px; text-align: center; }
.h-ins > .sb-aura, .h-slab > .sb-aura { -webkit-mask-image: radial-gradient(closest-side, black 45%, transparent 100%); mask-image: radial-gradient(closest-side, black 45%, transparent 100%); }
.h-slab-in { position: relative; z-index: 2; }
.h-slab .sb-h1 { max-width: 780px; margin: 0 auto; line-height: 1.12; }
.h-slab .sb-lede { margin: 24px auto 0; }
.h-slab .h-ctas { justify-content: center; }
.h-slab .h-cta-cap { text-align: center; }
.h-slab-fog { position: absolute; z-index: 1; width: 300px; margin: 0; text-align: left; font-size: 18px; line-height: 1.5; color: var(--ink); }
.h-slab-fog--a { left: 5%; top: 44px; }
.h-slab-fog--b { right: 5%; bottom: 44px; }

/* ---------- Owner override: the source word keeps rotating (local until motion.css adopts it) ----------
   12 s loop, cross-faded (each word starts arriving 200 ms before the last one has gone):
   Kindle ~4.2 s, then Apple Books, Kobo, Google Play Books ~2.6 s each.
   First load: Kindle's band sweeps at 0.4 s, then Kindle holds, marked, until 4.5 s, after
   Thoreau's sweep (2.0 s) has landed, so the two focal events never collide.
   WCAG 2.2.2: the loop pauses while the headline is hovered or focused; production also
   pauses it once the hero leaves view (IntersectionObserver). */
@keyframes h-rot-kindle {
  0%       { opacity: 1; filter: blur(0); background-size: 100% 100%; }
  3.333%   { opacity: 0; filter: blur(8px); background-size: 100% 100%; }
  66.667%  { opacity: 0; filter: blur(8px); background-size: 0% 100%; }
  70%      { opacity: 1; filter: blur(0); background-size: 0% 100%; }
  76.667%  { background-size: 100% 100%; }
  100%     { opacity: 1; filter: blur(0); background-size: 100% 100%; }
}
@keyframes h-rot-soon {
  0%            { opacity: 0; filter: blur(8px); }
  3.333%, 20%   { opacity: 1; filter: blur(0); }
  23.333%, 100% { opacity: 0; filter: blur(8px); }
}
@keyframes h-rot-first { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes h-intro-noblur { from { opacity: 0.35; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .h-hero .sb-rotate > span { animation: h-rot-soon 12s var(--ease-in-out) 4.7s infinite both; }
  .h-hero .sb-rotate > span:nth-child(3) { animation-delay: 7.3s; }
  .h-hero .sb-rotate > span:nth-child(4) { animation-delay: 9.9s; }
  .h-hero .sb-rotate > span:first-child {
    animation: h-rot-kindle 12s var(--ease-in-out) 4.5s infinite both,
               h-rot-first 800ms var(--ease-hand) 400ms 1 backwards;
  }
  .h-h1:hover .sb-rotate > span, .h-h1:focus-within .sb-rotate > span { animation-play-state: paused; }
  /* load budget: only H1 line 1 and the rotator defog; lines 2-3 and the lede lift without blur */
  .h-hero .h-l:not(:first-child), .h-hero .sb-lede.sb-intro { animation-name: h-intro-noblur; }
}

/* ---------- The month axis runs on its own (canvas comment: the bar moves forward on its own) ----------
   One 24 s loop (two turns of the headline rotator, so the two keep one phase), first played 2.8 s
   after load.
   0-1 s        the ring rests on now (Nov), the trail drawn back to Feb, Feb underlined
   1-2.2 s      ring and trail fade; the ring comes back on the first month (Dec)
   2.2-18.8 s   the ring walks forward, a month every 1.55 s; as it passes Feb (5.3 s) Feb takes its
                underline and the trail grows behind the ring
   18.8-20.8 s  the last third of a month on the house curve, so the ring settles on now
   20.8-24 s    it rests on now: the loop's first and last frames are the same
   Each fogged quote answers to the month at its left edge (--h-at): it clears as the ring reaches it
   (0.7 s, defog curve) while its band re-sweeps from 30 %, holds 1.8 s, then fogs back (0.7 s) with
   its band still on, so the river keeps its colour between passes. The --h-at values put every
   clear and every fog between the rotator's cross-fades: at most two elements animate blur at a
   time, two quotes or the rotator's two words, never both (the card's scroll recede can add a
   third). The morning card never fogs in the loop.
   .h-river is [data-sb-loop] (site.js pauses it off-screen and on hidden tabs); the card and the
   parallax layers keep their scroll scenes. The rotator and the loop share one clock: each keeps
   running while the other is on screen, and hovering the headline pauses both.
   Reduced motion: no loop. The ring rests on now with the trail drawn and Feb underlined, the
   quotes rest in their fog, bands on: the loop's own resting frame. */
.h-river { --h-loop: 24s; --h-start: 2.8s; --h-walk: 2.2s; --h-month: 1.55s; }
.h-river [data-depth="1"] { --h-fog-blur: var(--depth-1-blur); --h-fog-o: var(--depth-1-opacity); }
.h-river [data-depth="2"] { --h-fog-blur: var(--depth-2-blur); --h-fog-o: var(--depth-2-opacity); }
/* 900-1199: Frankenstein, Self-Reliance, Jane Eyre, Moby-Dick */
.h-fp--fr .h-fog { --h-at: 0.74; }
.h-fp--sr .h-fog { --h-at: 2.1; }
.h-jane { --h-at: 3.9; }
.h-fp--mo .h-fog { --h-at: 5.2; }
/* >= 1200: Frankenstein, Self-Reliance, then Jane Eyre and Moby-Dick together (Jane's edge comes first) */
@media (min-width: 1200px) {
  .h-fp--fr .h-fog { --h-at: 0.39; }
  .h-fp--sr .h-fog { --h-at: 2.1; }
  .h-jane { --h-at: 5.2; }
  .h-fp--mo .h-fog { --h-at: 5.2; }
}
@keyframes h-ring {
  0%, 4.1667%  { translate: 0 0; opacity: 1; animation-timing-function: var(--ease-in); }
  6.6667%      { translate: 0 0; opacity: 0; animation-timing-function: step-end; }
  6.875%       { translate: -100% 0; opacity: 0; animation-timing-function: var(--ease-out); }
  9.1667%      { translate: -100% 0; opacity: 1; animation-timing-function: linear; }
  78.2708%     { translate: -2.7273% 0; opacity: 1; animation-timing-function: var(--ease-out); }
  86.7%, 100%  { translate: 0 0; opacity: 1; }
}
@keyframes h-trail-run {
  0%, 4.1667%      { transform: scaleX(1); opacity: 1; animation-timing-function: var(--ease-in); }
  6.6667%          { transform: scaleX(1); opacity: 0; animation-timing-function: step-end; }
  6.875%, 22.0833% { transform: scaleX(0); opacity: 1; animation-timing-function: linear; }
  78.2708%         { transform: scaleX(0.9667); opacity: 1; animation-timing-function: var(--ease-out); }
  86.7%, 100%      { transform: scaleX(1); opacity: 1; }
}
@keyframes h-month-run {
  0%, 4.1667%       { color: var(--ink); background-size: 100% 1.5px; animation-timing-function: var(--ease-in); }
  6.6667%, 22.0833% { color: var(--ink-2); background-size: 0% 1.5px; animation-timing-function: var(--ease-sweep); }
  24.7917%, 100%    { color: var(--ink); background-size: 100% 1.5px; }
}
@keyframes h-recall {
  0%                { filter: blur(var(--h-fog-blur)); opacity: var(--h-fog-o); animation-timing-function: var(--ease-defog); }
  2.9167%, 10.4167% { filter: blur(0); opacity: 1; animation-timing-function: var(--ease-in-out); }
  13.3333%, 100%    { filter: blur(var(--h-fog-blur)); opacity: var(--h-fog-o); }
}
/* the band is on whenever the quote is fogged; each pass marks it again from 30 % (no fill: before
   its first pass the band shows whole, as at rest) */
@keyframes h-recall-mark {
  0%            { background-size: 30% 100%; animation-timing-function: var(--ease-sweep); }
  3.3333%, 100% { background-size: 100% 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .h-hero .sb-now-rail { animation: h-ring var(--h-loop) linear var(--h-start) infinite both; animation-timeline: auto; animation-range: normal; }
  .h-hero .h-trail { animation: h-trail-run var(--h-loop) linear var(--h-start) infinite both; }
  .h-hero .h-target { animation: h-month-run var(--h-loop) linear var(--h-start) infinite both; }
  /* one clock for the whole loop: a fog that has scrolled off on its own keeps time with the ring,
     and a paused river pauses only the loop, not the card or the parallax layers */
  .h-river .h-fogs .h-fog.sb-float.is-off { animation-play-state: running; }
  .h-river.sb-paused :is(.h-card-pos, .h-card-pos *, .sb-parallax) { animation-play-state: running !important; }
  /* one clock with the rotator: either keeps running while the other is on screen (both stop only
     when both are off-screen or the tab is hidden), and hovering the headline pauses both */
  .h-hero:has(.h-river:not(.sb-paused)) .sb-rotate.sb-paused > span,
  .h-hero:has(.sb-rotate:not(.sb-paused)) .h-river.sb-paused :is(.sb-now-rail, .h-trail, .h-target, .h-fog, .h-fog .sb-mark) { animation-play-state: running !important; }
  .h-hero.h-hero:has(.h-h1:hover, .h-h1:focus-within) .h-river.h-river :is(.sb-now-rail, .h-trail, .h-target, .h-fog, .h-fog .sb-mark) { animation-play-state: paused !important; }
}
@media (prefers-reduced-motion: reduce) {
  .h-hero .h-trail { transform: scaleX(1); }
  .h-hero .h-target { color: var(--ink); background-size: 100% 1.5px; }
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .h-hero .h-fogs .h-fog {
    animation: sb-float var(--h-float, 19s) var(--ease-in-out) infinite alternate both,
               h-recall var(--h-loop) linear calc(var(--h-start) + var(--h-walk) + var(--h-at) * var(--h-month)) infinite both;
  }
  .h-hero .h-jane { animation: h-recall var(--h-loop) linear calc(var(--h-start) + var(--h-walk) + var(--h-at) * var(--h-month)) infinite both; animation-timeline: auto; animation-range: normal; }
  /* the loop owns these bands; the hero's quotes carry no hover recall */
  .h-river :is(.h-fogs, .h-jane-pos) [data-depth] .sb-mark { animation: h-recall-mark var(--h-loop) linear calc(var(--h-start) + var(--h-walk) + var(--h-at) * var(--h-month)) infinite; }
}

/* ---------- Scroll scenes local to this board ---------- */
@keyframes h-dot-on {
  from { background-color: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-control); }
  to { background-color: var(--ink); color: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* the morning passage fogs as the card leaves, not while it is being read */
    .h-card { view-timeline: --h-card block; }
    .h-hero .h-card .sb-recede { animation-timeline: auto, --h-card; animation-range: normal, exit 10% exit 70%; }
    .h-hero .h-card .sb-dim-out { animation-timeline: --h-card; animation-range: exit 10% exit 70%; }
  }
}
@supports (timeline-scope: --sb-a) and (animation-timeline: view()) {
  @media (min-width: 1100px) and (prefers-reduced-motion: no-preference) {
    .h-dot { animation: h-dot-on linear both; animation-timeline: view(); animation-range: cover 35% cover 48%; }
    .sb-story-step.h-step { padding-block: min(18vh, 160px); }
    .sb-story-stage { top: min(14vh, 126px); }
    /* the pinned sheet runs its own read; the per-block gesture is the fallback below 1100 */
    .sb-story-item.sb-gesture { animation: none; }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .h-card-pos { width: min(400px, 40%); }
  .h-jane-pos { right: calc(var(--gutter) + min(400px, 40%) + 24px); width: 200px; }
}
@media (max-width: 1179px) {
  .h-ins { height: auto; display: flex; flex-direction: column; }
  .h-ins-text, .h-ins-card, .h-ins-idea { position: relative; left: auto; right: auto; top: auto; width: auto; }
  .h-ins-text { max-width: 560px; margin-bottom: 40px; }
  .h-ins-card--a { width: min(460px, 100%); }
  .h-ins-card--b { width: min(460px, 100%); align-self: flex-end; }
  .h-ins-idea { width: min(460px, 100%); align-self: center; }
  .h-ins-thread { display: none; }
  .h-vline { display: block; width: 2px; height: 40px; border-radius: 2px; background: var(--sky-deep); align-self: center; }
}
@media (max-width: 1099px) {
  .h-how, .h-src { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .h-stage-col { align-items: flex-start; }
}
@media (max-width: 899px) {
  .h-nav-links { display: none; }
  .h-only-lg { display: none; }
  .h-only-sm { display: inline-flex; }
  .h-copy { padding-top: 40px; }
  .h-river { height: auto; margin-top: 24px; padding: 128px 0 0; }
  .h-river-in { height: auto; }
  .h-fogs { bottom: auto; top: -128px; height: 200px; }
  .h-jane-pos { display: none; }
  /* phones/tablets: three fogs at depth 2, layered behind the card's top edge */
  .h-fp { margin-left: 0; }
  .h-fp .h-fog { filter: blur(var(--depth-2-blur)); opacity: var(--depth-2-opacity); }
  .h-fp--mo { left: 0; top: 10px; width: 150px; }
  .h-fp--fr { left: auto; right: 0; top: 30px; width: min(200px, 52%); }
  .h-fp--sr { left: 24%; top: 78px; width: min(250px, 70%); }
  .h-card-pos { position: relative; top: auto; right: auto; width: auto; }
  .h-axis { position: relative; left: 0; right: 0; margin: 28px 6px 0; }
  .h-months li:nth-child(even):not(.is-now):not(.is-target) > span, .h-months li:nth-child(11) > span { visibility: hidden; }
  .h-marked { min-height: 0; flex-direction: column; }
  .h-tagpos { position: static; }
  .h-tags-sm { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 40px; }
  .h-tag { white-space: normal; text-align: left; }
  .h-marked > .sb-aura { display: none; }
  .h-wall { grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
  .h-wall { align-items: stretch; }
  .h-col--2, .h-col--3 { padding-bottom: 0; }
  .h-slab { padding: 96px 0 100px; }
  .h-soon-card { padding: 64px 24px 56px; border-radius: var(--r-xl); }
  .h-slab-fog { display: none; }
}
@media (max-width: 599px) {
  .h-nav-end { display: none; }
  .h-h1 { font-size: 42px; line-height: 1.04; }
  .h-l:first-child { white-space: nowrap; }
  .h-ctas .sb-btn { width: 100%; }
  .h-shelf-list > li { grid-template-columns: 40px minmax(0, 1fr); padding: 16px 18px; gap: 6px 16px; }
  .h-shelf-list > li.is-live { padding-block: 20px; }
  .h-shelf-foot { padding: 4px 18px 8px 74px; }
  .h-src-end { grid-column: 2; justify-content: flex-start; }
  .h-wait-row { flex-direction: column; }
  .h-wait-row .sb-input { flex: none; }
  .h-sheet { padding: 0 20px 24px; }
  .h-sheet-rule { margin: 0 -20px; }
  .h-book { column-gap: 14px; }
  /* phones: the word still rotates (owner override). "Your" and the word share one line at ONE size;
     the whole line shrinks so "Your Google Play Books" fits from 320 up. Fog and pill say "not yet". */
  .h-hero .h-l:first-child { font-size: min(1em, calc((100vw - 2 * var(--gutter)) / 11.2)); }
  .h-hero .sb-rotate { display: inline-grid; align-items: end; }
  .h-hero .sb-rotate > span:not(:first-child) { display: block; }
  .h-hero .sb-rotate__soon { left: auto; right: 0; top: -26px; margin: 0; }
}
@media (max-width: 599px) and (prefers-reduced-motion: no-preference) {
  .h-hero .sb-rotate > span:first-child { animation: h-rot-kindle 12s var(--ease-in-out) 4.5s infinite both, h-rot-first 800ms var(--ease-hand) 400ms 1 backwards !important; }
}
@media (max-width: 399px) {
  .h-h1 { font-size: 38px; }
}


/* ---------- Waitlist states (S-08, rescoped from .wl to .h-wait) ---------- */
/* read-only while sending: locked, but still legible */
.h-wait .sb-input[readonly] { opacity: 1; color: var(--ink-2); background-color: rgba(var(--ink-rgb), 0.035); cursor: default; }
.h-wait .sb-error { font-size: 14px; }
.h-wait .sb-error .sb-attention-dot { margin-top: 2px; }
/* done replaces the form in place; fluid so it fits a 320 px phone */
.wl-done { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 560px; box-sizing: border-box; --card-pad: 18px 22px; font-size: 17px; font-weight: 500; }
.wl-done:focus { outline: 2px solid transparent; box-shadow: var(--edge), var(--elev-1), var(--focus-ring); }
.wl-check { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--surface); }
.wl-check path { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .wl-done { animation: sb-defog-in var(--dur-calm) var(--ease-defog) 200ms both; }
  .wl-check path { animation: sb-line-draw 420ms var(--ease-out) 520ms both; }
}

/* ---------- Send to my Mac: copied state and dock (S-02) ---------- */
/* "Link copied": the action has done its job; ink check, no second ink pill */
.ph-copied { display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; margin: 0; border-radius: var(--r-pill); background: var(--glass-card); box-shadow: inset 0 0 0 1px var(--line-strong), var(--elev-1); font-size: 17px; font-weight: 500; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .ph-copied--now { animation: sb-value 240ms var(--ease-out) 300ms both; }
  .ph-copied--now .ph-check path { animation: sb-line-draw 420ms var(--ease-out) 460ms both; }
}
/* the check and the copied look of the share button live in site.css (home and /install) */

/* The bottom dock: appears once the hero's own CTA has left the screen. It mirrors that
   CTA's state: "Link copied" for 3 s after a copy, then "Send to my Mac" again. */
.ph-dock { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; height: 72px; padding: 0 16px; padding-bottom: env(safe-area-inset-bottom, 0px); box-sizing: content-box; background: rgba(var(--surface-rgb), 0.72); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: inset 0 1px 0 var(--glass-edge), 0 -1px 0 var(--line), 0 -18px 40px -24px rgba(var(--shadow-rgb), 0.4); }
.ph-dock__row { display: flex; align-items: center; height: 72px; }
.ph-dock .ph-copied { width: 100%; height: 48px; font-size: 16px; }
/* the dock holds the share button where the board had a .ph-copied line; it fills the row the same way */
.ph-dock .sb-btn { width: 100%; }
/* the dock exists only on a device that is not a Mac, under 900 */
html[data-device="mac"] .ph-dock { display: none !important; }
@media (min-width: 900px) { .ph-dock { display: none !important; } }
/* where the dock can show, the footer keeps its last lines clear of it (72 px row plus the safe area) */
@media (max-width: 899px) { html[data-device="other"] .h-foot { padding-bottom: calc(48px + 72px + env(safe-area-inset-bottom, 0px)); } }

/* phones: the fogs stay still and overlap a little; only one keeps its band */
@media (max-width: 899px) { .h-fp--fr .sb-mark { background-size: 0 100%; } }
