/* ============================================================
   home-v2 — Living-waveform hero.
   The whole animation is driven by home-v2.js; CSS provides the
   dark stage, layout, typography, and rest-state visuals.
   ============================================================ */

.hero-story {
  --story-bg-1: #061A20;
  --story-bg-2: #10404D;
  --story-ink: #0B2A33;
  --story-cap-provider: #92E7EF;
  --story-cap-patient:  #F6C677;
  --story-cap-assistant: rgba(255,255,255,.82);
  --story-scrim: rgba(6, 26, 32, 0.72);
  --story-hairline: rgba(146, 231, 239, 0.14);
  --story-text: rgba(207, 240, 245, 0.72);
  --story-text-mute: rgba(207, 240, 245, 0.5);
  position: relative;
  height: 700vh;
  background: var(--story-bg-1);
  color: #fff;
  isolation: isolate;
  overflow: clip;
}

[data-hero-pin] {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 42%, var(--story-bg-2) 0%, var(--story-ink) 42%, var(--story-bg-1) 100%);
}

/* -----------------------------------------------------------
   Persistent visit header — anchors every act as ONE real visit
   ----------------------------------------------------------- */
.hero-story-visit {
  align-self: center;
  margin-top: 24px;
  will-change: transform;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--story-scrim);
  border: 1px solid var(--story-hairline);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12.5px;
  color: rgba(207, 240, 245, 0.72);
  white-space: nowrap;
  max-width: calc(100% - 32px);
  overflow: hidden;
}
.hero-story-visit-patient {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-story-visit-patient strong { color: #fff; font-weight: 600; }
.hero-story-visit-patient .mono { color: rgba(146, 231, 239, 0.78); font-size: 11.5px; }
.hero-story-visit-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(146, 231, 239, 0.28);
  flex: 0 0 auto;
}
.hero-story-visit-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 6px;
  border-left: 1px solid rgba(146, 231, 239, 0.14);
  flex: 0 0 auto;
}
.hero-story-visit-status .mono { font-size: 11.5px; letter-spacing: 0.08em; }
.hero-story-visit-status [data-status-label] { color: #92E7EF; font-weight: 600; }
.hero-story-visit-status [data-visit-time] { color: rgba(255, 255, 255, 0.86); }
@media (max-width: 900px) {
  /* Mobile: pill floats at the top of the pin (below nav) instead of
     sitting in the chrome column. Keeps it out of the way of the wave,
     captions, and the act cards which all compete for tight vertical
     real estate on phones. Top offset tracks the announcement banner
     (--dc-banner-h) so it never slips under the nav when the banner
     is dismissed or added. */
  .hero-story-visit {
    position: absolute;
    top: calc(var(--dc-banner-h, 0px) + 96px);
    left: 50%;
    align-self: unset;
    margin-top: 0;
    transform: translateX(-50%);
    z-index: 6;
    padding: 12px 22px;
    font-size: 12px;
    gap: 8px;
    row-gap: 6px;
    max-width: calc(100vw - 24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
  }
  .hero-story-visit-patient {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
  }
  .hero-story-visit-status {
    border-left: 0;
    padding-left: 0;
    gap: 10px;
  }
  .visit-only-desktop { display: none !important; }
  /* NOTE: [data-chrome] mobile padding-top is set AFTER the base rule
     further down (see comment there). Placing it here would be overwritten
     by the base `padding` shorthand due to source order on tie specificity. */
}

/* Narrator line — one italic sentence framing each act as a moment in the visit */
.hero-story-narrator {
  font-family: var(--font-serif, "Instrument Serif", Georgia, serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.3;
  color: rgba(207, 240, 245, 0.82);
  text-align: center;
  margin: 0 auto 18px;
  max-width: 44ch;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
[data-act-card="biometrics"] .hero-story-narrator { color: #92E7EF; }
[data-act-card="note"]       .hero-story-narrator { color: #92E7EF; }
[data-act-card="claim"]      .hero-story-narrator { color: #F6C677; }

/* Tooth-mark watermark */
.hero-story-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(540px, 58vw);
  transform: translate(-50%, -50%);
  opacity: 0.03;
  filter: brightness(0) invert(1);
  pointer-events: none;
  user-select: none;
}

/* -----------------------------------------------------------
   Waveform layer — the whole SVG group shifts vertically to
   center on the caption band, not the stage.
   ----------------------------------------------------------- */
.hero-story-wave-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 42px rgba(25, 173, 197, 0.32));
  will-change: transform, opacity;
  animation: dc-wave-reveal 820ms cubic-bezier(.4, 0, .2, 1) both;
}
.hero-story-wave-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.hero-story-wave-wrap path {
  fill: none;
  stroke-linecap: round;
}
@keyframes dc-wave-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-story-wave-wrap { animation: none; }
}

/* -----------------------------------------------------------
   Column chrome — copy, listening pill, biometrics, CTA
   Symmetric gutter so the wave can breathe on both sides.
   ----------------------------------------------------------- */
[data-chrome] {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(24px, 4vw, 80px);
  right: clamp(24px, 4vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(130px, 18vh, 180px) 24px clamp(20px, 4vh, 64px);
  /* Above the acts-layer (z:3) so the visit pill (a chrome child) stays
     visible over the note/claim cards in Acts 1+. The other chrome children
     (title/lede/cta) fade to opacity 0 in later acts so the card beneath is
     still visible through them. */
  z-index: 7;
}
/* Mobile chrome padding (declared AFTER the base so the shorthand doesn't
   overwrite this padding-top on narrow viewports). Pushes title well below
   the absolute-positioned visit pill. */
@media (max-width: 900px) {
  [data-chrome] {
    padding-top: calc(var(--dc-banner-h, 0px) + 300px);
  }
}
@media (min-width: 900px) {
  [data-chrome] {
    left: clamp(204px, 14vw, 252px);
    right: clamp(204px, 14vw, 252px);
  }
}

/* Top copy block (fades out from Act 1) */
[data-copy] {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  will-change: opacity, transform;
}
.hero-story-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(146, 231, 239, 0.28);
  background: rgba(146, 231, 239, 0.08);
  color: #92E7EF;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-story-title {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(32px, 4.6vw, 76px);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}
.hero-story-title em {
  font-style: normal;
  color: #92E7EF;
}
.hero-story-lede {
  margin: 0;
  max-width: 54ch;
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--story-text);
  font-weight: 300;
  text-wrap: pretty;
}

/* Status row: listening pill + biometrics roster */
[data-status] {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0 2px;
  will-change: opacity;
}
.hero-story-listen {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 20px;
  background: var(--story-scrim);
  border: 1px solid var(--story-hairline);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--story-text);
}
.hero-story-listen-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #92E7EF;
  animation: dc-listen-pulse 1.6s cubic-bezier(.4, 0, .2, 1) infinite;
}
.hero-story-listen-timer {
  color: rgba(146, 231, 239, 0.5);
  letter-spacing: normal;
  text-transform: none;
}
@keyframes dc-listen-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.82); }
}

