:root {
  --ink: #17211b;
  --muted: #5c665f;
  --paper: #f7f3ea;
  --paper-2: #ece4d2;
  --green: #244734;
  --green-2: #123227;
  --lake: #5f8fa7;
  --brass: #c7a35f;
  --white: #fffaf0;
  --line: rgba(23, 33, 27, 0.14);
  --shadow: 0 24px 70px rgba(18, 34, 28, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 78px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.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;
}

.site-header {
  position: fixed;
  inset: 18px clamp(16px, 3vw, 42px) auto;
  z-index: 50;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 14px 12px 18px;
  color: var(--white);
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 8px;
  background: rgba(18, 38, 30, 0.34);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
  transform: translateY(-110%);
  animation: headerIn 0.75s var(--ease) forwards;
}

.site-header.is-scrolled {
  color: var(--ink);
  border-color: rgba(23, 33, 27, 0.12);
  background: rgba(247, 243, 234, 0.88);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: var(--ink);
  border-radius: 8px;
  background: var(--white);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 0.98rem;
  font-weight: 760;
}

.brand small {
  margin-top: 3px;
  color: currentColor;
  font-size: 0.78rem;
  opacity: 0.72;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.3vw, 34px);
  flex: 1;
  font-size: 0.92rem;
}

.desktop-nav a,
.footer nav a {
  opacity: 0.82;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.desktop-nav a:hover,
.footer nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.social-link,
.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 44px;
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 8px;
  color: currentColor;
  background: rgba(255, 250, 240, 0.1);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.site-header.is-scrolled .social-link,
.site-header.is-scrolled .menu-button {
  border-color: rgba(23, 33, 27, 0.12);
  background: rgba(23, 33, 27, 0.06);
}

.social-link {
  gap: 8px;
  padding: 0 13px;
  font-size: 0.88rem;
  font-weight: 700;
}

.social-link svg,
.menu-button svg {
  width: 19px;
  height: 19px;
}

.social-link:hover,
.menu-button:hover,
.button:hover,
.contact-actions a:hover,
.lookup-link:hover {
  transform: translateY(-2px);
}

.social-link:active,
.menu-button:active,
.button:active,
.contact-actions a:active,
.lookup-link:active {
  transform: translateY(0) scale(0.98);
}

.menu-button {
  display: none;
  cursor: pointer;
}

.icon-close,
.menu-button[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-button[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: min(900px, 88svh);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: end;
  gap: clamp(24px, 4vw, 62px);
  overflow: hidden;
  padding: calc(var(--header-h) + 74px) clamp(18px, 5vw, 72px) 44px;
  color: var(--white);
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(var(--hero-x, 0), var(--hero-y, 0), 0) scale(1.06);
  transform-origin: center;
  animation: heroBreathe 18s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(12, 30, 24, 0.88) 0%, rgba(12, 30, 24, 0.54) 40%, rgba(12, 30, 24, 0.1) 72%),
    linear-gradient(180deg, rgba(12, 30, 24, 0.52) 0%, transparent 45%, rgba(12, 30, 24, 0.58) 100%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 250, 240, 0.28) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 40%, rgba(255, 250, 240, 0.18) 0 1px, transparent 1px);
  background-size: 29px 29px, 41px 41px;
  mix-blend-mode: screen;
}

.hero-inner {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: #886c36;
}

.hero-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.15rem, 9vw, 9.7rem);
  font-weight: 500;
  line-height: 0.86;
}

.hero-title span {
  display: block;
}

.hero-line-2 {
  color: rgba(255, 250, 240, 0.74);
}

.hero-copy {
  width: min(650px, 100%);
  margin: 26px 0 0;
  color: rgba(255, 250, 240, 0.82);
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 780;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.button svg {
  width: 18px;
  height: 18px;
}

.button.primary {
  color: var(--green-2);
  background: var(--white);
}

.button.primary:hover {
  background: #ffffff;
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 250, 240, 0.32);
  background: rgba(255, 250, 240, 0.09);
  backdrop-filter: blur(10px);
}

.hero-panel {
  align-self: end;
  padding: 20px;
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 8px;
  background: rgba(12, 30, 24, 0.42);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  animation: panelFloat 6s ease-in-out infinite alternate;
}

