/* ==========================================================================
   VANTIX SYSTEMS — pages/home.css
   Home: greeting hero that reveals "We Do" and three service cards on scroll.
   Earlier sections are parked in /_parked.
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 1rem) 0 3rem;
  overflow: hidden;
  background: #ffffff;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.hero__vanta {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__vanta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* soft clearing behind the text so it stays easy to read */
  background: radial-gradient(48% 36% at 50% 50%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 100%);
}
.hero__vanta + .hero__canvas {
  display: none; /* dot-field fallback, used only when WebGL effect is unavailable */
}
.hero.has-fallback .hero__canvas {
  display: block;
}

.hero__stage {
  width: min(var(--max), 100% - var(--gutter) * 2);
  text-align: center;
  will-change: transform;
}

.hero__greeting {
  font-size: clamp(2.25rem, min(6.25vw, 13vh), 7.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

/* "Hi," keeps the brand blue; the other words fill in from grey */
.split-word__inner.is-accent {
  color: var(--blue);
}

.hero__more {
  margin-top: clamp(0.75rem, 2vh, 1.5rem);
}

/* "We Do" and the changing line: large, like the greeting above them */
.hero__do {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, min(5vw, 10.5vh), 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero__sub {
  min-height: 1.2em; /* keeps the layout still while the words change */
  margin-top: 0.15em;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, min(4.6vw, 9.5vh), 5.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--blue);
}

/* ---------- Three cards ---------- */
.hero__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(1.75rem, 4vw, 3rem);
  text-align: left;
}

.hero__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  min-height: 12.5rem;
  padding: 1.25rem 1.4rem 1.5rem;
  color: var(--white);
  border: 1px solid transparent;
  border-radius: 10px;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.hero__card:hover,
.hero__card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px -24px rgba(16, 31, 56, 0.55);
}

.hero__card--blue {
  background: var(--blue-600);
}
.hero__card--light {
  color: var(--ink);
  background: var(--bg);
  border-color: var(--line);
}
.hero__card--navy {
  background: var(--navy);
}

.hero__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero__card-index {
  font-size: 0.8125rem;
  font-weight: 600;
  opacity: 0.7;
}

.hero__card-arrow {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.8;
  transition: background-color 0.4s ease, color 0.4s ease, opacity 0.4s ease;
}

.hero__card-arrow svg {
  width: 0.95rem;
  height: 0.95rem;
}

.hero__card:hover .hero__card-arrow,
.hero__card:focus-visible .hero__card-arrow {
  opacity: 1;
  color: var(--ink);
  background: var(--white);
}

.hero__card--light:hover .hero__card-arrow,
.hero__card--light:focus-visible .hero__card-arrow {
  color: var(--white);
  background: var(--ink);
}

.hero__card-title {
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  line-height: 1.15;
}

.hero__card-text {
  max-width: 21rem;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  opacity: 0.8;
}

/* ---------- Scroll cue ---------- */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero__cue::after {
  content: "";
  width: 1px;
  height: 2.25rem;
  background: linear-gradient(to bottom, var(--slate), transparent);
}

/* ---------- Responsive ---------- */
@media (max-width: 62rem) {
  .hero__card {
    min-height: 12.5rem; /* same card height as desktop */
  }
}

@media (max-width: 47.9375rem) {
  .hero__cards {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .hero__cue {
    display: none;
  }
  /* The pinned hero is exactly one screen; the content rises through it on scroll */
  html:not(.no-motion) .hero {
    height: 100svh;
    min-height: 0;
    align-items: start;
    padding-bottom: 0;
  }
}

/* Static layout when motion is reduced: no pinning, everything visible */
.no-motion .hero {
  padding-bottom: 5rem;
}
.no-motion .hero__cue {
  display: none;
}