/* ==========================================================================
   PLATINA Consortium — design system
   Restyled to the designer's "Landing page design build" handoff.
   Tokens, layout, components, animations, responsive, Leaflet + signup.
   ========================================================================== */

:root {
  --lavender:   #a99cf2;  /* page background, accents, dots, icon tiles      */
  --dark:       #3a2d52;  /* primary text, dark buttons, dark band, outlines */
  --dark-2:     #46395c;  /* secondary dark button fill                      */
  --body:       #5a4d7a;  /* body text on light                              */
  --muted:      #6b5d8a;  /* muted text / eyebrows                           */
  --offwhite:   #f4f1fd;  /* off-white top zone                              */
  --card:       #fbfaff;  /* near-white card background                      */
  --white:      #ffffff;
  --light-lav:  #cfc4f7;  /* text on dark band                              */
  --navy:       #232a4d;  /* dark-blue section background                    */

  --r-pill: 999px;
  --r-chip: 20px;
  --r-card: 30px;
  --r-lg:   34px;
  --r-band: 40px;
  --r-hero: 46px;

  --shadow-nav:  0 2px 14px rgba(58,45,82,0.06);
  --shadow-btn:  0 12px 32px rgba(46,36,68,0.32);
  --shadow-map:  0 10px 40px rgba(58,45,82,0.18);

  --maxw-text: 1000px;
  --maxw-wide: 1240px;
  --pad-x: 40px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: clip; }

body {
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--offwhite);
  color: var(--dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--dark-2); color: var(--light-lav); }

a { color: inherit; }

/* ---------- Layout wrappers ------------------------------------------------ */

.top-zone { background: var(--offwhite); }

.wrap {
  max-width: var(--maxw-text);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  width: 100%;
}
.wrap-wide { max-width: var(--maxw-wide); }

.sec       { padding-top: 150px; }
.sec-tight { padding-top: 60px; }
.center    { text-align: center; }

/* ---------- Eyebrow + headings -------------------------------------------- */

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}

.h2 {
  font-size: 60px;
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--dark);
}
.h2-56 { font-size: 56px; }

.lede {
  font-size: 21px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--body);
  max-width: 680px;
}
.lede.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  border-radius: var(--r-pill);
  border: none;
  text-decoration: none;
  cursor: pointer;
  padding: 16px 32px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--dark      { background: var(--dark);   color: var(--white); }
.btn--dark2     { background: var(--dark-2); color: var(--white); }
.btn--lav       { background: var(--lavender); color: var(--dark); font-weight: 700; }
.btn--hero      { background: var(--dark); color: var(--white); font-size: 20px; padding: 22px 44px; box-shadow: var(--shadow-btn); }
.btn--hero:hover { box-shadow: 0 18px 40px rgba(46,36,68,0.40); }

.btn--outline-dark  { background: var(--white); color: var(--dark); border: 1.5px solid var(--dark); font-weight: 600; }
.btn--ghost-dark    { background: transparent; color: var(--dark); border: 1px solid rgba(58,45,82,0.25); }
.btn--outline-light { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.3); }

/* ---------- Nav ----------------------------------------------------------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad-x);
}

.brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--dark);
  text-decoration: none;
  transition: color 0.5s ease;
}
.brand-logo {
  flex: none;
  display: inline-block;
  height: 1.3em;
  width: 0.8em;
  background-color: var(--dark);
  -webkit-mask: url("logo-white.png") center / contain no-repeat;
          mask: url("logo-white.png") center / contain no-repeat;
  transition: background-color 0.5s ease;
}
.site-nav.on-dark .brand-logo { background-color: var(--white); }
.signup-logo { display: block; height: 60px; width: auto; margin: 0 auto 22px; }
.hero-logo {
  display: block;
  height: clamp(140px, 18vw, 240px);
  width: auto;
  margin: 0 auto 36px;
}

/* Nav adapts to the dynamic background: on the dark (navy) zone the wordmark
   flips to white so it stays legible. The white pill + white-bg CTA already
   stand out on every zone colour. */
