/* ==========================================================================
   IHS Envirotek — Stage 1 (Sections 01, 02, 03)
   Engineered, not decorated.
   ========================================================================== */

:root {
  /* Dominant surface — primary backdrop across the site */
  --ihs-deep-teal: #1a3942;

  /* Supporting dark — layered/evidence sections */
  --ihs-midnight:  #0f2329;

  /* Utility neutrals */
  --ihs-slate:     #6B7280;
  --ihs-bone:      #F5F1E8;
  --ihs-white:     #FFFFFF;

  /* Accents — earned, not sprinkled */
  --ihs-flare:     #ff5349;   /* hero CTA only — max 1–2 per screen */
  --ihs-gilt:      #d4af37;   /* emphasis only — stat numbers, small badges, inline marks */

  /* Derived (opacity-controlled applications of approved colors) */
  --rule-slate-40: rgba(107, 114, 128, 0.40);
  --rule-slate-20: rgba(107, 114, 128, 0.20);
  --rule-slate-12: rgba(107, 114, 128, 0.12);

  /* Meta text on dark surfaces — Slate fails WCAG AA on Midnight/Deep Teal,
     so dark-surface meta labels use white-at-opacity to preserve the
     "subordinate information" intent while clearing 4.5:1 contrast. */
  --ihs-meta-on-dark: rgba(255, 255, 255, 0.68);

  /* Type stacks — Arial primary, Inter as web-optimised alternative per brand guidelines */
  --font-sans: "Inter", Arial, Helvetica, sans-serif;
  --font-display: Arial, "Inter", Helvetica, sans-serif;

  /* Grid & spacing */
  --gutter-desk: 48px;
  --gutter-mob:  24px;
  --hairline:    0.5px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Document-root background = brand Deep Teal so iOS rubber-band overscroll
   reveals brand colour, not browser white. Sections paint their own backgrounds
   on top, so this is only visible at viewport edges during bounce. */
html { background: var(--ihs-deep-teal); }
body {
  font-family: var(--font-sans);
  color: var(--ihs-deep-teal);
  background: var(--ihs-deep-teal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }

/* ---------- Utility: line break shown only on mobile (≤767px) ---------- */
.break-on-mobile { display: none; }
@media (max-width: 767.98px) { .break-on-mobile { display: inline; } }

/* ---------- Skip-to-main-content link (a11y) — visible only when focused ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 10px 18px;
  background: var(--ihs-deep-teal);
  color: var(--ihs-bone);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid var(--ihs-gilt);
  border-radius: 4px;
  transition: top 160ms ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  outline: none;
}

/* ---------- Section label: tracked caps, 8pt, +6 tracking, Slate ---------- */
.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--ihs-slate);
  text-transform: uppercase;
}
.section-label--light { color: rgba(255,255,255,0.55); }

/* =========================================================
   SECTION 01 : HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--ihs-deep-teal);
  color: var(--ihs-white);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 32px var(--gutter-desk);
}

/* Background video — desaturated 60%, with Deep Teal overlay and faint hairlines */
.hero__bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: var(--ihs-deep-teal);
  overflow: hidden;
}
.hero__video, .hero__video-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(40%) brightness(0.75) contrast(0.95);
}
.hero__video-fallback { display: none; }
.hero__bg-overlay {
  position: absolute; inset: 0;
  background:
    /* Central vignette — Midnight @ 35% fading to transparent, sized to the
       pillar-text area so bright video frames don't overpower the headline. */
    radial-gradient(ellipse 72% 62% at 50% 50%, rgba(15, 35, 41, 0.35) 0%, rgba(15, 35, 41, 0.21) 45%, transparent 88%),
    /* Deep Teal wash — 33% tint across the whole frame */
    rgba(26, 57, 66, 0.33);
}
.hero__bg-hairlines {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0px,
    transparent 59px,
    rgba(255,255,255,0.014) 59px,
    rgba(255,255,255,0.014) 60px
  );
  mix-blend-mode: overlay;
}

/* Top: logo + tagline */
.hero__top {
  position: relative; z-index: 2;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0; /* padding on .hero itself provides 32px clear space */
}
.hero__logo { height: 96px; width: auto; }
.hero__brand { display: inline-flex; align-items: center; }
.hero__tagline {
  margin: 0;
  padding-left: 28px;
  border-left: var(--hairline) solid var(--rule-slate-40);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--ihs-white);
  text-transform: uppercase;
  font-weight: 500;
}

/* Center: pillar */
.hero__center {
  position: relative; z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0;
}
.pillar {
  width: 100%;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pillar__stack {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-rows: 1fr;
}
.pillar__item {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 620ms ease, transform 620ms ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pillar__item.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pillar__word {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 8.4vw, 88px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ihs-white);
  padding: 4px 2px 14px;
  cursor: pointer;
}
.pillar__word:focus-visible {
  outline: 1px solid var(--ihs-gilt);
  outline-offset: 6px;
}
.pillar__underline {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 4px;
  width: 0;
  background: var(--ihs-gilt);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pillar__item.is-active .pillar__underline {
  width: 72%;
}

.pillar__subclaim {
  margin: 18px auto 0;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  font-weight: 400;
  padding: 0 8px;
}

.pillar__expand {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 0;
  min-height: 0;
  opacity: 0;
  transform: translateY(6px);
  overflow: hidden;
  pointer-events: none;
  transition:
    max-height 340ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 280ms ease 40ms,
    transform 340ms cubic-bezier(0.2, 0.8, 0.2, 1),
    margin-top 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
  margin-top: 0;
}
.pillar__expand.is-open {
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 22px;
  pointer-events: auto;
}
.pillar__paragraph {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  text-align: center;
}
.know-more {
  display: inline-block;
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ihs-gilt);
  border-bottom: 1px solid var(--ihs-gilt);
  padding-bottom: 3px;
  font-weight: 500;
}
.know-more:hover { color: var(--ihs-white); border-bottom-color: var(--ihs-white); }

/* Position dots — WCAG 2.5.8: each button is a 24×24 hit area with no
   overlap between adjacent buttons; visible 6×6 dot rendered via ::before. */
.pillar__dots {
  display: flex;
  gap: 0;
  margin-top: 34px;
}
.pillar__dot {
  width: 24px;
  height: 24px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 260ms ease;
}
.pillar__dot::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  transition: background 260ms ease, transform 260ms ease;
}
.pillar__dot.is-active::before {
  background: var(--ihs-gilt);
  transform: scale(1.35);
}
.pillar__dot:focus-visible { outline: 1px solid var(--ihs-gilt); outline-offset: 4px; }

/* Callout under pillar */
.hero__callout {
  margin: 48px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.80);
  letter-spacing: 0.04em;
}

/* Fixed CTA — desktop (≥1024): solid Flare. The one Flare on the page. */
.cta-flare {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ihs-flare);
  color: var(--ihs-white);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  box-shadow: 0 16px 36px -12px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 260ms ease, box-shadow 260ms ease, opacity 250ms ease;
}
/* Stage 4 R4 — fade out while the boardgate form card is in view */
.cta-flare.cta-flare--hidden {
  opacity: 0;
  pointer-events: none;
}
.cta-flare:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 44px -14px rgba(0,0,0,0.6), 0 3px 8px rgba(0,0,0,0.35);
}
.cta-flare__arrow { display: inline-block; transition: transform 260ms ease; }
.cta-flare:hover .cta-flare__arrow { transform: translateX(3px); }
.cta-flare:focus-visible { outline: 2px solid var(--ihs-white); outline-offset: 3px; }
/* Labels: full on desktop/tablet, short on mobile */
.cta-flare__label--short { display: none; }

/* =========================================================
   SECTION 02 : TRUST BAR
   ========================================================= */
.trust {
  background: var(--ihs-midnight);
  color: var(--ihs-white);
  padding: 28px var(--gutter-desk);
}
/* Tile count: 3 (was 4 before Pass Z removed St. Joseph's tile).
   If tile count changes, update repeat(N, 1fr) here AND in the
   @media (max-width: 1024px) override below. Mobile (≤720px)
   uses single-column and is count-agnostic. */
.trust__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}
.trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  text-align: center;
  border-right: var(--hairline) solid var(--rule-slate-40);
  min-height: 72px;
}
.trust__item:last-child { border-right: 0; }

.trust__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.01em;
  color: var(--ihs-white);
  line-height: 1;
}
.trust__num-plus { color: var(--ihs-gilt); margin-left: 2px; font-weight: 700; }
.trust__desc {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ihs-meta-on-dark);
  font-weight: 500;
}
.trust__desc-inline {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ihs-white);
  font-weight: 400;
}
.trust__line {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.35;
}
.trust__institution {
  color: var(--ihs-gilt);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.trust__sep { color: var(--rule-slate-40); margin: 0 2px; }
.trust__hot {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ihs-gilt);
  letter-spacing: 0.01em;
}

