/* ==========================================================================
   ALUMNI IN ACTION — Section styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   01 · Hero — sticky 100vh stage with a parallax photo bed
   -------------------------------------------------------------------------- */

.section-home-hero { position: relative; height: 160vh; --hero-fade: 0; }

.home-hero_sticky-div {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.home-hero_bg {
  position: absolute;
  inset: -8% 0 0 0;
  height: 116%;
  z-index: 0;
}

.home-hero_bg img { width: 100%; height: 100%; object-fit: cover; }

/* The lower third of the bed is sunlit turf, so the headline needs a heavier
   scrim there than the shared overlay provides. */
.section-home-hero .bg-img_overlay {
  background: linear-gradient(180deg,
    rgba(10, 20, 40, 0.62) 0%,
    rgba(10, 20, 40, 0.42) 28%,
    rgba(10, 20, 40, 0.74) 58%,
    rgba(10, 20, 40, 0.92) 100%);
}

/* The hand-off to the cream page below. The hero holds one photo the whole
   way down — this curtain is what takes it out, so it needs enough height to
   read as a fade rather than a band along the bottom edge. */
.home-hero_sticky-div::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 55vh;
  background: linear-gradient(180deg, rgba(253, 247, 236, 0) 0%, var(--cream) 100%);
  opacity: var(--hero-fade, 0);
  pointer-events: none;
}

.home-hero_content { position: relative; z-index: 2; width: 100%; color: var(--cream); }

/* Centred lockup: crest above, headline and mission line below. */
.home-hero_wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-32);
  text-align: center;
}

/* The crest is drawn at --crest-render and scaled down to --crest-box, rather
   than drawn small and scaled up. A transform scales the layer's existing
   bitmap: at its old 7em layout size the browser rasterised 7em of pixels and
   then stretched them over the ~14.6em reveal, which is what made the logo
   soft and washed out at the top of the scroll. Drawn at 15em, every state is
   a downscale of a sheet with pixels to spare.

   Three layers because three things move independently: the shift layer is the
   scroll reveal, the fit layer is this static correction, and the crest itself
   belongs to the page-load entry animation. Sharing one would mean two
   animations writing the same transform. */
.home-hero_crest-shift {
  --crest-box: 7;
  --crest-render: 15;
  position: relative;
  width: calc(var(--crest-box) * 1em);
  height: calc(var(--crest-box) * 1em);
  transform-origin: 50% 50%;
}

.home-hero_crest-fit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(calc(var(--crest-box) / var(--crest-render)));
  transform-origin: 50% 50%;
}

.home-hero_crest {
  width: calc(var(--crest-render) * 1em);
  height: calc(var(--crest-render) * 1em);
  border-radius: 50%;
  overflow: hidden;
  /* Sized against the render scale, so it lands where the old 1em/3em did
     once the fit layer has scaled it back down. */
  box-shadow: 0 2.1em 6.4em rgba(0, 0, 0, 0.5);
}

.home-hero_crest img { width: 100%; height: 100%; object-fit: cover; }

/* Everything under the crest. Carries the gap the wrapper used to provide,
   so grouping the text does not collapse the spacing between its lines. */
.home-hero_lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-32);
}

.home-hero_heading h1 {
  max-width: 13em;
  margin: 0 auto;
  text-shadow: 0 0.06em 0.5em rgba(10, 20, 40, 0.45);
}

.home-hero_eyebrow { color: var(--gold); }

/* Justifies the first line edge-to-edge. The zero-height trailing box is
   what forces the justification to apply. */
.span-full-width {
  display: block;
  width: 100%;
  text-align: justify;
  text-align-last: justify;
}

@media (max-width: 767px) {
  .span-full-width { text-align: left; text-align-last: left; }
}

.home-hero_subheading { max-width: 34em; margin: 0 auto; }

/* Small facts under the mission line, separated by hairlines. */
.home-hero_meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-12) var(--s-20);
  color: rgba(253, 247, 236, 0.75);
}

.home-hero_meta span { display: flex; align-items: center; gap: var(--s-20); }
.home-hero_meta span:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 1em;
  background-color: rgba(253, 247, 236, 0.3);
}

@media (max-width: 991px) {
  .section-home-hero { height: auto; }
  .home-hero_sticky-div { position: static; height: auto; min-height: 100vh; }
  .home-hero_crest-shift { --crest-box: 5.5; }
}

