/* ============================================================
   PDAHub — calm, breathing, hopeful
   ============================================================ */

:root {
  /* palette */
  --bg-top: #f6f5fb;
  --bg-bot: #fbf8f4;
  --paper: #ffffff;

  --ink: #2b3149;
  --ink-soft: #5c627b;
  --ink-faint: #8b90a6;

  --blue: #8fa9e0;
  --blue-deep: #5d7ec9;
  --lilac: #c2b1e6;
  --lilac-deep: #997fc7;
  --honey: #f0c47b;
  --honey-deep: #dd9f50;
  --rose: #ecc6d9;
  --sage: #b6dcc1;

  --line: rgba(93, 126, 201, 0.16);
  --line-soft: rgba(93, 126, 201, 0.10);

  /* tweakable */
  --accent: var(--honey);
  --accent-deep: var(--honey-deep);
  --motion: 1; /* 1 = on, 0 = reduced */

  --maxw: 1180px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 78% -8%, rgba(194,177,230,0.20), transparent 60%),
    radial-gradient(1000px 620px at 8% 6%, rgba(143,169,224,0.18), transparent 58%),
    linear-gradient(176deg, var(--bg-top), var(--bg-bot));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  overflow-x: clip;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.08; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(92vw, var(--maxw)); margin-inline: auto; }

/* eyebrow */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--blue-deep);
  opacity: 0.6;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .35s cubic-bezier(.2,.8,.25,1), box-shadow .35s, background .3s, color .3s;
  will-change: transform;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #4a3413;
  box-shadow: 0 10px 26px -10px rgba(221,159,80,0.7);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -12px rgba(221,159,80,0.8); }
.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}
.btn-partner {
  background: var(--lilac);
  color: #43365f;
  box-shadow: 0 10px 26px -10px rgba(153,127,199,0.52);
}
.btn-partner:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -12px rgba(153,127,199,0.64); }
.btn-ghost {
  background: rgba(255,255,255,0.6);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--blue); background: #fff; }
.btn-quiet { background: transparent; color: var(--ink); padding-inline: 0.2em; }
.btn-quiet:hover { color: var(--blue-deep); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0;
  transition: background .4s, box-shadow .4s, padding .4s;
}
.nav.scrolled {
  background: rgba(251,249,245,0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line-soft), 0 12px 30px -24px rgba(43,49,73,0.5);
  padding: 0.7rem 0;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(92vw, var(--maxw)); }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--serif); font-size: 1.32rem; letter-spacing: -0.02em; }
.brand b { font-weight: 600; }
.brand .mark { width: 30px; height: 30px; flex: 0 0 auto; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a { position: relative; font-size: 0.95rem; color: var(--ink-soft); font-weight: 500; transition: color .25s; white-space: nowrap; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--blue-deep); transform: scaleX(0); transform-origin: left center;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 7rem 0 4rem;
  overflow: hidden;
}

/* atmosphere blobs */
.atmo { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.atmo span {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: 0.5;
}
.atmo .b1 { width: 540px; height: 540px; left: -8%; top: 6%; background: radial-gradient(circle, rgba(143,169,224,0.5), transparent 70%); animation: drift1 calc(38s / var(--motion, 1)) ease-in-out infinite; }
.atmo .b2 { width: 600px; height: 600px; right: -10%; top: -6%; background: radial-gradient(circle, rgba(194,177,230,0.5), transparent 70%); animation: drift2 calc(44s / var(--motion, 1)) ease-in-out infinite; }
.atmo .b3 { width: 420px; height: 420px; left: 40%; bottom: -14%; background: radial-gradient(circle, rgba(240,196,123,0.34), transparent 70%); animation: drift3 calc(50s / var(--motion, 1)) ease-in-out infinite; }

@keyframes drift1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,30px)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-44px,38px)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,-30px)} }

/* stage that holds rings + title */
.hero-stage {
  position: relative;
  z-index: 1;
  width: min(94vw, 880px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

/* the orbital system canvas (square, centered) */
.orbital {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.orbit.dashed { border-style: dashed; border-color: rgba(93,126,201,0.28); }
.orbit-spin { position: absolute; inset: 0; border-radius: 50%; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.node-pos { position: absolute; transform: translate(-50%, -50%); }
.node {
  position: relative;
  display: grid; place-items: center;
  cursor: default;
}
.node .dot {
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px -12px rgba(43,49,73,0.45), inset 0 0 0 1px rgba(255,255,255,0.55);
  transition: transform .5s cubic-bezier(.2,.8,.25,1), box-shadow .5s;
}
.node:hover .dot { transform: scale(1.12); box-shadow: 0 16px 30px -12px rgba(43,49,73,0.5), inset 0 0 0 1px rgba(255,255,255,0.7); }
.node .label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  background: rgba(255,255,255,0.7);
  padding: 2px 9px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.node:hover .label { opacity: 1; }
body.labels-on .node .label { opacity: 0.5; }

/* ---- periodic word-bloom: one orbiting sphere gently transforms to show a word ---- */
.node .bloom-word {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 8px) scale(0.8);
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.06rem;
  line-height: 1;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.92);
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 16px 32px -18px rgba(43, 49, 73, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(7px);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity .6s ease, transform .65s cubic-bezier(.2, .8, .25, 1);
}
.node.bloom { z-index: 4; }
.node.bloom .bloom-word { opacity: 1; transform: translate(-50%, 0) scale(1); }
.node.bloom .dot {
  transform: scale(1.9);
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.4),
    0 20px 42px -16px rgba(43, 49, 73, 0.42),
    0 0 30px 3px var(--bloom-glow, rgba(240, 196, 123, 0.5)),
    inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}
.node.bloom .label { opacity: 0 !important; }
@media (prefers-reduced-motion: reduce) {
  .node .bloom-word { transition: none; }
}

/* breathing core behind the title */
.core {
  position: absolute;
  width: 46%; height: 46%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,196,123,0.55) 0%, rgba(240,196,123,0.18) 42%, transparent 70%);
  z-index: 0;
  animation: breathe calc(7s / var(--motion, 1)) ease-in-out infinite;
}
@keyframes breathe { 0%,100%{transform:scale(1); opacity:.85} 50%{transform:scale(1.07); opacity:1} }