.site-nav.on-dark .brand { color: var(--white); }
.site-nav.on-dark .nav-pill {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.22);
  box-shadow: none;
}
.site-nav.on-dark .nav-pill a { color: var(--white); }
.site-nav.on-dark .nav-pill a:hover { background: rgba(255,255,255,0.14); }
.site-nav.on-dark .nav-cta {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--white);
  border: 1px solid rgba(58,45,82,0.10);
  border-radius: var(--r-pill);
  padding: 7px 12px;
  box-shadow: var(--shadow-nav);
  transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}
.nav-pill a {
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  transition: background 0.15s ease, color 0.5s ease;
}
.nav-pill a:hover { background: var(--offwhite); }

.nav-cta {
  flex: none;
  font-size: 15px;
  padding: 13px 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
              background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease;
}

/* ---------- Hero ---------------------------------------------------------- */

.hero { padding: 30px var(--pad-x) 72px; }

.hero-box {
  position: relative;
  border-radius: var(--r-hero);
  overflow: hidden;
  min-height: 660px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(120deg,#c7bcfb 0%,#897ae7 32%,#a99cf2 60%,#c0b2fb 100%);
  background-size: 300% 300%;
  animation: gradShift 16s ease infinite;
}

.hero-grain {
  position: absolute;
  inset: -60%;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%27160%27%20height=%27160%27%3E%3Cfilter%20id=%27n%27%3E%3CfeTurbulence%20type=%27fractalNoise%27%20baseFrequency=%270.9%27%20numOctaves=%275%27%20stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect%20width=%27100%25%27%20height=%27100%25%27%20filter=%27url(%23n)%27/%3E%3C/svg%3E");
  opacity: 0.85;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: grain 0.5s steps(2) infinite;
}

/* Reusable animated gradient panel (same look as the hero box). Pair with a
   .hero-grain overlay child and a position:relative content wrapper. */
.grad-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg,#c7bcfb 0%,#897ae7 32%,#a99cf2 60%,#c0b2fb 100%);
  background-size: 300% 300%;
  animation: gradShift 16s ease infinite;
  box-shadow: 0 22px 60px rgba(58,45,82,0.20);
}

/* Dark variant: same animation + grain, deep-purple gradient, light text.
   Overrides only background-image so the 300% size + animation are kept. */
.grad-panel--dark {
  background-image: linear-gradient(120deg,#352a4f 0%,#5b4d86 30%,#2b2348 58%,#473a5e 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-inner h1 {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--dark);
}
.hero-inner h1 .accent { color: var(--white); }

.hero-sub {
  margin: 34px 0 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--dark-2);
  max-width: 640px;
}

.hero-inner .btn { margin-top: 44px; }

/* ---------- Transition band ----------------------------------------------- */

.transition {
  height: 160px;
  background: linear-gradient(180deg, var(--offwhite) 0%, var(--lavender) 100%);
}

/* ---------- "What we're building" intro ----------------------------------- */

.intro-copy {
  margin: 28px auto 0;
  max-width: 680px;
  font-size: 21px;
  line-height: 1.5;
  color: var(--body);
}

/* ---------- Stat cards (The Problem) -------------------------------------- */

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

.stat-card {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 48px 38px;
  text-align: center;
}
.stat-num {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--dark);
  line-height: 1;
}
.stat-suffix { font-size: 64px; font-weight: 700; }
.stat-label {
  margin: 20px auto 0;
  max-width: 240px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Rally band ---------------------------------------------------- */

.rally {
  border-radius: var(--r-band);
  padding: 92px 40px;
  text-align: center;
  color: var(--white);
}
.rally-inner { position: relative; z-index: 1; }
.rally h2 {
  margin: 0;
  font-size: 56px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 42px;
}

/* ---------- Founding institution chips ------------------------------------ */

.chip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.chip {
  background: var(--card);
  border-radius: var(--r-chip);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.chip .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lavender);
  flex: none;
}
.chip .name {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.cta-after { text-align: center; margin-top: 36px; }

/* ---------- Worldwide map ------------------------------------------------- */

.map-head { text-align: center; }
.map-head .eyebrow { margin-bottom: 18px; }
.map-head h2 { margin: 0 0 16px; }
.map-sub {
  margin: 0 auto 44px;
  max-width: 620px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--body);
}
.world-map {
  position: relative;
  z-index: 0;            /* contain Leaflet's stacking so it stays under the nav */
  width: 100%;
  height: 520px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-map);
}

