/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
#hero{
  position:relative;
  min-height:100svh;
  padding-top:clamp(120px,14vh,170px);
  padding-bottom:60px;
  display:flex; flex-direction:column; justify-content:center;
  overflow:hidden;
}
/* ── video hero ──────────────────────────────────────────────
   Text sits on footage in both themes, so it is pinned light here rather
   than following --paper, and the scrim carries the contrast. */
.hero-video{ --hv-ink:#FFFFFF; --hv-sub:rgba(255,255,255,.85); }
.hero-vid{
  position:absolute; inset:0; z-index:0;
  width:100%; height:100%;
  object-fit:cover; object-position:center 45%;
  background:#06121C;
}
/* Keep the mobile crop weighted toward the subject and the safe center of the
   footage. Desktop retains the original 45% vertical framing and dimensions. */
@media (max-width:900px){
  .hero-video .hero-vid{ object-position:56% 50%; }
}
.hero-scrim{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    linear-gradient(100deg,rgba(4,12,20,.93) 0%,rgba(4,12,20,.74) 36%,rgba(4,12,20,.28) 64%,rgba(4,12,20,.08) 100%),
    linear-gradient(to bottom,rgba(4,12,20,.5) 0%,rgba(4,12,20,0) 22%,rgba(4,12,20,0) 56%,var(--media-overlay) 100%);
}
/* Sits above the scrim, below the copy, so the headline stays legible while
   the ground behind it resolves. --ink is the showcase's own background in
   both themes, which is the whole point: the seam has no edge to see. */
.hero-exit{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background:var(--ink); opacity:0;
}
.hero-video .hero-grid{ position:relative; z-index:2; grid-template-columns:minmax(0,1fr); }
/* wider than the other heroes: line two carries a rotating verb plus
   "every capital mission." and has to hold one line at desktop widths */
.hero-video .hero-copy{ max-width:min(94%,1000px); }
.hero-video .hero-h1{ color:var(--hv-ink); }
.hero-video .hero-sub{ color:var(--hv-sub); }
.hero-video .scroll-cue{ position:relative; z-index:2; color:rgba(255,255,255,.62); }
.hero-video .scroll-cue .rail{ background:rgba(255,255,255,.3); }

/* the nav is transparent over the footage until it goes .solid */
/* only the top-level triggers go light — the dropdown panels sit on their
   own themed glass and keep the normal palette */
.nav-over-media nav:not(.solid){ background-color:var(--media-overlay); }
/* Every media-led hero uses the homepage's transparent nav treatment. The
   fallback surface remains available through .solid when the nav has crossed
   onto the page content or when a media hero is unavailable. */
body.nav-over-media nav:not(.solid){ background-color:transparent; }
.nav-over-media nav:not(.solid) .nav-top{ color:rgba(255,255,255,.76); }
.nav-over-media nav:not(.solid) .nav-top:hover,
.nav-over-media nav:not(.solid) .has-menu.open > .nav-top{ color:#fff; }
.nav-over-media nav:not(.solid) .a-logo .lw path{ fill:#fff; }
.nav-over-media nav:not(.solid) .btn-ghost,
.nav-over-media nav:not(.solid) .icon-btn{ border-color:rgba(255,255,255,.32); color:#fff; }
/* The themed navy focus ring is correct on page surfaces, but transparent
   media navigation needs a light ring against the footage. */
body.nav-over-media nav:not(.solid):not(.mobile-open) :where(a,button):focus-visible{ outline-color:#fff; }

/* ── pause / play control ────────────────────────────────── */
.motion-btn{
  position:absolute; z-index:3;
  right:var(--pad); bottom:clamp(20px,4vh,40px);
  display:inline-flex; align-items:center; gap:9px;
  padding:9px 16px 9px 13px; border-radius:100px;
  background:rgba(4,12,20,.5); border:1px solid rgba(255,255,255,.26);
  color:#fff; font-size:12px; font-weight:600; letter-spacing:-.01em;
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  transition:background .3s var(--ease), border-color .3s var(--ease);
}
.motion-btn:hover{ background:rgba(4,12,20,.74); border-color:rgba(255,255,255,.46); }
.motion-btn:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:3px; }
.mb-ico{ position:relative; width:11px; height:12px; flex-shrink:0; }
.mb-ico::before,.mb-ico::after{
  content:''; position:absolute; top:0; width:3px; height:12px;
  background:currentColor; border-radius:1px;
}
.mb-ico::before{ left:0 } .mb-ico::after{ right:0 }
/* paused -> offer a play triangle instead of the pause bars */
.motion-btn.is-paused .mb-ico::before{
  left:1px; width:0; height:0; background:none; border-radius:0;
  border-left:10px solid currentColor;
  border-top:6px solid transparent; border-bottom:6px solid transparent;
}
.motion-btn.is-paused .mb-ico::after{ display:none }

.aura{
  position:absolute; border-radius:50%; pointer-events:none;
  filter:blur(110px); will-change:transform;
}
.aura-1{
  width:min(70vw,900px); aspect-ratio:1;
  top:-28%; right:-14%;
  background:radial-gradient(circle,var(--aura-1) 0%,transparent 65%);
}
.aura-2{
  width:min(55vw,720px); aspect-ratio:1;
  bottom:-30%; left:-16%;
  background:radial-gradient(circle,var(--aura-2) 0%,transparent 65%);
}
.hero-grid{
  max-width:var(--maxw); margin:0 auto; padding-inline:var(--pad);
  width:100%;
  display:grid; grid-template-columns:1.02fr .98fr; gap:clamp(32px,5vw,80px);
  align-items:center;
}
.hero-eyebrow{ margin-bottom:clamp(20px,3vh,32px); }
.hero-h1{
  /* Manrope sets wider than Inter Tight did: "One platform." needs <=105px to
     hold one line in this column, so the ceiling comes down from 116px */
  font-size:clamp(46px,7vw,104px);
  margin-bottom:clamp(22px,3vh,34px);
}
.hero-sub{ max-width:44ch; margin-bottom:clamp(28px,4vh,44px); }

/* ── two-line headline with a rotating verb ──────────────────
   Line one is the statement, line two the qualifier — the same pairing the
   card-collage hero uses, at a smaller second size so the longest verb
   ("Configure") still holds one line. */
.hl-a, .hl-b{ display:block; }
.hl-b{
  font-size:clamp(28px,4vw,55px);
  line-height:1.08; letter-spacing:-.04em;
  margin-top:.18em;
}
/* the lead paragraph used to carry this gap; without it the CTA sat too
   close under the headline */
.hero-video .hero-h1{ margin-bottom:clamp(30px,5vh,58px); font-size: clamp(48px, 7vw, 125px);}

/* The slot is width-animated to the active word, so the tail slides with it
   instead of sitting behind a ragged gap. Widths are measured in
   hero-verb.js after the webfont settles and written to --vw.
   vertical-align:top + a zero-width space keeps the baseline predictable
   while the words themselves are taken out of flow. */
.hero-verb{
  position:relative; display:inline-block; vertical-align:top;
  width:var(--vw,5ch);
  /* delayed to match .hv-word.is-on below, so the tail does not start
     sliding before the incoming word has begun to arrive */
  transition:width .5s var(--ease) .18s;
}
.hero-verb::before{ content:'\200b'; }
/* Rule under the verb. It belongs to the word, not the slot, so it fades and
   slides in on the word's own transition and spans exactly that word.

   It hangs *below* the word box on purpose. Descenders overshoot that box:
   the g in "Manage" and "Configure" reaches 0.285em past its bottom edge,
   measured from the font's own metrics. Anchoring to the deepest descender
   rather than to each word's own ink keeps the rule from hopping up and down
   as the words change. --rule-gap is the clear space under the glyphs. */
.hero-verb{ --rule-h:max(4px,.11em); --rule-gap:3px; }
.hv-word::after{
  content:''; position:absolute; left:0; right:0;
  bottom:calc(-0.05em - var(--rule-gap) - var(--rule-h));
  height: 2px; border-radius:2px;
  background:var(--hv-ink,var(--paper));
  /* wipes out from the left, a beat behind the word itself */
  transform:scaleX(0); transform-origin:left;
  transition:transform .5s var(--ease);
}
.hv-word.is-on::after{ transform:scaleX(1); transition-delay:.26s; }
.hv-word{
  position:absolute; left:0; top:0; white-space:nowrap;
  opacity:0; transform:translateY(.28em);
  transition:opacity .45s var(--ease), transform .45s var(--ease);
}
/* the outgoing word leaves first, the incoming one follows — without the
   delay they cross each other over the rule */
.hv-word.is-on{ opacity:1; transform:none; transition-delay:.18s; }
.hv-word.is-out{ opacity:0; transform:translateY(-.28em); }
.accent .hv-tail { color: var(--hv-ink);}
.hero-actions{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.text-link{
  display:inline-flex; align-items:center; gap:8px;
  font-size:14.5px; font-weight:500; color:var(--paper);
}
.text-link svg{ transition:transform .4s var(--ease); }
.text-link:hover svg{ transform:translateX(5px); }

/* product window */
.hero-stage{ position:relative; }
/* stats rail */
.hero-stats{
  max-width:var(--maxw); margin:clamp(26px,4.5vh,54px) auto 0;
  padding-inline:var(--pad); width:100%;
  display:grid; grid-template-columns:repeat(4,1fr);
  border-top:1px solid var(--line);
}
.stat{ padding:26px 30px 0 0; border-right:1px solid var(--line); }
.stat:last-child{ border-right:none }
.stat-n{
  font-family:var(--font-display); font-weight:700;
  font-size:clamp(28px,3.1vw,46px); letter-spacing:-.045em; line-height:1;
}
.stat-n .fl{ color:var(--accent-text) }
.stat-l{ font-size:12.5px; color:var(--fog-dim); margin-top:9px; max-width:22ch; line-height:1.45; }

/* sits in the gap between the hero grid and the stats rail, so it never
   collides with a stat number on short viewports */
.scroll-cue{
  display:flex; align-items:center; justify-content:center; gap:12px;
  margin-top:clamp(28px,5vh,60px);
  color:var(--fog-dim);
}
.scroll-cue .rail{ width:56px; height:1px; background:var(--line-2); position:relative; overflow:hidden; }
.scroll-cue .rail::after{
  content:''; position:absolute; inset:0; background:var(--flame);
  animation:railrun 2.1s var(--ease) infinite;
}
@keyframes railrun{ 0%{transform:translateX(-100%)} 60%,100%{transform:translateX(100%)} }
