/* ==========================================================================
   Homepage features: pinned showcase

   Each step has a phone built as a 3D object (.phone3d): a front face, a back
   and side edges made from thin strips that js/main.js adds. A screen
   recording of the app plays on the front (images/story/*.mp4), with the
   first frame as a still underneath (images/story/*-poster.webp).

   Default (no JS, phones, tablets, short windows, reduced motion): the four
   steps stack, each with its own phone.

   .story--pinned (added by js/main.js on a desktop-sized window): the stage
   sticks while you scroll, the phone turns to bring in the next recording,
   and the tabs across the top show where you are.
   ========================================================================== */
/* --t follows the scroll. It is set on each phone and numeral, not inherited,
   so a scroll frame only restyles what actually moves. */
@property --t { syntax: '<number>'; inherits: false; initial-value: 0; }

.story {
  --story-ease: cubic-bezier(.2, .8, .2, 1);
  position: relative;
  /* Same width and side gap as the masthead's bar: 20px from the window
     (24px below 1280px), never wider than 1560px */
  --edge: 20px;
  max-width: 1560px;
  margin: 0 max(var(--edge), calc((100% - 1560px) / 2));
  border-radius: 48px;
  background:
    radial-gradient(900px 600px at 78% 22%, rgba(0,200,179,.16), transparent 70%),
    radial-gradient(700px 520px at 8% 88%, rgba(59,149,134,.20), transparent 70%),
    linear-gradient(180deg, #033b38 0%, #023432 38%, #012826 100%);
  color: #fff;
  scroll-margin-top: 100px;
}

/* --- Heading --- */
.story-head {
  max-width: 760px;
  margin: 0 auto;
  padding: 112px 24px 64px;
  text-align: center;
}
.story-eyebrow {
  display: inline-block;
  font: 700 14px/20px var(--font);
  letter-spacing: .02em;
  color: var(--accent);
  background: rgba(0,200,179,.10);
  border: 1px solid rgba(0,200,179,.32);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  margin: 0 0 20px;
}
.story-head h2 {
  font-size: var(--h2-size);
  line-height: var(--h2-lh);
  letter-spacing: var(--h2-ls);
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  text-wrap: balance;
}
.story-sub {
  font-size: var(--body-size);
  line-height: var(--body-lh);
  font-weight: 300;
  color: var(--tertiary);
  margin: 0;
}

.story-bg, .story-nav { display: none; }

/* --- Steps (stacked) --- */
.story-steps {
  list-style: none;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 104px;
  display: grid;
  gap: 104px;
}
.story-step {
  position: relative;
  z-index: 0;                 /* keeps the numeral behind this step's content only */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
  justify-items: center;
  text-align: center;
}
.story-copy { max-width: 520px; }
/* The step number is a large, faint numeral behind the content */
.story-num {
  position: absolute;
  z-index: -1;
  top: -26px;
  left: 50%;
  translate: -50% 0;
  margin: 0;
  font: 700 230px/.8 var(--font);
  letter-spacing: -.05em;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(0,200,179,.21) 0%, rgba(0,200,179,.03) 86%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-stroke: 1px rgba(170,212,205,.11);
  pointer-events: none;
  -webkit-user-select: none;
          user-select: none;
}
.story-label {
  margin: 0 0 14px;
  font: 700 14px/20px var(--font);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.story-step h3 {
  font-size: 40px;
  line-height: 46px;
  letter-spacing: -1px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 18px;
  text-wrap: balance;
}
.story-body {
  font-size: var(--body-size);
  line-height: var(--body-lh);
  letter-spacing: var(--body-ls);
  font-weight: 300;
  color: #d3e9e5;
  margin: 0;
}
.story-note {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 22px 0 0;
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(170,212,205,.25);
  color: #fff;
  font: 700 14px/20px var(--font);
}
.story-plus {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  font: 700 16px/1 var(--font);
}
.story-cta { margin: 28px 0 0; }

/* --- The phone --- */
.story-visual {
  --pw: 250px;                       /* phone width; everything else follows */
  position: relative;
  width: min(100%, calc(var(--pw) + 150px));
  display: flex;
  justify-content: center;
  padding-bottom: calc(var(--pw) * .1);
}
.phone3d {
  --pd: calc(var(--pw) * .085);      /* thickness */
  position: relative;
  flex: none;
  width: var(--pw);
  height: calc(var(--pw) * 2.101);
  perspective: calc(var(--pw) * 5.2);
}
.phone3d-turn,
.phone3d-body {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
/* --t follows the scroll (about -0.5 to 0.5), so the phone turns a little as you go */
.phone3d-body {
  transform:
    rotateX(var(--rx, 5deg))
    rotateY(calc(var(--ry, -16deg) + var(--t, 0) * var(--swing, 20deg)));
}
.story-step:nth-child(even) .phone3d-body { --ry: 16deg; }

.phone3d-front,
.phone3d-back {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--pw) * .165);
}
.phone3d-front {
  transform: translateZ(calc(var(--pd) / 2));
  background: #050909;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.26),
    inset 0 0 0 calc(var(--pw) * .009) #1a2120;
}
.phone3d-front::after {            /* light catching the glass */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255,255,255,.17) 0%, rgba(255,255,255,0) 26%, rgba(255,255,255,0) 74%, rgba(255,255,255,.06) 100%);
  pointer-events: none;
}
.phone3d-back {
  transform: translateZ(calc(var(--pd) / -2)) rotateY(180deg);
  background: linear-gradient(160deg, #d3dad8 0%, #98a3a1 55%, #77827f 100%);
}
.phone3d-back::after {             /* camera plate */
  content: '';
  position: absolute;
  top: 4%; left: 8%;
  width: 42%; height: 9%;
  border-radius: 99px;
  background:
    radial-gradient(circle at 24% 50%, #0d1413 0 13%, #3b4543 14% 17%, transparent 18%),
    radial-gradient(circle at 62% 50%, #0d1413 0 13%, #3b4543 14% 17%, transparent 18%),
    linear-gradient(160deg, #b9c2c0, #7d8886);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 2px 6px rgba(0,0,0,.25);
}
.phone3d-screen {
  position: absolute;
  inset: calc(var(--pw) * .03);
  border-radius: calc(var(--pw) * .135);
  overflow: hidden;
  -webkit-clip-path: inset(0 round calc(var(--pw) * .135));
          clip-path: inset(0 round calc(var(--pw) * .135));
  background: #000;
}
.story-poster,
.story-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* The still sits underneath. The recording fades in over it once it is playing,
   and fades out for a moment at the end while it winds back to the start. */
.story-video { opacity: 0; transition: opacity .35s ease; }
.phone3d-screen.is-live .story-video { opacity: 1; }
.phone3d-screen.is-rewinding .story-video { opacity: 0; }

/* Side edges and buttons (added by the script) */
.phone3d-edge {
  position: absolute;
  height: var(--pd);
  background: linear-gradient(180deg, #58625f 0%, #c6cecc 16%, #f4f7f6 33%, #b3bdbb 54%, #88938f 80%, #505a57 100%);
  filter: brightness(var(--b, 1));
  outline: 1px solid transparent;    /* smoother edges while turning */
}
.phone3d-btn {
  height: calc(var(--pd) * .42);
  border-radius: 99px;
  background: linear-gradient(180deg, #747f7c 0%, #e8eceb 45%, #86918e 100%);
}
/* Before the script has built the edges (or with no JS), hint at the thickness */
.phone3d-body:not([data-built]) .phone3d-front {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.26),
    calc(var(--pw) * .02) 0 0 #9aa5a3;
}
.phone3d-body:not([data-built]) .phone3d-back { display: none; }

.phone3d-shadow {                   /* soft shadow on the "floor" */
  position: absolute;
  left: 50%; top: 100%;
  width: 130%;
  height: calc(var(--pw) * .26);
  transform: translate(-50%, -42%);
  background: radial-gradient(closest-side, rgba(0,0,0,.5), rgba(0,0,0,0));
  pointer-events: none;
  z-index: -1;                      /* under the phone, not over its screen */
}

/* Pause / play: the screen itself is the control. The icon only shows on
   hover, on keyboard focus, or while the recordings are paused. */
.story-toggle {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.story-toggle[hidden] { display: none; }
.story-toggle::before,
.story-toggle::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  opacity: 0;
  transition: opacity .25s ease;
}
.story-toggle::before {             /* disc */
  width: calc(var(--pw) * .24); height: calc(var(--pw) * .24);
  margin: calc(var(--pw) * -.12) 0 0 calc(var(--pw) * -.12);
  border-radius: 50%;
  background: rgba(1,40,38,.82);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.55), 0 10px 30px rgba(0,0,0,.35);
}
.story-toggle::after {              /* pause bars */
  width: calc(var(--pw) * .022); height: calc(var(--pw) * .08);
  margin: calc(var(--pw) * -.04) 0 0 calc(var(--pw) * -.036);
  border-radius: 1px;
  background: #fff;
  box-shadow: calc(var(--pw) * .05) 0 0 #fff;
}
.story-toggle.is-paused::after {    /* play triangle */
  width: 0; height: 0;
  margin: calc(var(--pw) * -.045) 0 0 calc(var(--pw) * -.026);
  border-radius: 0;
  background: none;
  box-shadow: none;
  border-style: solid;
  border-width: calc(var(--pw) * .045) 0 calc(var(--pw) * .045) calc(var(--pw) * .07);
  border-color: transparent transparent transparent #fff;
}
.story-toggle.is-paused::before,
.story-toggle.is-paused::after,
.story-toggle:focus-visible::before,
.story-toggle:focus-visible::after { opacity: 1; }
@media (hover: hover) {
  .story-toggle:hover::before,
  .story-toggle:hover::after { opacity: 1; }
}
.story-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: -5px; }
@media (forced-colors: active) {
  .story-toggle::before, .story-toggle::after { forced-color-adjust: none; }
}
/* What each recording shows, for screen readers */
.story-desc {
  position: absolute;
  width: 1px; height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Stacked: fade each step in as it arrives (class added by the script) --- */
.story--reveal .story-step .story-copy > *,
.story--reveal .story-step .phone3d,
.story--reveal .story-step .story-num {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--story-ease), transform .8s var(--story-ease);
}
.story--reveal .story-step .story-num { transition-duration: 1.2s, 1.3s; }
.story--reveal .story-step.is-in .story-copy > *,
.story--reveal .story-step.is-in .phone3d,
.story--reveal .story-step.is-in .story-num { opacity: 1; transform: none; }
.story--reveal .story-step.is-in .story-copy > :nth-child(2) { transition-delay: .08s; }
.story--reveal .story-step.is-in .story-copy > :nth-child(n+3) { transition-delay: .18s; }
.story--reveal .story-step.is-in .phone3d { transition-delay: .1s; }

/* --- Stacked on wider screens: text beside the phone, sides alternate --- */
@media (min-width: 760px) {
  .story-step {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    justify-items: center;
    text-align: left;
  }
  .story-copy { justify-self: start; }
  .story-step:nth-child(even) .story-copy { order: 2; }
  .story-visual { --pw: 280px; width: min(100%, calc(var(--pw) + 180px)); }
  .story-num { top: 50%; left: -10px; translate: 0 -52%; font-size: 330px; }
  .story-step:nth-child(even) .story-num { left: auto; right: -10px; }
}

/* ==========================================================================
   Pinned (desktop)
   ========================================================================== */
/* The stage is a card that sits below the masthead with a 12px gap all round.
   The page colour covers the section's dark background around it. */
.story--pinned { --pin-gap: var(--edge); --pin-top: calc(124px + var(--pin-gap)); }
.story--pinned .story-scroll { position: relative; height: 500vh; background: var(--bg); }
.story--pinned .story-pin {
  position: sticky;
  top: var(--pin-top);
  height: calc(100vh - var(--pin-top) - var(--pin-gap));
  box-sizing: border-box;
  /* The card's edges are the masthead bar's, so the same 40px inner padding
     lines the tabs up with the logo and the Login button. */
  padding: 28px var(--pin-pad, 40px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 20px;
  overflow: hidden;
  border-radius: var(--radius-l);
  background:
    radial-gradient(900px 600px at 78% 22%, rgba(0,200,179,.16), transparent 70%),
    radial-gradient(700px 520px at 8% 88%, rgba(59,149,134,.20), transparent 70%),
    linear-gradient(180deg, #033a37 0%, #023432 40%, #012826 100%);
}

/* First slide: the heading, centred in the card. It lifts and fades as the
   tabs and step 1 come in, and comes back when you scroll up to it. */
.story--pinned .story-head,
.story--pinned .story-head.reveal-fade-up {
  position: absolute;
  inset: 0;
  z-index: 3;
  max-width: none;
  margin: 0;
  padding: 0 max(48px, calc((100% - 760px) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-48px);
  transition: opacity .5s ease, transform .7s var(--story-ease), visibility 0s linear .7s;
  pointer-events: none;
}
.story--pinned.is-intro .story-head {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .6s ease .15s, transform .8s var(--story-ease) .15s, visibility 0s;
  pointer-events: auto;
}
.story--pinned .story-nav,
.story--pinned .story-steps {
  transition: opacity .6s ease .2s, transform .8s var(--story-ease) .2s;
}
.story--pinned.is-intro .story-nav,
.story--pinned.is-intro .story-steps {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .4s ease, transform .6s var(--story-ease);
}

/* Glows that drift as the step changes */
.story--pinned .story-bg { display: block; position: absolute; inset: 0; pointer-events: none; }
.story-glow {
  position: absolute;
  border-radius: 50%;
  transition: transform 1.4s var(--story-ease);
}
.story-glow--a {
  width: 760px; height: 760px;
  left: 52%; top: 4%;
  background: radial-gradient(closest-side, rgba(0,200,179,.26), rgba(0,200,179,0));
}
.story-glow--b {
  width: 620px; height: 620px;
  left: -8%; bottom: -22%;
  background: radial-gradient(closest-side, rgba(59,149,134,.30), rgba(59,149,134,0));
}
.story[data-active="1"] .story-glow--a { transform: translate(-70px, 60px) scale(1.08); }
.story[data-active="2"] .story-glow--a { transform: translate(40px, 120px) scale(.94); }
.story[data-active="3"] .story-glow--a { transform: translate(-30px, 20px) scale(1.14); }
.story[data-active="1"] .story-glow--b { transform: translate(80px, -40px); }
.story[data-active="2"] .story-glow--b { transform: translate(160px, -10px) scale(1.1); }
.story[data-active="3"] .story-glow--b { transform: translate(60px, -80px); }

/* Tabs */
.story--pinned .story-nav {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.story-tab {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 12px;
  align-items: baseline;
  padding: 8px 0 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  color: rgba(255,255,255,.72);
  font: 700 15px/20px var(--font);
  transition: color .3s;
}
.story-tab:hover { color: rgba(255,255,255,.85); }
.story-tab.is-active { color: #fff; }
.story-tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 4px; }
.story-tab-num { font-size: 13px; color: #4ddccb; }
.story-tab-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-tab-bar {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,.14);
  overflow: hidden;
}
.story-tab-bar span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--fill, 0));
}

/* Steps share one spot. Only the active one shows. */
.story--pinned .story-steps {
  --cols-gap: 96px;
  /* Text and phone sit together as one group in the middle of the card */
  --col-a: min(460px, calc((100% - var(--cols-gap)) * .46));
  --col-b: min(560px, calc((100% - var(--cols-gap)) * .54));
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.story--pinned .story-steps::before {
  /* rings behind the phone: centred on the right-hand column */
  content: '';
  position: absolute;
  left: calc((100% - var(--col-a) - var(--cols-gap) - var(--col-b)) / 2 + var(--col-a) + var(--cols-gap) + var(--col-b) / 2);
  top: 50%;
  width: 980px; height: 980px;
  margin: -490px 0 0 -490px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 69px, rgba(170,212,205,.09) 69px 70px);
  -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
  pointer-events: none;
}
.story--pinned .story-step {
  position: absolute;
  inset: 0;
  grid-template-columns: var(--col-a) var(--col-b);
  justify-content: center;
  grid-template-rows: minmax(0, 1fr);   /* keeps the four phone frames in exactly the same place */
  gap: var(--cols-gap);
  align-items: center;
  justify-items: stretch;
  text-align: left;
  pointer-events: none;
}
.story--pinned .story-step.is-active { pointer-events: auto; z-index: 2; }
.story--pinned .story-step:nth-child(even) .story-copy { order: 0; }

.story--pinned .story-copy { max-width: none; justify-self: stretch; }
/* Pinned: the numeral fills the left of the stage, behind the text, and
   drifts a little with the scroll. */
.story--pinned .story-num,
.story--pinned .story-step:nth-child(even) .story-num {
  top: 50%;
  left: -.05em;
  right: auto;
  font-size: min(64vh, 39vw);
  translate: 0 calc(-48% + var(--t, 0) * -46px);
  opacity: 0;
  transform: translateY(12%);
  transition: opacity .3s ease, transform .3s ease;
}
.story--pinned .story-step.is-past .story-num { transform: translateY(-12%); }
.story--pinned .story-step.is-active .story-num {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--story-ease) .1s, transform 1.2s var(--story-ease) .1s;
}
.story--pinned .story-step h3 {
  font-size: clamp(36px, 3.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -1.4px;
  margin-bottom: 20px;
}
.story--pinned .story-copy > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .25s ease, transform .25s ease;
}
.story--pinned .story-step.is-past .story-copy > * { transform: translateY(-30px); }
.story--pinned .story-step.is-active .story-copy > * {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--story-ease) .12s, transform .8s var(--story-ease) .12s;
}
.story--pinned .story-step.is-active .story-copy > :nth-child(2) { transition-delay: .18s; }
.story--pinned .story-step.is-active .story-copy > :nth-child(3) { transition-delay: .24s; }
.story--pinned .story-step.is-active .story-copy > :nth-child(n+4) { transition-delay: .3s; }
.story--pinned .story-step.is-active .story-copy > :focus-within { transition-delay: 0s; }

.story--pinned .story-visual {
  --pw: calc(min(100vh - 322px, 700px) / 2.101);
  width: 100%;
  height: 100%;
  align-items: center;
  padding-bottom: calc(var(--pw) * .12);
  box-sizing: border-box;
}
.story--pinned .story-step .phone3d-body { --ry: -20deg; --rx: 5deg; --swing: 16deg; }

/* The four phones share one spot. Changing step is one full turn: the old
   phone turns away until you see its back, then the new one carries on round
   to face you. Both are in the same pose when they swap, so it reads as one
   phone. data-dir (set by the script) says which way the turn goes. */
.story--pinned .phone3d-turn {
  transform: rotateY(270deg);
  visibility: hidden;
  transition: transform .42s cubic-bezier(.5, 0, .9, .5), visibility 0s linear .42s;
}
.story--pinned .story-step.is-past .phone3d-turn { transform: rotateY(-90deg); }
.story--pinned[data-dir="back"] .phone3d-turn { transform: rotateY(90deg); }
.story--pinned[data-dir="back"] .story-step.is-past .phone3d-turn { transform: rotateY(-270deg); }
.story--pinned .story-step.is-active .phone3d-turn {
  transform: rotateY(0deg);
  visibility: visible;
  transition: transform .95s cubic-bezier(.2, .7, .25, 1) .42s, visibility 0s linear .42s;
}
.story-step.is-snap .phone3d-turn { transition: none !important; }
.story--pinned .phone3d-shadow { opacity: 0; transition: opacity .3s ease; }
.story--pinned .story-step.is-active .phone3d-shadow { opacity: 1; transition: opacity .7s ease .7s; }

/* Below 1280px the masthead sits 24px from the sides and 16px from the top,
   and its content is 36px inside the bar */
@media (max-width: 1279px) {
  .story { --edge: 24px; }
  .story--pinned { --pin-gap: 16px; --pin-top: calc(120px + var(--pin-gap)); --pin-pad: 36px; }
}

@media (max-width: 1180px) {
  .story--pinned .story-steps { --cols-gap: 56px; }
}

/* Mid-height laptop screens: step 4's three-line heading needs a little less type */
@media (min-height: 841px) and (max-height: 900px) {
  .story--pinned .story-label { margin-bottom: 10px; }
  .story--pinned .story-step h3 { margin-bottom: 16px; }
  .story--pinned .story-note { margin-top: 16px; }
  .story--pinned .story-cta { margin-top: 20px; }
}

/* Shorter laptop screens: tighten the text so step 4 still fits */
@media (max-height: 840px) {
  .story--pinned .story-pin { padding-top: 22px; padding-bottom: 20px; gap: 14px; }
  .story--pinned .story-label { margin-bottom: 10px; }
  .story--pinned .story-step h3 { font-size: clamp(32px, 3vw, 40px); margin-bottom: 14px; }
  .story--pinned .story-body { font-size: 16px; line-height: 26px; }
  .story--pinned .story-note { margin-top: 16px; }
  .story--pinned .story-cta { margin-top: 18px; }
  .story--pinned .story-visual { --pw: calc(min(100vh - 298px, 700px) / 2.101); }
}

@media (prefers-reduced-motion: reduce) {
  .story-glow, .story-tab, .story-video, .phone3d, .phone3d-turn, .phone3d-shadow, .story-toggle::before, .story-toggle::after, .story-num, .story-copy > * { transition: none !important; }
}

/* --- Phones --- */
@media (max-width: 759px) {
  .story { margin: 0 8px; border-radius: 32px; }
  .story-head { padding: 80px 20px 56px; }
  .story-head h2 { font-size: 34px; line-height: 40px; letter-spacing: -.8px; }
  .story-sub { font-size: 16px; line-height: 26px; }
  .story-steps { padding: 0 16px 80px; gap: 88px; }
  .story-step { gap: 36px; }
  .story-num { font-size: 200px; top: -22px; }
  .story-step h3 { font-size: 30px; line-height: 36px; letter-spacing: -.6px; }
  .story-body { font-size: 16px; line-height: 26px; }
  .story-visual { --pw: 236px; width: min(100%, calc(var(--pw) + 108px)); }
}
}
