/* =============================================================
   RenAlliance Group — stylesheet
   Tokens and metrics taken from the Figma file C1sgnBwUhXn00Z5RsNyTR2.
   Reference frame: 1728px wide, 125px side gutters => 1478px content.
   Column grid: 4 x 355px with 20px gutters (375px pitch).
   ============================================================= */

/* ---------- tokens ---------- */
:root {
  --blue: #1396d3;
  --blue-dark: #0f7cb0;
  --green: #7cc794;
  --green-dark: #63b57c;

  --white: #fff;
  --surface-subtle: #f7f7f7;   /* home "challenges" band */
  --surface-grey: #f1f1f1;     /* CTA band */
  --surface-footer: #f9f9f9;
  --rule: #e3e3e3;
  --rule-soft: #d8d8d8;

  --text: #000;
  --text-inactive: #bdbdbd;    /* unselected index items */
  --text-caps: #ccc;           /* "OUR MISSION:" eyebrows */

  /* Figma uses #cfcfcf for secondary text (testimonial org, footer
     contact, legal). That is ~1.6:1 on white — far below WCAG AA.
     Raised to #767676 (4.54:1). Revert this one line for a pixel match. */
  --text-muted: #767676;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Figma text styles */
  --fs-headline: clamp(2rem, 1.2rem + 2.6vw, 3rem);       /* 48 / 1.03 */
  --fs-sub: clamp(1.625rem, 1.15rem + 1.6vw, 2.3125rem);  /* 37 / 1.03 */
  --fs-section: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem); /* 28 / 1.19 */
  --fs-detail: clamp(1.0625rem, 0.98rem + 0.4vw, 1.375rem);/* 22 / 1.25 */
  --fs-body: 1.125rem;                                     /* 18 / 1.24 */
  --fs-small: 1rem;                                        /* 16 / 1.22 */
  --fs-xs: 0.875rem;                                       /* 14 / 1.24 */

  --container: 1478px;
  --gutter: clamp(1.25rem, -0.6rem + 7.3vw, 7.8125rem);
  --radius: 20px;
  --header-h: 193px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--white);
}

body {
  margin: 0;
  /* transparent, not white: the living background sits at z-index -1 and a
     painted body background would cover it. html carries the white canvas. */
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.24;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0; left: -9999px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; }
.section > .container { position: relative; z-index: 2; }

/* First section on every page clears the fixed header. */
.page-top { padding-top: var(--header-h); }

/* ---------- type ---------- */
.headline {
  font-size: var(--fs-headline);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.01em;
}
.sub {
  font-size: var(--fs-sub);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.01em;
}
.section-title {
  font-size: var(--fs-section);
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-caps);
}
.body { font-size: var(--fs-body); line-height: 1.24; }
.is-blue { color: var(--blue); }
.is-green { color: var(--green); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 12px 30px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.24;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--outline { background: var(--white); border-color: var(--green); color: var(--text); }
.btn--outline:hover { background: var(--green); color: var(--white); box-shadow: 0 8px 22px rgba(124, 199, 148, 0.35); }

.btn--blue { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); box-shadow: 0 8px 22px rgba(19, 150, 211, 0.35); }

.btn--green { background: var(--green); border-color: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-dark); border-color: var(--green-dark); box-shadow: 0 8px 22px rgba(124, 199, 148, 0.35); }

.btn__arrow { display: inline-block; margin-left: 8px; transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
              transform 0.4s var(--ease);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  padding-block: 20px;
  transition: min-height 0.3s var(--ease);
}

/* scrolled state — set by js/main.js */
.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 8px 28px rgba(0, 0, 0, 0.05);
}
.site-header.is-stuck .site-header__inner { min-height: 104px; }
.site-header.is-hidden { transform: translateY(-100%); }

.logo { display: block; width: clamp(210px, 22vw, 385px); flex: none; }
.logo img { width: 100%; height: auto; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.9vw, 52px); }
.nav__link {
  position: relative;
  padding: 6px 1px;
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: var(--blue); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current='page'] { font-weight: 700; }