.panel-kicker {
  display: inline-block;
  margin-bottom: 13px;
  color: var(--brass);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.05;
}

.hero-panel p {
  margin: 12px 0 18px;
  color: rgba(255, 250, 240, 0.74);
  line-height: 1.55;
}

.panel-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.panel-metrics span {
  min-height: 94px;
  padding: 13px;
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.11);
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.8rem;
  line-height: 1.25;
}

.panel-metrics b {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-size: 1.65rem;
}

.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.topic-ribbon {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  padding: 26px 0;
  color: var(--white);
  background: var(--green-2);
}

.ribbon-shell {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topic-ribbon h2 {
  margin: 0;
  flex: 0 0 auto;
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-links a {
  padding: 11px 13px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
  font-size: 0.9rem;
  transition: transform 0.18s ease, background 0.18s ease;
}

.topic-links a:hover {
  transform: translateY(-2px);
  background: rgba(255, 250, 240, 0.14);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: start;
}

.section-heading h2 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 0.98;
}

.section-heading.centered {
  display: grid;
  justify-items: center;
  text-align: center;
}

.intro-copy {
  padding-top: 11px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
  line-height: 1.8;
}

.intro-copy p:first-child {
  margin-top: 0;
}

.why-section {
  background: #fbf8ef;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 48px;
}

.feature-card {
  min-height: 310px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-7px);
  border-color: rgba(36, 71, 52, 0.22);
  box-shadow: 0 18px 50px rgba(36, 71, 52, 0.12);
}

.feature-number {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 52px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--green);
  background: rgba(36, 71, 52, 0.08);
  font-size: 0.76rem;
  font-weight: 820;
  text-transform: uppercase;
}

.feature-card h3,
.benefit-grid h3,
.mayor-card h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.2;
}

.feature-card p,
.benefit-grid p,
.restoration-copy p,
.board-item p,
.contact-heading p {
  color: var(--muted);
  line-height: 1.7;
}

.restoration-section {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(18, 50, 39, 0.94), rgba(36, 71, 52, 0.86)),
    url("assets/lighthouse-dunes-hero.png") center / cover fixed;
}

.restoration-section .eyebrow.dark,
.restoration-section .restoration-copy p {
  color: rgba(255, 250, 240, 0.78);
}

.restoration-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.82fr);
  gap: clamp(38px, 7vw, 90px);
  align-items: center;
}

.restoration-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 5.15rem);
  font-weight: 500;
  line-height: 0.98;
}

.restoration-copy p {
  max-width: 680px;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
}

.text-link,
.lookup-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  color: currentColor;
  font-weight: 800;
  transition: transform 0.18s ease;
}

.text-link svg,
.lookup-link svg {
  width: 18px;
  height: 18px;
}

.restoration-board {
  position: relative;
  display: grid;
  gap: 16px;
}

.board-line {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 20px;
  width: 1px;
  background: linear-gradient(rgba(199, 163, 95, 0), rgba(199, 163, 95, 0.72), rgba(199, 163, 95, 0));
  transform-origin: top;
  animation: linePulse 2.8s ease-in-out infinite;
}

.board-item {
  position: relative;
  min-height: 122px;
  padding: 20px 20px 20px 64px;
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
  backdrop-filter: blur(12px);
}

.board-item span {
  position: absolute;
  left: 14px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 30px;
  border: 1px solid rgba(199, 163, 95, 0.52);
  border-radius: 8px;
  color: var(--brass);
  background: rgba(18, 50, 39, 0.86);
  font-size: 0.67rem;
  font-weight: 820;
  text-transform: uppercase;
}

.board-item strong {
  display: block;
  font-size: 1.08rem;
}

.board-item p {
  margin: 8px 0 0;
  color: rgba(255, 250, 240, 0.72);
}

.benefits-section {
  background: var(--paper-2);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 48px;
  background: var(--line);
  border: 1px solid var(--line);
}

.benefit-grid article {
  min-height: 230px;
  padding: 24px;
  background: var(--paper);
}

.contact-section {
  background: #fbf8ef;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 24px;
  align-items: start;
}

.contact-heading {
  position: sticky;
  top: 126px;
}

