/* Baker's Blueprint landing page. Style A, "Ivory showroom". No build step. */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #f5f1eb;          /* page; the story's frames are drawn on it */
  --bench: #ede6dc;       /* deeper ivory band */
  --tile: #fdfbf8;
  --ink: #2a1c18;         /* chocolate */
  --muted: #6b5b53;       /* 5.9:1 on --bg */
  --accent: #a3365a;      /* berry, 5.9:1 on --bg */
  --line: rgba(42, 28, 24, .12);
  --line-strong: rgba(42, 28, 24, .28);
  --cocoa: #241815;       /* numbers band */
  --on-cocoa: #f5ede4;
  --on-cocoa-muted: #c9b8ab;

  --d-font: "Fraunces", Georgia, "Times New Roman", serif;
  --b-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --h1: clamp(42px, 5.6vw, 84px);
  --h2: clamp(34px, 4vw, 58px);
  --ease: cubic-bezier(.2, 0, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 64px;
  --gutter: 32px;
  --max: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--b-font); font-size: 17px; line-height: 1.5; letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
/* Where an in-page link lands (site.js gives the place tabindex="-1" and moves focus there): no ring round a whole section. */
[tabindex="-1"]:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 200; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; transition: top .2s var(--ease); }
.skip:focus { top: 12px; }

.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.display { font-family: var(--d-font); font-weight: 600; letter-spacing: -.028em; line-height: 1.04; font-optical-sizing: auto; }
.h1 { font-size: var(--h1); text-wrap: balance; }
.h2 { font-size: var(--h2); text-wrap: balance; }
.accent { color: var(--accent); }
.nw { white-space: nowrap; }
.br-wide { display: none; }
@media (min-width: 761px) { .br-wide { display: inline; } }
.eyebrow { margin-bottom: 16px; color: var(--accent); font-size: 19px; font-weight: 600; letter-spacing: -.012em; line-height: 1.25; }
.lede { margin-top: 24px; max-width: 40em; font-size: clamp(19px, 1.55vw, 23px); line-height: 1.42; color: var(--muted); text-wrap: pretty; }
.body { margin-top: 24px; max-width: 32em; font-size: 19px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.caption { margin-top: 18px; font-size: 14px; color: var(--muted); }
.caption--centre { text-align: center; margin-top: 28px; }
.center { text-align: center; }
.fine { margin-top: 16px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.fine a { color: var(--ink); }
.fine a, .fees a { padding: 8px 0; }

/* Placeholders: visible, findable, quiet */
.ph { overflow-wrap: anywhere; text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: .2em; text-decoration-color: color-mix(in srgb, currentColor 55%, transparent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border-radius: 999px; background: var(--ink); color: #f8f4ee; font-size: 17px; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap; transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: #45302a; }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--lg { min-height: 58px; padding: 0 34px; font-size: 19px; }
.btn--block { display: flex; width: 100%; }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.btn--line:hover { background: var(--ink); color: #f8f4ee; }
.link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent); font-size: 19px; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: .2em; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 32px; margin-top: 30px; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.nav.is-solid { background: rgba(245, 241, 235, .84); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 var(--line); }
.nav__in { max-width: calc(var(--max) + 2 * var(--gutter)); height: 100%; margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); display: flex; align-items: center; gap: 36px; }
.nav__logo { display: flex; align-items: center; min-height: 44px; margin-right: auto; border-radius: 6px; }
.nav__logo img { height: 23px; width: auto; }
.nav__menu ul { display: flex; gap: 32px; }
.nav__menu a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--muted); text-decoration: none; transition: color .2s var(--ease); }
.nav__menu a:hover { color: var(--ink); }
.nav__toggle { display: none; }

/* ---------- Pill ---------- */
.pill {
  display: inline-block; min-height: 44px; padding: 11px 20px; line-height: 22px; border-radius: 999px;
  background: rgba(253, 251, 248, .8); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink);
  font-size: 15px; font-weight: 600; text-decoration: none; transition: box-shadow .2s var(--ease);
}
.pill:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.pill span[aria-hidden] { color: var(--accent); }

/* ================= S2. Hero and the cake story ================= */
/* One pinned, scroll-scrubbed stage. js/story.js draws the frames on the canvas, moves the "camera" and fades the
   words; the head script picks the motion version (html.st-on) or the still pictures before first paint. */
