/* =============================================================================
   SUMMARY AGENT HERO
   Every class is sa-hero-*, every attribute is data-sa-hero-*.
   Fonts: DM Sans (400/500/600) + DM Mono (400) - already loaded by the site.
   ========================================================================== */


/* --- root + tokens ---------------------------------------------------------- */
.sa-hero {
  --sa-hero-header: 80px;
  --sa-hero-avail: calc(100svh - var(--sa-hero-header));
  --sa-hero-menubar: 38px;
  --sa-hero-ease: cubic-bezier(.2, .7, .2, 1);
  --sa-hero-blur: blur(30px) saturate(165%);
  --sa-hero-ink: #24242A;
  --sa-hero-accent: #205AE3;
  display: block;
  padding-top: var(--sa-hero-header);
  color: var(--sa-hero-ink);
  font-family: 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  overflow-x: clip;
}
.sa-hero *, .sa-hero *::before, .sa-hero *::after { box-sizing: border-box; }
/* base rules are scoped :not([class]) so they can never out-score a prefixed
   component class - a bare `.sa-hero a` would score (0,1,1) and silently win */
.sa-hero a:not([class]) { color: var(--sa-hero-ink); text-decoration: none; }
.sa-hero a:not([class]):hover, .sa-hero a:not([class]):focus { color: var(--sa-hero-accent); }
.sa-hero button:not([class]) { font: inherit; }

/* dark glass (default) */
.sa-hero[data-sa-hero-theme="dark"] {
  --sa-hero-fill: rgba(26, 28, 38, 0.30);
  --sa-hero-crm-fill: rgba(12, 20, 50, 0.92);
  --sa-hero-border: rgba(255, 255, 255, 0.17);
  --sa-hero-inset: rgba(255, 255, 255, 0.11);
  --sa-hero-shadow: 0 22px 48px rgba(6, 6, 12, 0.26);
  --sa-hero-btn: rgba(30, 32, 42, 0.34);
  --sa-hero-btn-border: rgba(255, 255, 255, 0.19);
  --sa-hero-text: #EDEFF4;
  --sa-hero-strong: #FFFFFF;
  --sa-hero-label: #C2C9D6;
  --sa-hero-muted: #D9DCE4;
  --sa-hero-tile: rgba(255, 255, 255, 0.10);
  --sa-hero-tile-border: rgba(255, 255, 255, 0.12);
  --sa-hero-chip: rgba(255, 255, 255, 0.15);
  --sa-hero-chip-text: #E9ECF2;
  --sa-hero-key: rgba(147, 222, 253, 0.20);
  --sa-hero-glow: rgba(147, 222, 253, 0.52);
  --sa-hero-hl: rgba(147, 222, 253, 0.16);
  --sa-hero-hl-border: rgba(147, 222, 253, 0.55);
  --sa-hero-ok: rgba(126, 214, 168, 0.24);
  --sa-hero-ok-text: #CBEEDB;
  --sa-hero-mark: none;
  --sa-hero-icon: #EEF0F5;
  --sa-hero-tl-label: rgba(255, 255, 255, 0.5);
  --sa-hero-tl-strong: #FFFFFF;
  --sa-hero-tl-border: rgba(255, 255, 255, 0.30);
  --sa-hero-tl-track: rgba(255, 255, 255, 0.18);
  --sa-hero-tl-chip: rgba(30, 32, 42, 0.34);
}
/* white glass */
.sa-hero[data-sa-hero-theme="light"] {
  --sa-hero-fill: rgba(255, 255, 255, 0.90);
  --sa-hero-crm-fill: rgba(255, 255, 255, 0.90);
  --sa-hero-border: rgba(255, 255, 255, 0.92);
  --sa-hero-inset: rgba(255, 255, 255, 0.95);
  --sa-hero-shadow: 0 22px 48px rgba(10, 26, 72, 0.24);
  --sa-hero-btn: rgba(255, 255, 255, 0.90);
  --sa-hero-btn-border: rgba(255, 255, 255, 0.92);
  --sa-hero-text: #1E1F27;
  --sa-hero-strong: #0E0E13;
  --sa-hero-label: #5A616C;
  --sa-hero-muted: #3C3C47;
  --sa-hero-tile: rgba(36, 36, 42, 0.04);
  --sa-hero-tile-border: rgba(36, 36, 42, 0.10);
  --sa-hero-chip: rgba(36, 36, 42, 0.07);
  --sa-hero-chip-text: #3C3C47;
  --sa-hero-key: rgba(32, 90, 227, 0.12);
  --sa-hero-glow: rgba(32, 89, 227, 0.72);
  --sa-hero-hl: rgba(32, 90, 227, 0.12);
  --sa-hero-hl-border: rgba(32, 89, 227, 0.55);
  --sa-hero-ok: #DCF2E4;
  --sa-hero-ok-text: #155B39;
  --sa-hero-mark: invert(1) brightness(0.18);
  --sa-hero-icon: #20212B;
  --sa-hero-tl-label: rgba(36, 36, 42, 0.5);
  --sa-hero-tl-strong: #20212B;
  --sa-hero-tl-border: rgba(36, 36, 42, 0.32);
  --sa-hero-tl-track: rgba(36, 36, 42, 0.16);
  --sa-hero-tl-chip: rgba(255, 255, 255, 0.90);
}

/* --- intro ------------------------------------------------------------------ */
/* The gap below the copy belongs to the intro, not to the track. On the live
   page the copy is the page's own Hero Component and this block is not shipped,
   so a margin-top here would open the hero with 120px of nothing. */