.nav__cta {
  padding: 11px 28px;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav__cta:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(19, 150, 211, 0.35);
}
.nav__cta[aria-current='page'] { background: var(--white); color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- decorative gradient art ---------- */
.art {
  position: absolute;
  z-index: 0;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

/* ---------- ambient motion on the imagery ----------
   The bubble/cell artwork drifts slowly inside its frame so the shapes
   appear to float. Every frame already has overflow:hidden, and the
   keyframes never drop below scale(1.08), so the crop edges stay covered. */
@media (prefers-reduced-motion: no-preference) {
  .service-card__media img,
  .challenges__figure img {
    animation: media-drift 22s ease-in-out infinite;
    will-change: transform;
  }
  /* knock each one out of phase so no two move together */
  .service-card:nth-of-type(2) .service-card__media img {
    animation-duration: 27s;
    animation-delay: -9s;
  }
  .challenges__figure img {
    animation-duration: 34s;
    animation-delay: -5s;
  }

  @keyframes media-drift {
    0%,   100% { transform: scale(1.08) translate(0, 0); }
    25%        { transform: scale(1.13) translate(-1.5%, -1.1%); }
    50%        { transform: scale(1.10) translate(1.2%, -1.6%); }
    75%        { transform: scale(1.14) translate(1.5%, 1.2%); }
  }

  /* the portrait only breathes — a drifting face reads as a glitch */
  .backstory__figure img {
    animation: portrait-float 13s ease-in-out infinite;
    will-change: transform;
  }
  @keyframes portrait-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
  }

  /* carousel chevrons lean toward their direction on hover */
  .carousel-btn img { transition: transform 0.3s var(--ease); }
  [data-carousel-prev]:hover:not(:disabled) img { transform: translateX(-3px); }
  [data-carousel-next]:hover:not(:disabled) img { transform: translateX(3px); }
}

/* ---------- living background (home) ----------
   A fixed, self-clipping layer of soft brand gradients. It is driven by two
   custom properties that js/main.js writes on every scroll frame:
     --sy  scroll offset in px      --sp  page progress 0-1
     --bg-op  fades the whole layer in once you start scrolling
   Fixed + overflow:hidden means it can never widen the document, and the
   gradients are plain radial-gradients (no blur filter) so scrolling stays
   cheap — a blur on a full-viewport layer is what makes this pattern janky. */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: var(--bg-op, 0);
}
.page-bg__blob { position: absolute; display: block; will-change: transform; }
.page-bg__blob > i { display: block; width: 100%; height: 100%; border-radius: 50%; }

/* Sizes are capped: left uncapped these reach ~1900px square on a wide
   monitor, and three gradient textures that size is tens of MB of GPU
   memory. Transforms are translate-only — scaling a gradient this large
   forces a re-raster every frame, which is what makes it stutter. */
.page-bg__a {
  width: min(86vw, 1100px); height: min(86vw, 1100px); top: -22vw; right: -14vw;
  transform: translate3d(calc(var(--sp, 0) * -4vw), calc(var(--sy, 0px) * -0.05), 0);
}
.page-bg__a > i {
  background: radial-gradient(circle at 42% 40%,
    rgba(124, 199, 148, 0.85) 0%, rgba(79, 185, 201, 0.50) 36%, rgba(19, 150, 211, 0) 68%);
  animation: bg-drift-a 26s ease-in-out infinite;
}

.page-bg__b {
  width: min(74vw, 980px); height: min(74vw, 980px); top: 24vh; left: -22vw;
  transform: translate3d(calc(var(--sp, 0) * 6vw), calc(var(--sy, 0px) * -0.09), 0);
}
.page-bg__b > i {
  background: radial-gradient(circle at 55% 45%,
    rgba(19, 150, 211, 0.55) 0%, rgba(124, 199, 148, 0.32) 42%, rgba(124, 199, 148, 0) 70%);
  animation: bg-drift-b 34s ease-in-out infinite;
}