/* --------------------------------------------------------------------------
   02 · Mission intro
   -------------------------------------------------------------------------- */

.home-about_wrapper { display: flex; flex-direction: column; gap: var(--s-64); }

.home-about_text-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-40);
  align-items: end;
}

.home-about_subheading { max-width: 34em; color: var(--ink-70); }

/* The photo sets the row height; the quote panel stretches to match it, so
   neither one leaves a gap beside the other. */
.home-about_media_list {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--s-24);
  align-items: stretch;
}

.home-about_media_item {
  position: relative;
  overflow: hidden;
  border-radius: var(--s-12);
  aspect-ratio: 16 / 10;
}

.home-about_media_item._02 { aspect-ratio: auto; }
.home-about_media_item img { width: 100%; height: 100%; object-fit: cover; }

/* Pull quote panel that sits beside the photo. */
.home-about_quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-16);
  padding: var(--s-32);
  background-color: var(--navy);
  background-image: var(--field-glow), var(--field-lines);
  color: var(--cream);
}

.home-about_quote p { color: rgba(253, 247, 236, 0.9); }
.home-about_quote .labels { color: var(--gold); }

@media (max-width: 767px) {
  .home-about_text-wrapper { grid-template-columns: 1fr; }
  .home-about_media_list { grid-template-columns: 1fr; }
  .home-about_media_item._02 { aspect-ratio: 16 / 10; }
}

/* --------------------------------------------------------------------------
   03 · Values marquee
   -------------------------------------------------------------------------- */

.home-trusted_heading { color: var(--grey); }

.home-trusted_marquee-component {
  margin-top: var(--s-32);
  margin-bottom: var(--s-64);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.home-trusted_list-wrapper { display: flex; align-items: center; width: max-content; }

.home-trusted_list {
  display: flex;
  flex: none;
  align-items: center;
  animation: marquee-x 42s linear infinite;
}

.home-trusted_marquee-component:hover .home-trusted_list { animation-play-state: paused; }

.home-trusted_item {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--s-40);
  padding: 0 var(--s-40);
  font-family: var(--font-heading);
  font-weight: var(--fw-600);
  font-size: var(--t-20);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.42;
  white-space: nowrap;
  transition: opacity 0.35s var(--ease-out);
}

.home-trusted_item::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  border-radius: 100px;
  background-color: var(--gold);
  flex: none;
}

.home-trusted_item:hover { opacity: 1; }

@keyframes marquee-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

.home-trusted_divider { height: 1px; background-color: var(--stroke); }

/* --------------------------------------------------------------------------
   04 · What we do — accordions over a field-pattern bed
   -------------------------------------------------------------------------- */

.section-home-capabilities { position: relative; overflow: hidden; }

.home-capabilities_wrapper {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-80);
  align-items: start;
  padding-bottom: var(--s-240);
}

.home-capabilities_heading h3 {
  font-family: var(--font-heading);
  font-weight: var(--fw-700);
  font-size: var(--h-78);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  margin: 0;
}

.home-capabilities_subheading { margin-top: var(--s-24); max-width: 26em; color: var(--ink-70); }

.home-capabilities_dropdown_list { display: flex; flex-direction: column; }

.home-capabilities_dropdown_item { border-top: 1px solid var(--stroke); }
.home-capabilities_dropdown_item:last-child { border-bottom: 1px solid var(--stroke); }

.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-24);
  width: 100%;
  padding: var(--s-24) 0;
  text-align: left;
  cursor: pointer;
  transition: color 0.35s var(--ease-out);
}

.dropdown-toggle:hover,
.is-open > .dropdown-toggle { color: var(--gold-deep); }

.toggle-icon-wrapper {
  position: relative;
  flex: none;
  width: 1em;
  height: 1em;
}

.toggle-icon-wrapper::before,
.toggle-icon-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: currentColor;
  transition: transform 0.4s var(--ease-swap);
}

.toggle-icon-wrapper::after { transform: rotate(90deg); }
.is-open .toggle-icon-wrapper::after { transform: rotate(0deg); }

.dropdown-list {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-swap);
}

.is-open .dropdown-list { grid-template-rows: 1fr; }

.dropdown-list_wrapper { overflow: hidden; }
.dropdown-list_wrapper p { padding-bottom: var(--s-24); max-width: 34em; color: var(--ink-70); }

.home-capabilities_bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.home-capabilities_bg-img { position: relative; width: 100%; height: 100%; }
.home-capabilities_bg-img img { width: 100%; height: 100%; object-fit: cover; }

