:root {
  --sea-ink: #0c3d47;
  --sea: #145866;
  --sea-mid: #1c7484;
  --foam: #e8f4f6;
  --sand: #f6f1e8;
  --sand-deep: #e8dcc8;
  --gold: #b8924a;
  --gold-soft: #d4b56a;
  --ink: #1c2428;
  --muted: #4d5b61;
  --white: #fffdf9;
  --line: rgba(12, 61, 71, 0.12);
  --shadow: 0 16px 40px rgba(12, 61, 71, 0.1);
  --radius: 18px;
  --max: 68rem;
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sea);
}

a:hover {
  color: var(--sea-ink);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--sea-ink);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  z-index: 100;
}

.skip-link:focus {
  top: 0.75rem;
}

.preview-banner {
  background: #7a2e1a;
  color: #fff8f2;
  text-align: center;
  font-size: 0.92rem;
  padding: 0.55rem 1rem;
}

.preview-banner strong {
  font-weight: 700;
}

.site-header {
  background: rgba(255, 253, 249, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0.65rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  max-width: calc(100% - 6.25rem);
  text-decoration: none;
  background: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.brand picture {
  display: block;
  min-width: 0;
}

.brand img {
  display: block;
  width: auto;
  height: clamp(2.85rem, 11vw, 3.15rem);
  max-width: min(100%, 11.5rem);
  object-fit: contain;
  object-position: left center;
}

.nav-toggle {
  margin-left: auto;
  background: var(--sea);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.site-nav {
  display: none;
  width: 100%;
}

.site-nav.is-open {
  display: block;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0 0.8rem;
}

.nav-list > li {
  border-top: 1px solid var(--line);
}

.nav-list a,
.more-toggle {
  display: block;
  padding: 0.75rem 0.2rem;
  color: var(--sea-ink);
  text-decoration: none;
  font-weight: 600;
  background: none;
  border: 0;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.nav-list a[aria-current="page"] {
  color: var(--sea);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.more-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem 0.8rem;
}

.more-item.is-open .more-menu {
  display: block;
}

.hero {
  position: relative;
  min-height: 22rem;
  display: grid;
  align-items: end;
  color: var(--white);
  background: #0c3d47 center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 32, 38, 0.15) 0%, rgba(8, 32, 38, 0.72) 82%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem 1.2rem 2.2rem;
}

.kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-soft);
  margin: 0 0 0.5rem;
}

.hero h1,
.page-hero h1 {
  font-family: var(--display);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.7rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4.6vw, 3.3rem);
  max-width: 22ch;
}

.hero-name {
  white-space: nowrap;
}

.lede {
  margin: 0;
  max-width: 42rem;
  font-size: 1.08rem;
}

/* Inline links on photo and teal heroes. Global `a` is dark teal and
   disappears on these backgrounds. White clears WCAG AA on the page-hero
   light stop (#1c7484, 5.33:1) and on the photo overlay at the subtitle
   (0.72 over the brightest pixels, about 6.7:1). */
.hero a,
.page-hero a {
  color: var(--white);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.hero a:hover,
.page-hero a:hover {
  color: #fff8e8;
  text-decoration-thickness: 3px;
}

.hero a:focus-visible,
.page-hero a:focus-visible {
  color: #fff8e8;
  text-decoration-thickness: 3px;
  outline: 3px solid #fffdf9;
  outline-offset: 3px;
}

.page-hero {
  background: linear-gradient(160deg, var(--sea-ink), var(--sea-mid));
  color: var(--white);
  padding: 2.6rem 1.2rem 2.2rem;
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.7rem);
}

.page-hero p {
  margin: 0;
  max-width: 44rem;
  color: #e8f4f6;
}

.page-hero-photo {
  position: relative;
  min-height: 22rem;
  display: grid;
  align-items: end;
  padding: 0;
  background: #0c3d47 center / cover no-repeat;
}

.page-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 32, 38, 0.15) 0%, rgba(8, 32, 38, 0.72) 82%);
}

.page-hero-photo .page-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 5.5rem 1.2rem 2.2rem;
}

main {
  display: block;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.2rem;
}

.section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.5rem;
  margin-bottom: 1.15rem;
  box-shadow: var(--shadow);
}

.section h2,
.cta-block h2,
.archive h2,
.card h2 {
  font-family: var(--display);
  color: var(--sea-ink);
  font-size: 1.5rem;
  margin: 0 0 0.7rem;
  line-height: 1.25;
}

.section h3 {
  color: var(--sea);
  margin: 1.1rem 0 0.4rem;
  font-size: 1.12rem;
}

.section p:first-of-type,
.section ul:first-of-type {
  margin-top: 0;
}

.split {
  display: grid;
  gap: 1.15rem;
}

.split-help > div {
  display: flex;
  flex-direction: column;
}

.split-help .help-intro {
  margin-bottom: 0.35rem;
}

@media (min-width: 860px) {
  .split-help .help-intro {
    min-height: 15.5rem;
  }
}

