/* Mazhaka Foundation — V70: Four Gradient Environments
 * Design source: the four approved gradient hero concept treatments.
 * Changes only the background surfaces below the hero and on the Stories archive.
 * The opening photographic hero, V50/54 logo transition, header, slides,
 * original type, image cards and documentary photograph sections are untouched.
 * This stylesheet is deliberately loaded LAST, overriding any earlier
 * V62–V69 illustrated backgrounds if present in the installation.
 */
:root {
  /* 01 — Forest Light: calm, soft illumination. */
  --mz-forest-light:
    radial-gradient(ellipse 62% 92% at 78% 18%, rgba(53,109,79,.37) 0%, rgba(24,78,51,.16) 48%, transparent 78%),
    radial-gradient(ellipse 74% 50% at 9% 100%, rgba(1,15,13,.53), transparent 70%),
    linear-gradient(133deg, #061a14 0%, #0b3023 52%, #051a14 100%);
  /* 02 — Emerald Dusk: slightly richer with right-side illumination. */
  --mz-emerald-dusk:
    radial-gradient(ellipse 47% 100% at 85% 54%, rgba(78,134,87,.34), transparent 80%),
    radial-gradient(ellipse 42% 54% at 23% 77%, rgba(0,10,9,.28), transparent 80%),
    linear-gradient(112deg, #041912 4%, #08281e 39%, #133e2d 74%, #0a2b20 100%);
  /* 03 — Moss Horizon: subtle lift rising through the lower portion. */
  --mz-moss-horizon:
    radial-gradient(ellipse 110% 42% at 54% 96%, rgba(84,126,73,.24), transparent 85%),
    radial-gradient(ellipse 70% 40% at 18% -3%, rgba(32,77,63,.30), transparent 84%),
    linear-gradient(172deg, #061b17 0%, #08241c 38%, #0f4030 87%, #123c2d 100%);
  /* 04 — Warm Ivory: quiet parchment with a soft warm highlight.
     Edge-neutral by design: the base wash only varies left to right and both
     highlights fade out before the top and bottom edges, so every cream
     section starts and ends on the same colour. Neighbouring cream sections
     therefore join without a seam, whatever their height. */
  --mz-warm-ivory:
    radial-gradient(ellipse 56% 46% at 100% 45%, rgba(218,187,143,.28) 0%, transparent 72%),
    radial-gradient(ellipse 58% 44% at 10% 55%, rgba(255,252,246,.6), transparent 80%),
    linear-gradient(90deg, #f8f3ea 0%, #f4ede2 55%, #efe6d8 100%);
}

/* Green environments — rotate the three agreed treatments.
   This is section-level atmosphere, not background illustration. */
/* The About artwork ends on a pine ground bar; the first 96px of Our Work
   continue that pine and fade into the gradient, so there is no step under it. */
.work {
  background: linear-gradient(to bottom, var(--pine), transparent 96px) top / 100% 96px no-repeat, var(--mz-forest-light) !important;
}
.generation-v27 .generation-browser {
  background: var(--mz-emerald-dusk) !important;
}
.upcoming {
  background: var(--mz-moss-horizon) !important;
}
/* Contact ends on the footer's flat pine, so the last 140px fades into it
   and the divider and footer continue on exactly that colour. */
.join {
  background: linear-gradient(to bottom, transparent calc(100% - 140px), #061a14 100%), var(--mz-forest-light) !important;
}
.footer {
  background: #061a14 !important;
}

/* Cream environments — the one approved Warm Ivory gradient. */
.about,
.up44,
.generation-v27 .generation-intro,
.soc44,
.story,
.stripe,
.journal {
  background: var(--mz-warm-ivory) !important;
}
/* Guard against earlier concept images on partial panels as well. */
.about-copy,
.stripe-copy {
  background-image: none !important;
}

/* Remove ONLY the background artwork overlays introduced by earlier
   experiments. Never remove the actual manifesto photo or hero layers. */
.work::before,
.generation-v27 .generation-browser::before,
.upcoming::before,
.join::before,
.footer::before,
.about::before,
.up44::before,
.soc44::before,
.story::before,
.stripe::before,
.journal::before,
.index-experience::before {
  content: none !important;
  display: none !important;
}
/* The existing decorative orbit on the contact section competes with the
   gradient; leave all actual content and interactive elements intact. */
.join::after { content: none !important; display: none !important; }

/* Stories archive: same light/dark environmental palette. */
.page-archive,
.page-archive main {
  background: var(--mz-warm-ivory) !important;
}
.page-archive .arc-interviews {
  background: var(--mz-moss-horizon) !important;
}
.page-archive .arc-head,
.page-archive .arc-intro {
  background-color: transparent !important;
  background-image: none !important;
}
/* The archive header is a solid bar at every scroll position. The 118px dark
   scrim that helps the photographic home hero hung 54px below it here and
   smudged the top of the cream page. */
.page-archive .site-header::before { content: none; }

/* The section rules above apply at every width. Nested copy panels never
   repaint the ivory (that left a second gradient inside the section on
   narrow screens), so the section surface runs behind them unbroken. */

/* Give the desktop hero headline a little more presence. */
@media (min-width:1000px) and (min-aspect-ratio:11/10) {
  .hero.h44 h1 { font-size:clamp(64px, 11svh, 104px); }
  .h44-copy { bottom:clamp(48px, 8svh, 90px); }
}

/* Featured house story: introduce it before showing its photographs. */
.v37-house-feature { display:block; }
.v37-house-copy { max-width:none; }
.v37-house-photo-set { grid-template-columns:repeat(4,minmax(0,1fr)); height:clamp(260px,28vw,420px); min-height:0; margin:0 0 24px; }
.v37-house-photo-set .v37-photo { height:100%; }
@media (max-width:670px) {
  .v37-house-photo-set { display:flex; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; gap:8px; height:clamp(220px,65vw,340px); padding-bottom:4px; }
  .v37-house-photo-set .v37-photo { flex:0 0 78%; scroll-snap-align:start; }
}

/* A quiet, brand-inspired marker gives the footer its own closing moment. */
.footer-divider { background:#061a14; padding:0 var(--gutter); }
.footer-divider svg { display:block; width:100%; height:42px; overflow:visible; }
.footer-divider .divider-line { fill:none; stroke:#9cb4a2; stroke-opacity:.3; stroke-width:1; vector-effect:non-scaling-stroke; }
.footer-divider .divider-gold { fill:#efa64f; }
.footer-divider .divider-orange { fill:#e86e32; }
.footer-divider .divider-stem { fill:none; stroke:#6eb7a2; stroke-width:1.5; vector-effect:non-scaling-stroke; }
.footer-divider .divider-sun { fill:#f1bb6d; }
@media (max-width:670px) { .footer-divider svg { height:36px; } }
.footer-divider { display:flex; align-items:center; gap:14px; }
.footer-divider::before, .footer-divider::after { content:""; flex:1; height:1px; background:rgba(156,180,162,.3); }
.footer-divider svg { flex:none; width:45px; }


/* Keep the artwork and its About section on the same continuous surface. */
.about .grow { background:transparent; }

/* Show complete social artwork and photographs without cutting off their edges. */
.soc44-ph img { object-fit:contain; object-position:center; }
.soc44-tile:hover .soc44-ph img, .soc44-tile:focus-visible .soc44-ph img { transform:none; }

/* Keep the shoe donation and participants in view across screen sizes. */
.manifesto-bg img { object-position:50% 48%; }
@media (max-width:700px) { .manifesto-bg img { object-position:55% 50%; } }

/* Let the people in the dignity photograph emerge from the shade. */
.manifesto::before { background:linear-gradient(90deg,rgba(6,28,22,.94) 0%,rgba(6,28,22,.83) 30%,rgba(6,28,22,.42) 65%,rgba(6,28,22,.20) 100%),linear-gradient(0deg,rgba(6,28,22,.38),transparent 45%); }
.manifesto p { max-width:550px; }
@media (max-width:700px) {
  .manifesto::before {
    background: radial-gradient(ellipse 100% 40% at 38% 48%, rgba(6,28,22,.8) 0%, rgba(6,28,22,.58) 55%, transparent 100%), linear-gradient(90deg,rgba(6,28,22,.94) 0%,rgba(6,28,22,.83) 30%,rgba(6,28,22,.42) 65%,rgba(6,28,22,.20) 100%),linear-gradient(0deg,rgba(6,28,22,.38),transparent 45%);
  }
  .manifesto h2 { text-shadow:0 1px 2px rgba(5,27,21,.35), 0 2px 24px rgba(5,27,21,.5); }
}


/* Once the home header turns into its solid bar, drop the hero scrim that
   would otherwise hang 54px below it over the cream sections. */
.site-header.is-scrolled::before { content: none; }

/* Let the upcoming strip share About's edge-neutral ivory so the two meet
   without a step; its hairline stays as the intentional divider. */
.news44 { background: var(--mz-warm-ivory); }
