/* page-v2 · the A+B scroll story (#ab-story), from sections-r3/ab-sequence/css/ab.css (approach 1 only) plus the
   scanner rules it borrowed from sections-r3/css/r3.css, so page-v2 needs nothing outside its folder.
   Loads after glossi.css + page.css. Every class is ab- (and the borrowed s3r-); none exist elsewhere in page-v2.
   Display face: .gl-d2 and the caption read --font-display (css/page.css), like every other section.
   Motion rules: transform and opacity only; JS writes classes on ONE element (the stage) per beat change and
   geometry vars only on resize; no blur on anything that moves (the banner's backdrop blur is switched off).
   Contrast (WCAG relative luminance, computed before writing; figures carried over from ab-sequence and r3):
   - "Wallet" #111 on #f4f2f4 16.95 · "Done" #0062e0 on #f4f2f4 4.93 · caption #5f5257 on blush 6.84
   - banner #111 on #faf5f8 17.52, "now" #5f5257 on #faf5f8 6.88
   - scanner: #fff on #16121a 18.49 · "Scan next" #fff on #d10a8f 5.06 · #8a0657 on #fde6f3 7.93 · add bar #0062e0 on #f2f2f7 4.92
   - facts #5f5257 on blush 6.84, tick #ca0280 on blush 5.05 */

