:root {
  --green: #0d3926;
  --green-2: #123f2d;
  --green-bright: #2d7c32;
  --leaf: #8ab21a;
  --gold: #f4a918;
  --red: #c93428;
  --red-dark: #ab2b21;
  --cream: #faf7ee;
  --paper: #ffffff;
  --ink: #10241a;
  --muted: #5f6c64;
  --line: #ded8ca;
  --shadow: 0 24px 60px rgba(13, 57, 38, 0.16);
  --radius: 8px;
  --frame: min(1160px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow: hidden;
}

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

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

.frame {
  width: var(--frame);
  margin: 0 auto;
}

.panel {
  min-height: 620px;
  padding: 92px 0;
  display: flex;
  align-items: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 247, 238, 0.94);
  border-bottom: 1px solid rgba(222, 216, 202, 0.82);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-weight: 900;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links a:not(.button) {
  position: relative;
}

.nav-links a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--green);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-small {
  min-height: 42px;
  padding: 0 16px;
  letter-spacing: 0.08em;
}

.button-red {
  color: var(--paper);
  background: var(--red);
  box-shadow: 0 16px 32px rgba(201, 52, 40, 0.22);
}

.button-red:hover,
.button-red:focus-visible {
  background: var(--red-dark);
}

.button-green {
  color: var(--paper);
  background: var(--green);
}

.button-outline {
  color: var(--green);
  background: transparent;
  border-color: rgba(13, 57, 38, 0.28);
}

.button-outline.light {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.46);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.section-title {
  font-family: "League Spartan", "Inter", sans-serif;
  letter-spacing: 0;
}

.hero {
  min-height: calc(92vh - 78px);
  padding-top: 62px;
  color: var(--green);
  background:
    linear-gradient(90deg, rgba(250, 247, 238, 0.96) 0%, rgba(250, 247, 238, 0.92) 50%, rgba(250, 247, 238, 0.5) 100%),
    url("assets/aybd-pattern.png") right center / auto 100%;
}

.hero-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 58px;
  align-items: center;
}

