/* Palm Beach MPO — Coastal Civic Design System */
:root {
  --navy: #0b1f33;
  --navy-deep: #061420;
  --ocean: #16466b;
  --sea: #1f6f7a;
  --foam: #e6f0f3;
  --mist: #f4f7f9;
  --ivory: #fbfcfd;
  --brass: #9a7b3c;
  --brass-light: #c4a86a;
  --ink: #121c26;
  --muted: #5c6b78;
  --line: rgba(11, 31, 51, 0.1);
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(6, 20, 32, 0.12);
  --radius: 2px;
  --header-h: 88px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.container-wide {
  width: min(1400px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--navy);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 10000;
  border-radius: 4px;
}

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

/* Typography */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--navy);
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 42rem;
}

h1.display {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
}

h2.display {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3.display {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brass);
  color: var(--navy-deep);
}

.btn-primary:hover {
  background: var(--brass-light);
  box-shadow: 0 12px 30px rgba(154, 123, 60, 0.28);
}

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

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

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: rgba(11, 31, 51, 0.25);
}

.btn-outline:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.btn-dark:hover,
.btn-dark:focus {
  background: var(--ocean);
  color: #fff;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Top bar */
.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
}

.topbar a:hover {
  color: white;
}

.topbar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 252, 253, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease),
    background 0.35s var(--ease);
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 40px rgba(6, 20, 32, 0.06);
  background: rgba(251, 252, 253, 0.97);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: transparent;
  color: transparent;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: none;
  overflow: visible;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

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

.nav > li {
  position: relative;
}

.nav > li > a,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--ink);
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.nav > li > a:not(.btn):hover,
.nav-trigger:hover,
.nav > li > a:not(.btn).active,
.nav-trigger.active {
  color: var(--ocean);
}

.nav-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s ease;
}

.nav > li:hover .nav-trigger svg,
.nav > li:focus-within .nav-trigger svg {
  transform: rotate(180deg);
}

.mega {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
    visibility 0.28s;
  z-index: 50;
}

.nav > li:hover .mega,
.nav > li:focus-within .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega a {
  display: block;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}

.mega a:hover {
  background: var(--foam);
  color: var(--navy);
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav > li > a.btn,
.nav > li > a.btn-dark,
.nav > li > a.nav-cta {
  background-color: #0b1f33 !important;
  background-image: none !important;
  color: #ffffff !important;
  padding: 0.75rem 1.35rem;
  border: 1px solid #0b1f33 !important;
  border-radius: 2px;
  min-height: 44px;
}

.nav > li > a.btn:hover,
.nav > li > a.btn:focus,
.nav > li > a.btn-dark:hover,
.nav > li > a.btn-dark:focus,
.nav > li > a.nav-cta:hover,
.nav > li > a.nav-cta:focus {
  background-color: #16466b !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: #16466b !important;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 2px;
  cursor: pointer;
  place-items: center;
  position: relative;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 38px);
  min-height: calc(100svh - 38px);
  display: grid;
  align-items: end;
  color: white;
  overflow: hidden;
  isolation: isolate;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 20, 32, 0.35) 0%, rgba(6, 20, 32, 0.55) 42%, rgba(6, 20, 32, 0.88) 100%),
    linear-gradient(90deg, rgba(6, 20, 32, 0.55) 0%, rgba(6, 20, 32, 0.15) 60%);
}

.hero-content {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 7rem 0 5.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 14ch;
  margin-bottom: 1.25rem;
  color: white;
}

.hero-copy {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.hero-scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), transparent);
  animation: pulse-line 2.2s ease-in-out infinite;
}

@keyframes pulse-line {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.7);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Quick links strip */
.quick-strip {
  background: var(--navy);
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.quick-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.6rem 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease;
}

.quick-item:last-child {
  border-right: none;
}

.quick-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.quick-item strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 550;
}

.quick-item span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}

/* Sections */
.section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.75rem;
}

.section-head .lead {
  margin-top: 0.85rem;
}

.section-muted {
  background: var(--mist);
}

