/* J.Doe waitlist · page styles. Implements Claude Design "J.Doe Waitlist v7.1".
   Order: base → web DS components (nav, controls, waitlist) → v7.1 sections → story stage
   (product DS mockups under [data-pds]) → join dialog. Values follow the design file. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Page motion scale and section rhythm (after the Calendly review, 2026-10-08): four durations, two curves,
   one section padding. Outside the scale on purpose: the hero headline (timings agreed with the design file),
   the product-DS mockups (their own --motion-* / --ease-move / --ease-settle in tokens.css), 80ms press
   feedback, looping spinners and choreography delays/staggers. */
:root {
  --dur-1: 160ms;  /* state: hover, colour, quick text swaps */
  --dur-2: 300ms;  /* crossfades, panel and slide changes */
  --dur-3: 500ms;  /* movement and size */
  --dur-4: 700ms;  /* entrances */
  --dur-press: 80ms;
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
  --ease-emphasized: cubic-bezier(.16, 1, .3, 1);
  --r-ui-base: 44.8px; --r-ui: calc(var(--r-ui-base) * var(--k-se)); /* every UI card on the page (2026-10-10; 28 → 32 on 2026-10-11, the Mac three-column card radius-md; 48 → 44.8, app 30 → 28 pt on 2026-11-02, the user: 稍微缩小): one radius, with the cards' superellipse(2) corner — the DS cards (56px), the session (32px) and the role modules (24px) used to differ */
  --ease-grow: cubic-bezier(.45, .1, .2, 1); --dur-grow: 800ms; /* connected modules, fitted to Calendly's AI-assistant cards frame by frame (2026-10-10): a soft start, a long settle; 780 → 640ms on 2026-10-11 when it trailed the scroll, back to 800ms the same day once the steps play on their own clock (the user: slower) */
  --pad-card: 16px; /* every white card's inner padding, on all four sides (2026-11-01, the user; was 20) */
  --grow-pace: 1; /* what a card holds keeps its share of the growth: its delays and durations scale with --dur-grow (.story[data-scroll]) */
  --dur-fold: 420ms; /* folding back (2026-10-11): shell, bridge and height on this one step, the shell fading over 160ms just before it closes, so a
                        bridge never hangs below a card that has already gone and the stage never stands empty while chapters close */
  --ease-ambient: cubic-bezier(.5, 0, .5, 1); /* backgrounds only: slow, symmetric (Calendly's hero backdrop) */
  --section-pad: clamp(64px, 8vw, 120px);
  --section-gap: clamp(96px, 18.75vw, 240px); /* the gap between neighbouring sections, Calendly's (2026-10-12, the user; measured on calendly.com's feature sections: 96 at 390, 192 at 1024, 240 at 1440 — was clamp(88px, 11vw, 160px)) */
  --fs-section: clamp(36px, calc(32px + 2vw), 64px); /* section titles, one step up (2026-10-09; ≈61px at 1440, Calendly's H2 is 60) */
  --fs-chapter: clamp(36px, calc(26px + 1.55vw), 48px); /* titles of the two pinned sections, in their 532px column: Calendly's feature-list H2 is 48px (2026-10-10) */
  --fw-heading: 500; /* serif headings one step up from Regular (Family Medium; system serif fallbacks have no 500 and stay Regular) */
}
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
/* touch screens: the hero film's full size holds a swipe (main.js initHeroReel, placeMarks; 2026-11-07, the user) */
html[data-hero-snap] { scroll-snap-type: y mandatory; }
html[data-hero-snap] body { touch-action: pan-x pinch-zoom; }
.hero-snap { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; scroll-snap-align: start; }
.hero-snap[data-stop] { scroll-snap-stop: always; }
body {
  margin: 0;
  background: var(--paper-100);
  color: var(--ink-800);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--ink-800); text-underline-offset: 3px; }
a:hover { color: var(--ink-600); }
:focus-visible { outline: 2px solid var(--interaction-focus); outline-offset: 3px; }
main:focus { outline: none; } /* skip-link / “Back to the beginning” target, not a control */
::selection { background: var(--interaction-selection); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.serif { font-family: var(--font-serif); font-weight: 400; }
.eyebrow { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0; color: var(--ink-800); } /* a label in ink, like Calendly's; sentence case at 14px since 2026-10-20 (the user, after the taste review: was 12px tracked capitals) */
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 300;
  padding: 12px 16px; border-radius: 999px;
  background: var(--ink-950); color: #FFFFFF; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #FFFFFF; }

html:not([data-preview]) [data-preview-only], html[data-preview] [data-live-only] { display: none !important; }

/* ---------- web DS: controls ---------- */
.jw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: 48px; padding: 0 24px; border: 0; border-radius: var(--radius-pill);
  font: 600 15px/20px var(--font-ui); letter-spacing: -0.005em; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--motion-in), box-shadow var(--motion-in), color var(--motion-in), transform var(--dur-press) var(--ease-standard);
  -webkit-tap-highlight-color: transparent;
}
.jw-btn:active { transform: scale(0.97); }
.jw-btn:focus-visible { outline: 2px solid var(--interaction-focus); outline-offset: 3px; }
main:focus { outline: none; } /* skip-link / “Back to the beginning” target, not a control */
.jw-btn--primary { background: var(--accent); color: var(--on-accent); }
.jw-btn--primary:hover { background: var(--accent-hover); }
.jw-btn--primary:active { background: var(--accent-press); }
.jw-btn--quiet { background: transparent; color: var(--text-2); padding-inline: 12px; }
.jw-btn--quiet:hover { color: var(--text); background: var(--ink-a-04); }
/* nav invite: a solid ink button, like the sign-up CTA (2026-10-09) */
/* the nav's call to action (2026-10-11): "Join the beta", the hero's own action, opening the sign-up dialog (its
   "Have an invite code?" link reaches the invite path). On the first screen the hero capsule already offers it, so the
   nav shows it only once it floats (see .site-nav[data-float]). */
.site-nav__cta { padding-inline: 18px; color: var(--paper-50); background: var(--ink-950); }
.site-nav__cta:hover { color: var(--paper-50); background: var(--ink-700); }
.site-nav:not([data-float]) .site-nav__cta { display: none; }
.jw-btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.jw-btn:disabled { cursor: default; transform: none; }
.jw-btn--primary:disabled { background: var(--ink-700); }

.jw-input {
  display: block; width: 100%; height: 48px; padding: 0 20px; border: 0;
  border-radius: var(--radius-pill); background: var(--control-fill);
  box-shadow: inset 0 0 0 1px var(--rule);
  font: 400 16px/24px var(--font-ui); color: var(--text); outline: none;
  transition: box-shadow var(--motion-in);
  -webkit-appearance: none; appearance: none;
}
.jw-input::placeholder { color: var(--text-placeholder); }
.jw-input:read-only { color: var(--text-2); }

.jw-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 900ms linear infinite; flex: none; }

/* ---------- hero waitlist capsule ----------
   v7.1 (2026-10-08): the field uses the nav's Liquid Glass pill (.lg .lg-pill-lg, opacity .3);
   while typing its rim darkens from 22% to 50% black; the CTA is always ink with white text.
   The error line keeps a 20px slot so the layout does not jump. */
/* 2026-10-09 (after cosmos.so's search bar): the liquid-glass capsule is a track holding two separate parts — a white
   pill for the email and the ink CTA beside it. Focus darkens the white pill's rim; an error turns it red. */
/* Fluid with the screen (2026-10-12, the user: the capsule was the one thing that did not scale): every size runs
   linearly from the phone values at 390 to the desktop ones at ~1280, as the titles do, instead of one jump at 479.
   The width follows the hero title (≈ 6 em of it), so the capsule never runs wider than the title above it. */
.jw-waitlist { position: relative; width: 100%; max-width: clamp(300px, calc(206px + 24.2vw), 560px); margin-inline: auto; display: flex; flex-direction: column; gap: 8px;
  --cap-h: clamp(48px, calc(44.5px + .9vw), 56px); --cap-pad: clamp(4px, calc(2.25px + .45vw), 8px); }
.jw-waitlist__field { display: flex; align-items: center; gap: var(--cap-pad); padding: var(--cap-pad); border-radius: 999px; } /* one step up (2026-10-09): track 72px, parts 56px — now 56/48 on phones to 72/56 */
.jw-waitlist__field .jw-input {
  flex: 1; min-width: 0; height: var(--cap-h); padding: 0 clamp(12px, calc(6.7px + 1.35vw), 24px); border: 0; border-radius: 999px;
  background: var(--paper-50); box-shadow: inset 0 0 0 .5px var(--ink-a-10); outline: none;
  font: 400 clamp(14px, calc(12.7px + .34vw), 17px)/24px var(--font-ui); color: var(--ink-800);
  transition: box-shadow var(--dur-1) var(--ease-standard);
}
.jw-waitlist__field .jw-input:focus { box-shadow: var(--focus-field); }
.jw-waitlist[data-state="error"] .jw-waitlist__field .jw-input { box-shadow: inset 0 0 0 1.5px var(--danger); }
.jw-waitlist__btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--cap-h); min-height: var(--cap-h); padding: 0 clamp(12px, calc(5.9px + 1.57vw), 26px); border: 0; border-radius: 99px; white-space: nowrap;
  background: var(--ink-950); color: var(--paper-50); font-size: clamp(13px, calc(11.25px + .45vw), 17px); line-height: 24px; font-weight: 600; box-shadow: none;
  transition: background-color var(--dur-1) var(--ease-standard), color var(--dur-1) var(--ease-standard);
}
.jw-waitlist__btn:hover { background: var(--ink-700); }
.jw-waitlist__btn:active { background: var(--ink-950); transform: scale(0.97); }
/* the first screen's and the closing's two actions (2026-10-14, branch next): the invite code as a secondary pill — the white the email
   field had, its hairline and ink text — beside Join the beta, the two sharing the track equally */
/* narrower than the email capsule (2026-10-14, the user). 2026-10-15, the copy doc's longer labels (“I have an invite” /
   “Apply for Software Beta”, now “Apply for App Beta”): the track runs 340 on phones → 460, and each button takes its label's width plus an equal
   share of what is left (they were two equal halves, and the longer label ran out of its half) */
/* The hero and closing capsules get their action geometry from hero-action-group.css. */
/* two by default; signed in with an activation code entered (2026-10-26, the user), one Download for Mac in place of
   the two, and in the floating nav in place of Join the beta. The real build sets html[data-account="active"] from the
   account; the preview sets it when an invite code is used (main.js initJoin) or with ?account=active; phase 1 is
   built in that state (build-static-site.py). The track hugs the one button, its sides 32 → 52 with the label's own
   390 → 1280 scale, so it is about as wide as the Apply button it replaces. */
/* 2026-11-10 (the user, both apps this round): once activated, Get for iPhone and Get for Mac side by side, the highlighted one
   always on the right: the Mac's on a desktop, the iPhone's on a phone or tablet (main.js initDownloadOrder); the
   floating nav's one Get J.Doe takes you to the first screen's two. */
html:not([data-account="active"]) :is(.jw-waitlist--actions, .site-nav__actions) :is([data-download-mac], [data-download-iphone]),
html:not([data-beta-connected], [data-account="active"]) .site-nav__actions [data-get-jdoe],
html[data-account="active"] :is(.jw-waitlist--actions, .site-nav__actions) [data-open-join] { display: none; }
/* the two downloads take the track exactly as the two actions before activation do (its width, the buttons' own padding
   and share); only a lone Download for Mac (no iPhone address) hugs its one button as before (2026-11-10, the user:
   the two fit phones) */
html[data-account="active"] .jw-waitlist--actions:not(:has([data-download-iphone])) { width: fit-content; }
.jw-waitlist--actions:not(:has([data-download-iphone])) [data-download-mac] { padding-inline: clamp(28px, calc(22.7px + 1.35vw), 40px); } /* 32 → 52 before the apple: with it the button stays about the Apply button's width */
/* The primary capsule catches a single soft glint on hover; the label and Apple mark stay still. */
:is(.jw-waitlist__btn.jw-btn--primary:is([data-download-mac], [data-download-iphone], [data-beta-action]), .site-nav__cta[data-get-jdoe]) {
  position: relative; isolation: isolate; overflow: hidden;
  transition: background-color var(--dur-1) var(--ease-standard), color var(--dur-1) var(--ease-standard), transform 180ms cubic-bezier(.2,.7,.2,1);
}
:is(.jw-waitlist__btn.jw-btn--primary:is([data-download-mac], [data-download-iphone], [data-beta-action]), .site-nav__cta[data-get-jdoe]):hover { color: var(--paper-50); background: #090909; }
:is(.jw-waitlist__btn.jw-btn--primary:is([data-download-mac], [data-download-iphone], [data-beta-action]), .site-nav__cta[data-get-jdoe]):active { background: #050505; transform: scale(.985); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.jw-waitlist__btn.jw-btn--primary:is([data-download-mac], [data-download-iphone], [data-beta-action]), .site-nav__cta[data-get-jdoe])::after {
    content: ""; position: absolute; inset: -50% -65%; pointer-events: none; opacity: 0;
    background: linear-gradient(110deg, transparent 36%, rgb(255 255 255 / .1936) 49%, transparent 62%);
    transform: translateX(-45%);
  }
  :is(.jw-waitlist__btn.jw-btn--primary:is([data-download-mac], [data-download-iphone], [data-beta-action]), .site-nav__cta[data-get-jdoe]):hover::after { animation: download-glint 1200ms cubic-bezier(.37,0,.63,1) both, download-glint-fade 1200ms ease-in-out both; }
  @keyframes download-glint {
    from { transform: translateX(-45%); }
    to { transform: translateX(45%); }
  }
  @keyframes download-glint-fade {
    0%, 100% { opacity: 0; }
    20%, 75% { opacity: .75; }
  }
}
@media (prefers-reduced-motion: reduce) { :is(.jw-waitlist__btn.jw-btn--primary:is([data-download-mac], [data-download-iphone], [data-beta-action]), .site-nav__cta[data-get-jdoe]) { transition: background-color var(--dur-1) var(--ease-standard); } :is(.jw-waitlist__btn.jw-btn--primary:is([data-download-mac], [data-download-iphone], [data-beta-action]), .site-nav__cta[data-get-jdoe]):active { transform: none; } }
/* the apple before the label (2026-10-26, the user): the join dialog's mark, about 1.15 × the label, raised a touch as there */
:is([data-download-mac], [data-download-iphone]) { gap: .4em; }
/* the two downloads read 14 on phones (2026-11-10, the user; the actions before activation stay 13); the same 17 from 1278px */
.jw-waitlist--actions .jw-waitlist__btn:is([data-download-mac], [data-download-iphone]) { font-size: clamp(var(--fs-w-small), calc(11.25px + .45vw), 17px); }
.jw-btn__apple { flex: none; width: 1.15em; height: 1.15em; margin-top: -.12em; fill: currentColor; }
.jw-waitlist__btn.jw-btn--secondary { background: var(--paper-50); color: var(--ink-800); box-shadow: inset 0 0 0 .5px var(--ink-a-10); }
.jw-waitlist__btn.jw-btn--secondary:hover { background: linear-gradient(var(--state-hover), var(--state-hover)) var(--paper-50); }
.jw-waitlist__btn.jw-btn--secondary:active { background: linear-gradient(var(--ink-a-06), var(--ink-a-06)) var(--paper-50); }
.jw-waitlist__busy { display: none; align-items: center; gap: var(--space-2); }
/* v7.1 (2026-10-08): the design dropped the visible error line; the red ring carries the error and
   the message stays in the DOM, visually hidden, so screen readers still announce it (role="alert"). */
.jw-waitlist__msg { margin: 0; font: 400 14px/20px var(--font-ui); color: var(--danger); text-align: center; }
.jw-waitlist[data-state="loading"] .jw-waitlist__label { display: none; }
.jw-waitlist[data-state="loading"] .jw-waitlist__busy { display: inline-flex; }
.jw-waitlist[data-state="loading"] .jw-waitlist__btn { cursor: progress; }

/* ---------- nav ---------- */
/* Two states (2026-10-11): on the first screen the nav rides the page with no capsule (just the lockup, links and invite);
   from the second screen it floats, fixed, in the glass capsule (main.js data-float). It drops in from above and fades in,
   and leaves the same way, quicker (data-leaving), before handing back to the page-top version. */
.site-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 100; height: 72px; padding-top: 16px; }
.site-nav[data-float] { position: fixed; }
/* the motion runs on the capsule itself, never on .site-nav: an opacity/transform animation on an ancestor (and one left
   "in effect" by fill-mode both) makes it the capsule's backdrop root, and the glass would blur nothing behind the page */
