/*
 * KENJAC public website polish layer.
 * Homepage, Stories + Knowledge, and the shared social rail only.
 * Kept separate from SOIMS and from the public service-flow presentation.
 */

:root {
  --site-ink: #19131f;
  --site-muted: #625b68;
  --site-paper: #fffaf4;
  --site-paper-deep: #f4eee6;
  --site-line: rgba(25, 19, 31, 0.13);
  --site-purple: #684ed8;
  --site-pink: #e86683;
  --site-orange: #ee9255;
  --site-yellow: #f4ca54;
  --site-blue: #72c4e7;
  --site-green: #78c7a4;
  --site-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --site-shadow: 0 24px 70px rgba(37, 25, 46, 0.12);
}

body {
  background: var(--site-paper);
  color: var(--site-ink);
}

::selection {
  background: #dfd5ff;
  color: var(--site-ink);
}

.site-header {
  background: rgba(255, 250, 244, 0.9);
  border-bottom-color: rgba(25, 19, 31, 0.09);
}

.route-card:focus-visible,
.program-card:focus-visible,
.community-action:focus-visible,
.story-card:focus-visible,
.blog-lanes a:focus-visible,
.editorial-story-card:focus-visible,
.knowledge-tile:focus-visible,
.gallery-shot:focus-visible,
.social-link:focus-visible {
  outline: 3px solid var(--site-ink);
  outline-offset: 4px;
}

/* Shared floating social links ----------------------------------------- */

.social-rail {
  position: fixed;
  z-index: 780;
  top: 50%;
  right: 18px;
  display: grid;
  gap: 8px;
  padding: 7px;
  transform: translateY(-50%);
  border: 1px solid rgba(25, 19, 31, 0.1);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.84);
  box-shadow: 0 18px 44px rgba(25, 19, 31, 0.13);
  backdrop-filter: blur(18px) saturate(140%);
}

.social-link {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: #fff;
  color: var(--site-ink);
  box-shadow: 0 4px 14px rgba(25, 19, 31, 0.08);
  text-decoration: none;
  transition:
    transform 240ms var(--site-ease),
    background 240ms var(--site-ease),
    color 240ms var(--site-ease),
    box-shadow 240ms var(--site-ease);
}

.social-link svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-linkedin svg {
  fill: currentColor;
  stroke: none;
}

.social-link span {
  position: absolute;
  right: 57px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--site-ink);
  color: #fff;
  box-shadow: 0 10px 26px rgba(25, 19, 31, 0.2);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 180ms ease, transform 220ms var(--site-ease);
  white-space: nowrap;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateX(-4px) scale(1.06);
  box-shadow: 0 12px 28px rgba(25, 19, 31, 0.17);
}

.social-link:hover span,
.social-link:focus-visible span {
  opacity: 1;
  transform: none;
}