.section-navy {
  background: var(--navy);
  color: white;
}

.section-navy .display {
  color: white;
}

.section-navy .lead,
.section-navy .muted {
  color: rgba(255, 255, 255, 0.7);
}

.section-navy .eyebrow {
  color: var(--brass-light);
}

/* Mission band */
.mission-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.mission-visual {
  position: relative;
  min-height: 480px;
  overflow: hidden;
}

.mission-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease);
}

.mission-visual:hover img {
  transform: scale(1);
}

.mission-caption {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  right: 1.25rem;
  background: rgba(11, 31, 51, 0.82);
  color: white;
  padding: 1rem 1.15rem;
  backdrop-filter: blur(8px);
}

.mission-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.mission-caption span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.mission-copy .display {
  margin: 0.75rem 0 1.25rem;
}

.mission-list {
  margin: 1.75rem 0 2rem;
  display: grid;
  gap: 0.9rem;
}

.mission-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.85rem;
  align-items: start;
  color: var(--muted);
}

.mission-list svg {
  width: 22px;
  height: 22px;
  color: var(--sea);
  margin-top: 0.15rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 3rem;
}

.stat {
  background: white;
  padding: 2rem 1.5rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--muted);
}

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

.program {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  color: white;
  display: block;
  background: var(--navy);
}

.program img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 1s var(--ease);
}

.program:hover img {
  transform: scale(1.06);
}

.program::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 20, 32, 0.2), rgba(6, 20, 32, 0.9));
}

.program-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.75rem;
}

.program-body h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin: 0.35rem 0 0.5rem;
}

.program-body p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  max-width: 36ch;
}

.program-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-light);
}

/* Meetings */
.meetings-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.meeting-intro {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.meeting-list {
  display: grid;
  gap: 0.75rem;
}

.meeting {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  background: white;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s var(--ease),
    box-shadow 0.25s ease;
}

a.meeting:hover,
.meeting:hover {
  border-color: rgba(22, 70, 107, 0.35);
  transform: translateX(4px);
  box-shadow: 0 12px 30px rgba(6, 20, 32, 0.06);
}

.meeting-link {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translate(8px, -50%);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ocean);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
  white-space: nowrap;
}

a.meeting:hover .meeting-link,
a.meeting:focus .meeting-link {
  opacity: 1;
  transform: translate(0, -50%);
}

a.meeting:hover .meeting-time,
a.meeting:focus .meeting-time {
  opacity: 0;
}

.meeting-date {
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 1rem;
}

.meeting-date .month {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 650;
}

.meeting-date .day {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--navy);
}

.meeting-info h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.meeting-info p {
  font-size: 0.88rem;
  color: var(--muted);
}

.meeting-time {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ocean);
  white-space: nowrap;
}

/* Engage */
.engage-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
}

.engage-feature {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  color: white;
}

.engage-feature video,
.engage-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.engage-feature .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 20, 32, 0.85), rgba(6, 20, 32, 0.35));
}

.engage-feature .content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 2.25rem;
}

.engage-side {
  display: grid;
  gap: 1.25rem;
}

.engage-card {
  background: white;
  border: 1px solid var(--line);
  padding: 1.75rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: linear-gradient(165deg, rgba(230, 240, 243, 0.65), transparent 55%);
}

.engage-card h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--navy);
  margin: 0.4rem 0 0.6rem;
}

.engage-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Page hero (inner) */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  color: white;
  overflow: hidden;
}

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

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

.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 20, 32, 0.35), rgba(6, 20, 32, 0.82));
}

.page-hero-content {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 6rem 0 3.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 500;
  max-width: 16ch;
  margin-top: 0.75rem;
}

.page-hero p {
  margin-top: 1rem;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.08rem;
}

/* Content layouts */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split.reverse > :first-child {
  order: 2;
}

.content-prose {
  max-width: 68ch;
}

.content-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--navy);
  margin: 2rem 0 0.85rem;
}

.content-prose h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--navy);
  margin: 1.5rem 0 0.6rem;
}

