:root {
  --indigo: #1a334f;
  --indigo-deep: #0c1726;
  --marigold: #d4920a;
  --marigold-deep: #b47808;
  --sage: #3d6b52;
  --sage-soft: #5a8f6e;
  --cream: #f6f3ee;
  --muted: #efeae2;
  --white: #fffdf9;
  --ink: #142033;
  --ink-soft: #4a5568;
  --line: rgba(26, 51, 79, 0.12);
  --shadow: 0 22px 60px rgba(12, 23, 38, 0.14);
  --shadow-soft: 0 10px 30px rgba(12, 23, 38, 0.08);
  --radius: 2px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --max: 1180px;
  --header-h: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--indigo);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--marigold-deep);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* -------------------------------------------------------------------------- */
/* Header / Nav                                                               */
/* -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 1.1rem 0;
  transition:
    background 0.35s ease,
    backdrop-filter 0.35s ease,
    box-shadow 0.35s ease,
    padding 0.35s ease;
}

.site-header.is-scrolled {
  padding: 0.7rem 0;
  background: rgba(12, 23, 38, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 8px 28px rgba(8, 16, 28, 0.28);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.95rem, 2.4vw, 1.3rem);
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
  min-width: 0;
  max-width: min(68vw, 18rem);
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 253, 249, 0.9);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ffe7a8;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 253, 249, 0.45);
  color: var(--white) !important;
  background: rgba(12, 23, 38, 0.25);
  backdrop-filter: blur(6px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav-cta:hover {
  background: rgba(212, 146, 10, 0.92);
  border-color: transparent;
  color: var(--indigo-deep) !important;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: rgba(255, 253, 249, 0.92);
  background: rgba(255, 253, 249, 0.08);
  border: 1px solid rgba(255, 253, 249, 0.22);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
  background: var(--marigold);
  border-color: transparent;
  color: var(--indigo-deep);
  transform: translateY(-1px);
}

.social-icon--light {
  background: rgba(255, 253, 249, 0.06);
  border-color: rgba(255, 253, 249, 0.2);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 253, 249, 0.45);
  background: rgba(12, 23, 38, 0.28);
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle.is-open .nav-toggle-bars {
  background: transparent;
}

.nav-toggle.is-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 23, 38, 0.35) 0%, rgba(12, 23, 38, 0.55) 45%, rgba(12, 23, 38, 0.92) 100%),
    radial-gradient(ellipse 80% 50% at 70% 18%, rgba(212, 146, 10, 0.32), transparent 55%),
    linear-gradient(165deg, #1a334f 0%, #2a4d45 38%, #6b5428 72%, #3a2a16 100%);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  animation: heroDrift 20s ease-in-out infinite alternate;
}

.hero-media.has-image {
  background-color: var(--indigo-deep);
  background-image:
    linear-gradient(180deg, rgba(12, 23, 38, 0.35) 0%, rgba(12, 23, 38, 0.55) 42%, rgba(12, 23, 38, 0.92) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-dunes {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: 1;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%230c1a2e' fill-opacity='0.55' d='M0,224L80,208C160,192,320,160,480,165.3C640,171,800,213,960,218.7C1120,224,1280,192,1360,176L1440,160L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z'/%3E%3Cpath fill='%23081522' fill-opacity='0.85' d='M0,256L120,245.3C240,235,480,213,720,208C960,203,1200,213,1320,218.7L1440,224L1440,320L1320,320C1200,320,960,320,720,320C480,320,240,320,120,320L0,320Z'/%3E%3C/svg%3E")
    no-repeat bottom center / 100% 100%;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.35'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 6rem 0 5rem;
  max-width: 42rem;
  animation: riseIn 1.05s ease-out both;
}

.hero-content--center {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
  padding-top: 7rem;
  padding-bottom: 6rem;
}

.hero-content--center .hero-support {
  margin-inline: auto;
}

.hero-content--center .hero-actions {
  justify-content: center;
}

.hero-kicker {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffe7a8;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 8vw, 4.8rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero-support {
  font-size: clamp(1.02rem, 2.2vw, 1.28rem);
  max-width: 34rem;
  margin: 0 0 1.85rem;
  color: rgba(255, 253, 249, 0.9);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  z-index: 3;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 253, 249, 0.75);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: scrollPulse 2.4s ease-in-out infinite;
}

.scroll-hint::after {
  content: "";
  width: 1px;
  height: 2.2rem;
  background: linear-gradient(180deg, rgba(255, 231, 168, 0.9), transparent);
}

.scroll-hint:hover {
  color: #ffe7a8;
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--marigold);
  color: var(--indigo-deep);
}

.btn-primary:hover {
  background: #e6a31f;
  color: var(--indigo-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 253, 249, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 253, 249, 0.1);
  color: var(--white);
}

.btn-dark {
  background: var(--indigo);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--indigo-deep);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: var(--indigo);
  color: var(--indigo);
}

.btn-outline:hover {
  background: var(--indigo);
  color: var(--white);
}

/* -------------------------------------------------------------------------- */
/* Stats                                                                      */
/* -------------------------------------------------------------------------- */

