/* Homepage hero slider — full-width darkened photography, one message per slide.
   Prefix: gx-hero-*. Loaded after gx.css, so it overrides the old light hero. */

.gx-hero-slider {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(540px, 66vh, 680px);
  padding: 56px 0 30px;
  overflow: hidden;
  background: #060e1c;            /* shows through before the first photo paints */
  color: #fff;
}

/* The page's real <h1>. Fixed text (slide headlines are all level 2), so the
   document outline is identical whichever slide is dealt first. */
.gx-hero-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- photos -- */

.gx-hero-stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.gx-hero-slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0;
  transition: opacity 1000ms ease;
  will-change: opacity;
}
.gx-hero-slide.is-on { opacity: 1; }

.gx-hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
  transform: scale(1.02);
}
/* slow push-in on whichever photo is showing */
.gx-hero-slide.is-on img { animation: gx-hero-drift 11s ease-out forwards; }

@keyframes gx-hero-drift {
  from { transform: scale(1.02); }
  to   { transform: scale(1.11); }
}

/* The darkening. Heaviest on the left under the copy, easing off to the right
   so the photograph still reads as a photograph. The second layer lifts the
   bottom edge so the proof strip and controls stay legible over a bright image. */
.gx-hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(4, 11, 24, .94) 0%,
      rgba(4, 11, 24, .90) 26%,
      rgba(4, 11, 24, .74) 48%,
      rgba(4, 11, 24, .52) 70%,
      rgba(4, 11, 24, .40) 100%),
    linear-gradient(180deg,
      rgba(4, 11, 24, .55) 0%,
      rgba(4, 11, 24, .10) 34%,
      rgba(4, 11, 24, .22) 72%,
      rgba(4, 11, 24, .70) 100%);
}

/* a soft light sweep across the photo on each change */
.gx-hero-sheen {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(104deg, transparent 38%, rgba(255, 255, 255, .13) 50%, transparent 62%);
  transform: translateX(-115%);
  opacity: 0;
}
.gx-hero-slider.is-changing .gx-hero-sheen { animation: gx-hero-sweep 1000ms ease-out; }
@keyframes gx-hero-sweep {
  0%   { transform: translateX(-115%); opacity: 0; }
  45%  { opacity: 1; }
  100% { transform: translateX(115%); opacity: 0; }
}

/* --------------------------------------------------------------- content -- */

.gx-hero-inner { position: relative; z-index: 3; }

/* Panels stack in one grid cell so the tallest sets the height and the others
   crossfade in place — no jump when a slide has a longer headline. */
.gx-hero-panels { display: grid; }
.gx-hero-panel {
  grid-area: 1 / 1;
  max-width: 640px;
  opacity: 0; visibility: hidden;
  transition: opacity 520ms ease, visibility 0s linear 520ms;
}
.gx-hero-panel.is-on {
  opacity: 1; visibility: visible;
  transition: opacity 520ms ease 140ms, visibility 0s;
}

/* each line arrives a beat after the one above it */
.gx-hero-panel > * {
  transform: translateY(14px);
  opacity: 0;
  transition: transform 620ms cubic-bezier(.22, .68, .3, 1), opacity 620ms ease;
}
.gx-hero-panel.is-on > * { transform: none; opacity: 1; }
.gx-hero-panel.is-on > :nth-child(1) { transition-delay: 180ms; }
.gx-hero-panel.is-on > :nth-child(2) { transition-delay: 280ms; }
.gx-hero-panel.is-on > :nth-child(3) { transition-delay: 370ms; }
.gx-hero-panel.is-on > :nth-child(4) { transition-delay: 450ms; }

.gx-hero-kicker {
  margin: 0 0 14px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #7fb4ff;
}