.home-capabilities_bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: linear-gradient(180deg, var(--cream) 11.67%, rgba(253, 247, 236, 0) 76.3%);
}

.home-capabilities_bg-overlay._02 {
  background-image: linear-gradient(0deg, var(--cream) 4%, rgba(253, 247, 236, 0) 46%);
}

@media (max-width: 991px) {
  .home-capabilities_wrapper { grid-template-columns: 1fr; gap: var(--s-40); padding-bottom: var(--s-144); }
}

/* --------------------------------------------------------------------------
   05 · Programs — the sticky stacked-card scrub
   -------------------------------------------------------------------------- */

.home-scope_wrapper { display: flex; flex-direction: column; gap: var(--s-40); }
.home-scope_heading h3 { max-width: 11em; }
.home-scope_divider { height: 1px; background-color: var(--stroke); }

/* The cards read as a plain vertical list by default. The pinned, overlapping
   stack is opt-in via .is-stacked, which js/animations.js only adds once it has
   actually wired the scrub up — otherwise a missing GSAP would leave four cards
   piled on top of each other. */
.section-home-scope { position: relative; }
.home-scope_scroll-track { position: relative; }

.home-scope_list {
  display: flex;
  flex-direction: column;
  gap: var(--s-56);
  width: 100%;
}

.home-scope_item {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--s-40);
  width: 100%;
}

/* --- Pinned stack (desktop, JS active) --- */
.home-scope_scroll-track.is-stacked { height: 400vh; }

.home-scope_scroll-track.is-stacked .sticky-div {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.home-scope_scroll-track.is-stacked .home-scope_list {
  position: relative;
  display: block;
  height: 72vh;
}

.home-scope_scroll-track.is-stacked .home-scope_item {
  position: absolute;
  inset: 0;
  height: 100%;
}

/* A photo fills the card; a navy scrim keeps the icon and numeral legible
   on top of it while still tying the panel back to the brand palette. */
.home-scope_item_img {
  position: relative;
  width: 62%;
  aspect-ratio: 4 / 3;
  border-radius: var(--s-12);
  overflow: hidden;
  transform-origin: 0 100%;
  background-color: var(--navy);
}

/* In the pinned stack the card owns the height, so the ratio is dropped. */
.home-scope_scroll-track.is-stacked .home-scope_item_img { height: 100%; aspect-ratio: auto; }

.home-scope_item_img img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scope-panel_scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(16, 29, 58, 0.72) 0%, rgba(16, 29, 58, 0.42) 45%, rgba(16, 29, 58, 0.8) 100%);
}

.home-scope_item_text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--s-20);
  width: 32%;
  position: relative;
}

.home-scope_item_pagination { color: var(--gold-deep); }
.home-scope_item_subheading { max-width: 22em; color: var(--ink-70); }
.home-scope_item_btn { margin-top: var(--s-16); }

/* Below the stack breakpoint the cards go full-width and single-column. */
@media (max-width: 991px) {
  .home-scope_item { flex-direction: column; }
  .home-scope_item_img { width: 100%; transform: none !important; }
  .home-scope_item_text { width: 100%; }
}

/* --------------------------------------------------------------------------
   06 · Stats
   -------------------------------------------------------------------------- */

.home-stats_wrapper { display: flex; flex-direction: column; gap: var(--s-80); }

.home-stats_heading { display: flex; flex-direction: column; gap: var(--s-16); }

.home-stats_first { display: flex; align-items: center; gap: var(--s-32); }

.home-stats_heading_divider-wrapper { flex: 1; }

.home-stats_heading_divider {
  height: 1px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.home-stats_heading_last { padding-left: 18%; }

.home-stats_subheading-img-wrapper {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: var(--s-56);
  align-items: center;
}

.home-stats_img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--s-12);
}

.home-stats_img img { width: 100%; height: 100%; object-fit: cover; }

.home-stats_subheading { display: flex; flex-direction: column; gap: var(--s-32); align-items: flex-start; }
.home-stats_subheading p { color: var(--ink-70); }

.home-stats_list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-32);
  padding-top: var(--s-56);
  border-top: 1px solid var(--stroke);
}

.home-stats_item_wrapper { display: flex; flex-direction: column; gap: var(--s-12); }
.home-stats_item_number { display: flex; align-items: baseline; color: var(--navy); }
.home-stats_item_wrapper p { color: var(--grey); }

