/* ============================================================
   Celva Bio — Hub pages (shared skeleton)
   Per-hub personality is applied via body class:
     .hub--joint   structural / anatomical / hard edges
     .hub--iv      systemic / flowing / warm
     .hub--neuro   careful / quiet / evaluation-first
   Layers on top of site.css.
   ============================================================ */

/* --- Shared hub tokens (default) --- */
.hub {
  --hub-accent: var(--accent-blue);
  --hub-accent-hover: var(--accent-blue-hover);
  --hub-accent-soft: var(--accent-wash);
  --hub-accent-ice: var(--accent-ice);
  --hub-hero-bg: var(--surface-tint);
  --hub-motif-opacity: 0.9;
}

/* Route primary buttons + accent links through --hub-accent so each
   hub picks up its own personality color. */
.hub .btn--primary { background: var(--hub-accent); border-color: var(--hub-accent); color: #fff; }
.hub .btn--primary:hover { background: var(--hub-accent-hover); border-color: var(--hub-accent-hover); color: #fff; }
.hub .btn--ghost:hover { border-color: var(--hub-accent); color: var(--hub-accent); }
.hub .cta-link:hover { color: var(--hub-accent); border-bottom-color: var(--hub-accent); }
.hub .cta-link--accent { color: var(--hub-accent); border-bottom-color: var(--hub-accent); }
.hub .cta-link { white-space: nowrap; }

/* Section-end CTA — used on hub pages to link a section to its corresponding sub-page */
.hub-section__cta {
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}
.hub-section__cta .cta-link {
  font-size: 13px;
}
@media (max-width: 720px) {
  .hub-section__cta { justify-content: flex-start; }
  .hub-section__cta .cta-link { white-space: normal; }
}

/* Dark-section variant — inverted colors for navy backgrounds */
.hub-section--dark .hub-section__cta {
  border-top-color: rgba(255, 255, 255, 0.18);
}
.hub-section--dark .hub-section__cta .cta-link,
.hub-section--dark .hub-section__cta .cta-link--accent {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}
.hub-section--dark .hub-section__cta .cta-link:hover,
.hub-section--dark .hub-section__cta .cta-link--accent:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* ============ MONO UTILITY (reused from v4) ============ */
.hub .mono { font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; color: var(--ink-muted); }
.hub .mono--accent { color: var(--hub-accent); }
.hub .mono--on-dark { color: var(--hub-accent-ice); }
.hub .mono b { color: var(--ink); font-weight: 500; }

/* ============ NAV: mobile sheet rules moved to site.css ============ */


/* ============ SUB-BREADCRUMB ============ */
.hub-crumb {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px clamp(20px, 4vw, 56px);
  display: flex; gap: 14px; align-items: center;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
}
.hub-crumb::-webkit-scrollbar { display: none; }
.hub-crumb > * { flex: none; }
.hub-crumb a { color: var(--ink-muted); border: 0; }
.hub-crumb a:hover { color: var(--hub-accent); }
.hub-crumb__sep { color: var(--border-strong); }
.hub-crumb__current { color: var(--hub-accent); }

/* ============ HERO ============ */
.hub-hero {
  position: relative;
  background: var(--hub-hero-bg);
  padding: 0 0 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hub-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  padding: clamp(56px, 7vw, 96px) clamp(24px, 4vw, 64px);
  max-width: 1400px; margin: 0 auto;
  align-items: start;
  position: relative; z-index: 1;
}
.hub-hero__tag { margin-bottom: 28px; }
.hub-hero__h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 5.8vw, 5.8rem);
  line-height: 1.0;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0 0 32px;
  text-wrap: balance;
}
.hub-hero__h1 em { font-style: italic; color: var(--hub-accent); font-weight: 400; }
.hub-hero__sub {
  font-size: 18px; line-height: 1.6; color: var(--ink-soft);
  max-width: 52ch; margin: 0 0 36px;
}
.hub-hero__ctas { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-bottom: 52px; }

