@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face { font-family:"Space Grotesk"; src:url("../fonts/SpaceGrotesk-Medium.woff2") format("woff2"); font-style:normal; font-weight:500; font-display:swap; }
@font-face { font-family:"Space Grotesk"; src:url("../fonts/SpaceGrotesk-SemiBold.woff2") format("woff2"); font-style:normal; font-weight:600; font-display:swap; }
@font-face { font-family:"IBM Plex Sans"; src:url("../fonts/IBMPlexSans-Regular.woff2") format("woff2"); font-style:normal; font-weight:400; font-display:swap; }
@font-face { font-family:"IBM Plex Sans"; src:url("../fonts/IBMPlexSans-Medium.woff2") format("woff2"); font-style:normal; font-weight:500; font-display:swap; }
@font-face { font-family:"IBM Plex Sans"; src:url("../fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); font-style:normal; font-weight:600; font-display:swap; }

:root {
  --deep-ocean: #031b2b;
  --endura-about-bg: #fff;
  --marine-white: var(--endura-about-bg);
  --signal-orange: #ff7a36;
  --page-gutter: clamp(24px, 4.45vw, 64px);
  --page-max-width: 1440px;
  --type-display-xl: clamp(64px, 6.6vw, 98px);
  --type-display-lg: clamp(48px, 4.25vw, 64px);
  --type-display-md: clamp(40px, 4vw, 60px);
  --type-display-sm: clamp(30px, 3.4vw, 54px);
  --type-body-lg: clamp(17px, 1.25vw, 19px);
  --type-body-md: clamp(16px, 1.1vw, 18px);
  --type-body-sm: 14px;
  --type-meta: 13px;
  --type-nav: 12px;
  --type-label: 11px;
  --type-caption: 10px;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --leading-display: .92;
  --leading-heading: 1;
  --leading-body: 1.55;
  --leading-compact: 1.4;
  --tracking-display: -.055em;
  --tracking-heading: -.045em;
  --tracking-label: .14em;
  --section-title-size: var(--type-display-lg);
  --section-title-line-height: var(--leading-heading);
  --section-title-letter-spacing: var(--tracking-heading);
  --section-heading-gap: 32px;
  --section-copy-gap: 28px;
  --side: var(--page-gutter);
  --font-heading: "Space Grotesk", Arial, sans-serif;
  --font-body: "IBM Plex Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

.site-container {
  width:min(calc(100% - (var(--page-gutter) * 2)),var(--page-max-width));
  margin-inline:auto;
}

.endura-wave-library { position:absolute; width:0; height:0; overflow:hidden; pointer-events:none; }

html, body { margin: 0; min-width: 320px; background: var(--marine-white); }

body {
  font-family: var(--font-body);
  font-size: var(--type-body-md);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  color: #fff;
  overflow-x: hidden;
}

body, p, a, button, input, textarea, select, label,
.eyebrow, .kicker, .supporting-copy { font-family:var(--font-body); }
h1, h2, h3, h4, h5, h6,
.display-title, .section-title, .service-title { font-family:var(--font-heading); }

a { color: inherit; }

.hero-scroll {
  position: relative;
  height: 260svh;
  background: var(--marine-white);
}

.hero {
  --scroll-progress: 0;
  --content-opacity: 1;
  --wave-offset: 0px;
  position: sticky;
  top: 0;
  min-height: 900px;
  height: 100svh;
  max-height: 980px;
  overflow: hidden;
  isolation: isolate;
  background: #0a5e8a;
}

.hero__poster,
.hero__poster img,
.hero__canvas,
.hero__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__poster { z-index: 0; }
.hero__canvas {
  z-index: 1;
  display: block;
  opacity: 0;
  transition: opacity .12s linear;
}
.hero.is-sequence-ready .hero__canvas { opacity: 1; }

.hero__poster img {
  display: block;
  object-fit: cover;
  object-position: 58% 50%;
}

.hero__scrim {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(3, 27, 43, .72) 0%, rgba(3, 27, 43, .42) 36%, rgba(3, 27, 43, .08) 68%, rgba(3, 27, 43, .02) 100%),
    linear-gradient(0deg, rgba(3, 27, 43, .38) 0%, transparent 43%);
}

.hero-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  min-height: 112px;
  padding: 22px max(var(--page-gutter), calc((100vw - var(--page-max-width)) / 2)) 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.hero-header.is-theme-hero.is-scrolled {
  background: rgba(3, 27, 43, .88);
  border-bottom-color: rgba(255, 255, 255, .14);
  box-shadow: 0 12px 32px rgba(3, 20, 38, .18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.brand {
  position: relative;
  display: inline-flex;
  width: 62px;
  height: 68px;
  background: transparent;
}

.brand__logo {
  position: absolute;
  inset: 0;
  display: block;
  width: 62px;
  height: 68px;
  object-fit: contain;
  transition: opacity .28s ease;
}

.brand__logo--light { opacity: 1; }
.brand__logo--color { opacity: 0; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.4vw, 38px);
  font-size: var(--type-nav);
  font-weight: var(--weight-medium);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.desktop-nav a {
  padding: 15px 0;
  text-decoration: none;
  text-underline-offset: 5px;
}

.desktop-nav a:not(.header-cta):hover { text-decoration: underline; }

.desktop-nav .header-cta {
  min-height: 48px;
  padding: 15px 24px;
  border: 1px solid rgba(255,255,255,.55);
  transition: background-color .18s ease, color .18s ease;
}

.desktop-nav .header-cta:hover {
  color: var(--deep-ocean);
  background: #fff;
}

.menu-trigger { display: none; }

.hero-header.is-theme-light {
  color: var(--deep-ocean);
  background: #fff;
  border-bottom: 1px solid rgba(3, 27, 43, .1);
  backdrop-filter: blur(12px);
}

.hero-header.is-theme-light .brand__logo--light { opacity: 0; }
.hero-header.is-theme-light .brand__logo--color { opacity: 1; }
.hero-header.is-theme-light .desktop-nav .header-cta { border-color: rgba(3, 27, 43, .28); }
.hero-header.is-theme-light .menu-trigger { border-color: rgba(3, 27, 43, .28); }
.hero-header.is-theme-light .menu-trigger span { background: var(--deep-ocean); }

.hero-header.is-theme-dark {
  color:#fff;
  background:rgba(3,20,38,.78);
  border-bottom:1px solid rgba(85,216,234,.18);
  backdrop-filter:blur(14px);
}
.hero-header.is-theme-dark .brand__logo--light { opacity:1; }
.hero-header.is-theme-dark .brand__logo--color { opacity:0; }
.hero-header.is-theme-dark .desktop-nav>a:not(.header-cta) { color:#fff; }
.hero-header.is-theme-dark .menu-trigger { color:#fff; border-color:rgba(255,255,255,.3); }
.hero-header.is-theme-dark .menu-trigger span { background:#fff; }

.hero__content {
  position: absolute;
  z-index: 4;
  left: 50%;
  right: auto;
  top: 50%;
  bottom: auto;
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--page-max-width));
  transform: translate(-50%, -90%);
  display: block;
  opacity: var(--content-opacity);
}

@media (min-width: 641px) {
  .hero__content {
    top: auto;
    bottom: calc(clamp(140px, 18vh, 180px) + var(--wave-offset));
    transform: translateX(-50%);
  }
}

@media (max-width:640px) {
  :root {
    --type-display-xl: clamp(46px, 14.1vw, 55px);
    --type-display-lg: clamp(36px, 9vw, 44px);
    --type-body-lg: 16px;
    --type-body-md: 16px;
    --section-heading-gap: 28px;
    --section-copy-gap: 24px;
  }
}

.hero h1 {
  margin: 0;
  max-width: 880px;
  font-size: var(--type-display-xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.hero__support {
  max-width: 540px;
  margin-top: 26px;
}

.hero__support p {
  max-width: 540px;
  margin: 0;
  font-size: var(--type-body-lg);
  line-height: var(--leading-body);
  color: rgba(255,255,255,.95);
}

.hero__wave {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: -1px;
  display: block;
  width: 100%;
  height: clamp(58px, 8vh, 76px);
  fill: var(--endura-about-bg);
  transform: translate3d(0, calc(-1 * var(--wave-offset)), 0);
  will-change: transform;
}

.hero__wave-fill {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--wave-offset) + 2px);
  background: var(--endura-about-bg);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-scroll { height: 225svh; }
  .hero { min-height: 720px; }
  .hero-header { min-height: 92px; padding-top: 18px; }
  .desktop-nav { display: none; }
  .brand, .brand img { width: 52px; height: 58px; }
  .menu-trigger {
    display: inline-flex;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.55);
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
  }
  .menu-trigger span { width: 20px; height: 1px; background: #fff; }
  .hero__content { grid-template-columns: 1fr; gap: 22px; }
  .hero__support { padding-bottom: 0; }
}

@media (max-width: 640px) {
  :root { --side: 22px; }
  .hero { height: 100svh; min-height: 720px; max-height: 900px; }
  .hero__poster, .hero__canvas { height: 50%; }
  .hero__poster img { object-position: 62% 48%; }
  .hero__scrim {
    background:
      linear-gradient(90deg, rgba(3,27,43,.50) 0%, rgba(3,27,43,.10) 78%, rgba(3,27,43,.03) 100%),
      linear-gradient(0deg, var(--deep-ocean) 0%, var(--deep-ocean) 49%, rgba(3,27,43,.12) 62%, rgba(3,27,43,.03) 100%);
  }
  .hero h1 { max-width: 350px; line-height: .94; letter-spacing: -.052em; }
  .hero__support { display: block; max-width: 340px; margin-top: 18px; }
  .hero__support p { font-size: var(--type-body-lg); line-height: var(--leading-body); }
  .hero__wave { height: clamp(42px, 5vh, 50px); }
}

@media (max-height: 760px) and (min-width: 641px) {
  .hero { min-height: 720px; }
  .hero { --type-display-xl: clamp(62px, 6.5vw, 88px); }
}

/* Short desktop fit: keep all Hero copy above the rising wave. */
@media (min-width: 641px) and (max-height: 820px) {
  .hero {
    min-height: 0;
    max-height: none;
    height: 100svh;
  }

  .hero-header {
    min-height: 88px;
    padding-top: 16px;
  }

  .hero { --type-display-xl: clamp(56px, 5.6vw, 78px); }
  .hero__support { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .hero-scroll { height: 100svh; }
  .hero { position: relative; --scroll-progress: 1; --content-opacity: 1; --wave-offset: 55px; }
  .hero__canvas { display: none; }
  .hero__content { opacity: 1; }
  .hero__wave { will-change: auto; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 900px) {
  .hero { --wave-offset: 38px; }
}