.stats-bar {
  background: var(--indigo-deep);
  color: var(--white);
  padding: 2rem 0;
  position: relative;
  z-index: 3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.stat {
  text-align: center;
  padding: 0.5rem 1.25rem;
  position: relative;
}

.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 231, 168, 0.45),
    transparent
  );
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  color: #ffe7a8;
  line-height: 1.1;
}

.stat-label {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  opacity: 0.88;
}

/* -------------------------------------------------------------------------- */
/* Sections                                                                   */
/* -------------------------------------------------------------------------- */

.section {
  padding: clamp(3.75rem, 8vw, 6.5rem) 0;
}

.section--airy {
  background: var(--cream);
}

.section--muted {
  background: var(--muted);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head--wide {
  max-width: 48rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 0.7rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 4vw, 2.85rem);
  line-height: 1.12;
  margin: 0 0 0.9rem;
  letter-spacing: -0.02em;
  color: var(--indigo-deep);
}

.lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.about-copy p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
}

.vision-stack {
  display: grid;
  gap: 1.25rem;
}

.statement {
  padding: 1.45rem 1.55rem;
  background: rgba(255, 253, 249, 0.72);
  border-left: 3px solid var(--marigold);
}

.statement h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: var(--indigo);
}

.statement p {
  margin: 0;
  color: var(--ink-soft);
}

.media-frame {
  margin: 0;
  overflow: hidden;
  background: #d9cbb4;
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.media-frame--tall img {
  aspect-ratio: 3 / 4;
  min-height: 100%;
}

/* -------------------------------------------------------------------------- */
/* Story panels (programs)                                                    */
/* -------------------------------------------------------------------------- */

.story-panels {
  display: grid;
  gap: 0;
}

.story-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(72vh, 620px);
  background: var(--cream);
}

.story-panel--reverse .story-panel__media {
  order: 2;
}

.story-panel--reverse .story-panel__copy {
  order: 1;
}

.story-panel__media {
  overflow: hidden;
  background: #cfc2ad;
  min-height: 280px;
}

.story-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.story-panel:hover .story-panel__media img {
  transform: scale(1.04);
}

.story-panel__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  background: var(--cream);
}

.story-panel:nth-child(even) .story-panel__copy,
.story-panel--reverse .story-panel__copy {
  background: var(--muted);
}

.story-panel__copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  margin: 0 0 0.85rem;
  color: var(--indigo-deep);
  line-height: 1.15;
}

.story-panel__copy p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 32rem;
  font-size: 1.05rem;
}

.story-panel__copy .eyebrow {
  color: var(--marigold-deep);
}

/* -------------------------------------------------------------------------- */
/* Approach                                                                   */
/* -------------------------------------------------------------------------- */

.approach {
  background:
    linear-gradient(135deg, rgba(26, 51, 79, 0.96), rgba(61, 107, 82, 0.9)),
    var(--indigo-deep);
  color: var(--white);
}

.approach h2,
.approach .lead {
  color: var(--white);
}

.approach .lead {
  opacity: 0.9;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.85rem 1.1rem 0.85rem 2.6rem;
  background: rgba(255, 253, 249, 0.1);
  border: 1px solid rgba(255, 253, 249, 0.18);
  font-weight: 600;
  animation: fadeUp 0.7s ease both;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  color: #ffe7a8;
}

.steps li:nth-child(2) { animation-delay: 0.08s; }
.steps li:nth-child(3) { animation-delay: 0.16s; }
.steps li:nth-child(4) { animation-delay: 0.24s; }
.steps li:nth-child(5) { animation-delay: 0.32s; }

.approach-note {
  max-width: 46rem;
  margin: 0;
  opacity: 0.92;
}

/* -------------------------------------------------------------------------- */
/* Impact                                                                     */
/* -------------------------------------------------------------------------- */

.impact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.impact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.impact-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink-soft);
}

.impact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--sage);
  border-radius: 1px;
}

.belief {
  padding: 2rem 0 0;
  border-top: 1px solid var(--line);
}