.hub-hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; padding-top: 28px; border-top: 1px solid var(--border);
}
.hub-hero__stats > div { padding: 0 18px; border-right: 1px solid var(--border); }
.hub-hero__stats > div:first-child { padding-left: 0; }
.hub-hero__stats > div:last-child { border-right: 0; padding-right: 0; }
.hub-hero__stats .mono { display: block; margin-bottom: 8px; font-size: 10px; letter-spacing: 0.1em; }
.hub-hero__stat-n { font-family: var(--font-display); font-weight: 300; font-size: 32px; line-height: 1; color: var(--ink); }
.hub-hero__stat-n sup { font-size: 12px; font-family: 'JetBrains Mono', monospace; color: var(--ink-muted); letter-spacing: 0.04em; margin-left: 2px; vertical-align: top; position: relative; top: 4px; }
.hub-hero__stat-l { font-size: 12.5px; line-height: 1.45; color: var(--ink-muted); margin-top: 6px; max-width: 20ch; }

.hub-hero__visual {
  position: relative; aspect-ratio: 4 / 5;
  overflow: hidden; background: #e8e5dc;
}
.hub-hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hub-hero__visual-cap {
  position: absolute; top: 20px; left: 20px;
  background: rgba(255,255,255,0.94); padding: 10px 14px; border-radius: 2px;
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  backdrop-filter: blur(6px);
}
.hub-hero__visual-cap small { display: block; font-weight: 400; color: var(--ink-muted); margin-top: 2px; text-transform: none; letter-spacing: 0.04em; }

/* ============ SECTION PRIMITIVES ============ */
.hub-section { padding: clamp(80px, 10vw, 130px) 0; position: relative; }
.hub-section--tint { background: var(--surface-tint); }
.hub-section--dark { background: var(--navy-brand); color: #fff; }
.hub-section--dark h2, .hub-section--dark h3 { color: #fff; }
.hub-section--dark p { color: rgba(255,255,255,0.72); }
.hub-section--dark .mono { color: rgba(255,255,255,0.62); }
.hub-section--dark .mono--accent, .hub-section--dark .mono--on-dark { color: var(--hub-accent-ice); }

.hub-head { max-width: 760px; margin: 0 0 56px; }
.hub-head .mono { display: inline-block; margin-bottom: 20px; color: var(--hub-accent); }
.hub-head h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.04; letter-spacing: -0.018em; color: var(--ink); margin: 0 0 20px; }
.hub-head h2 em { font-style: italic; color: var(--hub-accent); font-weight: 400; }
.hub-section--dark .hub-head h2 { color: #fff; }
.hub-section--dark .hub-head h2 em { color: var(--hub-accent-ice); }
.hub-head p.lede { font-size: 18px; line-height: 1.65; color: var(--ink-soft); max-width: 60ch; }
.hub-section--dark .hub-head p.lede { color: rgba(255,255,255,0.76); }

/* ============ CONDITIONS GRID (what it treats) ============ */
.hub-conditions {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  background: var(--border);
  gap: 1px;
}
.hub-condition {
  background: #fff;
  padding: 36px 28px 32px;
  display: flex; flex-direction: column;
  transition: background 280ms, transform 320ms var(--ease-out-expo);
  position: relative;
}
.hub-condition:hover { background: var(--hub-accent-soft); }
.hub-condition__region {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--hub-accent); margin-bottom: 20px;
}
.hub-condition__icon {
  width: 100%; aspect-ratio: 1;
  margin-bottom: 22px; display: flex; align-items: center; justify-content: center;
  background: var(--surface-tint); border: 1px solid var(--border);
}
.hub-condition__icon svg { width: 64%; height: 64%; transition: transform 320ms var(--ease-out-expo); }
.hub-condition__icon--link {
  text-decoration: none; color: inherit; cursor: pointer;
  transition: background 220ms, border-color 220ms;
}
.hub-condition__icon--link:hover { background: #fff; border-color: var(--hub-accent); }
.hub-condition__icon--link:hover svg { transform: scale(1.06); }
.hub-condition__icon--link:focus-visible {
  outline: 2px solid var(--hub-accent); outline-offset: 2px;
}
.hub-condition__cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--hub-accent); text-decoration: none;
  transition: gap 220ms;
}
.hub-condition__cta span { transition: transform 220ms; display: inline-block; }
.hub-condition__cta:hover { gap: 12px; }
.hub-condition__cta:hover span { transform: translateX(3px); }
.hub-condition h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 22px; line-height: 1.2; color: var(--ink);
  margin: 0 0 10px;
}
.hub-condition h3 em { font-style: italic; color: var(--hub-accent); }
.hub-condition__p {
  font-size: 14px; line-height: 1.6; color: var(--ink-muted); margin: 0 0 18px; flex: 1;
}
.hub-condition__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; line-height: 1.4; color: var(--ink-soft);
  padding-top: 16px; border-top: 1px solid var(--border);
}
.hub-condition__list li { position: relative; padding-left: 14px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.05em; color: var(--ink-soft); }
.hub-condition__list li::before { content: '—'; position: absolute; left: 0; color: var(--hub-accent); }

