/* Shalby Care AI · presentation
   Palette: oatmeal paper, pine ink, lilac/heather accents, electric lemon fills.
   Each .scene is a tall section with a sticky .pin. deck.js sets three
   scroll variables on every scene, and the CSS below animates from them:
   --in  0→1 while the scene rises into view
   --p   0→1 while it is pinned
   --out 0→1 while it leaves                                        */

:root {
  --oat: #ece2cf;
  --paper: #f3e9d9;
  --pine: #1f3b2e;
  --lilac: #cbb3e8;
  --heather: #9b7ed6;
  --lemon: #e4ff3b;
  --red: #d9481f;

  --bg: var(--oat);
  --ink: var(--pine);
  --muted: #4f6357;
  --faint: #7b8a7f;
  --line: rgb(31 59 46 / .16);
  --accent: #7656c2;          /* heather, deep enough for text on oatmeal */
  --data: var(--pine);
  --soft: rgb(31 59 46 / .12);
  --glass-bg: rgb(255 252 246 / .5);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(20px, 5vw, 88px);
  color-scheme: light;
}
/* pine-green scenes */
.dark {
  --ink: #f3e9d9;
  --muted: #c3cdbf;
  --faint: #93a396;
  --line: rgb(243 233 217 / .18);
  --accent: var(--lilac);
  --data: var(--lemon);
  --soft: rgb(243 233 217 / .14);
  --glass-bg: rgb(243 233 217 / .07);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
[lang="hi"] { font-family: "Noto Sans Devanagari", var(--sans); }

/* ================= Background ================= */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, var(--paper) 0%, var(--oat) 70%); }
.bg i { position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%; filter: blur(110px); animation: drift 30s ease-in-out infinite alternate; }
.bg i:nth-child(1) { background: var(--lilac); top: -22vmax; right: -12vmax; opacity: .45; }
.bg i:nth-child(2) { background: var(--lemon); bottom: -30vmax; left: -14vmax; opacity: .22; animation-duration: 36s; }
.bg i:nth-child(3) { background: #fff8ec; top: 20vh; left: 25vw; opacity: .7; animation-duration: 42s; }
.bg i:nth-child(4) { background: var(--heather); bottom: -35vmax; right: 10vw; opacity: .18; animation-duration: 48s; }
@keyframes drift { to { transform: translate(7vw, 5vh) scale(1.12); } }
.grain { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: .18; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.spot { position: fixed; left: 0; top: 0; width: 620px; height: 620px; margin: -310px 0 0 -310px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgb(155 126 214 / .16), transparent); transform: translate(var(--mx, 50vw), var(--my, 50vh)); }

/* ================= Chrome ================= */
.chrome { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); pointer-events: none; color: var(--pine); transition: color .5s; }
.chrome::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: currentColor; opacity: .2; }
.chrome > * { pointer-events: auto; }
.on-dark .chrome, .on-dark .rail { color: var(--paper); }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; font-size: 17px; }
.mark em { font: italic 400 21px var(--serif); color: var(--heather); }
.orb-dot { width: 14px; height: 14px; background: currentColor; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.chrome-actions { display: flex; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 99px; border: 1px solid currentColor; background: transparent; color: inherit; font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .3s, color .3s; }
.pill:hover { background: var(--pine); color: var(--paper); }
.on-dark .chrome .pill:hover, .dark .pill:hover { background: var(--paper); color: var(--pine); }
.pill.icon { width: 40px; padding: 0; justify-content: center; }
.pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.rail { position: fixed; z-index: 20; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 4px; color: var(--pine); transition: color .5s; }
.rail a { position: relative; display: block; width: 22px; height: 18px; }
.rail a::before { content: ""; position: absolute; right: 6px; top: 8px; width: 6px; height: 2px; background: currentColor; opacity: .35; transition: width .4s var(--ease), opacity .3s; }
.rail a:hover::before { opacity: .8; }
.rail a[aria-current="true"]::before { width: 18px; opacity: 1; height: 3px; top: 7px; }
.rail a span { position: absolute; right: 32px; top: -3px; white-space: nowrap; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--pine); color: var(--paper); opacity: 0; transform: translateX(6px); transition: .25s; pointer-events: none; }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: none; }
.progress { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: 4px; }
.progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--pine), var(--heather) 70%, var(--lemon)); transform-origin: left; transform: scaleX(var(--sp, 0)); }
.hud { position: fixed; z-index: 21; left: var(--gutter); bottom: 18px; display: flex; gap: 18px; align-items: center; font: 500 14px var(--mono); padding: 8px 14px; border-radius: 12px; background: var(--pine); color: var(--paper); cursor: pointer; }
.hud[hidden] { display: none; }
.hud #hudTime { color: var(--lemon); font-size: 18px; }
.hud-keys { opacity: .6; font-size: 12px; }

/* ================= Scene mechanics ================= */
.scene { position: relative; height: calc(var(--len, 1) * 100vh); --in: 0; --p: 0; --out: 0; }
.pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.dark .pin { background: radial-gradient(90% 70% at 70% 20%, #2a4d3c, var(--pine) 60%, #172d22); }
.dark .pin::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40vmax 40vmax at 15% 90%, rgb(155 126 214 / .22), transparent 70%); }
.pin > .fx {
  transform: translateY(calc(var(--out) * 42vh)) scale(calc(1 + (1 - var(--in)) * .08 - var(--out) * .16));
  opacity: calc(1 - var(--out) * 1.7);
  will-change: transform, opacity;
}
.stage { position: relative; width: min(1320px, 100% - 2 * var(--gutter)); padding-top: 56px; }