.trust__badge { display: inline-flex; }
.trust__iso { width: 40px; height: 40px; }

.trust__logoblock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border: 1px solid var(--ihs-slate);
  border-radius: 2px;
  background: transparent;
}
.trust__logoblock-text {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.70);
  text-transform: none;
  font-weight: 500;
}

/* =========================================================
   SECTION 03 : SOCIAL PROOF STRIP
   ========================================================= */
.social {
  background: var(--ihs-midnight);
  color: var(--ihs-white);
  padding: 28px var(--gutter-desk);
  border-top: var(--hairline) solid rgba(107,114,128,0.22);
}
.social__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
/* Section heading above the testimonial slideshow (Pass T). Section is
   compact (28px vertical padding), so the heading is sized smaller than
   full-section headlines to keep proportions tight. */
.social__headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ihs-white);
  text-align: center;
}
@media (max-width: 767.98px) {
  .social__headline { font-size: 19px; }
}

.social__carousel {
  position: relative;
  width: 100%;
  min-height: 68px;
  display: grid;
}
.social__card {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 500ms ease, transform 500ms ease;
  pointer-events: none;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 6px 0;
}
.social__card.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.social__photo {
  width: 48px; height: 48px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, #4b515a 0%, #3a3f47 70%, #2a2e34 100%);
  border: 1px solid rgba(107,114,128,0.28);
}

.social__quote {
  margin: 0;
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ihs-white);
  font-weight: 400;
}

.social__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 5px;
  min-width: 0;
}
.social__inst {
  font-size: 12px;
  font-weight: 700;
  color: var(--ihs-gilt);
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.social__badge {
  display: inline-block;
  padding: 3px 0 0;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ihs-meta-on-dark);
  background: transparent;
  border: 0;
  white-space: nowrap;
  font-weight: 500;
}

/* Social-proof dots — same WCAG 2.5.8 pattern as pillar dots. */
.social__dots {
  display: flex;
  gap: 0;
  margin-top: 4px;
}
.social__dot {
  width: 24px;
  height: 24px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 220ms ease;
}
.social__dot::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.30);
  transition: background 220ms ease, transform 220ms ease;
}
.social__dot.is-active::before {
  background: var(--ihs-gilt);
  transform: scale(1.35);
}
.social__dot:focus-visible { outline: 1px solid var(--ihs-gilt); outline-offset: 4px; }

/* =========================================================
   Responsive
   ========================================================= */

/* Tablet (480px–1023px): solid Flare, slightly smaller padding, full label */
@media (max-width: 1023px) and (min-width: 480px) {
  .cta-flare {
    padding: 13px 18px;
    font-size: 12px;
    letter-spacing: 0.12em;
    right: 20px;
    bottom: 20px;
  }
}

/* Mobile (<480px): translucent Midnight + blur, Flare outline + Flare text */
@media (max-width: 479px) {
  .cta-flare {
    right: 16px;
    bottom: 16px;
    padding: 11px 15px;
    font-size: 11.5px;
    letter-spacing: 0.12em;
    background: rgba(15, 35, 41, 0.85);
    color: var(--ihs-flare);
    border: 1px solid var(--ihs-flare);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px -10px rgba(0,0,0,0.55);
  }
  .cta-flare:hover { box-shadow: 0 10px 28px -10px rgba(0,0,0,0.6); }
  .cta-flare__arrow { color: var(--ihs-flare); }
  .cta-flare__label--full  { display: none; }
  .cta-flare__label--short { display: inline; }

  /* W3.5 — prevent floating CTA from overlapping short-page footers (404, legal). */
  .legal-page .site-footer {
    padding-bottom: 72px;
  }
}

/* Tablet (≤1024 general) */
@media (max-width: 1024px) {
  .hero { padding: 28px 32px; }
  .trust { padding: 24px 24px; }
  .trust__row { grid-template-columns: repeat(3, 1fr); }
  .trust__item { padding: 6px 10px; gap: 6px; }
  .trust__num { font-size: 22px; }
  .trust__hot { font-size: 17px; }
  .trust__desc { font-size: 9.5px; letter-spacing: 0.1em; }
  .trust__desc-inline { font-size: 11.5px; }
  .trust__institution { font-size: 12px; }
  .trust__logoblock { padding: 4px 10px; }
  .trust__logoblock-text { font-size: 11px; }
  .social { padding: 22px 28px; }
}

/* Mobile ≤ 720px (keeps 768 tablet in horizontal layouts) */
@media (max-width: 720px) {
  .hero {
    padding: 24px 20px;
    grid-template-rows: auto 1fr auto;
  }
  .hero__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .hero__tagline {
    padding-left: 0;
    border-left: 0;
    padding-top: 10px;
    border-top: var(--hairline) solid var(--rule-slate-40);
    width: 100%;
  }
  .hero__logo { height: 60px; }
  .pillar__word { font-size: clamp(38px, 10.2vw, 56px); }
  .pillar__subclaim { font-size: 13.5px; padding: 0 12px; }
  .pillar__paragraph { font-size: 13px; padding: 0 8px; }
  .hero__callout { font-size: 12px; padding: 0 16px; margin-top: 32px; }
  /* CTA per-breakpoint styling handled in the tablet/mobile blocks above */

  /* Trust: stack vertically, horizontal rules between */
  .trust { padding: 0 20px; }
  .trust__row {
    grid-template-columns: 1fr;
  }
  .trust__item {
    flex-direction: row;
    justify-content: flex-start;
    padding: 18px 4px;
    border-right: 0;
    border-bottom: var(--hairline) solid var(--rule-slate-40);
    text-align: left;
    gap: 14px;
    min-height: 0;
  }
  .trust__item:last-child { border-bottom: 0; }
  .trust__num { font-size: 26px; }
  .trust__hot { font-size: 20px; }
  .trust__line { justify-content: flex-start; }
  .trust__logoblock { padding: 4px 12px; }
  .trust__desc { text-align: left; }

  /* Social: allow multi-line, drop right-align, add clearance under fixed CTA (>=24px gap) */
  .social { padding: 24px 20px 80px; }
  .social__card {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    gap: 12px 14px;
    padding: 4px 0;
  }
  .social__photo { width: 40px; height: 40px; }
  .social__quote {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    font-size: 13.5px;
  }
  .social__meta {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    gap: 8px 12px;
  }
  .social__inst { font-size: 11.5px; }
  .social__badge { font-size: 9.5px; padding: 3px 8px; }
}

/* Very small */
@media (max-width: 420px) {
  .pillar__word { font-size: clamp(34px, 12vw, 50px); }
}

/* =========================================================
   SECTION 04 : THE PAIN
   ========================================================= */
.pain {
  background: var(--ihs-deep-teal);
  color: var(--ihs-white);
  padding: 120px var(--gutter-desk);
}
.pain__inner {
  max-width: 720px;
  margin: 0 auto;
  display: block;
}
.pain__editorial {
  max-width: 100%;
  text-align: center;
}

.pain__headline {
  margin: 0 0 36px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 44px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ihs-white);
}

.pain__body { margin: 0 0 40px; max-width: 100%; }
.pain__body p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}
.pain__body p:last-child { margin-bottom: 0; }

.pain__cta {
  display: inline-block;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ihs-gilt);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-bottom-color 180ms ease;
  max-width: 600px;
}
.pain__cta:hover,
.pain__cta:focus-visible { border-bottom-color: var(--ihs-gilt); }
.pain__cta-rest { white-space: nowrap; }
.pain__cta-arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 260ms ease;
}
.pain__cta:hover .pain__cta-arrow { transform: translateX(3px); }

.pain__fear-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fear-cell {
  background: rgba(15, 35, 41, 0.60);
  border: 1px solid rgba(107, 114, 128, 0.20);
  padding: 32px;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 500ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 220ms ease;
}
.fear-cell.is-revealed { opacity: 1; transform: translateY(0); }
.fear-cell:nth-child(1).is-revealed { transition-delay: 0ms, 0ms, 0ms; }
.fear-cell:nth-child(2).is-revealed { transition-delay: 100ms, 100ms, 0ms; }
.fear-cell:nth-child(3).is-revealed { transition-delay: 200ms, 200ms, 0ms; }
.fear-cell:nth-child(4).is-revealed { transition-delay: 300ms, 300ms, 0ms; }
@media (hover: hover) {
  .fear-cell:hover { border-color: rgba(107, 114, 128, 0.40); }
}

.fear-cell__label {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.60);
}
.fear-cell__quote {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.90);
  font-weight: 400;
}

