/* Horizontal-scroll industries section (homepage) */

/* Extra clearance above/below this heading so the fixed header never overlaps
   the text at a natural scroll rest — this section sits between the hero and
   the pinned hscroll section, so it needs more room than a standard .section. */
.hscroll-lead {
  padding-top: 110px;
  padding-bottom: 36px;
}

@media (max-width: 900px) {
  .hscroll-lead {
    padding-top: 100px;
    padding-bottom: 32px;
  }
}

.hscroll-section {
  position: relative;
  height: 300vh;
}

/* The clip boundary lives on this stationary sticky wrapper. It must never be
   the element that gets transformed — if it were, the clip window would slide
   along with the content instead of staying fixed at the viewport. */
.hscroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.hscroll-track {
  display: flex;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  will-change: transform;
}

.hscroll-panel {
  position: relative;
  flex: 0 0 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hscroll-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 8, 11, 0.82) 0%, rgba(10, 8, 11, 0.35) 40%, rgba(10, 8, 11, 0.5) 100%);
}

.hscroll-copy {
  position: relative;
  z-index: 1;
  color: var(--bg);
  padding: 0 clamp(24px, 6vw, 80px) 80px;
  max-width: 820px;
  /* .hscroll-panel is a flex row, and a flex item's default min-width:auto
     falls back to its content's min-content size — for a long unbroken
     token (no space to wrap on) that can be wider than the panel itself,
     silently overflowing since the panel also clips with overflow:hidden. */
  min-width: 0;
}

.hscroll-copy h2 {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--bg);
  margin: 0;
  white-space: nowrap;
}

.hscroll-pitch {
  font-family: var(--font-subtext);
  margin: 18px 0 0;
  max-width: 34ch;
  font-size: 19px;
  line-height: 1.5;
  color: var(--bg);
}

.hscroll-roles {
  font-family: var(--font-subtext);
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(250, 248, 244, 0.7);
}

/* Nudges the visitor that this section pans sideways as they keep scrolling down.
   Fades once script.js detects they've moved past the first panel. */
.hscroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.hscroll-cue.hide { opacity: 0; }

.hscroll-cue .chevron {
  font-size: 22px;
  line-height: 1;
  animation: cueBounce 1.8s ease-in-out infinite;
}

/* Plain-text statement directly below the three vertical cards — no card
   styling, matching the site's regular body-copy treatment. */
.hscroll-followup {
  max-width: 62ch;
  font-family: var(--font-subtext);
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink);
}

@media (max-width: 900px) {
  .hscroll-section {
    height: auto;
  }

  .hscroll-sticky {
    position: static;
    height: auto;
    overflow: visible;
  }

  .hscroll-track {
    height: auto;
    flex-direction: column;
    transform: none !important;
  }

  .hscroll-panel {
    flex: none;
    height: 80vh;
  }

  .hscroll-cue { display: none; }

  .hscroll-copy h2 {
    white-space: normal;
  }

  .hscroll-pitch {
    max-width: none;
  }
}
