/* Home hero: cut-paper silhouettes pop up — a growth chart, a heartbeat, then a face — with hanging word tags. */
.ab-hero.ab-motion {
  position: relative; z-index: 5; overflow: hidden;
  --nav-h: 80px; --hp: 0;
  padding-top: var(--nav-h); height: 100svh; min-height: 560px; max-height: 1080px;
  background: #ffffff; color: #172c46;
}
.ab-visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ab-motion-svg { position: absolute; left: 0; right: 0; bottom: 0; top: var(--nav-h); width: 100%; height: calc(100% - var(--nav-h)); display: block; cursor: pointer;
  transform: translateY(calc(var(--hp) * -60px)); opacity: calc(1 - var(--hp) * .9); }

/* Light background: recolour the hero chrome */
.ab-motion .ab-hero-top { color: rgba(23,44,70,.7); }
.ab-motion .ab-hero-clock b { color: #172c46; }
.ab-motion .ab-live-dot { background: #2b56a6; }
.ab-motion .ab-scroll-cue { color: #172c46; }
.ab-motion .ab-scroll-cue i { background: rgba(23,44,70,.2); }
.ab-motion .ab-scroll-cue i::after { background: #2b56a6; }

.ab-motion-actions { position: absolute; z-index: 3; right: 5vw; bottom: 28px; display: flex; align-items: center; gap: 16px; }
.ab-motion .hero-cta { margin-top: 0; color: #172c46; border-color: rgba(23,44,70,.35); }
.ab-motion .hero-cta:hover { border-color: #172c46; }
.ab-motion-replay { font: 500 11px/1 'Noto Sans', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #4a5568;
  background: transparent; border: 1px solid #234c8850; border-radius: 999px; padding: 9px 14px; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .6s ease, border-color .2s ease; }
.ab-motion-replay.on { opacity: 1; pointer-events: auto; }
.ab-motion-replay:hover { border-color: #4a5568; }

/* Real HTML headline: hidden on wide screens (the animated scene draws it), shown on phones */
@media (min-width: 741px) {
  .ab-hero-h1 { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 740px) {
  .ab-hero-h1 { margin: 40px 24px 0; font: 400 clamp(44px, 13vw, 60px)/1 'Noto Serif', Georgia, serif; letter-spacing: -.02em; color: #172c46; }
  .ab-hero-h1 em { position: relative; display: inline-block; font-style: italic; color: #234c88; background: #dfe8f0; outline: 1.5px solid #2b56a6; padding: 0 .14em; margin-top: 6px; }
  .ab-hero-h1 .hd { position: absolute; width: 8px; height: 8px; background: #fff; border: 1.5px solid #2b56a6; }
  .ab-hero-h1 .tl { left: -5px; top: -5px; } .ab-hero-h1 .tr { right: -5px; top: -5px; }
  .ab-hero-h1 .bl { left: -5px; bottom: -5px; } .ab-hero-h1 .br { right: -5px; bottom: -5px; }
  .ab-hero-sub { display: block; margin-top: 16px; font: 400 18px/1.45 'Noto Sans', sans-serif; letter-spacing: 0; color: #4a5568; max-width: 32ch; }
  .ab-motion-svg [data-abm^="t"] { display: none; }
  .ab-motion-svg [data-abm="line"], .ab-motion-svg [data-abm="ghost"] { stroke-width: 9; }
  .ab-motion-svg [data-abm^="l"] text { font-size: 52px; }
  .ab-hero.ab-motion { --nav-h: 72px; height: auto; min-height: 0; max-height: none; }
  .ab-motion-svg { position: relative; top: 0; height: auto; aspect-ratio: 1600 / 680; margin-top: 8px; }
  .ab-motion-actions { position: relative; right: auto; bottom: auto; padding: 16px 24px 40px; justify-content: space-between; flex-direction: row-reverse; }
}
@media (prefers-reduced-motion: reduce) { .ab-motion-svg { transform: none; opacity: 1; } }
.motion-paused .ab-motion-svg { transform: none; opacity: 1; }