/* ============ FIT / NOT FIT (candidacy) ============ */
.hub-fit {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  background: var(--border); gap: 1px;
}
.hub-fit__col { background: #fff; padding: 48px clamp(24px, 3vw, 48px); }
.hub-fit__col--yes { background: #fff; border-top: 3px solid var(--hub-accent); }
.hub-fit__col--no  { background: var(--surface-tint); border-top: 3px solid var(--ink-muted); }
.hub-fit__label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 20px;
}
.hub-fit__col--yes .hub-fit__label { color: var(--hub-accent); }
.hub-fit__col--no .hub-fit__label { color: var(--ink-muted); }
.hub-fit h3 {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.15; color: var(--ink); margin: 0 0 24px;
}
.hub-fit ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.hub-fit li { font-size: 15px; line-height: 1.55; color: var(--ink-soft); padding-left: 28px; position: relative; }
.hub-fit__col--yes li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 16px; height: 10px; border-left: 2px solid var(--hub-accent); border-bottom: 2px solid var(--hub-accent);
  transform: rotate(-45deg); border-radius: 1px;
}
.hub-fit__col--no li::before {
  content: ''; position: absolute; left: 3px; top: 10px;
  width: 12px; height: 1px; background: var(--ink-muted);
}

/* ============ PROTOCOL DETAIL ============ */
.hub-protocol {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 88px); align-items: start;
}
.hub-protocol__side dl { display: flex; flex-direction: column; gap: 18px; margin: 0; padding-top: 24px; border-top: 1px solid var(--border); }
.hub-protocol__side dt { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 4px; }
.hub-protocol__side dd { margin: 0; font-size: 15.5px; color: var(--ink); line-height: 1.45; }
.hub-protocol__side dd em { font-style: italic; color: var(--hub-accent); font-family: var(--font-display); }
.hub-protocol__rail { position: relative; padding-left: 0; }
.hub-protocol__step {
  display: block;
  padding: 28px 0; border-top: 1px solid var(--border);
}
.hub-protocol__step:last-child { border-bottom: 1px solid var(--border); }
.hub-protocol__step-n {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em;
  color: var(--hub-accent); text-transform: uppercase; display: block; margin-bottom: 10px;
}
.hub-protocol__step h4 { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.2; color: var(--ink); margin: 0 0 10px; }
.hub-protocol__step p { font-size: 14.5px; line-height: 1.65; color: var(--ink-muted); margin: 0 0 10px; }
.hub-protocol__step-meta { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink-muted); }

/* ============ OUTCOMES ============ */
.hub-outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid var(--border); background: var(--border); }
.hub-outcome { background: #fff; padding: 40px clamp(24px, 3vw, 44px); display: flex; flex-direction: column; }
.hub-outcome__n {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(4rem, 7vw, 6rem); line-height: 0.95;
  color: var(--ink); letter-spacing: -0.03em;
  display: flex; align-items: baseline; gap: 8px;
}
.hub-outcome__n em { font-style: italic; color: var(--hub-accent); font-size: 0.4em; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; font-weight: 400; }
.hub-outcome__n sup { font-size: 0.3em; color: var(--ink-muted); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; margin-left: 4px; position: relative; top: -1.5em; font-weight: 400; }
.hub-outcome__n small { font-size: 0.28em; color: var(--ink-muted); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.08em; font-weight: 400; margin-left: 6px; }
.hub-outcome__label { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); margin-top: 14px; max-width: 32ch; }
.hub-outcome__caveat { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink-muted); margin-top: auto; padding-top: 24px; }

