/* The Envied — isolated page styles. Shared files remain untouched. */
body.impact-page > main.impact-main { padding: 0; margin: 0; }
.impact-page { background: var(--jade-teal); }
.impact-page .impact-menu-toggle { background: none; border: 0; padding: 10px; }
.impact-hero {
  --heading-color: var(--snowcap);
  --default-color: var(--snowcap);
  background: var(--jade-teal);
  background-image: radial-gradient(
    ellipse at 50% var(--impact-glow-y, 70%),
    color-mix(in srgb, var(--spruce-teal) 60%, var(--jade-teal)) 0%,
    var(--jade-teal) 75%
  );
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 156px 0 48px;
}
.impact-hero__inner { padding-inline: clamp(20px, 5vw, 96px); max-width: none; }
.impact-hero__title { margin: 0; font-weight: 300; color: var(--snowcap); }
.impact-hero__the { display: block; font-size: clamp(1.3rem, 3.5vw, 4rem); letter-spacing: .24em; line-height: 1.2; margin-bottom: .04em; margin-left: var(--the-ink-offset, 0px); }
.impact-hero__word { display: block; white-space: nowrap; font-size: clamp(2.5rem, 23vw, 28rem); line-height: .78; letter-spacing: -.045em; }
.impact-hero__envi { color: var(--mist-teal); display: inline-block; margin-left: var(--word-ink-offset, 0px); }
.impact-hero__ed { color: var(--snowcap); display: inline-block; }
.impact-hero__bottom { margin-top: 0; padding-top: 12px; --bs-gutter-x: 0; }
.impact-hero__headline { font-size: clamp(1.6rem, 3vw, 3.5rem); line-height: 1.15; font-weight: 300; margin: 0 0 18px; }
.impact-hero__belief { color: var(--mist-teal); font-size: clamp(.95rem, 1.2vw, 1.2rem); }
.impact-hero__cta { display: inline-flex; align-items: center; gap: 16px; color: var(--snowcap); text-transform: uppercase; letter-spacing: .055em; font-size: clamp(.8rem, 1.1vw, 1rem); min-height: 48px; }
.impact-hero__arrow { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--mist-teal); border-radius: 50%; font-size: 1.25rem; transition: background .25s, color .25s; }
.impact-hero__cta:is(:hover,:focus-visible) { color: var(--glacier-teal); }
.impact-hero__cta:is(:hover,:focus-visible) .impact-hero__arrow { background: var(--glacier-teal); color: var(--jade-teal); }
.impact-hero__cta:focus-visible { outline: 2px solid var(--glacier-teal); outline-offset: 6px; }

@media (max-width: 767.98px) { .impact-hero { padding: 120px 0 48px; } .impact-hero__bottom { --bs-gutter-y: 16px; } }
@media (prefers-reduced-motion: no-preference) {
  .impact-hero.is-entering .impact-hero__envi { display: inline-block; animation: impact-reveal .8s both; }
  .impact-hero.is-entering .impact-hero__ed { animation: impact-reveal .85s .25s both; }
  .impact-hero.is-entering .impact-hero__the { animation: impact-reveal .65s .45s both; }
  .impact-hero.is-entering .impact-hero__bottom { animation: impact-reveal .75s .65s both; }
}
@keyframes impact-reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { html:has(body.impact-page) { scroll-behavior: auto; } .impact-hero__arrow { transition: none; } }


/* Integrated photographic composition. The title overlaps the upper image edge. */
.impact-hero__title { position: relative; z-index: 2; pointer-events: none; }
.impact-hero__gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin-top: clamp(-22px, -1.2vw, -6px); position: relative; }
.impact-hero__tile { display: block; min-width: 0; height: clamp(90px, 16vh, 190px); padding: 0; border: 0; border-radius: 0; background: var(--spruce-teal); overflow: hidden; cursor: pointer; }
.impact-hero__tile :is(img,video) { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .65s ease; }
.impact-hero__tile.is-active :is(img,video) { filter: grayscale(0); }
.impact-hero__tile:focus-visible { outline: 2px solid var(--glacier-teal); outline-offset: -3px; }

@media (min-width: 768px) {
  /* Grow the photographic strip upward, preserving the lower content position. */
  .impact-hero__gallery { margin-top: calc(clamp(-22px, -1.2vw, -6px) - clamp(25px, 4.5vh, 54px)); }
  .impact-hero__tile { height: clamp(115px, 20.5vh, 244px); }
  .impact-hero__headline { font-size: clamp(1.5rem, 2.5vw, 3rem); margin-bottom: 10px; }
}
@media (max-width: 767.98px) { .impact-hero__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: calc(clamp(-22px, -1.2vw, -6px) - clamp(8px, 2.5vw, 18px)); } .impact-hero__tile { height: clamp(72px, 12svh, 130px); } .impact-hero__headline { margin-bottom: 12px; } }
@media (prefers-reduced-motion: no-preference) { .impact-hero.is-entering .impact-hero__gallery { animation: impact-reveal .75s .5s both; } }
@media (prefers-reduced-motion: reduce) { .impact-hero__tile :is(img,video) { transition: none; } }

/* Keep the original poster visible until playback actually begins. */
.impact-hero__tile { position: relative; }
.impact-hero__tile video { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .48s ease-in-out, filter .65s ease; }
.impact-hero__tile.has-video-frame video { opacity: 1; transition-duration: .25s, .65s; }
@media (prefers-reduced-motion: reduce) { .impact-hero__tile video { transition: none; } }

/* Editorial masthead: secondary identity, aligned with the title edges. */
.impact-hero__masthead { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.impact-hero__editorial { color:var(--mist-teal); font-size:12px; font-weight:300; letter-spacing:.16em; line-height:1.4; text-transform:uppercase; text-align:right; }
@media(max-width:767.98px) { .impact-hero__editorial { font-size:clamp(9px,2.5vw,11px); letter-spacing:.1em; } }
@media(prefers-reduced-motion:no-preference) { .impact-hero.is-entering .impact-hero__editorial { animation:impact-reveal .65s .45s both; } }

/* Playback-only editorial captions; poster and video share the same crop. */
.impact-hero__tile { isolation:isolate; text-align:left; touch-action:manipulation; }
.impact-hero__tile > img { position:absolute; inset:0; }
.impact-hero__tile video { z-index:1; }
.impact-hero__caption { position:absolute; z-index:2; inset:auto 0 0; padding:24px clamp(9px,1.2vw,20px) clamp(9px,1.1vw,16px); color:#fff; background:linear-gradient(transparent,rgba(0,0,0,.66)); font-size:clamp(.7rem,1vw,.95rem); font-weight:500; letter-spacing:.09em; line-height:1.25; text-transform:uppercase; opacity:0; transform:translateY(4px); transition:opacity .24s ease,transform .24s ease; pointer-events:none; text-shadow:0 1px 3px #000; }
.impact-hero__tile.has-video-frame .impact-hero__caption { opacity:1; transform:none; transition-delay:.18s; }
.impact-hero__tile:focus-visible { z-index:3; }
@media(max-width:767.98px) { .impact-hero__tile { height:auto; aspect-ratio:16 / 9; } .impact-hero__caption { font-size:clamp(.65rem,2.5vw,.85rem); letter-spacing:.055em; padding:18px 8px 8px; } }
@media(max-height:500px) and (orientation:landscape) { .impact-hero { min-height:100svh; padding:100px 0 28px; } }
@media(prefers-reduced-motion:reduce) { .impact-hero__caption { transition:none; transform:none; } }
