:root {
  --navy-950: #062443;
  --navy-900: #082f57;
  --navy-800: #0b4275;
  --blue-600: #137fbe;
  --blue-400: #3ea9df;
  --blue-100: #dff3fc;
  --green-700: #4f7c31;
  --green-500: #79a84d;
  --sand-100: #fbf7ed;
  --sand-200: #f2e8d5;
  --orange-400: #eda848;
  --ink: #102b45;
  --muted: #51697d;
  --line: #c9dce9;
  --white: #fff;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1180px;
  --shadow: 0 22px 60px rgba(6, 36, 67, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy-800);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--blue-600);
}

button,
input,
select,
textarea {
  font: inherit;
}

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

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--navy-950);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
}

.narrow {
  width: min(780px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(8, 47, 87, 0.1);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy-950);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 31px;
  height: 37px;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 1px 4px 7px;
  border-radius: 55% 45% 55% 45%;
  background: var(--blue-400);
  transform: rotate(45deg);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 3px;
  width: 18px;
  height: 9px;
  border: 2px solid var(--green-500);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-20deg);
}

.brand-text {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.65rem);
}

.site-nav a {
  position: relative;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 2px;
  background: var(--blue-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav .nav-cta {
  padding: 0.72rem 1.05rem;
  color: var(--white);
  background: var(--navy-900);
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(6, 36, 67, 0.16);
}

.menu-toggle {
  display: none;
  width: 45px;
  height: 45px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy-950);
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem !important; }
.mt-2 { margin-top: 2rem !important; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--navy-900);
  border-radius: 4px;
  color: var(--white);
  background: var(--navy-900);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(6, 36, 67, 0.12);
  transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.button:hover {
  color: var(--white);
  background: var(--navy-800);
  transform: translateY(-2px);
}

.button-secondary {
  color: var(--navy-900);
  background: transparent;
  box-shadow: none;
}

.button-secondary:hover {
  color: var(--white);
}

.home-hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(237, 168, 72, 0.2) 0 5.5rem, transparent 5.6rem),
    linear-gradient(110deg, var(--white) 0 48%, var(--sand-100) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: 5rem 7rem;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  color: var(--navy-950);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.hero-copy h1 {
  max-width: 700px;
  font-size: clamp(3.6rem, 6.5vw, 6.4rem);
}

.hero-copy p {
  max-width: 620px;
  margin: 2rem 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

.hero-art {
  align-self: stretch;
  display: flex;
  align-items: center;
}

.hero-art svg {
  width: 100%;
  filter: drop-shadow(0 26px 24px rgba(6, 36, 67, 0.08));
}

.waterline {
  position: absolute;
  z-index: 3;
  right: -3%;
  bottom: -1px;
  left: -3%;
  height: 115px;
}

.waterline svg {
  width: 100%;
  height: 100%;
}

.section {
  padding-block: clamp(5rem, 9vw, 8.5rem);
}

.section-title {
  max-width: 760px;
  margin: 0;
  color: var(--navy-950);
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.section-intro {
  max-width: 720px;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.label {
  display: block;
  margin-bottom: 1rem;
  color: var(--green-700);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.model-section {
  padding-top: 5rem;
  text-align: center;
}

.model-section .section-title,
.model-section .section-intro {
  margin-inline: auto;
}

.aquifer {
  position: relative;
  margin-top: 4rem;
  overflow: hidden;
  border-radius: 4px;
  background: var(--sand-100);
  box-shadow: var(--shadow);
}

.aquifer svg {
  width: 100%;
  height: auto;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: left;
}

.principle {
  position: relative;
  padding: 2.5rem clamp(1.5rem, 3vw, 3rem) 2.8rem;
  border-right: 1px dashed var(--line);
}

.principle:last-child {
  border-right: 0;
}

.principle-number {
  color: var(--blue-400);
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1;
}

.principle h3 {
  margin: 0.8rem 0 0.6rem;
  color: var(--navy-950);
  font-family: var(--serif);
  font-size: 1.55rem;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.archive-section {
  position: relative;
  overflow: hidden;
  background: var(--sand-100);
}

.archive-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.landscape-sketch {
  min-height: 330px;
  color: var(--navy-800);
}

.mission-quote {
  margin: 0;
  color: var(--navy-950);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  font-style: italic;
  line-height: 1.3;
}

.quote-source {
  display: block;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.record-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, #eef8fd, #dceffa);
}

.record-band::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 4%;
  width: 280px;
  height: 90px;
  border: 2px solid rgba(19, 127, 190, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(19, 127, 190, 0.07), 0 0 0 50px rgba(19, 127, 190, 0.04);
  transform: translateY(-50%);
}

.record-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
}

.record-layout .section-title {
  font-size: clamp(2.4rem, 4vw, 3.9rem);
}

.record-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.38);
}

.record-table th,
.record-table td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(8, 47, 87, 0.18);
  text-align: left;
  vertical-align: top;
}

.record-table th {
  width: 42%;
  color: var(--navy-900);
  font-size: 0.86rem;
}

.contact-band {
  position: relative;
  overflow: hidden;
  background: var(--sand-100);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.contact-river {
  min-height: 300px;
}

.contact-copy h2 {
  margin: 0 0 1rem;
  color: var(--navy-950);
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 500;
  line-height: 1.08;
}

.contact-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-top: 1rem;
}

.round-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy-900);
  font-weight: 800;
}

.site-footer {
  padding-block: 2.2rem;
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy-950);
}

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

.footer-brand {
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.3rem;
}