.sa-hero-intro { max-width: 1760px; margin: 0 auto 120px; padding: 120px clamp(28px, 5.6vw, 96px) 0; transform-origin: 50% 0; }
.sa-hero-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 447px); gap: 64px; align-items: start; }
.sa-hero-intro-left { display: flex; flex-direction: column; gap: 26px; }
.sa-hero-eyebrow { font-family: 'DM Mono', ui-monospace, Menlo, monospace; font-size: 14px; letter-spacing: 0.09em; text-transform: uppercase; color: #5A616C; }
.sa-hero-title { margin: 0; max-width: 700px; font-size: 46px; font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; }
.sa-hero-cta { display: flex; align-items: center; gap: 6px; width: fit-content; height: 40px; padding: 0 12px; border-radius: 8px; background: var(--sa-hero-accent); color: #FFFFFF; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background 240ms var(--sa-hero-ease); }
.sa-hero-cta:hover, .sa-hero-cta:focus { background: #0D43C2; color: #FFFFFF; }
.sa-hero-intro-right { padding-top: 76px; justify-self: end; width: 100%; }
.sa-hero-lede { margin: 0; font-size: 16px; line-height: 1.5; text-wrap: pretty; }

/* --- scroll-morph stage -----------------------------------------------------
   The stage is the sticky box exactly, and the morph is one transform on this
   element: nothing inside it is re-laid-out while scrolling.

   No background and no radius. The gap between the tiles and the panel, and
   the corner notches at rest, show the page through - which is what the
   reference does. Painting the stage dark turns both into black lines.

   It must not over-bleed the sticky either. An earlier version grew it by 24px
   a side so its rounded corners sat outside the clip at scale 1, which also
   put 24px of *content* outside it - the face labels, the transport row and
   the CRM window all lost their outer edge at full bleed.
   -------------------------------------------------------------------------- */
.sa-hero-track { position: relative; margin-top: 0; margin-bottom: 80px; height: calc(var(--sa-hero-avail) * 1.95); }
.sa-hero-sticky { position: sticky; top: var(--sa-hero-header); height: var(--sa-hero-avail); overflow: hidden; }
.sa-hero-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  gap: 2px;
  border-radius: 0;
  overflow: hidden;
}
/* No will-change on the stage. The morph writes layout properties, and the
   shipped KA hero drops the hint explicitly for that reason - under WebKit it
   recomposites the promoted layer on every geometry write, and promoting the
   stage mid-scroll also isolates the grain layer, whose mix-blend-mode: overlay
   then blends against the group instead of the wall. The intro keeps its own,
   because it moves by transform and nothing else rides that layer. */
.sa-hero[data-sa-hero-scroll="1"] .sa-hero-intro { will-change: transform; }

/* --- face tiles -------------------------------------------------------------
   The column is flex:none with its width written by the morph, so the two tiles
   fall out of the stage height and change SHAPE as the hero expands - rest
   746x483 landscape, full bleed 502x502 square. That is how the GA and KA heros
   do it: the column width lerps from a fraction of the rest card to the width
   that makes the tile square in half the sticky box. An aspect-ratio on this
   element cannot do it - a fixed ratio holds the tile's shape for the whole
   morph, which is what left the tiles landscape at full bleed while the stage
   around them grew.
   The handoff is safe under a shape change because both the blue disc and the
   reveal circle are anchored to `left: 50% + 31cqh` of the tile: the 50% moves
   with the column and the 31cqh is a tile-height unit, so the two stay
   concentric at any ratio. container-type: size makes the tile the reference
   for every cqh/cqw below.

   The values here are the FINISHED state, which is what reduced motion and
   no-JS both get - the morph writes the rest state over them on mount.
   -------------------------------------------------------------------------- */
/* Both gaps are 2px, not the design's 24. The design draws the tiles as rounded
   cards floating on a white page, so a 24px gutter is a deliberate part of it -
   but the hero lands on a white page here too, and at full bleed a 24px white
   band down the middle of a dark hero reads as a rendering fault rather than a
   gutter. The shipped Knowledge Agent hero has the same two gaps at 2px and the
   same white page behind them, and that is the parity this is matching. */
.sa-hero-faces { flex: none; width: 26%; height: 100%; display: flex; flex-direction: column; gap: 2px; }
/* radius 0 is the full-bleed end. The stylesheet carries the finished state, not
   the rest state - paintMorph() writes the rest state over it on mount, so
   reduced motion and no-JS get full bleed and would otherwise show its square
   corners rounded. */
.sa-hero-face { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; border-radius: 0; background: #D5DCE3; container-type: size; }
/* The clip is oversized 2:1 and offset, and the tile is a window onto it.
   A 1300x1300 source at 1:1 in the tile would read as the whole frame, subjects
   small and off-centre, so the zoom comes from the element being larger than its
   window: the tile shows a quadrant of it at 2x.
   The offsets reproduce the live agent-assist framing: the visible window starts
   at 8%/6% of the source for the agent and 38%/10% for the customer.
   On a square tile those offsets are the whole story - the 200% box is exactly
   twice the source's own aspect, so `cover` has no overflow to crop and
   `object-position` resolves against zero slack and does nothing. It is still
   written on both, because it is what shapes the vertical window if the tile is
   ever taken off square, which is where it came from.
   The poster rides the same box, so it is cropped identically and ships as the
   full uncropped frame.
   Ben's clip sits in .sa-hero-vidfit, which is inset 0 of the tile, so the
   percentages resolve against the same rectangle as on the customer side. */
.sa-hero-clip { position: absolute; width: 200%; height: 200%; object-fit: cover; display: block; }
.sa-hero-face-agent .sa-hero-clip { left: -16.1%; top: -12.0%; object-position: 33% 22%; }
.sa-hero-face-customer .sa-hero-clip { left: -76.0%; top: -20.0%; object-position: 63% 25%; }
/* graduated frost under the name plate */
.sa-hero-frost { position: absolute; left: 0; bottom: 0; z-index: 4; width: 52%; height: 28%; pointer-events: none; }
.sa-hero-frost span { position: absolute; inset: 0; }
.sa-hero-frost span:nth-child(1) { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); -webkit-mask-image: radial-gradient(ellipse 100% 100% at 0% 100%, #000 52%, transparent 84%); mask-image: radial-gradient(ellipse 100% 100% at 0% 100%, #000 52%, transparent 84%); }
.sa-hero-frost span:nth-child(2) { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); -webkit-mask-image: radial-gradient(ellipse 100% 100% at 0% 100%, #000 22%, transparent 48%); mask-image: radial-gradient(ellipse 100% 100% at 0% 100%, #000 22%, transparent 48%); }
.sa-hero-frost span:nth-child(3) { background: radial-gradient(ellipse 100% 100% at 0% 100%, rgba(8, 8, 12, 0.52) 0%, rgba(8, 8, 12, 0.28) 34%, rgba(8, 8, 12, 0) 68%); }
.sa-hero-name { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 5; display: flex; align-items: center; gap: 7px; min-width: 0; }
.sa-hero-name > span { flex: none; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #FFFFFF; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); }
.sa-hero-dot { flex: none; width: 10px; height: 10px; border-radius: 999px; }
.sa-hero-face-agent .sa-hero-dot { background: linear-gradient(140deg, #6E95F0, #AE95DD); }
.sa-hero-face-customer .sa-hero-dot { background: linear-gradient(140deg, #FCB56C, #F87563); }
/* "from AI Agent" credit on Ben's plate, for the first minute after the handoff */
.sa-hero-via { display: flex; align-items: center; gap: 6px; flex: none; margin-left: 4px; padding: 3px 9px 3px 3px; border-radius: 999px; background: rgba(20, 20, 26, 0.42); border: 1px solid rgba(255, 255, 255, 0.16); color: #FFFFFF; font-size: 11px; font-weight: 600; white-space: nowrap; }
.sa-hero-via i { width: 14px; height: 14px; border-radius: 999px; background: radial-gradient(120% 120% at 30% 25%, #7FC3F5, #F79BC8 46%, #7B4BE6); }
.sa-hero-pill { position: absolute; left: 14px; top: 14px; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px; background: rgba(20, 20, 26, 0.42); border: 1px solid rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
.sa-hero-pill-av { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; background: #F2F1EE; font-size: 14px; font-weight: 600; color: #3C3C47; }
.sa-hero-live { position: absolute; right: 1px; bottom: 0; width: 8px; height: 8px; border-radius: 999px; background: #4ADE80; box-shadow: 0 0 0 1.5px rgba(20, 20, 26, 0.55); }
.sa-hero-live::after { content: ''; position: absolute; inset: 0; border-radius: 999px; background: #4ADE80; animation: sa-hero-ping 1800ms var(--sa-hero-ease) infinite; }
.sa-hero-pill-text { display: flex; flex-direction: column; gap: 1px; }
.sa-hero-pill-text b { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: #FFFFFF; white-space: nowrap; }
.sa-hero-pill-text i { font-size: 12px; font-weight: 500; font-style: normal; color: rgba(255, 255, 255, 0.7); }

/* --- the handoff -----------------------------------------------------------
   Ben's tile is an AI Agent panel until 7.8s. Ben's video opens inside the
   blue disc as a clip-path circle at 5.82s and blows out across the tile at
   7.8s, the AI Agent cover fading behind it.
   -------------------------------------------------------------------------- */
.sa-hero-aicover {
  position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(78% 62% at 92% -2%, rgba(255, 244, 240, 0.97) 0%, rgba(250, 234, 227, 0.66) 34%, rgba(232, 196, 180, 0.24) 64%, rgba(215, 159, 138, 0) 92%),
    radial-gradient(92% 78% at -10% 104%, rgba(91, 101, 132, 0.85) 0%, rgba(132, 144, 169, 0.62) 32%, rgba(150, 160, 183, 0.26) 62%, rgba(150, 160, 183, 0) 88%),
    radial-gradient(70% 62% at 14% 52%, rgba(198, 207, 216, 0.9) 0%, rgba(198, 207, 216, 0.42) 44%, rgba(198, 207, 216, 0) 76%),
    radial-gradient(88% 74% at 58% 30%, rgba(235, 240, 245, 0.92) 0%, rgba(235, 240, 245, 0.4) 46%, rgba(235, 240, 245, 0) 78%),
    linear-gradient(112.568deg, #EAF0F7 27.47%, #8490A9 209.64%);
  background-color: #DDE3EC;
}
/* baked grain tile - the source used an inline feTurbulence SVG here */
.sa-hero-aigrain { position: absolute; inset: 0; opacity: 0.35; mix-blend-mode: overlay; background-repeat: repeat; background-size: 160px 160px; }
.sa-hero-orb { position: absolute; left: 50%; top: 44cqh; width: 56cqh; height: 56cqh; border-radius: 999px; overflow: hidden; transform: translate3d(calc(-50% - 23.5cqh), -50%, 0) scale(0.714); background: radial-gradient(120% 120% at 30% 25%, #7FC3F5, #F79BC8 46%, #7B4BE6); }
.sa-hero-orb-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; contain: strict; }
.sa-hero-dots { position: absolute; left: 50%; top: 44cqh; display: flex; align-items: center; gap: 1.6cqh; transform: translate3d(calc(-50% + 6cqh), -50%, 0); }
.sa-hero-dots i { width: 2.2cqh; height: 2.2cqh; min-width: 5px; min-height: 5px; border-radius: 999px; animation: sa-hero-flow 1100ms ease-in-out infinite; }
.sa-hero-dots i:nth-child(1) { background: #7B4BE6; }
.sa-hero-dots i:nth-child(2) { background: #B07FD8; animation-delay: 180ms; }
.sa-hero-dots i:nth-child(3) { background: #2F5BEA; animation-delay: 360ms; }
.sa-hero-benav { position: absolute; left: 50%; top: 44cqh; width: 25cqh; height: 25cqh; border-radius: 999px; background: #2F5BEA; box-shadow: 0 0 0 3px #FFFFFF, 0 8px 20px rgba(20, 30, 60, 0.22); transform: translate3d(calc(-50% + 31cqh), -50%, 0) scale(1); }
.sa-hero-ailabel { position: absolute; left: 0; right: 0; top: 78cqh; text-align: center; white-space: nowrap; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: #24242A; }
.sa-hero-ailabel-b { font-size: 14px; }
/* Ben's video behind a clip-path circle centred on the blue disc. 150% covers
   the tile from that off-centre point. The vidfit wrapper carries the export's
   benFit (written by fit(), since it is px-based) so Ben's head sits in the
   12.5cqh circle, then eases to identity as the circle blows out. */
.sa-hero-reveal { position: absolute; inset: 0; z-index: 3; clip-path: circle(150% at calc(50% + 31cqh) 44cqh); }
.sa-hero-vidfit { position: absolute; inset: 0; transform-origin: 0 0; }

/* --- product panel ---------------------------------------------------------- */
.sa-hero-panel { position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden; border-radius: 0; background: #0E0E13; }
.sa-hero-wall { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity 460ms var(--sa-hero-ease); }
.sa-hero[data-sa-hero-theme="light"] .sa-hero-wall-dark { opacity: 0; }
.sa-hero[data-sa-hero-theme="dark"] .sa-hero-wall-light { opacity: 0; }
/* grain is a baked 160px tile, not a filtered SVG */
.sa-hero-grain { position: absolute; inset: 0; opacity: 0.055; mix-blend-mode: overlay; background-repeat: repeat; background-size: 160px 160px; pointer-events: none; }
.sa-hero-chrome { position: absolute; top: 0; left: 0; right: 0; z-index: 6; height: var(--sa-hero-menubar); display: flex; align-items: center; justify-content: space-between; padding: 0 26px 0 20px; background: rgba(12, 14, 22, 0.42); border-bottom: 1px solid rgba(255, 255, 255, 0.09); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); color: rgba(255, 255, 255, 0.9); font-size: 14px; font-weight: 500; }
.sa-hero[data-sa-hero-theme="light"] .sa-hero-chrome { background: rgba(255, 255, 255, 0.62); border-bottom-color: rgba(36, 36, 42, 0.10); color: rgba(20, 20, 26, 0.86); }
.sa-hero-chrome-left { display: flex; align-items: center; gap: 9px; }
.sa-hero-chrome-right { display: flex; align-items: center; gap: 15px; opacity: 0.78; }
.sa-hero-chrome img { width: 15px; height: 15px; object-fit: contain; display: block; filter: var(--sa-hero-mark); }
.sa-hero-clock { font-variant-numeric: tabular-nums; }

/* --- cresta cluster --------------------------------------------------------- */
.sa-hero-cluster { position: absolute; left: 0; top: 0; z-index: 3; width: 420px; transform-origin: 0 0; }
.sa-hero-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sa-hero-grip { display: flex; flex: none; align-items: center; justify-content: center; gap: 9px; width: 104px; height: 40px; border-radius: 999px; background: var(--sa-hero-btn); border: 1px solid var(--sa-hero-btn-border); box-shadow: inset 0 1px 0 var(--sa-hero-inset); -webkit-backdrop-filter: blur(22px) saturate(165%); backdrop-filter: blur(22px) saturate(165%); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.sa-hero-grip img { width: 17px; height: 17px; object-fit: contain; display: block; filter: var(--sa-hero-mark); }
.sa-hero-timer { width: 44px; font-size: 14px; font-weight: 500; color: var(--sa-hero-text); font-variant-numeric: tabular-nums; }
.sa-hero-tool { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: var(--sa-hero-btn); border: 1px solid var(--sa-hero-btn-border); box-shadow: inset 0 1px 0 var(--sa-hero-inset); color: var(--sa-hero-text); -webkit-backdrop-filter: blur(22px) saturate(165%); backdrop-filter: blur(22px) saturate(165%); }
/* active keeps the same backdrop blur - no layer churn */
.sa-hero-tool-on { background: #6B4BD6; border-color: rgba(255, 255, 255, 0.16); color: #FFFFFF; }

.sa-hero-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 15px 16px 13px; border-radius: 12px; background: var(--sa-hero-fill); border: 1px solid var(--sa-hero-border); box-shadow: inset 0 1px 0 var(--sa-hero-inset), var(--sa-hero-shadow); -webkit-backdrop-filter: var(--sa-hero-blur); backdrop-filter: var(--sa-hero-blur); }
.sa-hero-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sa-hero-card-title { display: flex; align-items: center; gap: 9px; color: var(--sa-hero-text); font-size: 14px; font-weight: 500; }
.sa-hero-win-glow { position: absolute; inset: 0; border-radius: 12px; pointer-events: none; opacity: 0; visibility: hidden; box-shadow: 0 0 26px 3px var(--sa-hero-glow); }
/* the two summary cards share one grid cell, so the second arriving below the
   first is a cross-fade in reserved space, never a height change */
.sa-hero-slot { display: grid; margin-top: 8px; }
.sa-hero-slot > * { grid-area: 1 / 1; align-self: start; }
/* same trick wherever one piece of content replaces another in place */
.sa-hero-stack { display: grid; }
.sa-hero-stack > * { grid-area: 1 / 1; align-self: start; }

/* --- transcript ------------------------------------------------------------
   A fixed 190px window over a strip that holds every line from the first
   frame. The strip steps up by transform at each new line (one cue animation,
   27s long, stops written as px custom properties after layout) so the card
   never reflows and the glass never re-rasterises.
   -------------------------------------------------------------------------- */
.sa-hero-tbox { position: relative; height: 190px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 38px); mask-image: linear-gradient(180deg, transparent 0, #000 38px); }
.sa-hero-strip { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 14px; }
.sa-hero-line { flex: none; display: flex; gap: 11px; align-items: flex-start; }
.sa-hero-av { flex: none; width: 24px; height: 24px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); background-size: cover; background-position: center; }
.sa-hero-av-cust { background-image: linear-gradient(140deg, #FCB56C, #F87563); }
.sa-hero-av-ai { background-image: linear-gradient(140deg, #93DEFD, #6B4BD6); }
.sa-hero-line-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.sa-hero-who { font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--sa-hero-label); opacity: 0.62; }
.sa-hero-said { margin: 0; font-size: 14px; line-height: 1.5; letter-spacing: -0.005em; color: var(--sa-hero-text); text-wrap: pretty; }
.sa-hero-sep { flex: none; display: flex; align-items: center; gap: 10px; }
.sa-hero-sep i { flex: 1; height: 1px; background: var(--sa-hero-tile-border); }
.sa-hero-sep span { display: flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; background: var(--sa-hero-chip); color: var(--sa-hero-chip-text); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
/* word-by-word typing: one span per word, staggered purely in CSS off the
   line's own cue offset (--sa-hero-at, written by the script on seek) and its
   own rate (--sa-hero-step), so the whole run is a compositor animation.
   --sa-hero-n is the word count, which is all the caret needs to know. */
.sa-hero-w { display: inline-block; animation: sa-hero-word 300ms var(--sa-hero-ease) both; animation-delay: calc(var(--sa-hero-at, 0) * 1ms + var(--sa-hero-i, 0) * var(--sa-hero-step, 170ms)); }
.sa-hero-w { position: relative; }
/* the caret rides the last typed word as an absolute pseudo, so it never sits
   at the end of the full line's layout - unrevealed words still take space */
.sa-hero-w::after { content: ''; position: absolute; left: 100%; top: 50%; width: 2px; height: 1em; margin: -0.5em 0 0 2px; border-radius: 1px; background: currentColor; visibility: hidden; animation: sa-hero-caret var(--sa-hero-step, 170ms) linear, sa-hero-blink 760ms steps(2, jump-none) infinite; animation-delay: calc(var(--sa-hero-at, 0) * 1ms + (var(--sa-hero-i, 0) + 0.5) * var(--sa-hero-step, 170ms)), 0ms; }
.sa-hero-w:last-of-type::after { animation-duration: calc(var(--sa-hero-step, 170ms) * 0.5 + 300ms), 760ms; }
.sa-hero[data-sa-hero-seek] .sa-hero-w::after { animation: none; }

/* --- summary cards ---------------------------------------------------------- */
.sa-hero-badge { display: flex; align-items: center; gap: 6px; flex: none; padding: 4px 9px; border-radius: 999px; background: linear-gradient(100deg, #4A6FA8, #786CA5 45%, #8A6A63); color: #FFFFFF; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.sa-hero-sum { position: relative; display: grid; padding: 12px 13px; border-radius: 12px; background: var(--sa-hero-tile); }
.sa-hero-sum > * { grid-area: 1 / 1; align-self: start; }
.sa-hero-sum::before { content: ''; position: absolute; inset: 0; border-radius: 12px; padding: 1px; background: linear-gradient(135deg, #93DEFD, #AE95DD 45%, #FCB56C); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; pointer-events: none; }
.sa-hero-thinking { display: flex; align-items: center; gap: 10px; }
.sa-hero-thinking img { flex: none; width: 18px; height: 18px; object-fit: contain; display: block; filter: var(--sa-hero-mark); }
.sa-hero-thinking span { font-size: 14px; font-weight: 500; color: var(--sa-hero-muted); }
.sa-hero-sum-body { display: flex; flex-direction: column; gap: 11px; overflow: hidden; }
.sa-hero-field-row { display: flex; flex-direction: column; gap: 3px; }
.sa-hero-sum-label { font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--sa-hero-label); opacity: 0.7; }
.sa-hero-sum-text { margin: 0; font-size: 14px; line-height: 1.45; letter-spacing: -0.005em; color: var(--sa-hero-text); text-wrap: pretty; }
.sa-hero-done { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--sa-hero-ok-text); }

/* --- CRM panel (the in-product records view the summary writes back to) ----- */
.sa-hero-crm { position: absolute; left: 0; top: 0; z-index: 2; width: 400px; transform-origin: 0 0; }
/* static fill, no backdrop-filter: a live blur here re-rasters in tiles while the story cues animate and flashes a vertical band */
.sa-hero-crm-glass { position: absolute; inset: 0; border-radius: 14px; background: var(--sa-hero-crm-fill); border: 1px solid var(--sa-hero-border); box-shadow: inset 0 1px 0 var(--sa-hero-inset), var(--sa-hero-shadow); pointer-events: none; }
.sa-hero-crm-win { position: relative; display: flex; flex-direction: column; border: 1px solid transparent; border-radius: 14px; }
.sa-hero-crm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--sa-hero-tile-border); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.sa-hero-crm-ava { display: flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(140deg, #6E95F0, #AE95DD); color: #FFFFFF; font-size: 13px; font-weight: 700; }
.sa-hero-crm-id { display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 0; }
.sa-hero-crm-org { font-size: 14px; font-weight: 600; letter-spacing: -0.005em; color: var(--sa-hero-strong); white-space: nowrap; }
.sa-hero-crm-sub { font-size: 12px; color: var(--sa-hero-label); white-space: nowrap; }
.sa-hero-crm-conn { display: flex; flex: none; align-items: center; gap: 7px; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--sa-hero-tile); border: 1px solid var(--sa-hero-tile-border); font-size: 11.5px; font-weight: 600; color: var(--sa-hero-text); white-space: nowrap; }
.sa-hero-crm-conn img { width: 12px; height: 12px; object-fit: contain; display: block; filter: var(--sa-hero-mark); }
.sa-hero-crm-conn i { flex: none; width: 7px; height: 7px; border-radius: 999px; background: #4ADE80; }
.sa-hero-crm-head { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 4px; }
.sa-hero-crm-case { font-size: 12px; color: var(--sa-hero-label); }
.sa-hero-crm-name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--sa-hero-strong); }
.sa-hero-crm-body { display: flex; flex-direction: column; gap: 8px; padding: 10px 16px 16px; }
.sa-hero-field { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 11px 13px; border-radius: 10px; background: var(--sa-hero-tile); border: 1px solid var(--sa-hero-tile-border); }
/* the notes field reserves its filled height from the first frame - the fill
   is a cross-fade inside a fixed box, never an animated height */
.sa-hero-field-notes { min-height: 112px; }
.sa-hero-field-label { position: relative; font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--sa-hero-label); opacity: 0.62; }
.sa-hero-field-value { position: relative; font-size: 14px; font-weight: 500; line-height: 1.45; letter-spacing: -0.005em; color: var(--sa-hero-strong); }
.sa-hero-note-empty { font-weight: 400; color: var(--sa-hero-label); opacity: 0.7; }
.sa-hero-note-full { display: block; font-size: 13.5px; font-weight: 400; line-height: 1.5; }
.sa-hero-crm-pill { display: inline-flex; width: fit-content; padding: 3px 10px; border-radius: 999px; background: var(--sa-hero-chip); color: var(--sa-hero-chip-text); font-size: 12.5px; font-weight: 600; }
.sa-hero-crm-pill-ok { background: var(--sa-hero-ok); color: var(--sa-hero-ok-text); }
.sa-hero-ring { position: absolute; inset: -1px; border-radius: 11px; padding: 1.5px; pointer-events: none; background: linear-gradient(135deg, #93DEFD, #AE95DD 45%, #FCB56C); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.sa-hero-ring-glow { position: absolute; inset: -1px; border-radius: 11px; pointer-events: none; opacity: 0; visibility: hidden; background: var(--sa-hero-hl); box-shadow: 0 0 22px var(--sa-hero-glow); }

/* --- transport -------------------------------------------------------------- */
.sa-hero-controls { position: absolute; left: 20px; right: 110px; bottom: 18px; z-index: 8; display: flex; justify-content: center; }
.sa-hero-controls-row { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.sa-hero-scenario { flex: none; margin-right: 4px; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--sa-hero-tl-strong); opacity: 0.85; white-space: nowrap; }
.sa-hero-tbtn { flex: none; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--sa-hero-tl-border); border-radius: 999px; background: var(--sa-hero-tl-chip); color: var(--sa-hero-icon); font: inherit; -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); cursor: pointer; transition: filter 180ms ease; }
.sa-hero-tbtn:hover { filter: brightness(1.35); }
.sa-hero-steps { display: flex; align-items: stretch; gap: 14px; margin-left: 8px; min-width: 0; flex: none; }
.sa-hero-step { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: none; min-width: 64px; padding: 6px 0 4px; border: 0; background: transparent; font: inherit; cursor: pointer; text-align: left; }
.sa-hero-step-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.055em; text-transform: uppercase; white-space: nowrap; color: var(--sa-hero-tl-label); transition: color 220ms ease; }
.sa-hero-step[data-sa-hero-cur="1"] .sa-hero-step-label { color: var(--sa-hero-tl-strong); }
.sa-hero-step-star { flex: none; }
/* The Impact step is not a beat of the call, so it is starred and takes the brand
   gradient rather than the white the other two fill to. The gradient rides the
   label's background and is only clipped to the glyphs while the step is current -
   the export leaves the background on in every state and lets the inherited colour
   win when it is not, so an inactive outcome step reads as muted text, not a
   half-painted gradient. */
.sa-hero-step-outcome .sa-hero-step-text { background: linear-gradient(90deg, #6E95F0, #AE95DD, #C98FD6); -webkit-background-clip: text; background-clip: text; }
.sa-hero-step-outcome[data-sa-hero-cur="1"] .sa-hero-step-text { color: transparent; }
.sa-hero-rail { position: relative; display: block; width: 100%; height: 2px; border-radius: 2px; overflow: hidden; background: var(--sa-hero-tl-track); }
.sa-hero-fill { position: absolute; inset: 0; transform: scaleX(0); transform-origin: 0 50%; background: var(--sa-hero-tl-strong); }
.sa-hero-step-outcome .sa-hero-fill { background: linear-gradient(90deg, #6E95F0, #AE95DD, #C98FD6); }
.sa-hero-theme { position: absolute; right: 20px; bottom: 20px; z-index: 8; display: flex; align-items: center; width: 66px; height: 40px; padding: 3px; border-radius: 999px; background: rgba(18, 18, 24, 0.42); border: 1px solid rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 8px 22px rgba(8, 8, 14, 0.3); cursor: pointer; }
.sa-hero-knob { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; background: #FFFFFF; color: #24242A; transition: transform 300ms var(--sa-hero-ease); }
.sa-hero[data-sa-hero-theme="light"] .sa-hero-knob { transform: translate3d(26px, 0, 0); }
.sa-hero[data-sa-hero-theme="light"] .sa-hero-moon { display: none; }
.sa-hero[data-sa-hero-theme="dark"] .sa-hero-sun { display: none; }
.sa-hero[data-sa-hero-paused="1"] .sa-hero-ico-pause, .sa-hero[data-sa-hero-paused="0"] .sa-hero-ico-play { display: none; }

/* --- reveal ----------------------------------------------------------------
   Product UI is hidden until the morph is most of the way open. The glass is
   never suspended while scrolling: card fills are ~30% alpha and read as a
   panel only through the blur.
   -------------------------------------------------------------------------- */
.sa-hero-fade { opacity: 0; visibility: hidden; transition: opacity 300ms var(--sa-hero-ease), visibility 0s linear 300ms; }
.sa-hero[data-sa-hero-reveal="1"] .sa-hero-fade { opacity: 1; visibility: visible; transition: opacity 300ms var(--sa-hero-ease), visibility 0s; }
.sa-hero[data-sa-hero-reveal="0"] .sa-hero-fade { pointer-events: none; }
/* Opacity on an ancestor of a glass card makes it the backdrop root, so the blur
   sees nothing and the card goes clear. The fade therefore sits on the glass
   itself; the slot, whose cards own their opacity via cues, is clipped instead. */
.sa-hero-gate { clip-path: inset(50%); transition: clip-path 0s linear 300ms; }
.sa-hero[data-sa-hero-reveal="1"] .sa-hero-gate { clip-path: none; transition: none; }

/* --- story cues ------------------------------------------------------------
   Every staged element carries data-sa-hero-cue="<seconds>" (and optionally
   data-sa-hero-cue-out). The script only writes animation-delay, so the
   staging itself runs on the compositor and survives a busy main thread.
   Un-animated, each cue element sits in its finished state - which is what
   reduced motion and no-JS both get.
   Where an element has two stages, only the FIRST animation is `both`: a
   second `both` would back-fill its own start state over the first during the
   delay and show the element early.
   -------------------------------------------------------------------------- */
.sa-hero-cue-rise { animation: sa-hero-rise 420ms var(--sa-hero-ease) both; }
.sa-hero-cue-rise[data-sa-hero-cue-out] { animation: sa-hero-rise 420ms var(--sa-hero-ease) both, sa-hero-sink 320ms var(--sa-hero-ease) forwards; }
.sa-hero-cue-ring { animation: sa-hero-flash 1200ms var(--sa-hero-ease) both; }
.sa-hero-cue-on { animation: sa-hero-on 260ms var(--sa-hero-ease) both; }
.sa-hero-cue-fill { animation: sa-hero-fill 1000ms linear both; }
.sa-hero-cue-fade { animation: sa-hero-fade-in 420ms var(--sa-hero-ease) both; }
.sa-hero-cue-fade[data-sa-hero-cue-out] { animation: sa-hero-fade-in 420ms var(--sa-hero-ease) both, sa-hero-fade-out 420ms var(--sa-hero-ease) forwards; }
.sa-hero-cue-ka { animation: sa-hero-ka-in 620ms var(--sa-hero-ease) both; }
.sa-hero-cue-num { animation: sa-hero-num-land 620ms var(--sa-hero-ease) both; }
.sa-hero-cue-bar { animation: sa-hero-bar-in 700ms var(--sa-hero-ease) both; }
.sa-hero-cue-hl { animation: sa-hero-field-glow 1800ms var(--sa-hero-ease) both; }
.sa-hero-cue-stream { animation: sa-hero-stream 780ms var(--sa-hero-ease) both; }
.sa-hero-cue-grow { animation: sa-hero-sum-grow 720ms var(--sa-hero-ease) both; }
.sa-hero-cue-bloom { animation: sa-hero-win-bloom 3200ms cubic-bezier(.33, 0, .2, 1) both; }
.sa-hero-cue-vanish { animation: sa-hero-fade-out 500ms var(--sa-hero-ease) both; }
.sa-hero-cue-orb { animation: sa-hero-orb-move 950ms cubic-bezier(.65, 0, .25, 1) both; }
.sa-hero-cue-pop { animation: sa-hero-pop 700ms var(--sa-hero-ease) both; }
.sa-hero-cue-lbl-out { animation: sa-hero-lbl-out 950ms cubic-bezier(.65, 0, .25, 1) both; }
.sa-hero-cue-lbl-in { animation: sa-hero-lbl-in 950ms cubic-bezier(.65, 0, .25, 1) both; }
.sa-hero-cue-win { animation: sa-hero-clip-in 700ms cubic-bezier(.2, .7, .2, 1) both, sa-hero-clip-open 1000ms cubic-bezier(.65, 0, .25, 1) forwards; }
.sa-hero-cue-fit { animation: sa-hero-fit-in 900ms cubic-bezier(.2, .7, .2, 1) both, sa-hero-fit-open 1000ms cubic-bezier(.65, 0, .25, 1) forwards; }
.sa-hero-cue-strip { animation: sa-hero-strip 30500ms cubic-bezier(.2, .7, .2, 1) both; }
/* `cue-hold`, not `paused`: the cue animations free-run on the wall clock while
   the story clock advances in tick(), so EVERY path that stops advancing t has to
   stop them too. `paused` is only the transport - off screen and hidden tabs stop
   the story as well, and while they were uncoupled the cues ran on alone and
   arrived with the story still mid-call. syncHold() is the one writer. */
.sa-hero[data-sa-hero-cue-hold="1"] [data-sa-hero-cue],
.sa-hero[data-sa-hero-cue-hold="1"] .sa-hero-w,
.sa-hero[data-sa-hero-cue-hold="1"] .sa-hero-w::after,
.sa-hero[data-sa-hero-cue-hold="1"] .sa-hero-dots i { animation-play-state: paused; }

/* every cue starts fully hidden, not merely transparent */
@keyframes sa-hero-rise { 0% { opacity: 0; visibility: hidden; transform: translate3d(0, 14px, 0) scale(0.97); } 1% { visibility: visible; } 100% { opacity: 1; visibility: visible; transform: none; } }
@keyframes sa-hero-sink { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate3d(0, -6px, 0); visibility: hidden; } }
@keyframes sa-hero-fade-in { 0% { opacity: 0; visibility: hidden; } 1% { visibility: visible; } 100% { opacity: 1; visibility: visible; } }
@keyframes sa-hero-fade-out { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }
@keyframes sa-hero-flash { 0% { opacity: 0; visibility: hidden; } 1% { visibility: visible; } 22% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes sa-hero-on { to { background-color: #6B4BD6; border-color: rgba(255, 255, 255, 0.16); color: #FFFFFF; } }
@keyframes sa-hero-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sa-hero-word { 0% { opacity: 0; transform: translate3d(0, 0.3em, 0); } 100% { opacity: 1; transform: none; } }
@keyframes sa-hero-caret { from, to { visibility: visible; } }
@keyframes sa-hero-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.2; } }
@keyframes sa-hero-ping { 0% { transform: scale(1); opacity: 0.55; } 75%, 100% { transform: scale(2.2); opacity: 0; } }
@keyframes sa-hero-flow { 0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.45; } 50% { transform: translate3d(0, -28%, 0); opacity: 1; } }
@keyframes sa-hero-orb-move { from { transform: translate3d(-50%, -50%, 0) scale(1); } to { transform: translate3d(calc(-50% - 23.5cqh), -50%, 0) scale(0.714); } }
@keyframes sa-hero-pop { 0% { transform: translate3d(calc(-50% + 31cqh), -50%, 0) scale(0); } 100% { transform: translate3d(calc(-50% + 31cqh), -50%, 0) scale(1); } }
@keyframes sa-hero-lbl-out { 0% { opacity: 1; transform: translate3d(0, 0, 0); } 26% { opacity: 1; } 73%, 100% { opacity: 0; } 100% { transform: translate3d(0, -8cqh, 0); visibility: hidden; } }
@keyframes sa-hero-lbl-in { 0% { opacity: 0; visibility: hidden; transform: translate3d(0, -2cqh, 0); } 1% { visibility: visible; } 26% { opacity: 0; } 73%, 100% { opacity: 1; } 100% { transform: translate3d(0, -8cqh, 0); } }
@keyframes sa-hero-clip-in { 0% { clip-path: circle(0px at calc(50% + 31cqh) 44cqh); } 100% { clip-path: circle(12.5cqh at calc(50% + 31cqh) 44cqh); } }
@keyframes sa-hero-clip-open { 0% { clip-path: circle(12.5cqh at calc(50% + 31cqh) 44cqh); } 100% { clip-path: circle(150% at calc(50% + 31cqh) 44cqh); } }
@keyframes sa-hero-fit-in { 0% { transform: var(--sa-hero-fit-a, none); } 100% { transform: var(--sa-hero-fit-b, none); } }
@keyframes sa-hero-fit-open { 0% { transform: var(--sa-hero-fit-b, none); } 100% { transform: none; } }
/* transcript strip: stop values are measured after layout and written as
   --sa-hero-y0..y7; the stops themselves are the story's own line times.
   applyCues writes only this element's animation-delay, so its elapsed time is
   always the story time and the duration does nothing but scale that against
   these percentages: a stop at p is reached at story p/100 * duration. Every
   stop below is story_seconds / 30.5 * 100, so the duration must stay 30.5.
   Rescale one without the other and every seek lands the transcript on the
   wrong line while straight playback still looks right. */
@keyframes sa-hero-strip {
  0%, 2.62% { transform: translate3d(0, var(--sa-hero-y0, 0px), 0); }
  3.8%, 25.57% { transform: translate3d(0, var(--sa-hero-y1, 0px), 0); }
  26.75%, 27.54% { transform: translate3d(0, var(--sa-hero-y2, 0px), 0); }
  28.72%, 40.66% { transform: translate3d(0, var(--sa-hero-y3, 0px), 0); }
  41.84%, 47.21% { transform: translate3d(0, var(--sa-hero-y4, 0px), 0); }
  48.39%, 53.77% { transform: translate3d(0, var(--sa-hero-y5, 0px), 0); }
  54.95%, 59.02% { transform: translate3d(0, var(--sa-hero-y6, 0px), 0); }
  60.2%, 100% { transform: translate3d(0, var(--sa-hero-y7, 0px), 0); }
}

/* the Impact card, and the two beats it lands with */
@keyframes sa-hero-ka-in { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.965); filter: blur(12px); } 45% { opacity: 0.92; filter: blur(2px); } to { opacity: 1; transform: none; filter: blur(0); } }
/* num-land starts fully transparent rather than at the source's 0.6, because a
   cue holds its from-state for the whole delay and this span is in the DOM from
   the start - the 1% stop restores the source's blurred half-opacity entry */
@keyframes sa-hero-num-land { from { opacity: 0; transform: scale(1.08); filter: blur(8px); } 1% { opacity: 0.6; } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes sa-hero-bar-in { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes sa-hero-field-glow { 0% { opacity: 0; box-shadow: 0 0 0 rgba(147, 222, 253, 0); } 35% { opacity: 1; box-shadow: 0 0 22px var(--sa-hero-glow); } 100% { opacity: 1; box-shadow: 0 0 0 rgba(147, 222, 253, 0); } }

/* The summary rows and the CRM note wipe in from the left under a blur while the
   card body grows its own height to meet them. The delta pairs ka-stream on each
   row with sum-grow on the wrapper, and ka-hero-stream in the sibling hero is
   the same body - together they are what makes the summary read as being written
   rather than swapped in, which a plain slide does not. */
@keyframes sa-hero-stream { from { opacity: 0; clip-path: inset(0 100% 0 0); filter: blur(4px); } 45% { opacity: 1; filter: blur(0); } to { opacity: 1; clip-path: inset(0 0 0 0); filter: blur(0); } }
@keyframes sa-hero-sum-grow { from { max-height: 0; opacity: 0; transform: translateY(-4px); } to { max-height: 520px; opacity: 1; transform: translateY(0); } }

/* The window halo is a bloom, not a flash. The delta holds it at 3.2s with an
   intermediate 18px ring at 18%, and ga-hero-win-bloom is that same port; the
   generic flash peaks at 22% of 1.5s and is gone, which is too fast for the card
   that is the subject of its own beat. The 100% stop returns the ring to zero
   while opacity holds at 1, so the element survives the animation unlit. */
@keyframes sa-hero-win-bloom { 0% { opacity: 0; visibility: hidden; box-shadow: 0 0 0 0 var(--sa-hero-glow); } 1% { visibility: visible; } 18% { opacity: 0.62; box-shadow: 0 0 18px 1px var(--sa-hero-glow); } 42% { opacity: 1; box-shadow: 0 0 26px 3px var(--sa-hero-glow); } 100% { opacity: 1; box-shadow: 0 0 0 0 var(--sa-hero-glow); } }

/* --- impact card ------------------------------------------------------------
   The third act. It replaces the whole main UI rather than sitting inside it,
   so it spans the panel and centres itself - never touched by fit(). */
.sa-hero-kpi { position: absolute; inset: var(--sa-hero-menubar) 0 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 0 16px 60px; pointer-events: none; }
.sa-hero-kpi-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; width: 100%; max-width: 400px; padding: 36px 32px 32px; border-radius: 20px; background: var(--sa-hero-fill); border: 1px solid var(--sa-hero-border); box-shadow: inset 0 1px 0 var(--sa-hero-inset), var(--sa-hero-shadow); -webkit-backdrop-filter: var(--sa-hero-blur); backdrop-filter: var(--sa-hero-blur); }
.sa-hero-kpi-ring { position: absolute; inset: -1px; border-radius: 20px; border: 1px solid var(--sa-hero-hl-border); pointer-events: none; }
.sa-hero-kpi-head { display: flex; align-items: center; gap: 9px; color: var(--sa-hero-text); font-size: 14px; font-weight: 500; }
.sa-hero-kpi-body { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sa-hero-kpi-label { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--sa-hero-text); }
.sa-hero-kpi-num { font-size: 84px; font-weight: 500; line-height: 1; letter-spacing: -0.045em; color: var(--sa-hero-strong); font-variant-numeric: tabular-nums; }
.sa-hero-kpi-bar { display: block; width: 72px; height: 3px; border-radius: 3px; background: linear-gradient(135deg, #93DEFD, #AE95DD 45%, #FCB56C); transform-origin: 50% 50%; }
/* The export removes the main UI outright (v.main). Here it fades, because the
   reveal gate is a transition on the same elements and an animation would win
   the cascade and show them before the hero is scrolled into view. This rule
   must stay after the reveal rules for the same-specificity tie to break here. */
.sa-hero[data-sa-hero-ending="1"] .sa-hero-cluster,
.sa-hero[data-sa-hero-ending="1"] .sa-hero-crm { opacity: 0; visibility: hidden; transition: opacity 600ms var(--sa-hero-ease), visibility 0s linear 600ms; }

/* --- responsive ------------------------------------------------------------- */
@media (max-width: 1200px) {
  .sa-hero-intro-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sa-hero-intro-right { padding-top: 0; max-width: 560px; justify-self: start; }
}
@media (max-width: 1240px) { .sa-hero-scenario { display: none; } }
@media (max-width: 900px) {
  .sa-hero-intro { padding-top: 84px; margin-bottom: 56px; }
  .sa-hero-title { font-size: 38px; }
}
@media (max-width: 860px) {
  .sa-hero-track { height: calc(var(--sa-hero-avail) * 1.52); }
  .sa-hero-stage { flex-direction: column; }
  /* Phones run the tiles as a row across the full width instead of a column
     down it, pinned to a flat 200px height - the shipped KA hero's rule, which
     lands its tiles at 216x200. The height is flex-basis, so it wins over any
     inline height and the morph does not re-shape the row on a narrow stage;
     only the width write below reaches it. */
  .sa-hero-faces { flex: 0 0 200px; flex-direction: row; width: 100%; }
  .sa-hero-controls { left: 12px; right: 90px; }
  .sa-hero-steps { flex: 1 1 auto; gap: 8px; margin-left: 2px; }
  .sa-hero-step { flex: 0 0 22px; min-width: 0; }
  .sa-hero-step[data-sa-hero-cur="1"] { flex: 1 1 auto; }
  .sa-hero-step-label { visibility: hidden; font-size: 11px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .sa-hero-step[data-sa-hero-cur="1"] .sa-hero-step-label { visibility: visible; }
  .sa-hero-grip, .sa-hero-crm-top { cursor: default; }
  /* the panel is scaled down here, so the pill drops to the mark and the dot */
  .sa-hero-crm-conn-x { display: none; }
  .sa-hero-crm-conn { padding: 4px 8px; gap: 0; }
}
@media (max-width: 600px) { .sa-hero-pill { transform: scale(0.74); transform-origin: 0 0; left: 10px; top: 10px; } }

/* --- reduced motion ---------------------------------------------------------
   No morph, no staging, no playback: the hero renders at full bleed with the
   story on its last frame - both summaries present (the slot un-stacks so the
   end-of-call card sits under the transfer card), CRM notes filled, status on
   Resolved, Ben live on his tile with the AI panel gone.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .sa-hero-track { height: var(--sa-hero-avail); }
  .sa-hero-intro { transform: none; opacity: 1; }
  .sa-hero-fade { opacity: 1; visibility: visible; transition: none; }
  .sa-hero-gate { clip-path: none; transition: none; }
  .sa-hero [data-sa-hero-cue], .sa-hero-w, .sa-hero-dots i, .sa-hero-knob, .sa-hero-wall { animation: none; transition: none; }
  /* the composite above already shows the story's outcome; the Impact card is
     an overlay and would sit on top of it */
  .sa-hero-kpi { display: none; }
  .sa-hero-w::after { display: none; }
  .sa-hero-live::after { display: none; }
  .sa-hero-transient { display: none; }
  .sa-hero-fill { transform: scaleX(1); }
  .sa-hero-win-glow, .sa-hero-ring-glow { display: none; }
  .sa-hero-slot { display: flex; flex-direction: column; gap: 8px; }
  .sa-hero-strip { position: static; }
  .sa-hero-tbox { height: auto; max-height: 190px; -webkit-mask-image: none; mask-image: none; }
  .sa-hero-tbox .sa-hero-line:nth-child(-n+5), .sa-hero-tbox .sa-hero-sep:nth-child(-n+5) { display: none; }
}