.belief h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.75rem;
  color: var(--indigo-deep);
}

.belief p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 40rem;
}

/* -------------------------------------------------------------------------- */
/* Achievements                                                               */
/* -------------------------------------------------------------------------- */

.achieve-list {
  display: grid;
  gap: 3rem;
}

.achieve-row {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  align-items: center;
}

.achieve-row.reverse {
  grid-template-columns: 1.05fr 0.95fr;
}

.achieve-row.reverse .achieve-photo {
  order: 2;
}

.achieve-row.reverse .achieve-copy {
  order: 1;
}

.achieve-photo {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #d9cbb4;
  box-shadow: var(--shadow-soft);
}

.achieve-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.achieve-row:hover .achieve-photo img {
  transform: scale(1.03);
}

.achieve-copy.full {
  grid-column: 1 / -1;
  max-width: 46rem;
}

.achieve-num {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--marigold-deep);
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.achieve-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0 0 0.65rem;
  color: var(--indigo-deep);
}

.achieve-copy p {
  margin: 0;
  color: var(--ink-soft);
}

/* -------------------------------------------------------------------------- */
/* Recognition                                                                */
/* -------------------------------------------------------------------------- */

.recog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.recog-item {
  display: grid;
  gap: 0.85rem;
}

.recog-photo {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #d9cbb4;
}

.recog-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.recog-item:hover .recog-photo img {
  transform: scale(1.04);
}

.recog-year {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--marigold-deep);
  font-weight: 700;
}

.recog-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0.2rem 0 0.35rem;
  color: var(--indigo-deep);
  line-height: 1.25;
}

.recog-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* -------------------------------------------------------------------------- */
/* Media / Press                                                              */
/* -------------------------------------------------------------------------- */

.media-block {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.media-card {
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 253, 249, 0.65);
  border: 1px solid transparent;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.media-card:hover {
  border-color: rgba(26, 51, 79, 0.12);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
  color: inherit;
}

.media-card__photo {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #d9cbb4;
}

.media-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.media-card:hover .media-card__photo img {
  transform: scale(1.04);
}

.media-card__copy {
  padding: 1.15rem 1.2rem 1.35rem;
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.media-card__copy h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0;
  color: var(--indigo-deep);
  line-height: 1.3;
}

.media-card__copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.text-link {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--indigo);
  letter-spacing: 0.02em;
}

.media-card:hover .text-link {
  color: var(--marigold-deep);
}

/* -------------------------------------------------------------------------- */
/* Gallery                                                                    */
/* -------------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  background: #d9cbb4;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  padding: 0.65rem 0.15rem 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* -------------------------------------------------------------------------- */
/* Join                                                                       */
/* -------------------------------------------------------------------------- */

.join-ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2.5rem;
  margin: 2rem 0 2.5rem;
}

.join-way h3 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  color: var(--indigo);
}

.join-way p {
  margin: 0;
  color: var(--ink-soft);
}

.closing {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--indigo-deep);
  margin: 0 0 1.5rem;
  max-width: 36rem;
  line-height: 1.25;
}

/* -------------------------------------------------------------------------- */
/* Donate                                                                     */
/* -------------------------------------------------------------------------- */

.donate-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: rgba(255, 253, 249, 0.85);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.amount-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.amount-btn {
  min-width: 5.5rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--indigo);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.amount-btn:hover,
.amount-btn.active {
  background: var(--indigo);
  border-color: var(--indigo);
  color: var(--white);
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  color: var(--ink);
  border-radius: var(--radius);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid rgba(26, 51, 79, 0.22);
  border-color: var(--indigo);
}

.form-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0.5rem 0 0;
}

.alert {
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
}

.alert-success {
  background: rgba(61, 107, 82, 0.12);
  color: var(--sage);
}

.alert-error {
  background: rgba(160, 40, 40, 0.1);
  color: #8a2a2a;
}

.alert-info {
  background: rgba(26, 51, 79, 0.1);
  color: var(--indigo);
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */

.site-footer {
  padding: 3.25rem 0 2rem;
  background: var(--indigo-deep);
  color: rgba(255, 253, 249, 0.88);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
}

.site-footer h2 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: #ffe7a8;
}

.footer-social {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 253, 249, 0.15);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* -------------------------------------------------------------------------- */
/* Reveal                                                                     */
/* -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.65;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(4px);
  }
}

/* -------------------------------------------------------------------------- */
/* Admin                                                                      */
/* -------------------------------------------------------------------------- */

.admin-body {
  background: #eef1f5;
  min-height: 100vh;
}