.rv { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.rv.on { opacity: 1; transform: none; }

/* ================= Type ================= */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 22px; }
.eyebrow::before { content: "✦"; color: var(--accent); font-size: 15px; letter-spacing: 0; }
.mega { font-size: clamp(60px, 10vw, 190px); font-weight: 800; letter-spacing: -.06em; line-height: .9; }
.h2 { font-size: clamp(38px, 4.8vw, 84px); font-weight: 700; letter-spacing: -.05em; line-height: 1; text-wrap: balance; }
.giant { font-size: clamp(100px, 18vw, 320px); font-weight: 800; letter-spacing: -.07em; line-height: .88; color: var(--lemon); }
.giant small { font: italic 400 .3em var(--serif); letter-spacing: -.01em; color: var(--lilac); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.h2 .serif, .mega .serif { font-size: 1.08em; }
.hl { color: var(--accent); }
.lede { font-size: clamp(20px, 1.7vw, 28px); line-height: 1.4; color: var(--muted); max-width: 36ch; margin-top: 26px; text-wrap: pretty; }
.lede b { color: var(--ink); font-weight: 600; }
.note { color: var(--muted); font-size: 16px; line-height: 1.5; margin-top: 14px; }
.note b { color: var(--ink); font-weight: 600; }
.k { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.big { display: block; font-size: clamp(40px, 4.4vw, 72px); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.big small { font-size: .42em; color: var(--muted); letter-spacing: -.02em; font-weight: 500; }
.bad-t { color: var(--red); }

/* ================= Layout helpers ================= */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 90px); align-items: center; }
.split.even { grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; margin-top: 34px; }
.split.wide-right { grid-template-columns: .9fr 1.1fr; }
.split.wide-left { grid-template-columns: 1.15fr .85fr; }
.center-col { display: flex; flex-direction: column; align-items: center; text-align: center; }
.center-col .lede { margin-inline: auto; }
.stack { display: grid; gap: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; text-align: left; width: 100%; }
.two-col p:not(.k) { font-size: 19px; line-height: 1.45; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.trio p { color: var(--muted); margin-top: 10px; font-size: 18px; }

.glass {
  background: var(--glass-bg); border: 1px solid var(--line); border-radius: 24px;
  backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 30px 70px -45px rgb(31 59 46 / .5);
}
.dark .glass { box-shadow: inset 0 1px 0 rgb(255 255 255 / .08); }
.card { padding: clamp(18px, 2vw, 30px); }
.lime-card { background: var(--lemon); border-color: var(--lemon); }
.lime-card .big, .lime-card p { color: var(--pine); }

/* ================= Emblem: stethoscope, voice wave, AI ring ================= */
.emblem { width: 100%; height: 100%; overflow: visible; --open: .7; }
.emblem .halo { fill: url(#halo); }
.emblem .orbit { fill: none; stroke: var(--pine); stroke-opacity: .25; stroke-dasharray: 2 7; }
.emblem .net path { stroke: var(--pine); stroke-opacity: .28; stroke-width: 1; }
.emblem .node { fill: var(--pine); }
.emblem .node.hot { fill: var(--lemon); stroke: var(--pine); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: node 2.8s ease-in-out infinite; animation-delay: calc(var(--k) * -.4s); }
@keyframes node { 50% { transform: scale(1.35); } }
.emblem .tube { fill: none; stroke: var(--pine); stroke-width: 11; stroke-linecap: round; }
.emblem .shine { fill: none; stroke: #fff; stroke-opacity: .16; stroke-width: 3; stroke-linecap: round; transform: translate(-2px, -2px); }
.emblem .tip { fill: var(--lemon); stroke: var(--pine); stroke-width: 2.5; }
.emblem .joint { fill: var(--pine); }
.emblem .rim { fill: var(--pine); }
.emblem .disc { fill: url(#discg); }
.emblem .tex { fill: url(#stip); opacity: .14; }
.emblem .bar { fill: #7656c2; transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(var(--open)); }
.emblem .wave g:nth-child(3n) .bar { fill: var(--pine); }
.emblem .heart { fill: var(--pine); }
.emblem .ecg-u { fill: none; stroke: var(--pine); stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; }
.emblem .ecg { fill: none; stroke: var(--lemon); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 420; animation: ecg 3.6s linear infinite; }
@keyframes ecg { from { stroke-dashoffset: 420; } to { stroke-dashoffset: -420; } }
.emblem .star { fill: var(--pine); }

/* ================= 1 · Hero ================= */
.s-hero .pin { display: block; }
.hero-word { position: absolute; left: 0; right: 0; top: 13vh; text-align: center; line-height: .8; pointer-events: none;
  transform: scale(calc(1 + var(--p) * .5)); opacity: calc(1 - var(--p) * 1.6); }
.hero-word .w1 { display: block; font-size: min(25vw, 46vh); font-weight: 900; letter-spacing: -.07em; color: var(--pine); margin-left: -.05em; }
.hero-word .w2 { position: absolute; right: calc(var(--gutter) + 2vw); top: 82%; font-size: min(7.5vw, 13vh); color: var(--accent); }
.hero-emblem { position: absolute; left: 50%; bottom: -6vh; width: min(74vw, 98vh); aspect-ratio: 600 / 520;
  transform: translateX(-46%) translateY(calc(var(--p) * -24vh)) scale(calc(1 + var(--p) * var(--p) * 3.2));
  transform-origin: 50% 55%; opacity: calc(1 - max(0, var(--p) - .6) * 2.5); }
.hero-emblem .emblem { --open: calc(.35 + var(--p) * .75); filter: drop-shadow(0 30px 40px rgb(31 59 46 / .25)); }
.hero-side { position: absolute; left: var(--gutter); top: 42vh; font: 500 12px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.hero-side::after { content: ""; display: block; width: 26px; height: 1px; background: currentColor; margin-top: 12px; }
.hero-note { position: absolute; right: var(--gutter); text-align: right; font: 500 11px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-note b { display: block; font: italic 400 30px/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--accent); margin-bottom: 6px; }
.hero-note.n1 { top: 56vh; }
.hero-note.n2 { top: 69vh; }
.hero-note.n3 { top: 82vh; }
.hero-copy { position: absolute; left: var(--gutter); top: 58vh; }
.s-hero .rv.on { opacity: calc(1 - var(--p) * 3); }
.hero-tag { font: 400 clamp(36px, 3.6vw, 60px)/.98 var(--serif); letter-spacing: -.02em; }
.hero-tag em { color: var(--accent); }
.hero-small { margin: 16px 0 18px; font: 500 11px/1.7 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.spark { position: absolute; color: var(--pine); font-size: 22px; opacity: calc(1 - var(--p) * 3); animation: twinkle 4s ease-in-out infinite; }
.spark.s1 { left: 21vw; top: 11vh; } .spark.s2 { right: 18vw; top: 66vh; color: var(--accent); animation-delay: -2s; }
@keyframes twinkle { 50% { transform: rotate(45deg) scale(.7); } }
.pill.arrow span { display: grid; place-items: center; width: 24px; height: 24px; margin-right: -10px; border-radius: 50%; background: var(--lemon); color: var(--pine); }

/* ================= 2 · Context ================= */
.gauge-card { display: grid; grid-template-columns: 150px 1fr; gap: 6px 24px; align-items: center; }
.ring { width: 150px; height: 150px; grid-row: span 2; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 16; }
.ring-bg { stroke: var(--soft); }
.ring-fg { stroke: var(--heather); stroke-dasharray: 0 100; transition: stroke-dasharray 1.8s var(--ease) .3s; }
.on .ring-fg { stroke-dasharray: var(--v) 100; }
.ring-label b { display: block; font-size: clamp(38px, 3.6vw, 58px); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.ring-label span { color: var(--muted); }
.gauge-card .note { margin: 0; }
.hbar { display: grid; grid-template-columns: 110px 1fr 70px; gap: 14px; align-items: center; margin-top: 10px; }
.hbar span { color: var(--muted); font-size: 16px; }
.hbar i { height: 14px; border-radius: 99px; background: var(--data); width: 0; transition: width 1.6s var(--ease) .2s; }
.hbar.ghost i { background: repeating-linear-gradient(90deg, var(--soft) 0 6px, transparent 6px 11px); box-shadow: inset 0 0 0 1px var(--line); }
.hbar b { font-weight: 600; font-size: 20px; text-align: right; }
.on .hbar i { width: calc(var(--v) * 1%); }
.mix { display: flex; height: 54px; border-radius: 14px; overflow: hidden; gap: 3px; }
.mix i { flex: var(--v); display: flex; align-items: center; gap: 6px; padding: 0 14px; font-style: normal; font-size: 15px; color: var(--muted); background: var(--soft); white-space: nowrap; transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.mix i:nth-child(2) { transition-delay: .15s; } .mix i:nth-child(3) { transition-delay: .3s; }
.mix i b { color: var(--ink); font-size: 19px; font-weight: 700; }
.mix i.lime { background: var(--lemon); color: var(--pine); }
.on .mix i { transform: none; }

/* ================= 3 · Gaps track ================= */
.s-gaps .pin { display: block; }
.gaps-head { position: absolute; top: 15vh; left: var(--gutter); right: var(--gutter); }
.track { position: absolute; left: 0; top: 41vh; display: flex; gap: 28px; padding: 0 var(--gutter); transform: translateX(calc(var(--p) * var(--shift, 0) * -1px)); }
.track-line { position: absolute; left: var(--gutter); right: var(--gutter); top: -44px; width: calc(100% - 2 * var(--gutter)); height: 40px; overflow: visible; }
.track-line path { fill: none; stroke: var(--heather); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p) * 1.05); vector-effect: non-scaling-stroke; }
.gap { flex: 0 0 min(500px, 78vw); padding: 34px; min-height: 40vh; display: flex; flex-direction: column; }
.gap:nth-of-type(even) { background: rgb(203 179 232 / .38); }
.gap .num { font: italic 400 72px/1 var(--serif); color: var(--accent); }
.gap .stage-name { font: 500 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 16px 0 12px; }
.gap h3 { font-size: clamp(24px, 2.1vw, 32px); font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.gap .cost { margin-top: auto; padding-top: 22px; color: var(--red); font-size: 18px; font-weight: 500; display: flex; gap: 10px; }
.gap .cost::before { content: "→"; }

/* ================= 4 · No-shows ================= */
.dots-wrap { justify-self: center; }
.dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: clamp(8px, 1.1vw, 14px); width: min(460px, 38vw); }
.dots i { aspect-ratio: 1; border-radius: 50%; background: var(--pine); transition: background .7s var(--ease), transform .9s var(--ease), opacity .9s, box-shadow .7s; transition-delay: calc(var(--d) * 14ms); }
.st1 .dots i.miss, .st1 .dots i.lost { background: var(--lilac); box-shadow: inset 0 0 0 2px var(--heather); }
.st2 .dots i.lost { background: transparent; box-shadow: inset 0 0 0 2px var(--red); transform: translateY(26px) scale(.5); opacity: .55; }
.legend { display: flex; gap: 20px; margin-top: 34px; color: var(--muted); font-size: 15px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; }
.d-kept { background: var(--pine); } .d-miss { background: var(--lilac); box-shadow: inset 0 0 0 2px var(--heather); } .d-lost { box-shadow: inset 0 0 0 2px var(--red); }
.steps { display: grid; gap: 18px; }
.step { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.step > span { color: var(--muted); font-size: 20px; }
.step.warn .big { color: var(--accent); } .step.bad .big { color: var(--red); }
.callout { margin: 30px 0 0; padding: 22px 26px; font-size: 19px; line-height: 1.45; border-left: 4px solid var(--heather); }
.callout b { color: var(--accent); font-weight: 600; }

/* ================= 5 · 30 days ================= */
.days { display: grid; grid-template-columns: repeat(30, 1fr); gap: 6px; margin-top: 44px; }
.days i { position: relative; height: 64px; border-radius: 8px; background: var(--pine); opacity: clamp(.1, calc(var(--p) * 42 - var(--d)), 1); transform: scaleY(clamp(.3, calc(var(--p) * 42 - var(--d)), 1)); transform-origin: bottom; }
.days i:nth-child(14) { background: var(--heather); }
.days i:nth-child(1)::after, .days i:nth-child(14)::after, .days i:nth-child(30)::after { content: attr(data-l); position: absolute; margin-top: 74px; font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; }
.day-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 46px; }
.day-tags span { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-size: 16px; }

/* ================= 6 · Leak (dark) ================= */
.leak { width: min(900px, 100%); margin-top: 34px; text-align: left; }
.hbar.tall { grid-template-columns: minmax(180px, 290px) 1fr 90px; margin-top: 14px; }
.hbar.tall i { height: 24px; }
.hbar.tall span { color: var(--ink); font-size: 18px; }
.leak .hbar i:not(.lime) { background: var(--lilac); }

/* ================= 7 · Channels ================= */
.channels { position: relative; margin-top: 18px; }
.chan-svg { width: 100%; height: auto; max-height: 48vh; display: block; }
.chan-lines path { fill: none; stroke: var(--pine); stroke-opacity: .45; stroke-width: 1.4; stroke-dasharray: 3 7; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.chan-names text { fill: var(--pine); font: 500 17px var(--sans); text-anchor: end; dominant-baseline: middle; }
.hub { fill: var(--pine); }
.hub-ring { fill: none; stroke: var(--heather); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: hubring 2.4s ease-out infinite; }
@keyframes hubring { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.hub-ico { fill: var(--lemon); }
.hub-t { fill: var(--pine); font: 600 22px var(--sans); text-anchor: middle; }
.quote-chip { position: absolute; right: 0; bottom: -8px; max-width: 360px; padding: 16px 20px; font: italic 400 23px/1.25 var(--serif); background: var(--lilac); border-color: transparent; }
.quote-chip span { display: block; margin-top: 8px; font: 500 11px var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--pine); opacity: .7; }
.ok-k { color: var(--pine); } .bad-k { color: var(--red); }

/* ================= 8 · Purpose (dark) ================= */
.purpose { font: italic 400 clamp(36px, 4.6vw, 80px)/1.1 var(--serif); letter-spacing: -.015em; max-width: 21em; text-wrap: balance; transform: scale(calc(1.1 - var(--p) * .1)); }
.purpose .w { opacity: clamp(.14, calc(var(--p) * 1.35 * var(--n) - var(--w)), 1); }
.purpose .w.k2 { color: var(--lemon); }
.s-purpose .two-col { max-width: 1000px; }

/* ================= 9 · Freedom ================= */
.bound { position: relative; width: min(280px, 24vw); margin: 30px 0 10px; }
.bound svg { width: 100%; overflow: visible; }
.b-wall { fill: none; stroke: var(--red); stroke-width: 2; stroke-dasharray: 4 6; transition: transform 1.4s var(--ease), opacity 1s; transform-origin: center; transform-box: fill-box; }
.b-mind { fill: var(--soft); stroke: var(--line); }
.b-free { fill: rgb(203 179 232 / .45); stroke: var(--heather); stroke-width: 1.5; transform-origin: center; transform-box: fill-box; transition: transform 1.6s var(--ease), opacity 1s; opacity: 0; }
.st1 .b-wall { transform: scale(1.8); opacity: 0; }
.st1 .b-free { transform: scale(1.65); opacity: 1; }
.b-cap { position: absolute; inset: 0; display: grid; place-items: center; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 0 30%; }
.people { display: grid; gap: 12px; }
.people-head { display: flex; gap: 10px; margin: 0 0 4px 142px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.people-head span { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--faint); transition: .6s var(--ease); }
.people-head .ph-was { color: var(--paper); background: var(--pine); border-color: var(--pine); }
.st1 .people-head .ph-was { color: var(--faint); background: transparent; border-color: var(--line); }
.st1 .people-head .ph-now { color: var(--pine); background: var(--lemon); border-color: var(--lemon); }
.person { display: grid; grid-template-columns: 120px 1fr; align-items: center; padding: 16px 22px; border-radius: 18px; transition: background .6s; }
.person b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.person p { grid-column: 2; grid-row: 1; font-size: 17px; line-height: 1.35; transition: opacity .6s var(--ease), transform .7s var(--ease), filter .6s; }
.person .was { color: var(--muted); }
.person .now { color: var(--ink); opacity: 0; transform: translateY(14px); }
.st1 .person .was { opacity: 0; transform: translateY(-14px); filter: blur(4px); }
.st1 .person .now { opacity: 1; transform: none; }
.st1 .person { background: rgb(203 179 232 / .4); }
.st1 .person:nth-child(3) p { transition-delay: .1s; } .st1 .person:nth-child(4) p { transition-delay: .2s; } .st1 .person:nth-child(5) p { transition-delay: .3s; } .st1 .person:nth-child(6) p { transition-delay: .4s; }

/* ================= 10 · DaWoGoMo ================= */
.db-scale { display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; margin-left: 210px; margin-right: 96px; font: 500 12px var(--mono); color: var(--faint); margin-bottom: 8px; }
.db { display: grid; grid-template-columns: 210px 1fr 96px; align-items: center; height: 54px; }
.db-k { font-size: 17px; color: var(--muted); }
.db-k b { display: inline-block; width: 44px; font: italic 400 32px var(--serif); color: var(--accent); }
.db-t { position: relative; height: 100%; }
.db-t::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.db-t i { position: absolute; top: calc(50% - 4px); height: 8px; border-radius: 99px; left: calc((var(--a) - 1) * 20% + 10%); width: 0; background: linear-gradient(90deg, var(--lilac), var(--heather)); transition: width 1.4s var(--ease) .3s; }
.on .db-t i { width: calc((var(--b) - var(--a)) * 20%); }
.db-t em, .db-t s { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; }
.db-t em { left: calc((var(--a) - 1) * 20% + 10%); background: var(--pine); opacity: .35; }
.db-t s { left: calc((var(--a) - 1) * 20% + 10%); background: var(--heather); box-shadow: 0 0 0 4px rgb(155 126 214 / .25); transition: left 1.4s var(--ease) .3s; }
.on .db-t s { left: calc((var(--b) - 1) * 20% + 10%); }
.db-v { text-align: right; font: 500 15px var(--mono); color: var(--muted); }
.plot { position: relative; height: calc(100% - 40px); min-height: 300px; margin: 10px 10px 26px 28px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); background-image: linear-gradient(var(--soft) 1px, transparent 1px), linear-gradient(90deg, var(--soft) 1px, transparent 1px); background-size: 20% 20%; }
.ax { position: absolute; font: 500 11px var(--mono); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.ax-x { right: 0; bottom: -24px; } .ax-y { left: -24px; top: 0; writing-mode: vertical-rl; transform: rotate(180deg); }
.pt { position: absolute; left: calc((var(--x) - 1) / 4.6 * 100%); bottom: calc((var(--y) - 1) / 4.6 * 100%); }
.pt i { position: absolute; width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: var(--pine); opacity: .45; }
.pt span { position: absolute; left: 18px; top: -12px; width: max-content; max-width: 190px; font-size: 15px; color: var(--muted); line-height: 1.3; }
.pt.lab-up span { top: -50px; left: -10px; }
.pt.lab-l span { left: auto; right: 18px; text-align: right; }
.pt.lead i { width: 32px; height: 32px; margin: -16px; opacity: 1; background: var(--lemon); box-shadow: 0 0 0 2px var(--pine), 0 0 0 10px rgb(155 126 214 / .3); animation: lead 2.4s ease-in-out infinite; }
.pt.lead span { left: auto; right: -10px; top: 26px; text-align: right; color: var(--ink); font-size: 17px; max-width: 250px; }
.pt.lead strong { color: var(--accent); font-weight: 700; }
@keyframes lead { 50% { box-shadow: 0 0 0 2px var(--pine), 0 0 0 18px rgb(155 126 214 / .12); } }

/* ================= 11 · Journeys ================= */
.journeys { margin-top: 30px; }
.journeys > .card { min-height: 52vh; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.chat .b { max-width: 82%; padding: 12px 16px; border-radius: 18px; font-size: 18px; line-height: 1.35; }
.chat .me { align-self: flex-end; background: var(--pine); color: var(--paper); border-bottom-right-radius: 6px; }
.chat .ag { align-self: flex-start; background: var(--lilac); color: var(--pine); border-bottom-left-radius: 6px; }
.chat .sys { align-self: center; font: 500 12px var(--mono); color: var(--muted); padding: 6px 12px; border: 1px dashed var(--line); border-radius: 99px; text-align: center; }
.chat .sys.ok { color: var(--pine); background: var(--lemon); border: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 1px solid var(--line); display: grid; gap: 16px; }
.timeline li { position: relative; font-size: 17px; color: var(--muted); line-height: 1.4; }
.timeline li::before { content: ""; position: absolute; left: -33px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--pine); }
.timeline li b { display: block; color: var(--ink); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.timeline li.amber::before { background: var(--heather); } .timeline li.amber b { color: var(--accent); }
.timeline li.red::before { background: var(--red); animation: alarm 1.4s infinite; } .timeline li.red b { color: var(--red); }
.timeline li.ok::before { background: var(--lemon); box-shadow: 0 0 0 2px var(--pine); }
@keyframes alarm { 50% { box-shadow: 0 0 0 6px rgb(217 72 31 / .25); } }

/* ================= 12 · Demo (dark) ================= */
.demo-emblem { width: min(480px, 46vh); aspect-ratio: 600 / 520; margin-bottom: 18px; }
.demo-emblem .emblem { --open: 1; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgb(0 0 0 / .35)); }
@keyframes float { 50% { transform: translateY(-10px); } }
.demo-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.demo-list span { padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-size: 17px; }
.cta { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; height: 64px; padding: 0 12px 0 32px; border-radius: 99px; background: var(--lemon); color: var(--pine); font-size: 21px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; transition: transform .3s var(--ease); }
.cta span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--pine); color: var(--lemon); }
.cta:hover { transform: translateY(-2px) scale(1.03); }

/* ================= 13 · Architecture ================= */
.slabs { position: relative; height: 70vh; perspective: 1600px; }
.slab {
  --t: clamp(0, calc(var(--p) * 1.5), 1);
  position: absolute; left: 0; right: 0; top: 50%; height: 9.6vh;
  display: grid; grid-template-columns: 170px repeat(4, 1fr); gap: 8px; align-items: center; padding: 0 14px;
  border-radius: 16px; border: 1px solid var(--line);
  background: rgb(255 252 246 / .72); backdrop-filter: blur(10px);
  transform: translateY(calc(-50% + (var(--n) - 2.5) * (14px + var(--t) * 10.4vh)))
             rotateX(calc((1 - var(--t)) * 58deg)) rotateZ(calc((1 - var(--t)) * -24deg))
             scale(calc(.82 + var(--t) * .18));
  box-shadow: 0 20px 40px -24px rgb(31 59 46 / .45);
}
.slab b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.slab span { font-size: 14px; line-height: 1.15; color: var(--muted); padding: 7px 6px; border-radius: 10px; background: var(--soft); text-align: center; }
.slab.safe { background: var(--lemon); border-color: var(--pine); }
.slab.safe span { color: var(--pine); background: rgb(31 59 46 / .1); }
.slab .gate { color: var(--lemon); background: var(--pine); font-weight: 600; }
.bvb { display: grid; gap: 10px; margin-top: 30px; }
.bvb div { padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.bvb b { display: block; color: var(--ink); font-size: 18px; font-weight: 700; }
.bvb .own { background: var(--pine); color: rgb(243 233 217 / .8); border-color: var(--pine); } .bvb .own b { color: var(--lemon); }

/* ================= 14 · Guardrails ================= */
.tiers { display: grid; gap: 12px; align-content: start; }
.tier { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; padding: 18px 22px; border-radius: 20px; }
.t-n { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font: italic 400 28px var(--serif); background: var(--lemon); color: var(--pine); }
.tier b { font-size: 21px; font-weight: 700; letter-spacing: -.02em; } .tier p { color: var(--muted); font-size: 17px; }
.t2 .t-n { background: var(--lilac); }
.t3 .t-n { background: var(--heather); color: #fff; }
.t4 { border-color: rgb(217 72 31 / .45); } .t4 .t-n { background: var(--red); color: #fff; font: 700 24px var(--sans); }
.risk-bars { position: relative; display: grid; gap: 5px; }
.rb { display: grid; grid-template-columns: 210px 1fr; gap: 12px; align-items: center; font-size: 14px; color: var(--muted); }
.rb i { position: relative; height: 12px; border-radius: 99px; background: var(--lilac); width: 0; transition: width 1.2s var(--ease); transition-delay: calc(var(--d) * 50ms); }
.rb i::after { content: "+" attr(data-v); position: absolute; left: calc(100% + 8px); top: -4px; font: 500 12px var(--mono); color: var(--ink); opacity: 0; transition: opacity .4s 1s; }
.rb.top i { background: var(--pine); }
.on .rb i { width: calc(var(--v) / 52 * 100%); } .on .rb i::after { opacity: 1; }
.thr { position: absolute; top: -6px; bottom: -6px; width: 0; border-left: 1px dashed var(--muted); left: calc(210px + 12px + (100% - 222px) * var(--v) / 52); }
.thr span { position: absolute; top: -20px; left: 6px; font: 500 11px var(--mono); color: var(--muted); white-space: nowrap; }
.thr.hi { border-color: var(--red); } .thr.hi span { color: var(--red); }

/* ================= 15 · Impact ================= */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; perspective: 900px; }
.tile { position: relative; padding: 26px; border-radius: 24px; color: var(--pine); min-height: 34vh; display: flex; flex-direction: column; overflow: hidden; transform-style: preserve-3d; transition: transform .5s var(--ease), opacity .9s var(--ease); }
.tile.on { transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); }
.tile b { font-size: clamp(44px, 4.6vw, 80px); font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.tile p { font-size: 20px; font-weight: 600; margin-top: 10px; line-height: 1.25; letter-spacing: -.01em; }
.tile small { margin-top: auto; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.m1 { background: var(--lemon); }
.m2 { background: var(--lilac); }
.m3 { background: var(--pine); color: var(--paper); }
.m4 { background: #fffaf1; border: 1px solid var(--line); }
.m4 b { color: var(--accent); }
.tile::after { content: "✦"; position: absolute; right: 22px; top: 18px; font-size: 22px; opacity: .6; transition: transform .8s var(--ease); }
.tile:hover::after { transform: rotate(90deg) scale(1.2); }
.gates { margin-top: 28px; }
.gate-row { display: flex; flex-wrap: wrap; gap: 10px; }
.gate-row span { display: inline-flex; align-items: baseline; gap: 10px; padding: 12px 18px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.gate-row b { color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: -.03em; }

/* ================= 16 · BMC ================= */
.bmc { display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: auto auto auto; gap: 10px; margin-top: 30px; perspective: 1400px; }
.cell { padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass-bg); backdrop-filter: blur(14px); font-size: 15px; line-height: 1.45; color: var(--muted); }
.cell b { display: block; color: var(--ink); font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.s-bmc .cell.rv { transform: translateZ(-300px) rotateX(20deg); }
.s-bmc .cell.rv.on { transform: none; }
.c-kp { grid-column: 1 / 3; grid-row: 1 / 3; } .c-ka { grid-column: 3 / 5; grid-row: 1; } .c-kr { grid-column: 3 / 5; grid-row: 2; }
.c-vp { grid-column: 5 / 7; grid-row: 1 / 3; } .c-cr { grid-column: 7 / 9; grid-row: 1; } .c-ch { grid-column: 7 / 9; grid-row: 2; }
.c-cs { grid-column: 9 / 11; grid-row: 1 / 3; } .c-cost { grid-column: 1 / 6; grid-row: 3; } .c-cap { grid-column: 6 / 11; grid-row: 3; }
.c-vp { background: var(--pine); color: rgb(243 233 217 / .88); border-color: var(--pine); } .c-vp b { color: var(--lemon); }
.c-cap { background: var(--lilac); color: var(--pine); border-color: transparent; }

/* ================= 17 · Close ================= */
.close-emblem { position: absolute; left: 50%; bottom: -55vh; width: min(110vw, 150vh); aspect-ratio: 600 / 520; transform: translateX(-50%) scale(calc(.6 + var(--in) * .4)); opacity: .16; }
.close-emblem .emblem { --open: calc(.4 + var(--in) * .6); }
.s-close .stage { padding-top: 0; }
.close-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 40px; }
.thanks { font: italic 400 32px var(--serif); margin-right: 12px; }
.sources { margin-top: 48px; max-width: 900px; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ================= Smaller screens ================= */
@media (max-width: 900px) {
  .split, .split.even, .split.wide-left, .split.wide-right, .two-col, .trio { grid-template-columns: 1fr; }
  .rail, .hud-keys, .hero-note, .hero-side, .spark { display: none; }
  .hero-emblem { width: 110vw; bottom: 0; }
  .hero-copy { top: auto; bottom: 46vh; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile { min-height: 22vh; }
  .bmc { grid-template-columns: 1fr 1fr; }
  .bmc .cell { grid-column: auto; grid-row: auto; }
  .gauge-card { grid-template-columns: 100px 1fr; } .ring { width: 100px; height: 100px; }
  .db { grid-template-columns: 120px 1fr 80px; } .db-scale { display: none; } .db-k { font-size: 0; } .db-k b { font-size: 26px; }
  .slab { grid-template-columns: 1fr 1fr; height: auto; padding: 8px; } .slab b { grid-column: 1 / -1; }
  .slab span:nth-of-type(n+3) { display: none; }
  .dots { width: 70vw; }
  .chan-names text { font-size: 22px; }
  .quote-chip { position: static; margin-top: 12px; }
  .pin { place-items: start center; overflow-y: auto; }
  .stage { padding-top: 84px; }
  .people-head { margin-left: 0; }
  .rb { grid-template-columns: 140px 1fr; } .thr { left: calc(152px + (100% - 152px) * var(--v) / 52); }
}

@media (prefers-reduced-motion: reduce) {
  .bg i, .chan-lines path, .hub-ring, .pt.lead i, .spark, .demo-emblem .emblem, .emblem .node.hot, .emblem .ecg, .timeline li.red::before { animation: none !important; }
  .rv { transition-duration: .01s; }
}

/* emblem on pine scenes */
.dark .emblem .tube, .dark .emblem .orbit { stroke: var(--paper); }
.dark .emblem .net path { stroke: var(--paper); }
.dark .emblem .joint, .dark .emblem .rim, .dark .emblem .node:not(.hot), .dark .emblem .star { fill: var(--paper); }
.dark .emblem .halo { opacity: .35; }

/* team names */
.team { margin: -6px 0 18px; font: italic 400 21px/1.3 var(--serif); color: var(--accent); }
.team-close { margin: 34px 0 0; font-size: 26px; }

/* ================= Kinetic headlines ================= */
.rv.kin { opacity: 1; transform: none; }
.kw { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .16em 0; margin: 0 -.08em -.16em 0; }
.kw > i { display: inline-block; font-style: inherit; transform: translateY(112%) rotate(5deg); transform-origin: 0 100%;
  transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + var(--wi) * 55ms); }
.kin.on .kw > i { transform: none; }
.kin [data-count] { opacity: 0; transition: opacity .8s; }
.kin.on [data-count] { opacity: 1; }

/* ================= Portal transitions ================= */
/* the scene overlaps the previous one and opens as a growing circle */
.scene.portal { margin-top: -100vh; }
.portal .pin { clip-path: circle(calc(var(--pp, 1) * 80vmax) at 50% 50%); }
.portal:not(.dark) .pin { background: radial-gradient(120% 90% at 50% 0%, var(--paper), var(--oat) 70%); }
.portal .pin::after { content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--pp, 1) * 160vmax); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  box-shadow: inset 0 0 0 3px var(--lemon), inset 0 0 80px rgb(228 255 59 / .3); opacity: calc(1 - var(--pp, 1)); pointer-events: none; }
.portal:not(.dark) .pin::after { box-shadow: inset 0 0 0 3px var(--heather), inset 0 0 80px rgb(155 126 214 / .35); }

/* ================= Journey A phone ================= */
.phone-card { display: flex; flex-direction: column; }
.phone { position: relative; flex: 1; border: 10px solid var(--pine); border-radius: 40px; background: #fffaf2; padding: 18px 16px; box-shadow: 0 34px 60px -34px rgb(31 59 46 / .7); }
.phone::before { content: ""; position: absolute; top: -1px; left: 50%; width: 96px; height: 18px; transform: translateX(-50%); background: var(--pine); border-radius: 0 0 14px 14px; }
.call-bar { display: flex; align-items: center; gap: 12px; padding: 10px 4px 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.call-bar b { display: block; font-size: 16px; letter-spacing: -.01em; }
.call-bar small { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.call-dot { width: 10px; height: 10px; border-radius: 50%; background: #3bb273; animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 6px rgb(59 178 115 / .18); } }
.call-wave { margin-left: auto; display: flex; gap: 3px; align-items: center; height: 30px; }
.call-wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--heather); transform: scaleY(.15); animation: eq 1s ease-in-out infinite paused; }
.call-wave i:nth-child(2n) { animation-duration: .78s; } .call-wave i:nth-child(3n) { animation-duration: 1.3s; animation-delay: -.4s; }
.call-wave i:nth-child(5n) { animation-duration: .9s; animation-delay: -.2s; } .call-wave i:nth-child(7n) { background: var(--pine); }
.st1 .call-wave i { animation-play-state: running; }
.st3 .call-wave i { animation-play-state: paused; }
@keyframes eq { 0%, 100% { transform: scaleY(.15); } 30% { transform: scaleY(.95); } 60% { transform: scaleY(.4); } 80% { transform: scaleY(.7); } }
.chat .b { position: relative; }
.chat .b.on::after { content: "• • •"; position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: inherit; font-size: 20px; letter-spacing: 2px;
  animation: typing .95s calc(var(--i, 0) * 90ms) both; }
@keyframes typing { 0%, 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

/* ================= Safety net catches a sentence ================= */
.slab { transition: opacity .6s, filter .6s; }
.packet { position: absolute; z-index: 3; left: 196px; top: 0; padding: 8px 14px; border-radius: 14px; background: var(--red); color: #fff; font-size: 16px; line-height: 1.25; opacity: 0; pointer-events: none;
  box-shadow: 0 14px 30px -12px rgb(217 72 31 / .7); }
.packet small { display: block; font: 500 11px var(--mono); opacity: .85; }
.st1 .packet { animation: drop 1.3s cubic-bezier(.55, 0, .3, 1) forwards; }
@keyframes drop {
  0% { opacity: 0; top: calc(50% - 34vh - 30px); }
  15% { opacity: 1; }
  70% { top: calc(50% - 5.2vh - 33px); }
  80% { top: calc(50% - 5.2vh - 42px); }
  100% { opacity: 1; top: calc(50% - 5.2vh - 33px); }
}
.packet { display: grid; }
.packet > span { grid-area: 1 / 1; transition: opacity .35s; }
.pk-b { opacity: 0; font-weight: 600; }
.st1 .pk-a { opacity: 0; transition-delay: 1.5s; }
.st1 .pk-b { opacity: 1; transition-delay: 1.6s; }
.st1 .slab.safe { animation: catch .5s .9s 2; }
@keyframes catch { 50% { box-shadow: 0 0 0 10px rgb(217 72 31 / .35); border-color: var(--red); } }
.st1:not(.st2) .slab.safe ~ .slab { opacity: .35; filter: grayscale(1); }

/* ================= Voice-reactive emblem ================= */
.demo-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 30px; }
.demo-actions .cta { margin-top: 0; }
.mic-btn { height: 64px; padding: 0 24px; font-size: 14px; }
.mic-btn[aria-pressed="true"] { background: var(--lemon); color: var(--pine); border-color: var(--lemon); }
.demo-emblem.listening { transform: scale(calc(1 + var(--vol, 0) * .15)); transition: transform .08s linear; }
.demo-emblem.listening .bar { transform: scaleY(var(--lv, .3)); transition: transform .07s linear; }

/* keep the Journey A phone inside one screen */
.journeys { margin-top: 22px; }
.journeys > .card { min-height: 0; }
.phone { padding: 12px 14px 14px; border-width: 8px; }
.call-bar { padding: 8px 4px 10px; margin-bottom: 10px; }
.chat { gap: 7px; }
.chat .b { font-size: 16px; padding: 9px 13px; }
.chat .sys { font-size: 11px; padding: 5px 10px; }
#s-journeys .h2 { font-size: clamp(34px, 4vw, 68px); }
