/* =========================================================
   LORIXEN v2 — Premium hero visual (v2 refined)
   Dominant centerpiece · supporting elements · art-directed
   ========================================================= */

/* ---------- HERO BACKGROUND: layered atmosphere ---------- */
.hero-band {
  background:
    radial-gradient(ellipse 90% 70% at 65% 20%,
      hsla(var(--accent-h), 85%, 28%, 0.55) 0%, transparent 60%),
    linear-gradient(180deg, #0B3B3C 0%, #072A2B 55%, #0A3A3B 100%);
}
.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1400px 800px at 85% 40%, hsla(var(--accent-h), 95%, 42%, 0.28) 0%, transparent 60%),
    radial-gradient(900px 600px at 10% 110%, hsla(185, 80%, 55%, 0.12) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
/* Fine grid overlay — subtler */
.hero-band .wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(250,250,247,0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(250,250,247,0.018) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse at 70% 50%, rgba(0,0,0,.45) 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, rgba(0,0,0,.45) 0%, transparent 65%);
  pointer-events: none;
  opacity: .8;
  z-index: 0;
}
.hero-band .wrap { position: relative; }
.hero-band .wrap > * { position: relative; z-index: 1; }

/* Hide the old single-browser approach if present */
.hero__visual .browser:not(.hs-browser) { display: none; }

/* ---------- HERO STACK container ---------- */
.hero__visual {
  aspect-ratio: auto;
  min-height: 600px;
}
.hero-stack {
  position: relative;
  width: 100%;
  min-height: 600px;
  perspective: 2200px;
  transform-style: preserve-3d;
}

