/* The studio belongs only to the opening. The scroll controller fades it out
   before the existing phone chapters, cards and provider handoff begin. */
.opening { background: var(--background); }
.masthead { background: transparent; }
.site-header { min-height: 74px; border-bottom: 0; }
.brand { isolation: isolate; background: var(--background); }
.story-stage { padding-top: 76px; }
.hero-copy { max-width: 1000px; }
.hero-copy h1 { font-size: clamp(38px, 3.8vw, 62px); line-height: 1.04; }
.hero-copy .eyebrow { font-size: 12px; margin-bottom: 10px; }
.hero-copy .intro { max-width: 800px; margin: 12px auto 0; font-size: clamp(15px, 1.25vw, 20px); line-height: 1.5; }
.hero-availability { display: table; margin: 12px auto 0; padding: 12px 27px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 13px; line-height: 1.4; font-weight: 600; }
.hero-copy .beta-note, :is(.has-scroll-story, .story-measuring, .story-booting) .hero-copy .beta-note { position: static; display: block; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.hero-availability, .hero-copy .beta-note { opacity: var(--availability-opacity, 1); }
/* Launch day turns the availability pill into the App Store link
   (scripts/website-launch.mjs). As a link it needs a 44-pixel touch target. */
a.hero-availability { display: flex; align-items: center; width: fit-content; min-height: 44px; padding-block: 0; text-decoration: none; }
a.hero-availability:hover { background: var(--ink); }
.hero-art { width: min(620px, 95%); aspect-ratio: 1; margin: 8px auto 40px; }
/* The opening backdrop: silk ribbons of warm light drift slowly behind the
   phone. assets/hero-silk.js draws them on a canvas inside .landing-light, so
   they fade with the opening when the scroll controller fades that element.
   Beneath them, and on its own without WebGL, a warm pool of light sits behind
   the phone and the corners fall away into the dark. */
.landing-light { position: absolute; z-index: 0; pointer-events: none; inset: 0 0 auto; height: max(1000px, 100svh); overflow: hidden; background: radial-gradient(ellipse 58% 46% at 50% 62%, #3f2a2099, #2b1d1766 46%, transparent 78%), radial-gradient(ellipse 120% 92% at 50% 36%, transparent 56%, #0000004d 100%), var(--background); mask-image: linear-gradient(#000 82%, transparent); }
.hero-silk { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.hero-silk.is-drawn { opacity: 1; }
/* The ribbons come up with the phone rather than over an empty stage. */
.phone-loading .hero-silk { opacity: 0; transition: none; }
@media (prefers-reduced-motion: reduce) { .hero-silk { transition: none; } }
.has-scroll-story .landing-light { will-change: opacity; }
/* The chapters' glow. The scroll controller (scroll-story.js) places it with a
   transform and fades it with opacity only, so it is painted once. */
.has-scroll-story .art-glow { display: block; width: var(--glow-width, 0px); height: var(--glow-height, 0px); will-change: transform, opacity; }
.story-stage:not([data-chapter]) .phone-scene, .story-stage[data-studio] .phone-scene { -webkit-box-reflect: below var(--phone-reflection-offset, -64px) linear-gradient(transparent var(--phone-reflection-fade, 80%), rgb(255 255 255 / calc(var(--studio-reflection, .22) * 1.3)) var(--phone-reflection-end, 100%)); }
.phone-fallback { z-index: 1; }
.has-scroll-story .phone-poster[src*='poster-landing'] { transform: none; }
:is(.has-scroll-story, .story-measuring, .story-booting) .landing-light { height: 100%; }
:is(.has-scroll-story, .story-measuring, .story-booting) .hero-copy { top: max(52px, 5.6svh); left: 0; right: 0; width: calc(100% - 40px); max-width: 1000px; margin-inline: auto; text-align: center; transform: translateY(var(--intro-shift, 0px)); }
:is(.has-scroll-story, .story-measuring, .story-booting) .hero-copy h1 { font-size: clamp(38px, 3.8vw, 62px); }
:is(.has-scroll-story, .story-measuring, .story-booting) .hero-copy .intro { max-width: 800px; margin: 12px auto 0; }
.story-chapters { width: min(680px, calc(100% - 40px)); }
.story-chapters a { color: var(--accent); }
:is(.has-scroll-story, .story-measuring, .story-booting) .scroll-hint { display: none; }
@media (max-width: 899px) {
  :is(.has-scroll-story, .story-measuring, .story-booting) .hero-copy { top: 88px; }
  .hero-copy h1, :is(.has-scroll-story, .story-measuring, .story-booting) .hero-copy h1 { font-size: clamp(34px, 5.8vw, 48px); }
  .hero-copy .intro, :is(.has-scroll-story, .story-measuring, .story-booting) .hero-copy .intro { max-width: 42ch; font-size: 15px; }
}
@media (max-width: 600px) {
  .site-header { min-height: 96px; }
  .story-stage { padding-top: 112px; }
  .landing-light { height: max(780px, 100svh); }
  :is(.has-scroll-story, .story-measuring, .story-booting) .hero-copy { top: 112px; }
  .hero-copy h1, :is(.has-scroll-story, .story-measuring, .story-booting) .hero-copy h1 { font-size: clamp(30px, 8.2vw, 42px); }
  .hero-copy .intro, :is(.has-scroll-story, .story-measuring, .story-booting) .hero-copy .intro { max-width: 34ch; margin-top: 12px; font-size: 15px; }
  .hero-copy .eyebrow { font-size: 11px; }
  .hero-availability { margin-top: 12px; padding: 10px 22px; font-size: 13px; }
  .hero-copy .beta-note { margin-top: 10px; font-size: 12px; }
}
@media (min-width: 900px) and (max-height: 740px) {
  :is(.has-scroll-story, .story-measuring, .story-booting) .hero-copy { top: 74px; }
  .hero-copy h1, :is(.has-scroll-story, .story-measuring, .story-booting) .hero-copy h1 { font-size: 42px; }
  .hero-copy .eyebrow { margin-bottom: 6px; }
  .hero-copy .intro, :is(.has-scroll-story, .story-measuring, .story-booting) .hero-copy .intro { margin-top: 8px; font-size: 15px; }
  .hero-availability { padding-block: 9px; margin-top: 10px; }
  .hero-copy .beta-note { margin-top: 8px; }
}
@media (max-width: 600px) and (max-height: 700px) {
  .hero-copy .eyebrow { margin-bottom: 6px; }
  .hero-copy h1, :is(.has-scroll-story, .story-measuring, .story-booting) .hero-copy h1 { font-size: 30px; }
  .hero-availability { padding-block: 8px; margin-top: 8px; }
  .hero-copy .beta-note { margin-top: 8px; }
}

/* The closing call to action answers the opening: the same pill, over a pool
   of warm light. The opening pill fades with the story, so this is the one
   left for anyone who reads to the end. */
.get-brief { position: relative; isolation: isolate; display: grid; justify-items: center; padding-block: clamp(72px, 10vw, 136px); border-top: 1px solid var(--line); text-align: center; }
.get-brief::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse 46% 78% at 50% 100%, #4a302580, transparent 72%); pointer-events: none; }
.get-brief .eyebrow { margin: 0 0 14px; }
.get-brief h2 { margin: 0; font-size: clamp(34px, 4.6vw, 60px); font-weight: 600; line-height: 1.08; letter-spacing: -.055em; text-wrap: balance; }
.get-brief-note { max-width: 40ch; margin: 18px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; text-wrap: pretty; }
.store-button { display: inline-flex; align-items: center; min-height: 44px; margin-top: 28px; padding: 0 27px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 600; text-decoration: none; }
.store-button:hover { background: var(--ink); }
@media (max-width: 600px) { .get-brief h2 { font-size: clamp(32px, 8vw, 44px); } .get-brief-note { font-size: 15px; } }

/* The current Home capture is also the accessible and no-WebGL fallback. */
.phone-poster[src*="brief-screen-home-espresso-light"] {
  box-sizing: border-box;
  width: auto;
  /* The scroll controller reports how far the opening art box overlaps the
     hero copy, so the upright screenshot starts below the availability note. */
  height: min(88%, 650px, calc((100% - var(--poster-clearance, 0px)) * .95));
  max-width: 82%;
  margin: auto;
  position: absolute;
  inset: var(--poster-clearance, 0px) 0 0;
  border: 5px solid #303235;
  border-radius: 36px;
  background: #fff;
  box-shadow: 0 0 0 2px #a9aaac, 0 18px 45px #00000080;
}
.has-scroll-story .phone-poster[src*="brief-screen-home-espresso-light"] { transform: none; }
.story-screen.updated-home-screen {
  box-sizing: border-box;
  border: 5px solid #303235;
  border-radius: 32px;
  box-shadow: 0 0 0 2px #a9aaac;
}
