.hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(150px + env(safe-area-inset-top, 0px));
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

/* ---- Ambient light ---- */
.hero__backdrop { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero__aurora { position: absolute; inset: 0; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; will-change: transform; }
.hero__blob--a { width: 58vw; height: 58vw; max-width: 900px; max-height: 900px; left: -18vw; top: -22vw; background: radial-gradient(circle, #0f6e9a 0%, transparent 65%); animation: drift-a 22s ease-in-out infinite alternate; }
.hero__blob--b { width: 42vw; height: 42vw; max-width: 700px; max-height: 700px; right: -12vw; top: 4vw; background: radial-gradient(circle, rgba(255, 180, 140, 0.75) 0%, transparent 62%); opacity: 0.32; animation: drift-b 26s ease-in-out infinite alternate; }
.hero__blob--c { width: 70vw; height: 40vw; left: 15vw; top: 55%; background: radial-gradient(ellipse, #0d3f63 0%, transparent 65%); opacity: 0.5; animation: drift-a 30s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate3d(6vw, 4vw, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-8vw, 6vw, 0) scale(0.92); } }

.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(220, 236, 250, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(220, 236, 250, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
}

/* ---- Copy ---- */
.hero__copy { position: relative; }
.hero__award {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 16px 6px 6px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--ink-line-strong);
  color: var(--on-ink-muted); font-size: 0.86rem; margin: 0;
}
.hero__awardmark {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.hero__title {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(3rem, 7.4vw, 7.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 600;
  max-width: none;
  font-variation-settings: "opsz" 96, "wdth" 86;
}
.hero__word { display: inline-block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; vertical-align: top; margin-right: 0.22em; }
.hero__word:last-child { margin-right: 0; }
.hero__word > span { display: inline-block; }
.hero__glow {
  background: linear-gradient(100deg, #ffd1b5 0%, #c8f1fa 45%, #3fcbe9 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.hero__split {
  margin-top: clamp(1.75rem, 3.5vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-6) var(--space-8);
  align-items: end;
}
.hero__text { display: grid; gap: 14px; max-width: 54ch; }
.hero__sub { font-size: var(--fs-lead); color: var(--on-ink); font-weight: 500; letter-spacing: -0.01em; }
.hero__body { color: var(--on-ink-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-self: end; }

/* ---- Product stage ---- */
.hero__stagewrap { position: relative; margin-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: 40px; perspective: 1600px; }
.hero__horizon {
  position: absolute; left: 8%; right: 8%; top: 8%; height: 70%;
  background: radial-gradient(ellipse at center, rgba(34, 195, 230, 0.55), transparent 65%);
  filter: blur(60px); z-index: -1;
}
.hero__stage { position: relative; transform-style: preserve-3d; transform-origin: 50% 0%; max-width: 1120px; margin-inline: auto; }
.hero__tilt { transform-style: preserve-3d; }

/* ---- Floating chips ---- */
.chip { position: absolute; z-index: 2; }
.chip__inner {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: rgba(18, 34, 51, 0.72);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px var(--ink-line-strong), 0 24px 48px -16px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  font-size: 13px;
}
.chip__inner > span:last-child { display: grid; line-height: 1.3; }
.chip .label { color: var(--on-ink-faint); font-size: 10px; }
.chip strong { font-weight: 550; color: var(--on-ink); }
.chip__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.chip__icon--evidence { background: rgba(243, 195, 90, 0.16); color: var(--evidence); }
.chip__icon--ok { background: rgba(111, 220, 140, 0.16); color: var(--closed); }
.chip__icon--accent { background: rgba(34, 195, 230, 0.22); color: var(--accent-soft); }
.chip__stack { position: relative; width: 34px; height: 34px; }
.chip__stack i { position: absolute; width: 22px; height: 26px; border-radius: 5px; background: var(--ink-700); box-shadow: inset 0 0 0 1px var(--ink-line-strong); }
.chip__stack i:nth-child(1) { left: 2px; top: 5px; transform: rotate(-10deg); }
.chip__stack i:nth-child(2) { left: 7px; top: 3px; }
.chip__stack i:nth-child(3) { left: 11px; top: 5px; transform: rotate(9deg); background: var(--accent); }

/* Chips straddle the window's top and bottom edges only: over the title bar and the bottom padding, never over data. */
.chip--evidence { left: 22%; top: -30px; }
.chip--sources { right: 4%; top: -30px; }
.chip--note { left: 4%; bottom: -30px; }
.chip--gap { left: 40%; bottom: -30px; }

@media (max-width: 1100px) {
  .chip--evidence { display: none; }
  .chip--gap { left: auto; right: 4%; }
}
@media (max-width: 900px) {
  .hero__split { grid-template-columns: minmax(0, 1fr); }
  .hero__actions { justify-self: start; }
  .chip--sources { display: none; }
}
@media (max-width: 560px) {
  .hero { padding-top: calc(118px + env(safe-area-inset-top, 0px)); }
  .hero__title { font-size: clamp(2.6rem, 12.5vw, 4rem); }
  .hero__actions { width: 100%; }
  .hero__actions .btn--primary { flex: 1; justify-content: space-between; }
  .chip__inner { padding: 8px 12px 8px 8px; font-size: 12px; }
  .chip__icon { width: 28px; height: 28px; }
  .chip--gap { display: none; }
  .chip--note { left: 12px; bottom: -34px; }
}

.hero__line { display: block; }
.hero__line--0 { color: var(--on-ink-muted); }
.hero__body { color: var(--on-ink); font-size: var(--fs-lead); line-height: 1.5; max-width: 46ch; }