/* ============ CASE CARD ============ */
.hub-cases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hub-case { background: #fff; border: 1px solid var(--border); display: grid; grid-template-columns: 1.05fr 1.2fr; overflow: hidden; }
.hub-case__img { position: relative; aspect-ratio: auto; min-height: 320px; overflow: hidden; background: #e8e5dc; }
.hub-case__img img { width: 100%; height: 100%; object-fit: cover; }
.hub-case__img-tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(11,29,58,0.85); color: #fff;
  padding: 6px 10px; border-radius: 2px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
}
.hub-case__body { padding: 32px clamp(22px, 2.5vw, 36px); display: flex; flex-direction: column; }
.hub-case__id { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.1em; color: var(--hub-accent); margin-bottom: 14px; }
.hub-case__h { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.2; color: var(--ink); margin: 0 0 14px; }
.hub-case__body p { font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 18px; }
.hub-case__timeline { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; font-size: 11.5px; }
.hub-case__timeline div { display: flex; flex-direction: column; gap: 3px; }
.hub-case__timeline dt { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin: 0; }
.hub-case__timeline dd { margin: 0; font-size: 13px; color: var(--ink); font-family: var(--font-display); }

/* ============ PRICING ROW ============ */
.hub-pricing {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(48px, 6vw, 72px); background: var(--surface-tint);
  border: 1px solid var(--border);
}
.hub-pricing__n {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(3.5rem, 6vw, 5rem); line-height: 0.95;
  color: var(--ink); display: flex; align-items: baseline; gap: 6px;
}
.hub-pricing__n em { font-style: italic; color: var(--hub-accent); font-size: 0.4em; font-family: 'JetBrains Mono', monospace; font-weight: 400; letter-spacing: 0.04em; }
.hub-pricing__n small { font-size: 0.28em; color: var(--ink-muted); font-family: 'JetBrains Mono', monospace; font-weight: 400; letter-spacing: 0.08em; }
.hub-pricing__label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 14px; }
.hub-pricing__text p { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 14px; max-width: 52ch; }

/* ============ HUB FAQ ============ */
.hub-faq__list { max-width: 900px; margin: 0 auto; }
.hub-faq__list details { border-top: 1px solid var(--border); padding: 0; }
.hub-faq__list details:last-of-type { border-bottom: 1px solid var(--border); }
.hub-faq__list summary {
  list-style: none; cursor: pointer; padding: 24px 0;
  display: grid; grid-template-columns: 64px 1fr 32px; gap: 20px; align-items: center;
  font-family: var(--font-display); font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 400; color: var(--ink);
}
.hub-faq__list summary::-webkit-details-marker { display: none; }
.hub-faq__n { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--hub-accent); }
.hub-faq__ic { text-align: center; font-size: 22px; color: var(--hub-accent); width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: 50%; font-weight: 300; }
.hub-faq__list details[open] .hub-faq__ic { content: '−'; border-color: var(--hub-accent); background: var(--hub-accent); color: #fff; }
.hub-faq__list details[open] .hub-faq__ic::before { content: '−'; }
.hub-faq__list details:not([open]) .hub-faq__ic::before { content: '+'; }
.hub-faq__list .hub-faq__ic { font-size: 0; }
.hub-faq__list .hub-faq__ic::before { font-size: 20px; line-height: 1; display: block; transform: translateY(-2px); }
.hub-faq__a { padding: 0 0 26px 84px; font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); max-width: 68ch; }

/* ============ CTA BAND (reuses ctaband) — hub tint by accent ============ */
.hub .ctaband { background: var(--navy-brand); }
.hub .ctaband__cue { display: inline-flex; align-items: center; gap: 10px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hub-accent-ice); margin-bottom: 18px; }
.hub .ctaband__cue::before { content: ''; width: 20px; height: 1px; background: var(--hub-accent-ice); }