.social-instagram:hover,
.social-instagram:focus-visible {
  background: linear-gradient(135deg, #f4ca54, #e86683 52%, #684ed8);
  color: #fff;
}

.social-linkedin:hover,
.social-linkedin:focus-visible {
  background: #0a66c2;
  color: #fff;
}

/* Homepage ------------------------------------------------------------- */

.active-home .page-content {
  width: min(var(--wrap-wide), calc(100% - 48px));
  padding: 0 0 112px;
}

.active-home .home-hero {
  background:
    radial-gradient(circle at 89% 7%, rgba(255, 220, 92, 0.34), transparent 24%),
    radial-gradient(circle at 45% 100%, rgba(103, 203, 232, 0.2), transparent 27%),
    linear-gradient(125deg, #5e49cb 0%, #7550cf 33%, #d85e82 69%, #ed9552 100%);
}

.active-home .home-hero-grid {
  min-height: 610px;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
  gap: clamp(40px, 5vw, 78px);
  padding: 64px 0 72px;
}

.active-home .home-hero-copy,
.active-home .home-hero-copy > * {
  min-width: 0;
}

.active-home .home-hero h1 {
  max-width: 760px;
  margin: 15px 0 20px;
  color: #fff;
  font-size: clamp(3.65rem, 6.2vw, 6.45rem);
  line-height: 0.91;
  letter-spacing: -0.064em;
  text-wrap: balance;
}

.active-home .home-hero .lead {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.62;
}

.active-home .hero-art {
  min-width: 0;
  min-height: 470px;
}

.active-home .hero-house {
  inset: 20px 28px 38px 34px;
  border-width: 6px;
  border-radius: 30px;
}

.active-home .route-strip {
  isolation: isolate;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 24px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background: var(--site-ink);
  box-shadow: var(--site-shadow);
}

.active-home .route-strip .route-card {
  contain: paint;
  isolation: isolate;
  display: flex;
  min-width: 0;
  min-height: 132px;
  flex-direction: column;
  padding: 22px 24px;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: transform 280ms var(--site-ease), filter 280ms ease;
}

.active-home .route-strip .route-card:last-child {
  border-right: 0;
}

.active-home .route-strip .route-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -82px;
  right: -70px;
  width: 164px;
  height: 164px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 360ms var(--site-ease);
}

.active-home .route-strip .route-card:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.active-home .route-strip .route-card:hover::before {
  transform: scale(1.16) translate(-6px, 7px);
}

.active-home .route-support { background: #25172f; }
.active-home .route-referral { background: #1b2637; }
.active-home .route-visit { background: #123642; }
.active-home .route-speak { background: #3a1729; }

.active-home .route-strip .route-card > span {
  position: relative;
  color: #d5cedb;
  font-size: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.active-home .route-strip .route-card > b {
  position: relative;
  margin-top: auto;
  padding-top: 22px;
  color: #fff;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.active-home .route-strip .route-card > i {
  right: 21px;
  bottom: 19px;
  color: var(--site-yellow);
}

.active-home .work-section,
.active-home .gallery-section,
.active-home .stories-section,
.active-home .faq-section,
.active-home .partners-section {
  position: relative;
}

.active-home .work-section {
  padding: 104px 0 82px;
}

.active-home .section-topline {
  border-bottom-color: var(--site-line);
}

.active-home .section-heading-big {
  align-items: flex-end;
  gap: 40px;
}

.active-home .section-heading-big > div {
  min-width: 0;
}

.active-home .section-heading-big h2 {
  color: var(--site-ink);
  text-wrap: balance;
}

.active-home .section-heading-big > p {
  max-width: 440px;
  color: var(--site-muted);
}

.active-home .program-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  perspective: 1200px;
}

.active-home .program-card,
.motion-card,
.editorial-story-card,
.knowledge-tile {
  --lift: 0px;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift));
  transform-style: preserve-3d;
  transition: transform 360ms var(--site-ease), box-shadow 360ms var(--site-ease), border-color 240ms ease;
  will-change: transform;
}

.active-home .program-card {
  min-width: 0;
  min-height: 344px;
  border: 1px solid rgba(25, 19, 31, 0.09);
  box-shadow: 0 11px 30px rgba(35, 24, 44, 0.06);
}

.active-home .program-card:hover,
.motion-card:hover,
.editorial-story-card:hover,
.knowledge-tile:hover {
  --lift: -8px;
  box-shadow: 0 25px 58px rgba(35, 24, 44, 0.16);
}

.active-home .program-card h3,
.active-home .program-card p,
.active-home .program-card b,
.active-home .program-card .program-index {
  color: #211a25;
}

.active-home .program-card p {
  opacity: 0.82;
}

.active-home .tone-violet { background: #c9bef4; }
.active-home .tone-green { background: #a2dbbf; }
.active-home .tone-orange { background: #f7c486; }
.active-home .tone-blue { background: #a7d2ee; }
.active-home .tone-coral { background: #f3aeb9; }
.active-home .tone-gold { background: #f2d77e; }

.active-home .work-note {
  margin-top: 16px;
  border: 1px solid rgba(25, 19, 31, 0.08);
  background: #f1ebe3;
}

.active-home .story-section {
  margin: 28px 0 74px;
  padding: clamp(30px, 4vw, 52px);
  color: var(--site-ink);
  border: 1px solid rgba(25, 19, 31, 0.09);
  background:
    radial-gradient(circle at 94% 5%, rgba(104, 78, 216, 0.11), transparent 26%),
    linear-gradient(135deg, #f0eae2 0%, #fffaf4 52%, #e8f1f5 100%);
  box-shadow: 0 24px 68px rgba(36, 28, 48, 0.08);
}

.active-home .story-copy-compact .section-number { color: #5a40c6; }
.active-home .story-copy-compact h2 { color: var(--site-ink); text-wrap: balance; }
.active-home .story-copy-compact > p,
.active-home .timeline-copy { color: #5d5662; }
.active-home .timeline-rail { border-top-color: rgba(25, 19, 31, 0.17); }
.active-home .timeline-item { color: #4f4854; }
.active-home .timeline-item span { color: #736b78; }
.active-home .timeline-item.is-active {
  color: var(--site-ink);
  border-bottom-color: var(--site-purple);
}
.active-home .timeline-item.is-active span { color: #49424e; }
.active-home .story-photo.main figcaption { color: #fff; }

.active-home .statement-band {
  margin: 0 0 74px;
  color: var(--site-ink);
  background: linear-gradient(118deg, #ef9a55 0%, #f3cc54 58%, #8bd4e8 100%);
  box-shadow: 0 20px 54px rgba(84, 59, 31, 0.1);
}

.active-home .statement-band > span,
.active-home .statement-band h2,
.active-home .statement-band a {
  color: var(--site-ink);
}

.active-home .statement-band a {
  border-color: rgba(25, 19, 31, 0.28);
}

.active-home .impact-section {
  margin: 0 0 82px;
  padding: clamp(28px, 4vw, 54px);
  overflow: hidden;
  border-radius: 36px;
  color: #fff;
  background:
    radial-gradient(circle at 91% 4%, rgba(104, 78, 216, 0.38), transparent 29%),
    linear-gradient(135deg, #17131f 0%, #21192f 58%, #172e45 100%);
}

.active-home .impact-section .section-topline {
  border-bottom-color: rgba(255, 255, 255, 0.17);
}

.active-home .impact-section .section-topline > span { color: #ffda6c; }
.active-home .impact-section .section-topline p { color: #d1cbd6; }
.active-home .impact-lead {
  background: linear-gradient(145deg, #6548d5 0%, #8057d3 58%, #d75f83 100%);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.17);
}
.active-home .impact-stats article {
  border-color: rgba(255, 255, 255, 0.13);
  background: #fffdf9;
  color: var(--site-ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
.active-home .impact-stats article > span { color: var(--site-muted); }

.active-home .community-section {
  margin: 0 0 88px;
  padding: clamp(30px, 4vw, 58px);
  background:
    radial-gradient(circle at 92% 8%, rgba(246, 203, 73, 0.25), transparent 26%),
    linear-gradient(124deg, #5f45ce 0%, #7752d1 38%, #d65f83 74%, #e99452 100%);
  box-shadow: 0 28px 72px rgba(72, 43, 117, 0.18);
}

.active-home .community-intro > span { color: #ffdf78; }
.active-home .community-intro p { color: #f2eaf4; }
.active-home .community-action {
  border: 1px solid rgba(255, 255, 255, 0.27);
  background: rgba(22, 15, 31, 0.2);
  color: #fff;
  box-shadow: 0 10px 26px rgba(25, 12, 38, 0.09);
}
.active-home .community-action:hover {
  background: rgba(255, 255, 255, 0.18);
}
.active-home .community-action span { color: #ffe6ed; opacity: 0.94; }
.active-home .community-action h3,
.active-home .community-action b { color: #fff; }

.active-home .gallery-section { padding: 6px 0 90px; }
.active-home .gallery-grid-home { gap: 14px; }
.active-home .gallery-grid-home figure {
  border: 1px solid rgba(25, 19, 31, 0.08);
  box-shadow: 0 13px 34px rgba(35, 24, 44, 0.08);
}

.active-home .stories-section { padding: 76px 0 92px; }
.active-home .story-card {
  border: 1px solid rgba(25, 19, 31, 0.09);
  box-shadow: 0 12px 32px rgba(35, 24, 44, 0.08);
}
.active-home .story-tone-1 { background: #cabff4; }
.active-home .story-tone-2 { background: #f1d477; }
.active-home .story-tone-3 { background: #f0a7b4; }

.active-home .faq-section { padding: 82px 0; }
.active-home .faq-list details p { color: var(--site-muted); }
.active-home .partners-section { padding-bottom: 40px; }

/* Stories + Knowledge -------------------------------------------------- */

.tone-blog .site-main {
  overflow: clip;
  background:
    linear-gradient(rgba(104, 78, 216, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 78, 216, 0.035) 1px, transparent 1px),
    var(--site-paper);
  background-size: 38px 38px;
}

.blog-masthead {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(circle at 87% 17%, rgba(244, 202, 84, 0.25), transparent 24%),
    radial-gradient(circle at 67% 78%, rgba(232, 102, 131, 0.2), transparent 30%),
    linear-gradient(135deg, #24102b 0%, #4a245d 54%, #6b3b83 100%);
}

.blog-masthead::before {
  content: "";
  position: absolute;
  left: -150px;
  bottom: -260px;
  width: 430px;
  height: 430px;
  border: 70px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
}

.blog-masthead-grid {
  position: relative;
  z-index: 1;
  min-height: 640px;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  gap: clamp(46px, 6vw, 88px);
  padding: 76px 0 92px;
}

.blog-masthead-copy { min-width: 0; }
.blog-kicker { color: #ffc39f; }
.blog-masthead h1 {
  max-width: 690px;
  color: #fff;
  font-size: clamp(3.5rem, 5.6vw, 5.7rem);
  line-height: 0.91;
  text-wrap: balance;
}
.blog-masthead p { color: rgba(255, 255, 255, 0.8); line-height: 1.65; }
.blog-masthead-actions > a { color: #fff; }

.blog-feature-stack {
  min-width: 0;
  min-height: 480px;
}

.blog-feature-card,
.blog-stack-card {
  border-radius: 30px;
}

.blog-feature-card {
  inset: 7px 34px 30px 38px;
  box-shadow: 0 34px 82px rgba(12, 8, 18, 0.34);
  transition: transform 460ms var(--site-ease), box-shadow 460ms var(--site-ease);
}

.blog-feature-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.012);
  box-shadow: 0 44px 100px rgba(12, 8, 18, 0.4);
}

.blog-feature-copy h2 {
  color: #fff;
  text-wrap: balance;
}

.blog-feature-copy b { color: #fff; }
.blog-feature-empty .blog-feature-copy { z-index: 4; }
.blog-feature-empty .blog-feature-copy small,
.blog-feature-empty .blog-feature-copy h2 { color: #fff; }

.blog-lanes {
  position: relative;
  z-index: 55;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: -48px;
  margin-bottom: 20px;
}

.blog-lanes a {
  display: flex;
  min-width: 0;
  min-height: 158px;
  flex-direction: column;
  padding: 23px 24px;
  border: 1px solid rgba(25, 19, 31, 0.09);
  border-radius: 25px;
  color: var(--site-ink);
  box-shadow: 0 20px 48px rgba(35, 24, 44, 0.11);
  text-decoration: none;
  transition: transform 300ms var(--site-ease), box-shadow 300ms var(--site-ease);
}

.blog-lanes a:nth-child(1) { background: #e6e0fb; }
.blog-lanes a:nth-child(2) { background: #f7e5a2; }
.blog-lanes a:nth-child(3) { background: #dceff7; }
.blog-lanes a:hover {
  transform: translateY(-6px);
  box-shadow: 0 29px 62px rgba(35, 24, 44, 0.16);
}
.blog-lanes small { color: #583fc6; }
.blog-lanes strong { color: var(--site-ink); }
.blog-lanes span { color: var(--site-muted); }

.blog-hub-shell { padding: 0 0 112px; }
.blog-tabs {
  top: 92px;
  margin: 28px 0 16px;
  border-color: rgba(25, 19, 31, 0.11);
  background: rgba(255, 250, 244, 0.91);
  box-shadow: 0 14px 38px rgba(35, 24, 44, 0.1);
}

.blog-section-heading {
  grid-template-columns: 155px minmax(0, 1fr) minmax(260px, 360px);
  gap: 30px;
  padding: 66px 0 30px;
  border-bottom-color: var(--site-line);
}

.blog-section-heading > span { color: #583fc6; }
.blog-section-heading h2 {
  color: var(--site-ink);
  text-wrap: balance;
}
.blog-section-heading p { color: var(--site-muted); }

.editorial-story-grid {
  gap: 18px;
  padding-top: 32px;
}

.editorial-story-card {
  min-width: 0;
  border-color: rgba(25, 19, 31, 0.1);
  background: #fffdf9;
  box-shadow: 0 14px 36px rgba(35, 24, 44, 0.08);
}

.editorial-story-copy h3 { color: var(--site-ink); text-wrap: balance; }
.editorial-story-copy p { color: var(--site-muted); }

.knowledge-editorial-grid { gap: 18px; padding-top: 32px; }
.knowledge-hero,
.knowledge-tile { box-shadow: 0 14px 36px rgba(35, 24, 44, 0.09); }
.knowledge-tile { color: var(--site-ink); }
.knowledge-tile:hover { box-shadow: 0 25px 56px rgba(35, 24, 44, 0.15); }
.kt-violet { background: #e5defb; }
.kt-coral { background: #f8d0d8; }
.kt-blue { background: #dceff7; }
.kt-gold { background: #f7e5a2; }

.blog-gallery-grid { gap: 14px; padding-top: 32px; }
.gallery-shot {
  border: 1px solid rgba(25, 19, 31, 0.09);
  box-shadow: 0 13px 34px rgba(35, 24, 44, 0.09);
}

.hub-empty {
  margin-top: 32px;
  background: rgba(255, 253, 249, 0.88);
  box-shadow: 0 14px 36px rgba(35, 24, 44, 0.07);
}

/* Responsive layout ---------------------------------------------------- */

@media (max-width: 1180px) {
  .social-rail { right: 10px; }

  .active-home .home-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  }

  .active-home .route-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .active-home .route-strip .route-card:nth-child(2) { border-right: 0; }
  .active-home .route-strip .route-card:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .blog-masthead-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 62px 0 98px;
  }

  .blog-masthead-copy { max-width: 790px; }
  .blog-feature-stack {
    width: min(760px, 100%);
    min-height: 450px;
    margin-inline: auto;
  }

  .blog-section-heading {
    grid-template-columns: 125px minmax(0, 1fr);
  }

  .blog-section-heading p { grid-column: 2; }
}

@media (max-width: 900px) {
  .active-home .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .active-home .home-hero-copy { max-width: 820px; }
  .active-home .hero-art { min-height: 430px; }
  .active-home .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .active-home .story-section,
  .active-home .community-section { grid-template-columns: 1fr; }

  .active-home .impact-layout { grid-template-columns: 1fr; }

  .blog-lanes { grid-template-columns: 1fr 1fr; }
  .blog-lanes a:last-child { grid-column: 1 / -1; }

  .editorial-story-card,
  .editorial-story-card:nth-child(1),
  .editorial-story-card:nth-child(6n + 1) {
    grid-column: span 6;
    display: flex;
    min-height: 450px;
  }

  .editorial-story-card:nth-child(1) .editorial-story-visual,
  .editorial-story-card:nth-child(6n + 1) .editorial-story-visual {
    min-height: 240px;
  }

  .knowledge-editorial-grid { grid-template-columns: 1fr 1fr; }
  .knowledge-hero {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .active-home .page-content {
    width: min(100% - 28px, var(--wrap-wide));
    padding-bottom: 84px;
  }

  .active-home .home-hero-grid { padding: 42px 0 52px; }
  .active-home .home-hero h1 {
    font-size: clamp(3rem, 14vw, 4.5rem);
    line-height: 0.94;
  }
  .active-home .home-hero .lead { font-size: 15px; }
  .active-home .hero-art { min-height: 330px; }
  .active-home .hero-house { inset: 10px 15px 28px; }

  .active-home .route-strip { margin-top: 16px; }
  .active-home .route-strip .route-card {
    min-height: 105px;
    padding: 16px;
  }
  .active-home .route-strip .route-card > b {
    padding-top: 15px;
    font-size: 16px;
  }
  .active-home .route-strip .route-card > i {
    right: 15px;
    bottom: 14px;
  }

  .active-home .work-section { padding: 76px 0 64px; }
  .active-home .section-heading-big {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .active-home .program-grid {
    display: flex;
    gap: 14px;
    margin-inline: -14px;
    padding: 0 14px 20px;
    overflow-x: auto;
    scroll-padding-inline: 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .active-home .program-grid::-webkit-scrollbar { display: none; }
  .active-home .program-card {
    flex: 0 0 min(84vw, 360px);
    min-height: 320px;
    scroll-snap-align: center;
  }

  .active-home .story-section,
  .active-home .statement-band,
  .active-home .impact-section,
  .active-home .community-section { border-radius: 28px; }

  .active-home .story-section { margin-bottom: 58px; }
  .active-home .statement-band { margin-bottom: 58px; padding: 38px 25px; }
  .active-home .impact-section { margin-bottom: 58px; padding: 27px 20px; }
  .active-home .community-section { margin-bottom: 64px; padding: 30px 24px; }
  .active-home .gallery-section { padding-bottom: 72px; }
  .active-home .stories-section { padding: 64px 0 74px; }
  .active-home .faq-section { padding: 68px 0; }

  .social-rail {
    top: auto;
    right: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    display: flex;
    padding: 5px;
    transform: translateX(50%);
  }
  .social-link { width: 42px; height: 42px; box-shadow: none; }
  .social-link span { display: none; }
  .social-link:hover,
  .social-link:focus-visible { transform: translateY(-2px) scale(1.04); }
  .footer { padding-bottom: 76px; }

  .blog-masthead-grid { padding: 44px 0 88px; }
  .blog-masthead h1 {
    font-size: clamp(3rem, 13vw, 4.5rem);
    line-height: 0.93;
  }
  .blog-masthead p { font-size: 15px; }
  .blog-masthead-actions { align-items: flex-start; flex-direction: column; }
  .blog-feature-stack { min-height: 360px; }
  .blog-feature-card { inset: 4px 16px 24px 18px; }
  .blog-stack-card { inset: 38px 0 2px 54px; }
  .blog-stack-card.stack-two { inset: 68px -8px -8px 84px; }
  .blog-feature-copy { right: 20px; bottom: 20px; left: 20px; }
  .blog-feature-copy h2 { font-size: clamp(1.7rem, 8vw, 2.55rem); }

  .blog-lanes {
    display: flex;
    gap: 12px;
    margin: -42px 0 8px;
    padding: 0 14px 18px;
    overflow-x: auto;
    scroll-padding-inline: 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .blog-lanes::-webkit-scrollbar { display: none; }
  .blog-lanes a,
  .blog-lanes a:last-child {
    flex: 0 0 min(82vw, 330px);
    min-height: 144px;
    grid-column: auto;
    scroll-snap-align: center;
  }

  .blog-tabs {
    top: 76px;
    width: 100%;
    margin-top: 22px;
    overflow-x: auto;
  }

  .blog-section-heading {
    display: block;
    padding: 56px 0 24px;
  }
  .blog-section-heading h2 { margin: 10px 0 9px; }

  .editorial-story-grid { grid-template-columns: 1fr; gap: 14px; }
  .editorial-story-card,
  .editorial-story-card:nth-child(1),
  .editorial-story-card:nth-child(6n + 1) {
    grid-column: auto;
    min-height: 420px;
  }

  .knowledge-editorial-grid { grid-template-columns: 1fr; gap: 14px; }
  .knowledge-hero { grid-column: auto; min-height: 440px; }

  .blog-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 210px;
  }
  .gallery-shot,
  .gallery-shot-1,
  .gallery-shot-2,
  .gallery-shot-3,
  .gallery-shot-4 {
    grid-column: auto;
    grid-row: auto;
  }
  .gallery-shot-1 { grid-column: 1 / -1; min-height: 280px; }

  .hub-empty {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

@media (max-width: 460px) {
  .active-home .route-strip { grid-template-columns: 1fr; }
  .active-home .route-strip .route-card,
  .active-home .route-strip .route-card:nth-child(2) {
    min-height: 88px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .active-home .route-strip .route-card:last-child { border-bottom: 0; }
  .active-home .route-strip .route-card > b { padding-top: 10px; }

  .blog-gallery-grid { grid-template-columns: 1fr; }
  .gallery-shot-1 { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .active-home .program-card,
  .motion-card,
  .editorial-story-card,
  .knowledge-tile,
  .blog-feature-card,
  .blog-lanes a,
  .gallery-shot img,
  .social-link {
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}

/* ======================================================================
   Site-wide consistency pass
   Extends the homepage language across public information and form pages.
   ====================================================================== */

:root {
  --site-radius-xl: 36px;
  --site-radius-lg: 28px;
  --site-radius-md: 20px;
  --site-radius-sm: 14px;
  --site-control-border: #d7cfd8;
  --site-panel: #fffdf9;
  --page-accent: var(--site-purple);
}

body.tone-safeguarding { --page-accent: #5d45ca; }
body.tone-privacy { --page-accent: #176b88; }
body.tone-careers { --page-accent: #12634f; }
body.tone-blog { --page-accent: #c84f73; }

.site-nav {
  height: 78px;
}

.brand {
  min-width: 205px;
}

.brand img {
  width: 44px;
  height: 44px;
}

.brand strong {
  color: var(--site-ink);
  letter-spacing: 0.11em;
}

.brand small {
  color: var(--site-muted);
}

.desktop-nav > a,
.desktop-nav > button,
.mobile-panel a,
.mobile-panel button {
  letter-spacing: -0.01em;
}

.desktop-nav > a:focus-visible,
.desktop-nav > button:focus-visible,
.mobile-toggle:focus-visible,
.footer a:focus-visible,
.footer button:focus-visible {
  outline: 3px solid var(--site-purple);
  outline-offset: 3px;
}

.desktop-nav .nav-donate {
  background: #f08a9a;
  color: #27131b;
}

.desktop-nav .nav-support {
  background: var(--site-ink);
  color: #fff;
}

.desktop-nav .nav-explore {
  background: var(--site-purple);
  color: #fff;
}

.button,
.btn,
.text-link,
.flow-submit,
.modal-submit,
.support-bottom-bar a {
  transition:
    transform 220ms var(--site-ease),
    box-shadow 220ms var(--site-ease),
    background 220ms ease,
    color 220ms ease;
}

.button:hover,
.btn:hover,
.text-link:hover,
.flow-submit:hover,
.modal-submit:hover,
.support-bottom-bar a:hover {
  transform: translateY(-2px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 17px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.btn.primary {
  background: var(--site-ink);
  color: #fff;
  box-shadow: 0 12px 28px rgba(25, 19, 31, 0.16);
}

.text-link {
  display: inline-flex;
  color: #5038bb;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* The first viewport and section rhythm follow one visual grammar. */

.page-hero {
  border-bottom-color: var(--site-line);
  background:
    radial-gradient(circle at 85% 6%, color-mix(in srgb, var(--page-accent) 14%, transparent), transparent 28%),
    linear-gradient(118deg, #fff8ef 0%, #f1ecfb 50%, #e8f4f7 100%);
}

.hero-compact .page-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--page-accent), var(--site-pink), var(--site-yellow), var(--site-blue));
}

.hero-compact .page-hero-grid {
  min-height: 360px;
  grid-template-columns: minmax(0, 1.3fr) minmax(250px, 0.7fr);
  gap: 56px;
  padding: 66px 0 62px;
}

.hero-compact .page-hero .eyebrow {
  color: var(--page-accent);
}

.hero-compact .page-hero h1 {
  max-width: 900px;
  margin: 13px 0 15px;
  color: var(--site-ink);
  font-size: clamp(3rem, 5vw, 4.75rem);
  line-height: 0.96;
  text-wrap: balance;
}

.hero-compact .page-hero .lead {
  max-width: 760px;
  color: var(--site-muted);
  line-height: 1.65;
}

.hero-compact .page-hero-mark span {
  color: color-mix(in srgb, var(--page-accent) 15%, transparent);
}

.hero-compact .page-hero-mark i {
  background: var(--site-yellow);
}

.hero-compact .page-hero-mark b {
  background: var(--page-accent);
}

.hero-compact .page-content {
  width: min(var(--wrap), calc(100% - 48px));
  padding: 76px 0 112px;
}

.section-kicker,
.section-number,
.section-topline > span,
.flow-kicker,
.modal-kicker {
  color: var(--page-accent);
  font-weight: 900;
  letter-spacing: 0.15em;
}

.intro-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
  margin: 0 0 46px;
  padding: 0 0 44px;
  border-bottom: 1px solid var(--site-line);
}

.intro-grid > * {
  min-width: 0;
}

.intro-grid h2 {
  max-width: 650px;
  margin: 9px 0 0;
  color: var(--site-ink);
  font-size: clamp(2.25rem, 4.2vw, 4.15rem);
  line-height: 0.99;
  text-wrap: balance;
}

.intro-grid > p,
.intro-grid .section-lead {
  max-width: 680px;
  margin: 25px 0 0;
  color: var(--site-muted);
  font-size: 16px;
  line-height: 1.72;
}

/* Reusable information cards. */

.value-grid,
.compare-grid,
.mini-grid {
  gap: 15px;
}

.value-grid article,
.compare-grid > section,
.mini-grid > div {
  min-width: 0;
  border: 1px solid rgba(25, 19, 31, 0.1);
  color: var(--site-ink);
  box-shadow: 0 12px 32px rgba(35, 24, 44, 0.07);
}

.value-grid article {
  display: flex;
  min-height: 255px;
  flex-direction: column;
  padding: 25px;
  border-radius: 24px;
  background: var(--site-panel);
  transition: transform 280ms var(--site-ease), box-shadow 280ms var(--site-ease);
}

.value-grid article:nth-child(1) { border-top: 5px solid var(--site-purple); }
.value-grid article:nth-child(2) { border-top: 5px solid #25856d; }
.value-grid article:nth-child(3) { border-top: 5px solid var(--site-orange); }
.value-grid article:nth-child(4) { border-top: 5px solid #3477bd; }

.value-grid article:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(35, 24, 44, 0.12);
}

.value-grid article > span {
  color: var(--page-accent);
  letter-spacing: 0.12em;
}

.value-grid h3 {
  margin: auto 0 12px;
  padding-top: 44px;
  color: var(--site-ink);
  font-size: 22px;
  line-height: 1.08;
}

.value-grid p {
  margin: 0;
  color: var(--site-muted);
  font-size: 13px;
  line-height: 1.6;
}

.compare-grid {
  margin: 0 0 48px;
}

.compare-grid > section {
  min-height: 310px;
  padding: 30px;
  border-radius: 27px;
  background: #e7e1fb;
}

.compare-grid > section:nth-child(2) {
  background: #dff0ea;
}

.compare-grid h3 {
  margin: 18px 0 16px;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.03;
}

.clean-list {
  margin: 0;
  padding-left: 19px;
  color: #504954;
}

.clean-list li {
  margin: 10px 0;
  padding-left: 4px;
}

.pill,
.secure-pill {
  padding: 7px 10px;
  border: 1px solid rgba(25, 19, 31, 0.09);
  background: rgba(255, 255, 255, 0.6);
  color: #4f3aae;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(34px, 5vw, 68px);
  margin: 48px 0;
  padding: clamp(32px, 5vw, 58px);
  overflow: hidden;
  border-radius: var(--site-radius-xl);
  background:
    radial-gradient(circle at 92% 5%, rgba(114, 196, 231, 0.24), transparent 25%),
    linear-gradient(135deg, #19131f 0%, #281b35 60%, #273b55 100%);
  color: #fff;
  box-shadow: var(--site-shadow);
}

.story-panel .section-kicker {
  color: #ffda70;
}

.story-panel h2 {
  margin: 10px 0 16px;
  color: #fff;
  text-wrap: balance;
}

.story-panel .story-copy p {
  color: #d7d0dc;
  line-height: 1.7;
}

.story-panel .mini-grid {
  align-content: stretch;
}

.story-panel .mini-grid > div {
  display: flex;
  min-height: 145px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-color: rgba(255, 255, 255, 0.15);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  box-shadow: none;
}

.story-panel .mini-grid strong {
  font-size: 15px;
  line-height: 1.2;
}

.story-panel .mini-grid span {
  margin-top: 18px;
  color: #cbc3d0;
  font-size: 12px;
  line-height: 1.55;
}

.callout-panel,
.form-intro-band,
.contact-band {
  gap: 38px;
  margin: 46px 0;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(25, 19, 31, 0.09);
  border-radius: var(--site-radius-lg);
  background:
    radial-gradient(circle at 96% 0, rgba(104, 78, 216, 0.12), transparent 30%),
    linear-gradient(120deg, #f6d979, #f2e7bb 54%, #dceff7);
  box-shadow: 0 16px 44px rgba(35, 24, 44, 0.08);
}

.callout-panel > div,
.form-intro-band > div,
.contact-band > div {
  min-width: 0;
  max-width: 820px;
}

.callout-panel h2,
.form-intro-band h2,
.contact-band h2 {
  color: var(--site-ink);
  text-wrap: balance;
}

.callout-panel p,
.form-intro-band p,
.contact-band p {
  color: #5c544d;
  line-height: 1.65;
}

.notice,
.callout {
  border-radius: var(--site-radius-md);
  box-shadow: 0 10px 28px rgba(35, 24, 44, 0.06);
}

.notice {
  padding: 23px 25px;
  border-color: #e2c968;
  background: #fff4bd;
  color: #4a370c;
}

.notice p {
  margin: 7px 0 0;
  line-height: 1.62;
}

/* Forms and route panels use the same controls and density. */

.form,
.flow-panel,
.form-modal {
  border-color: rgba(25, 19, 31, 0.11);
  background: var(--site-panel);
  box-shadow: 0 28px 78px rgba(35, 24, 44, 0.14);
}

.form {
  gap: 17px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--site-radius-lg);
}

.form label,
.field-group,
.flow-form label,
.flow-pane .referral-form label,
.modal-form label {
  color: #493f4b;
  letter-spacing: 0.055em;
}

.form input,
.form select,
.form textarea,
.flow-form input,
.flow-form select,
.flow-form textarea,
.flow-pane .referral-form input,
.flow-pane .referral-form select,
.flow-pane .referral-form textarea,
.modal-form input,
.modal-form select,
.modal-form textarea {
  min-height: 49px;
  border-color: var(--site-control-border);
  border-radius: var(--site-radius-sm);
  background: #fff;
  color: var(--site-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.form input:focus,
.form select:focus,
.form textarea:focus,
.flow-form input:focus,
.flow-form select:focus,
.flow-form textarea:focus,
.flow-pane .referral-form input:focus,
.flow-pane .referral-form select:focus,
.flow-pane .referral-form textarea:focus,
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  border-color: var(--site-purple);
  box-shadow: 0 0 0 4px rgba(104, 78, 216, 0.12);
}

.form button[type="submit"],
.form-submit-row button,
.flow-submit,
.modal-submit {
  min-height: 50px;
  border-radius: var(--site-radius-sm);
  background: var(--site-ink);
  color: #fff;
  box-shadow: 0 8px 0 var(--site-orange);
}

.form button[type="submit"]:hover,
.form-submit-row button:hover,
.flow-submit:hover,
.modal-submit:hover {
  background: #2d2234;
  box-shadow: 0 10px 0 var(--site-orange);
}

.flow-submit-coral,
.modal-submit-coral {
  background: #c94736;
  box-shadow: 0 8px 0 #ef987f;
}

.flow-submit-coral:hover,
.modal-submit-coral:hover {
  background: #b73c2d;
  box-shadow: 0 10px 0 #ef987f;
}

.flow-submit-green {
  background: #0d6b59;
  box-shadow: 0 8px 0 #ef8a55;
}

.flow-submit-green:hover {
  background: #095c4c;
  box-shadow: 0 10px 0 #ef8a55;
}

.choice-card,
.service-choice,
.flow-toggle,
.flow-consent,
.inline-options label {
  border-color: var(--site-control-border);
  border-radius: var(--site-radius-sm);
}

.flow-stage {
  min-height: calc(100svh - 82px);
  padding: 44px 24px 72px;
}

.flow-panel,
.flow-panel-referral {
  overflow: hidden;
  border-radius: 32px;
}

.flow-story-copy {
  left: clamp(28px, 4vw, 44px);
  right: clamp(28px, 4vw, 44px);
  bottom: clamp(28px, 4vw, 44px);
}

.flow-story-copy > span {
  color: #ffca72;
}

.flow-story-copy h2 {
  max-width: 540px;
  color: #fff;
  text-wrap: balance;
}

.flow-story-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.flow-pane {
  padding: clamp(34px, 5vw, 58px);
  background: rgba(255, 253, 249, 0.98);
}

.flow-panel-dark {
  border-color: rgba(255, 255, 255, 0.12);
  background: #171019;
}

.flow-panel-donate,
.flow-panel-community {
  background: #faf6ef;
}

.flow-pane-cream {
  background: #faf6ef;
}

.flow-pane-dark {
  background: #130b15;
  color: #fff;
}

.flow-pane-dark .flow-form label {
  color: #cec4cf;
}

.flow-pane-dark .flow-form input,
.flow-pane-dark .flow-form select,
.flow-pane-dark .flow-form textarea {
  border-color: #544252;
  background: #241a24;
  color: #fff;
  box-shadow: none;
}

.flow-pane-dark .flow-form input::placeholder,
.flow-pane-dark .flow-form textarea::placeholder {
  color: #978b98;
}

.flow-pane-dark .flow-form input:focus,
.flow-pane-dark .flow-form select:focus,
.flow-pane-dark .flow-form textarea:focus {
  border-color: var(--site-pink);
  box-shadow: 0 0 0 4px rgba(232, 102, 131, 0.14);
}

.flow-pane-head h1 {
  color: inherit;
  text-wrap: balance;
}

.flow-pane-head p {
  color: var(--site-muted);
}

.flow-pane-dark .flow-pane-head p {
  color: #bbb2bd;
}

.flow-shortcuts {
  gap: 10px;
}

.flow-shortcuts a {
  min-height: 78px;
  border-color: rgba(25, 19, 31, 0.11);
  background: #fff;
  box-shadow: 0 8px 22px rgba(35, 24, 44, 0.05);
}

.flow-shortcuts a:hover {
  border-color: var(--site-purple);
  box-shadow: 0 14px 28px rgba(35, 24, 44, 0.09);
}

/* Support route mosaic shares the homepage card behaviour. */

.support-canvas {
  min-height: calc(100svh - 82px);
  padding: 48px 24px 78px;
  background:
    linear-gradient(rgba(104, 78, 216, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 78, 216, 0.035) 1px, transparent 1px),
    linear-gradient(140deg, #faf5ee 0%, #f0ebfb 52%, #e6f3f6 100%);
  background-size: 38px 38px, 38px 38px, auto;
}

.support-intro-panel {
  min-height: 250px;
  padding: 44px 50px;
  border-color: rgba(104, 78, 216, 0.12);
  border-radius: 32px;
  background:
    radial-gradient(circle at 88% 5%, rgba(244, 202, 84, 0.25), transparent 27%),
    linear-gradient(125deg, #e9e2ff 0%, #e1f0f7 64%, #fae1d1 100%);
  box-shadow: 0 18px 48px rgba(35, 24, 44, 0.08);
}

.support-intro-panel h1 {
  max-width: 760px;
  color: var(--site-ink);
  text-wrap: balance;
}

.support-intro-panel p {
  color: var(--site-muted);
}

.support-route-mosaic {
  gap: 15px;
  margin-top: 18px;
}

.support-tile {
  --lift: 0px;
  min-height: 238px;
  padding: 26px;
  border: 1px solid rgba(25, 19, 31, 0.09);
  border-radius: 25px;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift));
  transform-style: preserve-3d;
  box-shadow: 0 12px 32px rgba(35, 24, 44, 0.08);
  transition: transform 360ms var(--site-ease), box-shadow 360ms var(--site-ease), filter 240ms ease;
  will-change: transform;
}

.support-tile:focus-visible {
  outline: 3px solid var(--site-ink);
  outline-offset: 4px;
}

.support-tile::after {
  content: "";
  position: absolute;
  top: -58px;
  right: -54px;
  width: 150px;
  height: 150px;
  border: 18px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 380ms var(--site-ease);
}

.support-tile > span,
.support-tile h2,
.support-tile p,
.support-tile b {
  position: relative;
  z-index: 1;
  transform: translateZ(12px);
}

.support-tile:hover {
  --lift: -7px;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift));
  filter: saturate(1.04);
  box-shadow: 0 25px 56px rgba(35, 24, 44, 0.15);
}

.support-tile:hover::after {
  transform: scale(1.14) translate(-7px, 7px);
}

.support-violet { background: #674fd0; color: #fff; }
.support-green { background: #d1ebdf; color: #103e35; }
.support-coral { background: #ef8c8d; color: #2f171d; }
.support-blue { background: #cceaf5; color: #153d50; }
.support-gold { background: #f3d36f; color: #3b2b0f; }
.support-dark { background: #1a1420; color: #fff; }

.support-bottom-bar {
  margin-top: 18px;
  padding: 21px 25px;
  border-color: rgba(25, 19, 31, 0.1);
  border-radius: var(--site-radius-md);
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 12px 32px rgba(35, 24, 44, 0.07);
}

/* Careers and articles are editorial surfaces, not utility leftovers. */

.vacancy-list {
  gap: 17px;
}

.vacancy-card {
  padding: 30px;
  border-color: rgba(25, 19, 31, 0.1);
  border-radius: 26px;
  background: var(--site-panel);
  box-shadow: 0 12px 34px rgba(35, 24, 44, 0.07);
  transition: transform 280ms var(--site-ease), box-shadow 280ms var(--site-ease);
}

.vacancy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(35, 24, 44, 0.12);
}

.vacancy-meta span {
  border: 1px solid rgba(25, 19, 31, 0.08);
  background: #eee8f9;
  color: #4d3aa4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vacancy-card h3 {
  color: var(--site-ink);
  font-size: clamp(1.8rem, 3.3vw, 2.75rem);
  line-height: 1.02;
}

.vacancy-card p {
  color: var(--site-muted);
  line-height: 1.68;
}

.vacancy-card details {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid var(--site-line);
  border-radius: var(--site-radius-sm);
  background: #f5f0e9;
}

.vacancy-card summary {
  cursor: pointer;
  font-weight: 900;
}

.vacancy-bottom {
  border-top-color: var(--site-line);
}

.empty-story {
  display: grid;
  min-height: 310px;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(25, 19, 31, 0.09);
  border-radius: var(--site-radius-lg);
  background: #eee8f1;
  box-shadow: 0 18px 50px rgba(35, 24, 44, 0.09);
}

.empty-story img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}

.empty-story > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
}

.empty-story strong {
  color: var(--site-ink);
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.05;
}

.empty-story p {
  color: var(--site-muted);
  line-height: 1.65;
}

.career-apply {
  gap: clamp(34px, 6vw, 70px);
  margin-top: 70px;
  padding-top: 60px;
  border-top: 1px solid var(--site-line);
}

.career-apply h2 {
  color: var(--site-ink);
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1;
  text-wrap: balance;
}

.career-apply > div:first-child p {
  color: var(--site-muted);
  line-height: 1.65;
}

.article-cover {
  max-height: 680px;
  margin-bottom: 28px;
  border: 1px solid rgba(25, 19, 31, 0.08);
  border-radius: 32px;
  box-shadow: var(--site-shadow);
}

.article-meta {
  color: var(--page-accent);
  letter-spacing: 0.14em;
}

.article-body {
  max-width: 760px;
  margin: 44px auto;
  color: #3f3742;
  font-size: 18px;
  line-height: 1.82;
}

.article-body a {
  color: #5038bb;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.article-gallery {
  gap: 16px;
  margin-top: 48px;
}

.article-gallery figure {
  overflow: hidden;
  border: 1px solid rgba(25, 19, 31, 0.09);
  border-radius: 24px;
  background: var(--site-panel);
  box-shadow: 0 12px 30px rgba(35, 24, 44, 0.08);
}

.article-gallery img {
  border-radius: 0;
}

.article-gallery figcaption {
  padding: 10px 13px;
  color: var(--site-muted);
}

.article-back {
  padding-top: 28px;
  border-top: 1px solid var(--site-line);
}

/* Homepage refinement inspired by the reference site's numbered cards and
   strong full-width editorial transitions. */

.active-home .hero-actions .button-light {
  color: var(--site-ink);
  box-shadow: 0 14px 36px rgba(31, 17, 39, 0.18);
}

.active-home .hero-actions .button-light:hover {
  box-shadow: 0 20px 44px rgba(31, 17, 39, 0.24);
}

.active-home .hero-house {
  transition: transform 520ms var(--site-ease), box-shadow 520ms var(--site-ease);
}

.active-home .hero-art:hover .hero-house {
  transform: rotate(0.8deg) translateY(-5px);
  box-shadow: 0 42px 92px rgba(36, 17, 50, 0.32);
}

.active-home .hero-note {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(25, 19, 31, 0.91);
}

.active-home .route-strip .route-card {
  --lift: 0px;
  transform: perspective(850px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift));
  transform-style: preserve-3d;
  will-change: transform;
}

.active-home .route-strip .route-card:hover {
  --lift: -5px;
  transform: perspective(850px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift));
}

.active-home .route-strip .route-card > span,
.active-home .route-strip .route-card > b,
.active-home .route-strip .route-card > i {
  transform: translateZ(12px);
}

.active-home .work-section {
  isolation: isolate;
}

.active-home .work-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  border-top: 1px solid rgba(25, 19, 31, 0.06);
  border-bottom: 1px solid rgba(25, 19, 31, 0.06);
  background:
    radial-gradient(circle at 92% 8%, rgba(104, 78, 216, 0.07), transparent 24%),
    #f5efe7;
}

.active-home .program-card .program-symbol {
  transition: transform 320ms var(--site-ease), background 320ms ease;
}

.active-home .program-card:hover .program-symbol {
  transform: translateZ(18px) rotate(-8deg) scale(1.06);
  background: rgba(255, 255, 255, 0.5);
}

.active-home .section-topline > span,
.active-home .section-number {
  color: #5339bb;
}

.active-home .impact-section .section-topline > span,
.active-home .story-copy-compact .section-number,
.active-home .community-intro > span {
  color: #ffdc73;
}

.active-home .story-copy-compact .section-number {
  color: #5a40c6;
}

.active-home .gallery-grid-home figure,
.active-home .story-card {
  transition: transform 320ms var(--site-ease), box-shadow 320ms var(--site-ease);
}

.active-home .gallery-grid-home figure:hover,
.active-home .story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 56px rgba(35, 24, 44, 0.15);
}

.footer {
  color: #fff;
  background:
    radial-gradient(circle at 12% 0, rgba(104, 78, 216, 0.25), transparent 26%),
    #17131f;
}

.footer-cta {
  min-height: 320px;
}

.footer-cta h2 {
  max-width: 860px;
  color: #fff;
  text-wrap: balance;
}

.footer-cta p,
.footer-brand p {
  color: #bcb4c1;
}

.footer-grid a {
  color: #ece7ef;
}

.footer-grid a:hover,
.footer-bottom a:hover {
  color: #ffdc73;
}

@media (max-width: 1100px) {
  .site-nav { height: 70px; }

  .hero-compact .page-hero-grid {
    min-height: 330px;
    grid-template-columns: 1fr;
  }

  .hero-compact .page-hero-mark { display: none; }

  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .flow-stage,
  .support-canvas { min-height: calc(100svh - 74px); }

  .flow-panel,
  .flow-panel-referral {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .flow-story { min-height: 320px; }
  .flow-pane-scroll { overflow: visible; }
}

@media (max-width: 760px) {
  .site-nav { height: 64px; }

  .hero-compact .page-hero-grid {
    min-height: 0;
    padding: 43px 0 47px;
  }

  .hero-compact .page-hero h1 {
    font-size: clamp(2.65rem, 12vw, 3.65rem);
  }

  .hero-compact .page-hero .lead { font-size: 14px; }

  .hero-compact .page-content {
    width: min(var(--wrap), calc(100% - 28px));
    padding: 58px 0 84px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 32px;
    padding-bottom: 31px;
  }

  .intro-grid h2 {
    font-size: clamp(2.25rem, 10vw, 3.15rem);
  }

  .intro-grid > p,
  .intro-grid .section-lead {
    margin-top: 0;
    font-size: 14px;
  }

  .value-grid,
  .compare-grid,
  .mini-grid { grid-template-columns: 1fr; }

  .value-grid article { min-height: 220px; }

  .story-panel {
    grid-template-columns: 1fr;
    gap: 26px;
    margin: 36px 0;
    padding: 27px 22px;
    border-radius: 27px;
  }

  .callout-panel,
  .form-intro-band,
  .contact-band {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    margin: 34px 0;
    padding: 26px 22px;
  }

  .flow-stage {
    padding: 14px 10px 30px;
  }

  .flow-panel,
  .flow-panel-referral { border-radius: 22px; }
  .flow-story { min-height: 250px; }
  .flow-story-copy { left: 22px; right: 22px; bottom: 22px; }
  .flow-pane { padding: 30px 20px 28px; }
  .flow-shortcuts { grid-template-columns: 1fr 1fr; }

  .support-canvas { padding: 19px 12px 44px; }
  .support-intro-panel {
    min-height: 210px;
    padding: 29px 23px;
    border-radius: 23px;
  }
  .support-route-mosaic { grid-template-columns: 1fr; gap: 11px; }
  .support-tile,
  .support-wide {
    grid-column: auto;
    min-height: 185px;
    padding: 21px;
    border-radius: 20px;
  }
  .support-bottom-bar {
    display: grid;
    padding: 18px;
  }

  .empty-story { grid-template-columns: 1fr; }
  .empty-story img { min-height: 230px; max-height: 270px; }
  .career-apply {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 52px;
    padding-top: 42px;
  }

  .article-body {
    margin: 32px auto;
    font-size: 16px;
    line-height: 1.76;
  }

  .article-cover { border-radius: 24px; }
  .article-gallery { grid-template-columns: 1fr; }

  .footer-cta { min-height: 350px; }
}

@media (prefers-reduced-motion: reduce) {
  .support-tile,
  .value-grid article,
  .vacancy-card,
  .active-home .hero-house,
  .active-home .gallery-grid-home figure {
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}