.site-nav[data-float] .site-nav__inner { animation: nav-float-in 360ms cubic-bezier(.16, 1, .3, 1) backwards; }
.site-nav[data-float][data-leaving] .site-nav__inner { animation: nav-float-out 220ms cubic-bezier(.4, 0, 1, 1) forwards; }
@keyframes nav-float-in { from { opacity: 0; transform: translateY(-24px); } }
@keyframes nav-float-out { to { opacity: 0; transform: translateY(-16px); } }
.site-nav:not([data-float]) .site-nav__inner.lg { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-nav:not([data-float]) .site-nav__inner.lg::before, .site-nav:not([data-float]) .site-nav__inner.lg::after { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .site-nav[data-float] .site-nav__inner, .site-nav[data-float][data-leaving] .site-nav__inner { animation: none; } }
/* Phones (2026-11-03, the user): the capsule steps up out of the way while the page is read downward and comes back at
   the first move up (main.js data-tucked); it stays while anything in it has focus */
.site-nav[data-float] .site-nav__inner { transition: --nav-dk 280ms var(--ease-standard), translate 320ms cubic-bezier(.22, 1, .36, 1); }
.site-nav[data-float][data-tucked]:not(:focus-within) .site-nav__inner { translate: 0 calc(-100% - 24px); transition-timing-function: var(--ease-standard), cubic-bezier(.4, 0, 1, 1); transition-duration: 280ms, 240ms; }
.site-nav[data-float][data-tucked="quiet"]:not(:focus-within) .site-nav__inner { transition-duration: 0s; } /* outweighs the tuck's own durations above */
@media (prefers-reduced-motion: reduce) { .site-nav[data-float] .site-nav__inner { transition: --nav-dk 280ms var(--ease-standard); } }
/* Over a film or the hardware panel (2026-10-11): while the floating capsule overlaps a video frame or the dark hardware panel (main.js data-on-media) it turns into the
   dark glass of glass.css [data-lg-theme="dark"]. The two recipes are gradients and shadow lists that cannot interpolate,
   so the capsule draws one recipe with every light-only and dark-only alpha weighted by --nav-dk (0 light → 1 dark), a
   registered number that transitions: the body darkens, the white ring, sheen and glows fade, the side shading gives
   way to the dark recipe's end light. Logo, links and the invite follow on their own transitions. */
@property --nav-dk { syntax: "<number>"; inherits: true; initial-value: 0; }
.site-nav__inner { transition: --nav-dk 280ms var(--ease-standard); }
.site-nav[data-float][data-on-media] .site-nav__inner { --nav-dk: 1; }
.site-nav[data-float] .site-nav__inner.lg {
  --nav-lt: calc(1 - var(--nav-dk));
  background:
    linear-gradient(180deg, rgb(255 255 255 / calc(.6 * var(--nav-lt))) 0, rgb(255 255 255 / calc(.2 * var(--nav-lt))) var(--lg-sheen-a), rgb(255 255 255 / 0) var(--lg-sheen-b), rgb(255 255 255 / 0) calc(100% - var(--lg-sheen-b)), rgb(255 255 255 / calc(.15 * var(--nav-lt))) calc(100% - var(--lg-sheen-a)), rgb(255 255 255 / calc(.5 * var(--nav-lt))) 100%),
    rgb(calc(252 - 224 * var(--nav-dk)) calc(251 - 223 * var(--nav-dk)) calc(248 - 218 * var(--nav-dk)) / calc(.3 + .25 * var(--nav-dk)));
  box-shadow:
    inset 0 0 0 .5px rgb(0 0 0 / calc(.22 + .33 * var(--nav-dk))),
    inset 0 0 0 var(--lg-hair) rgb(255 255 255 / calc(.7 * var(--nav-lt))),
    inset 0 var(--lg-line) 0 -.5px rgb(255 255 255 / var(--nav-lt)),
    inset 0 calc(-1 * var(--lg-line)) 0 -.5px rgb(255 255 255 / var(--nav-lt)),
    inset 0 var(--lg-glow-y) var(--lg-glow-blur) -2px rgb(255 255 255 / var(--nav-lt)),
    inset 0 calc(-1 * var(--lg-glow-y)) var(--lg-glow-blur) -2px rgb(255 255 255 / var(--nav-lt)),
    inset 0 var(--lg-shade-y) var(--lg-shade-blur) var(--lg-shade-spread) rgb(0 0 0 / calc(.07 * var(--nav-lt))),
    inset 0 calc(-1 * var(--lg-shade-y)) var(--lg-shade-blur) var(--lg-shade-spread) rgb(0 0 0 / calc(.06 * var(--nav-lt))),
    0 1px 2px rgb(0 0 0 / calc(.06 + .34 * var(--nav-dk))),
    0 calc(3px + 4.5px * var(--nav-dk)) calc(9px + 13.5px * var(--nav-dk)) rgb(0 0 0 / calc(.05 + .4 * var(--nav-dk)));
}
.site-nav[data-float] .site-nav__inner.lg::before {
  background:
    linear-gradient(90deg, rgb(255 255 255 / calc(.14 * var(--nav-dk))), rgb(255 255 255 / calc(.14 * var(--nav-dk))) 6%, rgb(255 255 255 / calc(.1 * var(--nav-dk))) 13%, rgb(255 255 255 / calc(.1 * var(--nav-dk))) 87%, rgb(255 255 255 / calc(.14 * var(--nav-dk))) 94%, rgb(255 255 255 / calc(.14 * var(--nav-dk)))), /* the dark end light at 14% / 10%, as glass.css's dark recipe (2026-10-25, the user: too bright, then broken at .5px) */
    linear-gradient(180deg, rgb(255 255 255 / var(--nav-lt)) 0%, rgb(255 255 255 / calc(.4 * var(--nav-lt))) 15%, rgb(255 255 255 / calc(.1 * var(--nav-lt))) 50%, rgb(255 255 255 / calc(.5 * var(--nav-lt))) 78%, rgb(255 255 255 / var(--nav-lt)) 100%);
}
.site-nav[data-float] .site-nav__inner.lg::after { opacity: var(--nav-lt); }
.site-nav__brand img { transition: filter 280ms var(--ease-standard); }
.site-nav[data-float][data-on-media] .site-nav__brand img { filter: brightness(0) invert(1); } /* the lockup reversed, as in the footer */
.site-nav[data-float][data-on-media] .site-nav__links a { color: rgb(255 255 255 / .72); }
.site-nav[data-float][data-on-media] .site-nav__links a:hover { color: #FFFFFF; background: rgb(255 255 255 / .12); }
.site-nav[data-float][data-on-media] .site-nav__links a:active { background: rgb(255 255 255 / .2); }
.site-nav[data-float][data-on-media] .site-nav__cta { background: #FFFFFF; color: var(--ink-950); } /* a white pill, as on the hardware panel: ink would sink into dark glass */
.site-nav[data-float][data-on-media] .site-nav__cta:hover { background: rgb(255 255 255 / .86); }
/* The inverted download pill keeps its contrast over dark media while sharing the same feedback. */
.site-nav[data-float][data-on-media] .site-nav__cta[data-get-jdoe]:hover { background: #ededed; color: var(--ink-950); }
.site-nav[data-float][data-on-media] .site-nav__cta[data-get-jdoe]:active { background: #e1e1e1; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .site-nav[data-float][data-on-media] .site-nav__cta[data-get-jdoe]::after { background: linear-gradient(110deg, transparent 36%, rgb(0 0 0 / .1452) 49%, transparent 62%); }
}
.site-nav__wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }
.site-nav__inner { width: 100%; max-width: 720px; margin: 0 auto; height: 56px; padding: 0 8px 0 16px; display: flex; align-items: center; gap: 8px; }
.site-nav__brand { display: flex; align-items: center; flex: none; margin-right: auto; padding-block: 10px; text-decoration: none; } /* 44px tap height inside the 56px bar (2026-10-11) */
.site-nav__brand img { display: block; width: 84px; height: auto; }
/* links get the same 40px pill hit area as the invite button, so the three read as one evenly spaced row */
.site-nav__links { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
.site-nav__links a { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: var(--radius-pill); font: 500 14px/20px var(--font-ui); color: var(--text-2); text-decoration: none; transition: background-color var(--dur-1) var(--ease-standard), color var(--dur-1) var(--ease-standard); }
.site-nav__links a:hover { color: var(--text); background: var(--ink-a-04); }
.site-nav__links a:active { background: var(--ink-a-06); }
.site-nav__actions { display: flex; align-items: center; gap: var(--space-2); }
/* nav content needs ~470px (padding 24 + logo 84 + links 190 + invite 148 + gaps), so links show from 520px. At the
   page top the invite is hidden, so phones show the links there too (2026-10-11); the floating capsule keeps lockup +
   invite below 520px. Under 400px the links take 10px sides so the row fits 320px (16 + 84 + 8 + 164 + 8 = 280). */
.site-nav:not([data-float]) .site-nav__links { display: flex; }
@media (min-width: 520px) {
  .site-nav__links { display: flex; }
}
@media (max-width: 399px) { .site-nav__links a { padding: 0 10px; } }
@media (pointer: coarse) { .site-nav__links a { position: relative; } .site-nav__links a::after { content: ""; position: absolute; inset: -2px 0; } } /* touch: the 40px pills take a 44px target, as the step titles (2026-11-03) */

/* ---------- 01 hero ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; background: var(--paper-100); } /* clip, not hidden: hidden makes the hero a scroll container and the film could not stick */
/* the background (2026-10-11: A green valley v2 on trial; A3 before it): a full painting, a clear sky over the title
   group and the land below, so only the foot fades into the page. main.js places it so the land's line (data-line)
   sits just above the sign-up field at every viewport (top + height inline, data-placed); without script it stays one
   viewport tall and bottom-anchored */
.hero__bg { position: absolute; inset: 0 0 auto; z-index: -1; height: max(100svh, 720px); pointer-events: none; }
.hero__bg:not([data-placed]) { visibility: hidden; animation: hero-bg-late 0s 1.5s forwards; } /* until main.js has placed it (at once, from the source's own size): it drew bottom-anchored first and moved, a 0.04 layout shift (2026-10-30 load audit). Without script noscript shows it; if the script never runs (a failed fetch), it shows after 1.5s where it stands */
@keyframes hero-bg-late { to { visibility: visible; } }
.hero__bg:not([data-placed]) { max-height: 100%; } /* the hero clips it, so the foot's fade must end inside (main.js does the same when it places it) */
.hero__bg img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%;
  --hero-foot: linear-gradient(#000 72%, rgb(0 0 0 / 0.972) 74.8%, rgb(0 0 0 / 0.896) 77.6%, rgb(0 0 0 / 0.784) 80.4%, rgb(0 0 0 / 0.648) 83.2%, rgb(0 0 0 / 0.500) 86.0%, rgb(0 0 0 / 0.352) 88.8%, rgb(0 0 0 / 0.216) 91.6%, rgb(0 0 0 / 0.104) 94.4%, rgb(0 0 0 / 0.028) 97.2%, rgb(0 0 0 / 0) 100.0%);
  -webkit-mask: var(--hero-foot) top / 100% var(--hero-foot-height, 100%) no-repeat;
  mask: var(--hero-foot) top / 100% var(--hero-foot-height, 100%) no-repeat;
}
.hero__bg[data-placed] img { object-position: 50% 0; }
/* the phones' portrait painting came out richer than the landscape (measured 2026-10-30: hills .385 saturation to .26, sky
   .061 to .027); until it is re-graded in the brand repo, it is brought down to the landscape's here (the user: CSS first): saturate(.6) puts the hills at .268, the sky at ~.04.
   Same query as its <source>. */
@media (max-aspect-ratio: 4/5) and (max-width: 599px) { .hero__bg img { filter: saturate(.6); } }
/* The foot dissolves progressively (2026-10-23, the user: the straight 12% fade ended on a visible edge, sharp strokes
   right up to it): the alpha above follows a smoothstep over the last 28% instead of a straight line, and two backdrop
   blurs over the same band soften the strokes as they go, 2px from the band's top, 8px over its lower half. */
.hero__bg::before, .hero__bg::after { content: ""; position: absolute; inset: auto 0 calc(100% - var(--hero-foot-height, 100%)); height: calc(var(--hero-foot-height, 100%) * .28); pointer-events: none; }
.hero__bg::before { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); -webkit-mask: linear-gradient(transparent, #000 45%); mask: linear-gradient(transparent, #000 45%); }
.hero__bg::after { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); -webkit-mask: linear-gradient(transparent 35%, #000 85%); mask: linear-gradient(transparent 35%, #000 85%); }
.hero__inner {
  max-width: 1440px; margin: 0 auto;
  padding: calc(72px + clamp(56px, 9vw, 128px)) clamp(20px, 5vw, 64px) clamp(48px, 6vw, 88px);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px;
}
.hero__title { color: var(--text); font-weight: 400; /* one step lighter than the other titles (2026-10-10, trial): at 92px Medium reads heavy */ margin: 0; font-size: clamp(48px, calc(34px + 4vw), 96px); line-height: 1.06; /* 1 → 1.06 (2026-10-10): the two lines carry image chips and read cramped at 1 */ /* one step up on wider screens (2026-10-09); 48px still fits “what’s [chip] next.” at 320px */ letter-spacing: -0.015em; display: flex; flex-direction: column; align-items: center;
  --chip-w: 1.2em; --chip-h: .66em; --chip-r: calc(var(--chip-h) * .42 * var(--k-se)); --chip-drop: .08em; --chip-m: .06em; --space: .25em; /* --space: measured word space, set by main.js */ }

/* Headline motion, after mobbin.com's hero (2026-10-08), in three layers:
   1 · each line rises out of a blur (0.8s, staggered 0.1s);
   2 · after the copy lands, a slot opens after the keyword and an image chip springs in
       (about 1.8:1, superellipse corners, sitting a little below the baseline like mobbin's icons);
   3 · the chip cycles through its images (auto, staggered, paused off-screen; click to advance).
   The real space before each slot keeps the text reading "A sense of what’s next." for
   assistive tech and copy-paste; slots are aria-hidden decoration. */
.hero-line { display: block; margin: -24px; padding: 24px; white-space: nowrap; animation: hero-line-in 800ms ease 400ms backwards; }
.hero-line--2 { animation-delay: 500ms; }
@keyframes hero-line-in { from { opacity: 0; filter: blur(8px); transform: translateY(.25em); } }
.hero-slot { position: relative; display: inline-block; width: 0; height: 0; animation: hero-slot-open 260ms cubic-bezier(.16, 1, .3, 1) var(--delay, 1400ms) both; }
/* the real space sits before the slot, so the chip is offset by --chip-m and the slot adds one
   more space after it: equal gaps on both sides whatever the font's word space is */
@keyframes hero-slot-open { from { width: 0; } to { width: calc(var(--chip-w) + var(--space) + 2 * var(--chip-m)); } }
.hero-slot__inner {
  position: absolute; left: var(--chip-m); bottom: calc(-1 * var(--chip-drop)); width: var(--chip-w); height: var(--chip-h);
  border-radius: var(--chip-r); corner-shape: var(--shape); cursor: pointer;
  animation: hero-slot-in 440ms ease-out calc(var(--delay, 1400ms) + 350ms) both; /* design: 90ms after the 260ms opening ends */
}
@keyframes hero-slot-in {
  0% { opacity: 0; transform: scale(.72); filter: blur(7px); }
  45% { opacity: 1; transform: scale(1.02); filter: blur(0); }
  68% { transform: scale(.995); }
  85% { transform: scale(1.001); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
.hero-slot__layer {
  position: absolute; inset: 0; overflow: hidden; border-radius: var(--chip-r); corner-shape: var(--shape); background: var(--paper-200);
  opacity: 0; filter: blur(7px); transform: scale(.78);
  /* the pop is back (2026-10-13, the user: the slow dissolve of 2026-10-11 was too subtle): the next image springs in from 78%
     out of a blur while the last one shrinks away, 360ms with a 520ms spring on the scale. The cadence: one chip
     every 2.5s, alternating, each every 5s (main.js TURN). */
  transition: opacity 360ms ease, filter 360ms ease, transform 520ms cubic-bezier(.16, 1, .3, 1);
}
.hero-slot__layer.is-active { opacity: 1; filter: blur(0); transform: none; }
.hero-slot__layer img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-slot__layer::after { content: ""; position: absolute; inset: 0; border-radius: inherit; corner-shape: inherit; box-shadow: var(--hairline); pointer-events: none; }
@media (max-width: 479px) { .hero__title { --chip-w: 1.05em; --chip-h: .58em; } }
@media (max-width: 359px) { .hero__title { --chip-w: .9em; --chip-h: .5em; font-size: 13.2vw; } } /* the narrowest phones (2026-11-03): “what’s [chip] next.” ran 326px wide at 48px, past a 320 screen; with the type to the width (42px at 320, 47px at 359) it keeps the 16px edges */
/* a phone turned sideways (2026-11-03): at ~390px tall the buttons fell just under the first screen; the space above the
   title, the title and the gaps come down so the title, the sub-line and the buttons all show at once */
@media (orientation: landscape) and (max-height: 500px) {
  .hero__inner { padding-top: calc(72px + 16px); gap: 16px; }
  .hero__title { font-size: min(clamp(48px, calc(34px + 4vw), 96px), 15vh); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-line, .hero-slot, .hero-slot__inner, .hero__sub { animation: none; }
  .hero-slot { width: calc(var(--chip-w) + var(--space) + 2 * var(--chip-m)); }
  .hero-slot__layer, .hero-slot__layer.is-active { filter: none; transform: none; transition: opacity 360ms ease; }
}
.hero__sub { max-width: 560px; margin: 0; font-size: clamp(16px, calc(14px + 0.4vw), 18px); /* 16 on phones, 18 from ~1000px (2026-10-12, the user: the sub-lines stayed large on phones) */ line-height: 1.45; color: var(--ink-600); text-wrap: balance; animation: hero-line-in 800ms ease 650ms backwards; }
@media (max-width: 599px) and (orientation: portrait) {
  .hero__title + .hero__sub { margin-block-start: calc(var(--space-4) - var(--space-6)); }
}
/* the decision card from chapter 01, laid over the hardware film cover so product UI shows on the first screen */
.hero__cta { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; margin-top: 8px; }
.hero__reel { width: 100%; max-width: 800px; /* 960 → 800 (2026-10-11): narrower at rest, more of the opening's light shows around it */ margin-top: clamp(32px, 5vw, 64px); }
.hero__media { width: 100%; box-shadow: var(--hairline); }
/* Scroll to grow (2026-10-09): the reel adds a short scroll track; the frame sticks in the middle of the screen (under
   the nav until 2026-11-03) and scales from its resting width to the largest 16:9 that fits (main.js sets --s, --p, --r and the
   geometry), holds, then scales back to rest before the pin ends. Transform only, so nothing around it reflows. */
.hero__stage { display: contents; }
.hero__reel[data-grow="scale"] { height: calc(var(--frame-h) + var(--reel-hold)); } /* no room kept below: the frame is back at its resting size before it leaves (2026-10-23) */
.hero__reel[data-grow="scale"] .hero__media { position: sticky; top: var(--pin-top); z-index: 3; transform: scale(var(--s, 1)); border-radius: var(--r, 32px); }
/* Phones and short screens (2026-10-11): there is no room to grow the 16:9 frame in place, so it grows on a
   full-screen stage that sticks at the top of the reel: the frame is the resting card in the stage's middle (the stage
   starts --lift above it, since 2026-11-03), rises with the page to the middle of the screen, and opens out there
   (left / top / width / height follow --p, the corner goes to 0), holds while the cover pulls into focus, closes back
   to the card (2026-10-23), then scrolls away. Since 2026-10-12 it opens to a 16:9 across the
   screen, not to the whole screen. Layout, not transform, but contained in the stage. */
.hero__reel[data-grow="full"] { --stage-h: 100vh; height: calc(var(--stage-h) + var(--reel-hold)); --w1: min(var(--vw), calc(var(--stage-h) * 16 / 9)); margin-top: calc(clamp(32px, 5vw, 64px) - var(--lift, 0px)); pointer-events: none; } /* it starts --lift above the card (main.js), over the lines above it: no clicks of its own */
@supports (height: 100lvh) { .hero__reel[data-grow="full"] { --stage-h: 100lvh; } } /* the large viewport: no strip shows when the toolbars hide */
/* the stage runs --lift below the card as well as above it: the page after the hero comes up that much, so once the film
   has closed the next section follows the card at the usual gap, not half a screen of paper later (2026-11-03) */
.hero__reel[data-grow="full"] { margin-bottom: calc(-1 * var(--lift, 0px)); }
.hero__reel[data-grow="full"] .hero__stage { display: block; position: sticky; top: 0; z-index: 3; width: var(--vw); height: var(--stage-h); margin-left: calc(-1 * var(--reel-x)); contain: layout size; pointer-events: none; }
/* the black around the film fades in as it opens; its top edge is feathered while the stage still rises (40% of the
   stage at rest, none once it is at the top), so no hard line crosses the painting on the way */
.hero__reel[data-grow="full"] .hero__stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: #000; opacity: var(--p, 0);
  -webkit-mask: linear-gradient(to bottom, transparent, #000 calc((1 - var(--p, 0)) * 40%)); mask: linear-gradient(to bottom, transparent, #000 calc((1 - var(--p, 0)) * 40%));
}
/* the film keeps its 16:9 (2026-10-12, the user: no portrait crop on phones): it opens to the screen's width (or, on a
   short landscape screen, its height), centred, and the stage darkens to black above and below it as it opens */
.hero__reel[data-grow="full"] .hero__media {
  position: absolute; aspect-ratio: auto; pointer-events: auto; border-radius: var(--r);
  left: calc(var(--reel-x) * (1 - var(--p, 0)) + (var(--vw) - var(--w1)) / 2 * var(--p, 0));
  top: calc(var(--lift, 0px) * (1 - var(--p, 0)) + (var(--stage-h) - var(--w1) * 9 / 16) / 2 * var(--p, 0)); /* centred on the stage at every size (--lift is half the stage less half the card), so only the scroll moves it up and down (2026-11-03) */
  width: calc(var(--w0) + (var(--w1) - var(--w0)) * var(--p, 0));
  height: calc(var(--h0) + (var(--w1) * 9 / 16 - var(--h0)) * var(--p, 0));
}

/* ---------- 02 software ---------- */
.software {
  max-width: 1440px; margin: 0 auto;
  padding: calc(var(--section-gap) - clamp(48px, 6vw, 88px)) clamp(20px, 5vw, 64px) 0; /* + the hero's own bottom padding = one --section-gap */
  display: flex; flex-direction: column; gap: clamp(32px, 4vw, 52px);
}
.software__head { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
/* both films sit narrower than the content (960px, 2026-10-10), the floating nav narrower again (720px) */
.software .media-frame { width: 100%; max-width: 960px; align-self: center; }
/* phones: the film plays in a theater (main.js initFilms, 2026-10-30, the user: as the hero film, the screen black around
   it, the picture edge to edge). A fixed black layer fades in under the frame; the frame lifts above it and opens over
   the section's side padding, its corners going square as the hero's do. */
.film-theater { position: fixed; inset: 0; z-index: 40; background: #000; opacity: 0; pointer-events: none; transition: opacity 500ms var(--ease-standard); }
.film-theater[data-on] { opacity: 1; }
@media (max-width: 599px) {
  .software .media-frame { position: relative; transition: margin 500ms cubic-bezier(.22, 1, .36, 1); }
  .software .media-frame[data-theater][data-playing] { z-index: 41; align-self: stretch; width: auto; margin-inline: calc(-1 * clamp(20px, 5vw, 64px)); -webkit-mask-box-image-source: none; border-radius: 0; }
  .software .media-frame[data-theater][data-playing]::after { display: none; } /* [data-playing] only for weight: the Apple-curve rule is an :is() as heavy as its .story[data-stage] .jw-stage, and later */
}
@media (prefers-reduced-motion: reduce) { .film-theater, .software .media-frame { transition: none; } }
.software__head .section-title { text-align: center; }
/* Title groups (2026-10-10): eyebrow → title 16px; title → its sub-line 20px (hero 24px, larger title); sub-line → sign-up 32px.
   Display titles: hero 1.06, section titles 1.12. */
.section-title { font-weight: var(--fw-heading); max-width: 640px; margin: 0; font-size: var(--fs-section); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; color: var(--text); } /* the design system's title ink, warm 96% (2026-11-05, the user: the titles read grey; was the page's --ink-800, and the story's title already this) */
/* “while you ___”, after cosmos.so's hero (2026-10-09): the title's second line is a stack of phrases; the current one
   rolls away (down and back, 3D) as the next rolls in from above, blurring through the swap, with a slight overshoot.
   Each phrase carries two tilted image chips that settle in just after it lands (main.js sets data-on / data-out). */
.software__head .software__title { max-width: none; }
.software__lead { display: block; text-wrap: balance; }
.while-roll { display: grid; justify-content: center; align-items: center; height: 1.12em; perspective: 800px; } /* one title line (section-title line-height), so both lines sit like any two-line title */
.while-roll__item {
  grid-area: 1 / 1; justify-self: center; display: inline-flex; align-items: center; gap: .3em; white-space: nowrap; backface-visibility: hidden;
  opacity: 0; filter: blur(10px); transform: translateY(-50%) translateZ(-40px) rotateX(80deg); /* waiting above, tipped back */
}
.while-roll__item em { font-style: normal; } /* same face as the first line: one title, not a quote (2026-10-09) */
.while-roll__item[data-on], .while-roll__item[data-out] { transition: transform 850ms cubic-bezier(.3, 1.3, .5, 1), opacity 300ms ease, filter 300ms ease; }
.while-roll__item[data-on] { opacity: 1; filter: blur(0); transform: none; }
.while-roll__item[data-out] { transform: translateY(50%) translateZ(40px) rotateX(-80deg); }
.while-roll__pics { display: inline-flex; flex: none; }
.while-roll__pic { width: .86em; height: .86em; flex: none; overflow: hidden; border: 1.5px solid var(--paper-100); border-radius: calc(.26em * var(--k-se)); corner-shape: var(--shape); background: var(--paper-200); rotate: -6deg; }
.while-roll__pic { position: relative; }
.while-roll__pic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; corner-shape: inherit; box-shadow: var(--hairline); pointer-events: none; }
.while-roll__pic + .while-roll__pic { margin-left: -.33em; rotate: 6deg; }
.while-roll__pic img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.15; }
.while-roll__item:is([data-on], [data-out]) .while-roll__pic img { opacity: 1; scale: 1; }
.while-roll__item[data-on] .while-roll__pic img { transition: opacity 400ms ease 450ms, scale 600ms cubic-bezier(.16, 1, .3, 1) 450ms; }
.while-roll__item[data-on] .while-roll__pic + .while-roll__pic img { transition-delay: 500ms; }
.software__sub { margin: 4px 0 0; font-size: clamp(16px, calc(14px + 0.4vw), 18px); line-height: 1.45; color: var(--ink-600); text-align: center; text-wrap: balance; } /* sans, like the hero's sub-line (2026-10-10, was the serif at 20–24px); one line, wraps evenly if it ever has to */
.software__caption { align-self: center; max-width: 560px; margin: calc(-1 * clamp(12px, 2vw, 24px)) 0 0; font-size: 16px; line-height: 1.5; color: var(--ink-600); text-align: center; } /* under the launch film */
/* film frame: cover (or empty photo slot) + play button. A frame with data-film-* sources plays on press
   (main.js initFilms); one without a film keeps its play button aria-disabled (the hero's hardware film). */
.media-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-media); corner-shape: var(--shape); overflow: hidden; background: var(--paper-200); }
.media-frame::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; corner-shape: inherit; box-shadow: var(--hairline); pointer-events: none; } /* the hairline sits over the cover and the film */
.media-frame__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* the Brand film poster (2026-10-11, as in the brand manual's #brand-film): the photo dimmed 32%, the reverse primary lockup
   centred at 40% of the frame (≤ 520px). The nav's lockup file, reversed by filter (the reverse master differs only in fill). */
/* The hero film cover (2026-10-11), after the opening of Cosmos "Your Space to Dream": the photo sits out of focus and dimmed with
   the J.Doe symbol crisp in the centre (warm off-white #FAF8F7, ~13% of the frame, as Cosmos's mark). When the film reaches
   full size main.js sets data-play: the photo pulls into focus while the symbol dissolves the way Cosmos's does, softening
   first and fading after, like a highlight going out of focus; the photo sharpens last (timings below). Scrolling back resets it.
   No JS (<noscript>) and reduced motion show the sharp photo with the symbol at rest. */
/* Timings matched to Cosmos frame by frame (2.80–4.40 s every 0.05 s) and checked on this page with the same measures
   (background sharpness, the mark's contrast and edge spill): the symbol softens first (most of it in 0.2 s), fades
   after it (gone by ~1 s), and the photo's seen sharpness rises steadily over ~1.3 s. */
.hero__media .media-frame__cover { transition: filter 1300ms cubic-bezier(.1, 1, .7, .9), scale 1300ms cubic-bezier(.1, 1, .7, .9); } /* radius falls fast, so the seen sharpness rises evenly */
.hero__media[data-focus="soft"]:not([data-play]) .media-frame__cover { filter: blur(14px); scale: 1.06; }
.media-frame__brand { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: rgb(19 19 19 / .32); pointer-events: none; transition: background-color 950ms cubic-bezier(.8, 0, .3, 0); } /* the dim is there for the symbol: it lifts with the symbol, so the frame does not brighten early */
.media-frame__mark {
  display: block; width: 12%; aspect-ratio: 1; position: relative; /* 12% (2026-10-12, the user: a little smaller; was 16%, the drawn mark ~14% of the frame as Cosmos) */
  transition: filter 600ms cubic-bezier(.2, .3, 0, .7), opacity 950ms cubic-bezier(.8, 0, .3, 0); /* opacity holds ~0.5 s while the blur already dims the thin strokes, then goes */
}
/* the shape lives on ::before so the blur on the element softens its silhouette too (a mask on the blurred element would re-cut a sharp edge) */
.media-frame__mark::before { content: ""; position: absolute; inset: 0; background: rgb(250 248 247 / .85); /* 85% (2026-10-11): Cosmos's dots measure ~#F6F6F4 at ~95%, but they are six small dots; our symbol has far more solid area and read too bright at 100% */ -webkit-mask: url("../img/jdoe-symbol.svg?v=d4950fa69da6") center / contain no-repeat; mask: url("../img/jdoe-symbol.svg?v=d4950fa69da6") center / contain no-repeat; }
.hero__media[data-play] .media-frame__brand { background-color: rgb(19 19 19 / 0); }
.hero__media[data-play] .media-frame__mark { filter: blur(7px); opacity: 0; } /* ~4% of its width, as Cosmos; no scale (its dots do not grow) */
@media (prefers-reduced-motion: reduce) {
  .hero__media[data-focus] .media-frame__cover { filter: none; scale: none; transition: none; }
  .media-frame__brand, .media-frame__mark { transition: none; }
}
/* the whole cover is the play control (2026-10-11, no round play button): a transparent button over the frame keeps the
   accessible name and keyboard focus; the cover answers hover with a slow lift of the picture */
.media-frame__hit { position: absolute; inset: 0; z-index: 2; padding: 0; border: 0; border-radius: inherit; corner-shape: inherit; background: none; cursor: pointer; }
.media-frame__hit:focus-visible { outline: 2px solid var(--interaction-focus); outline-offset: -6px; }
/* the play cue (2026-10-23, the user: a play button, but not in the middle over the picture): a small capsule in the
   lower left in the dark Liquid Glass (glass.css .lg-pill under [data-lg-theme="dark"], as the hardware panel's capsule;
   the user, same day: “液态玻璃的深色效果”). It is the cover button's own content, so it answers the same press and
   hover. Inset from the frame's corner, smaller on phones. */
.media-frame__play {
  position: absolute; left: var(--play-inset); bottom: var(--play-inset); --play-inset: clamp(12px, 2.2vw, 24px);
  display: inline-flex; align-items: center; gap: 9px; height: clamp(38px, 3.4vw, 46px); padding: 0 clamp(14px, 1.4vw, 19px) 0 clamp(12px, 1.15vw, 16px);
  font: 600 clamp(14px, 1.25vw, 17px) / 1 var(--font-ui); /* a size up (2026-10-29, the user): 46 high and 17px from ~1350, was 40 and 15 */ white-space: nowrap;
  transition: background-color var(--dur-1) var(--ease-standard), transform var(--dur-1) var(--ease-standard);
}
.media-frame__play .ic { position: relative; z-index: 3; width: 13px; height: 13px; flex: none; fill: currentColor; } /* a filled triangle: the SF play in the sprite reads as an outline at this size */
.media-frame__play.lg { --lg-surface: 72 72 76; } /* a step lighter than the dark glass's 28: over the cover's dark lower left it read as a black hole (2026-10-29, the user: phones first, then the capsule too) */
[data-lg-theme="dark"] .media-frame__play.lg { --lg-lift: 0 .5px 1px rgb(0 0 0 / .28), 0 5px 15px rgb(0 0 0 / .3); } /* the lift a step lighter (2026-10-30, the user: “投影太重”; the dark pill's .4 / .45): the capsule, the phones' round button, the sound button */
.media-frame__play > span { position: relative; z-index: 3; }
.media-frame__time { font-weight: 500; color: rgb(255 255 255 / .6); font-variant-numeric: tabular-nums; }
.media-frame__hit:hover .media-frame__play { --lg-opacity: .7; }
.media-frame__hit:active .media-frame__play { transform: scale(.96); }
@media (max-width: 599px) { .media-frame__play { --play-inset: 18px; justify-content: center; width: 56px; height: 56px; padding: 0; } .media-frame__play .ic { width: 20px; height: 20px; translate: 1.4px 0; } .media-frame__play > span { display: none; }
  .media-frame__play.lg { box-shadow: var(--lg-lift); } .media-frame__play.lg::before { inset: 0; } } /* no dark .5px rim, the edge light at the very edge: all round a circle the rim read as a black ring outside a white one (2026-10-29, the user) */ /* phones: a round play button, no words, still in the lower left (2026-10-29, the user: the small triangle-and-time capsule did not read as playable; then “再大一些”; in the middle it covered the title); the triangle's centroid sits on the circle's centre, so it reads centred */
.media-frame[data-film-mp4]:not([data-focus]) .media-frame__cover { transition: scale 700ms cubic-bezier(.22, 1, .36, 1); }
.media-frame[data-film-mp4]:not([data-focus]):has(.media-frame__hit:hover) .media-frame__cover { scale: 1.02; }
.media-frame__film { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: cover; background: #000; }
/* the hero's film lies over its cover (it fades in over it): no black of its own to show where Safari's video layer and
   the frame round to different pixels (2026-11-04, the user: uneven black edges in Safari); full screen keeps the black */
.hero__media .media-frame__film { border-radius: inherit; corner-shape: inherit; background: transparent; }
/* 2 px past the frame on every side, cut off by its rounded clip (2026-11-06, the user: the uneven dark edges were back,
   now the cover showing where the film's layer, scaled up to 2.6×, stopped short of the frame's edge) */
.hero__media .media-frame__film:not(:fullscreen) { inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); }
.hero__media .media-frame__film:fullscreen { background: #000; }
/* the film playing by itself, muted (main.js initFilms): the whole film is the sound button, its round cue in the play button's place */
.media-frame__sound { position: absolute; inset: 0; z-index: 5; padding: 0; border: 0; border-radius: inherit; corner-shape: inherit; background: none; cursor: pointer; }
.media-frame__sound:focus-visible { outline: 2px solid var(--interaction-focus); outline-offset: -6px; }
.media-frame__sound .media-frame__play { justify-content: center; aspect-ratio: 1; padding: 0; } /* round at every width (tablets too) */
/* the round cue stays off the picture while the film plays (2026-11-03, the user: it covered the screens behind it): it
   fades in under a mouse or the keyboard's focus; a tap or click anywhere on the film still turns the sound on */
.media-frame__sound .media-frame__play { opacity: 0; transition: opacity var(--dur-2) var(--ease-standard), background-color var(--dur-1) var(--ease-standard), transform var(--dur-1) var(--ease-standard); }
.media-frame__sound:focus-visible .media-frame__play { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .media-frame__sound:hover .media-frame__play { opacity: 1; } }
.media-frame__sound .media-frame__play .ic { translate: none; width: clamp(16px, 1.43vw, 19px); height: clamp(16px, 1.43vw, 19px); } /* .42 of the circle, as the phones' 23 in 56 (2026-10-30: desktops autoplay too, the capsule's 13px speaker read small) */
@media (max-width: 599px) { .media-frame__sound .media-frame__play .ic { width: 23px; height: 23px; } } /* the speaker is lighter than the triangle: a size up so the two read alike */
.hero__media[data-film-mp4]:not([data-playing]) .media-frame__film { visibility: hidden; }
.media-frame[data-playing] :is(.media-frame__cover, .media-frame__hit) { visibility: hidden; }
.hero__media[data-playing] .media-frame__cover { visibility: hidden; transition: visibility 0s .45s; } /* the film fades in over its cover (400 ms), then the cover goes, so nothing under the film can show at its edges */

/* ---------- 03 story ---------- */
.jw-page { margin: 0; color: var(--text); font: 400 var(--fs-w-body)/var(--lh-w-body) var(--font-ui); }
.jw-page :is(h2, p) { margin: 0; }
.jw-page a { color: var(--text); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: var(--line-3); transition: text-decoration-color var(--motion-in), color var(--motion-in); }
.jw-page a:hover { color: var(--ink-900); text-decoration-color: currentColor; }
.jw-container { width: 100%; max-width: calc(var(--content-max) + 2 * var(--grid-margin)); margin-inline: auto; padding-inline: var(--grid-margin); }
.jw-eyebrow { font-family: var(--font-ui); font-size: var(--fs-w-eyebrow); line-height: var(--lh-w-eyebrow); font-weight: 600; letter-spacing: var(--tracking-caps); color: var(--eyebrow-fg); }
.jw-body { font-size: var(--fs-w-body); line-height: var(--lh-w-body); color: var(--text-2); text-wrap: pretty; }
.jw-small { font-size: var(--fs-w-small); line-height: var(--lh-w-small); color: var(--text-2); }

.story { padding-block: var(--section-gap); --story-tile: min(580px, calc(100svh - 136px)); } /* Calendly's feature tile: 580px square (2026-10-10) */
/* After Calendly's feature list (2026-10-09, third pass): on wide screens the title, the steps and the tile are
   pinned together. The steps are an accordion (2026-10-12, the user, after calendly.com's feature accordion): every
   title stays in the list, the current step open on its line of text, the others folded to their titles at 0.4.
   The step's progress runs along the 2px hairline under it (.story__bar, main.js), no longer in the tile. */
.story__head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: clamp(40px, 5vw, 72px); }
.story__head .section-title { font-size: var(--fs-section); } /* the section size like every other title but the hero's (2026-10-14, the user; was --fs-chapter, 48px at 1440, after Calendly's feature list) */
.story__list { list-style: none; margin: 0; padding: 0; }
.story__item { position: relative; border-top: 1px solid var(--line-2); padding-block: 28px 32px; transition: opacity var(--dur-3) var(--ease-standard); }
.story__item:last-child { border-bottom: 1px solid var(--line-2); }
.story__item-h { margin: 0; font: inherit; }
.story__tab {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 0;
  border: 0; background: none; font: inherit; text-align: left; color: var(--text); cursor: pointer;
}
/* a line icon beside the title, no tile (Calendly's feature icons) */
.story__tab .step-ic { width: 24px; height: 24px; background: none; box-shadow: none; border-radius: 0; } /* the box is the glyph: no extra air between icon and title */
.story__tab .step-ic .ic, .story__tab .step-ic img { width: 24px; height: 24px; } /* brand glyph display size (ICONOGRAPHY-V1: 16 / 20 / 24 / 32) */
/* optical size: the diagonal arrow (32) reaches into both corners of its square and reads a size larger than the round
   and boxed glyphs beside it, so it is drawn smaller (glyph bounding boxes measured: 32 = 78 units, the rest 66–76) */
/* FOR YOUR WORK: each role is a person (2026-10-10), the brand's feathered portrait at its 32px display size */
.story__tab .step-ic--avatar, .story__tab .step-ic--avatar img { width: 32px; height: 32px; }
.story__tab-text { min-width: 0; }
.story__item-title { display: block; font-size: 20px; line-height: 28px; /* Calendly's feature titles (2026-10-10) */ font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
.story__more > div { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; max-width: 34em; } /* text starts at the left edge, under the icon; title and line kept close */
.story__more p { margin: 0; } /* the roles section sits outside .jw-page, so its paragraphs need this too */
.story__more .jw-body { font-size: 16px; line-height: 1.4; }
.story__more .jw-small { color: var(--text-3); }
/* the hairline under a step, and on it the step's progress (after Calendly, at 1px: the fill running left to right while the
   step plays; only the open step's line fills). Set by main.js: data-run with --bar (the step's length) and --bar-at
   (how far in), data-idle before it plays; neither, at rest: full */
.story__bar { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; overflow: hidden; background: var(--line-2); } /* 1px, the line and its fill alike (2026-10-12, the user; Calendly's is 2px) */
.story__bar > b { position: absolute; inset: 0; background: var(--ink-800); transform-origin: 0 50%; transform: scaleX(0); } /* neutral ink, the titles' colour (2026-10-12, the user; was the brand violet) */
.story[data-js] .story__item[data-active] .story__bar > b:not([data-idle]) { transform: none; }
.story[data-js] .story__item[data-active] .story__bar > b[data-run] { animation: bar-fill var(--bar, 10s) linear var(--bar-at, 0ms) both; }
.story:is([data-paused], [data-waiting]) .story__item[data-active] .story__bar > b[data-run] { animation-play-state: paused; }
/* Play again (2026-10-12, the user: not the whole story folding back frame by frame): the tile's cards fade out, are
   set back to the first step's start with every transition off (data-resetting), and fade back in (main.js restart) */
.story :is(.story__desk, .story__cue--stage) { transition: opacity 300ms cubic-bezier(0.22, 1, 0.36, 1); }
.story[data-restart] :is(.story__desk, .story__cue--stage) { opacity: 0; transition-duration: 200ms; }
.story[data-resetting] :is(.story__desk, .story__desk *), .story[data-resetting] .story__desk *::before, .story[data-resetting] .story__desk *::after { transition: none !important; } /* as specific as the rule that runs it; data-waiting: the other story has the screen */
@keyframes bar-fill { from { transform: scaleX(0); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .story[data-js] .story__item[data-active] .story__bar > b[data-run] { animation: none; } }

/* the tile: one brand illustration behind the card, reframed per step (two speeds, after Calendly's hero) */
.story__stage { position: relative; z-index: 2; }
.jw-stage {
  position: relative; isolation: isolate; overflow: hidden; height: 100%;
  border-radius: var(--radius-w-stage); corner-shape: var(--shape);
  background: var(--paper-200);
}
.jw-stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/editorial/jdoe-editorial-n1-b-1280.webp?v=e76df7d3db6a") center / cover no-repeat; /* 1280 px copy: the tile is 580 px (2026-10-11) */
  transform: scale(1.1) translate(var(--pan-x, 0%), var(--pan-y, 0%));
  /* the painting is 10% larger than the tile so it can drift (--pan-*); it is clipped on its own layer to exactly the
     tile's box (the inverse of that scale and drift), not only by the tile's overflow: a GPU-composited layer escaped
     the superellipse clip in the user's browser and showed ~20px of unshaded painting under the tile at the last step
     (2026-10-16, the user: “这里遮罩漏了一些？”) */
  clip-path: inset(calc(50% - 50% / 1.1 - var(--pan-y, 0%)) calc(50% - 50% / 1.1 + var(--pan-x, 0%)) calc(50% - 50% / 1.1 + var(--pan-y, 0%)) calc(50% - 50% / 1.1 - var(--pan-x, 0%)));
  transition: transform var(--dur-4) var(--ease-ambient), clip-path var(--dur-4) var(--ease-ambient);
}
.jw-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to top, rgba(35, 33, 30, .24), rgba(35, 33, 30, 0) 34%); }
.jw-stage[data-ch="0"] { --pan-x: 3%; --pan-y: 1.5%; }
.jw-stage[data-ch="1"] { --pan-x: 1%; --pan-y: .5%; }
.jw-stage[data-ch="2"] { --pan-x: -1%; --pan-y: -.5%; }
.jw-stage[data-ch="3"] { --pan-x: -3%; --pan-y: -1.5%; }
.story__scale { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; transition: transform var(--dur-2) var(--ease-emphasized); }
.story__desk { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; }
/* each step's card sits straight on the illustration (the translucent bezel was removed 2026-10-09) */
.story__panel {
  --cue-h: 50px; /* stacked screens: the cue below the card, 32px tall + 8px margin + the 10px gap */
  position: absolute; isolation: isolate; width: min(420px, 100%); display: flex; flex-direction: column; gap: 10px; padding: 0;
  opacity: 0; pointer-events: none; translate: 0 12px; scale: .98;
  transition: opacity var(--dur-2) var(--ease-standard), translate var(--dur-2) var(--ease-standard), scale var(--dur-2) var(--ease-standard);
}
.story__panel[data-state="past"] { translate: 0 -8px; }
.story__panel[data-state="active"] {
  opacity: 1; pointer-events: auto; translate: none; scale: none;
  transition: opacity var(--dur-2) var(--ease-standard), translate var(--dur-3) var(--ease-emphasized), scale var(--dur-3) var(--ease-emphasized); /* a crossfade (2026-10-11): the old card fades over the same 300ms the new one fades in, so a fast scroll never shows an empty tile (it waited 80ms and the old one was gone in 160) */
}
/* the cue: what used to be each chapter's three-step timeline, now narrating the card as it plays */
.story__cue {
  align-self: center; max-width: 100%; height: 32px; margin-top: 8px; display: flex; align-items: center; justify-content: center; /* the beat's name only: its progress moved to the step's hairline (2026-10-12) */
  font-size: 14px; line-height: 18px; font-weight: 600; color: #FFFFFF; text-align: center; white-space: nowrap;
  text-shadow: 0 1px 2px rgba(35, 33, 30, .32), 0 0 12px rgba(35, 33, 30, .18);
}
.story__cue--stage { display: none; }
.story__panel-in { display: contents; }
.story__panel .pd-bridge.pd-bridge--chapter { display: none; } /* chapter bridges join the one column on wide screens only */
.story:not([data-js]) .story__cue { display: none; }
.story__cue-text { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.story__cue-text[data-swap] { animation: story-cue-in var(--dur-3) cubic-bezier(.22, 1, .36, 1); }
@keyframes story-cue-in { from { opacity: 0; transform: translateY(6px); } }

.step-ic {
  flex: none; width: 28px; height: 28px; border-radius: calc(9.6px * var(--k-se)); corner-shape: var(--shape);
  display: inline-grid; place-items: center; background: var(--paper-50); color: var(--ink-800);
  box-shadow: inset 0 0 0 .5px var(--ink-a-10), 0 1px 2px var(--ink-a-04);
}
.step-ic .ic { width: 16px; height: 16px; fill: currentColor; } /* SF glyphs are filled paths (2026-10-11) */
.step-ic img { display: block; width: 16px; height: 16px; }

@media (min-width: 1024px) {
  /* no pinning (2026-10-12, the user: the steps follow their clock or a click, not the scroll): the section is as tall
     as its tile, 580px like Calendly's */
  .story { --story-tile: 580px; }
  .story__pin {
    display: grid; grid-template-columns: minmax(0, 532px) minmax(0, 580px); justify-content: space-between; gap: 0 clamp(32px, 5vw, 88px); align-items: start; /* Calendly's split (2026-10-10): a 532px column, a 580px tile, 88px between them in the 1200px container */
  }
  /* the title level with the tile's top and the accordion right under it (2026-10-12, the user: closer to the title;
     Calendly pushes its list down to the tile's foot) — the title holds still while a step opens and folds below it */
  .story__side { display: flex; flex-direction: column; gap: 24px; }
  .story__head { flex: none; padding-bottom: 0; }
  :is(.story__item, .story__item:last-child) { border: 0; padding-block: 24px; } /* Calendly: 24px above and below each title */
  .story__bar { display: block; }
}
/* The accordion, wherever the tile is used (data-stage, main.js): every title stays, the open step shows its line of
   text and its progress, the others fold to their titles at 0.4 (Calendly). Folding: the text opens to its height
   (0fr → 1fr) and fades in; the one left folds the same way. */
.story[data-stage] :is(.story__item, .story__item:last-child) { border: 0; padding-block: 24px; }
.story[data-stage] .story__bar { display: block; }
.story[data-stage] .story__item { transition: opacity 150ms var(--ease-standard); }
.story[data-stage] .story__item:not([data-active]) { opacity: .4; }
@media (hover: hover) { .story[data-stage] .story__item:not([data-active]):hover { opacity: 1; } }
.story[data-stage] .story__item[data-active] .story__tab { cursor: default; }
.story[data-stage] .story__more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows var(--dur-3) var(--ease-standard), opacity var(--dur-2) var(--ease-standard); }
.story[data-stage] .story__more > div { min-height: 0; overflow: hidden; padding-top: 0; }
.story[data-stage] .story__more > div > :first-child { margin-top: 12px; } /* Calendly: 12px from the title (a margin, so the folded row closes to 0) */
.story[data-stage] .story__item[data-active] .story__more { grid-template-rows: 1fr; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .story[data-stage] .story__more { transition: none; } }
/* phones and tablets: the open step holds the tile, so it opens at once and main.js slides what moved (FLIP, transforms
   only); its text still fades in (2026-10-29, the user: the height tween stuttered there) */
@media (max-width: 1023px) { .story[data-stage] .story__more { opacity: 1; transition: none; } } /* the open step holds the tile: fading the step faded the tile out and in; main.js fades its words alone */
.story[data-jump] .jw-stage *, .story[data-jump] .jw-stage *::before, .story[data-jump] .jw-stage *::after { transition: none !important; } /* main.js mark(): the cards jump to the new step's start while the tile glides */
.story[data-stage] .jw-stage { contain: layout paint; } /* the cards' own height tweens (each beat) lay out the tile only, not the page */
/* Scroll mode (2026-10-14, the user, after calendly.com/ai-assistant; main.js data-scroll, HOW IT WORKS on wide screens):
   every step stays open, the current one at full strength and the others at 0.2; the title and the tile stand still
   beside the list (sticky at the same top, the tile centred in the window under the nav) while the steps scroll past
   under the title. */
.story[data-scroll] { --story-top: max(96px, calc((100vh - var(--story-tile)) / 2 + 40px)); overflow-y: clip; } /* the head's paper cover (::before, below) reaches --story-top above it; clipped to the section so, before the head sticks, it no longer lies over the software film and its caption (2026-10-16, the user: “这里为啥老是缺一块”). clip, not hidden: no scroll box, so the sticky parts still stick */
.story[data-scroll] { --dur-grow: 1200ms; --grow-pace: 1.5; } /* the cards grow 1.5× slower here, with the scroll's pace (2026-11-01, the user; main.js storyPace does the same for the beats' timers); phones and the roles stay at 800 */
.story[data-scroll] .story__pin { align-items: start; }
.story[data-scroll] .story__stage { position: sticky; top: var(--story-top); }
.story[data-scroll] .story__side { gap: 0; }
.story[data-scroll] .story__head { position: sticky; top: var(--story-top); z-index: 2; padding-bottom: 32px; background: linear-gradient(var(--paper-100), var(--paper-100)) top / 100% calc(100% - 32px) no-repeat; }
/* the steps that have passed go under the title and stay hidden above it too: its paper reaches up to the window's top
   (the nav floats over it); only the section's own top margin is there when it first sticks */
.story[data-scroll] .story__head::before { content: ""; position: absolute; left: -24px; right: -24px; bottom: 100%; height: var(--story-top); background: var(--paper-100); }
/* the steps dissolve as they reach it (2026-11-01, the user: the edge cut the text in half): 64px of the page's paper, its
   alpha on the same smoothstep as the hero painting's foot, ending just above the first step's title at rest */
.story[data-scroll] .story__head::after {
  content: ""; position: absolute; left: -24px; right: -24px; top: calc(100% - 32px); height: 64px; background: var(--paper-100); pointer-events: none;
  --head-foot: linear-gradient(#000, rgb(0 0 0 / .972) 10%, rgb(0 0 0 / .896) 20%, rgb(0 0 0 / .784) 30%, rgb(0 0 0 / .648) 40%, rgb(0 0 0 / .5) 50%, rgb(0 0 0 / .352) 60%, rgb(0 0 0 / .216) 70%, rgb(0 0 0 / .104) 80%, rgb(0 0 0 / .028) 90%, transparent);
  -webkit-mask: var(--head-foot); mask: var(--head-foot);
}
/* A little more scroll distance per step makes each beat easier to follow without intercepting native scrolling. */
.story[data-scroll] :is(.story__item, .story__item:last-child) { padding-block: 88px; border: 0; border-bottom: 1px solid var(--line-2); }
.story[data-scroll] .story__item:first-child { padding-top: 32px; } /* keep the first step close to the title */
/* room after the last step: its last beat line is passed while the tile still stands, and it is read there a while */
.story[data-scroll] .story__list { padding-bottom: calc(var(--story-tile) * .55); }
.story[data-scroll] .story__item:not([data-active]) { opacity: .2; }
@media (hover: hover) { .story[data-scroll] .story__item:not([data-active]):hover { opacity: .6; } }
.story[data-scroll] .story__item .story__tab { cursor: pointer; }
.story[data-scroll] .story__more { grid-template-rows: 1fr; opacity: 1; transition: none; }
.story[data-scroll] .story__bar { display: none; }
/* The tile's inside (2026-10-11): shared by the wide split and, since the user asked for it, by phones and tablets
   when motion is allowed — one tile, the chapters in one column joined by bridges, the newest card in the middle.
   main.js sets data-stage on the section whenever this layout is in use. */
.story[data-stage] .story__stage { height: var(--story-tile); }
.story[data-stage] .story__stage::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-w-stage); corner-shape: var(--shape); box-shadow: var(--hairline); pointer-events: none; }
.story[data-stage] .jw-stage { width: 100%; height: 100%; }
.story[data-stage] .story__panel { --cue-h: 0px; }
.story[data-stage] .story__panel .story__cue { display: none; }
.story[data-stage] .story__cue--stage { display: flex; position: absolute; left: 50%; bottom: 20px; z-index: 1; margin: 0; transform: translateX(-50%); }
/* cards centre in the space above the cue (it sits 20px up, 32px tall), so every card keeps its 420px width in the
   580px tile without shrinking to fit; the follower in main.js places the column (2026-10-11) */
.story[data-stage] .story__scale, .story[data-stage] .story__desk { padding: 16px 24px 88px; } /* 88 below (2026-10-11; was 64): the cue sits 20px up and is 32px tall, so the cards keep 36px clear of its dots instead of 12 */
.story[data-stage] .story__panel { transform: translateY(var(--push, 0px)); }
/* HOW IT WORKS as one storyline (2026-10-10): the four chapters stand in one column and each grows out of the last
   through a bridge — the recording, the decision card, the screen, the brief, the hand-off, the run, the preference,
   Maya's brief. A chapter not reached yet has no height; reaching it opens it on the modules' curve (--ease-grow)
   and the line moves up, the earlier cards pushed out past the tile's top, where they fade; scrolling back folds it
   away and they come down again. Since 2026-10-11 the column is placed so that the newest card sits in the middle of
   the room (main.js follower; a card taller than the room keeps its foot above the cue). Chapters passed keep their
   final state. */
#story[data-stage] .story__desk { flex-direction: column; justify-content: flex-start; align-items: center; } /* main.js translates it so the newest card sits in the middle (2026-10-11) */
#story[data-stage] .story__panel, #story[data-stage] .story__panel[data-state] {
  position: relative; flex: none; transform: none; display: block; height: auto; min-height: 0; overflow: clip; overflow-clip-margin: 2px; /* 2px: the chapter bridge reaches 1px into the card above · min-height 0 (2026-10-11): a flex item's automatic minimum is its content, and while height animated from 0 to auto Chrome applied it, so a chapter opened to full height in one frame */
  opacity: 1; translate: none; scale: none; pointer-events: auto;
  transition: height var(--dur-grow) var(--ease-grow), opacity 240ms var(--ease-standard);
}
#story[data-stage] .story__panel[data-state="past"] { pointer-events: none; }
#story[data-stage] .story__panel[data-state="next"] { height: 0; opacity: 0; transition: height var(--dur-fold) var(--ease-grow), opacity 160ms linear calc(var(--dur-fold) - 200ms); }
#story[data-stage] .story__panel-in { display: flex; flex-direction: column; gap: 10px; }
#story[data-stage] .pd-bridge--chapter { display: block; margin: -1px 0 -11px; }
#story[data-stage] .story__panel[data-state="next"] .pd-bridge--chapter { --bh: 2px; --neck: 56px; transition-duration: var(--dur-fold); }
/* the tile's upper edge (2026-10-10): when a panel is taller than the room and its top is pushed out (the follower sets
   data-over on the stage), the card softens over its top 28px instead of being cut hard by the edge
   (--fade, eased in, so nothing pops). Fade only — the progressive blur tried first was dropped at the user's call. */
@property --fade { syntax: "<length>"; inherits: false; initial-value: 0px; }
.story[data-stage] .story__scale { --fade: 0px; -webkit-mask: linear-gradient(rgb(0 0 0 / .5) 0, rgb(0 0 0 / .85) calc(var(--fade) * .5), #000 var(--fade)); mask: linear-gradient(rgb(0 0 0 / .5) 0, rgb(0 0 0 / .85) calc(var(--fade) * .5), #000 var(--fade)); transition: --fade 360ms var(--ease-standard); }
.story[data-stage] .jw-stage[data-over] .story__scale { --fade: 28px; } /* subtle (2026-10-10): 28px, never below half strength at the edge — it softens the cut, it does not take the eye */

/* pause / resume / replay (2026-10-11): the steps play on their own clock, so the tile carries a control; a quiet glass
   circle in its corner, level with the cue. main.js swaps the glyph (SF pause / play / arrow.counterclockwise). */
.story__play[hidden] { display: none; }
.story__play {
  position: absolute; right: 16px; bottom: 20px; z-index: 3; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-800); cursor: pointer;
  background: rgb(255 255 255 / .72); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .6), 0 1px 2px rgba(35, 33, 30, .12), 0 4px 12px rgba(35, 33, 30, .1);
  transition: background-color var(--dur-1) var(--ease-standard), transform var(--dur-1) var(--ease-standard);
}
.story__play:hover { background: rgb(255 255 255 / .88); }
.story__play:active { transform: scale(.94); }
.story__play:focus-visible { outline: 2px solid var(--interaction-focus); outline-offset: 2px; }
.story__play .ic { width: 14px; height: 14px; }
/* touch (2026-10-30 audit): the 32px button and the step titles (28–32px tall) take a 44px target without changing size,
   an invisible margin of hit area around them */
@media (pointer: coarse) {
  .story__play::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
  .story__tab { position: relative; }
  .story__tab::after { content: ""; position: absolute; inset: -8px 0; }
}
.story:not([data-stage]) .story__play { display: none; }
@media (max-width: 1023px) { .story__play { right: 12px; bottom: 14px; } }
@media (prefers-reduced-motion: reduce) {
  #story[data-stage] .story__panel, #story[data-stage] .story__panel[data-state], #story[data-stage] .pd-bridge--chapter { transition: none; } /* chapters open and fold at once */
}
@media (prefers-reduced-motion: reduce) {
  .story__panel, .story__panel[data-state="active"] { translate: none; scale: none; transition: opacity var(--dur-1) linear; }
}

/* Deferred paintings (2026-10-11 load audit): the story, roles and closing paintings sit far below the fold and are CSS
   backgrounds, which browsers never lazy-load, so they competed with the hero on first load (~940 KB). They are withheld
   until main.js marks the section as near (data-bg, ~1200 px ahead); index.html's <noscript> restores them without JS. */
[data-defer-bg]:not([data-bg]) .jw-stage::before, [data-defer-bg]:not([data-bg]) .story__panel, .closing[data-defer-bg]:not([data-bg]) { background-image: none !important; }
/* reveal on scroll (JS adds html.rv; without JS everything is visible) */
html.rv [data-rv] { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity var(--dur-4) var(--ease-standard), transform var(--dur-4) var(--ease-emphasized); }
html.rv [data-rv][data-in] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.rv [data-rv] { transform: none; transition: opacity var(--dur-1) linear; } }

/* ---------- product DS mockups (story stage) ---------- */
[data-pds] .ic { width: var(--ic, 16px); height: var(--ic, 16px); flex: none; display: block; fill: currentColor; } /* SF Symbols, semibold, from the Mac DS (2026-10-11; were 1.75px line icons) */

/* Chapter 01 as connected modules (2026-10-10): the recording opens the chapter; once the request is picked out the
   transcript and then the understood card grow out of it through bridges. main.js drives data-wave = listen → pick →
   focus → done; without JS it stays "done". One size (2026-10-11, the user): the recording keeps its full height
   throughout (it used to fold to a 24px strip), so the chapter only ever grows. */
.pd-card.pd-wave { justify-content: center; align-items: center; gap: 12px; text-align: center; cursor: pointer; }
.pd-wave__label { font-size: var(--fs-compact); line-height: var(--lh-compact); font-weight: 600; color: var(--text-primary); } /* the Mac SourceCard title: 13/20 600, then its time (was 11px caps, 2026-10-11) */
.pd-wave__label i { font-style: normal; font-weight: 400; color: var(--text-tertiary); margin-inline: 4px; }
.pd-wave__time { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
/* The Mac recording waveform (DS feedback/Waveform, used where J.Doe listens): 3px bars 3px apart, the strip scrolling
   left one bar per 90ms tick while it listens, fresh volume entering at the right, both ends fading over 14px. main.js
   builds the strip and drives it; when the request is picked out it stops and that stretch turns the prototype's lilac. */
.pd-wave__bars { position: relative; width: 100%; height: 96px; overflow: hidden; --wave-step: 9px; --wave-ends: linear-gradient(90deg, rgb(0 0 0 / 0) calc(var(--wave-step) * 0), rgb(0 0 0 / 0.043) calc(var(--wave-step) * 1), rgb(0 0 0 / 0.156) calc(var(--wave-step) * 2), rgb(0 0 0 / 0.316) calc(var(--wave-step) * 3), rgb(0 0 0 / 0.5) calc(var(--wave-step) * 4), rgb(0 0 0 / 0.684) calc(var(--wave-step) * 5), rgb(0 0 0 / 0.844) calc(var(--wave-step) * 6), rgb(0 0 0 / 0.957) calc(var(--wave-step) * 7), rgb(0 0 0 / 1) calc(var(--wave-step) * 8), rgb(0 0 0 / 1) calc(100% - var(--wave-step) * 8), rgb(0 0 0 / 0.957) calc(100% - var(--wave-step) * 7), rgb(0 0 0 / 0.844) calc(100% - var(--wave-step) * 6), rgb(0 0 0 / 0.684) calc(100% - var(--wave-step) * 5), rgb(0 0 0 / 0.5) calc(100% - var(--wave-step) * 4), rgb(0 0 0 / 0.316) calc(100% - var(--wave-step) * 3), rgb(0 0 0 / 0.156) calc(100% - var(--wave-step) * 2), rgb(0 0 0 / 0.043) calc(100% - var(--wave-step) * 1), rgb(0 0 0 / 0) calc(100% - var(--wave-step) * 0)); /* each end fades on a smoothstep over 8 steps: 72px, 48px on phones (2026-11-01, the user; was a straight 14px ramp) */ -webkit-mask: var(--wave-ends); mask: var(--wave-ends); }
@media (max-width: 599px) { .pd-wave__bars { --wave-step: 6px; } }
.pd-wave__strip { position: absolute; left: 0; top: 0; height: 100%; display: flex; align-items: center; gap: 3px; will-change: transform; }
.pd-wave__bars i {
  flex: none; width: 3px; height: var(--h); border-radius: 99px; background: rgba(35, 33, 30, .4); transform: scaleY(.08); /* one grey for every bar (2026-10-12, the user; was #8B8B8B with every third bar #AFAEAB) */
  transition: transform var(--dur-3) var(--ease-emphasized) calc(var(--i, 0) * 8ms), background-color var(--dur-2) var(--ease-standard) calc(var(--k, 0) * 30ms);
}
.story__panel:not([data-wave="idle"]) .pd-wave__bars i { transform: none; } /* idle → listen: the bars rise from the middle out */
.story__panel:is([data-wave="pick"], [data-wave="focus"], [data-wave="done"]) .pd-wave__bars i[data-picked] { background: var(--accent-violet); } /* the request, in the brand violet kept for the waveform's picked-up moment (2026-10-12, the user: the pale lilac #C9A0E8 read as see-through) */
/* the decision card: head and quote first, the rest once it is done; the asked-for part of the quote lights up */
/* the transcript (2026-10-10): what the recording says, in words — the asked-for line lights up as it lands */
.pd-transcript { gap: 12px; padding: var(--pad-card); } /* a Mac SourceCard: head row, then the spoken words in serif, left-aligned (2026-10-11; was centred) */
.pd-source-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pd-source-head .ic { --ic: 16px; color: var(--text-secondary); }
.pd-source-head b { flex: 1; min-width: 0; font-size: var(--fs-compact); line-height: var(--lh-compact); font-weight: 600; color: var(--text-primary); }
.pd-source-head span { flex: none; font-size: var(--fs-caption); line-height: var(--lh-compact); color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
/* every card is left-aligned like the Mac Now cards (2026-10-11; the transcript and the preference question were centred).
   The preference question keeps the 2026-10-10 short form (no "Shown once" badge or mark): title, sub, then 18px to its buttons */
#story-panel-3 .pd-card:not(.pd-next) .pd-card__sub { padding-bottom: 0; }
.pd-transcript__quote { margin: 0; font-family: var(--font-serif); font-size: var(--fs-body-lg); line-height: 24px; /* 28 → 24 with the inline quotes (2026-11-03) */ color: var(--text-tertiary); text-wrap: pretty; } /* Mac QuoteBlock lg: 18/28; the sentence in the quieter grey, as the Mac home greeting */
/* the asked-for line (2026-10-11): the Mac home greeting's highlight (DS PageHead "sentence") — the words step up to the primary
   ink at 500 with a 1.5px underline 3px below in the prototype's lilac #C9A0E8 (was a grey wash; midday gold for a moment).
   The weight is there from the start so nothing reflows when it lights up. */
/* the two speakers in one inline block, parted by the Mac's dashed row rule from the text's start to the block's edge, as the
   merged source list (2026-10-20, the user: “或者用一个内联卡和内部分割线把两句话包进去？”; for a moment two blocks) */
.pd-transcript__lines { border-radius: var(--radius-inline); corner-shape: var(--shape); background: var(--surface-inline); box-shadow: inset 0 0 0 0.5px var(--line-1); }
.pd-transcript__lines .pd-transcript__quote { padding: 12px; }
.pd-transcript__lines .pd-transcript__quote + .pd-transcript__quote { margin-top: 0; background: var(--rule-row-dashed) 16px top / calc(100% - 16px) .5px no-repeat; }
.pd-transcript__quote .pd-transcript__who { margin-bottom: 4px; }
.pd-transcript__who { display: block; font-family: var(--font-ui); font-size: var(--fs-caption); line-height: var(--lh-compact); font-weight: 600; color: var(--text-secondary); }
.pd-transcript__quote mark { color: inherit; background: none; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; text-decoration-color: transparent; transition: color var(--dur-3) var(--ease-standard) calc(600ms * var(--grow-pace)), text-decoration-color var(--dur-4) var(--ease-standard) calc(600ms * var(--grow-pace)); }
.story__panel:is([data-wave="focus"], [data-wave="done"]) .pd-transcript__quote mark { color: var(--text-primary); text-decoration-color: var(--accent-highlight); }
[data-wave="idle"] :is(.pd-card.pd-wave, .pd-wave__bars, .pd-wave__bars i, .pd-bridge:not(.pd-bridge--chapter), .pd-grow, .pd-grow > *, .pd-grow > * > *, .pd-transcript__quote mark) { transition: none; }

/* context tags that carry through the story: C01 (the conversation), C02 (the screen), P01 (a preference) */
.pd-cap {
  flex: none; display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 99px;
  font-size: var(--fs-micro); line-height: 16px; font-weight: 600; letter-spacing: .04em; white-space: nowrap;
  color: var(--text-secondary); background: var(--surface-sunken);
}
.pd-cap--end { margin-left: auto; }
.pd-cap { gap: 4px; }
.pd-cap .ic { --ic: 12px; }
.pd-cap img { display: block; width: 12px; height: 12px; }
.pd-note { margin: 10px 0 0; font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--text-tertiary); text-wrap: pretty; }

/* chapter 02: the client profile on screen, then both sources merge into one brief */
.pd-profile { border-radius: var(--radius-inline); corner-shape: var(--shape); overflow: hidden; background: var(--surface-card); box-shadow: var(--ring-card), var(--shadow-card-subtle); }
.pd-profile__chrome { display: flex; align-items: center; gap: 10px; height: 26px; padding: 0 10px; background: var(--surface-ground); box-shadow: inset 0 -1px 0 var(--line-1); font-size: var(--fs-micro); color: var(--text-tertiary); }
.pd-dots { display: inline-flex; gap: 5px; }
.pd-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--mac-traffic-close-hi); }
.pd-dots i:nth-child(2) { background: var(--mac-traffic-min-hi); }
.pd-dots i:nth-child(3) { background: var(--mac-traffic-zoom-hi); }
.pd-profile__chrome .ic { --ic: 12px; margin-left: auto; color: var(--text-tertiary); } /* the prototype's window: path and search, then a toolbar (2026-10-11) */
.pd-profile__bar { display: flex; align-items: center; justify-content: space-between; height: 28px; padding: 0 10px; box-shadow: inset 0 -1px 0 var(--line-1); font-size: var(--fs-micro); line-height: 16px; color: var(--text-tertiary); }
.pd-profile__bar span { display: inline-flex; align-items: center; gap: 8px; }
.pd-profile__bar span:first-child { gap: 4px; }
.pd-profile__bar .ic { --ic: 12px; }
.pd-profile__body { padding: 14px 14px 6px; }
.pd-profile__id { display: flex; align-items: center; gap: 10px; }
.pd-profile__id > span:last-child { display: flex; flex-direction: column; }
.pd-profile__id b { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 650; }
.pd-profile__id em { font-style: normal; font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--text-tertiary); }
.pd-profile__contact { display: flex; align-items: center; gap: 8px; margin: 10px 0 8px; font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--text-secondary); }
.pd-profile__contact b { font-weight: 600; color: var(--text-primary); }
.pd-profile__contact .pd-avatar--sm { margin-left: 0; width: 20px; height: 20px; font-size: 10px; }
.pd-facts { margin: 0; }
.pd-facts > div { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-1); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.pd-facts dt { color: var(--text-tertiary); }
.pd-facts dd { margin: 0; color: var(--text-primary); }
.pd-facts mark { color: inherit; background: none; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; text-decoration-color: transparent; transition: text-decoration-color var(--dur-3) var(--ease-standard); } /* the same highlight as the transcript's (2026-10-11) */
.story[data-js] #story-panel-1:is([data-beat="1"], [data-beat="2"]) .pd-facts mark, .story:not([data-js]) .pd-facts mark { text-decoration-color: var(--accent-highlight); } /* beat 1 (2026-10-10: by beat, not by a delay) */
.pd-profile__capture { display: flex; align-items: center; gap: 6px; padding: 8px 14px; box-shadow: inset 0 1px 0 var(--line-1); font-size: var(--fs-micro); line-height: 16px; color: var(--text-tertiary); }
.pd-profile__capture img { width: 14px; height: 14px; opacity: .6; }
.pd-profile__capture .pd-cap { margin-left: auto; }
.pd-insight { padding: var(--pad-card); } /* a standard card since 2026-10-11 (head, title, its two sources); it was a centred serif line over uppercase tags */