/* =====================================================================
   PERSONALITY: JOINT — structural, anatomical, precise
   ===================================================================== */
.hub--joint {
  --hub-accent: #2D6EB1;
  --hub-accent-hover: #1A4B7A;
  --hub-accent-soft: #EAF1F8;
  --hub-accent-ice: #7CA9D1;
  --hub-hero-bg: #F3F2EE;            /* cooler cream */
}
.hub--joint .hub-hero__visual::after {
  /* anatomical crosshair corners */
  content: '';
  position: absolute; inset: 16px;
  background:
    linear-gradient(to right, rgba(255,255,255,0.7) 0, rgba(255,255,255,0.7) 22px, transparent 22px, transparent calc(100% - 22px), rgba(255,255,255,0.7) calc(100% - 22px), rgba(255,255,255,0.7) 100%) top / 100% 1px no-repeat,
    linear-gradient(to right, rgba(255,255,255,0.7) 0, rgba(255,255,255,0.7) 22px, transparent 22px, transparent calc(100% - 22px), rgba(255,255,255,0.7) calc(100% - 22px), rgba(255,255,255,0.7) 100%) bottom / 100% 1px no-repeat,
    linear-gradient(to bottom, rgba(255,255,255,0.7) 0, rgba(255,255,255,0.7) 22px, transparent 22px, transparent calc(100% - 22px), rgba(255,255,255,0.7) calc(100% - 22px), rgba(255,255,255,0.7) 100%) left / 1px 100% no-repeat,
    linear-gradient(to bottom, rgba(255,255,255,0.7) 0, rgba(255,255,255,0.7) 22px, transparent 22px, transparent calc(100% - 22px), rgba(255,255,255,0.7) calc(100% - 22px), rgba(255,255,255,0.7) 100%) right / 1px 100% no-repeat;
  pointer-events: none;
}
.hub--joint .hub-hero__visual .hub-hero__ruler {
  /* vertical ruler marks */
  position: absolute; right: 16px; top: 16px; bottom: 16px;
  width: 1px;
  background: rgba(255,255,255,0.35);
  background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,0.7) 0, rgba(255,255,255,0.7) 1px, transparent 1px, transparent 24px);
  width: 24px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.hub--joint .hub-hero__visual .hub-hero__ruler::before,
.hub--joint .hub-hero__visual .hub-hero__ruler::after { display: none; }

/* Joint-specific: anatomical ruler overlay */
.hub--joint .hub-hero__visual-ruler {
  position: absolute; right: 14px; top: 14px; bottom: 14px; width: 20px;
  background: linear-gradient(to bottom, transparent 0 calc(100% - 1px), rgba(255,255,255,0.5) calc(100% - 1px));
  display: flex; flex-direction: column; justify-content: space-between;
  pointer-events: none;
}
.hub--joint .hub-hero__visual-ruler span {
  display: block; height: 1px; width: 10px; background: rgba(255,255,255,0.6); margin-left: auto;
}
.hub--joint .hub-hero__visual-ruler span:nth-child(5n+1) { width: 18px; background: rgba(255,255,255,0.9); }

/* =====================================================================
   PERSONALITY: IV — systemic, flowing, warm
   ===================================================================== */
.hub--iv {
  --hub-accent: #B8862A;              /* warm amber */
  --hub-accent-hover: #8F671E;
  --hub-accent-soft: #F5EEDF;         /* cream wash */
  --hub-accent-ice: #E0C48B;
  --hub-hero-bg: #FAF5EA;             /* deeper warm cream */
}
/* Italic amber descenders (e.g. "repair.") were clipping the sub paragraph.
   Give the IV h1 extra line-height so the em can breathe. */
