:root {
  --forest-950: #1e390c;
  --forest-900: #27470f;
  --forest-800: #315315;
  --forest-700: #41691b;
  --lime: #8ab719;
  --sun: #ffc21a;
  --cream: #f7f4e9;
  --white: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.18);
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--forest-900);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--white);
  background: var(--forest-900);
  font-family: "Manrope", sans-serif;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  color: var(--forest-950);
  background: var(--sun);
  border-radius: 4px;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 180ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.site-shell {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(24px, 4vw, 56px) max(24px, calc((100vw - var(--content-width)) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 23%, rgba(138, 183, 25, 0.15), transparent 28%),
    linear-gradient(118deg, var(--forest-800) 0%, var(--forest-900) 62%, var(--forest-950) 100%);
}

.site-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.17;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.background-rings {
  position: absolute;
  z-index: -1;
  right: clamp(-360px, -17vw, -110px);
  bottom: clamp(-390px, -30vw, -130px);
  width: min(72vw, 850px);
  aspect-ratio: 1;
  pointer-events: none;
}

.background-rings span {
  position: absolute;
  inset: 0;
  border: clamp(45px, 6vw, 86px) solid rgba(192, 197, 35, 0.16);
  border-radius: 50%;
}

.background-rings span:nth-child(2) {
  inset: 21%;
  border-width: clamp(30px, 4vw, 58px);
  border-color: rgba(255, 194, 26, 0.08);
}

.background-rings span:nth-child(3) {
  inset: 40%;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.12);
}

.brand-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 108px;
  animation: reveal 600ms 80ms both ease-out;
}

.municipal-logo {
  width: clamp(210px, 25vw, 330px);
  height: auto;
  margin: clamp(-70px, -5vw, -30px) 0;
  filter: drop-shadow(0 10px 18px rgba(8, 25, 3, 0.18));
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: center;
  gap: clamp(36px, 6vw, 100px);
  width: 100%;
  padding: clamp(44px, 7vh, 92px) 0;
}

.hero-copy {
  min-width: 0;
  max-width: 770px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--sun);
  font-size: clamp(0.72rem, 1vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  animation: reveal 600ms 180ms both ease-out;
}

.eyebrow span {
  flex: 0 0 auto;
  width: 34px;
  height: 3px;
  background: var(--sun);
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--cream);
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(3.4rem, 8.2vw, 7.65rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.82;
  text-wrap: balance;
  animation: reveal 700ms 260ms both ease-out;
}

.intro {
  max-width: 630px;
  margin: clamp(30px, 4vw, 44px) 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  animation: reveal 650ms 360ms both ease-out;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  margin-top: 26px;
  padding: 10px 15px;
  color: var(--white);
  background: rgba(20, 49, 8, 0.42);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 600;
  backdrop-filter: blur(7px);
  animation: reveal 650ms 440ms both ease-out;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: var(--sun);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 194, 26, 0.12);
  animation: pulse 2.2s infinite ease-in-out;
}

.environmental-seal {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: end;
  width: min(100%, 360px);
  aspect-ratio: 1;
  animation: seal-in 800ms 320ms both ease-out;
}

.environmental-seal::before,
.environmental-seal::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.environmental-seal::before {
  inset: 3%;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.environmental-seal::after {
  inset: -9%;
  border: 1px dashed rgba(255, 194, 26, 0.32);
  animation: slow-spin 24s linear infinite;
}

.seal-glow {
  position: absolute;
  inset: 10%;
  background: rgba(255, 255, 255, 0.93);
  border-radius: 50%;
  box-shadow: 0 28px 70px rgba(8, 26, 2, 0.35);
}

.environmental-seal img {
  position: relative;
  z-index: 1;
  width: 155%;
  max-width: none;
  height: auto;
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: reveal 600ms 520ms both ease-out;
}

.site-footer p {
  margin: 0;
}

.footer-year span {
  padding: 0 5px;
  color: var(--sun);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes seal-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(255, 194, 26, 0.04);
  }
}

@media (max-width: 800px) {
  .site-shell {
    padding-inline: clamp(22px, 7vw, 48px);
  }

  .brand-header {
    min-height: 88px;
  }

  .municipal-logo {
    width: clamp(205px, 54vw, 270px);
    margin: -55px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 54px;
    padding: clamp(62px, 9vh, 96px) 0 70px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3rem, 10.5vw, 5.25rem);
    line-height: 0.9;
  }

  .environmental-seal {
    position: absolute;
    right: -100px;
    bottom: -18px;
    z-index: -1;
    width: 285px;
    opacity: 0.17;
    animation: none;
  }

  .environmental-seal::before,
  .environmental-seal::after,
  .seal-glow {
    display: none;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .background-rings {
    right: -320px;
    bottom: -160px;
    width: 680px;
  }
}

@media (max-width: 420px) {
  .site-shell {
    padding-block: 22px;
  }

  .eyebrow {
    align-items: flex-start;
    max-width: 270px;
  }

  .eyebrow span {
    margin-top: 8px;
  }

  h1 {
    font-size: clamp(2.8rem, 12.5vw, 3.25rem);
    letter-spacing: -0.07em;
  }

  .intro {
    line-height: 1.6;
  }

  .status {
    max-width: 100%;
    line-height: 1.35;
  }
}

@media (max-height: 720px) and (min-width: 801px) {
  .site-shell {
    padding-block: 24px;
  }

  .brand-header {
    min-height: 76px;
  }

  .municipal-logo {
    width: 240px;
    margin: -56px 0;
  }

  .hero {
    padding-block: 30px;
  }

  h1 {
    font-size: clamp(4.6rem, 9.5vh, 6.4rem);
  }

  .intro {
    margin-top: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