/* why-institutions-fear-solar.html page-scoped wrapper */
.fear-page__content { margin-top: 56px; }
.fear-page__content .pain__editorial {
  text-align: left;
  max-width: 720px;
  margin: 0 auto 64px;
}
.fear-page__pain-cta {
  text-align: center;
  margin-top: 56px;
  margin-bottom: 24px;
}

/* Tablet (<=1024): stack editorial above fear map */
@media (max-width: 1024px) {
  .pain { padding: 72px 32px; }
  .pain__inner { grid-template-columns: 1fr; gap: 56px; }
  .pain__editorial { max-width: 100%; }
}

/* Mobile (<720): reduce type, collapse fear map to single column */
@media (max-width: 720px) {
  .pain { padding: 64px 20px; }
  .pain__headline { font-size: 32px; margin-bottom: 28px; }
  .pain__body p { font-size: 16.5px; line-height: 1.65; }
  .pain__fear-map { grid-template-columns: 1fr; }
  .fear-cell { padding: 24px; }
}

/* =========================================================
   SECTION 05 : THE CLAIM
   ========================================================= */
.claim {
  background: var(--ihs-midnight);
  color: var(--ihs-white);
  padding: 120px var(--gutter-desk);
}
.claim__inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* ========================================================
   Section 05 Part A — Five Numbers band with video backdrop.
   Constrained to the numbers band only; case studies below
   keep solid Midnight. Mirrors the hero overlay calibration.
   ======================================================== */
.claim__numbers-band {
  position: relative;
  overflow: hidden;
  background: var(--ihs-midnight);
}
.claim__numbers-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--ihs-midnight);
  overflow: hidden;
}
.claim__numbers-video,
.claim__numbers-video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(60%) brightness(0.95) contrast(0.95);
}
.claim__numbers-video-fallback { display: none; }
.claim__numbers-overlay {
  position: absolute;
  inset: 0;
  background:
    /* Central vignette — Midnight @ 20% fading to transparent, behind numbers only. */
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(15, 35, 41, 0.45) 0%, rgba(15, 35, 41, 0.18) 50%, transparent 88%),
    /* Light Deep Teal wash — 15% tint, MUCH lighter than before */
    rgba(26, 57, 66, 0.15);
}
.claim__numbers-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px var(--gutter-desk);
}

/* PART A — Headline + metrics */
.claim__header {
  text-align: center;
  margin: 0 auto 64px;
  max-width: 720px;
}
.claim__headline {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ihs-white);
}
.claim__sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ihs-meta-on-dark);
  letter-spacing: 0.01em;
}
/* Sub-section heading above the case-study list (Pass T) — slightly
   smaller than .claim__headline since this lives within the same section. */
.claim__cases-headline {
  margin: 96px 0 36px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ihs-white);
  text-align: center;
}
@media (max-width: 767.98px) {
  .claim__cases-headline { font-size: 26px; margin: 64px 0 28px; }
}

.metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
}
.metric {
  padding: 8px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid rgba(107, 114, 128, 0.20);
}
.metric:last-child { border-right: 0; }
.metric__number {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.metric__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 72px;
  line-height: 1;
  color: var(--ihs-gilt);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.metric__num--sym {
  font-variant-numeric: normal;
  letter-spacing: 0;
}
/* Reusable Flare-styled "Advanced Solar™" branded term — same visual
   treatment as the Stage 3 polish .gain__statement-brand but generalised
   so it can be used in any context (milestone bodies, future copy). */
.advanced-solar-mark {
  color: var(--ihs-flare);
  font-weight: 500;
  font-style: normal;
}
.metric__unit {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1;
  color: rgba(212, 175, 55, 0.80);
  letter-spacing: 0.02em;
}
.metric__label {
  display: block;
  margin-top: 14px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ihs-white);
  letter-spacing: 0.01em;
}
.metric__descriptor {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--ihs-meta-on-dark);
  letter-spacing: 0.04em;
}

/* PART B — Case studies */
.cases {
  margin: 96px 0 0;
  padding: 0;
}
.case {
  display: flex;
  gap: 56px;
  align-items: flex-start;
  padding: 96px 0;
  border-top: 1px solid rgba(107, 114, 128, 0.15);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 500ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.case.is-revealed { opacity: 1; transform: translateY(0); }
.case:first-child { border-top: 0; padding-top: 0; }
.case:nth-child(even) { flex-direction: row-reverse; }

.case__photo {
  flex: 0 0 33%;
  margin: 0;
  aspect-ratio: 4 / 5;
  background: rgba(107, 114, 128, 0.16); /* fallback if image fails to load */
  border: 1px solid rgba(107, 114, 128, 0.28);
  border-radius: 12px;
  overflow: hidden; /* clip image / carousel to rounded corners */
  position: relative; /* containing block for absolutely-positioned carousel chrome */
}
/* Static single-image variant (Case 01 — St. Joseph's). Fills the photo box. */
.case__photo-static {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case__body {
  flex: 1 1 42%;
  max-width: 560px;
}
.case__index {
  display: block;
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(107, 114, 128, 0.72);
}
.case__institution {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ihs-white);
}
.case__badge {
  display: inline-block;
  margin: 0 0 26px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ihs-gilt);
  background: rgba(15, 35, 41, 0.60);
  border: 1px solid var(--ihs-gilt);
  border-radius: 2px;
}
.case__quote {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ihs-white);
  max-width: 480px;
  border-left: 2px solid var(--ihs-gilt);
  padding-left: 20px;
}
.case__attribution {
  margin: 0 0 28px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ihs-gilt);
  letter-spacing: 0.01em;
}
.case__narrative {
  margin: 0 0 28px;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}
.case__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin: 0;
}
.case__link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ihs-gilt);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-bottom-color 180ms ease;
}
.case__link:hover,
.case__link:focus-visible { border-bottom-color: var(--ihs-gilt); }
.case__link-icon { font-size: 10px; }
.case__link-arrow { display: inline-block; transition: transform 260ms ease; }
.case__link:hover .case__link-arrow { transform: translateX(3px); }

.case__metrics {
  flex: 0 0 25%;
  list-style: none;
  margin: 0;
  padding: 0 0 0 28px;
  border-left: 1px solid rgba(107, 114, 128, 0.20);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.case:nth-child(even) .case__metrics {
  border-left: 0;
  border-right: 1px solid rgba(107, 114, 128, 0.20);
  padding: 0 28px 0 0;
  align-items: flex-end;
  text-align: right;
}
.case__metric { display: flex; flex-direction: column; gap: 4px; }
.case__metric-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  color: var(--ihs-gilt);
  letter-spacing: -0.01em;
}
.case__metric-label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ihs-meta-on-dark);
}

/* PART C — Closing caption */
.claim__closing {
  margin: 96px auto 0;
  max-width: 800px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ihs-gilt);
}

/* Claim — tablet (<=1024) */
@media (max-width: 1024px) {
  .claim { padding: 72px 32px; }
  .claim__numbers-content {
    padding: 72px 32px;
  }
  .metric { padding: 8px 12px; }
  .metric__num { font-size: 56px; }
  .metric__unit { font-size: 24px; }
  .metric__label { font-size: 16px; }
  .metric__descriptor { font-size: 12.5px; }

  .cases { margin-top: 72px; }
  .case,
  .case:nth-child(even) {
    flex-direction: column;
    gap: 32px;
    padding: 72px 0;
  }
  .case__photo {
    flex: 0 0 auto;
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
  }
  .case__body { flex: 1 1 auto; max-width: 100%; }
  .case__metrics,
  .case:nth-child(even) .case__metrics {
    flex: 0 0 auto;
    padding: 24px 0 0 0;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid rgba(107, 114, 128, 0.20);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px 40px;
    align-items: flex-start;
    text-align: left;
  }
}

/* Claim — mobile (<=720) */
@media (max-width: 720px) {
  .claim { padding: 64px 20px; }
  .claim__numbers-content {
    padding: 64px 20px;
  }
  .claim__headline { font-size: 32px; }
  .claim__sub { font-size: 14px; }

  .metrics {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .metric {
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(107, 114, 128, 0.15);
  }
  .metric:last-child { border-bottom: 0; }
  .metric__num { font-size: 48px; }
  .metric__unit { font-size: 20px; }

  .cases { margin-top: 56px; }
  .case,
  .case:nth-child(even) { padding: 56px 0; gap: 28px; }
  .case:first-child { padding-top: 0; }
  .case__institution { font-size: 24px; }
  .case__quote { font-size: 19px; padding-left: 16px; }
  .case__narrative { font-size: 15px; }
  .case__metric-num { font-size: 24px; }
  .case__metrics { gap: 16px 28px; }

  .claim__closing {
    font-size: 18px;
    margin-top: 64px;
  }
}

/* =========================================================
   SECTION 06 : THE GAIN — Transformation Timeline
   ========================================================= */
.gain {
  /* 4-stop gradient — holds near Midnight for the first 40% then lifts visibly
     through a mid-teal toward Deep Teal at the bottom.  Gives the section a
     perceptible "ascent" as the reader scrolls from the claim zone into the
     transformation payoff. */
  background: linear-gradient(
    180deg,
    #0f2329 0%,
    #121f28 40%,
    #162d36 70%,
    #1a3942 100%
  );
  color: var(--ihs-white);
  padding: 120px var(--gutter-desk) 80px;
  position: relative;
}

/* ---- Section header ---- */
.gain__header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 120px;
}
.gain__headline {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 52px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ihs-white);
}
.gain__headline-accent {
  color: var(--ihs-flare);
}
.gain__sub {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.70);
}
.gain__teaser {
  margin: 24px auto 0;
  max-width: 720px;
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
}