.page-bg__c {
  width: min(80vw, 1040px); height: min(80vw, 1040px); bottom: -26vw; right: -20vw;
  transform: translate3d(calc(var(--sp, 0) * -6vw), calc(var(--sy, 0px) * -0.03), 0);
}
.page-bg__c > i {
  background: radial-gradient(circle at 48% 52%,
    rgba(124, 199, 148, 0.70) 0%, rgba(79, 185, 201, 0.34) 40%, rgba(19, 150, 211, 0) 70%);
  animation: bg-drift-c 30s ease-in-out infinite;
}

/* translate-only: a transform the compositor can apply without repainting */
@keyframes bg-drift-a {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(4%, -3%); }
}
@keyframes bg-drift-b {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-4.5%, 3%); }
}
@keyframes bg-drift-c {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(3.5%, 4%); }
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   HOME
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
}
.hero__art-a { top: -17.65vw; left: 32.99%; width: 95.25vw; height: 75.93vw; }
.hero__art-b { top: -9.09vw; left: -63.25vw; width: 84.66vw; height: 67.48vw; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 635px) minmax(0, 752px);
  gap: clamp(28px, 4vw, 90px);
  align-items: center;
  padding-top: clamp(24px, 3vw, 118px);
}
.hero__copy { max-width: 613px; margin-top: 24px; }
.hero__actions { margin-top: 32px; }
.hero__figure { justify-self: end; width: 100%; max-width: 752px; }

/* ---------- layered hero illustration ---------- */
.hero-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1536 / 1024;   /* the original artwork's frame */
}
.hero-art__whole {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  /* The illustration rises once, then settles into a slow idle float.
     Translate-only: a scale() on a 1536px bitmap forces the compositor to
     re-rasterise it every frame. */
  .hero-art__whole {
    animation: hero-in-up 1.1s var(--ease) both,
               hero-float 9s ease-in-out 1.1s infinite;
  }

  @keyframes hero-in-up {
    from { opacity: 0; transform: translate3d(0, 42px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
  }
  @keyframes hero-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50%      { transform: translate3d(0, -12px, 0); }
  }
}

/* stats — rule at y942, value y968, label y1033 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding-top: clamp(40px, 9.8vw, 154px);
}
.stats--duo { grid-template-columns: repeat(2, minmax(0, 229px)); }
.stat { padding-top: 26px; border-top: 2px solid var(--rule); }
.stat__value {
  font-size: var(--fs-headline);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.01em;
  color: var(--blue);
  /* equal-width digits so the number does not wobble while it counts */
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}
.stat__num { display: inline-block; }

/* the logo balls drift on their own (inside logo.svg) — nudge the whole
   mark on hover so the header link still feels responsive */
.logo img { transition: transform 0.4s var(--ease); }
.logo:hover img { transform: scale(1.025); }
.stat__label { max-width: 21ch; margin-top: 17px; }

/* pitch + service cards — rule at y1187 */
.pitch {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(40px, 5vw, 98px);
  padding-top: clamp(32px, 4vw, 54px);
  border-top: 2px solid var(--rule);
}
.pitch__intro { grid-column: 1 / 3; padding-right: clamp(0px, 4vw, 126px); }
.pitch__title { max-width: 531px; }
.pitch__copy { max-width: 531px; margin-top: 26px; }
.pitch__actions { margin-top: 36px; }

.service-cards {
  grid-column: 3 / 5;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.service-card__title { min-height: 72px; }
.service-card__media {
  margin-top: 28px;
  overflow: hidden;
  aspect-ratio: 355 / 373;
  background: var(--surface-subtle);
}
.service-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* NOTE: no transform transition here — the drift animation below owns
     transform. Hover uses filter instead so the two never conflict. */
  transition: filter 0.6s var(--ease);
}
.service-card:hover .service-card__media img { filter: saturate(1.12) brightness(1.03); }