/* chapter 03: provenance and the review promise on the hand-off card */
.pd-source--tags { flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-caption); color: var(--text-tertiary); }

.pd-card {
  display: flex; flex-direction: column; padding: var(--pad-card);
  border-radius: var(--r-ui); corner-shape: var(--shape); overflow: hidden;
  background: var(--surface-card); box-shadow: var(--ring-card), var(--shadow-card);
  transition: box-shadow var(--motion-state) var(--ease-move), transform var(--motion-state) var(--ease-move);
}
/* a card's parts keep their height while the card grows or folds: its edge cuts them from the bottom. A clipped part
   (a row, the merged rows, the profile) could shrink, and was squeezed to a sliver while the parts under it showed
   whole (2026-11-03, the user) */
:is(.pd-card, .pd-session, .roles__in) > * { flex-shrink: 0; }
.pd-card__surface { display: flex; flex-direction: column; margin: calc(var(--pad-card) * -1) calc(var(--pad-card) * -1) 0; padding: var(--pad-card) var(--pad-card) 0; }
.pd-card__surface[data-go] { cursor: pointer; }
.pd-card:has(.pd-card__surface[data-go]:active) { box-shadow: var(--ring-card), var(--shadow-card-press); transform: scale(.99); }
.pd-card__head { display: flex; align-items: center; gap: 8px; min-height: 30px; margin-bottom: 4px; }
.pd-card > .pd-card__title:first-child, .pd-card__surface > .pd-card__title:first-child { padding-top: 0 !important; } /* cards that now open on their title (2026-10-10) */
.pd-card__title em { font-style: normal; color: var(--text-tertiary); } /* a second sentence steps back (the joined brief's “Now with the full brief.”) */
.pd-card__title { padding-top: 8px; font-size: var(--fs-title-2); line-height: var(--lh-title-2); font-weight: 700; letter-spacing: var(--tracking-tight); text-wrap: balance; }
.pd-card__sub { padding-top: 0; padding-bottom: 16px; font-size: var(--fs-compact); line-height: var(--lh-compact); color: var(--text-secondary); text-wrap: pretty; }
.pd-card__mark { margin-left: auto; width: 22px; height: 22px; opacity: 0.55; }