.hero-story-biometrics {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 238px;
  box-sizing: border-box;
  padding: 11px 15px;
  border-radius: 16px;
  border: 1px solid rgba(146, 231, 239, 0.16);
  background: var(--story-scrim);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-story-bio-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-story-bio-icon {
  flex: 0 0 auto;
  color: #92E7EF;
  transition: opacity 400ms cubic-bezier(.4, 0, .2, 1);
}
.hero-story-bio-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(146, 231, 239, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-story-bio-sep {
  height: 1px;
  background: rgba(146, 231, 239, 0.16);
}
.hero-story-bio-row {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 320ms cubic-bezier(.4, 0, .2, 1);
}
.hero-story-bio-bars {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.hero-story-bio-bars span {
  width: 2px;
  height: 14px;
  border-radius: 2px;
  transform-origin: bottom;
  transform: scaleY(0.34);
  background: currentColor;
}
.hero-story-bio-row.is-live .hero-story-bio-bars span:nth-child(1) { animation: dc-bar 1.05s cubic-bezier(.4,0,.2,1) infinite; animation-delay: 0ms; }
.hero-story-bio-row.is-live .hero-story-bio-bars span:nth-child(2) { animation: dc-bar 1.05s cubic-bezier(.4,0,.2,1) infinite; animation-delay: 110ms; }
.hero-story-bio-row.is-live .hero-story-bio-bars span:nth-child(3) { animation: dc-bar 1.05s cubic-bezier(.4,0,.2,1) infinite; animation-delay: 220ms; }
.hero-story-bio-row.is-live .hero-story-bio-bars span:nth-child(4) { animation: dc-bar 1.05s cubic-bezier(.4,0,.2,1) infinite; animation-delay: 330ms; }
@keyframes dc-bar {
  0%   { transform: scaleY(0.3); }
  50%  { transform: scaleY(1); }
  100% { transform: scaleY(0.3); }
}
.hero-story-bio-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-story-bio-meta {
  flex: 0 0 auto;
  width: 58px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 10.5px;
  white-space: nowrap;
  color: var(--story-text);
}

/* Row that reserves the caption band; the layer floats over it. */
[data-row] {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
}

/* CTA + trust + scroll cue */
[data-cta] {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  will-change: opacity;
}
.hero-story-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.hero-story-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1px solid rgba(146, 231, 239, 0.34);
  background: transparent;
  color: #92E7EF;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.hero-story-ghost:hover {
  background: rgba(146, 231, 239, 0.1);
  border-color: rgba(146, 231, 239, 0.6);
  color: #fff;
}
.hero-story-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--story-text-mute);
}
.hero-story-trust-sep {
  width: 1px;
  height: 12px;
  background: rgba(146, 231, 239, 0.25);
}
.hero-story-trust .mono { font-family: var(--font-mono); }
.hero-story-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(146, 231, 239, 0.55);
  animation: dc-cue 2.4s ease-in-out infinite;
}
.hero-story-scroll-label {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
@keyframes dc-cue {
  0%   { transform: translateY(0); opacity: 0.9; }
  60%  { transform: translateY(7px); opacity: 0.25; }
  100% { transform: translateY(0); opacity: 0.9; }
}

/* -----------------------------------------------------------
   Captions layer — absolutely positioned lanes; JS moves them.
   ----------------------------------------------------------- */
[data-captions] {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.hero-story-caption {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, 0);
  width: min(248px, 22vw);
  opacity: 0;
  transition: opacity 240ms cubic-bezier(.4, 0, .2, 1);
  will-change: opacity, left, top;
}
.hero-story-caption-inner {
  position: relative;
  padding: 12px 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 12px 34px rgba(6, 26, 32, 0.38);
}
.hero-story-caption[data-role="provider"] .hero-story-caption-inner {
  background: rgba(9, 52, 62, 0.94);
  border-color: rgba(146, 231, 239, 0.34);
}
.hero-story-caption[data-role="patient"] .hero-story-caption-inner {
  background: rgba(6, 26, 32, 0.92);
  border-color: rgba(255, 255, 255, 0.20);
}
.hero-story-caption[data-role="assistant"] .hero-story-caption-inner {
  background: rgba(6, 26, 32, 0.92);
  border-color: rgba(255, 255, 255, 0.16);
}
.hero-story-caption-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}
.hero-story-caption-name {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-story-caption[data-role="provider"]  .hero-story-caption-name { color: var(--story-cap-provider); }
.hero-story-caption[data-role="patient"]   .hero-story-caption-name { color: var(--story-cap-patient); }
.hero-story-caption[data-role="assistant"] .hero-story-caption-name { color: var(--story-cap-assistant); }
.hero-story-caption-bars {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 9px;
}
.hero-story-caption-bars span {
  width: 1.5px;
  height: 9px;
  border-radius: 2px;
  transform-origin: bottom;
  transform: scaleY(0.4);
  opacity: 0.75;
}
.hero-story-caption[data-role="provider"]  .hero-story-caption-bars span { background: var(--story-cap-provider); }
.hero-story-caption[data-role="patient"]   .hero-story-caption-bars span { background: var(--story-cap-patient); }
.hero-story-caption[data-role="assistant"] .hero-story-caption-bars span { background: var(--story-cap-assistant); }
.hero-story-caption-body {
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.94);
  text-wrap: pretty;
}