@media (max-width: 991px) {
  .home-stats_subheading-img-wrapper { grid-template-columns: 1fr; }
  .home-stats_list { grid-template-columns: repeat(2, 1fr); gap: var(--s-40) var(--s-24); }
  .home-stats_heading_last { padding-left: 0; }
}

/* --------------------------------------------------------------------------
   06b · Mission band — the statement set full-bleed on navy
   -------------------------------------------------------------------------- */

.section-mission-band {
  position: relative;
  background-color: var(--navy);
  background-image: var(--field-glow), var(--field-lines);
  color: var(--cream);
  overflow: hidden;
}

.mission-band_wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-32);
  text-align: center;
}

.mission-band_wrapper blockquote {
  margin: 0;
  max-width: 18em;
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-family: var(--font-heading);
  font-weight: var(--fw-600);
}

.mission-band_mark {
  width: 4.5em;
  height: 4.5em;
  border-radius: 100px;
  overflow: hidden;
  opacity: 0.9;
}

.mission-band_mark img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   07 · Ways to help — card carousel over a soft photo bed
   -------------------------------------------------------------------------- */

.section-home-projects { position: relative; overflow: hidden; }

.home-projects_bg-list-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 100%;
}

.home-projects_bg-list-wrapper .swiper-wrapper { height: 100%; }
.home-projects_bg-item { position: relative; width: 100%; height: 100%; }
.home-projects_bg-item img { width: 100%; height: 100%; object-fit: cover; }

.home-projects_bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--cream) 0%, rgba(253, 247, 236, 0.84) 42%, rgba(253, 247, 236, 0.9) 72%, var(--cream) 100%);
  pointer-events: none;
}

.home-projects_wrapper { position: relative; z-index: 2; }

.home-projects_text-wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-40);
  margin-bottom: var(--s-56);
}

.home-projects_pagination-btn { display: flex; align-items: center; gap: var(--s-16); }
.home-projects_pagination { margin-right: var(--s-16); color: var(--grey); }

.home-projects_list-wrapper { position: relative; z-index: 2; overflow: visible; }

.home-projects_item.swiper-slide {
  width: 28em;
  max-width: 82vw;
  height: auto;
}

.home-projects_item_wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--cream);
  border: 1px solid var(--stroke);
  border-radius: var(--s-12);
  overflow: hidden;
  transition: border-color 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}

.home-projects_item_wrapper:hover { border-color: var(--gold); transform: translateY(-0.35em); }

/* Card header block — a photo with a navy scrim, carrying the icon and tag. */
.home-projects_item_head {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 11em;
  padding: var(--s-24);
  overflow: hidden;
  background-color: var(--navy);
  color: var(--cream);
}

.home-projects_item_head img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-projects_item_head_scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(16, 29, 58, 0.35) 0%, rgba(16, 29, 58, 0.78) 100%);
}

/* A scanned document is white paper, and the photo scrim turns it grey.
   Enough wash to seat the pill, no more. */
.home-projects_item_head.is-document .home-projects_item_head_scrim {
  background: linear-gradient(180deg, rgba(16, 29, 58, 0) 0%, rgba(16, 29, 58, 0.14) 100%);
}

.home-projects_item_industry { position: relative; z-index: 4; }

.home-projects_industry_item {
  display: inline-block;
  padding: var(--s-4) var(--s-12);
  background-color: var(--gold);
  color: var(--navy);
  border-radius: 100px;
}

.home-projects_item_text-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
  flex: 1;
  padding: var(--s-24);
}

.home-projects_info_list { display: flex; flex-wrap: wrap; gap: var(--s-16); color: var(--grey); }
.home-projects_info_item { display: flex; align-items: center; gap: var(--s-8); }
.home-projects_info_item svg { width: 0.9em; height: 0.9em; flex: none; }

.projects_category_list { display: flex; flex-wrap: wrap; gap: var(--s-8); }

.projects_category_item {
  padding: var(--s-4) var(--s-12);
  border: 1px solid var(--stroke);
  border-radius: 100px;
  color: var(--grey);
}

.home-projects_item_description { color: var(--ink-70); }
.home-projects_item_btn { margin-top: auto; padding-top: var(--s-16); }