/* ---- Timeline structure ---- */
.timeline {
  position: relative;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1100px;
}
/* Vertical spine — two layers:
   ::before = dim base (Slate @ 10%) spanning the whole timeline.
   ::after  = brightening overlay (Slate @ 30%), height driven by
   the --spine-progress CSS variable which JS updates as each milestone
   activates. The effect is a "line being drawn" as the reader scrolls. */
.timeline::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 50%;
  width: 2px;
  background: rgba(107, 114, 128, 0.10);
  transform: translateX(-1px);
  pointer-events: none;
  z-index: 0;
}
.timeline::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 50%;
  width: 2px;
  height: var(--spine-progress, 0px);
  background: rgba(107, 114, 128, 0.30);
  transform: translateX(-1px);
  pointer-events: none;
  z-index: 0;
  transition: height 400ms ease-out;
}

.milestone {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto;
  align-items: center;
  column-gap: 28px;
  margin-bottom: 160px;
}
.milestone:last-child { margin-bottom: 0; }

/* Year marker circle, centred on the spine */
.milestone__marker {
  grid-column: 2;
  grid-row: 1;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ihs-midnight);
  border: 1px solid rgba(107, 114, 128, 0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.milestone__year {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ihs-white);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

/* Panels — shared */
.milestone__panel {
  max-width: 380px;
  width: 100%;
  padding: 32px;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}
.milestone__panel--before {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  background: rgba(107, 114, 128, 0.15);
  border: 1px solid rgba(107, 114, 128, 0.20);
  color: rgba(255, 255, 255, 0.60);
}
.milestone__panel--after {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
  background: rgba(26, 57, 66, 0.50);
  border: 1px solid rgba(212, 175, 55, 0.40);
  color: rgba(255, 255, 255, 0.95);
}

/* ---- Year 5 "payoff" treatment — applies to the After panel of the
   last milestone only. Slightly stronger Gilt border + static outer
   glow + heavier emotion-tag weight to reward the reader. ---- */
.milestone:last-child .milestone__panel--after {
  border-color: rgba(212, 175, 55, 0.60);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.15);
}
.milestone:last-child .milestone__panel--after .milestone__emotion {
  font-weight: 600;
}

.milestone__icon {
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
}
.milestone__icon--x { color: rgba(107, 114, 128, 0.50); }
.milestone__icon--check { color: rgba(212, 175, 55, 0.80); }

.milestone__emotion {
  display: block;
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.milestone__panel--before .milestone__emotion { color: var(--ihs-slate); }
.milestone__panel--after .milestone__emotion { color: var(--ihs-gilt); }

.milestone__body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}

/* ---- Scroll-triggered reveal (desktop) ---- */
/* Panels translate, fade, and scale in together. The custom bezier
   (0.22, 1, 0.36, 1) gives a smooth decelerating finish that feels
   intentional rather than generic ease-out. */
.milestone__panel--before {
  opacity: 0;
  transform: translateX(-40px) scale(0.96);
  transition:
    opacity 300ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.milestone__panel--after {
  opacity: 0;
  transform: translateX(40px) scale(0.96);
  transition:
    opacity 400ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.milestone.is-revealed .milestone__panel--before {
  opacity: 1;
  transform: translateX(0) scale(1);
  transition-delay: 200ms;
}
.milestone.is-revealed .milestone__panel--after {
  opacity: 1;
  transform: translateX(0) scale(1);
  transition-delay: 600ms;
}

/* ---- Sub-element stagger within each panel ----
   Icon → +80ms emotion → +160ms (from icon) body.
   Each child fades over 200ms; timings are offset from each panel's
   own delay so the stagger rides the panel's entrance rather than
   arriving after it. */
.milestone__icon,
.milestone__emotion,
.milestone__body {
  opacity: 0;
  transition: opacity 200ms ease-out;
}
.milestone.is-revealed .milestone__panel--before .milestone__icon {
  opacity: 1;
  transition-delay: 200ms;
}
.milestone.is-revealed .milestone__panel--before .milestone__emotion {
  opacity: 1;
  transition-delay: 280ms;
}
.milestone.is-revealed .milestone__panel--before .milestone__body {
  opacity: 1;
  transition-delay: 360ms;
}
.milestone.is-revealed .milestone__panel--after .milestone__icon {
  opacity: 1;
  transition-delay: 600ms;
}
.milestone.is-revealed .milestone__panel--after .milestone__emotion {
  opacity: 1;
  transition-delay: 680ms;
}
.milestone.is-revealed .milestone__panel--after .milestone__body {
  opacity: 1;
  transition-delay: 760ms;
}
.milestone.is-revealed .milestone__marker {
  border-color: var(--ihs-gilt);
  animation: marker-pulse 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Gilt pulse: 10px spread → peak 30px at ~600ms → settles at 20px.
   Animation-fill-mode: forwards locks the resting state in place. */
@keyframes marker-pulse {
  0% {
    box-shadow:
      0 0 0 1px rgba(212, 175, 55, 0.35),
      0 0 10px 0 rgba(212, 175, 55, 0.45);
  }
  67% {
    box-shadow:
      0 0 0 1px rgba(212, 175, 55, 0.35),
      0 0 30px 8px rgba(212, 175, 55, 0.40);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(212, 175, 55, 0.35),
      0 0 20px 4px rgba(212, 175, 55, 0.20);
  }
}

/* ---- Closing statement + CTAs ---- */
.gain__closing {
  margin: 112px auto 0;
  max-width: 900px;
  text-align: center;
}
.gain__statement {
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.4;
  max-width: 800px;
}
.gain__statement-lead,
.gain__statement-tail {
  font-style: italic;
  font-weight: 400;
  color: var(--ihs-gilt);
}
.gain__statement-brand {
  font-style: normal;
  font-weight: 500;
  color: var(--ihs-flare);
}
.gain__ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.gain__cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ihs-flare);
  color: var(--ihs-white);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: transform 260ms ease, box-shadow 260ms ease;
  box-shadow: 0 10px 28px -10px rgba(255, 83, 73, 0.45);
}
.gain__cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px -12px rgba(255, 83, 73, 0.55);
}
.gain__cta-primary:focus-visible {
  outline: 2px solid var(--ihs-white);
  outline-offset: 3px;
}
.gain__cta-primary-arrow {
  display: inline-block;
  transition: transform 260ms ease;
}
.gain__cta-primary:hover .gain__cta-primary-arrow { transform: translateX(3px); }

/* ==========================================================
   .cta-flare-inline — contextual Flare CTA for homepage teasers
   that link to dedicated content pages (Case Studies, What Makes
   It Advanced, Why Institutions Fear Solar). Replaces the
   retired "Know More→" Master CTA pattern. Visual idiom mirrors
   .gain__cta-primary. Wrap in a centering container (e.g.,
   <div class="cta-flare-inline__wrap">) for layout positioning.
   ========================================================== */
.cta-flare-inline__wrap {
  display: flex;
  justify-content: center;
  margin-top: 36px;
  margin-bottom: 36px;
}
.cta-flare-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ihs-flare);
  color: var(--ihs-white);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: transform 260ms ease, box-shadow 260ms ease;
  box-shadow: 0 10px 28px -10px rgba(255, 83, 73, 0.45);
  text-decoration: none;
}
.cta-flare-inline:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px -12px rgba(255, 83, 73, 0.55);
}
.cta-flare-inline:focus-visible {
  outline: 2px solid var(--ihs-white);
  outline-offset: 3px;
}
.cta-flare-inline__arrow {
  display: inline-block;
  transition: transform 260ms ease;
}
.cta-flare-inline:hover .cta-flare-inline__arrow {
  transform: translateX(3px);
}

/* ---- Tablet (<=1024) ---- */
@media (max-width: 1024px) {
  .gain { padding: 96px 32px 60px; }
  .gain__header { margin-bottom: 96px; }
  .gain__headline { font-size: 44px; }
  .gain__teaser { font-size: 18px; }
  .timeline { max-width: 100%; }
  .milestone { column-gap: 20px; margin-bottom: 120px; }
  .milestone__panel { padding: 26px; }
  .milestone__panel--before,
  .milestone__panel--after { max-width: none; }
}