/* protective veil so title stays legible */
.hero-copy {
  position: relative;
  z-index: 3;
  text-align: center;
  width: min(88%, 660px);
  display: grid;
  justify-items: center;
  gap: 1.7rem;
  padding: 2rem;
}
.hero-copy::before {
  content: "";
  position: absolute; inset: -26% -22%;
  background: radial-gradient(ellipse at center, rgba(250,248,244,0.97) 0%, rgba(250,248,244,0.9) 42%, rgba(250,248,244,0.55) 62%, transparent 80%);
  z-index: -1;
  border-radius: 50%;
}
.hero h1 {
  font-size: clamp(2.05rem, 4.8vw, 3.55rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
}
.hero h1 em { font-style: italic; color: var(--blue-deep); }
.hero h1 .warm { color: var(--accent-deep); font-style: italic; }
.hero-sub { font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--ink-soft); max-width: 27em; }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: center; margin-top: 0.7rem; }
.scope { padding-top: 1.6rem; }
.scope-card {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 2.2rem;
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, rgba(255,255,255,0.88), rgba(255,255,255,0.7));
  border: 1px solid var(--line-soft);
  box-shadow: 0 20px 44px -34px rgba(43,49,73,0.32);
  display: grid;
  gap: 1rem;
  text-align: center;
}
.scope-card p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.72; }

.scroll-cue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  z-index: 3; display: grid; justify-items: center; gap: 0.5rem;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint);
}
.scroll-cue .line { width: 1px; height: 38px; background: linear-gradient(var(--ink-faint), transparent); animation: cue calc(2.4s / var(--motion,1)) ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%,100%{transform:scaleY(.4); opacity:.5} 50%{transform:scaleY(1); opacity:1} }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section { position: relative; }
.band { padding: clamp(5rem, 10vw, 8.5rem) 0; }
.section-head { max-width: 44rem; display: grid; gap: 1.1rem; margin-bottom: 3.4rem; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.section-head p { color: var(--ink-soft); font-size: 1.12rem; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.8,.25,1), transform .9s cubic-bezier(.2,.8,.25,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   VALUES
   ============================================================ */
.values { background:
    radial-gradient(900px 500px at 90% 0%, rgba(143,169,224,0.10), transparent 60%);
}
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.value-card {
  background: rgba(255,255,255,0.66);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 1.8rem 1.6rem 2rem;
  display: grid; gap: 0.7rem;
  transition: transform .5s cubic-bezier(.2,.8,.25,1), box-shadow .5s, background .5s;
  backdrop-filter: blur(4px);
}
.value-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(43,49,73,0.5); background: #fff; }
.value-glyph {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 0.4rem;
}
.value-card h3 { font-size: 1.32rem; }
.value-card p { color: var(--ink-soft); font-size: 0.97rem; }
.value-num { font-family: var(--serif); font-size: 0.9rem; color: var(--ink-faint); }

/* ============================================================
   OUR TEAM (about)
   ============================================================ */
.team {
  background:
    radial-gradient(820px 460px at 10% 0%, rgba(194,177,230,0.10), transparent 60%);
}

.team-statement {
  max-width: 50rem;
  margin: 0 auto;
  display: grid;
  gap: 1.15rem;
  text-align: center;
}

.team-statement .lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.24rem, 2.3vw, 1.6rem);
  line-height: 1.42;
  color: var(--ink);
  text-wrap: balance;
}

.team-statement p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  text-wrap: pretty;
}

.team-statement .hub-mark {
  color: var(--lilac-deep);
  font-weight: 700;
}

.team-statement .closing-note {
  color: var(--lilac-deep);
  font-style: italic;
}

/* ============================================================
   MODEL (MECE 3-layer)
   ============================================================ */
.model-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.model-diagram { position: relative; aspect-ratio: 1; width: 100%; display: grid; place-items: center; }
.ring-layer {
  position: absolute; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
}
.ring-layer { transition: border-color .5s, box-shadow .5s, background .5s; }
.ring-layer.lit { border-color: var(--blue-deep); box-shadow: 0 0 0 1px var(--blue), 0 0 40px -6px rgba(93,126,201,0.5) inset; background: rgba(143,169,224,0.06); }
.ring-layer .ring-label {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  background: var(--bg-bot); padding: 2px 10px; border-radius: 999px;
}