.pd-badge {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: 99px;
  background: var(--surface-ground); color: var(--text-secondary); box-shadow: inset 0 0 0 0.5px var(--line-2);
  font-size: var(--fs-caption); line-height: 16px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.pd-badge i { font-style: normal; opacity: 0.55; margin-inline: -3px; } /* the dot sits 3px from the words, not the badge's 6px gap (2026-11-03, the user) */
/* Mac StatusBadge tones (2026-10-11): Decide = amber, Ready = sage; the tone carries the meaning, no icon */
.pd-badge[data-tone="amber"] { background: oklch(.935 .028 60); color: oklch(.48 .055 60); }
.pd-badge[data-tone="sage"] { background: oklch(.935 .028 140); color: oklch(.48 .055 140); }
.pd-badge[data-tone="violet"] { background: oklch(.935 .028 300); color: oklch(.48 .055 300); } /* the Mac hue ladder’s violet tag: “Understood” (2026-10-12) */
.pd-wave-target .pd-card__sub { padding-bottom: 0; } /* the inline block below keeps its own 18px (2026-10-12: 01 became a standard decision card) */
.pd-avatar {
  margin-left: auto; flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hue-amber-bg); color: #2B2B2B;
  font-family: var(--font-serif); font-size: 13px; font-weight: 400; line-height: 1;
}
/* a person's photo (2026-10-10): the brand's confirmed portrait with its avatar feather (manual: Avatar Styles &
   Feathering), a solid facial core to 54%, then an accelerating dissolve to nothing by 97% */