@media (max-width: 767px) {
  .home-projects_text-wrapper { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   08 · Voices marquee
   -------------------------------------------------------------------------- */

.home-testimonials_heading { margin-bottom: var(--s-56); }
.home-testimonials_heading h3 { max-width: 13em; }

.home-testimonials_slider {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.home-testimonials_list-wrapper { display: flex; width: max-content; }

.home-testimonials_list {
  display: flex;
  flex: none;
  animation: marquee-x 70s linear infinite;
}

.home-testimonials_slider:hover .home-testimonials_list { animation-play-state: paused; }

.home-testimonials_item {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-32);
  width: 32em;
  max-width: 84vw;
  margin-right: var(--s-24);
  padding: var(--s-40);
  background-color: var(--sand);
  border-radius: var(--s-12);
  border-left: 3px solid var(--gold);
}

.home-testimonials_review p { color: var(--navy); }
.home-testimonials_name p { color: var(--grey); margin-top: var(--s-4); }

/* --------------------------------------------------------------------------
   09 · Leadership
   -------------------------------------------------------------------------- */

.home-careers_wrapper { display: flex; flex-direction: column; gap: var(--s-64); }

.home-careers_text-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-40);
  align-items: end;
}

.home-careers_heading h3 { max-width: 12em; }
.home-careers_subheading { max-width: 26em; margin-bottom: var(--s-24); color: var(--ink-70); }

.leader-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-40);
}

.leader-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--s-12);
  background-color: var(--navy);
  background-image: var(--field-lines);
  color: var(--cream);
}

.leader-card_img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.leader-card_img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 0.8s var(--ease-out); }
.leader-card:hover .leader-card_img img { transform: scale(1.04); }

.leader-card_img.is-crest {
  display: grid;
  place-items: center;
  background-image: var(--field-glow);
}

.leader-card_img.is-crest img { width: 42%; height: auto; aspect-ratio: 1; border-radius: 100px; object-fit: cover; }


.leader-card_text { display: flex; flex-direction: column; gap: var(--s-12); align-items: flex-start; padding: var(--s-32); }
.leader-card_text .labels { color: var(--gold); }
.leader-card_text p { color: rgba(253, 247, 236, 0.78); }

@media (max-width: 767px) {
  .home-careers_text-wrapper { grid-template-columns: 1fr; }
  .leader-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   10 · CTA
   -------------------------------------------------------------------------- */

.section-cta { position: relative; overflow: hidden; color: var(--cream); }

.cta_wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-32);
}

.cta_subheading { max-width: 32em; }
.cta_btn { display: flex; flex-wrap: wrap; gap: var(--s-16); margin-top: var(--s-16); }

.cta_bg-wrapper { position: absolute; inset: 0; z-index: 0; }
.cta_bg-img { width: 100%; height: 100%; }
.cta_bg-img img { width: 100%; height: 100%; object-fit: cover; }

.cta_img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--cream) 0%, rgba(10, 20, 40, 0.5) 30%, rgba(10, 20, 40, 0.92) 100%);
}

/* --------------------------------------------------------------------------
   Inner-page hero
   -------------------------------------------------------------------------- */

.section-page-hero { position: relative; overflow: hidden; color: var(--cream); }

.page-hero_bg { position: absolute; inset: 0; z-index: 0; background-color: var(--navy); background-image: var(--field-glow), var(--field-lines); }
.page-hero_bg img { width: 100%; height: 100%; object-fit: cover; }

/* Inner-page heroes carry more text than the homepage, so they need a
   heavier scrim than the shared .bg-img_overlay provides. */
.section-page-hero .bg-img_overlay {
  background: linear-gradient(180deg, rgba(10, 20, 40, 0.86) 0%, rgba(10, 20, 40, 0.7) 45%, rgba(10, 20, 40, 0.92) 100%);
}

.page-hero_content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--s-24);
  padding-top: var(--s-184);
  padding-bottom: var(--s-112);
}

.page-hero_content h1 { font-size: var(--h-64); max-width: 16em; }

.page-hero_content .labels { color: var(--gold); }
.page-hero_sub { max-width: 36em; color: rgba(253, 247, 236, 0.85); }