/* ---------- Evidence ------------------------------------------------------ */

.evidence-card {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.evidence-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
}
.evidence-doi {
  margin-top: 12px;
  font-size: 17px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.evidence-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Progress bars (Toward 10,000) --------------------------------- */

.progress-stack {
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.progress-label { font-size: 18px; font-weight: 600; color: var(--body); }
.progress-val   { font-size: 24px; font-weight: 700; color: var(--dark); letter-spacing: -0.01em; white-space: nowrap; }
.progress-track {
  height: 16px;
  border-radius: var(--r-pill);
  background: var(--card);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--dark);
  width: 0;
  transition: width 1.2s cubic-bezier(0.2,0.65,0.3,1) 0.2s;
}
.reveal.in .progress-fill { width: var(--pct, 0); }

/* ---------- How we work cards --------------------------------------------- */

.work-card {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 40px 36px;
}
.icon-tile {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
}
.icon-tile .inner {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--dark);
}
.work-card h3 {
  margin: 0 0 12px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
}
.work-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Ways to participate ------------------------------------------- */

.ways-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.way-row {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
  text-decoration: none;
  color: inherit;
}
.way-num {
  font-size: 56px;
  font-weight: 700;
  color: var(--lavender);
  letter-spacing: -0.02em;
  flex: none;
  width: 80px;
}
.way-body { flex: 1; min-width: 300px; }
.way-body h3 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
}
.way-body p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 560px;
}
.way-row .btn { flex: none; font-size: 16px; padding: 15px 30px; }

/* ---------- Team ---------------------------------------------------------- */

.member-card {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 40px 36px;
}
.member-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--lavender);
  margin-bottom: 26px;
  object-fit: cover;
}
.member-card h3 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
}
.member-card .role {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Supported by -------------------------------------------------- */

.supported {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
}

/* ---------- Footer -------------------------------------------------------- */

.site-footer { padding: 120px var(--pad-x) 56px; }
.footer-inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(58,45,82,0.18);
  padding-top: 32px;
}
.footer-brand {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--dark);
  text-decoration: none;
}
.footer-links { display: flex; gap: 26px; font-size: 15px; font-weight: 600; }
.footer-links a { color: var(--body); text-decoration: none; }
.footer-links a:hover { color: var(--dark); }
.footer-copy { font-size: 15px; color: var(--body); }

/* ---------- Email signup (kept from production, restyled) ------------------ */

.signup {
  margin-top: 150px;
  padding: 0 var(--pad-x);
}
.signup-box {
  position: relative;
  max-width: var(--maxw-wide);
  margin: 0 auto;
  border-radius: var(--r-band);
  overflow: hidden;
  padding: 120px 40px 130px;
  text-align: center;
}
.signup-content { position: relative; z-index: 2; }
.signup-content .eyebrow { color: var(--dark); margin-bottom: 22px; }
.signup-hook {
  margin: 0 0 16px;
  font-size: 56px;
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--dark);
}
.signup-sub {
  margin: 0 auto 40px;
  max-width: 560px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--dark-2);
}
.signup-form {
  display: flex;
  gap: 14px;
  max-width: 700px;
  margin: 0 auto;
}
.signup-form input[type="email"] {
  flex: 1;
  font-family: inherit;
  font-size: 19px;
  padding: 26px 30px;
  border: 1.5px solid rgba(58,45,82,0.22);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.96);
  color: var(--dark);
  outline: none;
  box-shadow: 0 10px 30px rgba(58,45,82,0.16);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.signup-form input[type="email"]:focus { border-color: var(--dark); box-shadow: 0 12px 34px rgba(58,45,82,0.24); }
.signup-form input::placeholder { color: var(--muted); }
.signup-form button {
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  padding: 26px 38px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--dark);
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(46,36,68,0.28);
  transition: transform 0.15s ease;
}
.signup-form button:hover { transform: translateY(-2px); }
.signup-thanks {
  display: none;
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
}
.signup-form.sent { display: none; }
.signup-form.sent + .signup-thanks { display: block; }