.gx-hero-title {
  margin: 0 0 18px;
  font-size: clamp(38px, 5.1vw, 66px);
  line-height: 1.04;
  letter-spacing: -.028em;
  font-weight: 900;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.gx-hero-title span { color: #64a6ff; }

.gx-hero-sub {
  margin: 0 0 30px;
  max-width: 540px;
  font-size: 17px; line-height: 1.6;
  color: rgba(255, 255, 255, .82);
}

.gx-hero-btns { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.gx-btn-blue {
  background: #1477ff; border: 1.5px solid #1477ff; color: #fff;
  box-shadow: 0 10px 28px rgba(20, 119, 255, .34);
}
.gx-btn-blue:hover { background: #0f63db; border-color: #0f63db; color: #fff; }

.gx-btn-ghost {
  background: rgba(255, 255, 255, .08); color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .34);
  backdrop-filter: blur(6px);
}
.gx-btn-ghost:hover { background: rgba(255, 255, 255, .17); border-color: rgba(255, 255, 255, .6); color: #fff; }

/* ------------------------------------------------------ proof + controls -- */

.gx-hero-proof {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 14px 30px;
}
.gx-hero-proof li {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600;
  color: rgba(255, 255, 255, .78);
}
.gx-hero-proof svg { color: #64a6ff; flex: none; }

.gx-hero-ui { display: flex; align-items: center; gap: 14px; margin-top: 34px; }

.gx-hero-arrow {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; padding: 0; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08); color: #fff;
  backdrop-filter: blur(6px);
  transition: background .15s, border-color .15s;
}
.gx-hero-arrow:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .6); }
.gx-hero-arrow:focus-visible { outline: 2px solid #64a6ff; outline-offset: 2px; }

/* "07 / 53" — fifty-odd slides would never fit as dots, so the position is a
   number and the time left on the current slide is one thin bar. */
.gx-hero-count {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
  font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .55);
  min-width: 62px;
}
.gx-hero-count b { font-size: 15px; color: #fff; }
.gx-hero-count i { font-style: normal; opacity: .5; }

.gx-hero-bar {
  position: relative; overflow: hidden; display: block;
  width: clamp(90px, 16vw, 190px); height: 3px; border-radius: 2px;
  background: rgba(255, 255, 255, .26);
}
.gx-hero-bar i {
  position: absolute; inset: 0; display: block;
  background: #64a6ff;
  transform: scaleX(0); transform-origin: left;
  animation: gx-hero-tick var(--hold, 5600ms) linear forwards;
}
@keyframes gx-hero-tick { to { transform: scaleX(1); } }
.gx-hero-slider.is-paused .gx-hero-bar i { animation-play-state: paused; }

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 900px) {
  .gx-hero-slider { min-height: 0; padding: 44px 0 26px; }
  .gx-hero-panel { max-width: none; }
  .gx-hero-sub { font-size: 16px; margin-bottom: 26px; }
  .gx-hero-proof { margin-top: 30px; gap: 12px 22px; }
  .gx-hero-proof li { font-size: 13px; }
  /* the photo has to carry text across its whole width once the copy is full-bleed */
  .gx-hero-scrim {
    background:
      linear-gradient(180deg,
        rgba(4, 11, 24, .82) 0%,
        rgba(4, 11, 24, .74) 45%,
        rgba(4, 11, 24, .88) 100%),
      linear-gradient(90deg, rgba(4, 11, 24, .5) 0%, rgba(4, 11, 24, .3) 100%);
  }
}

@media (max-width: 600px) {
  .gx-hero-btns .gx-btn { width: 100%; justify-content: center; }
  .gx-hero-arrow { display: none; }
  .gx-hero-ui { justify-content: center; margin-top: 28px; gap: 12px; }
  .gx-hero-bar { width: clamp(90px, 40vw, 200px); }
}

@media (prefers-reduced-motion: reduce) {
  .gx-hero-slide { transition: opacity 200ms linear; }
  .gx-hero-slide.is-on img { animation: none; transform: none; }
  .gx-hero-panel > * { transition: none; transform: none; }
  .gx-hero-slider.is-changing .gx-hero-sheen { animation: none; }
  .gx-hero-bar i { animation: none; transform: scaleX(1); }
}