/* ---- borrowed from sections-r3/css/r3.css: screen-reader text, the fact list, Glossi's scanner ---- */
.s3r-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.s3r-facts { list-style: none; margin: var(--gl-7) 0 0; padding: 0; display: grid; gap: var(--gl-4); max-width: var(--gl-max-text); }
.s3r-facts li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--gl-3); align-items: start; padding-top: var(--gl-4); border-top: 1px solid var(--gl-line); }
.s3r-facts svg { width: 22px; height: 22px; margin-top: 2px; color: var(--gl-pink-text); }
.s3r-facts b { display: block; font: 600 var(--gl-body)/1.35 var(--gl-sans); }
.s3r-facts span { display: block; color: var(--gl-ink-2); font-size: var(--gl-body); line-height: 1.5; }
/* your phone: Glossi's scanner (strings from app/app/qr-scanner.tsx) */
.s3r-cam { position: absolute; inset: 0; background: radial-gradient(80% 50% at 50% 38%, #3a2d36 0%, #16121a 70%); color: #fff; }
.s3r-cam__title { position: absolute; top: calc(64 * var(--pt)); width: 100%; text-align: center; font: 600 calc(17 * var(--pt))/1 var(--gl-sans); }
.s3r-cam__x { position: absolute; top: calc(60 * var(--pt)); left: calc(22 * var(--pt)); width: calc(24 * var(--pt)); height: calc(24 * var(--pt)); }
.s3r-cam__x::before, .s3r-cam__x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 88%; height: calc(2.2 * var(--pt)); background: #fff; border-radius: 2px; transform: translate(-50%, -50%) rotate(45deg); }
.s3r-cam__x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.s3r-vf { position: absolute; left: calc(76 * var(--pt)); top: calc(150 * var(--pt)); width: calc(228 * var(--pt)); height: calc(228 * var(--pt)); }
.s3r-vf__qr { position: absolute; inset: 16%; background: #fff; border-radius: calc(10 * var(--pt)); padding: 7%; transform: rotate(-4deg); box-shadow: 0 0 calc(40 * var(--pt)) rgba(255,255,255,.18); }
.s3r-vf__qr img { width: 100%; display: block; }
.s3r-vf i { position: absolute; width: 22%; height: 22%; border: calc(4 * var(--pt)) solid #fff; }
.s3r-vf i:nth-of-type(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: calc(16 * var(--pt)); }
.s3r-vf i:nth-of-type(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: calc(16 * var(--pt)); }
.s3r-vf i:nth-of-type(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: calc(16 * var(--pt)); }
.s3r-vf i:nth-of-type(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: calc(16 * var(--pt)); }
.s3r-vf__line { position: absolute; left: 10%; right: 10%; top: 14%; height: calc(3 * var(--pt)); border-radius: 3px; background: #fe85d1; box-shadow: 0 0 calc(12 * var(--pt)) #fe85d1; opacity: 0; }
.s3r-res { position: absolute; left: calc(10 * var(--pt)); right: calc(10 * var(--pt)); bottom: calc(10 * var(--pt)); background: #fff; color: #111; border-radius: calc(34 * var(--pt));
  padding: calc(26 * var(--pt)) calc(22 * var(--pt)) calc(22 * var(--pt)); text-align: center; font-family: var(--gl-sans); }
.s3r-res__logo { width: calc(40 * var(--pt)); height: calc(40 * var(--pt)); margin: 0 auto calc(12 * var(--pt)); border-radius: calc(10 * var(--pt)); background: #fff center/cover no-repeat; box-shadow: inset 0 0 0 1px #e7d9e1; }
.s3r-res__big { font: 700 calc(26 * var(--pt))/1.1 var(--gl-sans); letter-spacing: -.01em; }
.s3r-res__sub { font: 400 calc(15 * var(--pt))/1.35 var(--gl-sans); color: #5f5257; margin-top: calc(6 * var(--pt)); }
.s3r-res__next { margin: calc(16 * var(--pt)) 0; padding: calc(12 * var(--pt)); border-radius: calc(16 * var(--pt)); background: #fde6f3; color: #8a0657; }
.s3r-res__next small { display: block; font: 600 calc(13 * var(--pt))/1.3 var(--gl-sans); }
.s3r-res__next b { display: block; font: 700 calc(22 * var(--pt))/1.2 var(--gl-sans); color: #111; }
.s3r-res__btn { height: calc(50 * var(--pt)); border-radius: 99px; background: #d10a8f; color: #fff; display: grid; place-items: center; font: 600 calc(17 * var(--pt))/1 var(--gl-sans); }
@keyframes s3r-lock { 0% { border-color: #fff; transform: scale(1.12); } 100% { border-color: #fe85d1; transform: none; } }
/* the end state after the sweep: brackets pink */
.s3r-vf i { border-color: #fe85d1; }


/* =================================================================================================
   THE STAGE. Geometry (px) is written by ab.js on resize as custom properties on .ab-stage:
   --P phone width; --her-a/--her-2/--her-3 her phone's transform per chapter; --you-0/--you-3 yours;
   --who-her/--who-you label positions; --ban banner position, --bw banner width.
   Beats are cumulative classes on .ab-stage: (none)=Add sheet · ab-tapping · ab-b1 filed · ab-b2 two visits
   later · ab-b3 at checkout, scanning · ab-b4 stamped + banner.
   ================================================================================================= */
.ab-stage { position: relative; overflow: clip; --P: 300px; }
/* desktop: no clip, so the camera pull-back never shows a hard edge; your phone waits below the viewport instead */
@media (min-width: 861px) { .ab-pin .ab-stage { overflow: visible; } }
.ab-stage__in { position: absolute; inset: 0; }

/* her phone: one transformed group. In chapter A the camera is in close on her screen and the frame is invisible,
   so it reads as A's big Wallet stack; in chapter B the camera pulls back and the phone appears round it. */
.ab-her { --pt: calc(var(--P) / 402); position: absolute; left: 0; top: 0; width: var(--P); height: calc(var(--P) * 874 / 402);
  margin: calc(var(--P) * -437 / 402) 0 0 calc(var(--P) / -2); transform: var(--her-a); z-index: 3;
  transition: transform 1.25s var(--gl-ease-io); }
.ab-b2 .ab-her { transform: var(--her-2); }
.ab-b3 .ab-her { transform: var(--her-3); transition-duration: .9s; }
.ab-her__frame { position: absolute; inset: 0; border-radius: calc(64 * var(--pt)); background: var(--gl-chrome); box-shadow: var(--gl-sh-3); }
.ab-her__frame i { position: absolute; inset: calc(5 * var(--pt)); border-radius: calc(59 * var(--pt)); background: #0b0b0d; }
.ab-her__island { position: absolute; top: calc(27 * var(--pt)); left: 50%; width: calc(124 * var(--pt)); height: calc(36 * var(--pt)); margin-left: calc(-62 * var(--pt));
  border-radius: calc(20 * var(--pt)); background: #000; }
.ab-her__screen { position: absolute; inset: calc(16 * var(--pt)); }
.ab-her__bg { position: absolute; inset: 0; border-radius: calc(49 * var(--pt)); background: #f4f2f4; }
.ab-her__frame, .ab-her__island, .ab-her__bg { opacity: 0; transition: opacity .45s ease; }
.ab-b2 .ab-her__frame, .ab-b2 .ab-her__island, .ab-b2 .ab-her__bg { opacity: 1; transition-delay: .3s; }
.ab-her__title, .ab-her__done { position: absolute; opacity: 0; transition: opacity .35s ease; }
.ab-her__title { left: calc(18 * var(--pt)); top: calc(56 * var(--pt)); font: 700 calc(30 * var(--pt))/1 var(--gl-sans); letter-spacing: -.01em; color: #111; }
.ab-her__done { right: calc(22 * var(--pt)); top: calc(50 * var(--pt)); font: 600 calc(17 * var(--pt))/1 var(--gl-sans); color: #0062e0; }
.ab-b2 .ab-her__title { opacity: 1; transition-delay: .8s; }
.ab-b3 .ab-her__title { opacity: 0; transition-delay: 0s; }
.ab-b3 .ab-her__done { opacity: 1; transition-delay: .5s; }

/* her Wallet: two other passes, then your card in front (Wallet's list view). Positions in pt of her screen. */
.ab-bands { position: absolute; left: calc(16 * var(--pt)); right: calc(16 * var(--pt)); top: calc(112 * var(--pt)); }
.ab-b1 .ab-bands { animation: ab-settle .5s var(--gl-ease-out) .55s backwards; }
@keyframes ab-settle { 0% { transform: none; } 40% { transform: translateY(calc(5 * var(--pt))); } 100% { transform: none; } }
.ab-band { position: absolute; left: 0; right: 0; height: calc(68 * var(--pt)); display: flex; align-items: center; gap: calc(8 * var(--pt));
  padding: 0 calc(14 * var(--pt)) calc(24 * var(--pt)); border-radius: calc(13 * var(--pt)); font: 500 calc(9.5 * var(--pt))/1.2 var(--gl-sans);
  box-shadow: 0 calc(-1 * var(--pt)) calc(8 * var(--pt)) rgba(40, 20, 40, .10); transition: transform .8s var(--gl-ease-io); }
.ab-band svg { width: 1.3em; height: 1.3em; flex: none; }
.ab-band b { font-weight: 600; }
.ab-band em { margin-left: auto; font-style: normal; }
.ab-band--bp { top: 0; background: #e8eef6; color: #1d2a3a; }
.ab-band--bp span, .ab-band--bp em { color: #4f5d6e; }
.ab-band--tk { top: calc(44 * var(--pt)); background: radial-gradient(120% 140% at 100% 0%, #3a2a55 0%, rgba(58,42,85,0) 60%), #1f1830; color: #fff; }
.ab-band--tk span, .ab-band--tk em { color: #c7bdd6; }
/* chapter B: she opens the card; the other passes tuck to the bottom of the screen the way Wallet does */
.ab-b3 .ab-band--bp { transform: translateY(calc(620 * var(--pt))); }
.ab-b3 .ab-band--tk { transform: translateY(calc(602 * var(--pt))); }

.ab-cardwrap { position: absolute; left: calc(16 * var(--pt)); top: calc(200 * var(--pt)); transition: transform .85s var(--gl-ease-io); }
.ab-b3 .ab-cardwrap { transform: translateY(calc(-96 * var(--pt))); }
.ab-face { position: relative; transform: translateY(calc(-74 * var(--pt))) scale(1.03); transition: transform 1s var(--gl-ease-out); }
.ab-b1 .ab-face { transform: none; }
.ab-face .gl-card { --w: calc(338 * var(--pt)); position: relative; z-index: 2; box-shadow: 0 calc(-2 * var(--pt)) calc(10 * var(--pt)) rgba(90, 20, 60, .12), 0 calc(10 * var(--pt)) calc(26 * var(--pt)) rgba(90, 20, 60, .16); }
/* the card's barcode: sits behind the card, slides out below it when she opens the card at checkout */
.ab-code { position: absolute; left: 0; right: 0; bottom: calc(-135 * var(--pt)); height: calc(160 * var(--pt)); z-index: 1; display: grid; place-items: end center;
  padding-bottom: calc(18 * var(--pt)); background: #f2b6cf; border-radius: 0 0 calc(12 * var(--pt) * 338 / 320) calc(12 * var(--pt) * 338 / 320);
  box-shadow: 0 calc(10 * var(--pt)) calc(26 * var(--pt)) rgba(90, 20, 60, .14); transform: translateY(calc(-135 * var(--pt))); transition: transform .7s var(--gl-ease-out); }
.ab-code img { width: calc(110 * var(--pt)); height: calc(110 * var(--pt)); padding: calc(7 * var(--pt)); background: #fff; border-radius: calc(6 * var(--pt)); }
.ab-b3 .ab-code { transform: none; transition-delay: .3s; }

/* stamps: three slots that receive a landing stamp (1 and 2 in "two visits later", 3 at checkout) */
.ab-slot { position: relative; width: 88%; aspect-ratio: 1; display: grid; }
.gl-card__stamps .ab-slot img { grid-area: 1 / 1; width: 100%; height: 100%; }
.ab-l { visibility: hidden; }
.ab-b2 .ab-l1 { visibility: visible; animation: gl-stamp-land var(--gl-t-land) linear 1.05s both; }
.ab-b2 .ab-l2 { visibility: visible; animation: gl-stamp-land var(--gl-t-land) linear 1.4s both; }
.ab-b4 .ab-l3 { visibility: visible; animation: gl-stamp-land var(--gl-t-land) linear .45s both; }

/* the numbers that change on the card: VISITS 0 > 2 > 3 and the offer 4 > 2 > 1 more */
.ab-sw { display: inline-grid; }
.ab-sw > * { grid-area: 1 / 1; opacity: 0; transition: opacity .3s ease; }
.ab-sw > .ab-v0 { opacity: 1; }
.ab-b2 .ab-sw > .ab-v0 { opacity: 0; transition-delay: 1.75s; }
.ab-b2 .ab-sw > .ab-v2 { opacity: 1; transition-delay: 1.75s; }
.ab-b4 .ab-sw > .ab-v2 { opacity: 0; transition-delay: .85s; }
.ab-b4 .ab-sw > .ab-v3 { opacity: 1; transition-delay: .85s; }

/* Apple's add-pass bar: there before she taps Add, gone once the card is filed */
.ab-addbar { position: absolute; left: calc(16 * var(--pt)); right: calc(16 * var(--pt)); top: calc(54 * var(--pt)); height: calc(40 * var(--pt));
  display: flex; justify-content: space-between; align-items: center; padding: 0 calc(15 * var(--pt)); border-radius: calc(11 * var(--pt));
  background: #f2f2f7; color: #0062e0; font: 400 calc(12.5 * var(--pt))/1 var(--gl-sans); box-shadow: var(--gl-sh-1); z-index: 4;
  transition: opacity .35s ease, transform .35s ease; }
.ab-addbar b { font-weight: 600; position: relative; }
.ab-tap { position: absolute; left: 50%; top: 50%; width: calc(34 * var(--pt)); height: calc(34 * var(--pt)); margin: calc(-17 * var(--pt)) 0 0 calc(-17 * var(--pt));
  border-radius: 50%; background: rgba(0, 98, 224, .16); box-shadow: inset 0 0 0 calc(1.5 * var(--pt)) #0062e0; opacity: 0; }
.ab-tapping .ab-tap { animation: ab-tap .6s ease-out both; }
@keyframes ab-tap { 0% { opacity: 0; transform: scale(1.6); } 25% { opacity: 1; transform: scale(1); } 60% { opacity: 1; transform: scale(.86); } 100% { opacity: 0; transform: scale(.86); } }
.ab-b1 .ab-addbar { opacity: 0; transform: translateY(calc(-8 * var(--pt))); }

/* caption slate, top of the stage: only in chapter A's end frame and the "two visits later" beat */
.ab-cap { position: absolute; left: 0; right: 0; top: 6px; margin: 0; display: grid; justify-items: center; font: italic 400 clamp(22px, 1rem + .8vw, 30px)/1.1 var(--font-display); color: var(--gl-ink-2); z-index: 6; }
.ab-cap > span { grid-area: 1 / 1; opacity: 0; transition: opacity .35s ease; }
.ab-b1 .ab-cap__a { opacity: 1; transition-delay: .9s; }
.ab-b2 .ab-cap__a { opacity: 0; transition-delay: 0s; }
.ab-b2 .ab-cap__b { opacity: 1; transition-delay: 1s; }
.ab-b3 .ab-cap__b { opacity: 0; transition-delay: 0s; }

/* your phone: Glossi's scanner. Off stage left until checkout. */
.ab-you { position: absolute; left: 0; top: 0; margin: calc(var(--P) * -437 / 402) 0 0 calc(var(--P) / -2); transform: var(--you-0); z-index: 2;
  transition: transform .8s var(--gl-ease-io); }
.ab-you .gl-phone { --w: var(--P); }
.ab-b3 .ab-you { transform: var(--you-3); transition: transform 1.05s var(--gl-ease-out) .1s; }
.ab-stage .s3r-vf i { border-color: #fff; }
.ab-stage .s3r-vf__line { top: 14%; opacity: 0; }
.ab-b3 .s3r-vf__line { animation: ab-sweep .75s var(--gl-ease-io) 1.05s 2 alternate both; }
.ab-b4 .s3r-vf__line { animation: none; opacity: 0; }
@keyframes ab-sweep { from { transform: none; opacity: 1; } to { transform: translateY(calc(158 * var(--pt))); opacity: 1; } }
.ab-you { --pt: calc(var(--P) / 402); }
.ab-b4 .s3r-vf i { border-color: #fe85d1; animation: s3r-lock .32s var(--gl-ease-out) both; }
.ab-stage .s3r-res { transform: translateY(115%); transition: transform .3s ease; }
.ab-b4 .s3r-res { transform: none; transition: transform .7s var(--gl-ease-out) .1s; }

.ab-who { position: absolute; left: 0; top: 0; font: 600 var(--gl-small)/1.3 var(--gl-sans); color: var(--gl-ink-2); white-space: nowrap; opacity: 0; transition: opacity .35s ease; z-index: 1; }
.ab-who--her { transform: var(--who-her); }
.ab-who--you { transform: var(--who-you); }
.ab-b3 .ab-who { opacity: 1; transition-delay: 1s; }
.ab-mob .ab-who { visibility: hidden; }   /* phone: no room under the phones; the banner and the screens say whose is whose */

/* the banner breaks out of her phone at reading size. No backdrop blur: it moves. */
.ab-banner { position: absolute; left: 0; top: 0; width: var(--bw); z-index: 8; opacity: 0; transform: var(--ban) translateY(-28px) scale(.96);
  transition: opacity .25s ease, transform .25s ease; }
.ab-banner .gl-note { font-size: calc(var(--bw) / 360); background: #faf5f8; -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 2px 6px rgba(60, 10, 40, .08), 0 24px 50px -12px rgba(120, 20, 80, .35); }
.ab-b4 .ab-banner { opacity: 1; transform: var(--ban); transition: opacity .3s ease 1.15s, transform .65s var(--gl-ease-out) 1.15s; }

/* a still frame (reduced motion): no transitions, no keyframes, everything at its end state */
.ab-still *, .ab-still *::before, .ab-still *::after { transition: none !important; animation: none !important; }
.ab-still .ab-b4 .ab-l3, .ab-still.ab-b4 .ab-l3 { visibility: visible; }

/* =================================================================================================
   APPROACH 1 · scrolly: the stage sticks; the copy scrolls past it. Nothing is hijacked: the page scrolls
   normally and each copy block, as it crosses the reading line, plays its chapter once (forward), or snaps
   back to chapter A's end frame if you scroll back up.
   ================================================================================================= */
.ab-scrolly__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); grid-template-areas: "steps pin"; column-gap: var(--gl-8); }
.ab-steps { grid-area: steps; }
.ab-pin { grid-area: pin; position: sticky; top: calc((100svh - var(--ab-h)) / 2); height: var(--ab-h); --ab-h: min(800px, calc(100svh - 48px)); }
.ab-pin .ab-stage { height: 100%; }
.ab-step { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: var(--gl-8) 0; }
.ab-step:first-child { min-height: 92svh; }
.ab-step .gl-lead { margin-top: var(--gl-5); }
.ab-step .gl-d2 { max-width: 9.5em; }
.ab-facts { margin-top: var(--gl-7); }
.ab-note { margin: var(--gl-7) 0 0; padding-top: var(--gl-4); border-top: 1px solid var(--gl-line); max-width: var(--gl-max-text); color: var(--gl-ink-2); font-size: var(--gl-body); line-height: 1.5; }
.ab-note b { color: var(--gl-ink); font-weight: 600; }
.ab-stillwrap { display: none; }

@media (max-width: 860px) {
  /* phone: the stage sticks to the top of the screen; the copy scrolls up under it */
  .ab-scrolly { padding-top: 0; }
  .ab-scrolly__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pin" "steps"; margin: 0 calc(-1 * var(--gl-gutter)); }
  .ab-pin { top: 0; --ab-h: 60svh; z-index: 2; background: var(--gl-bg); }
  .ab-pin::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 28px; background: linear-gradient(var(--gl-bg), rgba(253, 243, 249, 0)); pointer-events: none; }
  .ab-steps { padding: 0 var(--gl-gutter); }
  .ab-step, .ab-step:first-child { min-height: 0; padding: var(--gl-7) 0 34svh; justify-content: flex-start; }
  .ab-step:last-child { padding-bottom: var(--gl-8); }
}

/* =================================================================================================
   reduced motion: the two finished frames, nothing moves
   ================================================================================================= */
@media (prefers-reduced-motion: reduce) {
  .ab-pin { display: none; }
  .ab-stillwrap { display: block; margin-top: var(--gl-6); }
  .ab-stillwrap .ab-stage { height: min(680px, 120vw); }
  .ab-step, .ab-step:first-child { min-height: 0; padding: var(--gl-8) 0; }
  .ab-scrolly__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "steps"; margin: 0; }
}
/* reduced motion, desktop: each half is copy beside its finished frame */
@media (prefers-reduced-motion: reduce) and (min-width: 861px) {
  .ab-step, .ab-step:first-child { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); column-gap: var(--gl-8); align-content: center; }
  .ab-step > * { grid-column: 1; }
  .ab-step > .ab-stillwrap { grid-column: 2; grid-row: 1 / span 4; align-self: center; margin-top: 0; }
  .ab-stillwrap .ab-stage { height: min(720px, 56vw); }
}

/* =================================================================================================
   PAGE-V2 INTEGRATION
   The pinned stage sits clear of the section nav. --ab-top / --ab-bot are the room the nav takes at the top and the
   bottom of the screen for each ?nav= look (measured in the render, see README "A+B scroll story"):
   1 pill: 14px + 52px + a gap · 2 dock: at the bottom · 3 rail: left margin on desktop, a top bar on phones.
   ================================================================================================= */
#ab-story { --ab-top: 24px; --ab-bot: 24px; scroll-margin-top: 0; }
[data-nav="1"] #ab-story { --ab-top: 78px; }
[data-nav="2"] #ab-story { --ab-bot: 96px; }
@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  /* desktop: the section starts with the stage already pinned, so the nav anchor and the settle line (both the section
     top) land on the finished layout, not on a half-risen stage */
  .ab-scrolly { padding-top: var(--ab-top); }
  .ab-pin { --ab-h: min(800px, calc(100svh - var(--ab-top) - var(--ab-bot))); top: calc(var(--ab-top) + (100svh - var(--ab-top) - var(--ab-bot) - var(--ab-h)) / 2); }
  .ab-step:first-child { min-height: calc(100svh - var(--ab-top)); }
}
@media (max-width: 860px) {
  [data-nav="3"] #ab-story { --ab-top: 62px; }
  [data-nav="2"] #ab-story { --ab-bot: 0px; }
  /* phone: the pin stays at the very top and pads itself down under the nav, so copy scrolling up never shows
     between the nav and the stage */
  .ab-pin { --ab-h: calc(var(--ab-top) + 54svh); padding-top: var(--ab-top); box-sizing: border-box; }
  .ab-pin .ab-stage { height: 100%; }
}
/* "Nothing to switch. Keep Booksy, Fresha…" names competitors and Bo hasn't approved it: it is the one <p data-confirm="booksy">. */

/* #still (the page's own no-motion switch) shows the same two finished frames as reduced motion */
.ab-quiet .ab-pin { display: none; }
.ab-quiet .ab-stillwrap { display: block; margin-top: var(--gl-6); }
.ab-quiet .ab-stillwrap .ab-stage { height: min(680px, 120vw); }
.ab-quiet .ab-step, .ab-quiet .ab-step:first-child { min-height: 0; padding: var(--gl-8) 0; }
.ab-quiet .ab-scrolly__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "steps"; margin: 0; }
@media (min-width: 861px) {
  .ab-quiet .ab-step, .ab-quiet .ab-step:first-child { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); column-gap: var(--gl-8); align-content: center; }
  .ab-quiet .ab-step > * { grid-column: 1; }
  .ab-quiet .ab-step > .ab-stillwrap { grid-column: 2; grid-row: 1 / span 4; align-self: center; margin-top: 0; }
  .ab-quiet .ab-stillwrap .ab-stage { height: min(720px, 56vw); }
}
@media (prefers-reduced-motion: reduce) { .ab-scrolly { padding-top: var(--gl-sec-y); } }
.ab-quiet .ab-scrolly { padding-top: var(--gl-sec-y); }

/* Two notifications in a row: the story ends on her Wallet with "Stamp #3 added" breaking out at checkout; the next
   section is her lock screen weeks later with that same message in a stack. To read as two moments, the lock-screen
   section takes the deep band: s4 deep · this story blush · s3 deep. #ca0280 on #f6e6ef is 4.56:1 (display size),
   #5f5257 6.18:1, #111 15.72:1. */
#s3-notify { background: var(--gl-bg-deep); }
