:root {
  --navy: #0b1c33;
  --navy-deep: #06101c;
  --crimson: #b22234;
  --crimson-hot: #d62839;
  --cream: #f7f4ef;
  --ink: #142033;
  --mist: rgba(247, 244, 239, 0.92);
  --line: rgba(247, 244, 239, 0.22);
  --shadow: 0 24px 60px rgba(6, 16, 28, 0.45);
  --font-display: "Archivo Black", Impact, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--navy-deep);
  line-height: 1.6;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

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

/* Fixed patriotic backdrop — stays while you scroll */
.flag-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      180deg,
      rgba(6, 16, 28, 0.35) 0%,
      rgba(6, 16, 28, 0.55) 45%,
      rgba(6, 16, 28, 0.88) 100%
    ),
    url("images/hero.png") center / cover no-repeat;
  transform: scale(1.04);
  animation: backdrop-drift 28s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes backdrop-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(
    180deg,
    rgba(6, 16, 28, 0.92),
    rgba(6, 16, 28, 0.55) 70%,
    transparent
  );
  backdrop-filter: blur(8px);
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  opacity: 0.9;
}

.nav a:hover {
  opacity: 1;
}

.nav-cta {
  padding: 0.55rem 1rem;
  border: 1px solid rgba(247, 244, 239, 0.45);
  background: rgba(178, 34, 52, 0.85);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--crimson-hot);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  justify-items: center;
  text-align: center;
  padding: 0 clamp(1rem, 4vw, 2.5rem) 4.5rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  animation: hero-rise 1.4s ease-out both;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(6, 16, 28, 0.45) 0%,
      rgba(6, 16, 28, 0.28) 50%,
      rgba(6, 16, 28, 0.45) 100%
    ),
    linear-gradient(
      0deg,
      rgba(6, 16, 28, 0.85) 0%,
      rgba(6, 16, 28, 0.15) 42%,
      transparent 70%
    );
}

/* Soft motion shimmer — photo already carries the flag */
.flag-wave {
  position: absolute;
  inset: -6% -4%;
  background: radial-gradient(
    ellipse 70% 55% at 70% 40%,
    rgba(255, 170, 80, 0.12),
    transparent 65%
  );
  opacity: 0.7;
  mix-blend-mode: soft-light;
  animation: flag-ripple 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes flag-ripple {
  0%,
  100% {
    transform: translate3d(0, 0, 0) skewX(0deg);
    opacity: 0.45;
  }
  50% {
    transform: translate3d(1.5%, -0.8%, 0) skewX(-1.2deg);
    opacity: 0.7;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 40rem;
  width: 100%;
  padding-bottom: 1rem;
  margin-inline: auto;
  animation: copy-in 1s ease-out 0.25s both;
}

@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f0c9a0;
}

.section-kicker.light {
  color: #f0c9a0;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 11vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.lede {
  margin: 0 auto 1.5rem;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  max-width: 32rem;
  color: rgba(247, 244, 239, 0.92);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--crimson);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--crimson-hot);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(247, 244, 239, 0.55);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--cream);
  background: rgba(247, 244, 239, 0.08);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  display: grid;
  place-items: center;
  opacity: 0.85;
}

.scroll-cue span {
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--cream);
  border-bottom: 2px solid var(--cream);
  transform: rotate(45deg);
  animation: bounce 1.8s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  50% {
    transform: translateY(6px) rotate(45deg);
  }
}

/* Full-width content bands — not floating cards */
.panel {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 3vw, 2rem);
  background: var(--mist);
  color: var(--ink);
}

.panel-inner {
  max-width: 68rem;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.panel h2 {
  margin: 0 auto 1.15rem;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.4vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--navy);
  text-wrap: balance;
  overflow-wrap: break-word;
}

.panel p {
  margin: 0 0 1rem;
  font-size: 1.18rem;
}

.panel .lead {
  max-width: 40rem;
  margin: 0 auto 1.75rem;
  font-size: 1.2rem;
  color: rgba(20, 32, 51, 0.82);
}

.prose {
  max-width: 42rem;
  margin: 0 auto 2rem;
  text-align: left;
}

.prose p + p {
  margin-top: 1rem;
}

.values {
  list-style: none;
  margin: 0;
  padding: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
  text-align: left;
  border-top: 1px solid rgba(11, 28, 51, 0.12);
}

.values li {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(11, 28, 51, 0.08);
}

.values strong {
  font-size: 1.05rem;
  color: var(--navy);
}

.values span {
  font-size: 1.05rem;
  color: rgba(20, 32, 51, 0.8);
}

.priority-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  text-align: left;
}

.priority-list li {
  display: grid;
  gap: 0.4rem;
  padding: 1.15rem 1.2rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(11, 28, 51, 0.08);
}

.priority-list strong {
  font-size: 1.12rem;
  color: var(--navy);
}

.priority-list span {
  font-size: 1.05rem;
  color: rgba(20, 32, 51, 0.82);
}

/* Photo + story sections */
.community {
  padding: 0;
}