.contact-heading h2 {
  max-width: 520px;
}

.mayor-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(36, 71, 52, 0.16);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(36, 71, 52, 0.1);
}

.avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--lake));
  font-weight: 840;
}

.mayor-card span,
.district-grid span,
.district-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.contact-actions {
  display: flex;
  gap: 8px;
}

.contact-actions a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(36, 71, 52, 0.16);
  border-radius: 8px;
  color: var(--green);
  background: rgba(36, 71, 52, 0.06);
  transition: transform 0.18s ease, background 0.18s ease;
}

.contact-actions a:hover {
  background: rgba(36, 71, 52, 0.1);
}

.contact-actions svg {
  width: 19px;
  height: 19px;
}

.district-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.district-grid article {
  min-height: 122px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.district-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 71, 52, 0.2);
  background: var(--white);
}

.district-grid strong {
  display: block;
  margin: 10px 0 12px;
  font-size: 1rem;
  line-height: 1.25;
}

.lookup-link {
  grid-column: 2;
  justify-self: start;
  margin-top: 8px;
  padding: 0 15px;
  border: 1px solid rgba(36, 71, 52, 0.16);
  border-radius: 8px;
  color: var(--green);
  background: var(--white);
}

.footer {
  padding: 32px 0;
  color: rgba(255, 250, 240, 0.84);
  background: var(--green-2);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand.compact {
  min-width: auto;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-hero {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.78s var(--ease) forwards;
}

.hero-line-1 {
  animation-delay: 0.2s;
}

.hero-line-2 {
  animation-delay: 0.35s;
}

.hero-copy-delay {
  animation-delay: 0.52s;
}

.hero-cta-delay {
  animation-delay: 0.66s;
}

.reveal-panel {
  opacity: 0;
  transform: translateX(34px);
  animation: fadeRight 0.86s var(--ease) 0.48s forwards, panelFloat 6s ease-in-out 1.4s infinite alternate;
}

@keyframes headerIn {
  to {
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroBreathe {
  from {
    transform: translate3d(var(--hero-x, 0), var(--hero-y, 0), 0) scale(1.06);
  }
  to {
    transform: translate3d(var(--hero-x, 0), var(--hero-y, 0), 0) scale(1.1);
  }
}

@keyframes panelFloat {
  from {
    translate: 0 0;
  }
  to {
    translate: 0 -8px;
  }
}

@keyframes linePulse {
  0%,
  100% {
    transform: scaleY(0.72);
    opacity: 0.58;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .site-header {
    inset: 12px 12px auto;
  }

  .desktop-nav,
  .social-link span {
    display: none;
  }

  .brand {
    flex: 1;
    min-width: 0;
  }

  .menu-button {
    display: inline-flex;
  }

  .mobile-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid rgba(255, 250, 240, 0.22);
    border-radius: 8px;
    background: rgba(18, 38, 30, 0.94);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .site-header.is-scrolled .mobile-nav {
    color: var(--white);
  }

  .mobile-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-nav a {
    padding: 14px 12px;
    border-radius: 8px;
    background: rgba(255, 250, 240, 0.07);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 126px;
  }

  .hero-title {
    font-size: clamp(3.45rem, 15vw, 6.8rem);
  }

  .ribbon-shell,
  .split,
  .restoration-layout,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .ribbon-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-grid,
  .benefit-grid,
  .district-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-heading {
    position: static;
  }

  .mayor-card,
  .district-grid,
  .lookup-link {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 66px;
  }

  .site-header {
    min-height: var(--header-h);
    padding: 10px;
  }

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

  .brand small {
    display: none;
  }

  .hero {
    gap: 28px;
    padding: 112px 16px 32px;
  }

  .hero-panel {
    display: none;
  }

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

  .hero-cta,
  .panel-metrics,
  .feature-grid,
  .benefit-grid,
  .district-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    display: grid;
  }

  .button {
    width: 100%;
  }

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

  .benefit-grid {
    display: grid;
  }

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

  .contact-actions {
    grid-column: 1 / -1;
  }

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

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

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

  [data-reveal],
  .reveal-hero,
  .reveal-panel {
    opacity: 1;
    transform: none;
  }
}