/* ---------- Scroll-reveal -------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2,0.65,0.3,1),
              transform 0.8s cubic-bezier(0.2,0.65,0.3,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal.in :where(.grid-3, .chip-grid, .ways-stack, .progress-stack) > * {
  animation: fadeUp 0.7s cubic-bezier(0.2,0.65,0.3,1) both;
}
.reveal.in :where(.grid-3, .chip-grid, .ways-stack, .progress-stack) > :nth-child(2) { animation-delay: 0.08s; }
.reveal.in :where(.grid-3, .chip-grid, .ways-stack, .progress-stack) > :nth-child(3) { animation-delay: 0.16s; }
.reveal.in :where(.grid-3, .chip-grid, .ways-stack, .progress-stack) > :nth-child(4) { animation-delay: 0.24s; }
.reveal.in :where(.grid-3, .chip-grid, .ways-stack, .progress-stack) > :nth-child(5) { animation-delay: 0.32s; }
.reveal.in :where(.grid-3, .chip-grid, .ways-stack, .progress-stack) > :nth-child(6) { animation-delay: 0.40s; }

/* ---------- Hero keyframes ------------------------------------------------ */

@keyframes gradShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  10% { transform: translate(-4%,-3%); }
  20% { transform: translate(-8%,3%); }
  30% { transform: translate(5%,-6%); }
  40% { transform: translate(-3%,8%); }
  50% { transform: translate(-9%,4%); }
  60% { transform: translate(6%,2%); }
  70% { transform: translate(-2%,-7%); }
  80% { transform: translate(7%,5%); }
  90% { transform: translate(-5%,-2%); }
}

@media (prefers-reduced-motion: reduce) {
  #bg-layer { transition: none; }
  .brand { transition: none; }
  .hero-box, .grad-panel { animation: none; }
  .hero-grain { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal.in :where(.grid-3, .chip-grid, .ways-stack, .progress-stack) > * { animation: none; }
  .progress-fill { transition: none; }
}

/* ---------- Leaflet theming ----------------------------------------------- */

.leaflet-container { font-family: 'Hanken Grotesk', sans-serif; background: #e9e4fb; }
.world-map .leaflet-control-attribution {
  background: rgba(251,250,255,0.85);
  font-size: 10px; color: var(--muted); padding: 2px 6px;
}
.world-map .leaflet-control-attribution a { color: var(--dark); }
.world-map .leaflet-control-zoom a {
  background: var(--card); color: var(--dark); border-color: rgba(58,45,82,0.18);
}
.world-map .leaflet-control-zoom a:hover { background: var(--offwhite); }
.world-map .leaflet-popup-content-wrapper {
  background: var(--dark); color: var(--white); border-radius: 12px;
}
.world-map .leaflet-popup-content { font-size: 13.5px; line-height: 1.45; margin: 12px 16px; }
.world-map .leaflet-popup-tip { background: var(--dark); }
.world-map .leaflet-popup-close-button { color: var(--light-lav); }

/* ==========================================================================
   Background zones — alternating colours with soft scroll-fade transitions
   ========================================================================== */

/* Scroll-driven background: a single fixed colour layer behind everything.
   JS sets its colour to whichever section is crossing the viewport centre,
   and this transition morphs the whole page background as you scroll — no
   gradient bands baked into the document flow. */
#bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--offwhite);
  transition: background-color 0.6s ease;
}

/* Zones are transparent — the #bg-layer colour shows through. The class is
   kept only so per-theme contrast rules below can target their children. */
.zone        { position: relative; padding-bottom: 90px; background: transparent; }
.top-zone    { background: transparent; padding-top: 92px; }

/* Dark-blue zone: lift eyebrow + recolour the dark button so it reads. */
.zone-dark .eyebrow      { color: var(--light-lav); }
.zone-dark .btn--dark2   { background: var(--lavender); color: var(--dark); }

/* Off-white zone: cards are near-white too, so give them lift to separate. */
.zone-light .stat-card,
.zone-light .evidence-card,
.zone-light .work-card,
.zone-light .member-card,
.zone-light .chip,
.zone-light .way-row,
.zone-light .therapy-card {
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(58,45,82,0.10);
}
.zone-light .progress-track { background: #e7e2f8; }

/* ---------- Therapy options cards (the treatment gap) --------------------- */
.therapy-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--r-card);
  padding: 36px 32px;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.therapy-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(58,45,82,0.18); }