.footer-note {
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--white);
  font-size: 0.85rem;
  text-decoration: none;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5.5rem, 10vw, 9rem);
  background: var(--sand-100);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -12rem;
  width: 38rem;
  height: 38rem;
  border: 2px solid rgba(19, 127, 190, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(19, 127, 190, 0.05), 0 0 0 88px rgba(19, 127, 190, 0.025);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(3.4rem, 7vw, 6rem);
}

.page-hero p {
  max-width: 720px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(3rem, 8vw, 8rem);
}

.editorial-aside {
  position: sticky;
  top: 120px;
  align-self: start;
  padding-top: 0.45rem;
}

.editorial-aside p {
  margin: 0;
  color: var(--green-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.editorial-body h2 {
  margin: 0 0 1.3rem;
  color: var(--navy-950);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.12;
}

.editorial-body {
  min-width: 0;
}

.editorial-body h3 {
  margin: 3rem 0 0.7rem;
  color: var(--navy-950);
  font-family: var(--serif);
  font-size: 1.65rem;
}

.editorial-body p,
.editorial-body li {
  color: var(--muted);
}

.editorial-body blockquote {
  margin: 2.5rem 0;
  padding: 2rem 0 2rem 2rem;
  border-left: 3px solid var(--blue-400);
  color: var(--navy-950);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-style: italic;
}

.editorial-body ul {
  padding-left: 1.2rem;
}

.notice {
  margin: 2.5rem 0;
  padding: 1.5rem;
  border-left: 4px solid var(--orange-400);
  background: var(--sand-100);
}

.notice strong {
  display: block;
  color: var(--navy-950);
}

.timeline {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-year {
  color: var(--blue-600);
  font-family: var(--serif);
  font-size: 1.5rem;
}

.timeline-item p {
  margin: 0;
}

.source-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.source-list a {
  word-break: break-word;
}

.financial-table-wrap {
  max-width: 100%;
  margin: 2rem 0;
  overflow-x: auto;
  border-top: 3px solid var(--navy-900);
}

.financial-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
}

.financial-table th,
.financial-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.financial-table thead th {
  color: var(--navy-950);
  background: #eef8fd;
  font-size: 0.85rem;
}

.financial-table tbody th {
  color: var(--ink);
}

.address-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 2.5rem 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.address-block {
  padding: 2rem;
  background: var(--white);
}

.address-block h3 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.45rem;
}

.address-block p {
  margin: 0;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(3rem, 7vw, 7rem);
}

.contact-details h2,
.contact-form-wrap h2 {
  margin: 0 0 1rem;
  color: var(--navy-950);
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 500;
  line-height: 1.12;
}

.contact-details p {
  color: var(--muted);
}

.contact-detail {
  margin-top: 2rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.contact-detail strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--navy-950);
}

.contact-form {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--sand-100);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--navy-950);
  font-size: 0.88rem;
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #abc7d8;
  border-radius: 3px;
  color: var(--ink);
  background: var(--white);
}

.field input,
.field select {
  height: 50px;
  padding: 0 0.9rem;
}

.field textarea {
  min-height: 170px;
  padding: 0.85rem;
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status[data-state="success"] {
  color: var(--green-700);
}

.form-status[data-state="error"] {
  color: #a22d28;
}

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

.policy h2 {
  margin: 3rem 0 0.8rem;
  color: var(--navy-950);
  font-family: var(--serif);
  font-size: 2rem;
}

.policy h2:first-child {
  margin-top: 0;
}

.policy p,
.policy li {
  color: var(--muted);
}

.policy li + li {
  margin-top: 0.5rem;
}

.support-list {
  margin: 2rem 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.support-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr 0.8fr;
  }

  .hero-copy h1 {
    font-size: clamp(3.5rem, 8vw, 5.2rem);
  }

  .record-layout,
  .contact-grid,
  .contact-page-grid {
    grid-template-columns: 1fr;
  }

  .contact-river {
    max-width: 620px;
    min-height: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
  }

  .footer-note {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 820px) {
  .container,
  .narrow {
    width: min(100% - 2rem, var(--max));
  }

  .header-inner {
    min-height: 70px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav a {
    padding: 0.8rem;
  }

  .site-nav a:not(.nav-cta)::after {
    display: none;
  }

  .site-nav .nav-cta {
    margin-top: 0.4rem;
    text-align: center;
  }

  .home-hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 4.5rem 8rem;
  }

  .hero-art {
    width: min(620px, 100%);
    margin: -1.5rem auto 0;
  }

  .principles,
  .archive-grid,
  .editorial-grid,
  .address-pair {
    grid-template-columns: 1fr;
  }

  .principle {
    border-right: 0;
    border-bottom: 1px dashed var(--line);
  }

  .principle:last-child {
    border-bottom: 0;
  }

  .landscape-sketch {
    min-height: auto;
  }

  .editorial-aside {
    position: static;
  }
}

@media (max-width: 580px) {
  body {
    font-size: 15px;
  }

  .brand-text {
    font-size: 1.03rem;
  }

  .brand-mark {
    width: 27px;
    height: 33px;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 14vw, 4.2rem);
  }

  .hero-copy p {
    margin-block: 1.5rem;
  }

  .button-row .button {
    width: 100%;
  }

  .waterline {
    height: 85px;
  }

  .section {
    padding-block: 4.5rem;
  }

  .aquifer {
    margin-top: 2.5rem;
  }

  .record-table th,
  .record-table td {
    display: block;
    width: 100%;
    padding: 0.75rem 0.9rem;
  }

  .record-table th {
    padding-bottom: 0.1rem;
    border-bottom: 0;
  }

  .record-table td {
    padding-top: 0.1rem;
  }

  .page-hero h1 {
    font-size: clamp(3.1rem, 15vw, 4.3rem);
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-note {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

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

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