/* -----------------------------------------------------------
   Act cards — centered, absolutely-positioned. JS drives
   opacity + translateY. They stack in the same slot.
   ----------------------------------------------------------- */
.hero-story-acts-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + 32px);   /* half of 64px header */
  display: flex;
  justify-content: center;
  padding: 0 24px;
  pointer-events: none;
  z-index: 3;
}
[data-act-card] {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: min(820px, 100%);
  opacity: 0;
  will-change: opacity, transform;
}
[data-act-card="claim"] { width: min(730px, 100%); }

/* Voice biometrics act card (Act 1) — dedicated to identity resolution. */
.hero-story-bio-card {
  border-radius: 18px;
  background: #fff;
  border: 1px solid #E6EAEF;
  box-shadow: 0 40px 90px rgba(6, 26, 32, 0.5);
  overflow: hidden;
  color: #0F172A;
}
.hero-story-bio-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 28px;
  border-bottom: 1px solid #E6EAEF;
  background: #E5F5F9;
}
.hero-story-bio-card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0F7689;
}
.hero-story-bio-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #0B2A33;
  margin-top: 6px;
  letter-spacing: -0.015em;
}
.hero-story-bio-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(25, 173, 197, 0.14);
  color: #0F7689;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.hero-story-bio-card-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #19ADC5; }