.pillars { display: grid; gap: 1.1rem; }
.pillar {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start;
  padding: 1.5rem 1.6rem;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line-soft);
  cursor: pointer;
  transition: transform .45s cubic-bezier(.2,.8,.25,1), box-shadow .45s, background .45s, border-color .45s;
}
.pillar:hover, .pillar.active { transform: translateX(6px); background:#fff; box-shadow: 0 24px 46px -30px rgba(43,49,73,0.5); }
.pillar .pico { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; flex: 0 0 auto; }
.pillar h3 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.pillar p { color: var(--ink-soft); font-size: 0.98rem; }
.pillar .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.tag { font-size: 0.74rem; font-weight: 600; color: var(--ink-soft); background: rgba(143,169,224,0.14); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }

/* ============================================================
   BRIDGE
   ============================================================ */
.bridge { background:
   radial-gradient(800px 500px at 10% 100%, rgba(182,220,193,0.18), transparent 60%); }
.bridge-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem,4vw,3.5rem); align-items: center; }
.bridge-progress {
  color: var(--lilac-deep);
  font-family: var(--serif);
  font-size: clamp(1.22rem, 1.9vw, 1.42rem);
  font-style: italic;
  line-height: 1.6;
  margin-top: 1.15rem;
}
.flow {
  background: rgba(255,255,255,0.6); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 2.4rem; display: grid; gap: 1.4rem;
}
.flow-row { display: flex; align-items: center; gap: 1rem; }
.flow-node { flex: 1; padding: 1.1rem 1.2rem; border-radius: var(--r-sm); font-weight: 600; font-size: 0.98rem; text-align: center; border: 1px solid var(--line); background: #fff; }
.flow-node.soft { background: rgba(143,169,224,0.12); border-color: transparent; }
.flow-node.green { background: rgba(182,220,193,0.22); }
.flow-node.dash { border-style: dashed; background: transparent; color: var(--ink-soft); }
.flow-arrow { color: var(--blue-deep); flex: 0 0 auto; }

/* ============================================================
   RESPITE
   ============================================================ */
.respite-card {
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: stretch;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #fff;
  box-shadow: 0 40px 80px -56px rgba(43,49,73,0.55);
}
.respite-copy { padding: clamp(2.2rem, 4vw, 3.6rem); display: grid; align-content: center; gap: 1.3rem; }
.respite-list { display: grid; gap: 0.8rem; margin-top: 0.4rem; }
.respite-list div { display: flex; align-items: center; gap: 0.7rem; color: var(--ink-soft); font-size: 1rem; }
.respite-list .bullet { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex:0 0 auto; }

/* image placeholder */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(143,169,224,0.10) 0 12px, rgba(143,169,224,0.04) 12px 24px),
    linear-gradient(135deg, rgba(194,177,230,0.18), rgba(143,169,224,0.14));
  display: grid; place-items: center; min-height: 320px;
}
.ph span { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--blue-deep); background: rgba(255,255,255,0.7); padding: 5px 12px; border-radius: 999px; }

/* user-fillable image slot — warm, on-brand empty state */
image-slot::part(frame) {
  background:
    repeating-linear-gradient(135deg, rgba(143,169,224,0.10) 0 12px, rgba(143,169,224,0.03) 12px 24px),
    linear-gradient(135deg, rgba(194,177,230,0.20), rgba(143,169,224,0.16));
}
image-slot::part(empty) { color: var(--blue-deep); font-size: 0.82rem; }

/* ============================================================
   INVOLVED
   ============================================================ */
.involved { }
.involved-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.invite {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); padding: clamp(2.2rem,3.5vw,3.2rem);
  display: grid; gap: 1.1rem; align-content: start;
  border: 1px solid var(--line-soft);
}
.invite.parents { background: linear-gradient(160deg, rgba(143,169,224,0.18), rgba(194,177,230,0.12)); }
.invite.funders { background: linear-gradient(160deg, rgba(240,196,123,0.20), rgba(236,198,217,0.12)); }
.invite h3 { font-size: 1.7rem; }
.invite p { color: var(--ink-soft); }
.invite .btn { justify-self: start; margin-top: 0.4rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 4.5rem 0 3rem; border-top: 1px solid var(--line-soft); margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; align-items: start; }
.footer p { color: var(--ink-soft); font-size: 0.95rem; max-width: 26em; }
.footer h4 { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer a { color: var(--ink-soft); font-size: 0.95rem; }
.footer a:hover { color: var(--ink); }
.footer-base { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--ink-faint); font-size: 0.85rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .model-layout { grid-template-columns: 1fr; }
  .model-diagram { max-width: 460px; margin-inline: auto; order: -1; }
  .bridge-grid { grid-template-columns: 1fr; }
  .respite-card { grid-template-columns: 1fr; }
  .involved-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.4rem; }
}
@media (max-width: 520px) {
  .values-grid { grid-template-columns: 1fr; }
  .hero-copy::before { inset: -10% -20%; }
}

@media (max-width: 1120px) {
  .nav .wrap { gap: 0.75rem; }
  .nav-links { gap: 1.35rem; }
  .nav-actions .btn { padding-inline: 1.15em; font-size: 0.94rem; }
  .mega {
    left: auto;
    right: 0;
    transform: translateY(8px);
    width: min(calc(100vw - 2rem), 560px);
  }
  .has-mega:hover .mega,
  .has-mega.open .mega { transform: translateY(0); }
}

@media (max-width: 1024px) {
  .mega { grid-template-columns: 1fr; gap: 1rem; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
}

/* tweaks panel mount */
#tweaks-root { position: fixed; z-index: 80; }

/* ============================================================
   NAV — mega-menu + mobile (added for Community section)
   ============================================================ */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; border: none; background: transparent;
  cursor: pointer; border-radius: 12px; align-items: center; justify-content: center;
}
.nav-toggle span { position: relative; width: 22px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

.has-mega { position: relative; display: flex; align-items: center; }
.mega-trigger {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--sans); font-size: 0.95rem; color: var(--ink-soft); font-weight: 500;
  background: none; border: none; cursor: pointer; padding: 0; transition: color .25s;
}
.mega-trigger::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--blue-deep); transform: scaleX(0); transform-origin: left center;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.mega-trigger:hover, .has-mega.open .mega-trigger { color: var(--ink); }
.mega-trigger:hover::after, .has-mega.open .mega-trigger::after { transform: scaleX(1); }
.mega-trigger .caret { width: 9px; height: 9px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-1px,-1px); transition: transform .3s; }
.has-mega.open .mega-trigger .caret { transform: rotate(-135deg) translate(-2px,-2px); }