.hero-logo-card {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-logo-card img {
  width: 100%;
  object-fit: contain;
}

.hero-copy {
  padding: 38px;
  border-left: 8px solid var(--gold);
  background: rgba(250, 247, 238, 0.88);
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 22px;
  color: var(--green);
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.hero p {
  max-width: 650px;
  color: #244235;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.about {
  background: var(--paper);
}

.about-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: center;
}

.split-title {
  display: grid;
  color: var(--green);
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  line-height: 0.78;
  text-transform: uppercase;
}

.split-title strong {
  color: var(--red);
}

.about-copy {
  max-width: 720px;
  padding: 34px;
  border-left: 6px solid var(--leaf);
  color: var(--green);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.about-copy p {
  margin-bottom: 0;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.identity {
  color: var(--paper);
  background:
    linear-gradient(rgba(13, 57, 38, 0.9), rgba(13, 57, 38, 0.9)),
    url("assets/aybd-pattern.png") center / cover;
}

.identity-layout {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.identity-intro h2 {
  margin-bottom: 0;
  color: var(--gold);
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.identity-card {
  align-self: center;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.93);
  color: var(--green);
}

.identity-card h3 {
  margin-bottom: 18px;
  color: var(--red);
  font-size: 1.3rem;
}

.identity-card p {
  margin-bottom: 0;
  color: var(--green);
  font-size: 1.05rem;
}

.mission-card {
  transform: none;
}

.pledge {
  overflow: hidden;
  background: var(--cream);
}

.pledge-layout {
  display: block;
}

.pledge-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.pledge h2,
.program-heading h2,
.join h2,
.contact h2,
.involved h2 {
  margin-bottom: 0;
  color: var(--green);
  font-size: clamp(2.7rem, 5.8vw, 5.5rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.pledge-heading span {
  color: var(--green);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.rise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.rise-grid article,
.program-grid article {
  min-height: 238px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(13, 57, 38, 0.1);
}

.rise-grid article:nth-child(1) {
  border-top: 8px solid var(--leaf);
}

.rise-grid article:nth-child(2) {
  border-top: 8px solid var(--gold);
}

.rise-grid article:nth-child(3) {
  border-top: 8px solid var(--green-bright);
}

.rise-grid article:nth-child(4) {
  border-top: 8px solid var(--red);
}

.rise-grid h3,
.program-grid h3 {
  margin-bottom: 10px;
  color: var(--green);
  font-size: 1.15rem;
}

.rise-grid p,
.program-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.programs {
  background: var(--paper);
}

.program-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.program-grid article {
  min-height: 220px;
}

.program-grid span {
  color: var(--red);
  font-weight: 900;
}

.join {
  background: var(--cream);
}

.join-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 54px;
  align-items: start;
}

.join-layout.single {
  display: block;
}

.join-copy p {
  max-width: 620px;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 1.08rem;
}

.join-layout.single .join-copy {
  max-width: 880px;
  padding: 40px;
  border-left: 8px solid var(--gold);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.member-tags span {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--green);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-card {
  display: grid;
  gap: 18px;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.form-card label {
  display: grid;
  gap: 8px;
  color: var(--green);
  font-weight: 900;
}

.form-card input,
.form-card textarea {
  width: 100%;
  border: 0;
  border-bottom: 2px solid #cfc7b6;
  border-radius: 0;
  padding: 12px 4px;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.form-card textarea {
  resize: vertical;
}

.form-card input:focus,
.form-card textarea:focus {
  border-color: var(--green-bright);
  outline: 3px solid rgba(45, 124, 50, 0.14);
}

.check-row {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 700;
}

.check-row input {
  width: 18px;
  margin-top: 4px;
}

.involved {
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(13, 57, 38, 0.96), rgba(13, 57, 38, 0.86)),
    url("assets/aybd-pattern.png") center / cover;
}

.involved-layout {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 32px;
  align-items: center;
}

.involved h2 {
  color: var(--paper);
}

.involved p {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.contact {
  background:
    linear-gradient(90deg, var(--cream) 0 48%, rgba(13, 57, 38, 0.06) 48% 100%),
    var(--paper);
}

.contact-info {
  padding-top: 20px;
}

.contact-info h2,
.contact-info h3 {
  margin-bottom: 20px;
  color: var(--green);
  font-family: "League Spartan", "Inter", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.contact-info h3 {
  margin-top: 70px;
}

.contact-block {
  display: grid;
  gap: 14px;
  color: var(--green);
  font-size: 1.05rem;
  font-weight: 800;
}

.contact-block a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  overflow-wrap: anywhere;
}

.contact-block svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--red);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.contact-info p {
  color: var(--muted);
  font-weight: 700;
}

.contact-form h2 {
  margin-bottom: 0;
  color: var(--green);
  font-family: "League Spartan", "Inter", sans-serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  text-transform: uppercase;
}

.site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.8);
  background: #071f15;
}

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

.footer-layout img {
  width: min(420px, 100%);
  max-height: 118px;
  object-fit: contain;
  object-position: left center;
}

.footer-layout p,
.footer-layout small {
  display: block;
  margin: 0;
  text-align: right;
}

@media (max-width: 1020px) {
  .panel {
    min-height: auto;
    padding: 74px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 78px;
    right: 20px;
    left: 20px;
    display: none;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
    flex-direction: column;
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero-layout,
  .about-layout,
  .pledge-layout,
  .join-layout,
  .contact-layout,
  .identity-layout,
  .involved-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    background:
      linear-gradient(rgba(250, 247, 238, 0.94), rgba(250, 247, 238, 0.94)),
      url("assets/aybd-pattern.png") center / cover;
  }

  .hero-logo-card {
    max-width: 720px;
  }

  .mission-card {
    transform: none;
  }

  .rise-grid,
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact {
    background: var(--cream);
  }
}

@media (max-width: 660px) {
  :root {
    --frame: min(100% - 32px, 1160px);
    --shadow: 0 16px 36px rgba(13, 57, 38, 0.12);
  }

  .nav {
    min-height: 66px;
  }

  .nav-links {
    top: 66px;
    right: 16px;
    left: 16px;
    gap: 16px;
    letter-spacing: 0.08em;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .panel {
    padding: 50px 0;
  }

  .hero {
    min-height: auto;
    padding: 34px 0 48px;
  }

  .hero-layout,
  .about-layout,
  .identity-layout,
  .contact-layout,
  .involved-layout {
    gap: 24px;
  }

  .hero-logo-card {
    padding: 14px;
  }

  .hero-copy {
    padding: 22px;
    border-top: 6px solid var(--gold);
    border-left: 0;
  }

  .hero h1 {
    margin-bottom: 16px;
    font-size: clamp(2.28rem, 12.5vw, 3.5rem);
    line-height: 0.94;
  }

  .hero p,
  .about-copy p,
  .join-copy p,
  .involved p {
    font-size: 1rem;
  }

  .hero-copy,
  .about-copy,
  .identity-card,
  .form-card {
    padding: 22px;
  }

  .split-title {
    font-size: clamp(3rem, 20vw, 5.2rem);
    line-height: 0.82;
  }

  .identity-intro h2,
  .pledge h2,
  .program-heading h2,
  .join h2,
  .contact h2,
  .involved h2 {
    font-size: clamp(2.35rem, 13vw, 3.8rem);
    line-height: 0.92;
  }

  .identity-card,
  .rise-grid article,
  .program-grid article {
    min-height: 0;
  }

  .identity-card h3,
  .rise-grid h3,
  .program-grid h3 {
    margin-bottom: 8px;
  }

  .actions,
  .actions .button,
  .join-copy > .button,
  .form-card .button {
    width: 100%;
  }

  .button {
    min-height: 46px;
    padding: 0 16px;
    text-align: center;
  }

  .pledge-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
  }

  .pledge-heading span {
    font-size: 1rem;
    letter-spacing: 0.05em;
  }

  .rise-grid article,
  .program-grid article {
    padding: 20px;
  }

  .rise-grid,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .program-heading {
    margin-bottom: 22px;
  }

  .join-layout.single .join-copy {
    padding: 24px;
    border-top: 6px solid var(--gold);
    border-left: 0;
  }

  .member-tags {
    gap: 8px;
    margin-bottom: 24px;
  }

  .member-tags span {
    padding: 9px 10px;
    font-size: 0.84rem;
  }

  .contact-info {
    padding-top: 0;
  }

  .contact-info h2,
  .contact-info h3,
  .contact-form h2 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .contact-info h3 {
    margin-top: 34px;
  }

  .contact-block {
    font-size: 0.95rem;
  }

  .contact-block a {
    align-items: flex-start;
  }

  .contact-block svg {
    width: 21px;
    height: 21px;
    margin-top: 2px;
  }

  .form-card input,
  .form-card textarea {
    padding: 10px 2px;
  }

  .footer-layout {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .footer-layout img {
    width: 100%;
    max-height: none;
  }

  .footer-layout p,
  .footer-layout small {
    text-align: left;
  }
}

/* Interactive one-page preview mode */
main {
  position: relative;
  height: calc(100dvh - 78px);
  overflow: hidden;
}

.panel {
  display: none;
  width: 100%;
  height: calc(100dvh - 78px);
  min-height: 0;
  padding: clamp(34px, 6vh, 72px) 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: pageIn 280ms ease both;
  scroll-padding-bottom: 90px;
}

.panel.is-active {
  display: flex;
}

.site-footer.panel {
  display: none;
}

.site-footer.panel.is-active {
  display: flex;
}

.panel .frame {
  margin-top: auto;
  margin-bottom: auto;
}

.hero {
  min-height: 0;
}

.page-controls {
  position: fixed;
  right: 50%;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(13, 57, 38, 0.12);
  border-radius: 999px;
  background: rgba(250, 247, 238, 0.92);
  box-shadow: 0 16px 36px rgba(13, 57, 38, 0.16);
  transform: translateX(50%);
  backdrop-filter: blur(14px);
}

.page-arrow,
.page-dot {
  border: 0;
  color: var(--green);
  background: transparent;
  cursor: pointer;
}

.page-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
}

.page-arrow:hover,
.page-arrow:focus-visible {
  background: rgba(13, 57, 38, 0.08);
}

.page-arrow:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.page-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.page-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: rgba(13, 57, 38, 0.32);
  transition: width 180ms ease, background 180ms ease;
}

.page-dot.is-active {
  width: 24px;
  background: var(--red);
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

@media (max-height: 760px) and (min-width: 900px) {
  .hero h1 {
    font-size: clamp(2.7rem, 5.4vw, 4.8rem);
  }

  .pledge h2,
  .program-heading h2,
  .join h2,
  .contact h2,
  .involved h2 {
    font-size: clamp(2.4rem, 4.8vw, 4.5rem);
  }

  .rise-grid article,
  .program-grid article {
    min-height: 190px;
    padding: 22px;
  }
}

@media (max-width: 1020px) {
  main,
  .panel,
  .site-footer.panel {
    height: calc(100dvh - 78px);
  }
}

@media (max-width: 660px) {
  main,
  .panel,
  .site-footer.panel {
    height: calc(100dvh - 66px);
  }

  .panel {
    padding: 30px 0 82px;
  }

  .panel .frame {
    margin-top: 0;
    margin-bottom: 0;
  }

  .page-controls {
    right: 16px;
    bottom: 12px;
    left: 16px;
    justify-content: space-between;
    transform: none;
  }

  .page-dots {
    max-width: 190px;
    justify-content: center;
    overflow: hidden;
  }

  .page-dot {
    width: 7px;
    height: 7px;
  }

  .page-dot.is-active {
    width: 20px;
  }
}