.admin-shell {
  width: min(100% - 2rem, 980px);
  margin: 2rem auto 3rem;
}

.admin-card {
  background: var(--white);
  border: 1px solid #d8dee8;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.admin-card h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-top h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0;
  color: var(--indigo-deep);
}

.admin-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.admin-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  display: block;
  margin: 0.4rem 0;
  background: #d9cbb4;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid #e5e9f0;
  vertical-align: top;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.login-box {
  width: min(100%, 400px);
  background: var(--white);
  padding: 2rem;
  border: 1px solid #d8dee8;
  box-shadow: var(--shadow);
}

.login-box h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 0.35rem;
}

.muted {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

.repeater-item {
  border-top: 1px solid #e5e9f0;
  padding-top: 1rem;
  margin-top: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .nav-links {
    gap: 0.85rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }
}

@media (max-width: 1024px) {
  .site-header {
    padding: 0.85rem 0;
    background: rgba(12, 23, 38, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .site-header.is-scrolled {
    background: rgba(12, 23, 38, 0.9);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 55;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.35rem;
    margin: 0;
    padding: max(5.5rem, calc(env(safe-area-inset-top) + 4.5rem)) 1.5rem 2rem;
    background: rgba(12, 23, 38, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow-y: auto;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 0.35rem;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 253, 249, 0.08);
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    margin-top: 0.75rem;
    padding: 0.95rem 1rem;
  }

  .nav-social {
    padding: 0.85rem 0 0.25rem;
    gap: 0.75rem;
  }

  .social-icon {
    width: 2.6rem;
    height: 2.6rem;
  }

  .story-panel,
  .story-panel--reverse,
  .about-grid,
  .impact-layout,
  .donate-panel,
  .footer-grid,
  .join-ways,
  .achieve-row,
  .achieve-row.reverse,
  .media-card {
    grid-template-columns: 1fr;
  }

  .story-panel,
  .story-panel--reverse {
    min-height: 0;
  }

  .story-panel--reverse .story-panel__media,
  .story-panel--reverse .story-panel__copy,
  .achieve-row.reverse .achieve-photo,
  .achieve-row.reverse .achieve-copy {
    order: initial;
  }

  .story-panel__media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .story-panel__copy {
    padding: 1.75rem 1.35rem 2.25rem;
  }

  .recog-grid,
  .media-grid,
  .gallery-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    gap: 1.25rem 0.75rem;
  }

  .stat {
    padding-right: 0.5rem;
  }

  .stat::after {
    display: none;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-content,
  .hero-content--center {
    width: 100%;
    max-width: 100%;
    padding: 5.5rem 0 4rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 12rem;
  }

  .media-frame--tall img {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .section {
    padding: clamp(3rem, 8vw, 5rem) 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  .brand {
    max-width: calc(100vw - 5.5rem);
    font-size: 0.95rem;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-media,
  .hero-media.has-image {
    background-position: 35% center;
  }

  .hero-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .hero-brand {
    font-size: clamp(1.9rem, 10vw, 2.6rem);
  }

  .hero-support {
    font-size: 1rem;
    margin-bottom: 1.35rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    flex: none;
    min-height: 3rem;
  }

  .scroll-hint {
    display: none;
  }

  .stats-bar {
    padding: 1.5rem 0;
  }

  .stats-grid,
  .gallery-grid,
  .recog-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    text-align: left;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 253, 249, 0.12);
  }

  .stat:last-child {
    border-bottom: none;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .stat-label {
    max-width: none;
  }

  h2 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .lead {
    font-size: 1.02rem;
  }

  .story-panel__copy,
  .achieve-copy,
  .recog-item,
  .join-way,
  .donate-panel {
    padding-left: 0;
    padding-right: 0;
  }

  .donate-panel {
    padding: 1.15rem;
  }

  .amount-btn {
    min-width: calc(50% - 0.35rem);
    min-height: 2.75rem;
  }

  .field input,
  .field textarea,
  .field select,
  .btn {
    font-size: 1rem;
  }

  .steps li {
    width: 100%;
  }

  .footer-social {
    margin-bottom: 0.5rem;
  }

  .admin-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer,
  .section {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 0.88rem;
  }

  .hero-brand {
    font-size: 1.75rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Reduced motion                                                             */
/* -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media,
  .reveal,
  .steps li,
  .hero-content,
  .scroll-hint {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .story-panel__media img,
  .achieve-photo img,
  .recog-photo img,
  .media-card__photo img,
  .gallery-item img,
  .btn,
  .social-icon,
  .media-card {
    transition: none !important;
  }
}