/* ---- Mobile (<768) — stack vertically ---- */
@media (max-width: 767.98px) {
  .gain { padding: 80px 20px 48px; }
  .gain__header { margin-bottom: 72px; }
  .gain__eyebrow { font-size: 12.5px; letter-spacing: 0.18em; }
  .gain__headline { font-size: 36px; }
  .gain__sub { font-size: 16px; }
  .gain__teaser { font-size: 17px; margin-top: 18px; }

  /* Hide both spine layers on mobile (vertical line doesn't belong in stacked layout) */
  .timeline::before,
  .timeline::after { display: none; }

  .milestone {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 0;
    row-gap: 16px;
    margin-bottom: 80px;
  }
  .milestone__marker {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    margin-bottom: 4px;
  }
  .milestone__panel--before {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
    max-width: 100%;
  }
  .milestone__panel--after {
    grid-column: 1;
    grid-row: 3;
    justify-self: stretch;
    max-width: 100%;
  }

  /* Animation becomes vertical slide-up on mobile */
  .milestone__panel--before {
    transform: translateY(20px);
  }
  .milestone__panel--after {
    transform: translateY(20px);
  }
  .milestone.is-revealed .milestone__panel--before,
  .milestone.is-revealed .milestone__panel--after {
    transform: translateY(0);
  }

  /* Closing block on mobile */
  .gain__closing { margin-top: 72px; }
  .gain__statement { font-size: 28px; line-height: 1.35; padding: 0 4px; }
  .gain__ctas {
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
  }
  .gain__cta-primary { padding: 14px 26px; font-size: 19px; }
  .cta-flare-inline { padding: 14px 26px; }
  .cta-flare-inline__wrap { margin-top: 28px; margin-bottom: 28px; }
}

/* =========================================================
   STAGE 4 — Shared Form System + Sections 07 & 08
   ========================================================= */

/* =========================================================
   SECTION 07 : BOARD-READY GATE
   ========================================================= */
.boardgate {
  background: var(--ihs-deep-teal);
  color: var(--ihs-white);
  /* Top padding tightened twice: original clamp(96px, 12vw, 160px) →
     halved (refinement 1) → reduced ~40% more here, so the [DRAFT] marker
     sits closer to the section top and reduces the perceived "dead zone"
     between Section 06's CTA and Section 07's first content. Bottom padding
     unchanged so the boardgate→final-cta transition stays generous. */
  padding-top: clamp(28px, 3.5vw, 48px);
  padding-bottom: clamp(96px, 12vw, 160px);
  padding-inline: var(--gutter-desk);
}
.boardgate__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.boardgate__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 96px;
}
.boardgate__headline {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 52px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ihs-white);
}
.boardgate__sub {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: rgba(245, 241, 232, 0.70);
  max-width: 640px;
  margin-inline: auto;
}

/* ---- Pack grid (2-row hierarchy: master full-width, then label, then 3 components) ---- */
.pack-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pack-grid__label {
  text-align: center;
  margin: 48px 0 24px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ihs-slate);
}
.pack-grid__components {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pack-card {
  background: var(--ihs-midnight);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 250ms ease-out;
  position: relative;
}
/* Master card — wide horizontal composition: preview left, body right */
.pack-card--master {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  min-height: 320px;
}
.pack-card--master .pack-card__preview {
  aspect-ratio: auto;
  height: 100%;
}
.pack-card--master .pack-card__body {
  padding: 32px 36px;
  align-self: center;
}
@media (hover: hover) {
  .pack-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.20),
                0 12px 32px -12px rgba(212, 175, 55, 0.18);
  }
  .pack-card:hover .pack-card__doc {
    filter: blur(12px);
  }
}

.pack-card__preview {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ihs-bone);
}
.pack-card__doc {
  position: absolute;
  inset: 0;
  padding: 22px;
  filter: blur(6px);
  transition: filter 250ms ease-out;
}
.pack-card__doc-title {
  height: 9px;
  background: rgba(26, 57, 66, 0.40);
  border-radius: 2px;
  margin-bottom: 14px;
  width: 72%;
}
.pack-card__doc-line {
  height: 5px;
  background: rgba(26, 57, 66, 0.22);
  border-radius: 1px;
  margin-bottom: 7px;
}
.pack-card__doc-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 6px;
  height: 32px;
  margin: 10px 0;
}
.pack-card__doc-chart-bar {
  background: rgba(26, 57, 66, 0.30);
  border-radius: 1px;
}
.pack-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(15, 35, 41, 0.05) 0%,
    rgba(15, 35, 41, 0.20) 55%,
    rgba(15, 35, 41, 0.55) 100%);
  pointer-events: none;
}
.pack-card__lock {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  color: var(--ihs-gilt);
  opacity: 0.80;
  z-index: 1;
}
.pack-card__body {
  padding: 22px 24px 24px;
}
.pack-card__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ihs-gilt);
}
.pack-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(245, 241, 232, 0.85);
}

/* ---- Gate line ---- */
.boardgate__gate-wrap {
  text-align: center;
  max-width: 720px;
  margin: 64px auto 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.boardgate__gate-line {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ihs-gilt);
}

/* ---- Form card (shared container for meeting pills + form) ---- */
.boardgate__form-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(15, 35, 41, 0.60);
  border: 1px solid rgba(107, 114, 128, 0.28);
  border-radius: 14px;
  scroll-margin-top: 32px;
}

/* ---- Meeting-type pills ---- */
.mtg-pills {
  margin-bottom: 28px;
}
.mtg-pills__label {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ihs-slate);
}
.mtg-pills__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mtg-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  background: var(--ihs-midnight);
  border: 1px solid var(--ihs-slate);
  border-radius: 8px;
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: border-color 200ms ease-out, background-color 200ms ease-out;
}
.mtg-pill__title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ihs-bone);
  letter-spacing: 0.01em;
  transition: color 200ms ease-out;
}
.mtg-pill__sub {
  display: block;
  font-size: 12px;
  color: var(--ihs-slate);
}
.mtg-pill[aria-checked="true"] {
  border-width: 2px;
  padding: 13px 15px;
  border-color: var(--ihs-gilt);
  background: rgba(212, 175, 55, 0.08);
}
.mtg-pill[aria-checked="true"] .mtg-pill__title {
  color: var(--ihs-gilt);
}
.mtg-pill:focus-visible {
  outline: 2px solid var(--ihs-gilt);
  outline-offset: 3px;
}

/* ---- Shared form ---- */
.ihs-form__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ihs-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ihs-form__label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ihs-slate);
}
.ihs-form__input {
  display: block;
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ihs-bone);
  background: rgba(15, 35, 41, 0.40);
  border: 1px solid var(--ihs-slate);
  border-radius: 6px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}
.ihs-form__input::placeholder {
  color: rgba(107, 114, 128, 0.80);
}
.ihs-form__input:focus {
  outline: none;
  border-color: var(--ihs-gilt);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
  background: rgba(15, 35, 41, 0.55);
}
.ihs-form__input[aria-invalid="true"] {
  border-color: var(--ihs-flare);
  box-shadow: 0 0 0 3px rgba(255, 83, 73, 0.12);
}
.ihs-form__error {
  display: block;
  min-height: 16px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ihs-flare);
}
.ihs-form__error:empty { display: none; }
.ihs-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 15px 24px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ihs-white);
  background: rgba(107, 114, 128, 0.40);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: not-allowed;
  transition: background-color 220ms ease, transform 180ms ease, box-shadow 220ms ease;
}
.ihs-form__submit:not([disabled]) {
  background: var(--ihs-flare);
  cursor: pointer;
  box-shadow: 0 10px 28px -10px rgba(255, 83, 73, 0.45);
}
.ihs-form__submit:not([disabled]):hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px -12px rgba(255, 83, 73, 0.55);
}
.ihs-form__submit:focus-visible {
  outline: 2px solid var(--ihs-white);
  outline-offset: 3px;
}
.ihs-form__helper {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ihs-slate);
  text-align: center;
}
.ihs-form__helper:empty { display: none; }

/* Form state transitions */
.ihs-form__body,
.ihs-form__success,
.ihs-form__fallback {
  transition: opacity 200ms ease-out;
}
.ihs-form--transitioning .ihs-form__body,
.ihs-form--transitioning .ihs-form__success,
.ihs-form--transitioning .ihs-form__fallback {
  opacity: 0;
}

/* [hidden] must win over the explicit display rules below */
.ihs-form__body[hidden],
.ihs-form__success[hidden],
.ihs-form__fallback[hidden] { display: none; }