/* --------------------------------------------------------------------------
   Shared inner-page blocks
   -------------------------------------------------------------------------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-80);
  align-items: start;
}

.two-col.is-narrow-left { grid-template-columns: 0.8fr 1.2fr; }

.prose { display: flex; flex-direction: column; gap: var(--s-20); color: var(--ink-70); max-width: 36em; }
.prose.is-lead p:first-child { color: var(--navy); font-size: var(--t-20); }

.section-heading { display: flex; flex-direction: column; gap: var(--s-16); align-items: flex-start; }
.section-heading .labels { color: var(--gold-deep); }

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-24);
}

.media-grid figure { margin: 0; }

.media-grid_img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--s-12);
  margin-bottom: var(--s-12);
}

.media-grid_img img { transition: transform 0.7s var(--ease-out); }
.media-grid figure:hover .media-grid_img img { transform: scale(1.05); }

.value-list { display: flex; flex-direction: column; }

.value-item {
  display: grid;
  grid-template-columns: 5em 1fr 1.2fr;
  gap: var(--s-24);
  padding: var(--s-32) 0;
  border-top: 1px solid var(--stroke);
  align-items: start;
}

.value-item:last-child { border-bottom: 1px solid var(--stroke); }
.value-item .labels { color: var(--gold-deep); padding-top: 0.35em; }
.value-item p { color: var(--ink-70); }

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-64);
  align-items: center;
  padding: var(--s-80) 0;
  border-top: 1px solid var(--stroke);
}

.service-block:nth-child(even) .service-block_img { order: 2; }

.service-block_img {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--s-12);
  background-color: var(--navy);
  background-image: var(--field-glow), var(--field-lines);
  color: var(--gold);
}

.service-block_img img { width: 100%; height: 100%; object-fit: cover; }
.service-block_img svg { width: 4.5em; height: 4.5em; position: relative; z-index: 2; }

.service-block_text { display: flex; flex-direction: column; gap: var(--s-20); align-items: flex-start; }
.service-block_text p { color: var(--ink-70); }

.service-block_list { display: flex; flex-direction: column; gap: var(--s-8); margin-top: var(--s-8); width: 100%; }

.service-block_list li {
  display: flex;
  gap: var(--s-12);
  color: var(--ink-70);
  padding: var(--s-8) 0;
  border-bottom: 1px solid var(--stroke);
}

.service-block_list li span:first-child { color: var(--gold-deep); font-family: var(--font-mono); font-size: var(--t-12); padding-top: 0.35em; flex: none; }

/* Card grid used for events, merch and impact tiles */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-32);
}

.card-grid.is-two { grid-template-columns: repeat(2, 1fr); }

.info-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
  align-items: flex-start;
  padding: var(--s-32);
  border: 1px solid var(--stroke);
  border-radius: var(--s-12);
  background-color: var(--white);
  transition: border-color 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}

.info-card:hover { border-color: var(--gold); transform: translateY(-0.35em); }
.info-card p { color: var(--ink-70); }
.info-card .labels { color: var(--gold-deep); }

.info-card_icon {
  display: grid;
  place-items: center;
  width: 3em;
  height: 3em;
  border-radius: 100px;
  background-color: var(--navy);
  color: var(--gold);
}

.info-card_icon svg { width: 1.4em; height: 1.4em; }

.info-card.is-dark {
  background-color: var(--navy);
  background-image: var(--field-lines);
  border-color: transparent;
  color: var(--cream);
}

.info-card.is-dark p { color: rgba(253, 247, 236, 0.78); }
.info-card.is-dark .info-card_icon { background-color: var(--gold); color: var(--navy); }

/* "Coming soon" status chip */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  padding: var(--s-4) var(--s-12);
  border-radius: 100px;
  background-color: var(--sand);
  color: var(--gold-deep);
  font-family: var(--font-mono);
  font-size: var(--t-10);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-chip::before {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-radius: 100px;
  background-color: currentColor;
}

.info-card.is-dark .status-chip { background-color: rgba(232, 178, 60, 0.15); color: var(--gold); }

/* Merchandise tile */
.merch-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: var(--s-12);
  background-color: var(--white);
}

.merch-tile_art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: var(--navy);
}

.merch-tile_art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.merch-tile:hover .merch-tile_art img { transform: scale(1.05); }

.merch-tile_art_crest {
  position: absolute;
  right: var(--s-16);
  bottom: var(--s-16);
  z-index: 2;
  width: 3em;
  height: 3em;
  border-radius: 100px;
  overflow: hidden;
  box-shadow: 0 0.5em 1.5em rgba(0, 0, 0, 0.35);
}

.merch-tile_art_crest img { width: 100%; height: 100%; object-fit: cover; }
.merch-tile_text { display: flex; flex-direction: column; gap: var(--s-8); align-items: flex-start; padding: var(--s-24); }
.merch-tile_text p { color: var(--grey); }

