/* Home horizon hero carousel (from hero 2.1). Scoped to .page-home only. */

/* Home shell (formerly index.html inline critical CSS) */
body.page-home {
  margin: 0;
  background: #f0f4f8;
}

/* Header on poster → css/site-header.css */

/* Shared base — concept 2.x carousel posters (slide copy). */

.page-home .industrial-hero.hero-carousel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #05080b;
  align-items: stretch;
  margin-top: calc(-1 * var(--rc-header-home-row-h, 88px));
  min-height: calc(100vh + var(--rc-header-home-row-h, 88px));
}

/* Same hero carousel look in dark + light body theme (light palette as source of truth). */
.page-home .industrial-hero.hero-carousel.hero-carousel--horizon {
  --text-main: #0f172a;
  --text-muted: #475569;
  --cyan-primary: #008f80;
  --blue-deep: #0044b3;
  --blue-navy: #0a5fb0;
  --carousel-cta-gap: 32px;
  --carousel-copy-height: clamp(28rem, 55vh, 38rem);
  background-color: #05080b;
  background-image: none;
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-scroll {
  color: rgba(15, 23, 42, 0.38);
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-scroll .line {
  background: linear-gradient(90deg, transparent, rgba(0, 143, 128, 0.45));
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .horizon-index {
  --hi-nav-idle: color-mix(in srgb, #475569 92%, transparent);
  --hi-nav-track: color-mix(in srgb, #0a5fb0 14%, transparent);
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon:not(.is-home-slide) .horizon-index {
  --hi-nav-idle: color-mix(in srgb, #f3f6f9 45%, transparent);
  --hi-nav-track: color-mix(in srgb, #f3f6f9 12%, transparent);
}

.page-home .industrial-hero.hero-carousel .hero-carousel-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-home .industrial-hero.hero-carousel .hero-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .industrial-hero.hero-carousel .hero-carousel-slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.page-home .industrial-hero.hero-carousel .hero-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--slide-focus, 50% 42%);
}

.page-home .industrial-hero.hero-carousel .hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 8, 11, 0.32) 0%, rgba(5, 8, 11, 0.12) 20%, rgba(5, 8, 11, 0.03) 36%, transparent 46%),
    linear-gradient(180deg, rgba(5, 8, 11, 0.2) 0%, transparent 14%, transparent 55%, rgba(5, 8, 11, 0.32) 100%);
}

/* Photo scrim from the bottom-right corner, covering the whole 01–03 index. */
.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-shade::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(640px, 52vw);
  height: min(420px, 48vh);
  pointer-events: none;
  background: radial-gradient(
    ellipse 100% 100% at 100% 100%,
    rgba(5, 8, 11, 0.42) 0%,
    rgba(5, 8, 11, 0.26) 48%,
    rgba(5, 8, 11, 0.12) 68%,
    transparent 86%
  );
}

/* Optional charcoal left-band shade: add hero-carousel--shade-navy-test on the hero section */
.page-home .industrial-hero.hero-carousel.hero-carousel--shade-navy-test .hero-shade {
  background: linear-gradient(
    90deg,
    rgba(5, 8, 11, 0.72) 0%,
    rgba(5, 8, 11, 0.4) 22%,
    rgba(5, 8, 11, 0.07) 38%,
    transparent 48%
  );
}

.page-home .industrial-hero.hero-carousel .hero-carousel-copy {
  text-shadow: 0 2px 32px rgba(5, 8, 11, 0.45);
}

.page-home .industrial-hero.hero-carousel .hero-veil,
.page-home .industrial-hero.hero-carousel .hero-canvas-container,
.page-home .industrial-hero.hero-carousel .hero-legend {
  display: none;
}

.page-home .industrial-hero.hero-carousel .hero-carousel-stage {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: calc(100vh + var(--rc-header-home-row-h, 88px));
  padding: 152px 0 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Desktop: one viewport tall (no +72 underlap) — closer to 16:9 poster crop */
@media (min-width: 1024px) {
  .page-home .industrial-hero.hero-carousel {
    margin-top: 0;
    min-height: 100vh;
  }

  .page-home .industrial-hero.hero-carousel .hero-carousel-stage {
    min-height: 100vh;
  }
}

.page-home .industrial-hero.hero-carousel .hero-carousel-copy {
  max-width: min(640px, 54%);
}

/* Copy box sized to slide 01 — posters 02/03 anchor to the same frame */
.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-copy {
  position: relative;
  width: 100%;
  max-width: min(820px, 94%);
  height: var(--carousel-copy-height);
  min-height: var(--carousel-copy-height);
  flex: 0 0 auto;
  text-shadow: none;
}

.page-home .industrial-hero.hero-carousel .hero-carousel-panel {
  display: none;
}

.page-home .industrial-hero.hero-carousel .hero-carousel-panel.is-active {
  display: block;
  animation: carouselCopyIn 0.65s ease;
}

@keyframes carouselCopyIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .industrial-hero.hero-carousel .hero-carousel-panel.is-active {
    animation: none;
  }
}

.page-home .industrial-hero.hero-carousel .hero-carousel-kicker {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 246, 249, 0.72);
}

.page-home .industrial-hero.hero-carousel .hero-carousel-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fff;
}