/* Ambient glow behind the stack — softer, broader */
.hs-glow {
  position: absolute;
  inset: -8% -12% -8% -8%;
  background:
    radial-gradient(circle at 60% 50%,
      hsla(var(--accent-h), 85%, 50%, 0.38) 0%,
      hsla(var(--accent-h), 90%, 40%, 0.14) 40%,
      transparent 70%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
  animation: hsPulse 10s ease-in-out infinite alternate;
}
@keyframes hsPulse {
  0%   { opacity: .85; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

/* ---------- BEFORE card — pushed into background ---------- */
.hero-stack__before {
  position: absolute;
  top: 4%;
  left: -2%;
  width: 38%;
  z-index: 1;
  transform: rotate(-4deg) translateZ(-80px);
  filter: saturate(0.15) brightness(0.78) blur(0.4px);
  opacity: 0.5;
  transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .7s, opacity .6s;
}
.hero__visual:hover .hero-stack__before {
  opacity: 0.42;
  transform: rotate(-5deg) translateX(-6px) translateZ(-80px);
}
.hs-browser--before {
  background: #E8E6DD;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 24px 50px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.03);
  position: relative;
}
.hs-bar {
  height: 24px;
  background: #D0CCBE;
  display: flex; align-items: center; gap: 4px;
  padding: 0 9px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.hs-bar i { width: 6px; height: 6px; border-radius: 50%; background: #B0A998; }
.hs-bar .hs-url {
  flex: 1; margin: 0 8px;
  height: 14px;
  background: #E8E6DD;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 7px;
  color: #8A8472;
}
.hs-before-body {
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 7px;
  min-height: 170px;
}
.hs-bb-line { height: 8px; background: #BAB5A6; border-radius: 2px; width: 85%; }
.hs-bb-line--sm { height: 5px; width: 55%; background: #C9C5B8; }
.hs-bb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 4px; }
.hs-bb-grid > div { aspect-ratio: 1; background: #C9C5B8; border-radius: 2px; }
.hs-bb-block { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.hs-bb-block > div { height: 4px; background: #C9C5B8; border-radius: 2px; }
.hs-bb-block > div:nth-child(2) { width: 80%; }
.hs-bb-block > div:nth-child(3) { width: 90%; }

.hs-label {
  position: absolute;
  top: 10px; right: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 5;
}
.hs-label--before {
  background: rgba(31, 41, 55, 0.8);
  color: rgba(255,255,255,0.65);
  backdrop-filter: blur(6px);
}
.hs-label--after {
  background: hsla(var(--accent-h), 90%, 40%, 0.95);
  color: #FAFAF7;
  box-shadow: 0 4px 16px hsla(var(--accent-h), 90%, 40%, 0.4);
  top: 14px; right: 14px;
  padding: 4px 10px;
  font-size: 9px;
}

/* ---------- AFTER — the dominant centerpiece ---------- */
.hero-stack__after {
  position: absolute;
  top: 6%;
  right: 0;
  width: 88%;
  z-index: 3;
  transform: rotate(0.8deg) translateZ(0);
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
  animation: hsFloat 10s ease-in-out infinite alternate;
}
@keyframes hsFloat {
  0%   { transform: rotate(0.8deg) translateY(0); }
  100% { transform: rotate(0.4deg) translateY(-5px); }
}
.hero__visual:hover .hero-stack__after {
  transform: rotate(0.2deg) translateY(-3px);
}

.hs-browser--after {
  background: #FAFAF7;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 60px 120px -30px rgba(0,0,0,0.55),
    0 24px 48px -16px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.1),
    0 0 100px -20px hsla(var(--accent-h), 90%, 50%, 0.35);
  position: relative;
}
.hs-bar--light {
  height: 34px;
  background: #F4F2EB;
  border-bottom: 1px solid #E8E6DD;
}
.hs-bar--light i { background: #D4CDBF; width: 9px; height: 9px; }
.hs-bar--light .hs-url {
  background: #FAFAF7;
  border: 1px solid #E8E6DD;
  color: #6B7280;
  font-size: 10px;
  height: 20px;
  gap: 6px;
  max-width: 220px;
  margin: 0 auto;
}
.hs-url--secure svg { color: #16A34A; }

.hs-body { color: #0F1419; font-family: "Inter", sans-serif; }

.hs-topbar {
  display: flex; align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid #EEEBE0;
  gap: 16px;
}
.hs-logo { display: flex; align-items: center; gap: 8px; }
.hs-logo-mark {
  width: 22px; height: 22px; border-radius: 5px;
  background: #0B3B3C; color: #FAFAF7;
  display: grid; place-items: center;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 13px;
}
.hs-logo strong { font-size: 12px; font-weight: 700; letter-spacing: -0.01em; }
.hs-topbar-links {
  display: flex; gap: 16px;
  font-size: 10px;
  color: #6B7280;
  font-weight: 500;
  margin-left: 10px;
}
.hs-topbar-cta {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  color: hsl(var(--accent-h), 75%, 30%);
  padding: 5px 11px;
  border: 1px solid hsla(var(--accent-h), 75%, 30%, 0.25);
  border-radius: 999px;
}

.hs-hero {
  padding: 32px 28px 24px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
  background:
    radial-gradient(ellipse at 100% 0%, hsla(var(--accent-h), 65%, 92%, 0.45) 0%, transparent 60%);
}
.hs-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px;
  background: hsla(var(--accent-h), 72%, 92%, 1);
  color: hsl(var(--accent-h), 75%, 26%);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}
.hs-tag::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: hsl(var(--accent-h), 75%, 40%);
  box-shadow: 0 0 8px hsla(var(--accent-h), 90%, 50%, 0.8);
  animation: hsDot 1.8s ease infinite;
}
@keyframes hsDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .5; transform: scale(1.3); }
}
.hs-headline {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #0F1419;
  max-width: 92%;
}
.hs-headline em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: hsl(var(--accent-h), 75%, 28%);
}
.hs-sub { font-size: 11.5px; color: #6B7280; line-height: 1.5; }

.hs-cta-row { display: flex; gap: 10px; margin-top: 8px; }
.hs-cta-primary {
  background: hsl(var(--accent-h), 75%, 26%);
  color: #FAFAF7;
  padding: 10px 16px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  box-shadow: 0 8px 20px -4px hsla(var(--accent-h), 90%, 30%, 0.45);
}
.hs-cta-ghost {
  padding: 10px 16px;
  border-radius: 7px;
  border: 1px solid #E8E6DD;
  color: #0F1419;
  font-size: 11.5px;
  font-weight: 600;
  background: #FFFFFF;
}

.hs-trust {
  margin: 0 28px 28px;
  padding: 14px 16px;
  background: linear-gradient(90deg, hsla(var(--accent-h), 70%, 95%, 1) 0%, #FAFAF7 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid hsla(var(--accent-h), 50%, 88%, 1);
}
.hs-trust-left { display: flex; align-items: center; gap: 10px; }
.hs-stars { color: #F59E0B; font-size: 14px; letter-spacing: -1px; }
.hs-trust strong {
  font-family: "Fraunces", serif;
  font-size: 18px;
  color: #0F1419;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hs-trust-meta { font-size: 10.5px; color: #6B7280; }
.hs-trust-badges { margin-left: auto; display: flex; gap: 6px; }
.hs-badge {
  padding: 4px 9px;
  background: rgba(255,255,255,0.75);
  border: 1px solid #E8E6DD;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 600;
  color: #0F1419;
  letter-spacing: 0.02em;
}

/* ---------- FLOATING METRIC CARD — single hero metric ---------- */
.hs-float {
  position: absolute;
  z-index: 5;
  animation: hsFloatCard 7s ease-in-out infinite alternate;
  will-change: transform;
}
/* PRIMARY metric — elevated */
.hs-float--lead {
  top: -3%;
  right: -5%;
  padding: 14px 18px 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, hsl(var(--accent-h), 80%, 22%) 0%, hsl(var(--accent-h), 75%, 14%) 100%);
  color: #FAFAF7;
  display: flex; align-items: center; gap: 12px;
  box-shadow:
    0 30px 60px -12px hsla(var(--accent-h), 90%, 20%, 0.65),
    0 0 0 1px hsla(var(--accent-h), 60%, 40%, 0.3),
    0 0 80px -10px hsla(var(--accent-h), 90%, 50%, 0.4);
  animation-delay: -2s;
}
.hs-float--lead .hs-float__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: hsl(var(--accent-h), 70%, 75%);
  box-shadow: 0 0 12px hsla(var(--accent-h), 90%, 70%, 0.9);
  animation: hsDot 1.6s ease infinite;
  flex-shrink: 0;
}
.hs-float--lead .hs-float__num {
  font-family: "Fraunces", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.hs-float--lead .hs-float__lbl {
  color: hsla(var(--accent-h), 40%, 85%, 0.85);
  font-size: 9.5px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 4px;
}

/* SECONDARY metric — demoted, integrated with mockup */
.hs-float--call {
  bottom: -5%;
  left: 2%;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(180%) blur(14px);
  display: flex; align-items: center; gap: 10px;
  box-shadow:
    0 24px 48px -14px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.4),
    0 0 40px -10px hsla(var(--accent-h), 90%, 50%, 0.15);
  z-index: 4;
  animation-delay: -4s;
}
.hs-float--call .hs-float__icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: hsla(var(--accent-h), 70%, 92%, 1);
  color: hsl(var(--accent-h), 75%, 26%);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.hs-float--call .hs-float__body {
  display: flex; flex-direction: column;
  min-width: 0;
}
.hs-float--call .hs-float__lbl--top {
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  color: hsl(var(--accent-h), 75%, 26%);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 3px;
}
.hs-float--call .hs-float__caller {
  font-family: "Fraunces", serif;
  font-size: 13px;
  color: #0F1419;
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: 400;
}

@keyframes hsFloatCard {
  0%   { transform: translateY(0) translateX(0); }
  100% { transform: translateY(-8px) translateX(2px); }
}

/* ---------- PHONE — more intentional placement ---------- */
.hs-phone {
  position: absolute;
  bottom: 8%;
  right: -7%;
  width: 26%;
  max-width: 145px;
  z-index: 6;
  background: #0F1419;
  border-radius: 22px;
  padding: 7px 5px 8px;
  box-shadow:
    0 40px 70px -18px rgba(0,0,0,0.7),
    0 20px 40px -12px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.06),
    0 0 60px -15px hsla(var(--accent-h), 90%, 50%, 0.35);
  transform: rotate(8deg) translateZ(60px);
  animation: hsPhoneFloat 9s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes hsPhoneFloat {
  0%   { transform: rotate(8deg) translateY(0) translateZ(60px); }
  100% { transform: rotate(6deg) translateY(-10px) translateZ(60px); }
}
.hs-phone__notch {
  width: 34px; height: 4px;
  background: #2A2A2A;
  border-radius: 4px;
  margin: 0 auto 6px;
}
.hs-phone__screen {
  background: #FAFAF7;
  border-radius: 14px;
  padding: 12px 10px;
  display: flex; flex-direction: column; gap: 5px;
  min-height: 110px;
  position: relative;
  overflow: hidden;
}
.hs-phone__screen::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 60%; height: 60%;
  background: radial-gradient(circle at top right, hsla(var(--accent-h), 70%, 85%, 0.5), transparent 70%);
  pointer-events: none;
}
.hs-phone__tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 7.5px;
  color: hsl(var(--accent-h), 75%, 26%);
  letter-spacing: 0.1em;
  font-weight: 600;
  position: relative;
}
.hs-phone__h {
  font-family: "Fraunces", serif;
  font-size: 12px;
  line-height: 1.05;
  color: #0F1419;
  letter-spacing: -0.02em;
  position: relative;
}
.hs-phone__cta {
  background: hsl(var(--accent-h), 75%, 26%);
  color: #FAFAF7;
  font-size: 8.5px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 5px;
  margin-top: auto;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 12px -2px hsla(var(--accent-h), 90%, 30%, 0.4);
}

/* ---------- ARROW — more subtle, elegant ---------- */
.hs-arrow {
  position: absolute;
  top: 22%;
  left: 26%;
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(11, 59, 60, 0.55);
  backdrop-filter: blur(16px);
  border: 1px solid hsla(var(--accent-h), 60%, 70%, 0.28);
  display: grid;
  place-items: center;
  color: hsl(var(--accent-h), 70%, 80%);
  box-shadow: 0 0 30px -8px hsla(var(--accent-h), 90%, 50%, 0.4);
  animation: hsArrowPulse 4s ease-in-out infinite;
}
@keyframes hsArrowPulse {
  0%, 100% { box-shadow: 0 0 30px -8px hsla(var(--accent-h), 90%, 50%, 0.4); }
  50%      { box-shadow: 0 0 50px -4px hsla(var(--accent-h), 90%, 50%, 0.6); }
}
.hs-arrow svg { width: 20px; height: 20px; }
.hs-arrow__label {
  position: absolute;
  top: 100%; left: 50%;
  transform: translate(-50%, 8px);
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsla(var(--accent-h), 60%, 80%, 0.85);
  white-space: nowrap;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero__visual { min-height: 520px; }
  .hero-stack { min-height: 520px; }
  .hero-stack__before { width: 34%; top: 5%; }
  .hero-stack__after { width: 90%; top: 10%; }
  .hs-arrow { top: 25%; left: 24%; width: 38px; height: 38px; }
  .hs-arrow svg { width: 16px; height: 16px; }
  .hs-float--lead { right: -2%; top: -1%; }
  .hs-float--call { left: 2%; bottom: -3%; }
}
@media (max-width: 680px) {
  .hero__visual { min-height: 460px; }
  .hero-stack { min-height: 460px; }
  .hero-stack__before { display: none; }
  .hero-stack__after { width: 100%; top: 4%; right: auto; left: 0; transform: rotate(0); animation: none; }
  .hs-arrow { display: none; }
  .hs-float--lead { right: -3%; top: -2%; padding: 10px 14px; }
  .hs-float--lead .hs-float__num { font-size: 20px; }
  .hs-float--call { left: -2%; bottom: 2%; }
  .hs-phone { width: 30%; right: -5%; bottom: -6%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stack__after, .hs-phone, .hs-float, .hs-glow, .hs-arrow, .hs-tag::before, .hs-float--lead .hs-float__dot {
    animation: none !important;
  }
}

/* =========================================================
   CENTERED HERO v2 — editorial composition
   Centered copy up top, single dominant HVAC homepage mockup
   below, one understated metric anchor. No before/after in the
   hero (that pattern lives later in #fix). Motion is minimal.
   ========================================================= */

.hero--center {
  padding: clamp(80px, 9vw, 136px) 0 clamp(96px, 10vw, 160px);
}

.hero--center .hero__copy--center {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
/* Soft orange LED-style glow sitting under the main hero copy —
   a wide blurred bar of light that gently drifts and pulses. */
.hero--center .hero__copy--center::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 18px);
  width: min(560px, 78%);
  height: 82px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 60% 100% at 50% 50%,
    hsla(24, 100%, 58%, 0.55) 0%,
    hsla(22, 100%, 55%, 0.28) 35%,
    transparent 75%
  );
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
  animation: heroLedGlow 6.2s ease-in-out infinite;
}
@keyframes heroLedGlow {
  0%, 100% {
    opacity: 0.5;
    transform: translateX(-52%) scale(0.92);
  }
  50% {
    opacity: 0.92;
    transform: translateX(-48%) scale(1.05);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero--center .hero__copy--center::after {
    animation: none;
    opacity: 0.55;
  }
}
.hero--center .hero__copy--center .eyebrow {
  display: inline-block;
  margin-bottom: 28px;
}
.hero--center .hero__copy--center h1 {
  font-size: clamp(48px, 8.4vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  max-width: 15ch;
  margin: 0 auto;
}
.hero--center .hero__copy--center h1 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  letter-spacing: -0.04em;
}
/* Orange-accented word "customers" — colored letters plus a bold
   underline that draws left-to-right on reveal and settles into a
   gentle glow pulse. Scoped to the hero headline only. */
.hero--center .hero__copy--center h1 .accent-word {
  position: relative;
  display: inline-block;
  color: hsl(24, 100%, 64%);
  text-shadow:
    0 0 24px hsla(24, 100%, 58%, 0.35),
    0 0 60px hsla(20, 100%, 52%, 0.2);
}
.hero--center .hero__copy--center h1 .accent-word::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.05em;
  height: clamp(4px, 0.48vw, 6px);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    hsl(30, 100%, 68%) 0%,
    hsl(22, 100%, 58%) 50%,
    hsl(14, 100%, 52%) 100%
  );
  box-shadow:
    0 0 14px hsla(24, 100%, 60%, 0.6),
    0 6px 28px hsla(22, 100%, 55%, 0.4),
    0 12px 60px hsla(18, 100%, 50%, 0.22);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  transition:
    transform 1s cubic-bezier(.2,.7,.2,1) .5s,
    opacity .4s ease .5s;
  pointer-events: none;
}
.hero--center .hero__copy--center h1.reveal.in .accent-word::after {
  transform: scaleX(1);
  opacity: 1;
  animation: accentUnderlineBreath 4.8s ease-in-out 1.7s infinite;
}
@keyframes accentUnderlineBreath {
  0%, 100% {
    box-shadow:
      0 0 14px hsla(24, 100%, 60%, 0.5),
      0 6px 28px hsla(22, 100%, 55%, 0.3),
      0 12px 60px hsla(18, 100%, 50%, 0.15);
  }
  50% {
    box-shadow:
      0 0 22px hsla(24, 100%, 66%, 0.85),
      0 10px 44px hsla(22, 100%, 58%, 0.55),
      0 18px 90px hsla(18, 100%, 52%, 0.32);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero--center .hero__copy--center h1 .accent-word::after {
    transition: none;
    transform: scaleX(1);
    opacity: 1;
    animation: none;
  }
}
.hero--center .hero__sub {
  margin: 28px auto 0;
  max-width: 44ch;
  font-size: clamp(17px, 1.3vw, 20px);
  text-align: center;
}
.hero--center .hero__ctas { justify-content: center; margin-top: 44px; }
.hero--center .hero__meta { justify-content: center; margin-top: 40px; }

/* =========================================================
   HERO VIDEO — responsive 16:9 container
   Drop a <source> into the <video> element in markup and it
   will auto-play muted / loop / inline. The wrapper preserves
   aspect ratio across every viewport.
   ========================================================= */

.hero-video {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: clamp(48px, 6vw, 80px);
  margin-bottom: 0;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}

/* Desktop: restore the framed "glass motion" treatment —
   contained width, rounded corners, dark gradient backdrop,
   deep drop shadow, and the ambient bloom behind the video. */
@media (min-width: 900px) {
  .hero-video {
    width: 100%;
    max-width: 1200px;
    margin: clamp(48px, 6vw, 80px) auto 0;
    border-radius: clamp(14px, 1.6vw, 24px);
    background:
      radial-gradient(ellipse 70% 80% at 50% 45%, hsla(var(--accent-h), 70%, 20%, 0.55) 0%, transparent 75%),
      linear-gradient(180deg, #082B2C 0%, #030F10 100%);
    box-shadow:
      0 100px 180px -40px rgba(0, 0, 0, 0.6),
      0 40px 80px -20px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(250, 250, 247, 0.06),
      inset 0 1px 0 rgba(250, 250, 247, 0.05);
  }
  .hero-video::before {
    content: "";
    position: absolute;
    inset: -12% -6%;
    background:
      radial-gradient(ellipse 50% 40% at 50% 55%, hsla(var(--accent-h), 90%, 50%, 0.28) 0%, transparent 72%),
      radial-gradient(ellipse 80% 30% at 50% 100%, hsla(var(--accent-h), 75%, 55%, 0.16) 0%, transparent 72%);
    filter: blur(90px);
    pointer-events: none;
    opacity: 0.8;
    z-index: -1;
    animation: heroVideoGlow 18s ease-in-out infinite alternate;
  }
}
@keyframes heroVideoGlow {
  0%   { opacity: 0.65; transform: scale(1); }
  100% { opacity: 0.9;  transform: scale(1.03); }
}

.hero-video__el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: transparent;
  z-index: 2;
}

/* Placeholder sits behind the <video>.
   When a real <source> starts playing, the <video> element
   covers this entirely — no JS needed. */
.hero-video__placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(250, 250, 247, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(250, 250, 247, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, transparent 70%);
}

.hero-video__placeholder-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, hsla(var(--accent-h), 70%, 60%, 0.7) 0%, hsla(var(--accent-h), 70%, 30%, 0.2) 70%);
  box-shadow:
    0 0 0 1px hsla(var(--accent-h), 50%, 55%, 0.35),
    0 0 30px -2px hsla(var(--accent-h), 90%, 50%, 0.4);
  position: relative;
}
.hero-video__placeholder-mark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent rgba(250, 250, 247, 0.92);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-video__placeholder-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.45);
  font-weight: 600;
}

/* Mobile — slightly taller than the original 16:9 so the
   video reads a touch larger on phones. Desktop untouched. */
@media (max-width: 899px) {
  .hero-video {
    aspect-ratio: 14 / 9;                  /* was 16/9 — ~14% taller */
    margin-top: clamp(40px, 8vw, 64px);    /* original spacing */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
  }
}

/* Smaller phones — original-sized mark/label. */
@media (max-width: 640px) {
  .hero-video__placeholder-mark { width: 48px; height: 48px; }
  .hero-video__placeholder-mark::before { border-width: 8px 0 8px 12px; }
  .hero-video__placeholder-label { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video::before { animation: none !important; }
}

/* ============================================================
   Hero ticker — its own dedicated horizontal band below the
   video. Slightly darker than the hero base so it reads as a
   separate strip while still belonging to the hero palette.
   Full-bleed (edge-to-edge), with hairline rules top + bottom.
   ============================================================ */
.hero-ticker {
  position: relative;
  z-index: 1;
  /* Direct child of .hero-band — sits flush at the bottom. */
  width: 100%;
  margin: 0;
  padding: clamp(36px, 4.5vw, 60px) 0;
  overflow: hidden;

  /* Distinct band background — a darker shade of the hero
     green with a soft teal-tinted glow at the centre, plus
     hairline divider rules top and bottom. */
  background:
    radial-gradient(
      ellipse 60% 100% at 50% 50%,
      hsla(var(--accent-h), 60%, 22%, 0.28) 0%,
      transparent 70%
    ),
    linear-gradient(180deg, #062123 0%, #04181A 100%);
  border-top: 1px solid rgba(250, 250, 247, 0.08);
  border-bottom: 1px solid rgba(250, 250, 247, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(250, 250, 247, 0.03),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);

  /* Soft fades on left/right so phrases enter and exit gently. */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 1) 8%,
    rgba(0, 0, 0, 1) 92%,
    transparent 100%
  );
          mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 1) 8%,
    rgba(0, 0, 0, 1) 92%,
    transparent 100%
  );
}
.hero-ticker__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  white-space: nowrap;
  animation: heroTickerScroll 60s linear infinite;
  will-change: transform;
}
.hero-ticker:hover .hero-ticker__track {
  animation-play-state: paused;
}
.hero-ticker__item {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(250, 250, 247, 0.68);
  text-transform: uppercase;
  flex-shrink: 0;
}
.hero-ticker__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: hsla(var(--accent-h), 65%, 55%, 0.60);
  flex-shrink: 0;
}
@keyframes heroTickerScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 640px) {
  .hero-ticker { padding: 28px 0; margin: 0; }
  .hero-ticker__track { gap: 22px; animation-duration: 45s; }
  .hero-ticker__item { font-size: 12px; letter-spacing: 0.10em; }
  .hero-ticker__dot { width: 4px; height: 4px; }
}

/* When the hero is followed by the ticker band, tighten its
   bottom padding so the ticker sits close beneath the video
   and reads as the closing band of the section. */
.hero:has(+ .hero-ticker) {
  padding-bottom: clamp(20px, 2.5vw, 32px) !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-ticker__track { animation: none !important; }
}