/* Portrait feature used on the president page */
.portrait-feature {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--s-64);
  align-items: start;
}

.portrait-feature_img {
  position: sticky;
  top: var(--s-112);
  overflow: hidden;
  border-radius: var(--s-12);
  aspect-ratio: 4 / 5;
}

.portrait-feature_img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }

.portrait-feature_caption {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin-top: var(--s-16);
}

.portrait-feature_caption .labels { color: var(--gold-deep); }

.pull-quote {
  margin: var(--s-16) 0;
  padding: var(--s-32);
  border-left: 3px solid var(--gold);
  background-color: var(--sand);
  border-radius: 0 var(--s-12) var(--s-12) 0;
  color: var(--navy);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-80);
  align-items: start;
}

.contact-detail_list { display: flex; flex-direction: column; }

.contact-detail_item {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-24) 0;
  border-top: 1px solid var(--stroke);
}

.contact-detail_item:last-child { border-bottom: 1px solid var(--stroke); }
.contact-detail_item .labels { color: var(--gold-deep); margin-bottom: var(--s-4); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-20); }
.form-field { display: flex; flex-direction: column; gap: var(--s-8); }
.form-field.is-full { grid-column: 1 / -1; }

.form-field label {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: var(--s-16);
  font-family: var(--font-body);
  font-size: var(--t-16);
  color: var(--navy);
  background-color: var(--white);
  border: 1px solid var(--stroke);
  border-radius: var(--s-8);
  transition: border-color 0.3s var(--ease-out);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: none; border-color: var(--gold); }

.form-field textarea { resize: vertical; min-height: 9em; }

.form-note { color: var(--grey); margin-top: var(--s-16); }

/* Donation amount picker */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-12);
}

.amount-chip {
  padding: var(--s-16);
  text-align: center;
  border: 1px solid var(--stroke);
  border-radius: var(--s-8);
  background-color: var(--white);
  font-family: var(--font-heading);
  font-weight: var(--fw-600);
  font-size: var(--t-20);
  color: var(--navy);
  cursor: pointer;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.amount-chip:hover,
.amount-chip.is-active { border-color: var(--gold); background-color: var(--gold); color: var(--navy); }

/* --------------------------------------------------------------------------
   Story pages — photo walls, era blocks, quoted letters
   -------------------------------------------------------------------------- */

/* A big opening statement in his own voice. */
.story-lead {
  font-family: var(--font-heading);
  font-weight: var(--fw-600);
  font-size: var(--h-40);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
  max-width: 16em;
  margin: 0;
}

.story-lead_attrib { margin-top: var(--s-20); color: var(--gold-deep); }

/* Photo wall. Items can claim extra width or height to break the grid up. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-16);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--s-12);
  aspect-ratio: 1;
  background-color: var(--navy);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item.is-wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery-item.is-tall { grid-row: span 2; aspect-ratio: 1 / 2; }
.gallery-item.is-big  { grid-column: span 2; grid-row: span 2; aspect-ratio: 1; }

/* Caption sits on a full-tile navy wash rather than a thin bottom gradient —
   at small tile sizes a strip of gradient was never dark enough to carry text. */
.gallery-item_cap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s-20);
  background: linear-gradient(180deg, rgba(10, 20, 40, 0.25) 0%, rgba(10, 20, 40, 0.88) 55%, rgba(10, 20, 40, 0.95) 100%);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: var(--fw-500);
  font-size: var(--t-16);
  line-height: 1.4;
  text-wrap: balance;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

/* Gold rule draws in above the text as the caption lands. */
.gallery-item_cap::before {
  content: "";
  display: block;
  width: 2.5em;
  height: 2px;
  margin-bottom: var(--s-12);
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease-out) 0.08s;
}

.gallery-item:hover .gallery-item_cap,
.gallery-item:focus-within .gallery-item_cap { opacity: 1; }

.gallery-item:hover .gallery-item_cap::before,
.gallery-item:focus-within .gallery-item_cap::before { transform: scaleX(1); }

/* Small tiles cannot carry 16px comfortably. */
.gallery-item:not(.is-big):not(.is-wide) .gallery-item_cap { font-size: var(--t-14); padding: var(--s-16); }