/* Success state */
.ihs-form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 4px;
}
.ihs-form__success-icon {
  width: 48px;
  height: 48px;
  color: var(--ihs-gilt);
  margin-bottom: 18px;
}
.ihs-form__success-head {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ihs-white);
}
.ihs-form__success-body {
  margin: 0;
  max-width: 420px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(245, 241, 232, 0.85);
}

/* Fallback state */
.ihs-form__fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 4px;
}
.ihs-form__fallback-icon {
  width: 44px;
  height: 44px;
  color: var(--ihs-slate);
  margin-bottom: 18px;
}
.ihs-form__fallback-head {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--ihs-white);
}
.ihs-form__fallback-body {
  margin: 0;
  max-width: 440px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(245, 241, 232, 0.85);
}
.ihs-form__fallback-link {
  color: var(--ihs-gilt);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-bottom-color 180ms ease;
}
.ihs-form__fallback-link:hover,
.ihs-form__fallback-link:focus-visible {
  border-bottom-color: var(--ihs-gilt);
}

/* =========================================================
   SECTION 08 : FINAL CTA
   ========================================================= */
.final-cta {
  background: var(--ihs-midnight);
  color: var(--ihs-white);
  padding-block: clamp(120px, 14vw, 200px);
  padding-inline: var(--gutter-desk);
}
.final-cta__inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.final-cta__headline {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 42px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ihs-white);
}
.final-cta__headline-accent {
  color: var(--ihs-gilt);
  font-weight: inherit;
}
.final-cta__sub {
  margin: 0 auto 48px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(245, 241, 232, 0.75);
  max-width: 620px;
}
.final-cta__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.final-cta__primary,
.final-cta__secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 32px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, color 180ms ease, border-bottom-color 180ms ease;
}
.final-cta__primary {
  background: var(--ihs-flare);
  color: var(--ihs-white);
  box-shadow: 0 10px 28px -10px rgba(255, 83, 73, 0.45);
}
.final-cta__primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px -12px rgba(255, 83, 73, 0.55);
}
.final-cta__primary:focus-visible {
  outline: 2px solid var(--ihs-white);
  outline-offset: 3px;
}
.final-cta__arrow {
  display: inline-block;
  transition: transform 260ms ease;
}
.final-cta__primary:hover .final-cta__arrow { transform: translateX(3px); }

.final-cta__secondary {
  background: transparent;
  color: var(--ihs-gilt);
  border-bottom: 1px solid transparent;
  border-radius: 0;
  padding: 18px 12px;
  box-shadow: none;
}
.final-cta__secondary:hover,
.final-cta__secondary:focus-visible {
  border-bottom-color: var(--ihs-gilt);
  outline: none;
}

.final-cta__confirm {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ihs-slate);
}

/* =========================================================
   Five Numbers metric-row entrance (all 5 cells, Pass A bug fix 3)
   Fade-in + 8px slide-up over 400ms with 80ms left-to-right stagger.
   Triggered by adding .is-revealed to .metrics when the row enters
   viewport (see script.js). Counting cells (2 HRS, 36 HRS) layer this
   entrance under their existing count-up animation — fade-in fires
   first, count-up runs over the same fade window, both complete cleanly.
   ========================================================= */
