:root {
  --navy: #0c2c43;
  --navy-deep: #071b29;
  --navy-soft: #153c50;
  --teal: #2b918b;
  --teal-dark: #176c68;
  --teal-bright: #70d1c6;
  --orange: #e8a03f;
  --button-accent: #dda458;
  --button-accent-hover: #e7b46e;
  --cream: #f3f0e8;
  --paper: #fbfaf6;
  --ink: #0d2c3d;
  --muted: #486169;
  --muted-light: #b7c9c8;
  --line: rgb(12 44 67 / 16%);
  --line-light: rgb(243 240 232 / 18%);
  --content-width: 1180px;
  --reading-width: 70ch;
  --gutter: clamp(1.25rem, 4vw, 2.25rem);
  --section-space: clamp(3.15rem, 5vw, 4.75rem);
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Spline Sans", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-wrap: wrap;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(2.05rem, 3.6vw, 3.25rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 4px;
}

.site-nav :focus-visible,
.section-dark :focus-visible,
.contact-section :focus-visible,
.site-footer :focus-visible,
.home-hero :focus-visible,
.sentinel-hero :focus-visible {
  outline-color: var(--orange);
}

::selection {
  background: var(--teal);
  color: #fff;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--paper);
  color: var(--navy);
  font-weight: 600;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100%, var(--content-width));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-space);
}

.section-dark {
  background: var(--navy-deep);
  color: var(--cream);
}

.section-dark h2,
.section-dark h3 {
  color: var(--cream);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--button-accent);
  border-radius: 8px;
  background: var(--button-accent);
  color: var(--navy-deep);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 180ms ease-out,
    border-color 180ms ease-out,
    box-shadow 180ms ease-out,
    color 180ms ease-out,
    transform 180ms ease-out;
}

.button:hover {
  border-color: var(--button-accent-hover);
  background: var(--button-accent-hover);
  transform: translateY(-1px);
}

.button-light {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--navy-deep);
}

.button-light:hover {
  border-color: #fff;
  background: #fff;
}