.mega {
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(calc(100vw - 2rem), 600px);
  max-width: calc(100vw - 2rem);
  background: rgba(255,255,255,0.92); backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  box-shadow: 0 30px 70px -34px rgba(43,49,73,0.6);
  padding: 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, transform .3s, visibility .3s;
  z-index: 60;
}
.has-mega:hover .mega, .has-mega.open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega::before { content: ""; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.mega-col { min-width: 0; }
.mega-col h5 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 0.8rem; font-weight: 700; }
.mega-link { display: block; padding: 0.55rem 0.7rem; border-radius: var(--r-sm); transition: background .25s; margin: 0 -0.3rem; }
.mega-link:hover { background: rgba(143,169,224,0.12); }
.mega-link b { display: block; font-weight: 600; color: var(--ink); font-size: 0.97rem; }
.mega-link span { display: block; color: var(--ink-soft); font-size: 0.82rem; margin-top: 1px; overflow-wrap: anywhere; }
.mega-link.feature { background: linear-gradient(150deg, rgba(240,196,123,0.26), rgba(236,198,217,0.16)); padding: 0.9rem 0.9rem; }
.mega-link.feature:hover { background: linear-gradient(150deg, rgba(240,196,123,0.36), rgba(236,198,217,0.2)); }
.mega-link.feature b { display: flex; align-items: center; gap: 0.45em; }
.mega-link.feature b::after { content: "→"; color: var(--accent-deep); transition: transform .3s; }
.mega-link.feature:hover b::after { transform: translateX(4px); }

/* mobile menu */
.mobile-menu {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(251,249,245,0.97); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-soft); box-shadow: 0 30px 50px -30px rgba(43,49,73,0.5);
  padding: 1.2rem var(--mobpad, 4vw) 1.8rem;
  flex-direction: column; gap: 0.2rem;
  max-height: calc(100vh - 64px); overflow-y: auto;
}
.nav.open .mobile-menu { display: flex; }
.mobile-menu a { padding: 0.85rem 0.4rem; font-size: 1.05rem; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .m-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; padding: 1.1rem 0.4rem 0.3rem; }
.mobile-menu .m-cta { margin-top: 1rem; }

/* ============================================================
   SUBPAGE HEADER + PROSE
   ============================================================ */
.subhead {
  position: relative; overflow: hidden;
  padding: clamp(7rem, 12vw, 10rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.subhead .atmo span { opacity: 0.38; }
.subhead .wrap { position: relative; z-index: 1; }
.subhead-inner { max-width: 46rem; display: grid; gap: 1.2rem; }
.subhead h1 { font-size: clamp(2.3rem, 5.2vw, 3.5rem); line-height: 1.06; }
.admin-subhead h1 { font-size: clamp(2rem, 4.1vw, 2.85rem); }
.subhead h1 em { font-style: italic; color: var(--blue-deep); }
.subhead .lead { font-size: clamp(1.08rem, 1.7vw, 1.32rem); color: var(--ink-soft); max-width: 34rem; }
.scope-clarity {
  color: var(--lilac-deep);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.08rem, 1.7vw, 1.24rem);
  line-height: 1.62;
  max-width: 42rem;
}
.crumb { display: flex; align-items: center; gap: 0.5em; font-size: 0.85rem; color: var(--ink-faint); flex-wrap: wrap; }
.crumb span, .crumb a { white-space: nowrap; }
.crumb a { color: var(--ink-faint); } .crumb a:hover { color: var(--blue-deep); }

.prose { max-width: 44rem; }
.prose > * + * { margin-top: 1.15rem; }
.prose p { color: var(--ink-soft); font-size: 1.06rem; line-height: 1.65; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 2.8rem; }
.prose h3 { font-size: 1.3rem; margin-top: 2rem; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.prose ul li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); font-size: 1.04rem; line-height: 1.55; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.callout {
  border-radius: var(--r-md); padding: 1.6rem 1.8rem; margin-top: 1.8rem;
  background: linear-gradient(150deg, rgba(143,169,224,0.14), rgba(194,177,230,0.10));
  border: 1px solid var(--line-soft);
}
.callout.soft { background: linear-gradient(145deg, rgba(143,169,224,0.12), rgba(255,255,255,0.82)); }
.callout.warm { background: linear-gradient(150deg, rgba(240,196,123,0.18), rgba(236,198,217,0.10)); }
.callout p { color: var(--ink); font-size: 1.04rem; }
.callout .k { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.4; color: var(--ink); }

/* two-up content with side card */
.content-split { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.aside-card { position: sticky; top: 6rem; background: rgba(255,255,255,0.66); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 1.8rem; display: grid; gap: 1rem; }
.aside-card h4 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin: 0; }

/* trait/quality grid */
.trait-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-top: 1.6rem; }
.trait { background: rgba(255,255,255,0.6); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 1.3rem 1.4rem; display: grid; gap: 0.4rem; }
.trait h4 { font-family: var(--serif); font-weight: 500; font-size: 1.12rem; margin: 0; }
.trait p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.trait .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 0.3rem; background: rgba(143,169,224,0.16); }

/* ============================================================
   SIGNUP / JOIN
   ============================================================ */
.join-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: start; }
.join-layout-wide { grid-template-columns: minmax(0, 0.92fr) minmax(34rem, 1.08fr); }
.partner-layout { grid-template-columns: minmax(0, 1fr) minmax(30rem, 1.02fr); gap: clamp(1.8rem, 4vw, 3.5rem); }
.join-story { display: grid; gap: 1.4rem; }
.join-story .stat { display: flex; align-items: baseline; gap: 0.6rem; }
.join-story .stat b { font-family: var(--serif); font-size: clamp(2.6rem,6vw,3.8rem); color: var(--blue-deep); font-weight: 400; line-height: 1; }
.join-story .stat span { color: var(--ink-soft); font-size: 1.05rem; }
.perks { display: grid; gap: 1.2rem; margin-top: 0.4rem; }
.perk { display: flex; gap: 0.8rem; align-items: flex-start; }
.perk .tick { width: 26px; height: 26px; border-radius: 50%; background: rgba(182,220,193,0.4); display: grid; place-items: center; flex: 0 0 auto; margin-top: 1px; }
.perk b { font-weight: 600; color: var(--ink); } .perk p { color: var(--ink-soft); font-size: 0.96rem; margin: 3px 0 0; line-height: 1.45; }

