html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  max-width: 100%;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

#loader {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

#loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-bar {
  width: 0;
  transition: width 0.6s ease;
}

#mainNav.nav-scrolled {
  background: rgba(10, 31, 68, 0.82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

#mainNav .nav-link,
#mainNav .nav-cta,
#mainNav .nav-logo {
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease,
    opacity 0.3s ease,
    filter 0.3s ease;
}

#mainNav.nav-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.07);
}

#mainNav.nav-scrolled .nav-link {
  color: rgb(13, 27, 54);
}

#mainNav.nav-scrolled .nav-link:hover {
  color: rgb(46, 111, 212);
}

#mainNav.nav-scrolled .nav-cta {
  border-color: rgb(26, 75, 140);
  color: rgb(26, 75, 140);
}

#mainNav.nav-scrolled .nav-cta:hover {
  background: rgb(26, 75, 140);
  border-color: rgb(26, 75, 140);
  color: rgb(255, 255, 255);
}

.hero-eyebrow,
.hero-title,
.hero-subtitle,
.hero-actions,
.hero-scroll,
.reveal,
.reveal-left,
.reveal-right {
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.hero-eyebrow.is-visible,
.hero-title.is-visible,
.hero-subtitle.is-visible,
.hero-actions.is-visible,
.hero-scroll.is-visible,
.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: none;
}

.form-card {
  box-shadow: 0 24px 60px rgba(10, 31, 68, 0.08);
}

.blog-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-track {
  padding-bottom: 0.5rem;
}

.leadership-mobile-break {
  display: block;
}

.ceo-photo {
  border-radius: 0;
}

.ceo-photo::before {
  content: none !important;
  display: none !important;
}

.ceo-photo img {
  display: block;
}

.hero-content {
  transition:
    opacity 0.12s linear,
    transform 0.12s linear,
    filter 0.12s linear;
  will-change: transform, opacity, filter;
}

.hero-overlay-primary,
.hero-overlay-secondary {
  will-change: opacity;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(3, 17, 43, 0.72);
  backdrop-filter: blur(8px);
}

.contact-modal.hidden {
  display: none;
}

.contact-modal__panel {
  width: min(100%, 420px);
  padding: 2rem;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(201, 169, 110, 0.36);
  border-radius: 2px;
  box-shadow: 0 24px 70px rgba(10, 31, 68, 0.22);
}

.contact-modal__eyebrow {
  margin: 0 0 0.75rem;
  color: rgb(201, 169, 110);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.contact-modal__title {
  margin: 0;
  color: rgb(13, 27, 54);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.55rem, 5vw, 2rem);
  line-height: 1.18;
}

.contact-modal__message {
  margin: 1rem 0 1.5rem;
  color: rgb(100, 116, 139);
  font-size: 0.95rem;
  line-height: 1.8;
}

.contact-modal__button {
  min-width: 132px;
  padding: 0.9rem 1.25rem;
  color: #ffffff;
  background: rgb(10, 31, 68);
  border: 1px solid rgb(10, 31, 68);
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.contact-modal__button:hover,
.contact-modal__button:focus-visible {
  background: rgb(26, 75, 140);
  border-color: rgb(26, 75, 140);
}

@media (max-width: 900px) {
  .alliance-copy {
    transform: none !important;
  }
}

.hero-eyebrow,
.hero-title,
.hero-subtitle {
  will-change: transform;
}

.split-heading {
  overflow: hidden;
}

.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.split-space {
  width: 0.3em;
}

.split-heading-line {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s ease 0.2s;
}

.reveal-left.is-visible .split-char,
.reveal-right.is-visible .split-char,
.reveal.is-visible .split-char {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left.is-visible .split-heading-line,
.reveal-right.is-visible .split-heading-line,
.reveal.is-visible .split-heading-line {
  transform: scaleX(1);
}

@media (max-width: 900px), (pointer: coarse), (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body,
  main,
  section,
  nav,
  footer {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .mobile-nav {
    width: 100%;
    max-width: 100vw;
  }

  .hero-content {
    filter: none !important;
    transform: none !important;
    will-change: auto;
  }

  .hero-overlay-primary,
  .hero-overlay-secondary {
    will-change: auto;
  }

  .hero-parallax-left,
  .hero-parallax-right,
  .hero-eyebrow,
  .hero-title,
  .hero-subtitle {
    transform: none !important;
    will-change: auto;
  }

  .hero-scroll {
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    transform: none !important;
    align-items: center;
  }

  .reveal-left,
  .reveal-right {
    transform: translateY(40px);
  }

  .gallery-track {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-track .reveal {
    transform: none;
  }
}
