/* ============ Hero slider v2 — cinematic, full-bleed ============
   Dark-immersive in both themes by design. No tab-style navigation:
   minimal hairline progress segments + round arrow/pause controls. */

.hero-slider {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 640px;
  min-height: min(94svh, 1020px);
  overflow: clip;
  background: #0a0e1a;
  isolation: isolate;
}

/* --- Background: ambient video loop (static art fallback via poster) --- */
/* --- Backgrounds: stacked art, crossfade + slow Ken Burns drift --- */
.hs-bg, .hs-scrim { position: absolute; inset: 0; }
.hs-bg { z-index: 0; }
.hs-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1.4s cubic-bezier(.4, 0, .2, 1);
  will-change: opacity, transform;
}
.hs-bg img.is-active {
  opacity: 1;
  animation: hs-kenburns 8.5s cubic-bezier(.2, .6, .3, 1) forwards;
}
@keyframes hs-kenburns {
  from { transform: scale(1.03); }
  to { transform: scale(1.11); }
}
.hs-scrim {
  z-index: 1;
  background:
    radial-gradient(60% 50% at 72% 18%, rgba(245, 183, 66, .10), transparent 60%),
    linear-gradient(100deg, rgba(8, 11, 22, .88) 0%, rgba(8, 11, 22, .62) 34%, rgba(8, 11, 22, .18) 62%, rgba(8, 11, 22, .32) 100%),
    linear-gradient(to top, rgba(8, 11, 22, .82) 0%, rgba(8, 11, 22, .25) 34%, transparent 60%);
}

/* --- Content --- */
.hs-content {
  position: relative; z-index: 2;
  width: 100%;
  padding-bottom: clamp(6.5rem, 12vh, 8.5rem);
  color: #f2f5fe;
}
.hs-anim > * { animation: hs-rise .85s cubic-bezier(.2, .7, .2, 1) both; }
.hs-anim > *:nth-child(1) { animation-delay: .15s; }

/* Mobile: restore the .container side gutter the width override removes */
@media (max-width: 640px) {
  .hs-content { width: min(100% - 2.5rem, var(--container)); }
}
.hs-anim > *:nth-child(2) { animation-delay: .24s; }
.hs-anim > *:nth-child(3) { animation-delay: .34s; }
.hs-anim > *:nth-child(4) { animation-delay: .44s; }
@keyframes hs-rise {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hs-kicker {
  display: flex; align-items: center; gap: 1rem;
  margin: 0 0 1.4rem;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
}
.hs-eyebrow { color: rgba(242, 245, 254, .78); }
.hs-title {
  margin: 0 0 1.25rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.02;
  font-size: clamp(2.9rem, 6.2vw, 5.4rem);
  color: #fff;
  text-wrap: balance;
}
.hs-sub {
  margin: 0 0 2.25rem;
  max-width: 46rem;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  color: rgba(226, 232, 248, .88);
}
.hs-ctas { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Lime text link: the secondary CTA, glowing softly to merge with the backdrop */
.btn-ghost-light {
  border: 0;
  background: none;
  padding: var(--btn-pad-y) 0;
  color: #c8f33d !important;
  text-shadow: 0 0 22px rgba(200, 243, 61, .38), 0 2px 10px rgba(0, 0, 0, .65);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.btn-ghost-light:hover {
  border: 0;
  background: none;
  color: #dcff7a !important;
  transform: none;
  text-shadow: 0 0 32px rgba(200, 243, 61, .6), 0 2px 10px rgba(0, 0, 0, .65);
}

/* Keep the lime tile CTA legible on the dark hero in both themes */
.hero-slider .tile-cta { color: #f2f5fe !important; }
.hero-slider .tile-cta:hover .txt { color: #c8f33d; }

/* --- Minimal controls: slider segments centered on the bottom edge,
       round arrow/pause buttons bottom-right --- */
.hs-controls {
  position: absolute; z-index: 3;
  left: clamp(1.25rem, 4vw, 2rem);
  right: clamp(1.25rem, 4vw, 2rem);
  bottom: clamp(1.6rem, 4vh, 2.6rem);
  display: flex; align-items: center; justify-content: flex-end; gap: 1.1rem;
}
.hs-segs {
  position: absolute;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; gap: .55rem;
}
.hs-seg {
  width: 2.9rem; height: 22px;
  padding: 10px 0;
  background: none; border: 0; cursor: pointer;
}
.hs-seg > i {
  display: block; height: 2px; width: 100%;
  background: rgba(255, 255, 255, .28);
  border-radius: 2px; overflow: hidden;
  position: relative;
}
.hs-seg > i::after {
  content: ""; position: absolute; inset: 0;
  width: 0; background: #c8f33d; border-radius: 2px;
}
.hs-seg.is-seen > i::after { width: 100%; }
/* Fill timer runs only while autoplay is actually live */
.hs-autoplay .hs-seg.is-active > i::after {
  animation: hs-fill 7s linear forwards;
}
.hs-autoplay.hs-paused .hs-seg.is-active > i::after {
  animation-play-state: paused;
}
@keyframes hs-fill { from { width: 0; } to { width: 100%; } }
.hs-seg:hover > i { background: rgba(255, 255, 255, .5); }
.hs-seg:focus-visible { outline: 2px solid #c8f33d; outline-offset: 4px; border-radius: 4px; }

.hs-btns {
  display: flex; gap: .6rem;
}
.hs-round {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255,255, .28);
  background: rgba(10, 14, 26, .45); color: #f2f5fe;
  cursor: pointer; backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.hs-round:hover { border-color: #c8f33d; background: rgba(10, 14, 26, .7); transform: translateY(-1px); }
.hs-round svg { width: 1.05rem; height: 1.05rem; }

/* --- Responsive --- */
@media (max-width: 899px) {
  .hs-btns { display: none; }
  .hs-content { padding-bottom: clamp(5.5rem, 10vh, 7rem); }
  .hs-title { font-size: clamp(2.4rem, 9.5vw, 3.4rem); }
  .hs-seg { width: 2.2rem; }
}

/* --- Reduced motion: still images, no autoplay fill --- */
@media (prefers-reduced-motion: reduce) {
  .hs-bg img { transition: none; }
  .hs-bg img.is-active { animation: none; transform: none; }
  .hs-anim > * { animation: none; }
  .hs-autoplay .hs-seg.is-active > i::after { animation: none; width: 100%; }
}

/* --- No-JS: first slide only, controls hidden --- */
.no-js .hs-bg img:not(:first-child) { display: none; }
.no-js .hs-bg img:first-child { opacity: 1; }
.no-js .hs-controls { display: none; }
.no-js .hs-anim > * { animation: none; }