/* challenges band */
.challenges {
  margin-top: clamp(56px, 7vw, 135px);
  padding-block: clamp(48px, 6vw, 135px);
  background: var(--surface-subtle);
}
.challenges__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.challenges__col { grid-column: span 2; }
.challenges__col--left { padding-right: clamp(0px, 4vw, 126px); }
.challenges__title { max-width: 453px; margin-bottom: 46px; }

.challenge-list li {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-block: 23px;
  border-top: 1px solid var(--rule-soft);
  transition: padding-left 0.3s var(--ease);
}
.challenge-list li:last-child { border-bottom: 1px solid var(--rule-soft); }
.challenge-list li:hover { padding-left: 8px; }
.challenge-list img { width: 17px; flex: none; }

.challenges__figure { overflow: hidden; }
.challenges__figure img {
  width: 100%;
  aspect-ratio: 729 / 408;
  object-fit: cover;
}
.challenges__copy { margin-top: 32px; max-width: 729px; }
.challenges__actions { margin-top: 32px; }

/* testimonials */
.testimonials { padding-block: clamp(56px, 7vw, 116px); }
.testimonials__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.testimonials__nav { display: flex; gap: 14px; }
.carousel-btn {
  width: 59px; height: 59px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.carousel-btn:hover:not(:disabled) { background: var(--surface-subtle); transform: scale(1.06); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  min-height: 559px;
  padding: 68px 64px 56px;
  border: 1px solid var(--green);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.testimonial:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.07);
}
.testimonial__attrib { display: flex; gap: 20px; align-items: stretch; }
.testimonial__rule { width: 1px; min-height: 41px; background: var(--green); flex: none; }
.testimonial__name { font-weight: 600; }
.testimonial__org { color: var(--text-muted); }

/* ---------- mobile: the list becomes an accordion ----------
   Below the two-column breakpoint JS moves each panel out of the sticky
   column into a drawer directly under its own row, so the text opens
   where you tapped instead of being stranded at the bottom of the list.
   The 0fr -> 1fr grid trick animates to the content's natural height,
   which a plain height transition cannot do. */
.index-list__drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.index-list__drawer.is-open { grid-template-rows: 1fr; }
.index-list__drawer > .detail {
  /* both required for the row collapse to actually clip the content */
  min-height: 0;
  overflow: hidden;
  margin: 6px 0 20px;
}

/* ---------- CTA band ---------- */
.cta-band {
  padding-block: clamp(56px, 7vw, 123px);
  background: var(--surface-grey);
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  text-align: center;
}
.cta-band__title { max-width: 644px; margin-inline: auto; }
.cta-band__actions { margin-top: 36px; }

/* ---------- footer ---------- */
.site-footer {
  padding-block: clamp(40px, 5vw, 74px) 44px;
  background: var(--surface-footer);
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px 230px;
  gap: clamp(28px, 3vw, 40px);
  align-items: start;
}
.site-footer__nav {
  display: grid;
  gap: 5px;
  font-size: var(--fs-small);
  letter-spacing: -0.02em;
}
.site-footer__nav a { text-decoration: none; transition: color 0.2s var(--ease); }
.site-footer__nav a:hover { color: var(--blue); }
.site-footer__nav a[aria-current='page'] { color: var(--blue); font-weight: 700; }

.site-footer__contact {
  display: grid;
  gap: 7px;
  font-size: var(--fs-small);
  font-style: normal;
  line-height: 1.22;
  color: var(--text-muted);
}
.site-footer__contact a { color: var(--text-muted); transition: color 0.2s var(--ease); }
.site-footer__contact a:hover { color: var(--blue); }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-top: clamp(40px, 5vw, 78px);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-muted);
}
.site-footer__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; }