.hero-story-bio-card-body {
  padding: 8px 12px;
  display: grid;
  gap: 2px;
}
.hero-story-bio-card .hero-story-bio-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  transition: background .35s ease, opacity .3s ease;
}
.hero-story-bio-card .hero-story-bio-row.is-live {
  background: rgba(25, 173, 197, 0.06);
}
.hero-story-bio-card .hero-story-bio-row.is-resolved .hero-story-bio-name {
  color: #0B2A33;
}
.hero-story-bio-card .hero-story-bio-bars {
  height: 22px;
  gap: 3px;
}
.hero-story-bio-card .hero-story-bio-bars span {
  width: 3px;
  height: 22px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.55;
}
.hero-story-bio-card .hero-story-bio-row.is-live .hero-story-bio-bars span { opacity: 1; }
.hero-story-bio-card .hero-story-bio-row.is-live .hero-story-bio-bars span:nth-child(1) { animation: dc-bar 1.05s cubic-bezier(.4,0,.2,1) infinite; animation-delay: 0ms; }
.hero-story-bio-card .hero-story-bio-row.is-live .hero-story-bio-bars span:nth-child(2) { animation: dc-bar 1.05s cubic-bezier(.4,0,.2,1) infinite; animation-delay: 80ms; }
.hero-story-bio-card .hero-story-bio-row.is-live .hero-story-bio-bars span:nth-child(3) { animation: dc-bar 1.05s cubic-bezier(.4,0,.2,1) infinite; animation-delay: 160ms; }
.hero-story-bio-card .hero-story-bio-row.is-live .hero-story-bio-bars span:nth-child(4) { animation: dc-bar 1.05s cubic-bezier(.4,0,.2,1) infinite; animation-delay: 240ms; }
.hero-story-bio-card .hero-story-bio-row.is-live .hero-story-bio-bars span:nth-child(5) { animation: dc-bar 1.05s cubic-bezier(.4,0,.2,1) infinite; animation-delay: 320ms; }
.hero-story-bio-card .hero-story-bio-info { min-width: 0; }
.hero-story-bio-card .hero-story-bio-role {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5B6573;
}
.hero-story-bio-card .hero-story-bio-name {
  font-size: 16px;
  font-weight: 600;
  color: #5B6573;
  margin-top: 3px;
  transition: color .35s ease;
}
.hero-story-bio-card .hero-story-bio-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #5B6573;
  white-space: nowrap;
}
.hero-story-bio-card-foot {
  padding: 14px 28px 18px;
  border-top: 1px solid #E6EAEF;
  background: #F8FAFC;
  font-size: 13px;
  color: #5B6573;
}

.hero-story-note {
  border-radius: 18px;
  background: #fff;
  border: 1px solid #E6EAEF;
  box-shadow: 0 40px 90px rgba(6, 26, 32, 0.5);
  overflow: hidden;
  color: var(--text, #0F172A);
}
.hero-story-note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  border-bottom: 1px solid #E6EAEF;
  background: #E5F5F9;
}
.hero-story-note-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0F7689;
}
.hero-story-note-title {
  font-size: 15px;
  font-weight: 600;
  color: #0B2A33;
  margin-top: 4px;
}
.hero-story-note-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(25, 173, 197, 0.14);
  color: #0F7689;
  font-size: 11.5px;
  font-weight: 600;
}
.hero-story-note-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #19ADC5; }
.hero-story-note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.hero-story-note-cell {
  padding: 22px 26px;
}
.hero-story-note-cell + .hero-story-note-cell { border-left: 1px solid #E6EAEF; }
.hero-story-note-cell:nth-child(3),
.hero-story-note-cell:nth-child(4) { border-top: 1px solid #E6EAEF; }
.hero-story-note-cell:nth-child(3) { border-left: 0; }
.hero-story-note-cell:nth-child(4) { border-left: 1px solid #E6EAEF; }
.hero-story-note-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5B6573;
}
.hero-story-note-value {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #0F172A;
}
.hero-story-note-foot {
  padding: 16px 26px;
  border-top: 1px solid #E6EAEF;
  background: #F8FAFC;
  font-size: 13px;
  color: #5B6573;
}

.hero-story-claim-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}
.hero-story-claim {
  width: 100%;
  padding: 26px 30px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #E6EAEF;
  box-shadow: 0 40px 90px rgba(6, 26, 32, 0.5);
  text-align: left;
  color: #0F172A;
}
.hero-story-claim-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.hero-story-claim-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #0F7689; }
.hero-story-claim-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #15803D;
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
}
.hero-story-claim-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #DCFCE7; }
.hero-story-claim-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.hero-story-claim-field .label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5B6573;
}
.hero-story-claim-field .value {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: #0B2A33;
  margin-top: 6px;
}
.hero-story-claim-field .value--money { color: #B45309; }
.hero-story-claim-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #E6EAEF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  color: #5B6573;
}
.hero-story-claim-caption {
  max-width: 22ch;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
  margin: 0;
}