.signup-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: clamp(1.8rem, 3vw, 2.6rem); box-shadow: 0 40px 80px -54px rgba(43,49,73,0.55);
  position: sticky; top: 6rem;
  max-width: 42rem;
  width: 100%;
  justify-self: end;
}
.signup-card h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.signup-card .sub { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 1.6rem; }
.signup-scope-note {
  margin: -0.8rem 0 1.25rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--r-sm);
  background: rgba(143,169,224,0.12);
  border: 1px solid rgba(93,126,201,0.14);
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}
.field { display: grid; gap: 0.45rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field input {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 0.85rem 1rem; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: rgba(143,169,224,0.05); transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(143,169,224,0.16); }
.field.invalid input { border-color: #d98a8a; box-shadow: 0 0 0 4px rgba(217,138,138,0.14); }
.field .err { font-size: 0.78rem; color: #c46a6a; display: none; }
.field.invalid .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.role-help {
  margin: 0 0 0.7rem;
  color: var(--ink-faint);
  font-size: 0.84rem;
  line-height: 1.5;
}
.role-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.role-field.invalid .role-chip { border-color: #d98a8a; box-shadow: 0 0 0 4px rgba(217,138,138,0.08); }
.role-chip {
  font-size: 0.9rem; font-weight: 500; color: var(--ink-soft);
  padding: 0.5rem 0.95rem; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; transition: all .2s;
}
.role-chip:hover { border-color: var(--blue); }
.role-chip.sel { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.age-confirm-field {
  margin-top: -0.1rem;
  padding: 1rem 1rem 0.95rem;
  border-radius: var(--r-md);
  background: rgba(143,169,224,0.08);
  border: 1px solid rgba(93,126,201,0.14);
}
.age-confirm-field[hidden] {
  display: none;
}
.age-confirm-field.invalid {
  border-color: #d98a8a;
  box-shadow: 0 0 0 4px rgba(217,138,138,0.08);
}
.pill-switch {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(93,126,201,0.14);
}
.pill-switch-option {
  min-width: 72px;
  padding: 0.58rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}
.pill-switch-option:hover {
  color: var(--ink);
}
.pill-switch-option:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(143,169,224,0.18);
}
.pill-switch-option.sel {
  background: var(--blue-deep);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(93,126,201,0.7);
}
.signup-card.partner-card .signup-scope-note {
  background: rgba(194,177,230,0.16);
  border-color: rgba(153,127,199,0.18);
}
.signup-card.partner-card .signup-scope-note.partner-note-inline {
  margin: -0.55rem 0 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-faint);
  font-style: italic;
}
.signup-card.partner-card .field input,
.signup-card.partner-card .field textarea {
  background: rgba(194,177,230,0.06);
}
.signup-card.partner-card .field input:focus,
.signup-card.partner-card .field textarea:focus {
  border-color: var(--lilac-deep);
  box-shadow: 0 0 0 4px rgba(194,177,230,0.18);
}
.signup-card.partner-card .role-chip:hover { border-color: var(--lilac-deep); }
.signup-card.partner-card .role-chip.sel { background: var(--lilac-deep); border-color: var(--lilac-deep); color: #fff; }
.signup-card.partner-card .check-row:hover .box { border-color: var(--lilac-deep); }
.signup-card.partner-card .check-row input:checked + .box { background: var(--lilac-deep); border-color: var(--lilac-deep); }
.signup-card.partner-card .check-row input:focus-visible + .box { box-shadow: 0 0 0 4px rgba(194,177,230,0.22); }
.field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 0.9rem 1rem; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: rgba(143,169,224,0.05); transition: border-color .25s, box-shadow .25s, background .25s;
  resize: vertical; min-height: 108px;
}
.field textarea::placeholder { color: var(--ink-faint); }
.field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(143,169,224,0.16); }
.field.invalid textarea { border-color: #d98a8a; box-shadow: 0 0 0 4px rgba(217,138,138,0.14); }
.char-note {
  margin-top: -0.2rem;
  color: var(--ink-faint);
  font-size: 0.78rem;
  text-align: right;
}
.check-row { display: flex; align-items: center; gap: 0.7rem; cursor: pointer; margin: 1.3rem 0 0.2rem; user-select: none; }
.check-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-row .box {
  width: 22px; height: 22px; flex: 0 0 auto; border-radius: 7px;
  border: 1px solid var(--line); background: #fff; color: #fff;
  display: grid; place-items: center; transition: background .2s, border-color .2s, transform .2s;
}
.check-row .box svg { opacity: 0; transform: scale(0.6); transition: opacity .2s, transform .2s; }
.check-row:hover .box { border-color: var(--blue); }
.check-row input:checked + .box { background: var(--blue-deep); border-color: var(--blue-deep); }
.check-row input:checked + .box svg { opacity: 1; transform: scale(1); }
.check-row input:focus-visible + .box { box-shadow: 0 0 0 4px rgba(143,169,224,0.22); }
.check-row .check-label { font-size: 0.96rem; color: var(--ink); font-weight: 500; }
.signup-card .btn { width: 100%; justify-content: center; margin-top: 1.4rem; }
.consent { font-size: 0.8rem; color: var(--ink-faint); margin-top: 1rem; line-height: 1.5; }
.signup-success { display: none; text-align: center; padding: 1.5rem 0; }
.signup-success.show { display: block; animation: fadeUp .6s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px);} to { opacity:1; transform:none; } }
.signup-success .ring { width: 64px; height: 64px; border-radius: 50%; background: rgba(182,220,193,0.4); display: grid; place-items: center; margin: 0 auto 1.2rem; }
.signup-success h3 { font-size: 1.5rem; }
.signup-success p { color: var(--ink-soft); margin-top: 0.5rem; }

/* ============================================================
   ADMIN JOIN VIEW
   ============================================================ */
.admin-band { padding-top: 1rem; }
.admin-shell {
  display: grid;
  gap: 1.35rem;
}
.admin-toolbar {
  display: grid;
  gap: 1rem;
}
.admin-token-card,
.admin-table-card,
.admin-stat {
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: 0 32px 70px -56px rgba(43,49,73,0.56);
}
.admin-token-card {
  padding: clamp(1.25rem, 2.4vw, 1.8rem);
}
.admin-token-card label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.admin-token-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.admin-token-row input {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  padding: 0.9rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(143,169,224,0.05);
}
.admin-token-row input:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(143,169,224,0.16);
}
.admin-note,
.admin-error {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.55;
}
.admin-note { color: var(--ink-soft); }
.admin-error { color: #b55c5c; }
.admin-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.admin-stat {
  padding: 1.2rem 1.25rem;
  display: grid;
  gap: 0.4rem;
}
.admin-stat span {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.admin-stat strong {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--blue-deep);
}
.admin-stat-wide { grid-column: span 1; }
.admin-role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.1rem;
}
.admin-role-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(143,169,224,0.12);
  border: 1px solid rgba(93,126,201,0.14);
  font-size: 0.9rem;
  color: var(--ink);
}
.admin-table-card {
  overflow: hidden;
}
.admin-table-wrap {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(93,126,201,0.10);
  vertical-align: top;
  font-size: 0.93rem;
}
.admin-table th {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(143,169,224,0.06);
}
.admin-table td {
  color: var(--ink);
  background: rgba(255,255,255,0.7);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table a {
  color: var(--blue-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

/* ============================================================
   SHARED 7-STAGE COLOUR SYSTEM  (Journey + FAQ)
   Created with Helen Pedersen — stage colours preserved.
   Each stage element sets --sc (accent) and --sc-bg (tint)
   via its .stage-N class.
   ============================================================ */
.stage-1 { --sc: #9b7ef0; --sc-deep: #7a5cd6; --sc-bg: #f0ebfc; } /* Early Signs — purple */
.stage-2 { --sc: #f4736e; --sc-deep: #e0534d; --sc-bg: #fdeceb; } /* Crisis & Burnout — coral */
.stage-3 { --sc: #f3c01c; --sc-deep: #cf9806; --sc-bg: #fdf4d2; } /* Crisis Recovery — gold */
.stage-4 { --sc: #5b9bf2; --sc-deep: #3f7ad6; --sc-bg: #e7f0fd; } /* PDA Child & Family — blue */
.stage-5 { --sc: #2fbf8f; --sc-deep: #1d9b71; --sc-bg: #e1f5ee; } /* Neuro-affirming — emerald */
.stage-6 { --sc: #74c8f0; --sc-deep: #4ba6d6; --sc-bg: #e6f4fc; } /* Collaboration — sky */
.stage-7 { --sc: #b9a4f0; --sc-deep: #9579dd; --sc-bg: #f1ecfc; } /* Advocacy — lavender */

/* ============================================================
   JOURNEY — stage selector + detail panel
   ============================================================ */
.journey-intro { max-width: 46rem; color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 2.4rem; }
.journey-intro .thanks { font-style: italic; }

.jstages {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.7rem;
  margin-bottom: 2.4rem;
}
.jstage {
  position: relative; text-align: left; cursor: pointer;
  border: 1px solid var(--line-soft); border-radius: var(--r-md);
  background: var(--sc-bg); padding: 1rem 0.95rem 1.05rem;
  display: grid; gap: 0.5rem; align-content: start; min-height: 118px;
  font-family: var(--sans);
  transition: transform .4s cubic-bezier(.2,.8,.25,1), box-shadow .4s, border-color .4s;
  overflow: hidden;
}
.jstage::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--sc); }
.jstage:hover { transform: translateY(-4px); box-shadow: 0 20px 38px -26px rgba(43,49,73,0.5); }
.jstage .jnum {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sc); color: #fff; font-family: var(--serif); font-size: 0.82rem; font-weight: 500;
}
.jstage .jname { font-size: 0.92rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.jstage[aria-selected="true"] {
  border-color: var(--sc); box-shadow: 0 0 0 2px var(--sc), 0 22px 40px -26px rgba(43,49,73,0.5);
  transform: translateY(-4px);
}

.jpanel {
  position: relative;
  border: 1px solid var(--line-soft); border-left: 5px solid var(--sc);
  border-radius: var(--r-lg);
  background: #fff; padding: clamp(1.8rem, 3.5vw, 3rem);
  box-shadow: 0 34px 70px -50px rgba(43,49,73,0.5);
}
.jpanel-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.8rem; }
.jpanel-head .badge {
  width: 40px; height: 40px; border-radius: 12px; background: var(--sc); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.1rem; flex: 0 0 auto;
}
.jpanel-head h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); color: var(--ink); flex: 1 1 auto; min-width: 0; }
.jblock { margin-top: 1.6rem; }
.jblock:first-of-type { margin-top: 0; }
.jblock h3 {
  font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.13em; text-transform: uppercase;
  font-weight: 700; color: var(--sc-deep); margin: 0 0 0.55rem;
  display: flex; align-items: center; gap: 0.5em;
}
.jblock h3 .ji { width: 22px; height: 22px; border-radius: 7px; background: var(--sc-bg); display: grid; place-items: center; flex: 0 0 auto; }
.jblock p { color: var(--ink-soft); font-size: 1.04rem; line-height: 1.62; }
.jblock ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.jblock ul li { position: relative; padding-left: 1.4rem; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.5; }
.jblock ul li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--sc); }
.jpanel.developing .dev-note {
  background: var(--sc-bg); border-radius: var(--r-md); padding: 1.4rem 1.6rem;
  color: var(--ink-soft); font-size: 1.05rem; display: flex; gap: 0.8rem; align-items: flex-start;
}
.jpanel.developing .dev-note .seed { flex: 0 0 auto; margin-top: 2px; }

/* ============================================================
   FAQ — modern help-centre (sticky stage rail + search + accordion)
   ============================================================ */
.faq-intro { max-width: 44rem; color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 2.2rem; }
.faq-intro a { color: var(--blue-deep); font-weight: 600; }

.faq2 { display: grid; grid-template-columns: 280px 1fr; gap: clamp(1.6rem, 3.5vw, 3rem); align-items: start; }

/* search */
.faq2-search { position: relative; margin-bottom: 1.1rem; }
.faq2-search input {
  width: 100%; font-family: var(--sans); font-size: 0.98rem; color: var(--ink);
  padding: 0.8rem 1rem 0.8rem 2.5rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.faq2-search input::placeholder { color: var(--ink-faint); }
.faq2-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(143,169,224,0.16); }
.faq2-search svg { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); color: var(--ink-faint); pointer-events: none; }

/* stage rail */
.faq2-nav { position: sticky; top: 5.5rem; display: grid; gap: 0.35rem; align-content: start; }
.faq2-tab {
  display: flex; align-items: center; gap: 0.7rem;
  width: 100%; text-align: left; cursor: pointer;
  font-family: var(--sans); font-size: 0.96rem; font-weight: 600; color: var(--ink-soft);
  padding: 0.72rem 0.9rem; border-radius: var(--r-sm);
  border: 1px solid transparent; background: none;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.faq2-tab .dot { width: 12px; height: 12px; border-radius: 4px; background: var(--sc); flex: 0 0 auto; transition: transform .25s; }
.faq2-tab .tname { flex: 1 1 auto; line-height: 1.25; }
.faq2-tab .count { font-size: 0.78rem; font-weight: 600; color: var(--ink-faint); background: var(--sc-bg); padding: 1px 8px; border-radius: 999px; flex: 0 0 auto; }
.faq2-tab .count:empty { display: none; }
.faq2-tab:hover { background: var(--sc-bg); color: var(--ink); }
.faq2-tab:hover .dot { transform: scale(1.15); }
.faq2-tab.active {
  background: var(--sc-bg); color: var(--ink); border-color: color-mix(in srgb, var(--sc) 45%, transparent);
  box-shadow: inset 3px 0 0 var(--sc);
}
.faq2-tab.active .count { color: var(--sc-deep); background: #fff; }

/* content panels */
.faq2-main { min-width: 0; }
.faq2-panel { animation: fadeUp .45s ease both; }
.faq2-panel[hidden] { display: none; }
.faq2-phead { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.4rem; }
.faq2-phead .pbadge { width: 34px; height: 34px; border-radius: 10px; background: var(--sc); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1rem; flex: 0 0 auto; }
.faq2-phead h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink); flex: 1 1 auto; min-width: 0; }
.faq2-pdesc { color: var(--ink-soft); font-size: 1.04rem; margin: 0 0 1.6rem; max-width: 44rem; }

.faq2-items { display: grid; gap: 0.7rem; }
.faq2-item {
  border: 1px solid var(--line-soft); border-radius: var(--r-md);
  background: rgba(255,255,255,0.66); overflow: hidden;
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.faq2-item:hover { background: #fff; box-shadow: 0 16px 34px -28px rgba(43,49,73,0.5); }
.faq2-item.open { background: #fff; border-color: color-mix(in srgb, var(--sc) 40%, var(--line-soft)); box-shadow: 0 22px 44px -30px rgba(43,49,73,0.5); }
.faq2-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 1.05rem; font-weight: 600; color: var(--ink);
  padding: 1.15rem 3.4rem 1.15rem 1.4rem; position: relative; display: block; line-height: 1.35;
}
.faq2-q .pm { position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--sc-bg); display: grid; place-items: center; transition: background .3s; }
.faq2-q .pm::before, .faq2-q .pm::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--sc-deep); border-radius: 2px; transition: transform .3s, opacity .3s; }
.faq2-q .pm::before { width: 11px; height: 2px; transform: translate(-50%,-50%); }
.faq2-q .pm::after { width: 2px; height: 11px; transform: translate(-50%,-50%); }
.faq2-item.open .faq2-q .pm { background: var(--sc); }
.faq2-item.open .faq2-q .pm::before, .faq2-item.open .faq2-q .pm::after { background: #fff; }
.faq2-item.open .faq2-q .pm::after { transform: translate(-50%,-50%) scaleY(0); opacity: 0; }
.faq2-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq2-a-inner { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); font-size: 1.01rem; line-height: 1.64; }
.faq2-a-inner > * + * { margin-top: 0.7rem; }
.faq2-a-inner a { color: var(--sc-deep); font-weight: 600; }
.faq2-dev { display: inline-flex; align-items: center; gap: 0.4em; margin-top: 0.9rem; font-size: 0.82rem; font-weight: 600; color: var(--sc-deep); background: var(--sc-bg); padding: 4px 12px; border-radius: 999px; }
.faq2-soon { display: flex; gap: 0.8rem; align-items: flex-start; background: var(--sc-bg); border: 1px solid color-mix(in srgb, var(--sc) 25%, transparent); border-radius: var(--r-md); padding: 1.5rem 1.7rem; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; }
.faq2-soon .seed { flex: 0 0 auto; margin-top: 2px; color: var(--sc-deep); }
.faq2-soon strong { color: var(--ink); }

/* search results */
.faq2-results { animation: fadeUp .4s ease both; }
.faq2-results .rcount { color: var(--ink-soft); font-size: 1rem; margin-bottom: 1.3rem; }
.faq2-results .faq2-item { position: relative; }
.faq2-rstage { display: inline-flex; align-items: center; gap: 0.45em; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sc-deep); padding: 0 1.4rem; margin-top: 0.9rem; }
.faq2-rstage .rdot { width: 9px; height: 9px; border-radius: 3px; background: var(--sc); }
.faq2-noresults { text-align: center; color: var(--ink-soft); padding: 2.5rem 1rem; font-size: 1.05rem; }
mark { background: color-mix(in srgb, var(--accent) 45%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ============================================================
   RESOURCES (books & links)
   ============================================================ */
.books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.res-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.book { display: grid; grid-template-columns: 88px 1fr; gap: 1.3rem; background: rgba(255,255,255,0.62); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 1.4rem; transition: transform .4s, box-shadow .4s, background .4s; align-items: start; }
.book:hover { transform: translateY(-4px); background: #fff; box-shadow: 0 24px 46px -30px rgba(43,49,73,0.5); }
.book-cover { width: 88px; height: 124px; border-radius: 6px; overflow: hidden; background: #fff; align-self: start; box-shadow: 0 10px 24px -10px rgba(43,49,73,0.4); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book h3 { font-size: 1.1rem; line-height: 1.2; }
.book .author { color: var(--ink-soft); font-size: 0.88rem; margin: 0.2rem 0 0.6rem; }
.book p { font-size: 0.92rem; color: var(--ink-soft); }
.link-list { display: grid; gap: 0.8rem; }
.link-row { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; background: rgba(255,255,255,0.6); border: 1px solid var(--line-soft); border-radius: var(--r-md); transition: all .3s; }
.link-row:hover { background: #fff; border-color: var(--blue); transform: translateX(4px); }
.link-row .dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.link-row b { font-weight: 600; color: var(--ink); display: block; }
.link-row span { color: var(--ink-soft); font-size: 0.9rem; }
.link-row .go { margin-left: auto; color: var(--blue-deep); flex: 0 0 auto; }

/* link cards (people / orgs) */
.linkcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.3rem; }
.linkcard {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  background: rgba(255,255,255,0.66); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: 1.5rem; transition: transform .4s, box-shadow .4s, background .4s, border-color .4s;
}
.linkcard:hover { transform: translateY(-4px); background: #fff; border-color: color-mix(in srgb, var(--lc, var(--blue)) 50%, var(--line-soft)); box-shadow: 0 24px 46px -30px rgba(43,49,73,0.5); }
.lavatar {
  width: 56px; height: 56px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.15rem; font-weight: 500;
  color: #fff; letter-spacing: 0.01em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
  overflow: hidden;
}
.lavatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.lc-body { display: grid; gap: 0.55rem; min-width: 0; }
.lc-blurb { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.5; }
.lc-name { font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.lc-name .role { display: block; font-weight: 500; color: var(--ink-faint); font-size: 0.85rem; margin-top: 1px; }
.lc-visit { color: var(--lc, var(--blue-deep)); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.35em; }
.lc-visit svg { transition: transform .3s; }
.linkcard:hover .lc-visit svg { transform: translate(2px, -2px); }
.linkcard-static .lc-visit { color: var(--ink-faint); }

/* ============================================================
   COMMUNITY BAND (home)
   ============================================================ */
.community { background: radial-gradient(900px 540px at 85% 10%, rgba(240,196,123,0.12), transparent 60%); }
.community-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid var(--line-soft);
  background: linear-gradient(155deg, rgba(143,169,224,0.16), rgba(194,177,230,0.12) 55%, rgba(240,196,123,0.12));
  padding: clamp(2.4rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem,4vw,3.5rem); align-items: center;
}
.community-card .stat-big { font-family: var(--serif); font-size: clamp(3rem,7vw,4.6rem); color: var(--blue-deep); line-height: 0.95; }
.community-mini { background: rgba(255,255,255,0.8); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 1.6rem; display: grid; gap: 0.9rem; backdrop-filter: blur(6px); }
.community-mini .field { margin-bottom: 0; }
.community-mini .btn { width: 100%; justify-content: center; }
.wa-note {
  margin-top: 1rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}
.mini-scope-note {
  margin: -0.15rem 0 0.1rem;
  padding: 0.8rem 0.9rem;
  border-radius: var(--r-sm);
  background: rgba(143,169,224,0.12);
  border: 1px solid rgba(93,126,201,0.14);
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* ============================================================
   RESPONSIVE additions
   ============================================================ */
@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .nav-actions { display: none; }
  .content-split { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .join-layout { grid-template-columns: 1fr; }
  .partner-layout { gap: 1.8rem; }
  .signup-card { position: static; }
  .res-grid { grid-template-columns: 1fr; }
  .community-card { grid-template-columns: 1fr; }
  .trait-grid { grid-template-columns: 1fr; }
  .jstages {
    grid-template-columns: none;
    grid-auto-flow: column; grid-auto-columns: 76%;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * max(4vw, 1rem)); padding-inline: max(4vw, 1rem);
    padding-bottom: 0.6rem; -webkit-overflow-scrolling: touch;
  }
  .jstage { scroll-snap-align: start; min-height: 104px; }

  .faq2 { grid-template-columns: 1fr; }
  .faq2-nav {
    position: static; grid-auto-flow: column; grid-auto-columns: max-content;
    overflow-x: auto; gap: 0.5rem; padding-bottom: 0.5rem;
    margin-inline: calc(-1 * max(4vw, 1rem)); padding-inline: max(4vw, 1rem);
    -webkit-overflow-scrolling: touch;
  }
  .faq2-tab { border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
  .faq2-tab.active { box-shadow: none; }
  .faq2-tab .count { display: none; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .book { grid-template-columns: 72px 1fr; }
  .book-cover { width: 72px; height: 102px; }
  .faq-cat-head .cat-name { white-space: normal; font-size: 0.84rem; letter-spacing: 0.04em; }
}