.content-prose p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.content-prose ul {
  margin: 0 0 1.25rem 1.1rem;
  list-style: disc;
  color: var(--muted);
}

.content-prose li {
  margin-bottom: 0.45rem;
}

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

.icon-tile {
  padding: 1.75rem;
  border: 1px solid var(--line);
  background: white;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.icon-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.icon-tile .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--foam);
  color: var(--ocean);
  margin-bottom: 1rem;
}

.icon-tile h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.icon-tile p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Timeline */
.timeline {
  display: grid;
  gap: 0;
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--brass), var(--ocean));
}

.timeline-item {
  position: relative;
  padding: 0 0 2rem 1.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.55rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brass);
  transform: translateX(-4px);
  box-shadow: 0 0 0 4px rgba(154, 123, 60, 0.18);
}

.timeline-item h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
}

.timeline-item p {
  color: var(--muted);
  margin-top: 0.35rem;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  padding: 0.9rem 1rem;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(22, 70, 107, 0.12);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.contact-info {
  background: var(--navy);
  color: white;
  padding: 2.5rem;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin: 0.6rem 0 1rem;
}

.contact-info p,
.contact-info a {
  color: rgba(255, 255, 255, 0.78);
}

.contact-info .meta {
  margin-top: 2rem;
  display: grid;
  gap: 1.1rem;
}

.contact-info .meta strong {
  display: block;
  color: var(--brass-light);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.contact-form-wrap {
  background: white;
  border: 1px solid var(--line);
  padding: 2rem;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-brand .brand-name {
  color: white;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 32ch;
  font-size: 0.95rem;
}

.footer-col h4 {
  color: white;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-col a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  font-size: 0.8rem;
}

.socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.socials a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease,
    transform 0.25s ease;
}

.socials a svg {
  width: 18px;
  height: 18px;
  display: block;
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--brass-light);
  color: #fff;
  transform: translateY(-2px);
}

.ada-notice {
  background: rgba(255, 255, 255, 0.04);
  padding: 1.25rem 0;
  font-size: 0.8rem;
  line-height: 1.55;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Map placeholder */
.map-frame {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--foam);
  border: 1px solid var(--line);
}

.map-frame iframe,
.map-frame img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border: 0;
}

.map-badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  background: rgba(11, 31, 51, 0.9);
  color: white;
  padding: 1rem 1.15rem;
  max-width: 280px;
}

.map-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