.community-frame {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  box-shadow: none;
  background: var(--navy-deep);
}

.community-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  background: var(--navy-deep);
}

.community-photo.fill {
  object-fit: cover;
  object-position: center 42%;
  height: min(58vh, 640px);
  aspect-ratio: auto;
}

.community-photo.handshake {
  object-position: 42% 12%;
}

.community-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(1.5rem, 4vw, 2.4rem) clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(
    0deg,
    rgba(6, 16, 28, 0.94) 0%,
    rgba(6, 16, 28, 0.62) 55%,
    transparent 100%
  );
}

.community-caption p {
  margin: 0 0 0.75rem;
  font-size: 1.12rem;
  max-width: 38rem;
}

.community-caption h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  line-height: 1.14;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.community-caption p:last-child {
  margin: 0;
  color: rgba(247, 244, 239, 0.9);
}

.fly-caption {
  margin: 0;
  padding: 1rem 1.25rem 1.15rem;
  background: rgba(6, 16, 28, 0.94);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: 0.02em;
  text-transform: none;
  text-align: center;
  color: var(--cream);
}

.join-inner {
  text-align: center;
}

.join-form {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem auto 0;
  max-width: 44rem;
  text-align: left;
}

.join-form input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 16px;
  border: 1px solid rgba(11, 28, 51, 0.2);
  background: #fff;
  color: var(--ink);
}

.join-form .btn {
  width: 100%;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-status.ok {
  color: #1e6b3a;
}

.form-status.err {
  color: var(--crimson);
}

.help-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  text-align: left;
}

.help-list li {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(11, 28, 51, 0.08);
  font-size: 1.05rem;
  color: rgba(20, 32, 51, 0.82);
}

.help-list strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--navy);
  font-size: 1.08rem;
}

.fine-print {
  margin-top: 1.5rem !important;
  font-size: 0.85rem !important;
  color: rgba(20, 32, 51, 0.55) !important;
}

.site-footer {
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 2.75rem;
  text-align: center;
  background: rgba(6, 16, 28, 0.92);
  border-top: 1px solid var(--line);
}

.nowrap {
  white-space: nowrap;
}

.site-footer p {
  margin: 0.25rem auto;
  max-width: 40rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: clamp(0.72rem, 3.4vw, 0.85rem);
  text-wrap: balance;
  padding: 0 0.75rem;
}

.site-footer .muted {
  font-weight: 400;
  opacity: 0.65;
  text-transform: none;
  letter-spacing: 0;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (min-width: 720px) {
  .nav a:not(.nav-cta) {
    display: inline-flex;
  }

  .values,
  .help-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .priority-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }

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

  .join-form input[name="zip"],
  .join-form .btn {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .community-frame.split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 1fr);
    grid-template-rows: minmax(32rem, 62vh);
    align-items: stretch;
  }

  .community-frame.split .community-photo,
  .community-frame.split .community-photo.fill {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    align-self: stretch;
  }

  .community-frame.split .community-caption {
    position: relative;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--navy);
    padding: 2.5rem 2.25rem;
  }

  .community-frame.split .community-caption p {
    max-width: none;
  }

  .priority-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 719px) {
  .site-header {
    padding: 0.55rem 0.7rem;
    gap: 0.4rem;
  }

  .logo {
    font-size: clamp(0.92rem, 4.6vw, 1.05rem);
    min-width: 0;
  }

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

  .nav-cta {
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
  }

  .hero {
    min-height: 100dvh;
    padding: 0 0.75rem 3.5rem;
  }

  .hero-copy {
    max-width: 100%;
    min-width: 0;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 14vw, 3.6rem);
  }

  .lede {
    max-width: none;
  }

  .section-kicker,
  .eyebrow {
    letter-spacing: 0.1em;
    font-size: 0.72rem;
  }

  .panel h2,
  .community-caption h2 {
    font-size: clamp(1.15rem, 6vw, 1.45rem);
  }

  .community,
  .panel {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .community {
    padding-left: 0;
    padding-right: 0;
  }

  .community-photo,
  .community-photo.fill {
    height: min(42vh, 380px);
    aspect-ratio: auto;
  }

  .community-caption {
    position: relative;
    max-width: none;
    background: rgba(6, 16, 28, 0.96);
  }

  .join-form .btn {
    width: 100%;
    letter-spacing: 0.04em;
  }

  .fine-print,
  .site-footer .muted {
    text-wrap: balance;
  }
}

@media (max-width: 359px) {
  .nowrap {
    white-space: normal;
  }
}

@media (max-width: 479px) {
  .cta-row {
    display: grid;
  }

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

  .panel-inner,
  .community-caption {
    padding: 1.25rem 1.1rem;
  }

  .prose,
  .panel .lead {
    text-align: left;
  }
}

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

  .flag-backdrop,
  .flag-wave,
  .hero-photo,
  .hero-copy,
  .scroll-cue span,
  .community-photo {
    animation: none !important;
    transition: none !important;
  }

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