/* Keep the existing Hero and its activity cards together in the first view. */
.hero-stage {
  position: relative;
  isolation: isolate;
  padding-bottom: 18px;
  background: #102d46;
}

/* The original video and tint now use the complete Hero/card group as
   their containing block. The foreground boxes keep their existing layout. */
.hero-stage .hero {
  position: static;
  isolation: auto;
  overflow: visible;
  background: transparent;
}

.hero-stage .hero .hero-autoplay-fallback {
  top: calc(var(--header-height, 90px) + 30px);
  right: 24px;
  bottom: auto;
}

.site-header .header-inner {
  background: rgba(255, 255, 255, .64);
}

.site-header.is-scrolled .header-inner {
  background: rgba(255, 255, 255, .72);
}

@media (min-width: 1001px) {
  .site-header { top: 12px; }
  .site-header .header-inner {
    min-height: 88px;
    padding: 8px 24px;
    gap: 18px;
    border-radius: 14px;
  }
  .site-header .brand,
  .site-header .brand img { width: clamp(160px, 11.6vw, 190px); }
  .site-header .header-call,
  .site-header .header-actions .button-small {
    min-height: 44px;
    padding-block: 10px;
  }

  /* The existing observer supplies half the real card-row height. Reserving
     that lower half here puts the whole row above the viewport's bottom. */
  .hero {
    min-height: 0;
    height: calc(100svh - var(--sector-overlap, 100px) - 18px);
    padding: calc(var(--header-height, 90px) + 34px) 0 calc(var(--sector-overlap, 100px) + 20px);
  }
  .hero .hero-grid {
    display: flex;
    align-items: center;
    height: 100%;
  }
  .hero .hero-copy { width: 64%; max-width: 920px; }
  .hero .hero-text { padding: 0; }
  .hero .hero-text > .eyebrow {
    font-size: clamp(12px, .9vw, 15px);
    line-height: 1.45;
    margin-bottom: clamp(14px, 2svh, 20px);
  }
  .hero .hero-text > .eyebrow::after {
    width: 80px;
    height: 3px;
    margin-top: 7px;
  }
  .hero h1 {
    font-size: clamp(44px, min(4.8vw, 8.8svh), 88px);
    line-height: .93;
    margin-bottom: 10px;
  }
  .hero .hero-title-last {
    font-size: clamp(20px, min(1.8vw, 3.4svh), 32px);
    line-height: 1.3;
    margin-top: 8px;
  }
  .hero .hero-location {
    font-size: clamp(18px, min(1.3vw, 2.8svh), 22px);
    line-height: 1.5;
  }
  .hero .hero-ctas {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    margin: 18px 0 0;
    gap: 10px 18px;
  }
  .hero .hero-ctas .button {
    min-height: 50px;
    padding: 12px 28px;
    font-size: 16px;
  }
  .hero .hero-ctas .button-ghost {
    min-height: 40px;
    padding: 6px 0;
    background: transparent;
    font-size: 16px;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }

  .sectors-section .sectors-grid { gap: 16px; }
  .sectors-section .sector-content { padding: 16px 18px; }
  .sectors-section .sector-content .sector-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
    border-radius: 9px;
  }
  .sectors-section .sector-content .sector-icon svg { width: 23px; height: 23px; }
  .sectors-section .sector-content h3 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  .sectors-section .sector-content p {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 12px;
  }
  .sectors-section .sector-content .text-link { font-size: 14px; line-height: 1.5; }
}

@media (min-width: 1001px) and (max-height: 700px) {
  .site-header .header-inner { min-height: 80px; padding-block: 6px; }
  .site-header .brand,
  .site-header .brand img { width: 160px; }
}

@media (min-width: 1001px) and (max-height: 650px) {
  .hero {
    padding-top: calc(var(--header-height, 80px) + 26px);
    padding-bottom: calc(var(--sector-overlap, 100px) + 12px);
  }
  .hero h1 { font-size: clamp(40px, min(4.8vw, 8svh), 72px); }
  .hero .hero-text > .eyebrow { margin-bottom: 12px; }
  .hero .hero-title-last { font-size: clamp(18px, min(1.7vw, 3.3svh), 24px); }
  .hero .hero-ctas { margin-top: 14px; }
  .hero .hero-ctas .button { min-height: 44px; padding: 10px 24px; }
  .hero .hero-ctas .button-ghost { padding: 6px 0; background: transparent; }
  .sectors-section .sector-content { padding-block: 14px; }
  .sectors-section .sector-content .sector-icon { width: 34px; height: 34px; margin-bottom: 8px; }
  .sectors-section .sector-content p { line-height: 1.35; }
}

@media (max-width: 700px) {
  .site-header .header-inner { min-height: 78px; padding: 6px 12px; }
  .site-header .brand,
  .site-header .brand img { width: 160px; }
}

@media (max-width: 360px) {
  .site-header .header-inner { min-height: 72px; }
  .site-header .brand,
  .site-header .brand img { width: 140px; }
}