.therapy-tag {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.therapy-name {
  margin: 0 0 14px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--dark); line-height: 1.25;
}
.therapy-name span { display: block; margin-top: 5px; font-size: 15px; font-weight: 600; color: var(--muted); }
.therapy-desc { margin: 0 0 22px; font-size: 15.5px; line-height: 1.55; color: var(--muted); flex: 1; }
.therapy-link { font-size: 15px; font-weight: 700; color: var(--dark); }
.therapy-card:hover .therapy-link { color: var(--dark-2); }

/* ---------- Bridge bar ---------------------------------------------------- */
.bridge {
  max-width: 1000px;
  margin: 64px auto 0;
  padding: 36px 44px;
  border-radius: var(--r-card);
  background: rgba(169,156,242,0.18);
  text-align: center;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--dark);
}
.bridge strong { color: var(--dark); }

/* ---------- Scroll-pinned card reveal ------------------------------------- */
.pin { position: relative; }
.pin-stick {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 0;
}
.pin-stick > .wrap,
.pin-stick > .wrap-wide { width: 100%; }
/* Cards start hidden only while JS is actively pinning (desktop + motion on). */
.pin-ready .pin-cards > * { opacity: 0; will-change: transform, opacity; }
.pin-off,
.pin-off .pin-stick {
  position: static;
  min-height: 0;
  height: auto !important;
  padding: 0;
}

/* ---------- Scaling matrix (why so many cases) ---------------------------- */
.scale-sheet {
  position: relative;
  margin-top: 44px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(58,45,82,0.08);
  box-shadow: 0 14px 40px rgba(58,45,82,0.08);
  padding: 30px 30px 26px;
  overflow: hidden;
}
.scale-grid {
  display: grid;
  gap: 8px;
  align-items: center;
  -webkit-mask-image: linear-gradient(to right, #000 52%, transparent 94%), linear-gradient(to bottom, #000 56%, transparent 96%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, #000 52%, transparent 94%), linear-gradient(to bottom, #000 56%, transparent 96%);
          mask-composite: intersect;
}
.sg-corner {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: flex-end; padding-bottom: 6px;
}
.sg-col {
  font-size: 12.5px; font-weight: 700; color: var(--dark);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; white-space: nowrap;
}
.sg-row {
  font-size: 12px; font-weight: 600; color: var(--muted);
  display: flex; align-items: center; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.sg-cell { height: 30px; border-radius: 7px; background: rgba(58,45,82,0.07); }
.sg-cell.on { background: var(--lavender); }
.scale-caption {
  margin: 22px auto 0; max-width: 760px;
  font-size: 14px; line-height: 1.5; color: var(--muted); text-align: center;
}

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

@media (max-width: 1080px) {
  .hero-inner h1 { font-size: clamp(32px, 6vw, 60px); }
}

@media (max-width: 900px) {
  :root { --pad-x: 24px; }

  .nav-pill { display: none; }

  .hero { padding: 16px 20px 56px; }
  .hero-box { min-height: 520px; padding: 64px 20px; border-radius: 34px; }
  .hero-inner h1 { font-size: clamp(46px, 11vw, 64px); }
  .hero-sub { font-size: 19px; }

  .sec { padding-top: 110px; }

  .h2     { font-size: 40px; }
  .h2-56  { font-size: 38px; }

  .grid-3, .chip-grid { grid-template-columns: 1fr; }

  .rally { padding: 64px 28px; border-radius: 30px; }
  .rally h2 { font-size: 38px; }

  .evidence-card { padding: 40px 32px; }
  .evidence-title { font-size: 26px; }

  .way-row { padding: 36px 32px; gap: 20px; }
  .way-num { width: auto; font-size: 40px; }
  .way-body h3 { font-size: 24px; }

  .signup-hook { font-size: 34px; }
  .signup-form { flex-direction: column; }

  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .site-nav { padding: 16px 20px; }
  .top-zone { padding-top: 72px; }
  .nav-cta { padding: 11px 18px; font-size: 14px; }
  .hero-inner h1 { font-size: clamp(40px, 12vw, 52px); }
  .stat-num, .stat-suffix { font-size: 52px; }
}