/* Mobile nav */
.mobile-nav {
  display: none;
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  :root {
    --header-h: 72px;
  }

  .container,
  .container-wide {
    width: min(1180px, calc(100% - 2rem));
  }

  .hero-content,
  .page-hero-content {
    width: min(1180px, calc(100% - 2rem));
  }

  .nav {
    display: none !important;
  }

  .menu-toggle {
    display: grid;
    flex-shrink: 0;
  }

  .nav-wrap {
    min-height: var(--header-h);
    gap: 0.75rem;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .mobile-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100svh - var(--header-h) - 38px);
    overflow-y: auto;
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 0.5rem 0 1.25rem;
    box-shadow: 0 24px 40px rgba(6, 20, 32, 0.12);
    z-index: 1200;
  }

  .mobile-nav.open {
    display: block;
  }

  .mobile-nav a {
    display: block;
    padding: 0.95rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--navy);
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav a:last-child {
    border-bottom: none;
  }

  .mobile-nav .mobile-cta {
    margin: 1rem 1.25rem 0.35rem;
    text-align: center;
    background: var(--navy) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 2px;
    padding: 0.95rem 1rem !important;
  }

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

  .quick-item {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1rem;
  }

  .quick-item:nth-child(2n) {
    border-right: none;
  }

  .quick-item:last-child {
    grid-column: 1 / -1;
    border-right: none;
  }

  .mission-band,
  .meetings-layout,
  .engage-grid,
  .split,
  .contact-panel,
  .footer-grid,
  .program-grid,
  .icon-grid {
    grid-template-columns: 1fr;
  }

  .mission-caption {
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.85rem;
    padding: 0.85rem 0.95rem;
  }

  .mission-visual {
    min-height: 260px;
  }

  .meeting-intro {
    position: static;
  }

  .split.reverse > :first-child {
    order: 0;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
  }

  .cta-group {
    width: 100%;
  }

  .cta-group .btn {
    width: 100%;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 4.5rem 0 3.25rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
    max-width: 12ch;
  }

  .hero-copy {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-scroll {
    display: none;
  }

  .page-hero {
    min-height: 34vh;
  }

  .page-hero-content {
    padding: 4rem 0 2.5rem;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

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

  .stat {
    padding: 1.5rem 1rem;
  }

  .stat-value {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .program {
    min-height: 240px;
  }

  .meeting {
    grid-template-columns: 68px 1fr;
    gap: 0.85rem;
    padding: 1rem;
  }

  .meeting-time {
    grid-column: 2;
    justify-self: start;
  }

  .meeting-link {
    display: none;
  }

  a.meeting:hover .meeting-time,
  a.meeting:focus .meeting-time {
    opacity: 1;
  }

  .engage-feature .content {
    padding: 1.5rem;
  }

  .engage-card {
    min-height: auto;
  }

  .contact-info,
  .contact-form-wrap {
    padding: 1.5rem;
  }

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

  .map-frame,
  .map-frame iframe,
  .map-frame img {
    min-height: 280px;
  }

  .map-badge {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
  }

  .footer-grid {
    gap: 1.75rem;
  }
}

@media (max-width: 720px) {
  .topbar {
    font-size: 0.72rem;
  }

  .topbar-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0;
    min-height: 0;
  }

  .topbar-meta {
    gap: 0;
    min-width: 0;
  }

  .topbar-meta span:first-child,
  .topbar-actions .hide-sm,
  .topbar-actions a[href="#newsletter"] {
    display: none !important;
  }

  .topbar-actions {
    width: auto;
    flex-shrink: 0;
    gap: 0.85rem;
  }

  .brand-sub {
    display: none;
  }

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

  .nav-wrap {
    min-height: 64px;
  }

  .hero-content {
    padding: 3.25rem 0 2.5rem;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.45rem);
    margin-bottom: 0.85rem;
  }

  .hero-brand {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
  }

  .hero-copy {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

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

  .quick-item,
  .quick-item:nth-child(2n),
  .quick-item:last-child {
    grid-column: auto;
    border-right: none;
  }

  .mission-list li {
    grid-template-columns: 22px 1fr;
    gap: 0.65rem;
  }

  .program-body {
    padding: 1.25rem;
  }

  .program-body h3 {
    font-size: 1.45rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .ada-notice {
    font-size: 0.75rem;
  }

  .display {
    letter-spacing: -0.015em;
  }

  h2.display {
    font-size: clamp(1.75rem, 7vw, 2.35rem);
  }

  .hero .btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
  }

  .hero .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
  }

/* Prevent accidental horizontal scroll on small screens */
@media (max-width: 1024px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  img,
  video,
  iframe {
    max-width: 100%;
  }

  /* Don't break cover/absolute media with height:auto */
  .hero-media video,
  .hero-media img,
  .page-hero-media img,
  .program img,
  .mission-visual img,
  .engage-feature video,
  .engage-feature img,
  .map-frame img,
  .map-frame iframe {
    height: 100%;
    max-width: none;
    width: 100%;
  }

  .stat-value {
    word-break: break-word;
  }

  .mission-band {
    gap: 1.75rem;
  }

  .mission-visual {
    width: 100%;
    margin: 0;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}




/* Full-page media loader */
body.is-loading {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--ocean) 100%);
  color: #fff;
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}

.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  padding: 2rem;
}

.page-loader-mark {
  width: 56px;
  height: 56px;
}

.page-loader-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

.page-loader-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--brass-light);
  animation: page-spin 0.85s linear infinite;
}

.page-loader p {
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

@keyframes page-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader-spinner {
    animation-duration: 1.6s;
  }
  .page-loader {
    transition-duration: 0.2s;
  }
}