/* Slide 03 — lighter poster title */
.page-home .industrial-hero.hero-carousel .hero-carousel-copy > .hero-carousel-panel:last-of-type .hero-carousel-title {
  margin-top: 0;
  font-size: clamp(40px, 6.5vw, 88px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.page-home .industrial-hero.hero-carousel .hero-carousel-route {
  margin: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 246, 249, 0.55);
}

/* Slide 03 route only */
.page-home .industrial-hero.hero-carousel .hero-carousel-copy > .hero-carousel-panel:last-of-type .hero-carousel-route {
  font-size: clamp(10px, 0.95vw, 13px);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.page-home .industrial-hero.hero-carousel .hero-carousel-route__sep {
  margin: 0 0.35em;
  color: var(--cyan-primary);
}

.page-home .industrial-hero.hero-carousel .hero-carousel-cta {
  margin-top: var(--carousel-cta-gap, 32px);
}

.page-home .industrial-hero.hero-carousel .hero-carousel-cta .btn {
  min-width: 0;
}

.page-home .industrial-hero.hero-carousel .hero-carousel-cta .btn-primary.industrial-btn {
  background: var(--blue-navy);
  background-image: none;
  border-color: var(--blue-navy);
  color: #fff;
  box-shadow: none;
}

.page-home .industrial-hero.hero-carousel .hero-carousel-cta .btn-primary.industrial-btn:hover {
  background: var(--cyan-primary);
  border-color: var(--cyan-primary);
  color: var(--black-void, #05080b);
  box-shadow: none;
}

/* Slide 03 — inverted CTA colors */
.page-home .industrial-hero.hero-carousel .hero-carousel-copy > .hero-carousel-panel:last-of-type .hero-carousel-cta .btn-primary.industrial-btn {
  background: var(--cyan-primary);
  border-color: var(--cyan-primary);
  color: var(--black-void, #05080b);
}

.page-home .industrial-hero.hero-carousel .hero-carousel-copy > .hero-carousel-panel:last-of-type .hero-carousel-cta .btn-primary.industrial-btn:hover {
  background: var(--blue-navy);
  border-color: var(--blue-navy);
  color: #fff;
}

.page-home .industrial-hero.hero-carousel .hero-scroll {
  left: 36px;
  transform: none;
  bottom: 28px;
  z-index: 4;
}

.page-home .industrial-hero.hero-carousel .hero-carousel-controls {
  position: absolute;
  z-index: 4;
}

.page-home .industrial-hero.hero-carousel .hero-carousel-controls button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: inherit;
}

.page-home .industrial-hero.hero-carousel .hero-carousel-controls button:focus-visible {
  outline: 2px solid var(--cyan-primary);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .page-home .industrial-hero.hero-carousel .hero-carousel-copy {
    max-width: 100%;
  }

  .page-home .industrial-hero.hero-carousel .hero-shade {
    background:
      linear-gradient(180deg, rgba(5, 8, 11, 0.18) 0%, rgba(5, 8, 11, 0.08) 38%, rgba(5, 8, 11, 0.38) 100%);
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--shade-navy-test .hero-shade {
    background: linear-gradient(
      90deg,
      rgba(5, 8, 11, 0.68) 0%,
      rgba(5, 8, 11, 0.32) 30%,
      rgba(5, 8, 11, 0.06) 48%,
      transparent 62%
    );
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon {
    --carousel-copy-height: clamp(20rem, 48vh, 30rem);
  }
}

/* 2.1 — Horizon index: horizon-line wipe + numeric index (bottom right). */

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel.is-active {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  animation: none;
}

/* Slide 01 — same copy + light-theme home hero typography (slides 02–03 unchanged). */
.page-home .industrial-hero.hero-carousel.hero-carousel--horizon.is-home-slide .hero-shade {
  background: linear-gradient(
    90deg,
    rgba(240, 244, 248, 0.78) 0%,
    rgba(240, 244, 248, 0.55) 30%,
    rgba(240, 244, 248, 0.22) 52%,
    rgba(240, 244, 248, 0) 70%
  );
}

.page-home .industrial-hero.hero-carousel.hero-carousel--shade-navy-test.is-home-slide .hero-shade {
  background: linear-gradient(
    90deg,
    rgba(5, 8, 11, 0.72) 0%,
    rgba(5, 8, 11, 0.4) 22%,
    rgba(5, 8, 11, 0.07) 38%,
    transparent 48%
  );
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero {
  width: 100%;
  padding-bottom: 0;
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-enterprise-panel {
  position: static;
  margin-top: 1.25rem;
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .saf-line-top,
.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-mega-impact-bridge {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  animation: none !important;
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .saf-line-top {
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  text-align: left;
  white-space: nowrap;
  font-size: clamp(24px, 6.2vw, 96px);
  letter-spacing: -0.02em;
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-mega-impact-bridge {
  align-self: flex-start;
  width: 100%;
  text-align: left;
  font-size: clamp(18px, 2.8vw, 36px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  line-height: 1.2;
  margin: 0.15em 0;
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-mega-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3em;
  width: 100%;
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-mega-row .saf-line-top {
  width: auto;
}

@media (min-width: 768px) {
  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-mega-space {
    display: inline-block;
    width: 0.45em;
    white-space: pre;
  }

  /* Desktop: three lines — “From Innovation” / “to” / “Industrial Impact” (one phrase per line) */
  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-mega-row {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.5em;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-mega-row--impact {
    align-items: baseline;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-mega-row .industrial-masked-text,
  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-mega-row .saf-line-top {
    display: inline-block;
    white-space: nowrap;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-mega-word--inset,
  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-mega-word--inset-end {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-top: 0;
    align-self: auto;
    text-align: left;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-mega-impact-bridge {
    width: auto;
    margin: 0.15em 0;
  }
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-mega-title {
  margin-bottom: 0;
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-sub {
  position: static;
  right: auto;
  left: auto;
  bottom: auto;
  z-index: 6;
  margin: clamp(2.75rem, 6vh, 4.25rem) 0 0;
  padding: 16px 0 20px;
  width: 100%;
  max-width: min(100%, 36rem);
  text-align: left;
  align-self: flex-start;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: clamp(14px, 1.45vw, 18px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.45;
  text-transform: none;
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-sub__accent {
  background: linear-gradient(180deg, var(--cyan-primary) 0%, var(--blue-deep) 100%);
  box-shadow: 0 0 20px color-mix(in srgb, var(--cyan-primary) 38%, transparent);
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-sub__inner {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  padding-bottom: 14px;
  border-bottom: none;
  background: none;
  color: var(--text-main);
}

/* Soft cyan bloom from the accent — no box, reads on light poster */
.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-sub__inner::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 0;
  width: 100%;
  max-width: 440px;
  height: 130%;
  transform: translateY(-50%);
  pointer-events: none;
  background: radial-gradient(
    ellipse 80% 100% at 0% 50%,
    color-mix(in srgb, var(--cyan-primary) 14%, transparent) 0%,
    color-mix(in srgb, var(--blue-deep) 6%, transparent) 38%,
    transparent 62%
  );
}

/* Gradient rule under copy */
.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-sub__inner::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(
    90deg,
    var(--cyan-primary) 0%,
    color-mix(in srgb, var(--blue-deep) 90%, var(--cyan-primary)) 40%,
    color-mix(in srgb, var(--blue-deep) 45%, transparent) 68%,
    transparent 100%
  );
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-enterprise-actions {
  position: static;
  right: auto;
  left: auto;
  bottom: auto;
  z-index: 6;
  margin: clamp(2.5rem, 6.5vh, 3.75rem) 0 0 !important;
  justify-content: flex-start;
  align-self: flex-start;
  flex-wrap: wrap;
  width: 100%;
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-enterprise-actions .btn-primary.btn-large {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--cyan-primary) 100%);
  border: none;
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 2px 6px rgba(15, 23, 42, 0.16) !important;
  transform: none;
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-enterprise-actions .btn-primary.btn-large:hover {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--cyan-primary) 100%);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 3px 8px rgba(15, 23, 42, 0.14) !important;
  transform: none;
  filter: brightness(1.04);
}


@media (max-width: 768px) {
  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-sub {
    margin-top: clamp(2rem, 5vh, 3.25rem) !important;
    padding: 14px 0 18px;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-enterprise-actions {
    margin-top: 1.75rem !important;
    margin-bottom: 0 !important;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-sub__inner {
    justify-content: flex-start;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .saf-line-top {
    white-space: normal;
    text-align: left;
    align-self: flex-start;
  }
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-slide.is-entering {
  animation: carouselHorizonWipe 1.1s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-slide.is-leaving {
  animation: carouselHorizonFade 1.1s ease forwards;
}

@keyframes carouselHorizonWipe {
  from {
    clip-path: inset(58% 0 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes carouselHorizonFade {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-slide.is-entering,
  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-slide.is-leaving {
    animation: none;
  }
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .horizon-index {
  position: absolute;
  right: 24px;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  width: min(248px, 55vw);
  max-width: none;
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .horizon-index button {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  padding: 6px 0 0;
  border: none;
  transition: color 0.35s ease;
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .horizon-index button:not(.is-active) {
  color: var(--hi-nav-idle);
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .horizon-index button:not(.is-active) .hi-num,
.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .horizon-index button:not(.is-active) .hi-label {
  color: inherit;
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .horizon-index .hi-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px;
  align-items: baseline;
  width: 100%;
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .horizon-index .hi-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  transition: color 0.35s ease;
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .horizon-index .hi-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  line-height: 1.15;
  transition: color 0.35s ease;
}

/* Active slide only: full button accent — 01 blue-navy, 02 cyan-primary, 03 blue-navy */
.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .horizon-index button.is-active[data-goto='0'],
.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .horizon-index button.is-active[data-goto='2'] {
  color: var(--blue-navy);
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .horizon-index button.is-active[data-goto='1'] {
  color: var(--cyan-primary);
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .horizon-index button.is-active .hi-num,
.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .horizon-index button.is-active .hi-label {
  color: inherit;
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .horizon-index .hi-progress {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--hi-nav-track);
  overflow: hidden;
  border-radius: 1px;
}

.page-home .industrial-hero.hero-carousel.hero-carousel--horizon .horizon-index .hi-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: currentColor;
}

@keyframes horizonProgress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .horizon-index button.is-active .hi-progress span {
    animation: none;
    width: 100%;
  }
}

/* Mobile (≤767px): hero fills the visible screen. Header is fixed, so no negative margin. */
@media (max-width: 767px) {
  .page-home .industrial-hero.hero-carousel {
    margin-top: 0;
    box-sizing: border-box;
    overflow: hidden;
    align-items: stretch;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    min-height: 100svh;
    min-height: 100dvh;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100svh;
    max-height: 100dvh;
  }

  .page-home .industrial-hero.hero-carousel .hero-carousel-stage {
    flex: 1 1 auto;
    align-self: stretch;
    min-height: 0 !important;
    max-height: 100%;
    overflow: hidden;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon {
    --hero-mobile-nav-bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    --carousel-copy-height: auto;
    --carousel-cta-gap: 20px;
  }

  .page-home .industrial-hero.hero-carousel .hero-carousel-stage {
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    min-height: 0;
    height: 100%;
    padding-top: calc(var(--rc-header-mobile-row-h, 72px) + 8px + env(safe-area-inset-top, 0px));
    padding-bottom: 0;
    padding-left: var(--section-pad-x);
    padding-right: var(--section-pad-x);
  }

  .page-home .industrial-hero.hero-carousel .hero-carousel-copy,
  .page-home .industrial-hero.hero-carousel .hero-carousel-panel--home-hero .hero-text-col,
  .page-home .industrial-hero.hero-carousel .hero-carousel-panel--home-hero .hero-enterprise-panel {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-copy {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    height: auto !important;
    min-height: 0 !important;
    max-height: none;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel {
    position: relative;
    bottom: auto;
    left: auto;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel.is-active {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    min-height: 0;
  }

  /* Poster nav (01–03) pinned to bottom of hero (30px inset) */
  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .horizon-index {
    position: relative;
    z-index: 4;
    flex-shrink: 0;
    margin-top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    align-items: stretch;
    align-self: stretch;
    gap: 10px;
    padding-bottom: var(--hero-mobile-nav-bottom);
    box-sizing: border-box;
  }

  .page-home .industrial-hero.hero-carousel .hero-scroll {
    display: none;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .horizon-index .hi-label {
    font-size: 13px;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-mega-title {
    margin: 0.5rem 0 0;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-enterprise-panel {
    margin-top: 0.5rem;
  }

  /* Slide 01 — staggered headline (From / Innovation / to / Industrial / Impact) */
  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-mega-headlines {
    gap: 0;
    width: 100%;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-mega-space {
    display: none;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-mega-row .industrial-masked-text,
  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-mega-row .saf-line-top {
    display: block;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-mega-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1em;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-mega-row--impact {
    align-items: stretch;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .saf-line-top {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: clamp(30px, 9.2vw, 46px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.025em;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-mega-word--inset {
    padding-left: clamp(2.75rem, 21vw, 6.25rem);
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-mega-word--inset-end {
    align-self: flex-end;
    margin-left: auto;
    margin-top: 0.06em;
    padding-right: clamp(0.15rem, 2.5vw, 0.75rem);
    text-align: right;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-mega-impact-bridge {
    font-size: clamp(21px, 5.2vw, 28px);
    font-weight: 600;
    line-height: 1.1;
    margin: 0.28em 0 0.22em;
    width: auto;
    padding-left: 0.12em;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-mega-title {
    margin: 0.35rem 0 0;
    line-height: 1.02;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-sub {
    margin-top: clamp(1.35rem, 4vh, 2rem) !important;
    padding: 12px 0 14px;
    font-size: clamp(15px, 4vw, 17px);
    line-height: 1.42;
    max-width: 100%;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-enterprise-actions {
    margin-top: 1.35rem !important;
  }

  /* Slides 02–03: slightly larger type + sit a bit lower */
  .page-home .industrial-hero.hero-carousel .hero-carousel-copy > .hero-carousel-panel:not(.hero-carousel-panel--home-hero).is-active {
    justify-content: center;
    padding-top: clamp(2rem, 8vh, 3.75rem);
    box-sizing: border-box;
  }

  .page-home .industrial-hero.hero-carousel .hero-carousel-copy > .hero-carousel-panel:nth-child(2) .hero-carousel-kicker {
    font-size: 11px;
    letter-spacing: 0.2em;
    margin-bottom: 14px;
  }

  .page-home .industrial-hero.hero-carousel .hero-carousel-copy > .hero-carousel-panel:nth-child(2) .hero-carousel-title {
    font-size: clamp(36px, 10.8vw, 58px);
    line-height: 0.92;
  }

  .page-home .industrial-hero.hero-carousel .hero-carousel-copy > .hero-carousel-panel:nth-child(3) .hero-carousel-title {
    font-size: clamp(32px, 9.8vw, 50px);
    line-height: 0.98;
  }

  .page-home .industrial-hero.hero-carousel .hero-carousel-copy > .hero-carousel-panel:nth-child(3) .hero-carousel-route {
    font-size: 11px;
    letter-spacing: 0.14em;
    white-space: normal;
    line-height: 1.55;
    margin-top: 1.125rem;
  }

  /* Slides 01–03 — smaller CTAs on mobile */
  .page-home .industrial-hero.hero-carousel .hero-carousel-cta .btn,
  .page-home .industrial-hero.hero-carousel .hero-enterprise-actions .btn {
    padding: 10px 18px !important;
    font-size: 12px !important;
    line-height: 1.25;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12) !important;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-enterprise-actions .btn-primary.btn-large {
    width: auto;
    max-width: 14.5rem;
    justify-content: center;
  }

  .page-home .industrial-hero.hero-carousel .hero-carousel-cta {
    margin-top: 1.25rem;
  }
}

/* Short phones: keep headline, CTA, and 01–03 index inside the screen */
@media (max-width: 767px) and (max-height: 740px) {
  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon {
    --hero-mobile-nav-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .horizon-index {
    gap: 6px;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .saf-line-top {
    font-size: clamp(26px, 8vw, 34px);
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-mega-impact-bridge {
    font-size: clamp(16px, 4.2vw, 22px);
    margin: 0.12em 0;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-sub {
    margin-top: 0.75rem !important;
    padding: 8px 0 10px;
    font-size: 14px;
  }

  .page-home .industrial-hero.hero-carousel.hero-carousel--horizon .hero-carousel-panel--home-hero .hero-enterprise-actions {
    margin-top: 0.75rem !important;
  }

  .page-home .industrial-hero.hero-carousel .hero-carousel-copy > .hero-carousel-panel:not(.hero-carousel-panel--home-hero).is-active {
    padding-top: 0;
  }

  .page-home .industrial-hero.hero-carousel .hero-carousel-copy > .hero-carousel-panel:nth-child(2) .hero-carousel-title {
    font-size: clamp(28px, 8.4vw, 40px);
  }

  .page-home .industrial-hero.hero-carousel .hero-carousel-copy > .hero-carousel-panel:nth-child(3) .hero-carousel-title {
    font-size: clamp(26px, 7.6vw, 36px);
  }
}
