/* Natural scrolling by default; desktop panels opt into the SOD snap layout. */
html.sod-landing-document {
  scroll-snap-type: none;
}

.sod-landing-page .sod-panel {
  height: auto;
  min-height: 0;
  overflow: visible;
  scroll-snap-align: none;
  padding: clamp(48px, 6vw, 88px) 0;
}

.sod-landing-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.sod-landing-split > * {
  min-width: 0;
}

.sod-landing-hero,
.sod-landing-closing {
  background: var(--sod-green-950);
  color: var(--sod-white);
}

.sod-landing-page h1 {
  margin: 0;
  font-size: clamp(2.65rem, 4.5vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.sod-landing-page h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.sod-landing-page h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

.sod-landing-page .sod-section-copy p:not(.sod-eyebrow) {
  line-height: 1.7;
}

.sod-landing-lead {
  margin-top: 24px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.85);
}

.sod-landing-hero .sod-eyebrow,
.sod-landing-closing .sod-eyebrow {
  color: var(--sod-gold);
}

.sod-landing-note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.sod-landing-photo {
  margin: 0 20px 0 0;
}

.sod-landing-photo .sod-about-image-frame {
  aspect-ratio: auto;
}

.sod-landing-photo img {
  height: auto;
  object-fit: contain;
}

.sod-landing-photo figcaption {
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  line-height: 1.5;
}

.sod-landing-education,
.sod-landing-trust {
  background: var(--sod-cream);
}

.sod-landing-intro {
  max-width: 760px;
  margin: 22px 0 0;
}

.sod-landing-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.sod-landing-cards article,
.sod-landing-story {
  padding: clamp(22px, 2.5vw, 32px);
  border-top: 3px solid var(--sod-gold);
  background: var(--sod-white);
}

.sod-landing-cards p {
  margin-bottom: 0;
}

.sod-landing-mission {
  background: var(--sod-white);
}

.sod-landing-story {
  background: var(--sod-cream);
}

.sod-landing-story a,
.sod-landing-trust a {
  color: var(--sod-green-900);
  font-weight: 700;
  text-underline-offset: 4px;
}

.sod-landing-narrow {
  max-width: 800px;
}

.sod-landing-page :is(a, button):focus-visible {
  outline: 3px solid var(--sod-white);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--sod-green-800);
}

.sod-landing-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--sod-gold);
  color: var(--sod-green-950);
  transform: translateY(-160%);
}

.sod-landing-skip:focus {
  transform: translateY(0);
}

/* Match the SOD desktop snap points and sticky-header offset without clipping.
   Auto height allows panels to grow if zoom or a short viewport needs more room. */
@media (min-width: 1000px) {
  html.sod-landing-document {
    scroll-snap-type: y proximity;
    scroll-padding-top: var(--sod-header-height);
  }

  .sod-landing-page .sod-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100dvh - var(--sod-header-height));
    padding: clamp(28px, 4dvh, 48px) 0;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    scroll-margin-top: 0;
  }

  .sod-landing-page .sod-landing-closing {
    padding: 0;
  }

  .sod-landing-closing > .sod-section-copy {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4dvh, 48px) 0;
  }

  .sod-landing-closing > .kh-unified-footer {
    flex: 0 0 auto;
    width: 100%;
  }
}

/* Keep the reused footer outside the closing copy's mobile section spacing. */
@media (max-width: 999px) {
  .sod-landing-page .sod-landing-closing {
    padding-bottom: 0;
  }

  .sod-landing-closing > .sod-section-copy {
    padding-bottom: clamp(48px, 6vw, 88px);
  }
}

@media (max-width: 999px) {
  .sod-landing-split,
  .sod-landing-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .sod-landing-photo {
    width: min(100% - 20px, 636px);
  }
}

@media (max-width: 620px) {
  .sod-landing-page .sod-button {
    padding: 14px 18px;
    text-align: center;
  }
}

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

  .sod-landing-page .sod-button {
    transform: none;
  }
}