.button-secondary {
  border-color: rgb(243 240 232 / 58%);
  background: rgb(243 240 232 / 10%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  backdrop-filter: blur(10px) saturate(115%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%);
  color: rgb(243 240 232 / 94%);
}

.button-secondary:hover {
  border-color: rgb(243 240 232 / 76%);
  background: rgb(243 240 232 / 16%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 15%);
  color: var(--cream);
}

.button-secondary-dark {
  border-color: rgb(12 44 67 / 42%);
  background: transparent;
  box-shadow: none;
  color: var(--navy);
}

.button-secondary-dark:hover {
  border-color: var(--navy);
  background: rgb(12 44 67 / 7%);
  color: var(--navy);
}

/* Navigation */

.site-nav {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.7rem max(var(--gutter), calc((100vw - var(--content-width)) / 2 + var(--gutter)));
  background: rgb(12 44 67 / 74%);
  -webkit-backdrop-filter: blur(16px) saturate(118%);
  backdrop-filter: blur(16px) saturate(118%);
  transition: background-color 180ms ease-out, box-shadow 180ms ease-out;
}

.site-nav.is-scrolled,
.site-nav.nav-solid {
  background: rgb(12 44 67 / 86%);
  box-shadow: 0 10px 24px rgb(7 27 41 / 12%);
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 0.75rem;
  color: var(--cream);
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: none;
}

.brand-wordmark {
  display: grid;
  gap: 0.05rem;
  line-height: 1.15;
}

.brand-wordmark strong {
  font-family: "Spline Sans", system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.brand-wordmark span {
  color: #e3ecea;
  font-size: 0.95rem;
  line-height: 1.15;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-radius: 7px;
  color: #d8e2df;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease-out, background-color 160ms ease-out;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgb(112 209 198 / 12%);
  color: var(--teal-bright);
}

.nav-links .nav-contact {
  margin-left: 0.35rem;
  padding-inline: 1rem;
  background: var(--cream);
  color: var(--navy-deep);
}

.nav-links .nav-contact:hover {
  background: #fff;
  color: var(--navy-deep);
}

.nav-toggle {
  display: none;
  min-width: 52px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease-out;
}

.nav-toggle:hover {
  background: rgb(243 240 232 / 9%);
}

.nav-toggle-icon {
  position: relative;
  display: block;
  width: 30px;
  height: 22px;
}

.nav-toggle-icon i {
  position: absolute;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition:
    top 260ms cubic-bezier(0.16, 1, 0.3, 1),
    width 260ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 150ms ease-out,
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-toggle-icon i:nth-child(1) {
  top: 1px;
  width: 30px;
}

.nav-toggle-icon i:nth-child(2) {
  top: 10px;
  width: 20px;
}

.nav-toggle-icon i:nth-child(3) {
  top: 19px;
  width: 25px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(1) {
  top: 10px;
  width: 30px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(2) {
  opacity: 0;
  transform: translateX(8px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(3) {
  top: 10px;
  width: 30px;
  transform: rotate(-45deg);
}

/* Shared hero media */

.hero-media {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(12 44 67 / 68%) 0%, rgb(12 44 67 / 28%) 52%, rgb(12 44 67 / 3%) 84%),
    linear-gradient(0deg, rgb(7 27 41 / 46%) 0%, transparent 48%);
}

/* Contact and footer */

.contact-section {
  padding-block: clamp(2.5rem, 3.5vw, 3.25rem);
  background: var(--teal-dark);
  color: var(--cream);
}

.contact-section h2 {
  max-width: none;
  color: var(--cream);
  font-size: clamp(1.9rem, 3.2vw, 2.85rem);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
}

.contact-copy {
  max-width: 72ch;
}

.contact-copy p {
  margin-bottom: 1.2rem;
  color: #e1eeeb;
}

.site-footer {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-light);
  background: var(--navy-deep);
  color: var(--muted-light);
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 2rem;
  font-size: 0.78rem;
}

.brand-footer .brand-mark {
  width: 42px;
  height: 42px;
}

.redirect-page {
  display: grid;
  min-height: 100svh;
  place-content: center;
  justify-items: start;
  gap: 1.5rem;
  padding: var(--gutter);
  background: var(--cream);
}

.redirect-page img {
  width: 84px;
  height: 84px;
}

.redirect-page h1 {
  max-width: 20ch;
  font-size: clamp(2.25rem, 6vw, 4rem);
}

.not-found {
  display: grid;
  min-height: 100svh;
  align-content: center;
  justify-items: start;
  padding: clamp(2rem, 8vw, 7rem);
  background:
    radial-gradient(circle at 80% 20%, rgb(43 145 139 / 16%), transparent 35rem),
    var(--cream);
}

.not-found img {
  width: 92px;
  height: 92px;
  margin-bottom: 2.5rem;
}

.not-found h1 {
  max-width: 18ch;
  font-size: clamp(3rem, 8vw, 6rem);
}

.not-found > p {
  max-width: 40ch;
  margin-top: 1.25rem;
  color: var(--muted);
}

@media (max-width: 960px) {
  body.nav-open {
    overflow: hidden;
  }

  .site-nav {
    min-height: 72px;
    gap: 1rem;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-nav::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: rgb(12 44 67 / 82%);
    -webkit-backdrop-filter: blur(16px) saturate(118%);
    backdrop-filter: blur(16px) saturate(118%);
    content: "";
    pointer-events: none;
  }

  .brand,
  .nav-toggle {
    position: relative;
    z-index: 2;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .nav-toggle {
    display: inline-grid;
    flex: none;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    z-index: 1;
    inset: 0;
    display: flex;
    min-height: 100dvh;
    overflow: hidden;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding:
      calc(72px + 0.75rem)
      max(var(--gutter), calc((100vw - var(--content-width)) / 2 + var(--gutter)))
      max(clamp(4rem, 10vh, 6rem), calc(env(safe-area-inset-bottom) + 2.5rem));
    background:
      radial-gradient(circle at 82% 88%, rgb(43 145 139 / 22%), transparent 34rem),
      linear-gradient(145deg, #071b29 0%, var(--navy-deep) 54%, #0c2c43 100%);
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-1rem);
    visibility: hidden;
    transition:
      clip-path 500ms cubic-bezier(0.16, 1, 0.3, 1),
      opacity 280ms ease-out,
      transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
      visibility 500ms;
  }

  .nav-links.is-open {
    clip-path: inset(0);
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .nav-links a {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 0;
    justify-content: flex-start;
    padding: clamp(1.3rem, 3.2vh, 2rem) 0;
    border-top: 1px solid rgb(216 226 223 / 18%);
    border-radius: 0;
    background: transparent;
    color: var(--cream);
    font-family: "Spline Sans", system-ui, sans-serif;
    font-size: clamp(1.5rem, 5.8vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(1.35rem);
    transition:
      color 160ms ease-out,
      opacity 320ms cubic-bezier(0.16, 1, 0.3, 1),
      transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links a:first-child {
    border-top: 0;
  }

  .nav-links a:last-child {
    margin-bottom: clamp(2.5rem, 8vh, 5rem);
  }

  .nav-links.is-open a {
    opacity: 1;
    transform: none;
  }

  .nav-links.is-open a:nth-child(1) {
    transition-delay: 90ms;
  }

  .nav-links.is-open a:nth-child(2) {
    transition-delay: 135ms;
  }

  .nav-links.is-open a:nth-child(3) {
    transition-delay: 180ms;
  }

  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    background: transparent;
    color: var(--teal-bright);
  }

  .nav-links .nav-contact {
    margin-left: 0;
    padding-inline: 0;
    background: transparent;
    color: var(--button-accent);
  }

  .nav-links .nav-contact:hover {
    background: transparent;
    color: var(--cream);
  }
}

@media (max-width: 720px) {
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .footer-layout {
    gap: 1rem;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgb(12 44 67 / 72%) 0%, rgb(12 44 67 / 34%) 100%),
      linear-gradient(0deg, rgb(7 27 41 / 62%) 0%, transparent 68%);
  }
}

@media (max-width: 430px) {
  .site-nav {
    gap: 0.5rem;
  }

  .brand {
    gap: 0.45rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-wordmark strong {
    font-size: 1.05rem;
  }

  .brand-wordmark span {
    color: #edf4f2;
    font-size: 0.78rem;
  }

  .nav-toggle {
    min-width: 52px;
  }

  .nav-toggle > span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