/* Touch devices never hover — keep captions visible and pinned to the bottom. */
@media (hover: none) {
  .gallery-item_cap {
    opacity: 1;
    inset: auto 0 0 0;
    background: linear-gradient(180deg, rgba(10, 20, 40, 0) 0%, rgba(10, 20, 40, 0.92) 100%);
    padding-top: var(--s-40);
  }
  .gallery-item_cap::before { transform: scaleX(1); }
}

@media (max-width: 991px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.is-big { grid-column: span 2; grid-row: span 1; aspect-ratio: 3 / 2; }
  .gallery-item.is-tall { grid-row: span 1; aspect-ratio: 1; }
}

@media (max-width: 479px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item,
  .gallery-item.is-wide,
  .gallery-item.is-big,
  .gallery-item.is-tall { grid-column: span 1; grid-row: span 1; aspect-ratio: 4 / 3; }
}

/* A chapter of his life: label, heading, prose, supporting photo. */
.era-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-64);
  align-items: center;
  padding: var(--s-72) 0;
  border-top: 1px solid var(--stroke);
}

.era-block:nth-child(even) .era-block_media { order: 2; }

.era-block_media {
  position: relative;
  overflow: hidden;
  border-radius: var(--s-12);
  aspect-ratio: 4 / 3;
  background-color: var(--navy);
}

.era-block_media img { width: 100%; height: 100%; object-fit: cover; }
.era-block_media.is-portrait { aspect-ratio: 3 / 4; }
.era-block_media.is-contain { background-color: var(--sand); }
.era-block_media.is-contain img { object-fit: contain; }

.era-block_text { display: flex; flex-direction: column; gap: var(--s-20); align-items: flex-start; }
.era-block_text p { color: var(--ink-70); }
.era-block_text .labels { color: var(--gold-deep); }

/* Quoted letter of support. */
.quote-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-20);
  height: 100%;
  padding: var(--s-32);
  background-color: var(--sand);
  border-radius: var(--s-12);
  border-left: 3px solid var(--gold);
}

.quote-card blockquote {
  margin: 0;
  color: var(--navy);
  font-size: var(--t-18);
  line-height: 1.5;
}

.quote-card_source { margin-top: auto; display: flex; flex-direction: column; gap: var(--s-4); }
.quote-card_source strong { font-weight: var(--fw-500); color: var(--navy); }
.quote-card_source span { color: var(--grey); font-size: var(--t-14); }

/* Numbers pulled out of the record — used sparingly. */
.figure-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-32);
}

.figure-item { display: flex; flex-direction: column; gap: var(--s-8); }
.figure-item_num { font-family: var(--font-heading); font-weight: var(--fw-700); font-size: var(--h-48); line-height: 1; color: var(--navy); }
.figure-item p { color: var(--grey); }

.section-footer .figure-item_num { color: var(--gold); }

@media (max-width: 991px) {
  .era-block { grid-template-columns: 1fr; gap: var(--s-32); padding: var(--s-48) 0; }
  .era-block:nth-child(even) .era-block_media { order: 0; }
  .era-block_media.is-portrait { aspect-ratio: 4 / 3; }
  /* A flyer carrying a form people actually have to read keeps its
     portrait shape here; photographs still flip to landscape. */
  .era-block_media.is-portrait.is-document { aspect-ratio: 3 / 4; }
  .figure-row { grid-template-columns: repeat(2, 1fr); gap: var(--s-32) var(--s-24); }
  .story-lead { font-size: var(--h-32); }
}

@media (max-width: 991px) {
  .two-col,
  .two-col.is-narrow-left,
  .contact-grid,
  .service-block,
  .portrait-feature { grid-template-columns: 1fr; gap: var(--s-40); }
  .service-block:nth-child(even) .service-block_img { order: 0; }
  .portrait-feature_img { position: relative; top: auto; max-width: 26em; }
  .media-grid,
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 479px) {
  .media-grid,
  .card-grid,
  .card-grid.is-two { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   Donate — Stripe QR
   The supplied image already carries its own purple card, rounded corners and
   "Scan to donate" label, so it is placed as-is with nothing drawn behind it.
   -------------------------------------------------------------------------- */

.donate-qr {
  display: flex;
  align-items: center;
  gap: var(--s-24);
  margin-top: var(--s-32);
}

.donate-qr img { width: 10em; height: auto; flex: none; }
.donate-qr p { color: var(--grey); max-width: 16em; }

@media (max-width: 479px) {
  .donate-qr { flex-direction: column; align-items: flex-start; gap: var(--s-16); }
  .donate-qr p { max-width: none; }
}