.hub--iv .hub-hero__h1 { line-height: 1.2; margin-bottom: 56px; }
.hub--iv .hub-hero__h1 em { font-weight: 300; letter-spacing: 0; }
.hub--iv .hub-condition__icon { background: #FDF7E9; border-color: rgba(184,134,42,0.18); }
.hub--iv .hub-condition:hover { background: #FDF7E9; }
.hub--iv .hub-fit__col--yes { border-top-color: var(--hub-accent); }
.hub--iv .hub-faq__ic { border-color: rgba(184,134,42,0.38); }

/* ===== IV hero: flowing droplet svg overlay ===== */
.hub--iv .hub-hero__flow {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; mix-blend-mode: screen; opacity: 0.7;
}

/* ===== IV Personas (3-up, warmer) ===== */
.hub-personas {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border); background: var(--border); gap: 1px;
}
.hub-persona {
  background: #fff; padding: 44px clamp(24px, 2.4vw, 36px) 40px;
  display: flex; flex-direction: column; position: relative;
  transition: background 280ms;
}
.hub-persona:hover { background: var(--hub-accent-soft); }
.hub-persona__n {
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: 56px; line-height: 0.9; color: var(--hub-accent);
  margin-bottom: 28px; letter-spacing: -0.01em;
}
.hub-persona__head .mono { display: block; margin-bottom: 10px; }
.hub-persona__head h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 24px; line-height: 1.2; color: var(--ink); margin: 0 0 18px;
}
.hub-persona p { font-size: 14.5px; line-height: 1.6; color: var(--ink-muted); margin: 0 0 22px; flex: 1; }
.hub-persona__chips { list-style: none; padding: 18px 0 0; margin: 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.hub-persona__chips li {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.05em;
  color: var(--ink-soft); padding-left: 16px; position: relative; line-height: 1.4;
}
.hub-persona__chips li::before { content: '→'; position: absolute; left: 0; color: var(--hub-accent); }

/* ===== IV Flow diagram (5-step horizontal) ===== */
.hub-flow {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; position: relative; padding-top: 24px;
}
.hub-flow__rail {
  position: absolute; top: 52px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(to right, var(--hub-accent), var(--hub-accent) 40%, rgba(184,134,42,0.25) 70%, rgba(184,134,42,0.1));
  z-index: 0;
}
.hub-flow__step { padding: 0 16px; position: relative; z-index: 1; text-align: center; }
.hub-flow__dot {
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 1px solid var(--hub-accent); color: var(--hub-accent);
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.04em;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}
.hub-flow__step h4 { font-family: var(--font-display); font-weight: 400; font-size: 18px; color: var(--ink); margin: 0 0 10px; line-height: 1.25; }
.hub-flow__step p { font-size: 13.5px; line-height: 1.55; color: var(--ink-muted); margin: 0; }

/* ===== IV Timeline (5 points on a curve) ===== */
.hub-timeline {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; position: relative; padding-top: 16px;
}
.hub-timeline__track {
  position: absolute; top: 56px; left: 10%; right: 10%; height: 1px;
  background: repeating-linear-gradient(to right, var(--hub-accent) 0, var(--hub-accent) 4px, transparent 4px, transparent 10px);
  opacity: 0.5;
}
.hub-timeline__pt { padding: 0 14px; position: relative; text-align: center; }
.hub-timeline__pt-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--hub-accent); margin: 34px auto 24px;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(184,134,42,0.3);
}
.hub-timeline__pt-when {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--hub-accent); margin-bottom: 8px;
}
.hub-timeline__pt h5 { font-family: var(--font-display); font-weight: 400; font-size: 17px; color: var(--ink); margin: 0 0 8px; line-height: 1.25; }
.hub-timeline__pt p { font-size: 13px; line-height: 1.55; color: var(--ink-muted); margin: 0; }

