/* WHSF inner pages in the Gelllez layout: page hero card with icon shortcuts and a wide photo,
   photo cards with chips, a numbered feature block and a stats band. Builds on gx.css. */

/* ---------------------------------------------------------------- page hero */
.gx-page-hero {
  position: relative;
  isolation: isolate;
  width: min(1180px, calc(100% - 40px));
  margin: 26px auto 0;
  padding: 56px 62px 34px;
  overflow: hidden;
  border: 1px solid #f0dde6;
  border-radius: 34px;
  background: linear-gradient(132deg, #fff5f8 0%, #fff 45%, #fff7d4 100%);
  box-shadow: 0 28px 80px rgb(78 17 42 / 11%);
}
.gx-page-hero .hp-hero-glow { right: -120px; top: -180px; }
.gx-page-hero-copy { max-width: 760px; }
.gx-page-hero h1 {
  margin: 22px 0 18px;
  color: #000;
  font-size: clamp(2.25rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.gx-page-hero h1 em { display: block; color: var(--wx-wine); font-style: normal; }
.gx-page-hero-copy > p { max-width: 620px; margin: 0; color: var(--wx-text); font-size: 18px; line-height: 1.65; }

.gx-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 38px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid #f0dde6;
  list-style: none;
}
.gx-shortcuts a {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 10px 6px;
  border-radius: 16px;
  color: #3d2b35;
  font-size: 13px; font-weight: 600; text-align: center; text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.gx-shortcuts a:hover { background: rgb(255 255 255 / 75%); transform: translateY(-2px); color: var(--wx-wine); }
.gx-shortcuts span {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: 1px solid #ecd6e0; border-radius: 14px;
  background: #fff;
  color: var(--wx-wine);
  box-shadow: 0 8px 18px rgb(90 21 48 / 8%);
}
.gx-shortcuts svg { width: 21px; height: 21px; }

.gx-hero-photo {
  position: relative;
  margin: 30px 0 0;
  aspect-ratio: 21 / 8;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgb(78 17 42 / 18%);
}
.gx-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }

/* ---------------------------------------------------------------- photo cards with an icon tile + chips */
.gx-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.gx-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #eee0e7; border-radius: 24px; background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.gx-card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgb(54 17 38 / 13%); }
.gx-card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gx-card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 18px 26px 26px; }
.gx-card-body .hp-pillar-icon { margin: -45px 0 6px; }
.gx-card h3 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
.gx-card p { margin: 0; color: #66575f; line-height: 1.6; }
.gx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; padding: 0; list-style: none; }
.gx-chips li { padding: 5px 10px; border-radius: 999px; background: var(--wx-soft); color: var(--wx-wine-deep); font-size: 11px; font-weight: 600; }

/* ---------------------------------------------------------------- numbered feature block */
.gx-feature {
  width: min(1180px, calc(100% - 40px));
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
  margin: 90px auto 0;
}
.gx-feature-photo { position: relative; min-height: 460px; margin: 0; overflow: hidden; border-radius: 28px; box-shadow: 0 24px 60px rgb(78 17 42 / 18%); }
.gx-feature-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gx-feature-copy h2 { margin: 12px 0 14px; font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.02; letter-spacing: -.05em; }
.gx-feature-copy > p { margin: 0; color: var(--wx-text); font-size: 17px; line-height: 1.7; }
.gx-steps { display: grid; gap: 12px; margin: 26px 0 28px; padding: 0; list-style: none; }
.gx-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border: 1px solid #eee0e7; border-radius: 18px; background: #fff; }
.gx-steps b {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--wx-wine-deep), var(--wx-wine-bright));
  color: var(--wx-gold);
  font-size: 13px;
}
.gx-steps strong { display: block; color: var(--wx-ink); font-size: 16px; }
.gx-steps span { color: #66575f; font-size: 14px; line-height: 1.5; }

/* ---------------------------------------------------------------- stats band */
.gx-stats-band {
  width: min(1180px, calc(100% - 40px));
  margin: 90px auto 0;
  padding: 46px 54px;
  border: 1px solid #f0dde6;
  border-radius: 30px;
  background: linear-gradient(135deg, #fff2f6, #fff 55%, #fff4c8);
}
.gx-stats-band .hp-heading { margin-bottom: 28px; }
.gx-stats-band .hp-stats { grid-template-columns: repeat(5, 1fr); }
.gx-note { margin: 18px 0 0; color: var(--wx-muted); font-size: 13px; }

/* ---------------------------------------------------------------- numbered process tiles */
.gx-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.gx-process li { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid #eee0e7; border-radius: 20px; background: #fff; }
.gx-process b {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 6px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--wx-wine-deep), var(--wx-wine-bright));
  color: var(--wx-gold);
  font-size: 13px;
}
.gx-process strong { color: var(--wx-ink); font-size: 18px; letter-spacing: -.02em; }
.gx-process span { color: #66575f; font-size: 14px; line-height: 1.55; }
.gx-process-3 { grid-template-columns: repeat(3, 1fr); }
.hp-pillar .gx-chips { margin: 0; }

/* ---------------------------------------------------------------- contact: reach list + form panel */
.gx-contact {
  width: min(1180px, calc(100% - 40px));
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start;
  margin: 80px auto 0;
}
.gx-reach h2, .gx-form-panel h2 { margin: 12px 0 18px; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.05; letter-spacing: -.05em; }
.gx-reach article { display: grid; grid-template-columns: 46px 1fr; gap: 14px; margin-bottom: 10px; padding: 16px 18px; border: 1px solid #eee0e7; border-radius: 20px; background: #fff; }
.gx-reach article > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--wx-soft); color: var(--wx-wine); }
.gx-reach article svg { width: 21px; height: 21px; }
.gx-reach h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: -.02em; }
.gx-reach p, .gx-reach address { margin: 4px 0; color: #66575f; font-size: 14px; font-style: normal; line-height: 1.5; }
.gx-reach a { color: var(--wx-wine); font-size: 14px; font-weight: 600; text-decoration: none; }
.gx-reach a:hover { text-decoration: underline; }
.gx-social { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.gx-social a { padding: 5px 11px; border-radius: 999px; background: var(--wx-soft); font-size: 13px; }
.gx-privacy { margin-top: 14px; padding: 18px 20px; border-radius: 20px; background: linear-gradient(135deg, #fff2f6, #fff7d4); }
.gx-privacy strong { color: var(--wx-wine-deep); }
.gx-privacy p { margin: 6px 0; color: var(--wx-text); font-size: 14px; line-height: 1.55; }
.gx-privacy a { color: var(--wx-wine); font-size: 14px; font-weight: 600; }

.gx-form-panel { padding: 32px; border: 1px solid #f0dde6; border-radius: 28px; background: #fff; box-shadow: 0 24px 60px rgb(78 17 42 / 10%); }
.gx-form-panel > p { margin: -6px 0 22px; color: var(--wx-text); }
.gx-form-panel .contact-form { display: grid; gap: 16px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.gx-form-panel .contact-form label { display: block; margin: 0; color: var(--wx-ink); font-size: 14px; font-weight: 600; }
.gx-form-panel .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gx-form-panel .contact-form input:not([type="checkbox"]), .gx-form-panel .contact-form select, .gx-form-panel .contact-form textarea {
  width: 100%; min-height: 48px; margin: 7px 0 0; padding: 12px 14px;
  border: 1px solid var(--wx-line-strong); border-radius: 12px;
  background: #fff; color: var(--wx-ink); font: inherit; font-weight: 400;
}
.gx-form-panel .contact-form textarea { min-height: 150px; resize: vertical; }
.gx-form-panel .contact-form input::placeholder, .gx-form-panel .contact-form textarea::placeholder { color: #9a8790; }
.gx-form-panel .contact-form input:focus, .gx-form-panel .contact-form select:focus, .gx-form-panel .contact-form textarea:focus { border-color: var(--wx-wine); outline: 3px solid rgb(123 33 66 / 14%); }
.gx-form-panel .optional-label { margin-left: 4px; padding: 0; border: 0; background: none; color: var(--wx-muted); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.gx-form-panel label > span[aria-hidden] { color: var(--wx-wine); }
.gx-form-panel .form-guidance { margin: 0; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--wx-soft); color: var(--wx-text); font-size: 13px; font-weight: 500; line-height: 1.5; }
.gx-form-panel .contact-form .ct-consent { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; color: var(--wx-text); font-size: 13px; font-weight: 500; }
.gx-form-panel .ct-consent input { margin: 3px 0 0; accent-color: var(--wx-wine); }
.gx-form-panel .ct-consent a { color: var(--wx-wine); }
.gx-form-panel .ct-next { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: #fbf7f9; color: var(--wx-text); font-size: 13px; }
.gx-form-panel .ct-next strong { color: var(--wx-wine-deep); }
.gx-form-panel .ct-submit { width: 100%; justify-content: center; border: 0; cursor: pointer; }
.gx-form-panel .form-note { margin: 0; color: var(--wx-muted); font-size: 13px; line-height: 1.5; }
.ct-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* ---------------------------------------------------------------- FAQ + alert */
.gx-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gx-faq details { padding: 4px 22px; border: 1px solid #eee0e7; border-radius: 18px; background: #fff; }
.gx-faq summary { padding: 16px 0; color: var(--wx-ink); font-weight: 600; cursor: pointer; }
.gx-faq details p { margin: 0 0 18px; color: #66575f; line-height: 1.6; }
.gx-faq a { color: var(--wx-wine); }
.gx-alert {
  width: min(1180px, calc(100% - 40px));
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
  margin: 60px auto 0; padding: 24px 28px;
  border: 1px solid #f3dca4; border-radius: 24px;
  background: #fff8e6;
}
.gx-alert > span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #fff; color: #9a5b00; }
.gx-alert svg { width: 24px; height: 24px; }
.gx-alert h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.02em; }
.gx-alert p { margin: 0; color: #5d4630; line-height: 1.6; }
.gx-alert p + p { margin-top: 10px; }
.gx-alert .hp-actions { margin-top: 16px; }

@media (max-width: 980px) {
  .gx-page-hero { padding: 40px 34px 26px; }
  .gx-cards { grid-template-columns: 1fr 1fr; }
  .gx-feature { grid-template-columns: 1fr; }
  .gx-feature-photo { min-height: 320px; }
  .gx-stats-band { padding: 36px 28px; }
  .gx-stats-band .hp-stats { grid-template-columns: repeat(3, 1fr); }
  .gx-process { grid-template-columns: 1fr 1fr; }
  .gx-contact { grid-template-columns: 1fr; }
  .gx-faq { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .gx-page-hero { width: calc(100% - 24px); padding: 28px 18px 20px; border-radius: 24px; }
  .gx-page-hero-copy > p { font-size: 16px; }
  .gx-shortcuts { grid-template-columns: repeat(3, 1fr); }
  .gx-hero-photo { aspect-ratio: 4 / 3; }
  .gx-cards { grid-template-columns: 1fr; }
  .gx-feature, .gx-stats-band { width: calc(100% - 32px); }
  .gx-stats-band .hp-stats { grid-template-columns: repeat(2, 1fr); }
  .gx-process { grid-template-columns: 1fr; }
  .gx-contact, .gx-alert { width: calc(100% - 32px); }
  .gx-form-panel { padding: 22px 18px; }
  .gx-form-panel .field-row { grid-template-columns: 1fr; }
  .gx-alert { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- impact page: 4-up cards/stats + the live dashboard sections */
.gx-cards-4 { grid-template-columns: repeat(4, 1fr); }
.gx-cards-4 .gx-card-body { padding: 18px 20px 22px; }
.gx-cards-4 .gx-card h3 { font-size: 19px; }
.gx-stats-band .hp-stats.gx-stats-4 { grid-template-columns: repeat(4, 1fr); }
.impact-reference {
  --im-wine: var(--wx-wine); --im-wine-deep: var(--wx-wine-deep); --im-rose: var(--wx-kicker);
  --im-ink: var(--wx-ink); --im-blue: var(--wx-wine-bright); --im-soft: var(--wx-soft);
}
.impact-reference .rf-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.impact-reference .im-kicker { color: var(--wx-kicker); font-weight: 600; letter-spacing: .13em; }
.impact-reference .im-heading-light .im-kicker { color: var(--wx-gold-soft); }
.impact-reference .map-detail, .impact-reference .map-detail p, .impact-reference .map-detail li { color: var(--wx-text); }
.impact-reference .map-detail strong { color: var(--wx-ink); }
.impact-reference .im-heading h2 { letter-spacing: -.05em; line-height: 1.02; }
.impact-reference .im-dashboard { width: min(1180px, calc(100% - 40px)); margin: 90px auto 0; border-radius: 34px; overflow: hidden; }
.impact-reference .im-dashboard > .rf-shell { width: calc(100% - 96px); }
@media (max-width: 980px) {
  .gx-cards-4 { grid-template-columns: 1fr 1fr; }
  .gx-stats-band .hp-stats.gx-stats-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .gx-cards-4 { grid-template-columns: 1fr; }
  .impact-reference .rf-shell { width: calc(100% - 32px); }
  .impact-reference .im-dashboard { width: calc(100% - 24px); border-radius: 24px; }
  .impact-reference .im-dashboard > .rf-shell { width: calc(100% - 36px); }
}

/* ---------------------------------------------------------------- grants: live stats row inside the page hero */
.gx-page-hero .gx-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: 10px; margin-top: 26px; }
.gx-page-hero .gx-hero-stats div { padding: 14px 16px; border: 1px solid #f0dde6; border-radius: 18px; background: rgb(255 255 255 / 80%); }
.gx-page-hero .gx-hero-stats strong { display: block; color: var(--wx-wine); font-size: 1.9rem; font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.gx-page-hero .gx-hero-stats span { display: block; margin-top: 6px; color: var(--wx-muted); font-size: 12px; font-weight: 600; }
.gx-page-hero > .gx-note { margin-top: 16px; }
@media (max-width: 620px) {
  .gx-page-hero .gx-hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .gx-page-hero .gx-hero-stats strong { font-size: 1.4rem; }
}

/* ---------------------------------------------------------------- page hero with a photo on the right (matches the homepage slider) */
.gx-page-hero.gx-hero-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: 48px; align-items: center; }
.gx-hero-split .gx-page-hero-copy { max-width: none; }
.gx-hero-split .gx-shortcuts { grid-column: 1 / -1; }
.gx-hero-visual {
  position: relative; min-height: 400px; height: 100%; margin: 0;
  overflow: hidden; border-radius: 26px;
  background: var(--wx-wine-night);
  box-shadow: 0 24px 60px rgb(78 17 42 / 22%);
}
.gx-hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
/* full-width banner image above the copy, never cropped (for artwork with text, e.g. MIL Lab) */
.gx-page-hero.gx-hero-banner { grid-template-columns: 1fr; row-gap: 32px; }
.gx-hero-banner .gx-hero-visual { order: -1; min-height: 0; height: auto; aspect-ratio: 1695 / 928; }
.gx-hero-banner .gx-hero-visual img { object-fit: contain; }
@media (max-width: 980px) {
  .gx-page-hero.gx-hero-split { grid-template-columns: 1fr; row-gap: 28px; }
  .gx-hero-visual { min-height: 300px; order: -1; }
}

/* slider visual showing artwork with text (e.g. MIL Lab): never cropped, no zoom */
.hp-slide-visual.hp-slide-art { width: 100%; min-height: 0; height: auto; align-self: center; aspect-ratio: 1695 / 928; background: #eef3fb; }
.hp-slide-visual.hp-slide-art img { object-fit: contain; animation: none !important; }
/* every slide's picture uses the artwork's wide frame, so the slider never jumps in height */
.hp-hero-wide .hp-slide-visual { width: 100%; min-height: 0; height: auto; align-self: center; aspect-ratio: 1695 / 928; }

/* responsive 16:9 video embed */
.gx-video { position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 22px; background: var(--wx-wine-night); box-shadow: 0 24px 60px rgb(78 17 42 / 18%); }
.gx-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* decorative WHSF frame around an embedded video: wine-to-gold ring, fine inner line, gold dot accents */
.gx-video-frame {
  position: relative; isolation: isolate; max-width: 1000px; margin: 32px auto 8px; padding: 12px 12px 0;
  border-radius: 32px; background: linear-gradient(135deg, var(--wx-wine-deep) 0%, var(--wx-wine) 38%, var(--wx-wine-bright) 68%, var(--wx-gold) 100%);
  box-shadow: 0 30px 70px rgb(78 17 42 / 24%);
}
.gx-video-frame::before {
  content: ""; position: absolute; inset: 5px; z-index: 1; border: 1px solid rgb(255 255 255 / 38%); border-radius: 27px; pointer-events: none;
}
.gx-video-frame::after, .gx-video-dots {
  content: ""; position: absolute; z-index: -1; width: 150px; height: 150px; border-radius: 18px;
  background-image: radial-gradient(var(--wx-gold) 2.2px, transparent 2.8px); background-size: 15px 15px; opacity: .75;
}
.gx-video-frame::after { right: -30px; bottom: -30px; }
.gx-video-dots { top: -30px; left: -30px; background-image: radial-gradient(var(--wx-wine-bright) 2.2px, transparent 2.8px); opacity: .45; }
.gx-video-frame .gx-video { max-width: none; border-radius: 22px; box-shadow: 0 0 0 3px rgb(255 255 255 / 92%), 0 10px 30px rgb(42 10 23 / 35%); }
.gx-video-frame figcaption {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
  padding: 13px 10px 14px; color: #fff; font-size: 14px; font-weight: 600;
}
.gx-video-frame figcaption span { display: inline-flex; align-items: center; gap: 8px; }
.gx-video-frame figcaption svg { width: 18px; height: 18px; color: var(--wx-gold); }
.gx-video-frame figcaption a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.gx-video-frame figcaption a:hover { color: #fff3d1; }
@media (max-width: 1120px) { .gx-video-frame::after, .gx-video-dots { display: none; } }
@media (max-width: 640px) {
  .gx-video-frame { margin-top: 22px; padding: 7px 7px 0; border-radius: 22px; }
  .gx-video-frame::before { inset: 3px; border-radius: 19px; }
  .gx-video-frame .gx-video { border-radius: 16px; box-shadow: 0 0 0 2px rgb(255 255 255 / 92%); }
  .gx-video-frame figcaption { padding: 10px 6px 11px; font-size: 13px; }
}

/* feature photo shown at its own 3:2 shape so artwork with text is never cropped */
.gx-feature-photo.gx-feature-photo-3x2 { min-height: 0; aspect-ratio: 3 / 2; align-self: center; }

/* silent looping clip over a hero photo (photo stays as the fallback) */
.gx-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .gx-hero-video { display: none; } }

/* centred section heading: label, title and intro stacked over full-width content (e.g. a video) */
.hp-heading.gx-heading-center { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12px; max-width: 720px; margin-inline: auto; text-align: center; }
.hp-heading.gx-heading-center > div > span { justify-content: center; }
.hp-heading.gx-heading-center > div, .hp-heading.gx-heading-center > p { width: 100%; }
.hp-heading.gx-heading-center > p { max-width: 600px; }

/* two-card story row (fills the row instead of leaving an empty third column) */
@media (min-width: 981px) { .hp-stories.hp-stories-2 { grid-template-columns: repeat(2, 1fr); } }

/* one-slide hero (MIL Lab): no tabs or arrows, keep only the pause button for the moving video */
.hp-hero-single .hp-tabs, .hp-hero-single [data-hp-prev], .hp-hero-single [data-hp-next] { display: none; }
.hp-hero-single .hp-controls { justify-content: flex-end; }