/* -----------------------------------------------------------
   Right rail
   ----------------------------------------------------------- */
.hero-story-rail {
  position: absolute;
  right: clamp(16px, 3vw, 44px);
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 14px 14px 14px 18px;
  border-radius: 16px;
  background: var(--story-scrim);
  border: 1px solid rgba(146, 231, 239, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 5;
}
@media (min-width: 900px) {
  .hero-story-rail { display: flex; }
}
.hero-story-rail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  color: rgba(207, 240, 245, 0.62);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.hero-story-rail-item::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.hero-story-rail-item.is-active { color: #92E7EF; }
.hero-story-rail-item:hover { color: #fff; }

/* -----------------------------------------------------------
   Responsive
   ----------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-story { height: 640vh; }
  .hero-story-caption { width: min(300px, 86%); }
  .hero-story-claim-grid { grid-template-columns: 1fr 1fr; }
  .hero-story-note-grid { grid-template-columns: 1fr; }
  .hero-story-note-cell + .hero-story-note-cell { border-left: 0; }
  .hero-story-note-cell:nth-child(2),
  .hero-story-note-cell:nth-child(3),
  .hero-story-note-cell:nth-child(4) { border-top: 1px solid #E6EAEF; }
  /* Keep act cards off the viewport edges */
  [data-act-card]              { width: min(820px, calc(100vw - 32px)); }
  [data-act-card="claim"]      { width: min(730px, calc(100vw - 32px)); }

  /* Scale card interiors down so tall content isn't overwhelming on phones */
  .hero-story-narrator { font-size: 14px; margin-bottom: 12px; max-width: 32ch; }

  .hero-story-note-head       { padding: 10px 14px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-story-note-title      { font-size: 12px; line-height: 1.35; margin-top: 2px; }
  .hero-story-note-badge      { font-size: 9.5px; padding: 2px 7px; }
  .hero-story-note-eyebrow    { font-size: 9.5px; letter-spacing: 0.12em; }
  .hero-story-note-cell       { padding: 9px 14px; }
  .hero-story-note-label      { font-size: 9px; letter-spacing: 0.12em; }
  .hero-story-note-value      { font-size: 11.5px; line-height: 1.4; margin-top: 4px; }
  .hero-story-note-foot       { padding: 8px 14px; font-size: 10.5px; }

  .hero-story-bio-card-head   { padding: 14px 18px; }
  .hero-story-bio-card-title  { font-size: 15.5px; margin-top: 4px; }
  .hero-story-bio-card-badge  { font-size: 10.5px; padding: 3px 8px; }
  .hero-story-bio-card-body   { padding: 6px 8px; }
  .hero-story-bio-card .hero-story-bio-row  { padding: 10px 12px; grid-template-columns: 30px 1fr auto; gap: 12px; }
  .hero-story-bio-card .hero-story-bio-name { font-size: 14px; margin-top: 2px; }
  .hero-story-bio-card .hero-story-bio-role { font-size: 10px; }
  .hero-story-bio-card .hero-story-bio-meta { font-size: 12px; }
  .hero-story-bio-card-foot   { padding: 12px 18px 14px; font-size: 12px; }

  .hero-story-claim           { padding: 18px 20px; }
  .hero-story-claim-head      { margin-bottom: 14px; }
  .hero-story-claim-eyebrow   { font-size: 10.5px; }
  .hero-story-claim-badge     { font-size: 10.5px; padding: 3px 8px; }
  .hero-story-claim-grid      { gap: 12px; }
  .hero-story-claim-field .value { font-size: 13.5px; }
  .hero-story-claim-field .label { font-size: 9.5px; }
  .hero-story-claim-foot      { margin-top: 14px; padding-top: 12px; font-size: 12px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-story-claim-caption   { font-size: clamp(20px, 5.5vw, 30px); }
}
@media (max-width: 760px) {
  [data-status] { flex-direction: column; gap: 12px; }
  .hero-story-biometrics { width: min(300px, 88vw); }
  .hero-story-caption-body { font-size: 13.5px; }
}
@media (max-height: 720px) {
  .hero-story-lede,
  .hero-story-trust,
  .hero-story-scroll { display: none; }
}