.metric {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.metrics.is-revealed .metric {
  opacity: 1;
  transform: translateY(0);
}
.metrics.is-revealed .metric:nth-child(1) { transition-delay: 0ms; }
.metrics.is-revealed .metric:nth-child(2) { transition-delay: 120ms; }
.metrics.is-revealed .metric:nth-child(3) { transition-delay: 240ms; }
.metrics.is-revealed .metric:nth-child(4) { transition-delay: 360ms; }
.metrics.is-revealed .metric:nth-child(5) { transition-delay: 480ms; }

/* =========================================================
   Scroll-triggered reveals — Sections 07 + 08
   ========================================================= */
.boardgate .boardgate__header > *,
.boardgate .pack-card,
.boardgate .pack-grid__label,
.boardgate .boardgate__gate-wrap,
.boardgate .boardgate__form-card,
.final-cta__headline,
.final-cta__sub,
.final-cta__ctas,
.final-cta__confirm {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Board gate reveal choreography */
.boardgate.is-revealed .boardgate__header > *,
.boardgate.is-revealed .pack-card,
.boardgate.is-revealed .pack-grid__label,
.boardgate.is-revealed .boardgate__gate-wrap,
.boardgate.is-revealed .boardgate__form-card {
  opacity: 1;
  transform: translateY(0);
}
/* Section 07 stagger compressed for snappier arrival — overall sequence now
   ends ~740ms after .is-revealed (was ~1300ms). Per-element fade-in duration
   stays at 400ms (set by the shared transition rule above). */
.boardgate.is-revealed .boardgate__header > *:nth-child(1) { transition-delay: 0ms; }
.boardgate.is-revealed .boardgate__header > *:nth-child(2) { transition-delay: 40ms; }
.boardgate.is-revealed .boardgate__header > *:nth-child(3) { transition-delay: 100ms; }
.boardgate.is-revealed .pack-card--master { transition-delay: 140ms; }
.boardgate.is-revealed .pack-grid__label  { transition-delay: 200ms; }
.boardgate.is-revealed .pack-grid__components > .pack-card:nth-child(1) { transition-delay: 240ms; }
.boardgate.is-revealed .pack-grid__components > .pack-card:nth-child(2) { transition-delay: 280ms; }
.boardgate.is-revealed .pack-grid__components > .pack-card:nth-child(3) { transition-delay: 320ms; }
.boardgate.is-revealed .boardgate__gate-wrap { transition-delay: 360ms; }
.boardgate.is-revealed .boardgate__form-card { transition-delay: 400ms; }

/* Form card gets a slight scale-in on top of the translateY */
.boardgate .boardgate__form-card {
  transform: translateY(12px) scale(0.98);
  transition: opacity 500ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.boardgate.is-revealed .boardgate__form-card {
  transform: translateY(0) scale(1);
}

/* Final CTA reveal choreography */
.final-cta.is-revealed .final-cta__headline,
.final-cta.is-revealed .final-cta__sub,
.final-cta.is-revealed .final-cta__ctas,
.final-cta.is-revealed .final-cta__confirm {
  opacity: 1;
  transform: translateY(0);
}
.final-cta.is-revealed .final-cta__headline { transition-delay: 50ms; }
.final-cta.is-revealed .final-cta__sub { transition-delay: 200ms; }
.final-cta.is-revealed .final-cta__ctas { transition-delay: 350ms; }
.final-cta.is-revealed .final-cta__confirm { transition-delay: 500ms; }

/* Final CTA headline gets a subtle scale on top of the slide */
.final-cta .final-cta__headline {
  transform: translateY(12px) scale(0.98);
  transition: opacity 500ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.final-cta.is-revealed .final-cta__headline {
  transform: translateY(0) scale(1);
}

/* =========================================================
   Responsive — Stage 4
   ========================================================= */

/* Tablet (<=1023) */
@media (max-width: 1023.98px) {
  .boardgate { padding-inline: 32px; }
  .final-cta { padding-inline: 32px; }
  .pack-grid__components { gap: 20px; }
  .pack-grid__label { margin: 40px 0 20px; }
  .boardgate__headline { font-size: 44px; }
  .final-cta__headline { font-size: 36px; }
}

/* Mobile (<768) */
@media (max-width: 767.98px) {
  .boardgate { padding-inline: 20px; }
  .boardgate__header { margin-bottom: 72px; }
  .boardgate__headline { font-size: 36px; }
  .boardgate__sub { font-size: 16px; }
  .pack-grid__components { grid-template-columns: 1fr; gap: 16px; }
  .pack-grid__label { margin: 32px 0 16px; }
  /* Master collapses from horizontal to vertical (preview top, body bottom) on mobile */
  .pack-card--master { display: block; min-height: 0; }
  .pack-card--master .pack-card__preview { aspect-ratio: 4 / 3; height: auto; }
  .pack-card--master .pack-card__body { padding: 18px 20px 20px; align-self: auto; }
  .pack-card__body { padding: 18px 20px 20px; }
  .pack-card__title { font-size: 16px; }
  .pack-card__desc { font-size: 13px; }
  .boardgate__gate-wrap { margin: 48px auto 36px; }
  .boardgate__gate-line { font-size: 16px; }
  .boardgate__form-card { padding: 28px 22px; }
  .mtg-pills__row { grid-template-columns: 1fr; }
  .mtg-pill__title { font-size: 13.5px; }
  .mtg-pill__sub { font-size: 11.5px; }

  .final-cta { padding-inline: 20px; }
  .final-cta__headline { font-size: 30px; }
  .final-cta__sub { font-size: 16px; margin-bottom: 36px; }
  .final-cta__ctas { flex-direction: column; gap: 16px; }
  .final-cta__primary,
  .final-cta__secondary { width: 100%; justify-content: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__bg-gradient { animation: none; }
  .pillar__item, .pillar__underline, .social__card, .cta-flare, .cta-flare__arrow {
    transition: none !important;
    animation: none !important;
  }
  .fear-cell,
  .case {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .milestone__panel--before,
  .milestone__panel--after {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .milestone__icon,
  .milestone__emotion,
  .milestone__body {
    opacity: 1 !important;
    transition: none !important;
  }
  .milestone__marker {
    border-color: var(--ihs-gilt) !important;
    animation: none !important;
    box-shadow:
      0 0 0 1px rgba(212, 175, 55, 0.35),
      0 0 20px 4px rgba(212, 175, 55, 0.20) !important;
  }
  .timeline::after {
    height: calc(100% - 60px) !important;
    transition: none !important;
  }
  .gain__cta-primary,
  .gain__cta-primary-arrow { transition: none !important; }

  /* Pass A bug-fix 3 — Five Numbers cells land in final state immediately */
  .metric {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Stage 4 — sections 07/08 reveal elements land in final state immediately */
  .boardgate .boardgate__header > *,
  .boardgate .pack-card,
  .boardgate .pack-grid__label,
  .boardgate .boardgate__gate-wrap,
  .boardgate .boardgate__form-card,
  .final-cta__headline,
  .final-cta__sub,
  .final-cta__ctas,
  .final-cta__confirm {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .ihs-form__body,
  .ihs-form__success,
  .ihs-form__fallback {
    transition: none !important;
  }
  .pack-card,
  .pack-card__doc,
  .mtg-pill,
  .ihs-form__input,
  .ihs-form__submit,
  .final-cta__primary,
  .final-cta__secondary,
  .final-cta__arrow { transition: none !important; }
}

/* =========================================================
   Pass E — Site Footer (shared by index.html + legal pages)
   Minimal utility footer: legal links + copyright. No social
   icons, no contact info, no tagline. Subtle hairline above.
   ========================================================= */
.site-footer {
  background: var(--ihs-deep-teal);
  border-top: 1px solid var(--rule-slate-20);
  padding: 48px var(--gutter-desk) 32px;
}
.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.site-footer__pages {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 6px;
}
.site-footer__links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.site-footer__link {
  color: var(--ihs-meta-on-dark);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 180ms ease;
}
.site-footer__link:hover {
  color: var(--ihs-bone);
}
.site-footer__link:focus-visible {
  outline: 1px solid var(--ihs-gilt);
  outline-offset: 4px;
  border-radius: 2px;
  color: var(--ihs-bone);
}
.site-footer__copy {
  margin: 0;
  font-size: 12px;
  color: var(--ihs-meta-on-dark);
  letter-spacing: 0.04em;
  text-align: center;
}

/* =========================================================
   Pass E — Legal pages (privacy-policy.html, terms-of-use.html)
   Single-column text layout, max 720px content width, generous
   line-height, brand-shell-matching header + footer.
   ========================================================= */
.legal-page {
  background: var(--ihs-deep-teal);
  color: var(--ihs-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Pass V — shared shell for content pages (case-studies,
   what-makes-it-advanced, book, why-institutions-fear-solar). Inherits
   the legal-page's Deep Teal chrome so the header/footer match exactly;
   .content-main is a wider container without the legal-document-specific
   narrow prose column or forced line-height — Pass W content will paint
   its own typography on top. */
.content-page {
  background: var(--ihs-deep-teal);
  color: var(--ihs-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.content-main {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px var(--gutter-desk) 96px;
}
@media (max-width: 767.98px) {
  .content-main { padding: 40px var(--gutter-mob) 64px; }
}

.legal-header {
  border-bottom: 1px solid var(--rule-slate-20);
  padding: 28px var(--gutter-desk);
}
.legal-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.legal-header__back {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 4px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
  text-decoration: underline transparent;
  text-underline-offset: 4px;
}
.legal-header__back:hover,
.legal-header__back:focus-visible {
  color: var(--ihs-white);
  text-decoration-color: currentColor;
  outline: none;
}
.legal-header__back:focus-visible {
  outline: 1px solid var(--ihs-gilt);
  outline-offset: 4px;
  border-radius: 2px;
}
.legal-header__brand {
  display: inline-flex;
}
.legal-header__logo {
  height: 96px;
  width: auto;
}
.legal-header__tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ihs-meta-on-dark);
}

.legal-main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 64px var(--gutter-desk) 96px;
  line-height: 1.7;
}

.legal-meta {
  margin: 0 0 6px;
  font-size: 13px;
  font-style: italic;
  color: var(--ihs-meta-on-dark);
}
.legal-draft-notice {
  margin: 0 0 48px;
  font-size: 13px;
  font-style: italic;
  color: var(--ihs-meta-on-dark);
  letter-spacing: 0.02em;
}

.legal-h1 {
  margin: 0 0 36px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ihs-white);
}
.legal-h2 {
  margin: 56px 0 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ihs-white);
}

.legal-main p {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--ihs-meta-on-dark);
}
.legal-main ul {
  margin: 0 0 18px;
  padding-left: 22px;
  list-style: disc;
}
.legal-main li {
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--ihs-meta-on-dark);
}
.legal-main li::marker {
  color: rgba(255, 255, 255, 0.40);
}

/* Inline placeholder marker — Slate-tinted background highlight so
   reviewers can spot incomplete content at a glance. */
.legal-placeholder {
  display: inline;
  font-size: 0.92em;
  font-style: italic;
  color: var(--ihs-meta-on-dark);
  background: rgba(107, 114, 128, 0.22);
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.01em;
}

.legal-hr {
  border: 0;
  border-top: 1px solid var(--rule-slate-20);
  margin: 56px 0 32px;
}

/* ---------- 404 / error page ---------- */
.error-page .legal-main {
  text-align: center;
  padding-top: 96px;
  padding-bottom: 120px;
}
.error-page .legal-h1 {
  margin-bottom: 16px;
}
.error-page .legal-main p {
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.error-page__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 48px;
}
.error-page__cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ihs-meta-on-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 14px 8px;
  transition: color 200ms ease;
}
.error-page__cta-secondary:hover,
.error-page__cta-secondary:focus-visible {
  color: var(--ihs-white);
}
@media (max-width: 767.98px) {
  .error-page .legal-main { padding-top: 64px; padding-bottom: 80px; }
  .error-page__ctas { gap: 16px; flex-direction: column; }
}
.legal-bottom-notice {
  margin: 0;
  font-size: 12.5px;
  font-style: italic;
  color: var(--ihs-meta-on-dark);
  text-align: center;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

/* ============================================================
   FAQ page — accordion styling for native <details>/<summary>.
   Single-page accordion using browser-native disclosure widgets.
   Each .faq-item is an independent <details>; visitors can open
   multiple at once. No JS required.
   ============================================================ */

.faq-intro {
  font-size: 16px;
  color: rgba(245, 241, 232, 0.78);
  line-height: 1.6;
  margin-bottom: 56px;
  font-style: italic;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.faq-item {
  border: 1px solid rgba(107, 114, 128, 0.35);
  border-radius: 10px;
  background: rgba(15, 35, 41, 0.55);
  overflow: hidden;
  transition: border-color 200ms ease, background 200ms ease;
}

.faq-item:hover {
  border-color: rgba(212, 175, 55, 0.40);
}

.faq-item[open] {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(15, 35, 41, 0.78);
}

.faq-question {
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 24px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  color: #F5F1E8;
  position: relative;
  user-select: none;
}

/* Hide default browser triangle/arrow */
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question::marker {
  display: none;
  content: "";
}

/* Custom chevron indicator */
.faq-question::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: #d4af37;
  line-height: 1;
  transition: transform 250ms ease, color 250ms ease;
}

.faq-item[open] .faq-question::after {
  content: "\2212"; /* minus sign U+2212 */
  color: #ff5349;
}

.faq-question:focus-visible {
  outline: 2px solid #ff5349;
  outline-offset: -2px;
}

.faq-answer {
  padding: 0 24px 24px 24px;
  border-top: 1px solid rgba(107, 114, 128, 0.25);
  padding-top: 20px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(245, 241, 232, 0.88);
  margin-bottom: 14px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer p strong {
  color: #F5F1E8;
  font-weight: 600;
}

.faq-answer ul {
  margin: 14px 0;
  padding-left: 24px;
}

.faq-answer ul li {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(245, 241, 232, 0.88);
  margin-bottom: 8px;
}

/* Mobile tightening */
@media (max-width: 720px) {
  .faq-intro {
    font-size: 15px;
    margin-bottom: 40px;
  }
  .faq-question {
    font-size: 16px;
    padding: 18px 48px 18px 18px;
  }
  .faq-question::after {
    right: 18px;
    font-size: 22px;
  }
  .faq-answer {
    padding: 18px 18px 20px 18px;
  }
  .faq-answer p,
  .faq-answer ul li {
    font-size: 14.5px;
  }
}

/* Mobile responsive */
@media (max-width: 767.98px) {
  .site-footer { padding: 40px var(--gutter-mob) 28px; }
  .site-footer__inner { gap: 14px; }
  .site-footer__pages { flex-direction: column; gap: 10px; padding-bottom: 4px; }
  .site-footer__links { flex-direction: column; gap: 10px; }

  .legal-header { padding: 22px var(--gutter-mob); }
  .legal-header__inner { gap: 12px; }
  .legal-header__logo { height: 60px; }
  .legal-header__tagline { font-size: 13px; }
  .legal-header__back { font-size: 12px; padding: 6px 2px; }
  .legal-main { padding: 40px var(--gutter-mob) 64px; }
  .legal-h1 { font-size: 32px; margin-bottom: 28px; }
  .legal-h2 { font-size: 18px; margin: 40px 0 12px; }
  .legal-main p,
  .legal-main li { font-size: 14.5px; }
  .legal-draft-notice { margin-bottom: 32px; }
}

/* =========================================================
   Pass G — Signed letter modal viewer
   Single modal instance reused for all 4 case studies. The
   .letter-modal--open class on the modal toggles visibility.
   When body.has-letter-modal-open is set, the floating Hero
   CTA is hidden so it doesn't compete with the modal panel.
   z-index 100 sits above the floating CTA (z-index 50) and
   above all other site chrome.
   ========================================================= */
.letter-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms ease, visibility 0s linear 300ms;
}
.letter-modal[hidden] {
  /* The HTML `hidden` attribute keeps the modal fully removed from
     layout pre-first-open. JS removes the attribute on first click. */
  display: none;
}
.letter-modal--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 300ms ease, visibility 0s linear 0s;
}

.letter-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 35, 41, 0.85);
  cursor: pointer;
}

.letter-modal__panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  background: var(--ihs-bone);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.40);
  display: flex;
  flex-direction: column;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 320ms ease-out;
}
.letter-modal--open .letter-modal__panel {
  transform: scale(1);
  opacity: 1;
}

.letter-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  color: var(--ihs-deep-teal);
  font-size: 24px;
  line-height: 1;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 180ms ease;
  z-index: 1;
}
.letter-modal__close:hover {
  background: rgba(15, 35, 41, 0.08);
}
.letter-modal__close:focus-visible {
  outline: 2px solid var(--ihs-gilt);
  outline-offset: 2px;
  background: rgba(15, 35, 41, 0.08);
}