.bio-card {
  display: grid;
  gap: 1rem;
}

.bio-card img {
  width: 100%;
  max-width: 18rem;
  border-radius: 14px;
  object-fit: cover;
  aspect-ratio: 454 / 323;
}

.stats {
  display: grid;
  gap: 0.75rem;
}

.stat {
  background: var(--foam);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.stat strong {
  display: block;
  font-family: var(--display);
  color: var(--sea-ink);
  font-size: 1.25rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.steps {
  margin: 0;
  padding-left: 1.2rem;
}

.steps li {
  margin-bottom: 0.45rem;
}

.grid-cards {
  display: grid;
  gap: 0.85rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  background: var(--sand);
  overflow: hidden;
}

.card-photo {
  width: calc(100% + 2.1rem);
  max-width: none;
  margin: -1rem -1.05rem 0.85rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.card h3 {
  margin-top: 0;
}

.card[id],
.section[id] {
  scroll-margin-top: 5.5rem;
}

.quote {
  margin: 0 0 0.8rem;
  padding: 0;
  border: 0;
}

.quote p {
  font-family: var(--display);
  font-size: 1.12rem;
  line-height: 1.5;
  margin: 0 0 0.55rem;
}

.quote footer {
  color: var(--muted);
  font-weight: 650;
}

.cta-block {
  background: linear-gradient(145deg, var(--sea-ink), #186070);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.3rem;
  margin: 0 0 1.2rem;
}

.cta-block h2#cta-heading {
  color: #eef7f8;
}

.cta-block p,
.cta-block a {
  color: #eef7f8;
}

.cta-block p a {
  color: #ffe7b0;
  font-weight: 700;
}

.cta-block p a:hover,
.cta-block p a:focus-visible,
.secondary-links a:hover,
.secondary-links a:focus-visible {
  color: var(--white);
  text-decoration-line: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.16em;
}

.cta-block p a:focus-visible,
.secondary-links a:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.cta-block .fine {
  opacity: 0.92;
  margin-bottom: 1rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.72rem 1.05rem;
  font-weight: 700;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: #2a1d06;
}

.btn-primary:hover {
  background: var(--gold-soft);
  color: #2a1d06;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: white;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.secondary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.secondary-links a {
  color: #ffe7b0;
}

.portal-list {
  display: grid;
  gap: 0.7rem;
}

.portal-list a {
  display: block;
  background: var(--foam);
  padding: 0.9rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

.lead-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.2rem;
}

.lead-form label {
  display: grid;
  gap: 0.28rem;
  font-weight: 650;
  color: var(--sea-ink);
}

.lead-form .optional {
  font-weight: 500;
  color: var(--muted);
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  font: inherit;
  color: var(--ink);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

.lead-form textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.lead-form button.btn {
  justify-self: start;
  font: inherit;
  cursor: pointer;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-hp {
  display: none;
}

.site-footer {
  background: var(--sea-ink);
  color: #dceced;
  margin-top: 1rem;
}

.footer-art {
  width: 100%;
  height: clamp(14rem, 32vw, 22rem);
  max-height: none;
  object-fit: cover;
  object-position: center 42%;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.6rem 1.2rem 1.2rem;
}

.site-footer h2 {
  font-family: var(--display);
  color: white;
  font-size: 1.45rem;
  margin: 0 0 0.2rem;
}

.site-footer a {
  color: #ffe7b0;
  text-decoration-line: underline;
  text-underline-offset: 0.16em;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--white);
  text-decoration-thickness: 3px;
}

.site-footer a:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.license-bar {
  background: #0a323b;
  color: #c9dfe3;
  text-align: center;
  padding: 0.85rem 1rem 1.1rem;
  font-size: 0.92rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.archive {
  margin-top: 0.6rem;
}

.archive details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  margin-bottom: 0.65rem;
}

.archive summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--sea-ink);
}

.archive h4 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 1.1rem 0 0.35rem;
  color: var(--sea-ink);
}

.legal p {
  max-width: 48rem;
}

.sitemap-list {
  columns: 1;
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .brand {
    flex: 0 0 auto;
    max-width: none;
  }

  .brand img {
    height: 3.15rem;
    max-width: 12.5rem;
  }

  .site-nav {
    display: block;
    width: auto;
    margin-left: auto;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0;
  }

  .nav-list > li {
    border: 0;
    position: relative;
  }

  .nav-list a,
  .more-toggle {
    padding: 0.55rem 0.45rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .more-menu {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 11rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 0.4rem 0;
  }

  .more-menu a {
    padding: 0.5rem 0.85rem;
  }

  .split,
  .bio-card,
  .stats,
  .grid-cards {
    grid-template-columns: 1fr 1fr;
  }

  .stats.three,
  .grid-cards.three {
    grid-template-columns: repeat(3, 1fr);
  }

  .bio-card {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }

  .sitemap-list {
    columns: 2;
  }
}

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