.site-footer__legal { display: flex; flex-wrap: wrap; gap: 32px; }
.site-footer__legal a { text-decoration: none; transition: color 0.2s var(--ease); }
.site-footer__legal a:hover { color: var(--blue); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(56px, 8vw, 180px);
  border-bottom: 2px solid var(--rule);
  text-align: center;
}
.about-hero__art-a { top: 0; left: 32.7%; width: 67.3vw; height: 31.42vw; }
.about-hero__art-b { top: 25.58vw; left: 0; width: 42.19vw; height: 39.06vw; }
.about-hero__art-c { top: 43.34vw; left: 50%; width: 50vw; height: 21.3vw; }

.about-hero__inner { padding-top: clamp(32px, 5vw, 118px); }
.about-hero__title { max-width: 671px; margin-inline: auto; }
.about-hero__copy { max-width: 730px; margin: 26px auto 0; }
.about-hero__actions { margin-top: 44px; }

.about-cols {
  display: grid;
  grid-template-columns: minmax(0, 604px) minmax(0, 729px);
  gap: clamp(32px, 4vw, 145px);
  padding-top: clamp(48px, 6vw, 143px);
  padding-bottom: clamp(32px, 4vw, 76px);
}
.about-col__title { margin-top: 30px; }
.about-col__copy { max-width: 499px; margin-top: 24px; }

.backstory {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 604px) minmax(0, 729px);
  gap: clamp(32px, 4vw, 145px);
  padding-top: clamp(40px, 5vw, 94px);
  padding-bottom: clamp(56px, 7vw, 147px);
  border-top: 2px solid var(--rule);
}
.backstory__art { top: 1.6vw; left: -6vw; width: 43.05vw; height: 28.76vw; }
.backstory__figure { position: relative; z-index: 2; }
.backstory__figure img { width: 100%; max-width: 459px; }
.backstory__figure { max-width: 459px; }
.backstory__caption { margin-top: 14px; color: var(--text-muted); }
.backstory__title { margin-top: 30px; }
.backstory__body { display: grid; gap: 14px; margin-top: 26px; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(48px, 6vw, 92px);
  border-bottom: 2px solid var(--rule);
}
.services-hero__bg {
  position: absolute;
  top: 2.2vw; left: 0;
  width: 100%; height: 61.46vw;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.services-hero__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding-top: clamp(40px, 6vw, 155px);
}
.services-hero__intro { grid-column: 1 / 3; max-width: 478px; }
.services-hero__label { padding-top: 24px; border-top: 2px solid rgba(0, 0, 0, 0.3); }
.services-hero__headline { margin-top: 44px; }

.commitments { padding-block: clamp(56px, 7vw, 123px); }
.commitments--ops { border-top: 2px solid var(--rule); }
.commitments__title { margin-bottom: clamp(32px, 4vw, 80px); }
.commitments__grid {
  display: grid;
  grid-template-columns: minmax(0, 603px) minmax(0, 854px);
  gap: 21px;
  align-items: start;
}

.index-list { display: grid; }
.index-list__item {
  position: relative;
  display: flex;
  gap: 18px;
  width: 100%;
  padding: 26px 4px;
  border-bottom: 1px solid var(--rule-soft);
  text-align: left;
  color: var(--text-inactive);
  cursor: pointer;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

/* Timer bar: sweeps along the bottom rule of the active row, then the
   list advances to the next item. Duration comes from --dwell, set in JS. */
.index-list__item::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}
.index-list--blue .index-list__item::after { background: var(--blue); }
.index-list__item.is-timing::after {
  animation: index-fill var(--dwell, 4000ms) linear forwards;
}
.index-list.is-paused .index-list__item.is-timing::after { animation-play-state: paused; }
@keyframes index-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.index-list__item:first-child { border-top: 1px solid var(--rule-soft); }
.index-list__item:hover { color: var(--text); padding-left: 10px; }
.index-list__item[aria-selected='true'] { color: var(--text); font-weight: 500; }
.index-list__num { flex: none; width: 30px; }
.index-list__item[aria-selected='true'] .index-list__num { font-weight: 700; }
.index-list--green .index-list__item[aria-selected='true'] .index-list__num { color: var(--green); }
.index-list--blue .index-list__item[aria-selected='true'] .index-list__num { color: var(--blue); }