.st { position: relative; background: var(--bg); }
.st__hero { text-align: center; padding: 0 var(--gutter); }
/* The eyebrow repeats the logo, so it is for screen readers only. */
.st__eyebrow { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.st__hero .h1, .still__hero .h1 { max-width: 13.5em; margin: 20px auto 0; }
.st__lede { margin: 20px auto 0; max-width: 30em; }
.st__h { font-size: clamp(30px, 3.1vw, 46px); line-height: 1.08; text-wrap: balance; }
.st__p { margin-top: 14px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.st__fine { margin-top: 20px; margin-bottom: 0; text-align: center; font-size: 14px; line-height: 1.45; color: var(--muted); }
.st__fine.wrap { max-width: calc(36em + 2 * var(--gutter)); }

/* Motion version (html.st-on) */
.st__track { position: relative; }
html.st-on .st__track { height: 484vh; }   /* 384vh of scrolling (END in story.js) plus the pinned screen: about four screens */
.st__stage { position: relative; }
html.st-on .st__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
html.st-on .st__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; }
html.st-on .st__hero { position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + clamp(16px, 4vh, 48px)); z-index: 4; will-change: transform, opacity; }
html.st-on .st__beat { position: absolute; left: 0; top: 0; width: var(--cw, 320px); z-index: 4; opacity: 0; will-change: transform, opacity; pointer-events: none; }
html.st-on .st__beat.is-narrow { text-align: center; }
/* Words that are fading out (or not yet in) never catch a tap; story.js marks the part on screen is-live. */
html.st-on .st__beat.is-live { pointer-events: auto; }