/* ===== IV warm outcomes band ===== */
.hub-section--warm { background: #FAF5EA; }
.hub-outcomes--warm { border-color: rgba(184,134,42,0.18); background: rgba(184,134,42,0.18); }
.hub-outcomes--warm .hub-outcome { background: #fff; }
.hub-outcomes__note {
  margin-top: 32px; font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.08em; color: var(--ink-muted); max-width: 72ch; line-height: 1.55;
}
.hub-outcomes__note .mono { display: inline-block; margin-right: 10px; }

/* ===== IV pricing stack (3 rows) ===== */
.hub-pricing-stack {
  border: 1px solid var(--border); background: #fff;
}
.hub-pricing-row {
  display: grid; grid-template-columns: 1.3fr 0.9fr;
  gap: 32px; padding: 32px clamp(24px, 3vw, 44px);
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.hub-pricing-row:last-child { border-bottom: 0; }
.hub-pricing-row__label .mono { display: block; margin-bottom: 8px; }
.hub-pricing-row__label h4 { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--ink); margin: 0 0 8px; line-height: 1.2; }
.hub-pricing-row__label p { font-size: 14.5px; line-height: 1.55; color: var(--ink-muted); margin: 0; max-width: 52ch; }
.hub-pricing-row__price { text-align: right; }
.hub-pricing-row__price .hub-pricing__n { justify-content: flex-end; font-size: clamp(2.8rem, 4vw, 3.6rem); }

/* ===== IV responsive ===== */
@media (max-width: 900px) {
  .hub-personas { grid-template-columns: 1fr; }
  .hub-flow { grid-template-columns: 1fr; gap: 28px; padding-top: 8px; }
  .hub-flow__rail { display: none; }
  .hub-flow__dot { margin-bottom: 14px; }
  .hub-timeline { grid-template-columns: 1fr; gap: 22px; }
  .hub-timeline__track { display: none; }
  .hub-timeline__pt { text-align: left; }
  .hub-timeline__pt-dot { margin: 0 0 12px; }
  .hub-pricing-row { grid-template-columns: 1fr; gap: 16px; }
  .hub-pricing-row__price { text-align: left; }
  .hub-pricing-row__price .hub-pricing__n { justify-content: flex-start; }
}

/* =====================================================================
   PERSONALITY: NEURO — careful, quiet, evaluation-first
   ===================================================================== */
.hub--neuro {
  --hub-accent: #4A6D7A;              /* muted teal */
  --hub-accent-hover: #2F4B56;
  --hub-accent-soft: #EEF3F4;
  --hub-accent-ice: #9FB9C0;
  --hub-hero-bg: #F4F5F4;             /* grayer cream */
}
.hub--neuro .hub-hero__h1 { font-size: clamp(2.5rem, 5vw, 5rem); }
.hub--neuro .hub-head h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hub-hero__inner { grid-template-columns: 1.05fr 1fr; gap: 44px; padding: 56px 32px; }
  .hub-conditions { grid-template-columns: repeat(2, 1fr); }
  .hub-cases { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hub-hero__inner { grid-template-columns: 1fr; gap: 36px; padding: 48px 24px; }
  .hub-hero__visual { aspect-ratio: 4 / 3; }
  .hub-hero__stats { grid-template-columns: 1fr 1fr; gap: 0; }
  .hub-hero__stats > div { padding: 16px 14px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .hub-hero__stats > div:nth-child(2n) { border-right: 0; }
  .hub-hero__stats > div:nth-child(3) { border-bottom: 0; }
  .hub-fit { grid-template-columns: 1fr; }
  .hub-protocol { grid-template-columns: 1fr; gap: 40px; }
  .hub-outcomes { grid-template-columns: 1fr; }
  .hub-case { grid-template-columns: 1fr; }
  .hub-case__img { min-height: 220px; }
  .hub-pricing { grid-template-columns: 1fr; padding: 36px 24px; }
  .hub-faq__list summary { grid-template-columns: 48px 1fr 28px; gap: 14px; font-size: 1.05rem; padding: 20px 0; }
  .hub-faq__a { padding-left: 62px; }
}
@media (max-width: 480px) {
  .hub-conditions { grid-template-columns: 1fr; }
  .hub-hero__h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  /* Breadcrumb: collapse to "… / current" on narrow screens */
  .hub-crumb { gap: 8px; font-size: 10px; padding: 12px 20px; }
  .hub-crumb > *:not(:nth-last-child(-n+2)) { display: none; }
  .hub-crumb::before {
    content: '…';
    color: var(--ink-muted);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
    margin-right: 4px;
  }
}