.letter-modal__title {
  margin: 0 auto 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: rgba(15, 35, 41, 0.70);
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0 44px; /* clear the top-right close button */
}

.letter-modal__image-wrap {
  flex: 1;
  overflow-y: auto;
  border: 1px solid var(--rule-slate-20);
  border-radius: 6px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.letter-modal__image {
  display: block;
  width: 100%;
  height: auto;
}

/* Hide the floating Hero CTA while modal is open (same approach as
   Stage 4 R4's form-card hide, but a separate condition — both can
   apply independently). */
body.has-letter-modal-open .cta-flare {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
}

/* Mobile (<768) — full-bleed panel with smaller chrome */
@media (max-width: 767.98px) {
  .letter-modal { padding: 12px; }
  .letter-modal__panel {
    max-width: none;
    width: 100%;
    padding: 16px;
    border-radius: 10px;
  }
  .letter-modal__close {
    width: 32px;
    height: 32px;
    top: 10px;
    right: 10px;
    font-size: 22px;
  }
  .letter-modal__title {
    font-size: 14.5px;
    padding: 0 36px;
    margin-bottom: 12px;
  }
}

/* Reduced-motion: snap open/close, no scale or fade */
@media (prefers-reduced-motion: reduce) {
  .letter-modal,
  .letter-modal__panel {
    transition: none !important;
  }
  .letter-modal__panel {
    transform: none;
  }
  body.has-letter-modal-open .cta-flare {
    transition: none !important;
  }
}

/* =========================================================
   Back-to-top utility — bottom-left companion to the
   bottom-right Hero CTA. Hidden until the visitor scrolls
   past the hero. z-index 60 sits above .cta-flare (50) but
   below the letter modal (100) so it never bleeds through.
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ihs-deep-teal);
  color: var(--ihs-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0);
  transition: opacity 250ms ease, visibility 0s linear 250ms,
              background-color 180ms ease, transform 180ms ease;
}
.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 250ms ease, visibility 0s linear 0s,
              background-color 180ms ease, transform 180ms ease;
}
.back-to-top:hover {
  background: rgba(26, 57, 66, 0.90);
  transform: scale(1.05);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--ihs-gilt);
  outline-offset: 2px;
}
.back-to-top__icon {
  width: 20px;
  height: 20px;
}

/* Hide back-to-top while the letter modal is open (mirrors the
   .cta-flare hide pattern — keeps both floating affordances out
   of the modal foreground). */
body.has-letter-modal-open .back-to-top {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Mobile (<768) — slightly smaller + tighter to the corner */
@media (max-width: 767.98px) {
  .back-to-top {
    bottom: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
  }
  .back-to-top__icon { width: 18px; height: 18px; }
}

/* Reduced motion — kill the smooth fade + scale */
@media (prefers-reduced-motion: reduce) {
  .back-to-top,
  .back-to-top--visible {
    transition: none !important;
  }
  .back-to-top:hover { transform: none; }
}

/* =========================================================
   Pass J — Case study photo carousel
   Lives inside figure.case__photo. One per multi-photo case
   study (Cases 02, 03, 04). Case 01 (St. Joseph's) uses the
   single-image .case__photo-static path and never instantiates
   carousel chrome. The container is the figure (which already
   sets aspect-ratio + rounded corners + overflow:hidden).
   ========================================================= */

/* Visually-hidden helper — used by the carousel's aria-live announcer. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.case-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.case-carousel__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.case-carousel__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  width: 100%;
  height: 100%;
  /* JS sets --slide-index inline on this element. */
  transform: translateX(calc(var(--slide-index, 0) * -100%));
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.case-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
}
.case-carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Prev/next nav arrows — vertically centered, ~16px from each side */
.case-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 35, 41, 0.70);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--ihs-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background-color 180ms ease, transform 180ms ease;
}
.case-carousel__nav--prev { left: 16px; }
.case-carousel__nav--next { right: 16px; }
.case-carousel__nav svg { width: 18px; height: 18px; }
.case-carousel__nav:hover {
  background: rgba(15, 35, 41, 0.85);
  transform: translateY(-50%) scale(1.05);
}
.case-carousel__nav:focus-visible {
  outline: 2px solid var(--ihs-gilt);
  outline-offset: 2px;
}

/* Dot indicators — bottom-center of carousel. WCAG 2.5.8: each dot button
   is a 24×24 hit area with no overlap between adjacent buttons; the
   visible dot is rendered via ::before at 8×8 (10×10 active). */
.case-carousel__dots {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0;
  z-index: 2;
}
.case-carousel__dot {
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 180ms ease;
}
.case-carousel__dot::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.50);
  transition: background-color 180ms ease, width 180ms ease, height 180ms ease;
}
.case-carousel__dot:hover::before { background: var(--ihs-white); }
.case-carousel__dot:focus-visible {
  outline: 2px solid var(--ihs-gilt);
  outline-offset: 2px;
}
.case-carousel__dot--active::before {
  width: 10px;
  height: 10px;
  background: var(--ihs-gilt);
}

/* Mobile (<768) — smaller chrome, larger touch targets via padding */
@media (max-width: 767.98px) {
  .case-carousel__nav {
    width: 36px;
    height: 36px;
  }
  .case-carousel__nav--prev { left: 8px; }
  .case-carousel__nav--next { right: 8px; }
  .case-carousel__nav svg { width: 16px; height: 16px; }
  .case-carousel__dots { bottom: 12px; gap: 0; }
  .case-carousel__dot { width: 24px; height: 24px; }
  .case-carousel__dot::before { width: 6px; height: 6px; }
  .case-carousel__dot--active::before { width: 8px; height: 8px; }
}

/* Reduced motion — snap slides without animation */
@media (prefers-reduced-motion: reduce) {
  .case-carousel__track { transition: none !important; }
  .case-carousel__nav,
  .case-carousel__dot { transition: none !important; }
  .case-carousel__nav:hover { transform: translateY(-50%); }
}

/* =========================================================
   Pass W4 — Booking page intro line under H1.
   ========================================================= */
.book-page__intro {
  text-align: center;
  margin: 0 auto 48px;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}
@media (max-width: 767.98px) {
  .book-page__intro {
    font-size: 16px;
    margin-bottom: 36px;
  }
}