/* Each part's heading is a link down the page: a small arrow after it says so; underlined on hover and focus. */
.st__go { color: inherit; text-decoration: none; border-radius: 6px; text-decoration-thickness: .06em; text-underline-offset: .14em; }
.st__go:hover, .st__go:focus-visible { text-decoration-line: underline; }
.st__go:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 4px; }
.st__nw { white-space: nowrap; }
.st__arr { display: inline-block; width: .6em; height: .6em; margin-left: .2em; vertical-align: -.02em; overflow: visible;
  fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* The progress line: under the menu bar (story.js sets its top), filling left to right over the story. */
.st__prog { display: none; }
html.st-on .st__prog { display: block; position: absolute; left: 0; top: var(--nav-h); width: 100%; height: 3px; z-index: 5;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; will-change: transform; }

/* The Blueprint sheet (Communicated perfectly). Its box, perspective and the page turn are set by story.js; the
   cover hides the sheet's own From above picture until the moving cake has landed on it. Page 2 lies squarely under
   page 1 (a hair of its edge shows), and page 1 turns over to the left on its left edge to show it. */
html.st-on .st__sheet { position: absolute; left: 0; top: 0; width: 300px; z-index: 1; opacity: 0; }
.st__p1, .st__p2 { border-radius: 2px; background: #fff; box-shadow: 0 1px 2px rgba(42, 28, 24, .12), 0 30px 60px -28px rgba(42, 28, 24, .45), 0 12px 24px -16px rgba(42, 28, 24, .22); }
.st__p1 { position: relative; transform-origin: 0 50%; }
.st__p1 img, .st__p2 img { width: 100%; }
.st__p2 { position: absolute; left: 0; top: 0; width: 100%; overflow: hidden;
  transform: translate(calc(.5% * var(--o, 1)), calc(.35% * var(--o, 1))); }
.st__p2 img { filter: brightness(calc(1 - .02 * var(--o, 1))); }
/* The turning page's shadow on page 2: a soft band beside the lifted edge, set by story.js. */
.st__cast { position: absolute; top: 0; bottom: 0; left: 0; width: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(to right, rgba(42, 28, 24, .32), rgba(42, 28, 24, .12) 40%, rgba(42, 28, 24, 0)); }
/* Light on the turning page: the printed side darkens toward its free edge as it rises; the plain back of the
   paper shows once the page is past upright. */
.st__shade, .st__back { position: absolute; inset: 0; border-radius: 2px; opacity: 0; pointer-events: none; }
.st__shade { background: linear-gradient(to right, rgba(42, 28, 24, .02), rgba(42, 28, 24, .2)); }
.st__back { background: linear-gradient(to right, rgba(42, 28, 24, .10), rgba(42, 28, 24, 0) 22%), linear-gradient(to right, #efe9e1, #faf7f2); }
/* From above picture box (boxes.json): x 685.3, y 222.4, 505.2 x 505.2 on a 1200 x 1698 page (story.js sets it too). */
.st__cover { position: absolute; left: 57.108%; top: 13.098%; width: 42.1%; height: 29.753%; background: #fff; }
html:not(.st-on) .st__sheet { display: none; }

/* Flavour labels (slice hold) */
.st__labels { display: none; }
html.st-on .st__labels { display: block; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.lab { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
.lab__line { position: absolute; top: 0; left: var(--lx, 0); width: var(--lw, 0); height: 1.5px; margin-top: -.75px; background: var(--ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, .55); transform-origin: left center; transform: scaleX(var(--a, 0)); }
.lab__dot { position: absolute; left: -4.5px; top: -4.5px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); font-size: 0; color: transparent; }
.lab__t { position: absolute; left: var(--tx, 0); top: 0; transform: translateY(-50%); width: max-content; max-width: var(--tw, 260px); padding: 7px 14px; border-radius: 16px; background: var(--ink); color: #f8f4ee; font-size: 14px; font-weight: 600; line-height: 1.25; box-shadow: 0 8px 20px -8px rgba(42, 28, 24, .5); }
/* Markers mode (phones, and wherever the labels do not fit beside the cake): numbered dots, keyed in the text. */
.st__labels.is-markers .lab__line, .st__labels.is-markers .lab__t { display: none; }
.st__labels.is-markers .lab__dot { left: -11px; top: -11px; width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; font-weight: 600; line-height: 1; color: #f8f4ee; box-shadow: 0 0 0 2px #fff, 0 4px 10px -4px rgba(42, 28, 24, .5); }
.st__key { display: none; }
html.st-on .st__key.is-on { counter-reset: key; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); opacity: var(--ka, 0); }
html.st-on .st__beat.is-narrow .st__key.is-on { justify-content: center; }
.st__key li { counter-increment: key; display: inline-flex; align-items: center; gap: 8px; }
.st__key li::before { content: counter(key); display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #f8f4ee; font-size: 12px; line-height: 1; }

/* Still version: reduced motion, no JS, very short screens */
.still { display: none; }
html:not(.st-on) .st { display: none; }
html:not(.st-on) .still { display: block; padding: calc(var(--nav-h) + 56px) 0 24px; }
.still__hero { text-align: center; }
.still__beat { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 32px 56px; margin-top: clamp(64px, 9vw, 120px); }
.still__img { width: 100%; }
/* Parts told in several pictures: the words first, then the pictures in a row. */
.still__beat--row { grid-template-columns: minmax(0, 1fr); gap: 24px; text-align: center; }
.still__beat--row .still__copy { max-width: 36em; margin: 0 auto; }
.still__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.still__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.still__key { counter-reset: key; display: grid; gap: 8px; margin-top: 18px; font-size: 15px; font-weight: 600; }
.still__key li { counter-increment: key; display: flex; align-items: center; gap: 10px; }
.still__key li::before { content: counter(key); display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #f8f4ee; font-size: 12px; }
/* Both Blueprint pages: side by side here, one under the other on phones. */
.still__bp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.still__pg { width: 100%; background: #fff; border-radius: 2px; box-shadow: 0 1px 2px rgba(42, 28, 24, .12), 0 30px 60px -28px rgba(42, 28, 24, .45), 0 12px 24px -16px rgba(42, 28, 24, .22); }

/* ================= S3. Statement ================= */
.statement { padding: clamp(120px, 16vw, 220px) 0 clamp(100px, 12vw, 180px); text-align: center; }
.statement__h { font-size: clamp(44px, 7.4vw, 112px); line-height: 1.02; letter-spacing: -.032em; max-width: 12em; margin: 0 auto; text-wrap: balance; }
.statement__h .w { transition: color .25s linear; }
.statement__h .w--accent { color: var(--accent); }
html.js .statement__h.is-armed .w { color: rgba(42, 28, 24, .5); }   /* 3.1:1, large text */
html.js .statement__h.is-armed .w.is-lit { color: var(--ink); }
html.js .statement__h.is-armed .w.is-lit.w--accent { color: var(--accent); }
.statement__sub { margin: 40px auto 0; max-width: 34em; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.45; color: var(--muted); text-wrap: pretty; }

/* ================= Sections and tiles ================= */
.sec { padding: clamp(72px, 9vw, 140px) 0; }
.sec--tight { padding: clamp(56px, 7vw, 104px) 0; }
.sec--bench { background: var(--bench); padding: clamp(96px, 12vw, 180px) 0; }
.head { text-align: center; max-width: 900px; margin: 0 auto; }
.head .lede { margin-left: auto; margin-right: auto; }
.head--left { text-align: left; margin: 0; }
.head--left .lede { margin-left: 0; }

.tile { background: var(--tile); border-radius: 36px; overflow: hidden; }
.tile--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: 720px; }
.tile__copy { padding: 88px 40px 88px 80px; }
.tile--flip .tile__copy { order: 2; padding: 88px 80px 88px 40px; }
.tile__art { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; padding: 72px 40px; }
.tile .h2 { font-size: clamp(32px, 3.4vw, 52px); }
.tile__cap { position: absolute; left: 0; right: 0; bottom: 24px; margin: 0; text-align: center; }
/* S4 and S5 read as one run of tiles */
#features { padding-bottom: 24px; }
#features + .sec { padding-top: 0; }

.ticks { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; font-size: 17px; line-height: 1.45; text-wrap: pretty; }
.ticks li::before { content: ""; position: absolute; left: 6px; top: .28em; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ticks--dash li::before { top: .72em; left: 2px; width: 14px; height: 0; border-width: 0 0 2px; transform: none; }
.ticks--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 48px; max-width: 980px; margin-left: auto; margin-right: auto; }

/* ---------- Phone mockup (CSS only) ---------- */
.phone { --w: 300px; position: relative; flex: none; width: var(--w); padding: calc(var(--w) * .011); border-radius: calc(var(--w) * .168);
  background: linear-gradient(145deg, #a39a94 0%, #5a514c 18%, #2a2421 46%, #3d3532 70%, #8f8580 100%);
  box-shadow: 0 50px 70px -40px rgba(42, 28, 24, .5), 0 24px 40px -24px rgba(42, 28, 24, .28); }
.phone::before, .phone::after { content: ""; position: absolute; width: calc(var(--w) * .011); border-radius: 2px; background: #5d5450; }
.phone::before { left: calc(var(--w) * -.009); top: 22%; height: 9%; box-shadow: 0 calc(var(--w) * .2) 0 #5d5450; }
.phone::after { right: calc(var(--w) * -.009); top: 27%; height: 14%; }
.phone__body { padding: calc(var(--w) * .026); border-radius: calc(var(--w) * .157); background: #0b0909; }
.phone__screen { position: relative; overflow: hidden; border-radius: calc(var(--w) * .131); background: #fff; aspect-ratio: 390 / 846; container-type: inline-size; isolation: isolate; }
.phone__screen--grey { background: #f9f9f9; }
.phone__screen img { width: 100%; height: auto; }
.phone__status { position: relative; z-index: 2; height: 12.6cqw; display: flex; align-items: center; justify-content: space-between; padding: 1.4cqw 7.6cqw 0 10cqw; background: inherit; color: #000; font-weight: 600; font-size: 4.3cqw; letter-spacing: -.01em; }
.phone__screen::before { content: ""; position: absolute; z-index: 3; top: 2.9cqw; left: 50%; width: 31.5cqw; height: 9.4cqw; transform: translateX(-50%); border-radius: 99px; background: #000; }
.phone__screen::after { content: ""; position: absolute; z-index: 3; bottom: 2.1cqw; left: 50%; width: 35%; height: 1.35cqw; transform: translateX(-50%); border-radius: 99px; background: rgba(0, 0, 0, .82); }
.phone__icons { display: block; width: 18.5cqw; height: 3.2cqw; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 12'%3E%3Cg fill='%23000'%3E%3Crect x='0' y='8' width='3' height='4' rx='1'/%3E%3Crect x='5' y='5.5' width='3' height='6.5' rx='1'/%3E%3Crect x='10' y='3' width='3' height='9' rx='1'/%3E%3Crect x='15' y='0' width='3' height='12' rx='1'/%3E%3Cpath d='M32 11.6 29.5 9.1a3.5 3.5 0 0 1 5 0z'/%3E%3Cpath d='M27.3 6.9a6.6 6.6 0 0 1 9.4 0l-1.5 1.5a4.5 4.5 0 0 0-6.4 0z'/%3E%3Cpath d='M25 4.6a9.9 9.9 0 0 1 14 0l-1.5 1.5a7.8 7.8 0 0 0-11 0z'/%3E%3Crect x='46.6' y='.6' width='22' height='10.8' rx='3.2' fill='none' stroke='%23000' stroke-width='1.1' opacity='.4'/%3E%3Crect x='48.3' y='2.3' width='18.6' height='7.4' rx='1.8'/%3E%3Cpath d='M70.2 4v4a2.2 2.2 0 0 0 0-4z' opacity='.45'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.phone--sm { --w: 200px; }

/* S4: two phones */
.duo { min-height: 700px; }
.duo .phone--front { --w: 290px; z-index: 2; transform: translateX(24%); }
.duo .phone--back { --w: 250px; position: absolute; transform: translate(-64%, -4%) rotate(-5deg); opacity: .96; }

/* S5: views */
.views { flex-direction: column; gap: 32px; }
.views .phone { --w: 300px; }
.views .phone__screen { display: grid; grid-template-rows: auto 1fr; }
.views .phone__status { grid-row: 1; grid-column: 1; }
.views__img { grid-row: 2; grid-column: 1; align-self: start; opacity: 0; transition: opacity .5s var(--ease); }
.views__img.is-on { opacity: 1; }
/* A caption-like tab row (not a second copy of the app's own control), with a pause button. */
.seg__row { display: flex; align-items: center; gap: 6px; }
.seg { position: relative; display: inline-grid; grid-template-columns: repeat(3, auto); padding: 0 0 6px; background: none; }
.seg__btn { position: relative; z-index: 1; min-height: 44px; padding: 0 14px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--muted); transition: color .25s var(--ease); }
.seg__btn[aria-pressed="true"] { color: var(--ink); }
.seg__btn:focus-visible { outline-offset: -2px; }
.seg__thumb { position: absolute; bottom: 0; left: 0; width: 0; height: 2px; overflow: hidden; border-radius: 1px; background: rgba(163, 54, 90, .22); transition: transform .4s var(--ease-out), width .4s var(--ease-out); }
.seg__timer { position: absolute; inset: 0; background: var(--accent); transform-origin: left center; }
.seg.is-auto .seg__timer { animation: seg-fill 3.2s linear both; }
@keyframes seg-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.seg__play { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; margin-bottom: 6px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.seg__play[hidden] { display: none; }
.seg__play:hover { color: var(--ink); background: rgba(42, 28, 24, .06); }
.seg__icon { display: block; width: 11px; height: 13px; background: linear-gradient(currentColor, currentColor) left / 3.5px 100% no-repeat, linear-gradient(currentColor, currentColor) right / 3.5px 100% no-repeat; }
.seg__play[aria-pressed="true"] .seg__icon { width: 12px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* S6: Blueprint sheets */
.bp { position: relative; max-width: 1040px; margin: clamp(56px, 7vw, 96px) auto 0; }
.bp__stage { position: relative; padding-bottom: 40px; }   /* the sheets and, on wider screens, the email phone pinned to them */
.bp__stack { position: relative; width: min(500px, 62%); margin: 0 auto; perspective: 2200px; }
.bp__sheet { width: 100%; border-radius: 3px; background: #fff; box-shadow: 0 1px 2px rgba(42, 28, 24, .12), 0 30px 60px -28px rgba(42, 28, 24, .45), 0 12px 24px -16px rgba(42, 28, 24, .22); }
.bp__sheet--back { position: absolute; inset: 0; transform: translate(-17%, 5%) rotate(-6deg); filter: brightness(.985); }
.bp__front { position: relative; transform-origin: 50% 100%; transform: translateY(var(--bp-y, 0)) rotateX(var(--bp-rx, 0deg)) rotate(1.5deg); }
/* Sheet labels: in the margin right of the sheet, each with a leader line across blank paper to a dot on
   what it names, so nothing on the sheet is covered. The email phone sits bottom left, clear of them. */
.tag { position: absolute; left: var(--tx); top: var(--ty); right: -30px; height: 1px; background: rgba(42, 28, 24, .42); pointer-events: none; }
.tag::before { content: ""; position: absolute; left: -4.5px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px #fff; }
.tag__t { position: absolute; left: 100%; top: 0; transform: translateY(-50%); padding: 7px 14px; border-radius: 999px; background: var(--ink); color: #f8f4ee; font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; box-shadow: 0 8px 20px -8px rgba(42, 28, 24, .5); }
.bp__key { display: none; }
.bp__phone { position: absolute; left: -24px; bottom: -32px; --w: 210px; transform: rotate(-3deg); }
.bp__foot { margin-top: clamp(56px, 7vw, 96px); }
.bp__close { margin-top: clamp(64px, 8vw, 112px); font-size: clamp(36px, 4.4vw, 64px); text-align: center; }
.aside { margin: 24px auto 0; max-width: 36em; text-align: center; font-size: 15px; color: var(--muted); text-wrap: pretty; }

/* S7: trio */
.trio { display: flex; justify-content: center; align-items: flex-start; gap: clamp(20px, 3.4vw, 48px); margin-top: clamp(56px, 7vw, 96px); }
.trio__item, .looks__item { display: grid; justify-items: center; gap: 22px; }
.trio .phone, .looks .phone { --w: clamp(220px, 23vw, 290px); }
.trio__item--mid { margin-top: 56px; }
.trio figcaption, .looks figcaption { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
.rules { margin-top: clamp(56px, 7vw, 88px); }

/* S8: looks */
.looks { display: flex; justify-content: center; align-items: flex-end; gap: clamp(20px, 3.4vw, 48px); margin-top: clamp(56px, 7vw, 96px); }
.looks__item--mid .phone { --w: clamp(240px, 25vw, 320px); }
.looks figcaption i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.soon-line { margin-top: 28px; text-align: center; font-size: 15px; color: var(--muted); }
.soon { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); box-shadow: inset 0 0 0 1px currentColor; vertical-align: 1px; }

/* ================= S9. Numbers ================= */
.nums { background: var(--cocoa); color: var(--on-cocoa); padding: clamp(96px, 12vw, 168px) 0 clamp(72px, 9vw, 120px); }
.nums__title { font-size: 19px; font-weight: 600; color: #f2a7bd; letter-spacing: -.01em; }
.nums__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 48px; margin-top: 48px; }
.nums__grid > div { padding-top: 24px; border-top: 1px solid rgba(245, 237, 228, .16); }
.nums dt { display: flex; flex-direction: column; justify-content: flex-end; font-size: clamp(56px, 5.6vw, 84px); line-height: 1; letter-spacing: -.035em; white-space: nowrap; }
.nums__grid > div:nth-child(-n+3) dt { min-height: calc(1em + 29px); }   /* room for "About" across the first row */
.nums__pre { display: block; margin-bottom: 6px; font: 600 19px/1.2 var(--b-font); letter-spacing: 0; color: var(--on-cocoa-muted); }
.nums dd { margin-top: 14px; max-width: 18em; font-size: 17px; line-height: 1.45; color: var(--on-cocoa-muted); }
.fn { display: inline-block; min-width: 28px; padding: 8px 6px; margin: -8px -4px -8px -2px; text-align: center; color: #f2a7bd; text-decoration: none; font-weight: 600; }
.nums__notes { margin-top: 72px; display: grid; gap: 8px; max-width: 62em; font-size: 13px; line-height: 1.5; color: var(--on-cocoa-muted); }
.nums :focus-visible { outline-color: #f2a7bd; }

/* ================= S10. Steps ================= */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: clamp(56px, 7vw, 96px); }
.steps li { padding-top: 28px; border-top: 1px solid var(--line-strong); }
.steps__n { display: block; font-size: clamp(72px, 8vw, 120px); line-height: .9; color: var(--accent); letter-spacing: -.04em; }
.steps__t { margin-top: 28px; font-family: var(--d-font); font-weight: 600; font-size: 28px; letter-spacing: -.02em; line-height: 1.15; }
.steps p { margin-top: 12px; font-size: 17px; color: var(--muted); text-wrap: pretty; }
.steps__line { margin: clamp(56px, 6vw, 80px) auto 28px; max-width: 34em; font-size: 19px; color: var(--muted); text-wrap: pretty; }

/* ================= S11. Founding ================= */
.found { padding: clamp(48px, 7vw, 96px) clamp(24px, 7vw, 96px); }
.found__cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 64px; margin-top: 56px; }
.found__h { font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.found .ticks { margin-top: 16px; padding-top: 20px; }
.found__cta { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }

/* ================= S12. Pricing ================= */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(56px, 7vw, 88px); }
.plan { display: flex; flex-direction: column; padding: 40px 32px 32px; border-radius: 28px; background: var(--tile); }
.plan__name { font-size: 30px; }
.plan__price { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.plan__price .display { font-size: clamp(40px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -.03em; }
.plan__per { font-size: 17px; color: var(--muted); }
.plan__fee { margin-top: 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
.plan__for { margin-top: 8px; color: var(--muted); }
.plan__rows { margin: 28px 0 32px; border-top: 1px solid var(--line); flex: 1; }
.plan__rows > div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.plan__rows dt { font-size: 14px; color: var(--muted); }
.plan__rows dd { font-weight: 600; overflow-wrap: anywhere; }
.incl { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px 64px; margin-top: clamp(64px, 8vw, 104px); }
.incl__h { font-family: var(--d-font); font-weight: 600; font-size: 30px; letter-spacing: -.02em; line-height: 1.15; }
.incl .ticks { margin-top: 20px; }
.ticks--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.fees { margin-top: 20px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.fees li { font-size: 17px; line-height: 1.45; }
.fees a { color: var(--accent); }

/* ================= S13. FAQ ================= */
.faq { max-width: calc(880px + 2 * var(--gutter)); }
.faq__title { margin-bottom: 40px; text-align: center; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 44px; padding: 26px 0; font-size: 21px; font-weight: 600; letter-spacing: -.016em; line-height: 1.3; border-radius: 6px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 16px; height: 16px; background: linear-gradient(currentColor, currentColor) center / 16px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 16px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
/* Open: the question's box ends 10 px under it and the answer starts 8 px further down, so the focus ring
   (3 px out, 2.5 px wide) runs in the gap between them and never through the answer's first line. */
.faq details[open] summary { padding-bottom: 10px; }
.faq details p { margin: 8px 0 28px; max-width: 42em; font-size: 18px; line-height: 1.55; color: var(--muted); }

/* ================= S14. Final ================= */
.final { padding: clamp(48px, 6vw, 80px) 0 clamp(112px, 14vw, 200px); text-align: center; background: #f5f1eb; }
/* The story's red cake facing front (final/d/f096.webp, transparent round the cake); the frame's empty top and
   bottom are cropped off: it shows 7.2%-95.8% of the frame's height (the cake and its shadow are 7.8%-95.6%). */
.final__cake { width: min(430px, 86%); aspect-ratio: 1 / .886; object-fit: cover; object-position: 50% 63%; margin: 0 auto 8px; }
.final__h { font-size: clamp(40px, 5.2vw, 76px); letter-spacing: -.032em; max-width: 11em; margin: 0 auto; text-wrap: balance; }
.final .lede { margin: 24px auto 40px; max-width: 30em; }

/* ================= S15. Footer ================= */
.foot { border-top: 1px solid var(--line); padding: 56px 0 72px; font-size: 14px; color: var(--muted); }
.foot__in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; }
.foot__brand img { height: 22px; width: auto; }
.foot__brand p { margin-top: 14px; max-width: 24em; }
.foot__links { display: grid; gap: 2px; align-content: start; }
.foot__links a { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; color: var(--ink); text-decoration: none; }
.foot__links li { display: flex; align-items: center; gap: 6px; }
.foot__links a:hover { text-decoration: underline; }
.foot__legal { display: grid; gap: 8px; align-content: start; padding-top: 12px; }

/* ================= Phone sticky bar ================= */
.mbar { display: none; }

/* ================= Reveal (subtle) ================= */
@media (prefers-reduced-motion: no-preference) {
  html.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
  html.js .rv.is-in { opacity: 1; transform: none; }
}

/* ================= Responsive ================= */
@media (max-width: 1100px) {
  .bp__phone { left: 0; bottom: -24px; }
  .tile__copy { padding: 72px 32px 72px 56px; }
  .tile--flip .tile__copy { padding: 72px 56px 72px 32px; }
  .duo .phone--front { --w: 250px; }
  .duo .phone--back { --w: 214px; }
  .views .phone { --w: 260px; }
}

/* Short laptop windows (wider than a phone, 800 px tall or less): the opening sits a little tighter, so the first
   cake comes back up to about where the approved story preview had it (its opening had no pill above the headline).
   The words are unchanged; story.js puts the cake under the opening's measured height, so it follows. */
@media (min-width: 761px) and (max-height: 800px) {
  html.st-on .st__hero { top: calc(var(--nav-h) + 8px); }
  html.st-on .st__hero .h1 { margin-top: 12px; font-size: min(var(--h1), 10.5vh); }
  html.st-on .st__hero .st__lede { margin-top: 14px; }
  html.st-on .st__hero .ctas { margin-top: 20px; }
}

/* No room in the margin: numbered markers on blank paper beside each part, keyed under the sheets. */
@media (max-width: 1023px) {
  .tag { left: var(--mx); top: var(--my); right: auto; width: 0; height: 0; background: none; }
  .tag::before { content: attr(data-n); content: attr(data-n) / ""; left: 0; top: 0; width: 22px; height: 22px; display: grid; place-items: center; transform: translate(-50%, -50%); color: #f8f4ee; font-size: 12px; font-weight: 600; line-height: 1; box-shadow: 0 0 0 2px #fff, 0 4px 10px -4px rgba(42, 28, 24, .5); }
  .tag__t { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; box-shadow: none; }
  .bp__key { counter-reset: key; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 36px auto 0; max-width: 34em; font-size: 15px; font-weight: 600; color: var(--ink); }
  .bp__key li { counter-increment: key; display: inline-flex; align-items: center; gap: 8px; }
  .bp__key li::before { content: counter(key); display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #f8f4ee; font-size: 12px; line-height: 1; }
  .bp__phone { left: auto; right: 0; --w: 160px; transform: rotate(3deg); }   /* beside the sheet, not on it */
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .bp__stack { width: 58%; margin-left: 17%; }
  .bp__sheet--back { transform: translate(-24%, 4%) rotate(-5deg); }
  .tile--split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .tile__copy, .tile--flip .tile__copy { order: 0; padding: 56px 32px 8px; }
  .tile__art { padding: 48px 24px 64px; }
  .duo { min-height: 600px; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-left: auto; margin-right: auto; }
  .incl { grid-template-columns: minmax(0, 1fr); }
  .nums__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nums__grid > div:nth-child(3) dt { min-height: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 40px; max-width: 560px; margin-left: auto; margin-right: auto; }
  .foot__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav__in { gap: 10px; }
  .nav__logo img { height: 19px; }
  .nav__cta { min-height: 44px; padding: 0 14px; font-size: 14px; }
  .nav__toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; border-radius: 10px; cursor: pointer; }
  .nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 18px; height: 1.5px; border-radius: 1px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
  .nav__bars { position: relative; }
  .nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
  .nav__bars::before { top: -6px; }
  .nav__bars::after { top: 6px; }
  .nav.is-open .nav__bars { background: transparent; }
  .nav.is-open .nav__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav.is-open .nav__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav__menu { position: absolute; left: 0; right: 0; top: var(--nav-h); padding: 8px var(--gutter) 24px; background: rgba(245, 241, 235, .97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 1px 0 var(--line), 0 24px 40px -24px rgba(42, 28, 24, .25); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
  .nav.is-open { background: rgba(245, 241, 235, .97); }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__menu ul { flex-direction: column; gap: 0; }
  .nav__menu li + li { border-top: 1px solid var(--line); }
  .nav__menu a { display: flex; min-height: 56px; font-size: 21px; font-weight: 600; color: var(--ink); letter-spacing: -.015em; }
  /* No JavaScript: no menu button; the four links sit in a row under the logo. */
  html:not(.js) .nav { position: absolute; height: auto; }
  html:not(.js) .nav__in { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 4px; }
  html:not(.js) .nav__toggle { display: none; }
  html:not(.js) .nav__menu { order: 3; flex-basis: 100%; position: static; padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; opacity: 1; visibility: visible; transform: none; }
  html:not(.js) .nav__menu ul { flex-direction: row; flex-wrap: wrap; gap: 0 20px; }
  html:not(.js) .nav__menu li + li { border-top: 0; }
  html:not(.js) .nav__menu a { min-height: 44px; font-size: 16px; }
}

@media (max-width: 760px) {
  :root { --nav-h: 56px; --gutter: 20px; }
  /* Focus never hides under the bottom bar, while it shows. Not before: on short phones the opening's own buttons sit
     in that band, and keeping them clear of it would scroll the story on and fade them out as they take focus. */
  html.mbar-on { scroll-padding-bottom: calc(68px + 16px + env(safe-area-inset-bottom)); }
  body { font-size: 17px; }
  html.mbar-on .nav__cta { opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility 0s .25s; }

  .eyebrow { font-size: 17px; margin-bottom: 12px; }
  .lede { font-size: 18px; }
  .body { font-size: 17px; }
  .pill { max-width: 100%; font-size: 14px; line-height: 20px; padding: 7px 16px; border-radius: 22px; text-wrap: balance; }
  .ctas { gap: 4px 24px; margin-top: 26px; }
  .link { font-size: 17px; }
  .st__h { font-size: 27px; }
  .st__p { margin-top: 10px; font-size: 16px; }
  .st__key, html.st-on .st__key.is-on { font-size: 14px; gap: 6px 14px; margin-top: 12px; }
  .still__beat { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .still__key { justify-items: center; }
  .still__bp { grid-template-columns: minmax(0, 1fr); gap: 20px; width: min(100%, 420px); margin: 0 auto; }
  .still__beat--row { gap: 20px; }
  .still__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .still__row--3 { grid-template-columns: minmax(0, 1fr); width: min(100%, 320px); margin: 0 auto; gap: 4px; }

  .tile { border-radius: 28px; }
  .tile__copy, .tile--flip .tile__copy { padding: 44px 24px 0; }
  .tile__art { padding: 40px 16px 48px; }
  .duo { min-height: 520px; }
  .duo .phone--front { --w: 214px; transform: translateX(20%); }
  .duo .phone--back { --w: 168px; transform: translate(-40%, -5%) rotate(-4deg); }
  .views .phone { --w: 248px; }
  .seg__btn { padding: 0 14px; font-size: 14px; }
  .ticks { margin-top: 28px; padding-top: 22px; }
  .ticks--grid, .ticks--cols { grid-template-columns: minmax(0, 1fr); }

  /* The back sheet's rotated corner stays on screen (about 18 px in) at every width up to 760 px. */
  .bp__sheet--back { transform: translate(-11%, 4%) rotate(-5deg); }
  /* Phones: the email picture follows the numbered key, centred under the sheets (the stage steps aside so the order is stack, key, phone). */
  .bp { display: flex; flex-direction: column; padding-bottom: 40px; }
  .bp__stage { display: contents; }
  .bp__stack { margin-bottom: 40px; }   /* the stage's 40 px of bottom room, kept: the back sheet's corner hangs below the stack */
  .bp__key { order: 1; width: 100%; }
  .bp__phone { order: 2; position: relative; left: auto; right: auto; bottom: auto; --w: min(58vw, 250px); margin: 40px auto 0; transform: none; }
  .bp__stack { width: 84%; margin-left: 14%; }
  .final__h { font-size: 34px; }

  .trio { position: relative; height: calc(var(--pw) * 2.26 + 44px); --pw: 172px; gap: 0; }
  .trio .phone { --w: var(--pw); }
  .trio__item { position: absolute; top: 24px; }
  .trio__item:first-child { transform: translateX(-62%) scale(.86); transform-origin: 50% 0; }
  .trio__item:last-child { transform: translateX(62%) scale(.86); transform-origin: 50% 0; }
  .trio__item--mid { z-index: 2; margin-top: 0; top: 0; }
  .trio__item:not(.trio__item--mid) figcaption { visibility: hidden; }
  .looks { position: relative; height: calc(var(--pw) * 2.26 + 48px); --pw: 176px; gap: 0; align-items: flex-start; }
  .looks .phone, .looks__item--mid .phone { --w: var(--pw); }
  .looks__item { position: absolute; top: 18px; }
  .looks__item:first-child { transform: translateX(-60%) scale(.84); transform-origin: 50% 0; }
  .looks__item:last-child { transform: translateX(60%) scale(.84); transform-origin: 50% 0; }
  .looks__item--mid { z-index: 2; top: 0; }
  .looks__item:not(.looks__item--mid) figcaption { visibility: hidden; }

  .nums__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; margin-top: 32px; }
  .nums__grid > div:nth-child(-n+2) { grid-column: 1 / -1; }
  .nums dt, .nums__grid > div:nth-child(-n+3) dt { min-height: 0; font-size: 52px; }
  .nums__notes { margin-top: 48px; }
  .found__cols { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .found__cta .btn { width: 100%; }
  .plan { padding: 32px 24px 24px; }
  .incl__h { font-size: 26px; }
  .faq summary { font-size: 19px; padding: 22px 0; }
  .faq details[open] summary { padding-bottom: 10px; }
  .faq details p { font-size: 17px; }
  .final .btn { width: 100%; }
  .foot { padding-bottom: 120px; }
  .foot__in { grid-template-columns: minmax(0, 1fr); }

  .mbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px max(var(--gutter), env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left)); background: rgba(245, 241, 235, .9); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 -1px 0 var(--line); transform: translateY(110%); visibility: hidden; transition: transform .4s var(--ease-out), visibility 0s .4s; }
  .mbar.is-on { transform: none; visibility: visible; transition-delay: 0s; }
  .mbar .btn { min-height: 48px; }
}

/* Short phones (700 px tall or less): the opening sits a little tighter, so more of the first cake shows under it.
   The words are unchanged; story.js puts the cake under the opening's measured height. */
@media (max-width: 760px) and (max-height: 700px) {
  html.st-on .st__hero { top: calc(var(--nav-h) + 12px); }
  html.st-on .st__hero .h1, html.st-on .st__hero .st__lede { margin-top: 12px; }
  html.st-on .st__hero .ctas { margin-top: 16px; gap: 0 24px; }
}

@media (max-width: 380px) {
  .nav__logo img { height: 17px; }
  .nav__cta { padding: 0 12px; font-size: 13px; }
  .trio { --pw: 150px; }
  .looks { --pw: 154px; }
  /* S5: the three picture tabs and the pause button stay on one line ("From above" no longer breaks in two). */
  .seg__row { gap: 0; }
}

@media (max-width: 359px) {
  .nav__cta { display: none; }
  .seg__btn { padding: 0 8px; }   /* site.js reads the padding to place the underline */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