img.pd-avatar, .step-ic--avatar img {
  display: block; background: none; object-fit: cover; border-radius: 50%;
  --avatar-feather: radial-gradient(circle closest-side at 50% 50%, #000 0 54%, rgba(0,0,0,.96) 62%, rgba(0,0,0,.84) 70%, rgba(0,0,0,.66) 78%, rgba(0,0,0,.34) 86%, rgba(0,0,0,.1) 92%, rgba(0,0,0,.025) 95%, transparent 97%, transparent 100%);
  -webkit-mask: var(--avatar-feather) center / 100% 100% no-repeat; mask: var(--avatar-feather) center / 100% 100% no-repeat;
}

.pd-support { position: relative; flex-shrink: 0; border-radius: var(--radius-inline); corner-shape: var(--shape); overflow: hidden; } /* flex-shrink 0: its overflow let a growing card squeeze the row to a sliver while the button under it showed whole; now the card's edge cuts it like the rest (2026-11-03, the user) */
.pd-support__body {
  width: 100%; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 12px 40px 12px 12px; /* a row: 12px all round, the caret sits in the right 40 */
  background: var(--surface-inline); box-shadow: var(--ring-inline); color: var(--text-primary);
}
.pd-support__body > .ic { --ic: 17px; color: var(--text-secondary); }
.pd-support__text { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; }
.pd-support__text b { font-size: 13px; line-height: 16px; font-weight: 650; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-support__text em { font-size: 12px; line-height: 16px; font-style: normal; color: var(--text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-support__caret { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-disabled); transition: transform var(--motion-fast) var(--ease-move); }
.pd-support__caret .ic { --ic: 12px; } /* as the split button's chevron (2026-11-02, the user: 箭头太大，统一缩小; was 16) */
button.pd-support { display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
button.pd-support::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
button.pd-support:hover::after { background: var(--ink-a-04); }
button.pd-support:hover .pd-support__caret { transform: translateY(-50%) translateX(2px); }
/* the rows with a chevron read as links in the app: the same wash and nudge, eased (2026-11-02) */
.pd-support:has(> .pd-support__caret)::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: background-color var(--dur-1) var(--ease-standard); }
@media (hover: hover) and (pointer: fine) {
  .pd-support:has(> .pd-support__caret):hover::after { background: var(--ink-a-04); }
  .pd-support:has(> .pd-support__caret):hover .pd-support__caret { transform: translateY(-50%) translateX(2px); }
}
.pd-support-list { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; } /* Mac Now card: 18px from the title block to its support rows */
/* rows as one inline card (2026-10-11; the hand-off's three steps, then the joined brief's two sources): the rows share the
   inline block, and the Mac's dashed row rule (--rule-row-dashed: ink 15%, 6px dash 3px gap, 0.5px) parts them, starting
   under the text so the icons keep one column */
.pd-support-list--merged { gap: 0; padding-top: 0; margin-top: 16px; }
.pd-support-list--merged > .pd-support { border-radius: 0; overflow: visible; }
.pd-support-list--merged > .pd-support:first-child .pd-support__body { border-radius: var(--radius-inline) var(--radius-inline) 0 0; corner-shape: var(--shape); }
.pd-support-list--merged > .pd-support:last-child .pd-support__body { border-radius: 0 0 var(--radius-inline) var(--radius-inline); corner-shape: var(--shape); }
.pd-support-list--merged { border-radius: var(--radius-inline); corner-shape: var(--shape); background: var(--surface-inline); box-shadow: var(--ring-inline); overflow: hidden; }
.pd-support-list--merged .pd-support__body { background: none; box-shadow: none; }
.pd-support-list--merged > .pd-support + .pd-support .pd-support__body { background: var(--rule-row-dashed) 38px top / calc(100% - 38px) .5px no-repeat; } /* from under the text to the card's right edge (2026-10-12, the user; it stopped 12px short), as the Mac settings rows' divider */
.pd-support-list--merged .pd-support:not(:has(.pd-support__caret)) .pd-support__body { padding-right: 12px; } /* no caret: 12px all round */

.pd-source { display: flex; margin-top: 16px; }
#run-card .pd-card__sub { padding-bottom: 0; } /* the line that joins both sources (2026-10-11), first in the part that folds away; the rows keep their 18px below it */ /* chapter 03's card is the tallest; two 6px trims keep it at full size in the tile */
#run-card .pd-source { margin-top: 12px; }
#run-card .pd-actions { padding-top: 0; margin-top: 16px; } /* as in every other card */
/* 03 as connected modules (2026-10-10): once handed over (data-run on the panel, main.js) the run monitor grows out
   of the card through a bridge, at its full height; the pair is taller than the tile, so the card is pushed up and
   out past the tile's upper edge (fit() in main.js), the way Calendly's first card leaves as the reply grows. */
.pd-fold { display: grid; grid-template-rows: 1fr; }
.pd-fold > div { min-height: 0; min-width: 0; } /* a grid item: without min-width 0 its nowrap rows would widen the card */
.pd-fold--more > div { display: flex; flex-direction: column; }
#story-panel-2 .pd-run { --run-max: 476px; max-height: var(--run-max); }
#story-panel-2 .pd-bridge:not(.pd-bridge--chapter) { animation: bridge-grow var(--dur-grow) var(--ease-grow) both; }
#story-panel-2 .pd-bridge:not(.pd-bridge--chapter):has(+ [hidden]) { display: none; }
#story-panel-2 .pd-bridge + .pd-run { animation: run-grow var(--dur-grow) var(--ease-grow) backwards; } /* to its own height (--grow-h, main.js): most runs sit well under the cap, and growing to the cap stopped it dead part-way */
#story-panel-2 .pd-bridge + .pd-run > * { animation: content-in calc(480ms * var(--grow-pace)) var(--ease-grow) calc(120ms * var(--grow-pace) + var(--k, 0) * 50ms) backwards; } /* the monitor is tall: its content starts sooner so it is not an empty card for long */
#story-panel-2 .pd-run > :nth-child(2) { --k: 1; } #story-panel-2 .pd-run > :nth-child(3) { --k: 2; }
#story-panel-2 .pd-run[data-leaving] { animation: run-shrink var(--dur-fold) var(--ease-grow) forwards; }
#story-panel-2:has(.pd-run[data-leaving]) .pd-bridge:not(.pd-bridge--chapter) { animation: bridge-shrink var(--dur-fold) var(--ease-grow) forwards; }
@keyframes run-grow { from { max-height: 0; } to { max-height: var(--grow-h, var(--run-max)); } }
@keyframes run-shrink { from { max-height: var(--grow-h, var(--run-max)); } to { max-height: 0; } }
@keyframes bridge-shrink { to { --bh: 2px; --neck: 56px; } }

.pd-actions { display: flex; flex-direction: row; gap: 8px; padding-top: 14px; margin-top: auto; }
.pd-btn {
  flex: 1; height: 44px; padding: 0 16px; border: 0; border-radius: 99px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-family: var(--font-ui); font-size: 14px; letter-spacing: -0.01em; white-space: nowrap;
}
.pd-btn--inline { flex: none; }
.pd-btn__check { --ic: 14px; } /* the SF checkmark before “Applied” (2026-10-20; was the text character ✓) */
/* 03 (2026-10-10): the agent switch joins the Execute button as its second half */
.pd-split { flex: 1; min-width: 0; display: flex; gap: 3px; } /* (2026-10-11) "Execute with" | the agent's logo and the switch: two halves, each its own rounded shape */
.pd-split { position: relative; }
.pd-split > #run-execute { min-width: 0; padding: 0 12px; border-radius: 22px calc(9.6px * var(--k-se)) calc(9.6px * var(--k-se)) 22px; corner-shape: round var(--shape) var(--shape) round; } /* 22 = half the height: with 99px ends the browser scaled every corner down · the inner corners at the gap 6px (2026-10-12, the user: smaller; were 12) */
.pd-split__more { flex: none; width: auto; gap: 6px; padding: 0 14px 0 12px; border-radius: calc(9.6px * var(--k-se)) 22px 22px calc(9.6px * var(--k-se)); corner-shape: var(--shape) round round var(--shape); } /* the capsule ends round, the 6px corners at the gap the superellipse of every other rounded rectangle (2026-10-12, the user: they had lost it) */
.pd-split__more .ic { --ic: 12px; opacity: .6; } /* the chevron smaller and quieter than the logo (2026-10-12; was 16px, full white) */
.pd-split__more .pd-agent { box-shadow: none; }
/* The agent menu (2026-10-12, the user: a menu with Codex and Claude, its look and motion from the Mac prototype).
   The Mac DS MacMenu as the Ask composer's execute picker uses it: 4px in, rows 36 tall (24px logo column, 10px gaps,
   10px sides, 14/20 500, the chosen one 600 with a check), white 92% over a 20px blur, a 1px ink-7% ring and two soft
   shadows, radius --radius-menu (= --radius-sm) and rows 4px less. It opens with jd-modal-in (250ms, opacity and
   scale .96 → 1, --ease-settle) from the corner at its button, and closes in 150ms the same way back. Here it opens
   above the button, its right edge on the button's. */
.pd-menu {
  position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 5; min-width: 220px; padding: 4px;
  display: flex; flex-direction: column; gap: 1px;
  border-radius: calc(19.2px * var(--k-se)); corner-shape: var(--shape); /* app 12 pt (2026-10-15 corner spec) */
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px var(--ink-a-07), 0 2px 6px var(--ink-a-07), 0 14px 36px var(--ink-a-10);
  transform-origin: bottom right; animation: modal-in 250ms var(--ease-settle) both;
}
.pd-menu[hidden] { display: none; }
.pd-menu[data-closing] { opacity: 0; transform: scale(.96); animation: none; pointer-events: none; transition: opacity 150ms var(--ease-settle), transform 150ms var(--ease-settle); }
.pd-menu__item {
  appearance: none; margin: 0; border: 0; background: none; font: inherit; color: var(--text-primary); text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; min-height: 36px; padding: 0 10px;
  border-radius: calc(12.8px * var(--k-se)); corner-shape: var(--shape); outline: none; /* concentric: the menu's 12 pt less its 4px inset = 8 pt */
  font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 500; white-space: nowrap;
  transition: background-color var(--motion-fast) var(--ease-settle), transform 80ms var(--ease-settle);
}
.pd-menu[data-demo] .pd-menu__item { transition: background-color 360ms var(--ease-settle); } /* played by the story: the highlight passes from row to row unhurried (2026-10-12) */
.pd-menu__item:hover, .pd-menu__item:focus-visible, .pd-menu__item[data-hover] { background: var(--state-hover); } /* data-hover: the story's played pointer */
.pd-menu__item:focus-visible { box-shadow: inset 0 0 0 2px var(--ink-a-20); }
.pd-menu__item:active { background: var(--state-pressed); transform: scale(.99); }
.pd-menu__item[aria-checked="true"] { font-weight: 600; }
.pd-menu__item .pd-agent { width: 22px; height: 22px; box-shadow: inset 0 0 0 .5px var(--ink-a-10); }
.pd-menu__item > .ic { --ic: 16px; color: var(--text-primary); }
.pd-menu__item[aria-checked="false"] > .ic { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .pd-menu, .pd-menu[data-closing] { animation: none; transition: none; } .pd-menu__item { transition: none; } } /* the white logo tile sits on the ink as it is, no ring or shadow */
.pd-btn--icon { flex: none; width: 44px; padding: 0; } /* Later as a clock (2026-10-11); its name stays for screen readers and as a tooltip */
.pd-btn--icon .ic { --ic: 18px; }
.pd-btn--primary { background: var(--fill-ink); color: var(--text-on-ink); font-weight: 650; }
.pd-btn--secondary { background: transparent; box-shadow: inset 0 0 0 0.5px var(--rule-strong); color: var(--text-secondary); font-weight: 600; }
/* every card button answers the pointer, the played ones too, and every state eases into the next (2026-11-02, the
   user: hover on the white cards' buttons for a truer demo): ink one step lighter, the outline a 4% wash and full ink */
.pd-btn { transition: background-color var(--dur-1) var(--ease-standard), box-shadow var(--dur-1) var(--ease-standard), color var(--dur-1) var(--ease-standard), opacity var(--dur-1) var(--ease-standard), transform var(--dur-press) var(--ease-standard); }
button.pd-btn { cursor: pointer; }
button.pd-btn:active { transform: scale(0.97); }
button.pd-btn:disabled { opacity: 0.72; cursor: default; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .pd-btn--primary:not(:disabled):hover { background: var(--ink-700); }
  .pd-btn--secondary:not(:disabled):hover { background: var(--state-hover); box-shadow: inset 0 0 0 0.5px var(--ink-a-20); color: var(--text-primary); }
}

/* screen context session (chapter 02) */
.pd-session { display: flex; flex-direction: column; gap: 12px; padding: var(--pad-card); border-radius: var(--r-ui); corner-shape: var(--shape); background: var(--surface-card); box-shadow: var(--ring-card), var(--shadow-card-subtle); }
.pd-session__head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pd-logo { flex: none; width: 28px; height: 28px; border-radius: calc(9.6px * var(--k-se)); corner-shape: var(--shape); display: inline-flex; align-items: center; justify-content: center; background: var(--surface-sunken); color: var(--text-primary); box-shadow: inset 0 0 0 0.5px var(--ink-a-10), var(--shadow-card-subtle); font-family: var(--font-serif); font-weight: 500; font-size: 13px; line-height: 1; }
.pd-logo--mark { background: var(--surface-card); }
.pd-logo--mark img { width: 16px; height: 16px; display: block; }
/* agent logo (2026-10-11): the Mac prototype's DS ConnectorLogo (components/desktop/ConnectorLogo.jsx) — tile from the
   connector registry (Codex and Claude Code: paper-50 with the dark mark), radius 0.75 × size with superellipse(2), inset
   round(0.22 × size) (≥ 40px: 12), a 0.5px ink ring and the subtle card shadow; flat in a row (ring only). Was the iOS
   AgentBadge app-icon tile (radius 0.2237 × size, mark at 56%). */
.pd-agent { flex: none; box-sizing: border-box; width: 20px; height: 20px; padding: 4px; border-radius: calc(15px * var(--k-se)); corner-shape: var(--shape); display: inline-flex; align-items: center; justify-content: center; background: var(--paper-50); box-shadow: inset 0 0 0 .5px var(--ink-a-10), var(--shadow-card-subtle); }
.pd-agent img { width: 100%; height: 100%; display: block; object-fit: contain; }
/* the agents' own colours (2026-10-12, the user): Claude a white mark on its orange (the Mac tokens' --brand-claude),
   Codex a white mark on black; the logo files are one-colour marks, turned white here */
.pd-agent:is([data-agent-badge="claude"], [data-logo="claude"]) { background: #D97757; box-shadow: none; }
.pd-agent:is([data-agent-badge="codex"], [data-logo="codex"]) { background: #000000; box-shadow: none; }
.pd-agent:is([data-agent-badge], [data-logo]) img { filter: brightness(0) invert(1); }
.pd-split__more .pd-agent[data-agent-badge="codex"] { background: #FFFFFF; } /* on the dark split button Codex keeps its white tile, black mark (2026-10-12, the user) */
.pd-split__more .pd-agent[data-agent-badge="codex"] img { filter: none; }
.pd-agent--lg { width: 32px; height: 32px; padding: 7px; border-radius: calc(24px * var(--k-se)); }
.pd-session__app i { font-style: normal; font-weight: 400; color: var(--text-tertiary); margin-inline: 4px; } /* "Screen · Notion", the Mac source naming */
.pd-session__app { min-width: 0; flex: 1; font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-session__meta { flex: none; font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--text-tertiary); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* run monitor (chapter 03, after Execute) */
.pd-run {
  position: relative; width: 420px; max-width: 100%; max-height: 476px; /* as wide as the other cards in the tile (was 100% − 24px, 2026-10-10) */
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-ui); corner-shape: var(--shape);
  background: var(--surface-card); box-shadow: var(--ring-card), var(--shadow-card); /* the same white card as the other steps (was liquid glass) */
  transform-origin: 0 0; animation: modal-in var(--motion-surface) var(--ease-settle) both;
}

/* chapter 04: the learned preference and what it changes in the next brief */
.pd-next { padding: var(--pad-card); /* a standard card (2026-10-11): head, title, the opening in an inline block, the compare link */ animation: modal-in var(--dur-2) var(--ease-settle) both; }
/* chapter 03's result as its own card (2026-10-11): the agent and its state in the head, as the monitor's, then the result
   and two equal buttons; it grows out of the finished monitor like Maya's brief does out of the question */
.pd-result { padding: var(--pad-card); } /* full-width rows: the head pushes its state right, the two buttons share the width */
/* the agent head (2026-10-11: one component for the run monitor and the result): its logo, what it works on and for whom,
   its state on the right; in a padded card it sits like the standard head, 4px above the title */
.pd-agent-head { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.pd-agent-head > .pd-badge { margin-left: auto; }
.pd-card > .pd-agent-head { margin-bottom: 4px; }
/* a card's foot of two equal buttons (2026-10-11: the result, Maya's brief) */
.pd-actions--even { padding-top: 0; margin-top: 16px; }
.story__panel .pd-actions.pd-actions--even .pd-btn, .pd-actions--even .pd-btn { flex: 1 1 0; min-width: 0; } /* also over the phones’ wrapping button rule */
#story-panel-2 .pd-bridge + .pd-result { animation: module-grow var(--dur-grow) var(--ease-grow) backwards; }
#story-panel-2 .pd-bridge + .pd-result > * { animation: content-in calc(480ms * var(--grow-pace)) var(--ease-grow) calc(200ms * var(--grow-pace) + var(--k, 0) * 50ms) backwards; }
.pd-result > :nth-child(2) { --k: 1; } .pd-result > :nth-child(3) { --k: 2; } .pd-result > :nth-child(4) { --k: 3; } /* the buttons last, not with the head (2026-11-03) */
/* chapter 04 (2026-10-10): Maya's brief grows out of the preference card through a bridge, on the same curve as the
   other connected modules; it takes its measured height (--grow-h, main.js), so the pair re-centres as it grows */
#story-panel-3 .pd-bridge:not(.pd-bridge--chapter) { animation: bridge-grow var(--dur-grow) var(--ease-grow) both; }
#story-panel-3 .pd-bridge:not(.pd-bridge--chapter):has(+ [hidden]) { display: none; }
.pd-bridge + .pd-next { animation: module-grow var(--dur-grow) var(--ease-grow) backwards; }
.pd-bridge + .pd-next > :not(.pd-capsule) { animation: content-in calc(480ms * var(--grow-pace)) var(--ease-grow) calc(200ms * var(--grow-pace) + var(--k, 0) * 50ms) backwards; }
.pd-next > :nth-child(2) { --k: 1; } .pd-next > :nth-child(3) { --k: 2; } .pd-next > :nth-child(4) { --k: 3; }
@keyframes bridge-grow { from { --bh: 2px; --neck: 56px; } } /* draws out and thins to its width, no overshoot */
@keyframes module-grow { from { max-height: 0; padding-block: 0; } to { max-height: var(--grow-h, 260px); } }
@keyframes content-in { from { opacity: 0; translate: 0 8px; } }
.pd-capsule { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; margin-bottom: 2px; border-bottom: 1px solid var(--line-1); font-size: var(--fs-caption); }
.pd-capsule[hidden] { display: none; }
.pd-capsule b { font-weight: 650; color: var(--text-primary); }
/* Maya's brief as an outline (2026-10-12): numbered rows in the brief's order. With your approach the recommendation
   row moves to the top (main.js, a FLIP slide), takes the violet wash and says what it recommends; the two rows under
   it show their evidence is still linked. Numbers follow the order (a counter), so the moved row reads 1. */
.pd-outline { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; counter-reset: part; }
.pd-outline li {
  position: relative; display: flex; align-items: baseline; gap: 10px; padding: 7px 10px; margin-inline: -10px;
  border-radius: calc((var(--r-ui-base) - 28.4px) * var(--k-se)); corner-shape: var(--shape); /* concentric with the inline block again (2026-11-03, the user): its (card × .625 − 14) pt × 1.6 = card − 22.4px, less the 6px between: 16.4 (small phones 10); the 12.8 below fell behind when the block grew on 10-30 */ /* concentric with the inline block on screen: its 19.2 less the 6px between ≈ 13, the 8 pt step, 12.8 (2026-10-20, the user: the row read too square at 9.6, which subtracted the gap in app units) */ counter-increment: part; /* concentric with the inline block: its radius less the 6px between their edges (18 / phones 10; 2026-10-12 audit) */
  font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 500; color: var(--text-primary);
  transition: background-color var(--dur-3) var(--ease-standard), color var(--dur-3) var(--ease-standard);
}
/* the rows' own 7px under the last one would add to the block's 16 (2026-10-14, the user: the bottom read deeper than the
   top): the list gives it back, so the last row's text sits as far from the edge as the eyebrow does at the top */
.pd-example > .pd-outline:last-child { margin-bottom: -9px; } /* the last line box on the block's padding, as the eyebrow at the top */
.pd-outline li::before { content: counter(part); flex: none; width: 1ch; font-variant-numeric: tabular-nums; color: var(--text-tertiary); }
.pd-outline__t { flex: 1; min-width: 0; }
.pd-outline__say { color: var(--accent-violet-ink); opacity: 0; transition: opacity var(--dur-3) var(--ease-standard) 200ms; }
.pd-outline__link { flex: none; font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 500; color: var(--text-tertiary); opacity: 0; transition: opacity var(--dur-3) var(--ease-standard) 300ms; }
.pd-outline[data-mode="applied"] li[data-part="rec"] { z-index: 1; background: var(--accent-violet-wash); color: var(--accent-violet-ink); }
.pd-outline[data-mode="applied"] li[data-part="rec"]::before { color: var(--accent-violet-ink); }
.pd-outline[data-mode="applied"] :is(.pd-outline__say, .pd-outline__link) { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .pd-outline li, .pd-outline__say, .pd-outline__link { transition: none; } }
.pd-capsule:not([hidden]) { overflow: hidden; animation: capsule-in var(--dur-3) var(--ease-settle) both; }
@keyframes capsule-in { from { max-height: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; } to { max-height: 48px; opacity: 1; } } /* takes its height gradually, so the connected pair does not jump */
.pd-next__foot { margin: 2px 0 0; letter-spacing: .08em; text-transform: uppercase; font-size: var(--fs-micro); }

@keyframes modal-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.pd-run__head { flex: none; min-height: calc(40px + var(--pad-card) * 2); padding: var(--pad-card); } /* one inner padding for all cards (2026-10-11, the user) */
.pd-run__titles { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 0; }
.pd-run__titles > .pd-run__meta { margin-top: 1px; } /* the title stays on one line, so the source line can sit close under it (2026-11-01, the user) */
.pd-run__title { font-size: var(--fs-label); line-height: 1.2; font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-run__meta { font-size: var(--fs-compact); line-height: 16px; color: var(--text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-icb { flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink-a-05); color: var(--text-secondary); font: inherit; }
.pd-icb .ic { --ic: 17px; }
button.pd-icb { cursor: pointer; transition: background-color var(--dur-1) var(--ease-standard), color var(--dur-1) var(--ease-standard); }
button.pd-icb:hover { background: var(--ink-a-10); }
.pd-icb--quiet { width: 32px; height: 32px; background: transparent; color: var(--text-tertiary); } /* Mac IconButton: no fill until hovered (2026-10-11; was a 36px grey disc) */
button.pd-icb--quiet:hover { background: var(--state-hover); color: var(--text-secondary); }
.pd-run__body { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 16px; padding: 0 var(--pad-card); transition: padding-bottom var(--dur-fold) var(--ease-grow); }
.pd-run:has(> .pd-run__bar[data-gone]) .pd-run__body { padding-bottom: var(--pad-card); transition-duration: var(--dur-grow); } /* finished, its bar goes: the body keeps the cards' 20px to the bottom edge (2026-10-12 audit; it sat flush) */
.pd-run__progress { flex: none; display: flex; align-items: center; gap: 14px; text-align: left; } /* the ring beside the step (2026-10-12; was a centred stack that opened a list of finished steps) */
.pd-run__now { min-width: 0; display: flex; flex-direction: column; }
.pd-ring { position: relative; flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; }
.pd-ring svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.pd-ring__arc { transition: stroke-dashoffset var(--motion-surface) var(--ease-move); }
.pd-ring__frac { position: relative; font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-title); }
.pd-run__step { font-size: var(--fs-body-lg); line-height: 24px; font-weight: 600; text-wrap: balance; }
.pd-run__stepmeta { font-size: var(--fs-compact); line-height: var(--lh-compact); color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.pd-eyebrow { font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 600; letter-spacing: var(--tracking-eyebrow); color: var(--text-secondary); }
.pd-run__bar { flex: none; height: var(--bar-h, auto); min-height: calc(36px + var(--pad-card) * 2); display: flex; align-items: center; gap: 8px; padding: var(--pad-card); transition: height var(--dur-fold) var(--ease-grow), min-height var(--dur-fold) var(--ease-grow), padding-block var(--dur-fold) var(--ease-grow), opacity 240ms var(--ease-standard); }
/* finished, the bar folds on the result's curve as the result grows under it: dropped in one frame it threw the whole column 64px down just as the column set off upwards (2026-11-01, the animation audit) */
.pd-run__bar[data-gone] { height: 0; min-height: 0; padding-block: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: height var(--dur-grow) var(--ease-grow), min-height var(--dur-grow) var(--ease-grow), padding-block var(--dur-grow) var(--ease-grow), opacity 240ms var(--ease-standard), visibility 0s linear var(--dur-grow); }
.pd-run__bar .pd-btn { flex: 1 1 0; min-width: 0; } /* two equal buttons across the card (2026-10-11, the user; the note beside them and the close button went), at the cards' one button height */
.pd-badge__at { display: contents; }
@media (max-width: 479px) { /* phones: “Ready” alone */
  .pd-agent-head .pd-badge__at { display: none; }
}
@media (max-width: 359px) { .story__panel .pd-actions.pd-actions--even .pd-btn { flex: 1 1 auto; padding-inline: 8px; font-size: 13px; } } /* two buttons at 320: they share the width by their labels, and each label stays whole */
@media (max-width: 389px) { /* narrow phones: no status badge, so the one-line title is whole (2026-10-30, the user; at 360 it had 136px and three titles ended in “…”) */
  .pd-agent-head > .pd-badge { display: none; }
}

/* teaching card (chapter 04) */
.pd-example { margin-top: 16px; padding: 12px; border-radius: var(--radius-inline); corner-shape: var(--shape); background: var(--surface-inline); box-shadow: inset 0 0 0 0.5px var(--line-1); }
.pd-next__doc { padding: 16px; } /* its rows reach 10px past the text, so the wash keeps 6px to the block's edge (2026-11-02, the user: 12 read too tight here) */
.pd-example .pd-eyebrow { display: flex; margin-bottom: 4px; }
.pd-example p { margin: 0; font-family: var(--font-serif); font-size: var(--fs-body-lg); line-height: 24px; /* 28 → 24 (2026-11-03, the user: the quote's lines sat too far apart) */ color: var(--text-primary); } /* one inline block for quoted and document text (2026-10-11: the preference's quote, the result's recommendation, Maya's opening), in the primary ink */

/* ---------- 04 roles ----------
   The same design as HOW IT WORKS (it uses the .story classes), mirrored (2026-10-09): the tile on the left, the title
   and the four roles on the right. Each role's card lights its four steps in order and the cue names the step. */
.roles.story { padding-top: 0; } /* the story above owns the space before it */
.story--mirror .jw-stage::before { background-image: url("../img/editorial/jdoe-editorial-n5-a-1280.webp?v=036de890fa96"); }
@media (min-width: 1024px) {
  .story--mirror .story__stage { order: -1; }
  .story--mirror .story__pin { grid-template-columns: minmax(0, 580px) minmax(0, 532px); } /* mirrored: the tile's track comes first */
}
/* Connected modules (2026-10-10, after the brand manual's "Connected Layouts" and Calendly's AI-assistant cards).
   Modules that feed each other are joined by a recessed bridge and grow out of one another: the roles' four steps,
   and in HOW IT WORKS the recording → decision card (01), the screen → the joined brief (02), the preference → Maya's
   brief (04). The motion follows Calendly's, measured frame by frame: a new module takes its height (it is not only
   revealed), so the group stays centred in the tile and the modules above are pushed up; one curve (--ease-grow,
   780ms) moves the module, its bridge and the group together; the content fades in once the shell has opened.
   The bridge is decoration (it carries no text). */
.story { --bridge-gap: 24px; } /* modules 24px apart (2026-10-12, the user: 40 → 28 → 24, shorter and thinner bridges) */
/* The bridge is the brand manual's own (Connected Layouts → Connected Typography, #connected-expression-shape:
   "M220 89C244 89 244 100 244 110C244 120 244 131 220 131H280C256 131 256 120 256 110C256 100 256 89 280 89Z"),
   at its own size (2026-10-10): modules 40px apart, the bridge 1px into each (42px tall), 60px wide, a 12px neck.
   Each corner is the manual's cubic — it leaves the module edge level, turns within ~11px and runs straight down to
   the waist — so the gap on either side ends like a small rounded rectangle and the neck is an upright column.
   Four mask layers flip that one quarter into the corners; a fifth is the neck. Height (--bh) and neck are live
   lengths: growing, it starts as a wide, low bump on the module above and draws out, its neck thinning to 12px on
   the same curve as the modules, with no overshoot. */
@property --neck { syntax: "<length>"; inherits: false; initial-value: 12px; }
@property --bh { syntax: "<length>"; inherits: false; initial-value: 30px; }
/* The bridge as ONE shape (2026-10-12, the user: hairline gaps flashed across and along it while it grew, when it was painted
   from five pieces whose anti-aliased edges let the painting through). One white box, cut by two circles centred on its
   left and right edges; both mask layers cover the whole box, so there is no join to show. The space either side reads as
   the end of a capsule (2026-11-01, the user, after rico's connector): each curve is a true semicircle of half the gap,
   tangent to both cards, and the neck is as wide as the gap. --rx follows --bh, so it stays a semicircle at every height
   as the bridge grows (2026-11-01, the user: a stretched image flattened the ends to points). The box reaches 1px into each
   card, plain white; the cards' 0.5px warm-ink 10% hairline runs along the two curves, drawn 1px short of each end, so no
   line shows inside a card. No padding here: a bridge at rest before its card has no height at all. */
.roles__flow li:not(:last-child)::after, .story__panel .pd-bridge {
  content: ""; --bh: calc(var(--bridge-gap) + 2px); --neck: 24px; /* as wide as the gap (2026-11-01, the user; 16 until then) */ /* 1px into each module: the joins carry no hairline */
  --rx: calc(max(0px, var(--bh) - 2px) / 2); /* half the gap */
  width: calc(var(--neck) + 2 * var(--rx)); height: var(--bh);
  --bridge-line: transparent var(--rx), rgb(35 33 30 / .1) var(--rx), rgb(35 33 30 / .1) calc(var(--rx) + .5px), transparent calc(var(--rx) + .5px);
  --bridge-cut: transparent calc(var(--rx) - .25px), #000 calc(var(--rx) + .25px);
  background:
    radial-gradient(circle at 0 50%, var(--bridge-line)) center / 100% calc(100% - 2px) no-repeat,
    radial-gradient(circle at 100% 50%, var(--bridge-line)) center / 100% calc(100% - 2px) no-repeat,
    #FFFFFF;
  -webkit-mask: radial-gradient(circle at 0 50%, var(--bridge-cut)), radial-gradient(circle at 100% 50%, var(--bridge-cut));
  mask: radial-gradient(circle at 0 50%, var(--bridge-cut)), radial-gradient(circle at 100% 50%, var(--bridge-cut));
  -webkit-mask-composite: source-in; mask-composite: intersect;
  transition: --bh var(--dur-grow) var(--ease-grow), --neck var(--dur-grow) var(--ease-grow); /* no overshoot: the neck settles straight at its width (2026-10-10) */
}
.roles__flow li:not(:last-child)::after { position: absolute; z-index: 1; left: 50%; top: calc(100% - 1px); translate: -50% 0; }
.story__panel .pd-bridge { display: block; position: relative; z-index: 1; flex: none; align-self: center; margin: -11px 0; } /* in the panel's flow (10px gaps) */
/* a module that grows: its row opens from 0fr and its card's padding opens with it, then the content fades in */
/* a module that grows: the card itself goes from no height to its own (interpolate-size), its padding opening with it,
   then its content fades in. Not a 0fr → 1fr grid row: while that animates, Chrome sizes the row's container taller
   than the card inside it, and the bridge below came loose from the card above (2026-10-10). Where height: auto
   cannot animate, the card simply appears at full height — still joined. */
.story { interpolate-size: allow-keywords; }
.pd-grow { display: block; }
.pd-grow > * { height: auto; transition: height var(--dur-grow) var(--ease-grow), padding var(--dur-grow) var(--ease-grow), opacity 240ms var(--ease-standard); }
.pd-grow > * > * { transition: opacity calc(320ms * var(--grow-pace)) var(--ease-standard) calc(200ms * var(--grow-pace) + var(--k, 0) * 50ms), translate calc(480ms * var(--grow-pace)) var(--ease-grow) calc(200ms * var(--grow-pace) + var(--k, 0) * 50ms); }
.pd-grow > * > :nth-child(2) { --k: 1; } .pd-grow > * > :nth-child(3) { --k: 2; } .pd-grow > * > :nth-child(4) { --k: 3; }
:is(.story__panel:is([data-wave="idle"], [data-wave="listen"], [data-wave="pick"]), .story[data-js] #story-panel-1:not([data-beat="2"])) .pd-grow > *, #story-panel-0[data-wave="focus"] .pd-grow--decision > * { height: 0; padding-block: 0; opacity: 0; transition: height var(--dur-fold) var(--ease-grow), padding var(--dur-fold) var(--ease-grow), opacity 160ms linear calc(var(--dur-fold) - 200ms); }
:is(.story__panel:is([data-wave="idle"], [data-wave="listen"], [data-wave="pick"]), .story[data-js] #story-panel-1:not([data-beat="2"])) .pd-grow > * > *, #story-panel-0[data-wave="focus"] .pd-grow--decision > * > * { opacity: 0; translate: 0 8px; transition: opacity 160ms linear calc(var(--dur-fold) - 200ms), translate 0s linear var(--dur-fold); } /* folding back, the content stays and is cut by the closing card, so no empty shell slides by (2026-10-11) */
:is(.story__panel:is([data-wave="idle"], [data-wave="listen"], [data-wave="pick"]), .story[data-js] #story-panel-1:not([data-beat="2"])) .pd-bridge:not(.pd-bridge--chapter), #story-panel-0[data-wave="focus"] .pd-bridge--decision { --bh: 0px; --neck: 56px; margin-block: -10px; transition-duration: var(--dur-fold); } /* 0, not 2px: a folded bridge must not show as a hairline under its card; −10px each side cancels the panel gaps around it, so a folded module adds no height and the next chapter's bridge meets the card above exactly */
/* 02's joined brief grows on its third beat ("Joined with the conversation", data-beat="2") */

/* roles (2026-10-10; standard card parts since 2026-10-12): three connected modules — what goes in (the joined-brief
   card: head, title, the conversation and, under it in the same inline block, what was on screen), what comes out (the
   result card's agent head), what it keeps (chapter 04's card: head, title, line). The step's name stays for screen
   readers (the cue says it aloud). As the cue names each step (data-step on the panel, main.js): the screen's row grows
   into the inputs card and the title's second sentence comes in, then the draft grows out of it through a bridge,
   then the understanding. The list item is the card's shell, so the bridge and the fold keep working on it. */
.roles__flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; text-align: left; }
#roles[data-stage] .story__panel { width: min(420px, calc(100% - 32px)); } /* absolutely placed, its 100% ignores the desk's side padding: on phones the cards ran edge to edge (2026-10-12) */
.roles__flow li {
  position: relative; display: grid; grid-template-rows: 1fr; min-width: 0;
  background: var(--surface-card); border-radius: var(--r-ui); corner-shape: var(--shape); box-shadow: var(--ring-card), var(--shadow-card);
  transition: grid-template-rows var(--dur-grow) var(--ease-grow), margin-top var(--dur-grow) var(--ease-grow), opacity 240ms var(--ease-standard);
}
.roles__flow li + li { margin-top: var(--bridge-gap); }
/* each module paints over the next, so its bridge covers the hairline where it meets the module below */
.roles__flow li:nth-child(1) { z-index: 3; } .roles__flow li:nth-child(2) { z-index: 2; } .roles__flow li:nth-child(3) { z-index: 1; }
.roles__in {
  display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding: var(--pad-card);
  transition: padding var(--dur-grow) var(--ease-grow), opacity 360ms var(--ease-standard) 260ms;
}
.roles__in > .pd-card__sub { padding-bottom: 0; } /* the button's own margin holds the gap */
.roles__cta .pd-btn { cursor: default; } /* they take the hover of the real ones (2026-11-02), still no press */ /* the action card ends on its one call to action (2026-10-15, the copy doc: “Review email ↗”), the insight above it on a quieter step toward it (2026-11-01, the user): shown as they would be, not controls here */
.roles__ext { margin-left: 2px; font-weight: 500; }
/* the copy doc's cards (2026-10-15) quote what was said and what the source says: the lines wrap instead of being cut */
.roles__flow .pd-support__text b { white-space: normal; overflow: visible; text-overflow: clip; text-wrap: pretty; }
/* the agent cards' titles stay on one line (2026-10-30, the user: no wrap; the copy was cut to fit 390 and up, the base rule's ellipsis catches narrower screens) */
.pd-support__body > .roles__src { flex: none; width: 17px; height: 17px; object-fit: contain; } /* the source's own logo (DS connectors) where the screen glyph was */
.roles__in > .pd-agent-head + .pd-card__sub { padding-top: 10px; }
.roles__in > .pd-support { margin-top: 16px; } /* the ready card's draft row, 16 from the head or the line above it, as an inline block (2026-11-02, the user) */
.roles__in > .pd-card__head:has(> .roles__mark) { min-height: 22px; } /* the insight's head holds no 30px avatar: the badge starts on the card's padding (2026-11-01, the user) */
.roles__mark { width: 20px; height: 20px; background: none; } .roles__mark img { width: 20px; height: 20px; } /* as in the app: the bare mark, no round tile, at the card title's 20px (2026-10-30, the user; was 14 on a 30px surface-ground disc), its box no wider, so it ends on the card's 20px padding */ /* J.Doe's mark where a person's photo would be: it is J.Doe that keeps this */
/* the screen's row, inside the inputs' inline block: it opens under the conversation, below the dashed rule */
.roles__more { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--dur-grow) var(--ease-grow); }
.roles__more > div { min-height: 0; overflow: hidden; }
.roles__more .pd-support__body { transition: opacity 360ms var(--ease-standard) 260ms, translate 560ms var(--ease-grow) 260ms; }
.roles__then { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--dur-grow) var(--ease-grow); } /* the title's second sentence, on its own line: it opens with the screen's row */
.roles__then > span { display: block; min-height: 0; overflow: hidden; }
.roles__flow .pd-card__title em { transition: opacity 360ms var(--ease-standard) 260ms; }
.roles__in > * { transition: translate 560ms var(--ease-grow) calc(260ms + var(--k, 0) * 50ms); } /* the lines rise into place one after another */
.roles__in > :nth-child(2) { --k: 1; } .roles__in > :nth-child(3) { --k: 2; } .roles__in > :nth-child(4) { --k: 3; } /* the fourth line (the button, since the cards took a row on 11-02) rose with the head, ahead of the lines above it (2026-11-03, the user) */
.roles__k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* the step's name, for screen readers */
/* not yet reached: the screen's row is closed; the draft and the understanding have no height, gap or bridge */
.story__panel[data-step="0"] .roles__more { grid-template-rows: 0fr; transition-duration: var(--dur-fold); }
.story__panel[data-step="0"] .roles__more .pd-support__body { opacity: 0; translate: 0 8px; transition-duration: 160ms, 0s; transition-delay: calc(var(--dur-fold) - 200ms), var(--dur-fold); }
.story__panel[data-step="0"] .roles__then { grid-template-rows: 0fr; transition-duration: var(--dur-fold); }
.story__panel[data-step="0"] .roles__flow .pd-card__title em { opacity: 0; transition-duration: 160ms; transition-delay: 0s; }
.story__panel:is([data-step="0"], [data-step="1"]) .roles__flow li:nth-child(n+2),
.story__panel[data-step="2"] .roles__flow li:nth-child(3) { grid-template-rows: 0fr; margin-top: 0; opacity: 0; transition: grid-template-rows var(--dur-fold) var(--ease-grow), margin-top var(--dur-fold) var(--ease-grow), opacity 160ms linear calc(var(--dur-fold) - 200ms); } /* folding back is quicker, and the module fades only as its bridge closes */
.story__panel:is([data-step="0"], [data-step="1"]) .roles__flow li:nth-child(n+2) .roles__in,
.story__panel[data-step="2"] .roles__flow li:nth-child(3) .roles__in { padding-block: 0; opacity: 0; transition: padding var(--dur-fold) var(--ease-grow), opacity 160ms linear calc(var(--dur-fold) - 200ms); }
.story__panel:is([data-step="0"], [data-step="1"]) .roles__flow li:nth-child(n+2) .roles__in > *,
.story__panel[data-step="2"] .roles__flow li:nth-child(3) .roles__in > * { translate: 0 8px; transition-duration: 0s; }
.story__panel:is([data-step="0"], [data-step="1"]) .roles__flow li:nth-child(-n+2)::after,
.story__panel[data-step="2"] .roles__flow li:nth-child(2)::after { --bh: 2px; --neck: 56px; opacity: 0; transition-duration: var(--dur-fold); } /* 2px, as the module's gap + 2: from 0 it fell 2px short of the module below for the first 250ms of a grow, and a seam showed. Folded it is out of sight, its last 2px under the card; it goes when the fold ends, and is back at once */
@media (prefers-reduced-motion: no-preference) {
  .story__panel:is([data-step="0"], [data-step="1"]) .roles__flow li:nth-child(-n+2)::after,
  .story__panel[data-step="2"] .roles__flow li:nth-child(2)::after { transition-property: --bh, --neck, opacity; transition-duration: var(--dur-fold), var(--dur-fold), 0s; transition-delay: 0s, 0s, var(--dur-fold); }
}
@media (prefers-reduced-motion: reduce) {
  .roles__flow li, .roles__in, .roles__in > *, .roles__more, .roles__more .pd-support__body, .roles__then, .roles__flow .pd-card__title em, .roles__flow li::after, .story__panel .pd-bridge, .pd-grow, .pd-grow > *, .pd-grow > * > *, .pd-card.pd-wave, .pd-wave__bars,
  .pd-bridge + .pd-next, .pd-bridge + .pd-next > *, .pd-capsule:not([hidden]), #story-panel-2 .pd-bridge, #story-panel-2 .pd-bridge + .pd-run, #story-panel-2 .pd-bridge + .pd-run > *, #story-panel-2 .pd-run[data-leaving], .pd-run__body, .pd-run__bar, .pd-run__bar[data-gone] { transition: none; animation: none; }
}

/* ---------- 05 hardware ---------- */
.hardware { max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); } /* a framed panel: the open sections around it own the spacing */
.hardware__panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; min-height: clamp(460px, 40vw, 600px);
  padding: clamp(32px, 6vw, 72px); background: #000; color: #FFFFFF; /* the film's own black, so the strip the film leaves on the right has no seam now the shade is gone (2026-10-15) */ border-radius: var(--radius-w-stage); corner-shape: var(--shape); /* the story and roles tiles' radius: 64 wide, 44.8 on phones (2026-10-16, the user: it had stayed on the media frames' 44.8) */
}
/* The device film (2026-10-16, the user: “把视频往左边挪一点，减少和右侧文本的重叠，同时优化下这个卡片移动端适配”).
   Wide (≥1024): the film fills the panel's height at 16:9 and is placed by the device, not by the frame — the ring's
   right edge sits at 85% of the frame (measured over the whole render; the held last frame shows 45–85%), so the film's
   left edge goes at the copy column's start (the panel's middle) less 20px (40 until the user asked for “视频也往右挪一点点”)
   and the film moves back 85% of its own width: the ring ends 20px before the column, ~56px before the copy at 1440, and the panel's black (the film's own) fills the rest.
   Narrower (≤1023): the panel stacks — the film on top in its own band, bled to the panel's edges, its lower edge fading
   into the black, then the copy; the copy no longer sits over the device. */
.hardware__bg { position: absolute; top: 0; left: calc(50% - 20px); z-index: -2; display: block; height: 100%; width: auto; max-width: none; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 0; translate: -85% 0; background: #000; }
.hardware__panel::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; corner-shape: inherit; box-shadow: var(--hairline); pointer-events: none; }
/* no shade over the film (2026-10-15, the user: “硬件区域的黑色渐变遮罩可以去掉看看”): the film is shot on black, so the copy reads without one */
.hardware__col { grid-column: 2; }
/* wide: the copy sits a little right of the panel's middle, and the capsule a few px narrower than the column, so the
   film's dark left and the copy balance across the panel (2026-10-16, the user: “输入框可以适当收窄几像素，然后把卡片中
   内容整体往右挪一点点，现在画面不够平衡”); the ring ends at the middle less 20px */
@media (min-width: 1024px) {
  .hardware__col { padding-left: clamp(0px, calc(10vw - 104px), 40px); } /* 0 at 1024 (the column is narrow there: the field kept ~22 characters), 24 at 1280, 40 from 1440 */
  .hardware .jw-waitlist { max-width: min(100%, 536px); margin-inline: 0; }
}
@media (max-width: 1023px) {
  .hardware__panel { --hw-pad: clamp(24px, calc(12.5vw - 24.75px), 56px); /* 24 up to 390 (the phones' 24, 2026-10-11), then wider with the screen — 44 at 550, 56 from 645 (2026-10-16, the user: the copy sat too near the edge at ~550) */ grid-template-columns: minmax(0, 1fr); align-items: start; min-height: 0; padding: 0 var(--hw-pad) var(--hw-pad); }
  .hardware__bg {
    position: relative; left: auto; top: auto; translate: none; height: auto;
    width: calc(100% + 2 * var(--hw-pad)); margin: 0 calc(-1 * var(--hw-pad)); /* bled to the panel's edges; the panel clips it to its corners */
    -webkit-mask: linear-gradient(#000 58%, transparent 98%); mask: linear-gradient(#000 58%, transparent 98%); /* the ring runs out of the frame at the bottom: it fades into the black instead of stopping on a line */
  }
  .hardware__col { grid-column: 1; position: relative; margin-top: calc(-1 * clamp(20px, 5vw, 40px)); } /* the copy starts inside the fade */
}
@media (max-width: 599px) {
  /* phones: a taller band (5:4) so the device reads large; the frame is cut at the sides to a window of 24–94% of it,
     so the light sits a little left of the middle (37%) and the ring ends with room to the edge (87%) */
  .hardware__bg { aspect-ratio: 5 / 4; object-position: 80% 0; }
}
/* Spacing (2026-10-10): the eyebrow → title keeps the site's 16px; the small sub-line tucks under the big title (4px box,
   ≈25px from the title's baseline to its cap height — it read 41px, looser than the eyebrow's 34px) and the sign-up
   steps away (40px), so the three lines read as one group and the capsule as the next thing to do. */
.hardware__col { display: flex; flex-direction: column; }
.hardware .eyebrow { color: #D9D8D5; }
.hardware .section-title { margin-top: 16px; color: inherit; } /* the panel's white */
.hardware__copy { margin: 4px 0 0; font-size: clamp(15px, calc(14px + 0.2vw), 16px); line-height: 1.6; color: #D9D8D5; text-wrap: balance; } /* no lone “you.” on a phone */
/* the hero capsule on the dark panel: same component, glass made near-opaque so it reads as on paper */
.hardware .jw-waitlist { margin: 40px 0 0; }
/* The email capsule scales with its own width (2026-10-16, the user: “移动端的这个控件要等比缩放吧？”): the field and the
   button set their type, padding and height in container units, so on a narrow phone both shrink together instead of
   the button keeping its size and the field cutting its placeholder short. Floors: 12px type, 44px parts (the touch
   minimum); from a ~330px capsule up they reach the desktop sizes (17px, 56px) as before. */
.hardware .jw-waitlist { container-type: inline-size; }
.hardware .jw-waitlist__field { --cap-h: clamp(44px, 14cqi, 56px); --cap-pad: clamp(4px, 1.45cqi, 8px); }
.hardware .jw-waitlist__field .jw-input { font-size: clamp(12px, 5.2cqi, 17px); padding-inline: clamp(10px, 4.4cqi, 24px); }
.hardware .jw-waitlist__btn { font-size: clamp(12px, 5.2cqi, 17px); padding-inline: clamp(10px, 4cqi, 26px); }
/* room for an address on one line (2026-10-16, the user: “邮箱输入框适当增加宽度，不要分成两行”; a phone showed ~17 of
   the 19–25 characters most addresses have): stacked, the capsule may run to 480 instead of the hero's width; on a phone
   the type is a step smaller and the button and field pad less, so the field takes the room */
/* Stacked (≤1023) the capsule runs from a phone's 302 to 480 and every size in it runs linearly with its width between
   the phone values (14.5px type, 44px parts, 12 / 9px padding) and the desktop ones (17px, 56px, 24 / 26px), reached
   only at 480 (2026-10-16, the user: at ~550 it already stood at the desktop size, too heavy for the narrow card);
   under 302 the type keeps shrinking with the capsule (4.8cqi) so a small phone still shows ~20 characters */
@media (max-width: 1023px) {
  .hardware .jw-waitlist { max-width: min(100%, 480px); }
  .hardware .jw-waitlist__field { --cap-h: clamp(44px, calc(23.6px + 6.74cqi), 56px); --cap-pad: clamp(4px, calc(2.247cqi - 2.79px), 8px); }
  .hardware .jw-waitlist__field .jw-input { font-size: clamp(12px, min(calc(10.26px + 1.404cqi), 4.8cqi), 17px); padding-inline: clamp(10px, calc(6.74cqi - 8.36px), 24px); }
  .hardware .jw-waitlist__btn { font-size: clamp(12px, min(calc(10.26px + 1.404cqi), 4.8cqi), 17px); padding-inline: clamp(8px, calc(9.55cqi - 19.84px), 26px); }
}
/* touch screens (2026-11-03): iOS Safari zooms the whole page into a field typed in under 16px, so the address is 16px
   there whatever the capsule's width; the button and the capsule keep their sizes */
@media (pointer: coarse) { .hardware .jw-waitlist__field .jw-input { font-size: 16px; } }
/* on the dark panel the capsule is dark glass (glass.css [data-lg-theme="dark"], iOS dark mode): the field is a dark
   translucent pill with white text, the action a white pill — an ink button would sink into the dark glass (2026-10-10) */
.hardware .jw-waitlist__field .jw-input { background: rgb(118 118 128 / .24); color: #FFFFFF; box-shadow: none; /* iOS dark tertiarySystemFill, as a search field */ }
.hardware .jw-waitlist__field .jw-input::placeholder { color: rgb(235 235 245 / .6); }
.hardware .jw-waitlist__field .jw-input:focus { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .55); }
.hardware .jw-waitlist[data-state="error"] .jw-waitlist__field .jw-input { box-shadow: inset 0 0 0 1.5px #FF6B6B; }
.hardware .jw-waitlist__btn { background: #FFFFFF; color: var(--ink-950); }
.hardware .jw-waitlist__btn:hover { background: rgb(255 255 255 / .86); }
/* phones: 24px sides and 24px under the capsule (2026-10-11): now the floor of the stacked panel's --hw-pad */
.hardware__msg { margin: 16px 0 0; min-height: 16px; font-size: 12px; line-height: 16px; color: #D9D8D5; }
.hardware :focus-visible { outline-color: #FFFFFF; }

/* Section rhythm (2026-10-10): the visible gap between any two neighbouring sections is one --section-gap. The two
   step sections are no longer pinned (2026-10-12), so no empty band around them is taken back out. */
@media (min-width: 1024px) {
  #story { padding-block: 0; margin-top: var(--section-gap); }
  #roles { padding-block: 0; margin-top: var(--section-gap); }
  .hardware { margin-top: var(--section-gap); }
}

/* ---------- FAQ ----------
   After granola.ai/enterprise's “Questions and answers” (2026-10-26, the user): a centred title, 48 above a 768px list
   ruled top and bottom; serif questions 20 → 24 in 72px rows with the chevron at the end; sans answers 18/32 (16/28 on
   phones). The open section after the Device panel: one --section-gap above it, the closing's own padding below. */
.faq { max-width: 1440px; margin: 0 auto; padding: var(--section-gap) clamp(20px, 5vw, 64px) 0; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.faq .section-title { max-width: 768px; font-size: var(--fs-chapter); text-align: center; } /* one step under the section titles (2026-10-26, the user): 48 at 1440, 36 on phones; as wide as the list, so it holds one line on a desktop */
.faq__list { width: 100%; max-width: 768px; border-top: 1px solid var(--ink-a-10); }
.faq__item { border-bottom: 1px solid var(--ink-a-10); }
.faq__q { display: flex; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-family: var(--font-serif); font-size: 20px; line-height: 28px; color: var(--text); -webkit-tap-highlight-color: transparent; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q-text { flex: 1; text-wrap: pretty; }
.faq__q:focus-visible { outline: 2px solid var(--interaction-focus); outline-offset: 4px; border-radius: 4px; }
.faq__chev { flex: none; width: 20px; height: 20px; fill: currentColor; transition: rotate 320ms cubic-bezier(.22, 1, .36, 1); } /* in step with the answer's tween (main.js initFaq) */
.faq__item[open]:not([data-closing]) .faq__chev { rotate: 180deg; }
.faq__a { padding-right: 36px; font-size: 16px; line-height: 28px; color: var(--text-2); }
.faq__a::after { content: ""; display: block; height: 24px; } /* the space under an answer as content, so a 0px tween hides it too (padding would stay) */
.faq__a p { margin: 0; text-wrap: pretty; }
.faq__a p + p { margin-top: 12px; }
.faq__a a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.faq__a a:hover { color: var(--text); }
@media (min-width: 768px) {
  .faq__q { font-size: 24px; line-height: 32px; }
  .faq__a { font-size: 18px; line-height: 32px; }
}

/* ---------- closing ----------
   After Calendly's closing section: the approved line, then the same sign-up capsule as the hero.
   (The recap chips above the line were removed 2026-10-10.) */
.closing {
  position: relative; isolation: isolate;
  padding: var(--section-gap) clamp(20px, 5vw, 64px) calc(var(--section-pad) + clamp(220px, 26vw, 400px));
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
  /* full-bleed landscape: the copy sits on paper, the painting rises from below and closes the page. Since 2026-10-12
     (the user: the same picture as the hero) it is the hero's D painting with its paper sky, in the hero's size tiers;
     was Editorial v7 N4-A, the green valley */
  background: url("../img/hero/jdoe-hero-d-paper-v4-3072.webp?v=284fa8d4ee7c") center 70% / cover no-repeat var(--paper-100);
  background-image: image-set(url("../img/hero/jdoe-hero-d-paper-v4-3072.avif?v=46a44d1162f4") type("image/avif"), url("../img/hero/jdoe-hero-d-paper-v4-3072.webp?v=284fa8d4ee7c") type("image/webp"));
}
@media (min-width: 1600px) and (min-resolution: 2dppx) { /* large high-density screens (5K): the 4x tier, as in the hero */
  .closing { background-image: url("../img/hero/jdoe-hero-d-paper-v4-6144.webp?v=b403f50d7c11"); background-image: image-set(url("../img/hero/jdoe-hero-d-paper-v4-6144.avif?v=d06ce41ed0b3") type("image/avif"), url("../img/hero/jdoe-hero-d-paper-v4-6144.webp?v=b403f50d7c11") type("image/webp")); }
}
@media (max-width: 599px) and (max-aspect-ratio: 4/5) { /* phones: the hero's upright version */
  .closing { background-image: url("../img/hero/jdoe-hero-d-paper-portrait-v4.webp?v=5052f635a380"); }
}
/* the sky melts into the page above (no hard edge, like Calendly's gradient fading out) */
.closing::before { content: ""; position: absolute; inset: 0 0 auto; height: 64%; z-index: -1; pointer-events: none; background: linear-gradient(var(--paper-100) 0%, var(--paper-100) 68%, rgb(247 246 244 / 0) 100%); } /* the copy always reads on paper, whichever painting is behind */
/* the footer sits on the painting (2026-10-10, was a paper sheet over it): a low shade keeps its white text legible */
.closing::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 320px; z-index: -1; pointer-events: none; background: linear-gradient(rgb(19 19 19 / 0), rgb(19 19 19 / .5)); }
.closing .jw-waitlist { margin-top: 12px; }

/* ---------- 06 footer ---------- */
/* 2026-10-10: no ground of its own. The footer lies over the bottom of the closing painting, set off by one hairline,
   its content reversed to white (the reverse lockup). The body is its containing block, so it sits on the page's last pixels. */
body { position: relative; }
.site-footer {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: 1440px; margin: 0 auto; padding: clamp(16px, calc(14.25px + .45vw), 20px) clamp(20px, 5vw, 64px) clamp(20px, calc(16.5px + .9vw), 28px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
  font-size: clamp(12px, calc(11.56px + .11vw), 13px); line-height: 16px; color: rgb(255 255 255 / .86);
} /* compact on every screen (2026-10-12, the user: “footer 紧凑些，logo 和文字可以适当缩小”; was 32/48, a 120px lockup and 14px):
     16/20 → 20/28 padding, a 72 → 84px lockup (the nav's size) and 12 → 13px, linear from 390 to ~1280 like the capsule */
.site-footer::before { content: ""; position: absolute; top: 0; left: clamp(20px, 5vw, 64px); right: clamp(20px, 5vw, 64px); height: 1px; background: rgb(255 255 255 / .32); }
.site-footer img { display: block; width: clamp(72px, calc(66.75px + 1.35vw), 84px); height: auto; }
.site-footer__logo { filter: brightness(0) invert(1); } /* the nav's lockup file, reversed: the reverse master differs only in fill (#2B2B2B → #FFFFFF), so one download serves both (2026-10-11) */
.site-footer__copy { margin-left: 0; }
/* the social row (2026-10-14): 18px marks at 86% white, full on hover, each in a 36px target; pushed right, the © after it */
.site-footer__social { display: flex; align-items: center; gap: 4px; margin: -8px -8px -8px auto; }
.site-footer__social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; color: rgb(255 255 255 / .86); transition: color var(--dur-1) var(--ease-standard), background-color var(--dur-1) var(--ease-standard); }
.site-footer__social .ic { width: 20px; height: 20px; } /* one Tabler line set at 1.8/24: a 1.5px line at this size */
@media (hover: hover) and (pointer: fine) { .site-footer__social a:hover { color: #FFFFFF; background: rgb(255 255 255 / .12); } }
.site-footer__social a:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.site-footer__social a:active { background: rgb(255 255 255 / .2); }
/* the © and the two legal pages as one line (2026-10-26, the user, after yutori.com): in the middle of the row from
   600px up, spanning the footer's own padding to sit on it; on phones under the lockup and the marks */
.site-footer__colophon { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.site-footer__colophon .site-footer__copy { margin-right: 2px; }
.site-footer__mark { opacity: .6; }
.site-footer__legal { display: inline-flex; align-items: center; gap: 6px; }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: 36px; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgb(255 255 255 / .5); text-underline-offset: 3px; }
.site-footer__legal a:hover { color: #FFFFFF; text-decoration-color: currentColor; }
.site-footer__legal a:active { text-decoration-thickness: 2px; }
.site-footer__legal a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (pointer: coarse) { .site-footer__legal a { position: relative; } .site-footer__legal a::after { content: ""; position: absolute; inset: -4px 0; } } /* touch: 44px tall targets, the look unchanged (2026-11-03) */
@media (min-width: 600px) {
  .site-footer__colophon { position: absolute; left: 50%; translate: -50% 0; top: clamp(16px, calc(14.25px + .45vw), 20px); bottom: clamp(20px, calc(16.5px + .9vw), 28px); }
}
@media (max-width: 599px) { /* phones, two rows (2026-10-30, the user; was one centred column): the lockup left and the ©
     line “© 2026 J.Doe ( Privacy | Terms )” right, on the footer's 20px edges (the legal pages had a row of their own for
     a moment; the user: back beside the ©); the marks as round glass buttons under them, 16px apart and centred */
  .site-footer { display: grid; grid-template-columns: auto auto; justify-content: space-between; align-items: center; gap: 20px 12px; padding: 28px 20px; }
  .site-footer > :is(.site-footer__logo, .site-footer__home) { grid-area: 1 / 1; }
  .site-footer__colophon { grid-area: 1 / 2; justify-self: end; gap: 5px; }
  .site-footer__colophon .site-footer__copy { margin-right: 1px; }
  .site-footer__legal { gap: 5px; }
  .site-footer__social { grid-area: 2 / 1 / 3 / 3; justify-self: center; justify-content: center; margin: 0; gap: 16px; } /* a set 16px apart, centred, not spread to the edges (2026-10-30, the user) */
  /* the narrowest phones (320–359): no room for the lockup beside the © line, so it goes and the line centres
     (2026-10-30, the user) */
  @media (max-width: 359px) {
    .site-footer > :is(.site-footer__logo, .site-footer__home), .site-footer.site-footer--paper > .site-footer__home { display: none; } /* the paper footer shows its home link later, at the same weight */
    .site-footer__colophon { grid-area: 1 / 1 / 2 / 3; justify-self: center; }
  }
  /* the page's dark Liquid Glass (glass.css [data-lg-theme="dark"], the film's play button surface): a lighter dark body, a
     dark .5px rim, a faint 1px edge light, the lift */
  .site-footer__social a {
    position: relative; isolation: isolate; width: 44px; height: 44px; color: rgb(255 255 255 / .94);
    background: rgb(72 72 76 / .55); -webkit-backdrop-filter: blur(28px) saturate(1.5); backdrop-filter: blur(28px) saturate(1.5);
    box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .55), 0 .5px 1px rgb(0 0 0 / .28), 0 5px 15px rgb(0 0 0 / .3); /* the lift a step lighter, as the film's play button (2026-10-30) */
  }
  .site-footer__social a::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(90deg, rgb(255 255 255 / .14), rgb(255 255 255 / .14) 6%, rgb(255 255 255 / .1) 13%, rgb(255 255 255 / .1) 87%, rgb(255 255 255 / .14) 94%, rgb(255 255 255 / .14));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
  }
  /* the legal pages' paper footer: the light glass instead (glass.css :root recipe, pill tier) */
  .site-footer--paper .site-footer__social a {
    color: var(--text); background: rgb(252 251 248 / .6); -webkit-backdrop-filter: blur(12px) saturate(1.6); backdrop-filter: blur(12px) saturate(1.6);
    box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .14), inset 0 1px 0 -.5px #FFFFFF, 0 .5px 1px rgb(0 0 0 / .06), 0 2px 6px rgb(0 0 0 / .05);
  }
  .site-footer--paper .site-footer__social a::before { display: none; }
  /* a narrow desktop window: hover brightens the glass instead of swapping it for the flat 12% / 4% fill */
  @media (hover: hover) and (pointer: fine) {
    .site-footer__social a:hover { background: rgb(88 88 92 / .62); }
    .site-footer.site-footer--paper .site-footer__social a:hover { background: rgb(255 255 255 / .85); } /* the paper footer's own hover comes later */
  }
  @media (prefers-reduced-transparency: reduce) {
    .site-footer__social a { background: rgb(44 44 47); -webkit-backdrop-filter: none; backdrop-filter: none; }
    .site-footer--paper .site-footer__social a { background: rgb(252 251 248); }
  }
}

/* ---------- legal document pages (/privacy-policy/, /terms-of-service/) ----------
   2026-10-26 (the user): the legacy legal text in the layout of linear.app/customers/ramp, in our type — an eyebrow
   and title (Linear's crumb and 48px H1), a 16:9 header painting, then the article opening on the dates as a ruled
   facts row (their Founded / Switched row), section titles 56 above with 16 to the text, body 17/28 (their 17/27.2).
   All of it in one 640px column (their 624), the title set left and the painting as wide as the text (the user). */
.doc { padding: clamp(112px, calc(96px + 3.6vw), 152px) clamp(20px, 5vw, 64px) clamp(96px, calc(68px + 6.4vw), 160px); } /* the page ends on its last section, so less than a --section-gap above the footer */
.doc__head { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.doc__eyebrow { color: var(--text-2); }
.doc__title { margin: 0; font-size: var(--fs-chapter); font-weight: var(--fw-heading); line-height: 1.1; letter-spacing: -0.015em; color: var(--text); text-wrap: balance; }
.doc__hero { max-width: 640px; margin: clamp(32px, calc(26px + 1.1vw), 40px) auto 0; border-radius: calc(clamp(19.2px, calc(3.7px + 3.975vw), 32px) * var(--k-se)); } /* the corner in proportion to the picture (the user: 44.8 was the 960px film's): app 12 pt at 350 wide to 20 pt at 640 */
.doc__hero .media-frame__brand { background: rgb(19 19 19 / .18); } /* the homepage film's white symbol (2026-10-26, the user), on a lighter dim: these are pale paintings, not a dark photo */
.doc__hero .media-frame__mark { width: 16%; filter: drop-shadow(0 1px 14px rgb(19 19 19 / .32)); } /* larger than the film's 12% and with a soft halo, so the symbol still reads where it lands on a white cloud (the user) */
.doc__hero .media-frame__mark::before { background: rgb(250 248 247); } /* solid paper white, not the film's 85% (the user: too see-through) */
.doc__body { max-width: 640px; margin: clamp(48px, calc(36px + 2.2vw), 72px) auto 0; font-size: 17px; line-height: 28px; color: var(--text-2); }
.doc__body > :first-child { margin-top: 0; }
.doc__body p, .doc__body ul { margin: 16px 0 0; text-wrap: pretty; }
.doc__body h2 { margin: 56px 0 0; font-family: var(--font-serif); font-weight: var(--fw-heading); font-size: clamp(22px, calc(19.8px + .45vw), 26px); line-height: 1.25; letter-spacing: -0.01em; color: var(--text); scroll-margin-top: 104px; text-wrap: balance; }
.doc__body strong { font-weight: 600; color: var(--text); }
.doc__body a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--line-3); text-underline-offset: 3px; overflow-wrap: anywhere; transition: text-decoration-color var(--dur-1) var(--ease-standard); }
.doc__body a:hover { text-decoration-color: currentColor; }
.doc__body ul { padding-left: 1.2em; }
.doc__body li + li { margin-top: 8px; }
.doc__body li::marker { color: var(--text-3); }
.doc__facts { display: flex; flex-wrap: wrap; gap: 12px 48px; margin: 0; padding: 20px 0; border-block: 1px solid var(--ink-a-10); font-size: 15px; line-height: 22px; }
.doc__facts div { display: flex; flex-direction: column; gap: 2px; }
.doc__facts dt { font-weight: 600; color: var(--text); }
.doc__facts dd { margin: 0; }
.doc__colon { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* the legacy “Effective date:” kept whole for reading and the text check, the label shown without it */
.doc__facts + p { margin-top: 40px; font-family: var(--font-serif); font-size: clamp(19px, calc(17.9px + .23vw), 21px); line-height: 1.5; color: var(--text); } /* the opening paragraph as the lead, as Linear's (Privacy has one; Terms opens on its first section) */
@media (max-width: 599px) {
  .doc__body { font-size: 16px; line-height: 26px; }
  .doc__body h2 { margin-top: 48px; }
  .doc__facts { gap: 12px 32px; }
}

/* the homepage footer on paper (legal pages): no painting under it, so ink on paper, the reverse lockup undone */
.site-footer--paper { position: relative; color: var(--text-2); }
.site-footer--paper::before { background: var(--ink-a-10); }
.site-footer--paper .site-footer__home { display: block; }
.site-footer--paper .site-footer__logo { filter: none; }
.site-footer--paper .site-footer__social a { color: var(--text-2); }
@media (hover: hover) and (pointer: fine) { .site-footer--paper .site-footer__social a:hover { color: var(--text); background: var(--ink-a-04); } }
.site-footer--paper :is(.site-footer__social a, .site-footer__legal a):focus-visible { outline-color: var(--interaction-focus); }
.site-footer--paper .site-footer__legal a { text-decoration-color: var(--line-3); }
.site-footer--paper .site-footer__legal a:hover { color: var(--text); text-decoration-color: currentColor; }
.site-footer--paper .site-footer__legal a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* ---------- join dialog ---------- */
/* the Mac sheet on phones (main.js initMacOnHandheld) wears the same window: its header, one action, a status line */
.mac-sheet .join__scroll { gap: 24px; }
.mac-sheet__done { margin: -12px 0 0; min-height: 20px; font-size: 14px; line-height: 20px; color: var(--ink-500); text-align: center; overflow-wrap: anywhere; }
.mac-sheet__done:empty { display: none; }
.join-scrim {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(19, 19, 19, 0.32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px; overflow: auto;
  /* the Mac tokens it uses (tools/_mac/tokens.css §7 and the IconButton states); the page's product scope ([data-pds])
     does not reach the dialog */
  --ease-settle: cubic-bezier(0.22, 1, 0.36, 1); --modal-open-dur: 250ms; --modal-close-dur: 150ms; --modal-scale: .96;
  --icb-fg: rgba(35, 33, 30, .76); --icb-fg-hover: rgba(35, 33, 30, .96); --icb-hover: rgba(35, 33, 30, .04); --icb-press: rgba(35, 33, 30, .07);
  animation: join-fade var(--modal-open-dur) var(--ease-settle) both;
}
/* In and out (2026-10-12, the user: from the Mac prototype's dialogs): the window opens with jd-modal-in — 250ms,
   opacity and scale .96 → 1 on --ease-settle, from its centre — and the scrim fades in with it; closing (data-closing,
   main.js) plays jd-exit, 150ms back to .96 and transparent, the scrim fading out in step. Reduced motion: 100ms
   fades, no scale (the Mac tokens' reduced set). */
.join-scrim[data-closing] { animation: join-fade-out var(--modal-close-dur) var(--ease-settle) forwards; pointer-events: none; }
.join-scrim > .join { animation: modal-in var(--modal-open-dur) var(--ease-settle) both; }
.join-scrim[data-closing] > .join { animation: modal-out var(--modal-close-dur) var(--ease-settle) forwards; }
@keyframes join-fade { from { opacity: 0; } }
@keyframes join-fade-out { to { opacity: 0; } }
@keyframes modal-out { to { opacity: 0; transform: scale(var(--modal-scale, .96)); } }
@media (prefers-reduced-motion: reduce) {
  .join-scrim, .join-scrim > .join { animation: join-fade 100ms linear both; }
  .join-scrim[data-closing], .join-scrim[data-closing] > .join { animation: join-fade-out 100ms linear forwards; }
}
/* 2026-10-10 hierarchy: the bar (wordmark + close) → title and one line → the field → one action → the way to the
   other path → the prototype note. Spacing groups them: 24px between groups, 8–16px inside a group. */
.join {
  position: relative; width: 100%; max-width: 480px; max-height: calc(100svh - 40px); overflow: hidden; display: flex; /* 440 → 480 with wider margins, the column stays 368 (2026-10-14, after Mobbin's dialog) */
  background: #FFFFFF; border-radius: calc(44.8px * var(--k-se)); corner-shape: var(--shape); /* a floating window: app 28 pt (2026-10-15 corner spec) */
  box-shadow: var(--hairline), 0 24px 64px rgba(35, 33, 30, 0.18);
}
/* the dialog's body scrolls inside the box (2026-10-13), so on a short screen the close button stays in its corner and
   the questions' Skip / Save stay at the foot */
.join__scroll {
  --jp-x: clamp(24px, 6vw, 56px); /* side margins: 24 on phones, 56 on desktop (a 368 column in 480, ≈ Mobbin's 2/3) */
  flex: 1; min-width: 0; overflow: auto; overscroll-behavior: contain;
  padding: clamp(40px, 8vw, 56px) var(--jp-x) clamp(24px, 5vw, 40px); display: flex; flex-direction: column; gap: 32px;
}
.join__close { /* the Mac DS IconButton, compact and plain (styles/controls.css): 32px round, the 15px glyph at text-secondary,
                hover ink 4% and the text colour, pressed ink 7% at --press-control .97; placed as in FocusWindow's head
                (52px tall, 14px from the right: the button's top 10px down). 2026-10-15 corner spec: 16px from both edges, so
                it clears the dialog's 44.8 superellipse corner */
  position: absolute; top: 16px; right: 16px; z-index: 2; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; background: #FFFFFF; color: var(--icb-fg); cursor: pointer;
  transition: background-color 110ms var(--ease-settle), color 110ms var(--ease-settle), transform 80ms var(--ease-settle);
}
.join__close .ic { width: 15px; height: 15px; fill: currentColor; }
@media (hover: hover) and (pointer: fine) { .join__close:hover { background: linear-gradient(var(--icb-hover), var(--icb-hover)) #FFFFFF; color: var(--icb-fg-hover); } }
.join__close:active { background: linear-gradient(var(--icb-press), var(--icb-press)) #FFFFFF; color: var(--icb-fg-hover); transform: scale(.97); } /* white under the tints: the body may scroll beneath it */
.join__close:focus-visible { outline: 2px solid var(--interaction-focus); outline-offset: 2px; }
.join__header { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; } /* the title and its line centred (2026-10-12, the user) */
.join__title { font-weight: var(--fw-heading); margin: 0; font-size: clamp(28px, calc(24px + .6vw), 32px); line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; outline: none; }
.join__desc { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink-500); text-wrap: balance; }
/* the app icon above the title, as on a connect sheet: the iOS prototype's home-screen icon (dark) at the same 64px
   (2026-10-14, the user; was an ink tile drawn in CSS around the symbol) */
.join__mark { display: block; width: 64px; height: 64px; margin-bottom: 16px; }
.join__form { display: flex; flex-direction: column; gap: 12px; }
.join__field { display: flex; flex-direction: column; gap: 8px; }
/* Google sign-in (2026-10-13, the user): a pill as tall as the submit, #1F1F1F text and the standard G at 20px, in the
   page's Liquid Glass (.lg .lg-pill-lg, as the nav and the sign-up capsule; it was Google's white with a #747775 stroke);
   hovered, the glass takes a little more tint. Then a hairline "or" before the email */
.join__sso { display: flex; flex-direction: column; gap: 10px; } /* Google and Apple 10 apart, as the DS sign-in stack */
.join__sso .join__or { margin-top: 6px; }
.join__google {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 20px;
  border: 0; color: #1F1F1F;
  font: inherit; font-size: 16px; font-weight: 500; line-height: 20px; cursor: pointer;
}
.join__google:hover { --lg-surface: 236 235 232; --lg-opacity: .55; }
.join__google:active { transform: scale(0.97); }
.join__google:focus-visible { outline: 2px solid var(--interaction-focus); outline-offset: 2px; }
.join__google[aria-busy="true"] { cursor: progress; opacity: 0.72; }
.join__google-g { flex: none; width: 18px; height: 18px; } /* the G at 18 and the apple at 22 (its glyph fills less of its box) read the same size (2026-10-14, the user) */
.join__apple-mark { width: 22px; height: 22px; margin-top: -1px; }
.join__or { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-500); }
.join__or::before, .join__or::after { content: ""; flex: 1; height: 1px; background: var(--line-1); }
.join__label { font-size: 14px; line-height: 20px; font-weight: 600; }
.join__input {
  width: 100%; min-width: 0; height: 48px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--soft-page); font: inherit; font-size: 16px; color: var(--ink-800); outline: none; /* a filled field, no ring at rest (2026-10-14, as Mobbin's account row) */
  box-shadow: none; transition: box-shadow var(--dur-1) var(--ease-standard), background-color var(--dur-1) var(--ease-standard);
}
.join__input:focus { background: var(--paper-50); box-shadow: var(--focus-field); } /* 1px warm ink 55%, as the Waitlist field (2026-10-15 web audit; was 2px blue) */
.join__input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--danger); }
.join__input:read-only { color: var(--ink-600); }
.join__msg { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-600); }
.join__msg[data-tone="error"] { color: var(--danger); }
.join__msg-icon { display: none; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--danger); color: #FFFFFF; font-size: 12px; line-height: 18px; font-weight: 700; text-align: center; }
.join__msg[data-tone="error"] .join__msg-icon { display: inline-block; }
.join__msg-text { flex: 1; min-width: 0; }
.join__msg:has(.join__msg-text:empty) { display: none; } /* no reserved slot: the action sits right under the field until there is something to say */
.join__submit {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px;
  border: 0; border-radius: 999px; background: var(--ink-950); color: #FFFFFF;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 20px; text-align: center; cursor: pointer;
}
.join__submit:hover { background: var(--ink-800); }
.join__submit:active { transform: scale(0.97); }
.join__submit:disabled { cursor: progress; }
.join__submit[aria-busy="true"] { opacity: 0.72; } /* Form States matrix · 05 提交中 */
.join__spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #FFFFFF; animation: spin 800ms linear infinite; }
.join__submit[aria-busy="true"] .join__spinner { display: inline-block; }
/* the other path as a filled secondary button under the primary (2026-10-14, as Mobbin's Cancel) */
.join__alt { min-height: 48px; padding: 12px 20px; border: 0; border-radius: 999px; background: var(--soft-page); font: inherit; font-size: 16px; font-weight: 600; line-height: 20px; color: var(--ink-800); cursor: pointer; transition: background-color var(--dur-1) var(--ease-standard); }
@media (hover: hover) and (pointer: fine) { .join__alt:hover { background: rgba(35, 33, 30, 0.10); } } /* the grey button 6% + the 4% hover */
.join__alt:active { transform: scale(0.97); background: rgba(35, 33, 30, 0.10); }
.join__alt:focus-visible { outline: 2px solid var(--interaction-focus); outline-offset: 2px; }
/* both panels' other path is a ghost (2026-10-14, the user): text only; on hover an underline grows under the label from
   0 to its full width (180ms, the settle curve — quick, not dragged), shrinking back on leave; keyboard focus shows it too */
.join__alt--ghost { align-self: center; min-height: 40px; padding: 8px 16px; background: transparent; color: var(--ink-600); }
.join__form > .join__alt--ghost { margin-top: -6px; } /* closer to the button above (2026-10-14, the user) */
.join__u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size 180ms cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) and (pointer: fine) { .join__alt--ghost:hover { background: transparent; color: var(--ink-800); } .join__alt--ghost:hover .join__u { background-size: 100% 1px; } }
.join__alt--ghost:focus-visible .join__u { background-size: 100% 1px; }
.join__alt--ghost:active { background: transparent; }
@media (prefers-reduced-motion: reduce) { .join__u { transition: none; } }
.join__switch { align-self: center; margin-top: -4px; padding: 4px 8px; border: 0; background: none; font: inherit; font-size: 14px; line-height: 20px; color: var(--ink-600); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; cursor: pointer; }
.join__switch:hover { color: var(--ink-800); text-decoration-color: currentColor; }
/* the notice at the point of collection (2026-10-13): one quiet line under the form */
.join__legal { margin: 8px 0 0; font-size: 12px; line-height: 16px; color: var(--ink-500); text-align: center; text-wrap: balance; }
.legal-link a, .hardware__legal a { color: inherit; text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 2px; }
/* optional questions after the sign-up (2026-10-13): chips in the dialog's pill language, pressed = ink */
.join__more { align-self: stretch; display: flex; flex-direction: column; gap: 16px; margin-top: 4px; padding-top: 20px; border-top: 1px solid var(--line-1); text-align: left; }
.join__more-title { margin: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink-800); }
.join__more-title span { font-size: 12px; line-height: 16px; font-weight: 400; color: var(--ink-500); }
.join__q { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.join__q legend { padding: 0; margin-bottom: 8px; font-size: 14px; line-height: 20px; color: var(--ink-600); }
.join__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.join__chip {
  min-height: 36px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--paper-50); box-shadow: inset 0 0 0 .5px var(--line-2);
  font: inherit; font-size: 14px; line-height: 20px; color: var(--ink-800); cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-standard), color var(--dur-1) var(--ease-standard), box-shadow var(--dur-1) var(--ease-standard);
}
@media (hover: hover) and (pointer: fine) { .join__chip:hover { background: rgba(35, 33, 30, 0.04); } }
.join__chip:active { transform: scale(0.97); }
.join__chip[aria-pressed="true"] { background: var(--ink-950); color: #FFFFFF; box-shadow: none; }
.join__chip:focus-visible { outline: 2px solid var(--interaction-focus); outline-offset: 2px; }
/* Skip and Save on one line (2026-10-13), held at the dialog's foot while a short screen scrolls the questions */
.join__more-actions {
  position: sticky; bottom: 0; z-index: 1; display: flex; gap: 8px;
  margin: 4px calc(-1 * var(--jp-x)) 0; padding: 12px var(--jp-x) clamp(24px, 5vw, 40px);
  background: linear-gradient(rgb(255 255 255 / 0), #FFFFFF 12px);
}
.join__more-actions .join__submit { flex: 1; min-width: 0; }
/* Skip: the DS's gray secondary (Button variant "gray": --line-2, warm ink 10%, under --text-primary at 600), short,
   beside Save (2026-10-14, the user: one light warm-grey secondary; was a ghost) */
.join__more-actions .join__switch { flex: none; margin: 0; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--soft-page); font-size: 16px; font-weight: 600; color: rgb(35 33 30 / .96); text-decoration: none; transition: background-color var(--dur-1) var(--ease-standard); }
@media (hover: hover) and (pointer: fine) { .join__more-actions .join__switch:hover { background: rgba(35, 33, 30, 0.10); } }
.join__more-actions .join__switch:active { background: rgb(35 33 30 / .18); transform: scale(0.97); }
/* while the questions show, the confirmation above them tightens (2026-10-13: 770 → about 620px tall at 375 wide, so a
   375×667 phone and a 1280×720 laptop show the whole step; smaller or landscape phones scroll the questions under the
   held Skip / Save) */
.join__result:has(> .join__more:not([hidden])) { gap: 10px; }
.join__result:has(> .join__more:not([hidden])) .join__doe { width: 52px; height: 52px; }
.join__result:has(> .join__more:not([hidden])) .join__title { margin-top: 0; }
.join__result:has(> .join__more:not([hidden])) .join__body { font-size: 14px; line-height: 20px; }
.join:has(.join__result:not([hidden]) > .join__more:not([hidden])) .join__scroll { padding-top: 32px; padding-bottom: 0; } /* the actions row carries the foot's padding */
.join__more { gap: 14px; padding-top: 12px; }
.join__q legend { margin-bottom: 4px; }
.join__chips { gap: 6px; }
.join__chip { min-height: 32px; padding: 6px 12px; }
.join__thanks { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-600); }
.hardware__legal { margin: 12px 0 0; font-size: 12px; line-height: 16px; color: rgb(217 216 213 / .72); }
/* the status line keeps no empty slot between the capsule and the notice (2026-10-14, the user: the notice sat too far
   below the capsule — 16 + 16 + 4 = 36px); it takes its place there only once there is something to say */
.hardware__msg:empty { min-height: 0; margin-top: 0; }
.join__result { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; } /* centred like the form's title group */
.join__result .join__title { margin-top: 4px; }
.join__doe { display: block; width: 72px; height: 72px; } /* 56 → 72 (2026-10-14, the user: a little larger) */ /* Little Doe greets the confirmation (2026-10-10, was a check disc) */
.join__body { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-600); }
.join__back { align-self: stretch; margin-top: 8px; height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 .5px var(--line-3); font: inherit; font-size: 16px; font-weight: 600; color: var(--ink-800); cursor: pointer; }
.join__back:hover { background: rgba(35, 33, 30, 0.04); }

/* Story below 1024px without the tile (reduced motion, or no script): no pinning and no scaling. The wrappers dissolve
   (display: contents) so each step and its card share one column and interleave by order: the step's text, then its
   card on its own framed tile. Every step rests on its result; main.js tracks the card nearest the middle. */
@media (max-width: 1023px) {
  .story:not([data-stage]) .story__grid { display: flex; flex-direction: column; }
  .story:not([data-stage]) :is(.story__pin, .story__side, .story__list, .story__stage, .jw-stage, .story__scale, .story__desk) { display: contents; }
  .story:not([data-stage]) .story__head { order: -1; }
  .story:not([data-stage]) .story__item[data-ch="0"] { order: 0; } .story:not([data-stage]) .story__item[data-ch="1"] { order: 2; } .story:not([data-stage]) .story__item[data-ch="2"] { order: 4; } .story:not([data-stage]) .story__item[data-ch="3"] { order: 6; }
  .story:not([data-stage]) [data-panel="0"] { order: 1; } .story:not([data-stage]) [data-panel="1"] { order: 3; } .story:not([data-stage]) [data-panel="2"] { order: 5; } .story:not([data-stage]) [data-panel="3"] { order: 7; }
  .story:not([data-stage]) :is(.story__item, .story__item:last-child) { border: 0; padding-block: 32px 20px; }
  .story:not([data-stage]) .story__tab { cursor: default; }
  .story:not([data-stage]) :is(.story__panel, .story__panel[data-state]) {
    --pad-x: max(16px, calc((100% - 420px) / 2));
    position: relative; width: 100%; padding: 28px var(--pad-x) 20px;
    border-radius: var(--radius-w-stage); corner-shape: var(--shape);
    background: linear-gradient(to top, rgba(35, 33, 30, .24), rgba(35, 33, 30, 0) 34%), url("../img/editorial/jdoe-editorial-n1-b-800.webp?v=76d30485b475") center / cover no-repeat var(--paper-200); /* 800 px copy for phones */
    opacity: 1; translate: none; scale: none; pointer-events: auto; transition: none;
    box-shadow: var(--hairline);
  }
  .story--mirror:not([data-stage]) :is(.story__panel, .story__panel[data-state]) { background-image: linear-gradient(to top, rgba(35, 33, 30, .24), rgba(35, 33, 30, 0) 34%), url("../img/editorial/jdoe-editorial-n5-a-800.webp?v=2d1f0a63cd48"); }
  .story:not([data-stage]) .jw-stage::before, .story:not([data-stage]) .jw-stage::after { display: none; } /* the stage has no box here (display: contents); each card carries its own frame. Its ::after shade was left on and, absolutely positioned against the section, greyed the page from the roles down to the hardware panel (2026-10-11) */
  .story__panel .pd-run { width: 100%; max-width: none; }
  /* at full size a phone card is ~260px inside; a button pair that does not fit wraps instead of overflowing */
  .story__panel .pd-actions { flex-wrap: wrap; }
  .story__panel .pd-actions .pd-btn { flex: 1 1 auto; }
  .story__panel .pd-split { flex: 1 1 0; } /* the clock, then Execute and its agent switch, fit one row (2026-10-11; Later used to take a row of its own) */
  .story__panel .pd-actions .pd-btn--icon { flex: none; }
  .story__panel .pd-actions .pd-split__more { flex: none; }

  /* The tile on phones and tablets (2026-10-11, the user: the chapters must join up and stop jumping), not pinned since
     2026-10-12: the title, the accordion (as on wide screens, 20px rows), then the tile, a screen tall at most. */
  .story[data-stage] .story__pin { display: flex; flex-direction: column; gap: 24px; }
  .story[data-stage] .story__side { display: flex; flex-direction: column; gap: 8px; }
  .story[data-stage] .story__head { padding-bottom: 0; }
  .story[data-stage] :is(.story__item, .story__item:last-child) { padding-block: 20px; }
  .story[data-stage] .story__more .jw-body { font-size: 15px; line-height: 1.4; }
  .story[data-stage] .story__stage { height: clamp(550px, 100svh - 120px, 560px); } /* never under 550: the run card (446 at 360 wide) rests whole, where a short screen's 520 cut its top (2026-11-02). 600 → 560 (2026-10-30, the user: the tile read tall on phones while a step's first cards gather; its last card still rests above the cue) */
  .story--mirror[data-stage] .story__stage { height: min(480px, calc(100svh - 120px)); } /* its tallest card is 378 at 360 wide, against 446 in How it works (2026-11-02, the user: 560 read tall here) */
  /* each step carries its own tile (2026-10-12, the user, after Calendly's phone accordion): main.js moves the one tile
     into the open step, under its line of text, so it opens and folds with that step */
  .story[data-stage] .story__more > div { max-width: none; }
  .story[data-stage] .story__more p { max-width: 34em; }
  .story[data-stage] .story__more .story__stage { flex: none; width: 100%; margin-top: 4px; }
  .story[data-stage] .story__more .story__bar { position: relative; left: auto; right: auto; bottom: auto; flex: none; margin-top: 12px; }
  .story[data-stage] :is(.story__scale, .story__desk) { padding: 12px 16px 56px; } /* 72 → 56: the band under the cards holds the cue and the 32px play button (14px up), 10px clear above it */
  .story[data-stage] .story__cue--stage { bottom: 14px; }
}
/* the smallest phones (320 wide): the cards wrap tallest here (the run card 482, a role card 410), so the tiles hold them
   whole, a little taller than such a screen (2026-11-02; at 448 their tops were cut by up to 109px) */
@media (max-width: 359px) {
  .story[data-stage] .story__stage { height: 580px; }
  .story--mirror[data-stage] .story__stage { height: 520px; }
}

/* phones (2026-10-11): no menu; the floating row is the lockup and the call to action, which fits down to 320px */

/* cards are app 30 pt (48), the Mac Now grid card, DS --radius-lg (2026-10-15 web audit + its increment; phones stepped down to 25.6);
   the story and roles tiles step down to app 28 pt (44.8) on phones */
@media (max-width: 599px) {
  :root { --radius-w-stage: calc(44.8px * var(--k-se)); }
}
/* the cards fall under 300px wide below ~380px (296 at 375, 243 at 320): they step back to app 24 pt (38.4) so 48 does not
   read too round (2026-10-15 web audit increment) */
@media (max-width: 379px) {
  :root { --r-ui-base: 38.4px; }
}
/* no corner-shape (Safari, Firefox): every radius back to the app's pt value, a plain round corner (tokens.css corner system) */
@supports not (corner-shape: var(--shape)) {
  :root { --k-se: .625; }
  .pd-agent { border-radius: 5.6px; } /* a plain radius at × .625 is nearly half the tile, so the logos came out round: the app's tile is a squircle */
  .pd-agent--lg { border-radius: 9px; }
}
/* The large surfaces in iOS's own corner (2026-10-29, the user: “Apple 曲线遮罩”): media frames, the story tile, the
   hardware panel and the UI cards are cut by Apple's continuous corner (UIBezierPath roundedRect / SwiftUI
   RoundedRectangle .continuous, PaintCode's coefficients: the curve runs 1.52866 × r along each edge) at the app's pt
   value, the web value × 0.625. Measured against a SwiftUI render: no pixel off by more than half, where superellipse(2.2)
   at × 1.6 came out 2.5pt squarer at the tip. Every browser, not only those without corner-shape: a nine-slice mask
   (-webkit-mask-box-image, in Chrome and Safari), so border-radius goes to 0 under it. The mask clips outer shadows too:
   these cards lose their faint drop; the square inset hairline still draws the straight edges and a corner-only ring
   (border-image, the hairline's ink at 10%) draws the curves. The hero film keeps its own corner: its radius is animated.
   Smaller corners stay on the token system above. */
:root {
  --ios-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='154.87' height='154.87' viewBox='0 0 154.87 154.87'%3E%3Cpath d='M78.43 0 C100.44 0 111.45 0 123.29 3.75 C136.22 8.45 146.41 18.64 151.12 31.57 C154.87 43.42 154.87 54.42 154.87 76.43 L154.87 78.43 C154.87 100.44 154.87 111.45 151.12 123.29 C146.41 136.22 136.22 146.41 123.29 151.12 C111.45 154.87 100.44 154.87 78.43 154.87 L76.43 154.87 C54.42 154.87 43.42 154.87 31.57 151.12 C18.64 146.41 8.45 136.22 3.75 123.29 C0 111.45 0 100.44 0 78.43 L0 76.43 C0 54.42 0 43.42 3.75 31.57 C8.45 18.64 18.64 8.45 31.57 3.75 C43.42 0 54.42 0 76.43 0Z'/%3E%3C/svg%3E");
  --ios-ring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='154.87' height='154.87' viewBox='0 0 154.87 154.87'%3E%3Cpath d='M78.43 0 C100.44 0 111.45 0 123.29 3.75 C136.22 8.45 146.41 18.64 151.12 31.57 C154.87 43.42 154.87 54.42 154.87 76.43 M154.87 78.43 C154.87 100.44 154.87 111.45 151.12 123.29 C146.41 136.22 136.22 146.41 123.29 151.12 C111.45 154.87 100.44 154.87 78.43 154.87 M76.43 154.87 C54.42 154.87 43.42 154.87 31.57 151.12 C18.64 146.41 8.45 136.22 3.75 123.29 C0 111.45 0 100.44 0 78.43 M0 76.43 C0 54.42 0 43.42 3.75 31.57 C8.45 18.64 18.64 8.45 31.57 3.75 C43.42 0 54.42 0 76.43 0' fill='none' stroke='rgb(35,33,30)' stroke-opacity='.1' stroke-width='1.67'/%3E%3C/svg%3E");
  --ios-ring-media: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='154.87' height='154.87' viewBox='0 0 154.87 154.87'%3E%3Cpath d='M78.43 0 C100.44 0 111.45 0 123.29 3.75 C136.22 8.45 146.41 18.64 151.12 31.57 C154.87 43.42 154.87 54.42 154.87 76.43 M154.87 78.43 C154.87 100.44 154.87 111.45 151.12 123.29 C146.41 136.22 136.22 146.41 123.29 151.12 C111.45 154.87 100.44 154.87 78.43 154.87 M76.43 154.87 C54.42 154.87 43.42 154.87 31.57 151.12 C18.64 146.41 8.45 136.22 3.75 123.29 C0 111.45 0 100.44 0 78.43 M0 76.43 C0 54.42 0 43.42 3.75 31.57 C8.45 18.64 18.64 8.45 31.57 3.75 C43.42 0 54.42 0 76.43 0' fill='none' stroke='rgb(35,33,30)' stroke-opacity='.1' stroke-width='2'/%3E%3C/svg%3E");
  --ios-ring-stage: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='154.87' height='154.87' viewBox='0 0 154.87 154.87'%3E%3Cpath d='M78.43 0 C100.44 0 111.45 0 123.29 3.75 C136.22 8.45 146.41 18.64 151.12 31.57 C154.87 43.42 154.87 54.42 154.87 76.43 M154.87 78.43 C154.87 100.44 154.87 111.45 151.12 123.29 C146.41 136.22 136.22 146.41 123.29 151.12 C111.45 154.87 100.44 154.87 78.43 154.87 M76.43 154.87 C54.42 154.87 43.42 154.87 31.57 151.12 C18.64 146.41 8.45 136.22 3.75 123.29 C0 111.45 0 100.44 0 78.43 M0 76.43 C0 54.42 0 43.42 3.75 31.57 C8.45 18.64 18.64 8.45 31.57 3.75 C43.42 0 54.42 0 76.43 0' fill='none' stroke='rgb(35,33,30)' stroke-opacity='.1' stroke-width='1.25'/%3E%3C/svg%3E");
  --ios-ring-stage-sm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='154.87' height='154.87' viewBox='0 0 154.87 154.87'%3E%3Cpath d='M78.43 0 C100.44 0 111.45 0 123.29 3.75 C136.22 8.45 146.41 18.64 151.12 31.57 C154.87 43.42 154.87 54.42 154.87 76.43 M154.87 78.43 C154.87 100.44 154.87 111.45 151.12 123.29 C146.41 136.22 136.22 146.41 123.29 151.12 C111.45 154.87 100.44 154.87 78.43 154.87 M76.43 154.87 C54.42 154.87 43.42 154.87 31.57 151.12 C18.64 146.41 8.45 136.22 3.75 123.29 C0 111.45 0 100.44 0 78.43 M0 76.43 C0 54.42 0 43.42 3.75 31.57 C8.45 18.64 18.64 8.45 31.57 3.75 C43.42 0 54.42 0 76.43 0' fill='none' stroke='rgb(35,33,30)' stroke-opacity='.1' stroke-width='1.79'/%3E%3C/svg%3E");
  --ios-ring-inline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='154.87' height='154.87' viewBox='0 0 154.87 154.87'%3E%3Cpath d='M78.43 0 C100.44 0 111.45 0 123.29 3.75 C136.22 8.45 146.41 18.64 151.12 31.57 C154.87 43.42 154.87 54.42 154.87 76.43 L154.87 78.43 C154.87 100.44 154.87 111.45 151.12 123.29 C146.41 136.22 136.22 146.41 123.29 151.12 C111.45 154.87 100.44 154.87 78.43 154.87 L76.43 154.87 C54.42 154.87 43.42 154.87 31.57 151.12 C18.64 146.41 8.45 136.22 3.75 123.29 C0 111.45 0 100.44 0 78.43 L0 76.43 C0 54.42 0 43.42 3.75 31.57 C8.45 18.64 18.64 8.45 31.57 3.75 C43.42 0 54.42 0 76.43 0 Z' fill='none' stroke='rgb(35,33,30)' stroke-opacity='.05' stroke-width='3.13'/%3E%3C/svg%3E");
  --ios-ring-inline-sm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='154.87' height='154.87' viewBox='0 0 154.87 154.87'%3E%3Cpath d='M78.43 0 C100.44 0 111.45 0 123.29 3.75 C136.22 8.45 146.41 18.64 151.12 31.57 C154.87 43.42 154.87 54.42 154.87 76.43 L154.87 78.43 C154.87 100.44 154.87 111.45 151.12 123.29 C146.41 136.22 136.22 146.41 123.29 151.12 C111.45 154.87 100.44 154.87 78.43 154.87 L76.43 154.87 C54.42 154.87 43.42 154.87 31.57 151.12 C18.64 146.41 8.45 136.22 3.75 123.29 C0 111.45 0 100.44 0 78.43 L0 76.43 C0 54.42 0 43.42 3.75 31.57 C8.45 18.64 18.64 8.45 31.57 3.75 C43.42 0 54.42 0 76.43 0 Z' fill='none' stroke='rgb(35,33,30)' stroke-opacity='.05' stroke-width='5'/%3E%3C/svg%3E");
  --ios-ring-inline-card: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='154.87' height='154.87' viewBox='0 0 154.87 154.87'%3E%3Cpath d='M78.43 0 C100.44 0 111.45 0 123.29 3.75 C136.22 8.45 146.41 18.64 151.12 31.57 C154.87 43.42 154.87 54.42 154.87 76.43 L154.87 78.43 C154.87 100.44 154.87 111.45 151.12 123.29 C146.41 136.22 136.22 146.41 123.29 151.12 C111.45 154.87 100.44 154.87 78.43 154.87 L76.43 154.87 C54.42 154.87 43.42 154.87 31.57 151.12 C18.64 146.41 8.45 136.22 3.75 123.29 C0 111.45 0 100.44 0 78.43 L0 76.43 C0 54.42 0 43.42 3.75 31.57 C8.45 18.64 18.64 8.45 31.57 3.75 C43.42 0 54.42 0 76.43 0 Z' fill='none' stroke='rgb(35,33,30)' stroke-opacity='.1' stroke-width='3.13'/%3E%3C/svg%3E");
  --ios-ring-inline-card-sm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='154.87' height='154.87' viewBox='0 0 154.87 154.87'%3E%3Cpath d='M78.43 0 C100.44 0 111.45 0 123.29 3.75 C136.22 8.45 146.41 18.64 151.12 31.57 C154.87 43.42 154.87 54.42 154.87 76.43 L154.87 78.43 C154.87 100.44 154.87 111.45 151.12 123.29 C146.41 136.22 136.22 146.41 123.29 151.12 C111.45 154.87 100.44 154.87 78.43 154.87 L76.43 154.87 C54.42 154.87 43.42 154.87 31.57 151.12 C18.64 146.41 8.45 136.22 3.75 123.29 C0 111.45 0 100.44 0 78.43 L0 76.43 C0 54.42 0 43.42 3.75 31.57 C8.45 18.64 18.64 8.45 31.57 3.75 C43.42 0 54.42 0 76.43 0 Z' fill='none' stroke='rgb(35,33,30)' stroke-opacity='.1' stroke-width='5'/%3E%3C/svg%3E");
}
.media-frame:not(.hero__media) { --ios-r: calc(var(--r-media) / var(--k-se) * .625); }
.story, .hardware__panel { --ios-r: calc(var(--radius-w-stage) / var(--k-se) * .625); }
:is(.pd-card, .pd-session, .pd-run, .roles__flow li) { --ios-r: calc(var(--r-ui-base) * .625); }
:is(.pd-example, .pd-profile, .pd-transcript__lines, .pd-support-list--merged) { --ios-r: calc(var(--r-ui-base) * .625 - 14px); } /* the inline blocks in the same curve as their card, 14 under it: 16 in the 30 (10 in the small phones' 24). Strictly concentric would be the card less its 16px padding, 14; 16 reads in proportion (2026-10-30, the user: “内卡圆角调大”; was app 12 pt) */
/* only where the mask draws (Chrome, Safari): Firefox has no -webkit-mask-box-image, and with these rules alone it would
   square every corner and draw the rings inside them; it keeps the token radii above */
@supports (-webkit-mask-box-image-source: none) {
  :is(.media-frame:not(.hero__media), .story[data-stage] .jw-stage, .hardware__panel, .pd-card, .pd-session, .pd-run), .roles__flow li::before,
  .media-frame:not(.hero__media)::after, .story[data-stage] .story__stage::after, .hardware__panel::before {
    border-radius: 0;
    -webkit-mask-box-image-source: var(--ios-mask); -webkit-mask-box-image-slice: 76.43 fill; -webkit-mask-box-image-width: calc(var(--ios-r) * 1.52866); -webkit-mask-box-image-repeat: stretch;
  }
  :is(.pd-card, .pd-session, .pd-run), .roles__flow li::before,
  .media-frame:not(.hero__media)::after, .story[data-stage] .story__stage::after, .hardware__panel::before {
    border: 0 solid transparent; border-image: var(--ios-ring) 76.43 / calc(var(--ios-r) * 1.52866) / 0 stretch;
  }
  /* the ring's stroke is 50 / r in the template for a .5px line: 1.67 suits the cards' 30; the films (r 20–28) take 2, the
     stage and the hardware panel 1.25 at their 40 and 1.79 at the phones' 28 (2026-10-30 audit: one 1.6 drew .32–.64px) */
  .media-frame:not(.hero__media)::after { border-image-source: var(--ios-ring-media); }
  .story[data-stage] .story__stage::after, .hardware__panel::before, .story:not([data-stage]) :is(.story__panel, .story__panel[data-state]) { border-image-source: var(--ios-ring-stage); }
  @media (max-width: 599px) { .story[data-stage] .story__stage::after, .hardware__panel::before, .story:not([data-stage]) :is(.story__panel, .story__panel[data-state]) { border-image-source: var(--ios-ring-stage-sm); } }
  /* the role modules keep their bridge: it hangs below the card (li::after) and a mask on the card would cut it, so the
     card's surface, hairline and curve go to an under-layer and the list item itself stays unmasked (2026-10-30, the user:
     “白卡之间的连线怎么消失了”) */
  .roles__flow li { background: none; box-shadow: none; }
  .roles__flow li::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--surface-card); box-shadow: var(--ring-card); pointer-events: none; }
  @media (max-width: 1023px) {
    .story:not([data-stage]) :is(.story__panel, .story__panel[data-state]) {
      border-radius: 0; border: 0 solid transparent; border-image: var(--ios-ring) 76.43 / calc(var(--ios-r) * 1.52866) / 0 stretch;
      -webkit-mask-box-image-source: var(--ios-mask); -webkit-mask-box-image-slice: 76.43 fill; -webkit-mask-box-image-width: calc(var(--ios-r) * 1.52866); -webkit-mask-box-image-repeat: stretch;
    }
  }
  /* the inline blocks */
  :is(.pd-example, .pd-profile, .pd-transcript__lines, .pd-support-list--merged) {
    border-radius: 0; box-shadow: none; /* the whole hairline is the ring's one path: corners and sides drawn alike, not a .5px inset shadow on the sides */ border: 0 solid transparent; border-image: var(--ios-ring-inline) 76.43 / calc(var(--ios-r) * 1.52866) / 0 stretch;
  }
  .pd-profile { border-image-source: var(--ios-ring-inline-card); } /* its hairline is the cards' 10%, not the inline 5% */
  /* the ring's stroke is drawn in the 154.87 template, so its width is 50 / r there for .5px on screen: 3.13 at 16, 5 at 10 */
  @media (max-width: 379px) {
    :is(.pd-example, .pd-transcript__lines, .pd-support-list--merged) { border-image-source: var(--ios-ring-inline-sm); }
    .pd-profile { border-image-source: var(--ios-ring-inline-card-sm); }
  }
  :is(.pd-example, .pd-profile, .pd-transcript__lines, .pd-support-list--merged) {
    -webkit-mask-box-image-source: var(--ios-mask); -webkit-mask-box-image-slice: 76.43 fill; -webkit-mask-box-image-width: calc(var(--ios-r) * 1.52866); -webkit-mask-box-image-repeat: stretch;
  }
}

/* phones (2026-10-11 mobile audit, beyond the corners) */
@media (max-width: 599px) {
  /* the hand-off's steps wrap instead of being cut ("Research the market & co…") */
  .pd-support-list--merged .pd-support__text b { white-space: normal; text-overflow: clip; overflow: visible; }
  /* touch: the run's buttons and its close reach 44px (the Mac's 36px is a pointer size) */
  .pd-icb--quiet { width: 44px; height: 44px; margin: -6px; }
}
