/* ═══════════════════════════════════════════════════════════════════════════
   lab-story.css — the Phrase Lab sales page as a scroll story (Oct 2026).
   Approved by James on 19 Oct 2026; the design is in
   Sales Push/phrase-lab-look-v2/ (story.html, cards-v3.html).

   Three parts:
   1. The page's own look. The app itself is warm paper, amber and the
      Fraunces serif, so this page now is too: --lab turns amber here and the
      display face becomes Fraunces, which re-dresses the kept sections
      (anatomy, free try, record, offer, questions) without touching them.
   2. The scenes. Every class starts with st-. A scene is a normal, still
      section in its finished state. lab-story.js adds html.st-live (never
      with "reduce motion"), and only then do the tall .st-pin sections hold
      their .st-stage on screen and the parts start hidden for the script to
      play.
   3. The topic cards (.st-tc) and the light colours of the mouth model.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. the page's look ──────────────────────────────────────────────── */
.page-lab3 {
  --lab: #9A6612; --lab-2: #7A4F0B; --lab-soft: #FBF2E4;
  --st-ink: #16171B; --st-soft: #5B606D; --st-text: #43464F;
  --st-gold: #9A6612; --st-gold-2: #D79A2B; --st-teal: #0F6E66; --st-violet: #6A3FC4;
  --st-disp: "Fraunces", Georgia, "Times New Roman", serif;
  --st-body: "Plus Jakarta Sans", "Figtree", "Helvetica Neue", Arial, sans-serif;
  --st-ease: cubic-bezier(.22, .8, .2, 1);
  --st-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --st-warm: radial-gradient(70% 55% at 85% 8%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 60%), radial-gradient(90% 70% at 8% 0%, #FFF4E4 0%, rgba(255,244,228,0) 70%), radial-gradient(80% 80% at 95% 60%, #FFD2A4 0%, rgba(255,210,164,0) 70%), radial-gradient(90% 70% at 25% 100%, #F7BB90 0%, rgba(247,187,144,0) 70%), #FFECD9;
  --st-cool: radial-gradient(70% 55% at 85% 8%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 60%), radial-gradient(80% 70% at 12% 8%, #E9FBF6 0%, rgba(233,251,246,0) 70%), radial-gradient(80% 80% at 98% 62%, #C6E5F7 0%, rgba(198,229,247,0) 70%), radial-gradient(90% 70% at 25% 100%, #B4E9DC 0%, rgba(180,233,220,0) 70%), #E1F4EF;
  --st-lilac: radial-gradient(70% 55% at 85% 8%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 60%), radial-gradient(80% 70% at 10% 10%, #F6F1FF 0%, rgba(246,241,255,0) 70%), radial-gradient(80% 80% at 95% 70%, #D8CCFF 0%, rgba(216,204,255,0) 70%), radial-gradient(90% 70% at 20% 100%, #FFD9E6 0%, rgba(255,217,230,0) 70%), #EEE8FF;
  /* room the scenes leave for the floating bar at the top, and on phones for
     the sticky "Try it free | Buy" bar at the bottom (x.css .stick) */
  --st-top: 92px;
  --st-bot: 28px;
}
@media (max-width: 760px) { .page-lab3 { --st-top: 76px; --st-bot: 88px; } }

.page-lab3 main { font-family: var(--st-body); --f-display: var(--st-disp); }
.page-lab3 main .xh1, .page-lab3 main .xh2, .page-lab3 main .xh3 { font-weight: 800; font-variation-settings: "opsz" 144; letter-spacing: -.024em; }
.page-lab3 main .xh2 { font-size: clamp(2.3rem, 1.4rem + 3.3vw, 4.5rem); line-height: .98; }
.page-lab3 main .xh1 em, .page-lab3 main .xh2 em { font-style: italic; font-weight: 600; color: var(--lab); }
.js .page-lab3 [data-split] .w { padding-bottom: .16em; margin-bottom: -.16em; padding-right: .06em; margin-right: -.06em; }
.page-lab3 main .xk { font-family: var(--st-body); font-size: 12.5px; font-weight: 800; letter-spacing: .16em; font-variation-settings: normal; }
.page-lab3 main .xk::before { display: none; }
.page-lab3 main .xbtn { font-family: var(--st-body); font-weight: 700; font-variation-settings: normal; letter-spacing: 0; border-radius: 16px; }
.page-lab3 main .xbtn-lg { min-height: 60px; padding: 0 28px; font-size: 1.08rem; }
.page-lab3 main .xbtn-lab { color: #fff; background: linear-gradient(180deg, #B47D1D, #8B5B0E); box-shadow: 0 14px 30px -12px rgba(139,91,14,.6), inset 0 1px 0 rgba(255,255,255,.25); }
.page-lab3 main .xbtn-lab:hover { color: #fff; background: linear-gradient(180deg, #A5700F, #7A4F0B); }
.page-lab3 main .xbtn-line { color: var(--st-ink); background: rgba(255,255,255,.78); box-shadow: inset 0 0 0 1px rgba(22,23,27,.12); }
.page-lab3 main .xbtn-line:hover { color: var(--st-ink); background: #fff; box-shadow: inset 0 0 0 1.5px var(--st-ink); }
.page-lab3 .stick .xbtn { border-radius: 14px; }
.page-lab3 .xprog { background: linear-gradient(90deg, #E0A23B, #9A6612); }
.page-lab3 .faq summary { font-weight: 700; font-variation-settings: "opsz" 24; }
.page-lab3 .lnew-h, .page-lab3 .lboth b, .page-lab3 .rec-line, .page-lab3 .sam-line, .page-lab3 .an-term, .page-lab3 .lrev blockquote, .page-lab3 .soe-try-h, .page-lab3 .soe-steps b { font-weight: 700; font-variation-settings: "opsz" 48; letter-spacing: -.015em; }
.page-lab3 .an-term, .page-lab3 .loffer-price b { font-weight: 800; font-variation-settings: "opsz" 144; }
.page-lab3 .lnew-k { font-family: var(--st-body); font-weight: 800; font-variation-settings: normal; }
.page-lab3 .soe-head .xh2 em { color: var(--soe-sea); }
.page-lab3 .rec [data-rec-play] .say-ic { background: var(--live); }
/* the last screen: warm light, like the first */
.page-lab3 .lfin { position: relative; overflow: hidden; color: var(--st-ink); background: var(--st-warm); }
.page-lab3 .lfin::after { content: ""; position: absolute; inset: 0; background: var(--st-grain); opacity: .085; mix-blend-mode: multiply; pointer-events: none; }
.page-lab3 .lfin-in { position: relative; z-index: 1; }
.page-lab3 .lfin .xh1 { font-size: clamp(2.8rem, 1.5rem + 5.4vw, 6.6rem); line-height: .95; }
.page-lab3 .lfin .xh1 em { color: var(--lab); }

/* ── 2. the scenes ───────────────────────────────────────────────────── */
.st-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.st-k { margin: 0 0 10px; font: 800 12.5px/1.35 var(--st-body); letter-spacing: .16em; text-transform: uppercase; color: var(--st-gold); }
.st-h2 { margin: 0; font-family: var(--st-disp); font-weight: 800; font-variation-settings: "opsz" 144; letter-spacing: -.022em; line-height: .97; color: var(--st-ink); text-wrap: balance; }
.st-grain { isolation: isolate; }
.st-grain::after { content: ""; position: absolute; inset: 0; z-index: 20; background: var(--st-grain); opacity: .085; mix-blend-mode: multiply; pointer-events: none; }
.st-bars { display: inline-flex; gap: 3px; align-items: center; height: 18px; margin-left: 12px; vertical-align: 2px; }
.st-bars i { width: 3px; border-radius: 3px; background: var(--st-gold-2); animation: st-wv 1.1s ease-in-out infinite; }
.st-bars i:nth-child(1) { height: 6px; } .st-bars i:nth-child(2) { height: 14px; animation-delay: .12s; } .st-bars i:nth-child(3) { height: 9px; animation-delay: .24s; } .st-bars i:nth-child(4) { height: 16px; animation-delay: .36s; } .st-bars i:nth-child(5) { height: 7px; animation-delay: .48s; }
@keyframes st-wv { 50% { transform: scaleY(.4); } }
/* nothing off screen keeps moving (lab-story.js adds .st-near to what is close) */
html.st-live .st-pin:not(.st-near) *, html.st-live .st-hero:not(.st-near) *, html.st-live .st-topics:not(.st-near) * { animation-play-state: paused !important; }

/* a pin, still: a normal section */
.st-pin { position: relative; }
.st-stage { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; padding: var(--st-top) 0 clamp(56px, 8vh, 96px); display: flex; flex-direction: column; justify-content: center; }
.st-fit { position: relative; width: 100%; }
/* a pin, playing: tall, with the stage held on screen while you scroll */
html.st-live .st-pin { height: calc(var(--h) * 1vh); }
/* phones: the same scenes, about a quarter shorter, so the story feels brisk */
@media (max-width: 760px) { html.st-live .st-pin { height: calc(var(--h) * .75vh); } }
html.st-live .st-stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; padding: var(--st-top) 0 var(--st-bot); }
html.st-live .st-fit { scale: var(--fit, 1); transform-origin: 50% 50%; }

/* 0 · the opening */
.st-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--st-warm); }
.st-hero-field { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
/* the blur sits on the same layer that drifts, so the browser blurs it once and only moves it */
.st-fb { position: absolute; left: var(--x); top: var(--y); opacity: var(--o); transform: scale(var(--s)); transform-origin: 0 0; will-change: transform; }
.st-fb > span { position: relative; display: block; filter: blur(var(--b)); will-change: transform; padding: 12px 18px 13px; border-radius: 20px; background: rgba(255,255,255,.74); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 14px 34px rgba(150,80,20,.12); font: 700 26px/1.1 var(--st-disp); color: #2A2620; white-space: nowrap; animation: st-drift var(--d) ease-in-out infinite alternate; }
.st-fb > span::after { content: ""; position: absolute; left: 20px; bottom: -9px; border: 10px solid transparent; border-top-color: rgba(255,255,255,.78); border-bottom: 0; }
@keyframes st-drift { from { transform: translate(0, -9px); } to { transform: translate(8px, 9px); } }
.st-hero-copy { position: relative; z-index: 5; max-width: 1000px; margin: 0 auto; padding: 128px 24px 132px; text-align: center; }
.st-h1 { margin: 0; font-family: var(--st-disp); font-weight: 800; font-variation-settings: "opsz" 144; font-size: clamp(48px, 8.6vw, 132px); line-height: .92; letter-spacing: -.026em; color: var(--st-ink); text-wrap: balance; }
.st-h1 em { font-style: italic; font-weight: 600; padding-right: .06em; color: var(--st-gold); background: linear-gradient(90deg, #A5680F, #E0A23B); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.st-sub { max-width: 640px; margin: 24px auto 30px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--st-text); text-wrap: pretty; }
.st-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.st-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; align-items: center; margin: 24px 0 0; font-size: 14.5px; color: #6A5F50; }
.st-meta > span { display: inline-flex; align-items: center; gap: 10px; }
.st-meta img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff; }
.st-meta .stars { color: #D79A2B; letter-spacing: 2px; }
.st-cue { position: absolute; left: 50%; bottom: 26px; z-index: 6; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #7A6A55; }
.st-cue i { width: 2px; height: 34px; background: linear-gradient(#7A6A55, transparent); transform-origin: top; animation: st-cue 1.8s ease-in-out infinite; }
@keyframes st-cue { 0% { transform: scaleY(0); opacity: 0; } 40% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .js .st-hero .st-in { animation: st-in 1s var(--st-ease) both; animation-delay: calc(var(--sd, 0) * 1ms + 120ms); }
}
@keyframes st-in { from { opacity: 0; transform: translateY(14px); } }

/* 1 · your textbook vs real life */
.st-tb .st-stage { background: #FFFDF9; }
.st-tb-head { display: grid; grid-template-columns: 1fr 70px 1fr; align-items: end; width: 100%; max-width: 1080px; margin: 0 auto 26px; padding: 0 28px; font-family: var(--st-disp); font-weight: 800; font-variation-settings: "opsz" 144; font-size: clamp(30px, 3.6vw, 52px); line-height: 1; letter-spacing: -.022em; color: var(--st-ink); }
.st-tb-l { grid-column: 1; color: #9AA0AB; }
.st-tb-r { grid-column: 3; }
.st-tb-r em { font-style: italic; color: var(--st-gold); }
.st-tb-rows { list-style: none; display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.st-row { display: grid; grid-template-columns: 1fr 70px 1fr; align-items: center; }
.st-tb-old { position: relative; justify-self: start; padding: 14px 18px; border-radius: 12px; border: 1px solid #ECE8DE; background: repeating-linear-gradient(#FBFAF6, #FBFAF6 31px, #E9E6DD 32px); font: 500 clamp(19px, 1.8vw, 26px)/1.25 Georgia, "Times New Roman", serif; color: #7C818C; }
.st-tb-old::after { content: ""; position: absolute; left: 12px; right: 12px; top: 52%; height: 3px; border-radius: 3px; background: var(--st-gold-2); transform: scaleX(var(--strike, 1)); transform-origin: left; }
.st-tb-arrow { justify-self: center; font-size: 26px; color: #C9B38C; }
.st-bub { position: relative; justify-self: start; padding: 14px 22px 16px; border-radius: 22px; background: #fff; box-shadow: 0 22px 50px rgba(150,80,20,.16); font: 800 clamp(26px, 2.8vw, 42px)/1.05 var(--st-disp); font-variation-settings: "opsz" 144; letter-spacing: -.015em; color: var(--st-ink); }
.st-bub::after { content: ""; position: absolute; left: 22px; bottom: -11px; border: 12px solid transparent; border-top-color: #fff; border-bottom: 0; }
.st-tb-foot { margin: 34px auto 0; padding: 0 24px; text-align: center; font: 700 clamp(22px, 2.4vw, 34px)/1.2 var(--st-disp); color: var(--st-ink); text-wrap: balance; }
.st-tb-foot em { font-style: italic; color: var(--st-gold); }
html.st-live .st-tb-old, html.st-live .st-tb-arrow, html.st-live .st-bub, html.st-live .st-tb-foot { opacity: 0; }
html.st-live .st-tb-old { --strike: 0; }

/* 2 · into the app */
.st-ph .st-stage { background: var(--st-warm); flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px 60px; padding-left: 28px; padding-right: 28px; }
.st-ph { background: #FFECD9; }
.st-beats { position: relative; z-index: 6; display: grid; gap: 34px; width: min(470px, 100%); }
.st-beat .st-h2 { margin-bottom: 14px; font-size: clamp(38px, 4.6vw, 70px); line-height: .95; }
.st-beat p { margin: 0; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; color: var(--st-text); }
.st-beat .st-k { color: var(--st-gold); }
.st-who { display: flex; align-items: center; gap: 12px; margin-top: 18px !important; font-size: 15px !important; color: var(--st-soft) !important; }
.st-who img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff; }
.st-fly { display: none; position: absolute; inset: 0; z-index: 4; pointer-events: none; }
html.st-live .st-fly { display: block; }
.st-fl { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.st-fl > span { display: block; padding: 10px 16px 11px; border-radius: 18px; background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 12px 30px rgba(150,80,20,.13); font: 700 22px/1.1 var(--st-disp); color: #2A2620; white-space: nowrap; }
/* the phone is drawn once at 330 × 676 and scaled to fit (--k, set by lab-story.js) */
.st-phone { position: relative; z-index: 5; flex: none; width: 330px; height: 676px; padding: 13px; border-radius: 54px; background: linear-gradient(145deg, #2B2B30, #0C0C0F); box-shadow: 0 60px 120px rgba(80,40,10,.35), inset 0 0 0 2px #45454C; }
.st-phone::before { content: ""; position: absolute; left: 50%; top: 24px; z-index: 3; width: 104px; height: 30px; margin-left: -52px; border-radius: 20px; background: #0C0C0F; }
.st-screen { position: relative; height: 100%; overflow: hidden; border-radius: 42px; background: #FBF8F2; font-family: var(--st-body); color: var(--st-ink); }
.st-scr { position: absolute; inset: 0; padding: 62px 18px 18px; }
.st-scr-a { opacity: 0; }
.st-apphead { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.st-apphead img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.st-apphead b { display: block; font: 700 16px/1.1 var(--st-disp); }
.st-apphead small { font-size: 10.5px; color: var(--st-soft); }
.st-count { margin: 0; font: 800 46px/1 var(--st-disp); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.st-count small { margin-left: 6px; font: 600 15px var(--st-body); letter-spacing: 0; color: var(--st-soft); }
.st-tlist { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.st-trow { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.st-g { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 16px; }
.st-trow b { display: block; font: 700 14.5px/1.25 var(--st-disp); }
.st-trow small { font-size: 11.5px; color: var(--st-soft); }
.st-pcard { padding: 18px; border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(120,80,10,.10); }
.st-lv { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--st-gold); }
.st-lv span:last-child { padding: 2px 8px; border-radius: 99px; background: #E2F4E8; color: #23784A; letter-spacing: .06em; }
.st-pterm { margin: 10px 0 8px; font: 800 36px/1.02 var(--st-disp); font-variation-settings: "opsz" 144; letter-spacing: -.02em; }
.st-mn { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: var(--st-soft); }
.st-play { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #FFF6E8; }
.st-pb { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #C58B20, #9A6612); color: #fff; font-size: 13px; }
.st-wave { position: relative; flex: 1; height: 26px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.st-wave svg { position: absolute; left: 0; top: 0; width: 200%; height: 26px; animation: st-wave 2.4s linear infinite; }
.st-wave path { fill: none; stroke: #C58B20; stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
@keyframes st-wave { to { transform: translateX(-50%); } }
.st-ex { margin-top: 12px; padding: 12px; border-radius: 14px; background: #F7F3EC; font-size: 13.5px; line-height: 1.45; }
.st-ex b { display: block; margin-bottom: 4px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--st-soft); }
.st-tr1 { margin-top: 10px; padding: 10px 12px; border-radius: 14px; border: 1px dashed #E4D6BD; font-size: 13.5px; }
.st-tr1 b { margin-right: 6px; color: var(--st-soft); }
/* playing: beats on top of each other, the phone placed by the script */
html.st-live .st-ph .st-stage { display: block; padding: 0; }
html.st-live .st-beats { position: absolute; left: max(28px, calc(50% - 600px)); top: 50%; width: min(470px, 40vw); transform: translateY(-50%); gap: 0; }
html.st-live .st-beat { grid-area: 1 / 1; align-self: center; opacity: 0; }
html.st-live .st-phone { position: absolute; right: max(28px, calc(50% - 560px)); top: 50%; margin-top: -338px; scale: var(--k, 1); transform-origin: 50% 50%; }
html.st-live .st-scr-a, html.st-live .st-scr-b, html.st-live .st-trow, html.st-live .st-ex, html.st-live .st-tr1 { opacity: 0; }

/* 3 · help in your language */
.st-lg .st-stage { background: var(--st-lilac); align-items: center; text-align: center; }
.st-lg { background: #EEE8FF; }
.st-lg .st-fit { padding: 0 20px; }
.st-lg .st-k { color: var(--st-violet); }
.st-lg .st-h2 { margin-bottom: 10px; font-size: clamp(34px, 4vw, 58px); line-height: 1; }
.st-s { margin: 0 auto 30px; max-width: 560px; font-size: clamp(16px, 1.4vw, 20px); color: #4B4560; }
.st-big { margin: 0; font: 800 clamp(56px, 10vw, 150px)/.9 var(--st-disp); font-variation-settings: "opsz" 144; letter-spacing: -.03em; color: var(--st-ink); }
.st-big .st-bars { height: 40px; margin-left: 18px; } .st-big .st-bars i { width: 6px; background: #7A52D6; }
.st-trans { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 2.9em; margin: 26px 0 0; }
.st-lname { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--st-violet); transition: opacity .3s ease; }
.st-ltext { max-width: 900px; font: 600 clamp(24px, 3vw, 44px)/1.25 var(--st-body); color: #2A2340; transition: opacity .3s ease, transform .4s ease; text-wrap: balance; }
.st-ribbon { margin-top: 40px; }
.st-track { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; margin: 0 auto; padding: 0 20px; }
.st-track span { padding: 9px 16px; border-radius: 99px; background: rgba(255,255,255,.6); font-size: 15px; font-weight: 700; color: #6B6386; white-space: nowrap; transition: background .3s ease, color .3s ease; }
.st-track span.st-on { background: var(--st-violet); color: #fff; }
html.st-live .st-ribbon { position: absolute; left: 0; right: 0; bottom: calc(var(--st-bot) + 4vh); height: 46px; margin: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
html.st-live .st-track { position: absolute; left: 50%; top: 0; flex-wrap: nowrap; gap: 12px; max-width: none; margin: 0; padding: 0; will-change: transform; }
html.st-live .st-lg .st-stage { padding-bottom: calc(var(--st-bot) + 4vh + 60px); }

/* 4 · back just before you forget */
.st-mem .st-stage { background: #FFFDF9; }
.st-mem-in { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: center; max-width: 1256px; margin: 0 auto; padding: 0 28px; }
.st-mem-copy .st-h2 { margin-bottom: 14px; font-size: clamp(34px, 4vw, 60px); line-height: .98; }
.st-mem-copy p:last-child { margin: 0; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; color: var(--st-text); }
.st-chart { position: relative; padding-top: 34px; }
.st-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.st-ax { stroke: #E5DFD3; stroke-width: 1.5; }
.st-lbl { font: 600 13px var(--st-body); fill: #7E838D; }
.st-curve { fill: none; stroke: url(#st-cg); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.st-area { fill: url(#st-ca); }
.st-rv { transform-box: fill-box; transform-origin: center; }
.st-rv-o { fill: #fff; stroke: #C58B20; stroke-width: 3; }
.st-rv-i { fill: #C58B20; }
.st-rvcard { position: absolute; top: calc(34px + 13.16%); padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.92); box-shadow: 0 10px 26px rgba(120,80,10,.14), 0 0 0 1px rgba(255,255,255,.9); font: 700 15px/1.2 var(--st-disp); white-space: nowrap; transform: translate(-50%, -130%); }
.st-rvcard small { display: block; font: 700 10.5px/1.3 var(--st-body); letter-spacing: .1em; text-transform: uppercase; color: var(--st-gold); }
html.st-live .st-rv, html.st-live .st-rvcard { opacity: 0; }

/* 5 · Sounds of English: the mouth */
.st-mo .st-stage { background: var(--st-cool); display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); grid-template-areas: "copy mouth" "chip mouth" "steps steps"; gap: 24px 40px; align-content: center; padding-left: max(28px, calc(50% - 600px)); padding-right: max(28px, calc(50% - 600px)); }
.st-mo { background: #E1F4EF; }
.st-mo-copy { grid-area: copy; position: relative; z-index: 6; }
.st-mo .st-k { color: var(--st-teal); }
.st-mo-copy .st-h2 { margin-bottom: 14px; font-size: clamp(38px, 4.6vw, 72px); line-height: .95; }
.st-mo-copy p { margin: 0; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; color: #34484A; }
.st-free { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 14px 6px 6px; border-radius: 99px; background: rgba(255,255,255,.72); color: var(--st-teal); font-size: 14px; font-weight: 800; }
.st-free b { padding: 2px 8px; border-radius: 99px; background: var(--soe-coral, #D9583F); color: #fff; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.st-mouthbox { grid-area: mouth; position: relative; z-index: 4; min-height: 420px; }
.st-mouthbox::before { content: ""; position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.85), rgba(255,255,255,0)); }
.st-mouth { position: absolute; inset: 0; }
.st-schip { grid-area: chip; position: relative; z-index: 7; justify-self: start; align-self: start; display: flex; align-items: center; gap: 16px; padding: 14px 24px 14px 14px; border-radius: 24px; background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.95); -webkit-backdrop-filter: blur(18px) saturate(1.25); backdrop-filter: blur(18px) saturate(1.25); box-shadow: 0 28px 70px rgba(15,110,102,.2); }
.st-sym { flex: none; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff, #D6F1EA); font: 400 38px/1 var(--f-ipa); color: var(--st-teal); transition: opacity .35s ease; }
.st-sw { display: grid; gap: 2px; transition: opacity .35s ease; }
.st-sw b { font: 800 32px/1.05 var(--st-disp); color: var(--st-ink); }
.st-sw small { max-width: 240px; font-size: 14px; line-height: 1.35; color: var(--st-soft); }
.st-sym.st-out, .st-sw.st-out { opacity: 0; }
.st-steps { grid-area: steps; position: relative; z-index: 7; justify-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 8px; border-radius: 22px; background: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.95); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.st-steps b { align-self: center; padding: 0 8px 0 10px; font-size: 13px; color: #34484A; white-space: nowrap; }
.st-steps span { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 16px; font-size: 14.5px; font-weight: 700; color: #4E6B6D; transition: background .4s ease, color .4s ease; }
.st-steps span i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(15,110,102,.1); font-size: 11.5px; font-style: normal; }
.st-steps span.st-on { background: var(--st-teal); color: #fff; } .st-steps span.st-on i { background: rgba(255,255,255,.25); }
/* the mouth model's colours: always the light ones (its tokens.css has a dark
   mode, and James's Mac is in dark mode), set here so they never reach the
   rest of the site */
.st-mouth {
  --paper: #F4EDDF; --paper-2: #EBE2CF; --paper-3: #E0D4BB; --card: #FFFFFF;
  --ink: #22545A; --ink-2: #485064; --ink-3: #7A8093; --rule: rgba(30,37,51,.14); --rule-2: rgba(30,37,51,.26);
  --sea: #BFE6DF; --sea-2: #86B9B6; --sea-deep: #4F8F92; --sea-ink: #24595E;
  --land: #FFFAF3; --land-2: #F1E3CF; --land-ink: #8A7444; --forest: #73905F; --snow: #FFFDF8;
  --voiced: #DE6447; --voiced-soft: #F6C3B2; --voiced-ink: #9C3A22;
  --voiceless: #557591; --voiceless-soft: #C3D3E1; --voiceless-ink: #2F4D66;
  --vowel: #2F8C8A; --vowel-soft: #BFE0DC; --glide: #D29A2E; --glide-soft: #F2DDA9;
  --tongue: #E2877F; --tongue-deep: #B95752; --gum: #F1B3A6;
  --good: #3F8F5A; --star: #E8B436;
  --f-display: var(--st-disp); --f-ui: var(--st-body);
  color-scheme: light;
}
.st-mouth .soe-mouth { max-width: none; margin: 0 auto; filter: drop-shadow(0 24px 50px rgba(15,110,102,.16)); }
.st-mouth .soe-mouth-caption { display: none; }
/* playing: the stage is one picture, placed like the design */
html.st-live .st-mo .st-stage { display: block; padding: 0; }
html.st-live .st-mo-copy { position: absolute; left: max(28px, calc(50% - 600px)); top: max(var(--st-top), 14%); width: min(440px, 38vw); }
html.st-live .st-mouthbox { position: absolute; right: max(0px, calc(50% - 640px)); top: 6%; bottom: calc(var(--st-bot) + 96px); width: min(760px, 60vw); min-height: 0; }
html.st-live .st-schip { position: absolute; left: max(28px, calc(50% - 600px)); top: 62%; }
html.st-live .st-steps { position: absolute; left: 50%; bottom: calc(var(--st-bot) + 18px); transform: translateX(-50%); flex-wrap: nowrap; width: max-content; max-width: calc(100% - 24px); }

/* the Sounds of English details, under the scene */
.st-soe .soe-steps { margin-top: 0; }
.st-soe-show { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(44px, 6vw, 72px); }
.st-soe-stage { margin: 0; max-width: none; padding-right: 0; }
.st-soe-rq { margin: 0; }

/* the topic cards */
.st-topics { overflow: hidden; }
.st-tgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.st-tc { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; background: #fff; cursor: pointer; box-shadow: 0 1px 0 rgba(0,0,0,.03), 0 14px 40px rgba(40,25,5,.08), 0 0 0 1px rgba(40,25,5,.04); transition: transform .5s var(--st-ease), box-shadow .5s ease; -webkit-tap-highlight-color: transparent; }
.st-tc:hover { transform: translateY(-6px); box-shadow: 0 34px 80px rgba(40,25,5,.15); }
.st-tc-art { position: relative; height: 222px; overflow: hidden; isolation: isolate; background: var(--art); }
.st-tc-art::after { content: ""; position: absolute; inset: 0; z-index: 9; background: var(--st-grain); opacity: .10; mix-blend-mode: multiply; pointer-events: none; }
.st-tc-sheen { position: absolute; inset: 0; z-index: 8; pointer-events: none; background: linear-gradient(112deg, rgba(255,255,255,0) 32%, rgba(255,255,255,.45) 46%, rgba(255,255,255,0) 60%); transform: translateX(-130%); }
.st-tc.st-sweep .st-tc-sheen { transform: translateX(130%); transition: transform 1.4s ease; }
.st-tc-emb { position: absolute; right: -24px; bottom: -78px; z-index: 1; font: 600 250px/1 var(--st-disp); color: #fff; opacity: .5; animation: st-breathe 14s ease-in-out infinite alternate; }
@keyframes st-breathe { from { transform: rotate(-4deg) scale(1); } to { transform: rotate(5deg) scale(1.06); } }
.st-tc-orb { position: absolute; left: -40px; top: -50px; z-index: 1; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.85), rgba(255,255,255,0)); animation: st-float 11s ease-in-out infinite alternate; }
@keyframes st-float { to { transform: translate(40px, 26px); } }
/* phrase bubbles in three depths: front (sharp), back (soft focus), far (deep
   focus). Moving between them is a camera pulling focus. */
.st-tc-bub { position: absolute; left: 0; top: 0; z-index: 3; max-width: 86%; margin: 0; padding: 11px 15px 12px; border-radius: 18px; background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 16px 36px var(--sh); font: 700 24px/1.12 var(--st-disp); color: #1D1B17; white-space: nowrap; transform-origin: left center; transition: transform 1s var(--st-ease), filter 1s var(--st-ease), opacity 1s var(--st-ease); will-change: transform, filter, opacity; }
.st-tc-bub::after { content: ""; position: absolute; left: 18px; bottom: -9px; border: 10px solid transparent; border-top-color: rgba(255,255,255,.9); border-bottom: 0; }
.st-tc-bub.st-front { z-index: 5; transform: translate(18px, 64px) scale(1) rotate(-1.2deg); filter: blur(0); opacity: 1; white-space: normal; max-width: 84%; }
.st-tc-bub.st-back { z-index: 4; transform: translate(var(--bx, 120px), 16px) scale(.62); filter: blur(1.6px); opacity: .7; }
.st-tc-bub.st-far { z-index: 2; transform: translate(30px, 160px) scale(.5); filter: blur(3.2px); opacity: .45; }
.st-tc-bub.st-gone { z-index: 1; transform: translate(-30px, 186px) scale(.42); filter: blur(5px); opacity: 0; }
.st-tc-bub.st-enter { transform: translate(26px, 52px) scale(1.12) rotate(-1.2deg); filter: blur(8px); opacity: 0; transition: none; white-space: normal; max-width: 84%; }
.st-tc-bub.st-s1 { font-size: 21px; } .st-tc-bub.st-s2 { font-size: 18.5px; } .st-tc-bub.st-s3 { font-size: 16.5px; }
.st-tc-bub .st-wd { display: inline-block; white-space: nowrap; }
.st-tc-bub .st-chr { display: inline-block; }
.st-tc-bub.st-rise .st-chr { animation: st-rise .6s var(--st-ease) both; animation-delay: calc(var(--i) * 22ms + 120ms); }
@keyframes st-rise { from { opacity: 0; transform: translateY(.45em); filter: blur(3px); } to { opacity: 1; transform: none; filter: blur(0); } }
.st-tc-bub .st-bars { height: 16px; gap: 2.5px; margin-left: 9px; vertical-align: -1px; }
.st-tc-bub .st-bars i { width: 3px; background: var(--c); animation: none; }
.st-tc-bub.st-talk .st-bars i { animation: st-wv .9s ease-in-out 2; }
.st-tc:hover .st-front .st-bars i { animation: st-wv .9s ease-in-out infinite; }
/* point at a card, or tap it: it stops and tells you what the phrase means */
.st-tc-means { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 7; padding: 10px 13px; border-radius: 16px; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13.5px; line-height: 1.35; color: #3A3D45; opacity: 0; transform: translateY(120%); transition: transform .55s var(--st-ease), opacity .4s ease; }
.st-tc-means b { display: block; margin-bottom: 2px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.st-tc:hover .st-tc-means, .st-tc.st-peek .st-tc-means { opacity: 1; transform: none; }
.st-tc-dots { position: absolute; right: 14px; top: 14px; z-index: 7; display: flex; gap: 4px; }
.st-tc-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.65); transition: background .4s ease, width .4s var(--st-ease); }
.st-tc-dots i.st-on { width: 16px; border-radius: 6px; background: #fff; }
.st-tc-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.st-tc-body h3 { margin: 0; font: 700 20px/1.2 var(--st-disp); color: var(--st-ink); }
.st-tc-body p { flex: 1; margin: 0; font-size: 14px; line-height: 1.45; color: var(--st-soft); }
.st-tc-body .st-tc-foot { flex: none; display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--st-soft); }
.st-tc-free { padding: 3px 8px; border-radius: 99px; background: var(--bgc); color: var(--c); font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.st-f-blue  { --c: #2B59C3; --bgc: #E4ECFF; --sh: rgba(43,89,195,.18);  --art: radial-gradient(80% 90% at 15% 10%, #F3F7FF, transparent 60%), radial-gradient(70% 80% at 92% 92%, #AEC3FF, transparent 70%), #D4E1FF; }
.st-f-rose  { --c: #B4325A; --bgc: #FDE6EC; --sh: rgba(180,50,90,.18);   --art: radial-gradient(80% 90% at 15% 10%, #FFF6F8, transparent 60%), radial-gradient(70% 80% at 92% 92%, #F6B0C3, transparent 70%), #FBDBE3; }
.st-f-sage  { --c: #23784A; --bgc: #E2F4E8; --sh: rgba(35,120,74,.18);   --art: radial-gradient(80% 90% at 15% 10%, #F4FCF6, transparent 60%), radial-gradient(70% 80% at 92% 92%, #A2DCB7, transparent 70%), #D3EEDC; }
.st-f-amber { --c: #A9620C; --bgc: #FFF0D9; --sh: rgba(169,98,12,.18);   --art: radial-gradient(80% 90% at 15% 10%, #FFFAF0, transparent 60%), radial-gradient(70% 80% at 92% 92%, #FFCA85, transparent 70%), #FFE6C2; }
.st-f-lilac { --c: #6A3FC4; --bgc: #EFE7FF; --sh: rgba(106,63,196,.18);  --art: radial-gradient(80% 90% at 15% 10%, #FAF6FF, transparent 60%), radial-gradient(70% 80% at 92% 92%, #C9B2FF, transparent 70%), #E6DCFF; }
.st-f-sand  { --c: #8A6A2F; --bgc: #F6ECD9; --sh: rgba(138,106,47,.18);  --art: radial-gradient(80% 90% at 15% 10%, #FFF8EA, transparent 60%), radial-gradient(70% 80% at 92% 92%, #E6C992, transparent 70%), #F3E3C4; }
.st-topics-go { display: grid; justify-items: center; gap: 12px; margin-top: clamp(30px, 4vw, 48px); text-align: center; }

/* ── phones and small screens ────────────────────────────────────────── */
@media (max-width: 1000px) {
  .st-tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-soe-show { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .st-hero-copy { padding: 158px 20px 120px; }
  .st-cue { display: none; }
  .st-tb-head { grid-template-columns: 1fr; gap: 2px; max-width: 600px; margin-bottom: 18px; padding: 0 20px; font-size: clamp(26px, 7.4vw, 38px); }
  .st-tb-l, .st-tb-r { grid-column: 1; }
  .st-tb-rows { gap: 12px; max-width: 600px; padding: 0 20px; }
  .st-row { grid-template-columns: 1fr; gap: 6px; }
  .st-tb-arrow { display: none; }
  .st-tb-old { padding: 9px 13px; font-size: 16px; }
  .st-tb-old::after { left: 9px; right: 9px; }
  .st-bub { justify-self: end; padding: 10px 16px 12px; border-radius: 18px; font-size: clamp(21px, 6vw, 28px); }
  .st-bub::after { left: auto; right: 22px; }
  .st-bub .st-bars { margin-left: 8px; }
  .st-tb-foot { margin-top: 22px; font-size: clamp(19px, 5.2vw, 24px); }
  .st-ph .st-stage { flex-direction: column; gap: 28px; padding-left: 20px; padding-right: 20px; }
  .st-beats { gap: 26px; }
  .st-beat .st-h2 { font-size: clamp(32px, 9vw, 42px); margin-bottom: 10px; }
  html.st-live .st-beats { left: 20px; right: 20px; top: var(--st-top); width: auto; transform: none; }
  html.st-live .st-beat { align-self: start; }
  html.st-live .st-who { display: none; }
  html.st-live .st-ph .st-tight .st-beat p:not(.st-k) { display: none; }
  html.st-live .st-phone { right: auto; left: 50%; top: var(--pt, 40%); margin: 0 0 0 -165px; transform-origin: 50% 0; }
  .st-lg .st-h2 { font-size: clamp(30px, 8.4vw, 40px); }
  .st-s { margin-bottom: 22px; }
  .st-big .st-bars { height: 28px; margin-left: 10px; } .st-big .st-bars i { width: 4px; }
  .st-trans { margin-top: 18px; }
  .st-mem-in { grid-template-columns: 1fr; gap: 18px; padding: 0 20px; }
  .st-mem-copy .st-h2 { font-size: clamp(30px, 8.4vw, 40px); }
  .st-chart { padding-top: 30px; }
  .st-lbl { font-size: 17px; }
  .st-rvcard { top: calc(30px + 13.16%); padding: 5px 9px; font-size: 0; border-radius: 10px; }
  .st-rvcard small { font-size: 10px; letter-spacing: .06em; }
  .st-rvcard small::after { content: " ✓"; color: #23784A; }
  .st-mo .st-stage { grid-template-columns: 1fr; grid-template-areas: "copy" "mouth" "chip" "steps"; padding-left: 20px; padding-right: 20px; }
  .st-mouthbox { min-height: 340px; }
  .st-mo-copy .st-h2 { font-size: clamp(32px, 9vw, 42px); }
  html.st-live .st-mo-copy { left: 20px; right: 20px; top: var(--st-top); width: auto; }
  html.st-live .st-mo .st-tight .st-mo-copy p:not(.st-k), html.st-live .st-mo .st-free { display: none; }
  html.st-live .st-mouthbox { left: 3%; right: 3%; width: auto; top: var(--mt, 34%); bottom: calc(var(--st-bot) + 62px); }
  html.st-live .st-schip { left: 16px; top: auto; bottom: calc(var(--st-bot) + 66px); }
  .st-schip { gap: 12px; padding: 9px 16px 9px 9px; border-radius: 20px; }
  .st-sym { width: 54px; height: 54px; font-size: 28px; }
  .st-sw b { font-size: 22px; }
  .st-sw small { font-size: 12.5px; max-width: 220px; }
  .st-steps > b { display: none; }
  .st-steps { gap: 2px; padding: 5px; }
  .st-steps span { padding: 8px 9px; font-size: 12px; }
  .st-steps span i { display: none; }
  html.st-live .st-steps { bottom: calc(var(--st-bot) + 10px); justify-content: space-between; width: calc(100% - 24px); }
  /* lighter work for phones: no frosted glass over the moving mouth, no grain over the scenes */
  .st-schip, .st-steps { background: rgba(255,255,255,.92); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .st-pin .st-grain::after { display: none; }
}
@media (max-width: 640px) {
  .st-lbl { font-size: 24px; }
  .st-tgrid { gap: 12px; }
  .st-tc { border-radius: 20px; }
  .st-tc-art { height: 150px; }
  .st-tc-bub, .st-tc-bub.st-s1 { padding: 8px 11px 9px; border-radius: 14px; font-size: 17px; }
  .st-tc-bub.st-s2 { font-size: 15px; } .st-tc-bub.st-s3 { font-size: 13.5px; }
  .st-tc-bub.st-front { transform: translate(10px, 40px) scale(1) rotate(-1.2deg); }
  .st-tc-bub.st-back { transform: translate(var(--bx, 60px), 10px) scale(.62); }
  .st-tc-bub.st-far { transform: translate(18px, 104px) scale(.5); }
  .st-tc-bub.st-gone { transform: translate(-20px, 124px) scale(.42); }
  .st-tc-bub.st-enter { transform: translate(16px, 32px) scale(1.12) rotate(-1.2deg); }
  .st-tc-bub .st-bars { display: none; }
  .st-tc-emb { bottom: -54px; font-size: 170px; }
  .st-tc-body { padding: 12px 12px 14px; }
  .st-tc-body h3 { font-size: 16px; }
  .st-tc-body p { display: none; }
  .st-tc-body .st-tc-foot { flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: 12px; }
  .st-tc-means { left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; font-size: 12px; }
  .st-tc-dots { right: 10px; top: 10px; }
}
@media (max-width: 380px) {
  .st-h1 { font-size: 44px; }
  .st-meta { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .st-fb > span, .st-bars i, .st-cue i, .st-tc-emb, .st-tc-orb, .st-wave svg { animation: none !important; }
  .st-tc-bub, .st-tc-bub .st-chr, .st-sym, .st-sw, .st-lname, .st-ltext { transition: none !important; animation: none !important; }
  .st-tc:hover { transform: none; }
}