/* The panel sticks so it stays on screen while the 10-item list scrolls
   past, and is capped to the viewport so its text is always readable
   without scrolling the panel itself. */
.detail-col {
  position: sticky;
  top: calc(104px + 24px);           /* compacted header + breathing room */
  align-self: start;
}
.detail {
  padding: clamp(28px, 2.6vw, 56px) clamp(24px, 2.6vw, 52px);
  border: 2px solid var(--green);
  min-height: 360px;                 /* stops the box jumping between items */
  max-height: calc(100svh - 180px);  /* safety net on short viewports */
  overflow-y: auto;
  overscroll-behavior: contain;
}
.detail--blue { border-color: var(--blue); }
.detail__title { font-size: var(--fs-sub); font-weight: 500; line-height: 1.03; letter-spacing: -0.01em; }
.detail__num { color: var(--green); }
.detail--blue .detail__num { color: var(--blue); }
.detail--blue .detail__title { color: var(--blue); }
.detail__body {
  margin-top: 28px;
  font-size: var(--fs-detail);
  line-height: 1.25;
  letter-spacing: 0;
}
.detail__list {
  margin-top: 28px;
  padding-left: 33px;
  display: grid;
  gap: 12px;
  list-style: disc;
}
.detail__list li { font-size: var(--fs-detail); line-height: 1.25; letter-spacing: 0; }

/* cross-fade when switching panels */
.detail__inner { animation: panel-in 0.4s var(--ease) both; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(56px, 7vw, 120px);
  border-bottom: 2px solid var(--rule);
}
.contact__art-a { top: 0; left: 20.54%; width: 79.46vw; height: 64.64vw; }
.contact__art-b { top: 30.61vw; left: 0; width: 40.39vw; height: 34.03vw; }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 604px) minmax(0, 772px);
  gap: clamp(32px, 4vw, 102px);
  padding-top: clamp(28px, 4vw, 125px);
  align-items: start;
}
.contact__title { max-width: 479px; }
.contact__kicker { margin-top: 16px; }

.form-card {
  padding: clamp(28px, 3vw, 56px) clamp(24px, 2.6vw, 40px);
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: var(--radius);
}
.form-card__intro { max-width: 379px; margin-bottom: 36px; }
.form-field + .form-field { margin-top: 17px; }
.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 57px;
  padding: 15px 22px;
  font: inherit;
  letter-spacing: inherit;
  color: var(--text);
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form-field textarea { min-height: 135px; resize: vertical; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(19, 150, 211, 0.14);
}
.form-actions { display: flex; justify-content: flex-end; margin-top: 17px; }
.form-status { margin-top: 18px; min-height: 1.4em; font-weight: 500; color: var(--green-dark); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .pitch > *, .challenges__col, .pitch__intro, .services-hero__intro,
  .service-cards { grid-column: auto !important; padding-right: 0; }
  .hero__grid,
  .pitch,
  .challenges__grid,
  .about-cols,
  .backstory,
  .commitments__grid,
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .detail-col { position: static; }
  .detail { min-height: 0; max-height: none; overflow: visible; }

  .hero__figure { justify-self: start; }
  .services-hero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonial-grid { grid-template-columns: minmax(0, 1fr); }
  .testimonial { min-height: 0; padding: 44px 40px; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr) auto; }
  .site-footer__logo { grid-column: 1 / -1; }
  .art { opacity: 0.65; }
}

@media (max-width: 860px) {
  :root { --header-h: 108px; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 18px; text-align: center; }

  .site-header.is-stuck .site-header__inner { min-height: var(--header-h); }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .stats--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-cards,
  .services-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
  .detail-col { position: static; }
  .detail { padding: 28px 24px; min-height: 0; max-height: none; overflow: visible; }
  .services-hero__headline { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* keep the colour, drop the movement */
  .page-bg__blob { transform: none !important; }
  .index-list__drawer { transition: none !important; }
  .page-bg__blob > i { animation: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
