/* =============================================================
   VARIANT B — ACCENT-TINTED SECTIONS
   Mostly cream, each section gets a subtle accent tint that
   matches its content's character.
   stats   → gold-cream    (stat numbers feel like data sun)
   sees    → teal-cream    (research / perception)
   self    → indigo-cream  (introspection)
   engage  → plum-cream    (commitment / authority)
   about   → kept lighter-plum (no change — it's the brand statement)
   dispatch → orange-cream  (field notes warmth)
   playbook → gold-cream-2 (publication weight)
   ============================================================= */

/* ---- NEUTRALIZED: section washes flattened to white/gray (no accent tint) ---- */
.stats-band       { background: #291a52; }
.sees             { background: #ffffff; }
.diagnostic       { background: #f0f0f0; }
.evidence.services { background: #ffffff; }
.dispatch         { background: #f0f0f0; }
.playbook         { background: #ffffff; }

/* ---- Update chevron seam container colors so they sit on the new tints ---- */
/* seam after stats (VIOLET) into sees (white) */
section.stats-band + .horizon { background: #291a52 !important; }
section.stats-band + .horizon svg path { fill: #ffffff !important; }
/* seam after sees (white) — brand-color sawtooth accent */
section.sees + .horizon { background: #ffffff !important; }
section.sees + .horizon svg path { fill: #0c8c89 !important; }
/* seam after self-check (gray) into evidence (VIOLET) — violet teeth bite up */
section.diagnostic + .horizon { background: #f0f0f0 !important; }
section.diagnostic + .horizon svg path {
  fill: #291a52 !important;
  stroke: none !important;
}
/* seam after engagements (white) into about (black panel) */
section.evidence.services + .horizon { background: #ffffff !important; }
section.evidence.services + .horizon svg path { fill: #0d0d0d !important; }

/* =============================================================
   NEW PHOTOGRAPHED SEAMS — about→dispatch, dispatch→playbook, playbook→closer
   ============================================================= */
/* about (black panel) → dispatch (gray) */
.horizon[data-seam="about-to-dispatch"] {
  background: #0d0d0d; /* matches .pi.dark neutral panel */
}
.horizon[data-seam="about-to-dispatch"] svg path { fill: #f0f0f0; }

/* dispatch (gray) → "Where to begin" plum panel.
   Band stays gray (matches the Lab-Notes band above); teeth are plum
   so they bite down into the deep-plum panel below. (2026-06-13) */
.horizon[data-seam="dispatch-to-playbook"] {
  background: #f0f0f0;
}
.horizon[data-seam="dispatch-to-playbook"] svg path { fill: #64005C; }

/* playbook (white) → closer (var(--ink) #0d0d0d) — signature */
.horizon[data-seam="playbook-to-closer"] {
  background: #ffffff;
}
.horizon[data-seam="playbook-to-closer"] svg path { fill: #0d0d0d; }

/* =============================================================
   FUNDER BEHAVIOR RING — Playbook companion teaser
   ============================================================= */
.playbook-companion {
  margin: 0 auto 56px;
  max-width: 980px;
  padding: 28px 32px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(13, 13, 13, 0.05) 0%, rgba(13, 13, 13, 0) 60%),
    rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(13, 13, 13, 0.10);
  border-radius: 6px;
  position: relative;
}
/* tick marks at corners — recall ticker rail motif */
.playbook-companion::before,
.playbook-companion::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 18px;
  height: 1px;
  background: rgba(13, 13, 13, 0.30);
}
.playbook-companion::before { left: 10px; }
.playbook-companion::after { right: 10px; }

.playbook-companion-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  padding-bottom: 4px;
  border-bottom: 1px dashed rgba(13, 13, 13, 0.16);
}
.playbook-companion-title {
  font-family: var(--font-serif, "GT Sectra", "Tiempos Headline", Georgia, serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--ink, #0d0d0d);
  margin: 0;
  line-height: 1.1;
}
.playbook-companion-sub {
  font-family: var(--font-serif, "GT Sectra", Georgia, serif);
  font-size: 14.5px;
  line-height: 1.45;
  color: rgba(13, 13, 13, 0.74);
  margin: 0;
  font-style: italic;
}

.playbook-companion-fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.playbook-companion-ring {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: 10px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 18px 38px -22px rgba(13, 13, 13, 0.45),
    0 2px 0 rgba(13, 13, 13, 0.06);
}
.playbook-companion-cap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.mono-tag-quiet {
  background: transparent;
  border: 1px solid rgba(13, 13, 13, 0.22);
  color: rgba(13, 13, 13, 0.72);
}
.playbook-companion-note {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(13, 13, 13, 0.66);
}

@media (min-width: 820px) {
  .playbook-companion {
    grid-template-columns: 1fr 1.55fr;
    gap: 36px;
    padding: 32px 36px 36px;
    align-items: center;
  }
  .playbook-companion-meta {
    border-bottom: none;
    border-right: 1px dashed rgba(13, 13, 13, 0.16);
    padding-right: 28px;
    padding-bottom: 0;
  }
}

@media (max-width: 540px) {
  .playbook-companion {
    margin: 0 -8px 40px;
    padding: 20px 18px 22px;
    border-radius: 4px;
  }
}

/* =============================================================
   FUNDER RING — interactivity (dynamic + click-to-reveal)
   ============================================================= */

/* Wrap that positions the panel relative to the ring */
.playbook-companion-ring-wrap {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 18px 38px -22px rgba(13, 13, 13, 0.45),
    0 2px 0 rgba(13, 13, 13, 0.06);
  overflow: hidden;
}

/* The SVG itself */
.funder-ring {
  display: block;
  width: 100%;
  height: auto;
  -webkit-tap-highlight-color: transparent;
}

/* Rotor: slow spin (120s) */
.ring-rotor {
  transform-origin: 360px 280px;
  animation: ring-rotate 120s linear infinite;
  transition: opacity 220ms ease;
}
@keyframes ring-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Pause on hover, focus-within (keyboard), or when a panel is open */
.playbook-companion-ring-wrap:hover .ring-rotor,
.playbook-companion-ring-wrap:focus-within .ring-rotor,
.playbook-companion-ring-wrap.is-paused .ring-rotor,
.playbook-companion-ring-wrap.is-panel-open .ring-rotor {
  animation-play-state: paused;
}

/* Hit targets need a generous radius so a slowly-moving target is still easy to grab. */
.ring-hit {
  cursor: pointer;
}

/* SVG pointer plumbing: only modes are interactive; bg/orbit/core stay non-interactive */
.funder-ring .ring-bg,
.funder-ring .ring-orbit,
.funder-ring .ring-core,
.funder-ring .ring-spoke,
.funder-ring .ring-label,
.funder-ring .ring-sublabel,
.funder-ring .ring-dot,
.funder-ring .ring-dot-glow {
  pointer-events: none;
}
.funder-ring .ring-mode {
  pointer-events: auto;
}
.funder-ring .ring-mode .ring-hit {
  pointer-events: all;
}

/* Center dot pulse */
.ring-center-dot {
  transform-origin: 360px 286px;
  animation: ring-pulse 4s ease-in-out infinite;
}
@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.45); opacity: 0.78; }
}

/* Mode group — interactive states */
.ring-mode {
  cursor: pointer;
  transition: opacity 220ms ease;
  outline: none;
}
.ring-mode .ring-dot,
.ring-mode .ring-dot-glow,
.ring-mode .ring-label,
.ring-mode .ring-sublabel,
.ring-mode .ring-spoke {
  transition: transform 220ms ease, opacity 220ms ease, fill-opacity 220ms ease;
}

/* Hover/focus on a mode: lift it, brighten label */
.ring-mode:hover .ring-dot,
.ring-mode:focus .ring-dot,
.ring-mode.is-active .ring-dot {
  r: 4.2;
}
.ring-mode:hover .ring-dot-glow,
.ring-mode:focus .ring-dot-glow,
.ring-mode.is-active .ring-dot-glow {
  r: 7.5;
}
.ring-mode:hover .ring-label,
.ring-mode:focus .ring-label,
.ring-mode.is-active .ring-label {
  fill: rgba(251, 230, 184, 1);
}
.ring-mode:hover .ring-sublabel,
.ring-mode:focus .ring-sublabel,
.ring-mode.is-active .ring-sublabel {
  fill: rgba(255, 255, 255, 0.85);
}
.ring-mode:hover .ring-spoke,
.ring-mode:focus .ring-spoke,
.ring-mode.is-active .ring-spoke {
  stroke: rgba(251, 230, 184, 0.55);
}

/* Focus ring (keyboard) on the invisible hit circle */
.ring-mode:focus-visible .ring-hit {
  stroke: rgba(251, 230, 184, 0.65);
  stroke-width: 1.2;
  stroke-dasharray: 3 4;
}

/* Dim non-active modes when panel is open */
.playbook-companion-ring-wrap.is-panel-open .ring-mode:not(.is-active) {
  opacity: 0.35;
}
.playbook-companion-ring-wrap.is-panel-open .ring-core {
  opacity: 0.55;
  transition: opacity 220ms ease;
}

/* Reading strip — slides up from below the ring; sits OUTSIDE so no modes are blocked */
.ring-panel {
  position: relative;
  margin-top: 14px;
  padding: 20px 24px 22px 24px;
  background:
    linear-gradient(180deg, rgba(30, 8, 24, 0.97) 0%, rgba(13, 13, 13, 0.98) 100%);
  border: 1px solid rgba(251, 230, 184, 0.20);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 28px;
  row-gap: 6px;
  align-items: start;
  transform: translateY(-6px);
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  transition: transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 220ms ease, max-height 320ms ease, margin-top 280ms ease, padding 280ms ease;
}
.ring-panel[hidden] { display: grid; }
.ring-panel:not(.is-open) {
  visibility: hidden;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
}
.ring-panel.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  max-height: 420px;
}

/* Grid layout: left column = eyebrow + title + drive; right column = reading */
.ring-panel-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
}
.ring-panel-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 24px;
  border-left: 1px dashed rgba(255, 255, 255, 0.18);
}

.ring-panel-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}
.ring-panel-close:hover,
.ring-panel-close:focus-visible {
  color: rgba(251, 230, 184, 1);
  border-color: rgba(251, 230, 184, 0.55);
  background: rgba(251, 230, 184, 0.06);
  outline: none;
}

.ring-panel-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.78);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  width: max-content;
  background: transparent;
}
.ring-panel-rootdot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #db9a26; /* swapped by JS */
}

.ring-panel-title {
  font-family: var(--font-serif, "GT Sectra", "Tiempos Headline", Georgia, serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
  color: rgba(251, 230, 184, 1);
  margin: 0;
  line-height: 1.05;
}

.ring-panel-drive {
  margin: 0;
  font-family: var(--font-serif, "GT Sectra", Georgia, serif);
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}
.ring-panel-drive em {
  font-family: "JetBrains Mono", monospace;
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-right: 6px;
}

.ring-panel-reading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ring-panel-reading-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.ring-panel-reading-text {
  margin: 0;
  font-family: var(--font-serif, "GT Sectra", Georgia, serif);
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.94);
}

/* Hint glyph in the caption */
.ring-hint-glyph {
  color: var(--gold, #db9a26);
  margin-right: 4px;
}

/* Mobile: stack left/right columns */
@media (max-width: 640px) {
  .ring-panel {
    grid-template-columns: 1fr;
    row-gap: 14px;
    padding: 18px 18px 20px 18px;
  }
  .ring-panel-right {
    padding-left: 0;
    padding-top: 14px;
    border-left: none;
    border-top: 1px dashed rgba(255, 255, 255, 0.18);
  }
}

/* Reduced motion: stop rotation and pulse */
@media (prefers-reduced-motion: reduce) {
  .ring-rotor,
  .ring-center-dot {
    animation: none;
  }
  .ring-panel {
    transition: opacity 120ms ease;
    transform: none;
  }
}

/* =============================================================
   FUNDER RING — FULL VARIANT (wide layout, labels static,
   reading panel sits to the right of the ring, more breathing room)
   ============================================================= */
.playbook-companion[data-ring-variant="full"] {
  max-width: 1280px;
  margin: 0 auto 64px;
  padding: 40px 32px 44px;
  background: transparent;
  border: none;
  border-radius: 0;
  grid-template-columns: 1fr;
  gap: 18px;
}
.playbook-companion[data-ring-variant="full"]::before,
.playbook-companion[data-ring-variant="full"]::after {
  display: none; /* drop the corner tick marks for the open layout */
}
.playbook-companion[data-ring-variant="full"] .playbook-companion-meta {
  max-width: 720px;
  margin: 0 auto 8px;
  text-align: center;
  align-items: center;
  border: none;
  padding: 0 0 4px;
}

/* Figure layout becomes the dark canvas */
.playbook-companion[data-ring-variant="full"] .playbook-companion-fig {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding: 40px 32px 32px;
  background:
    radial-gradient(140% 160% at 50% 0%, rgba(74, 26, 60, 0.35) 0%, rgba(13, 13, 13, 0.96) 60%, rgba(14, 2, 10, 1) 100%);
  border-radius: 10px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 60px -32px rgba(13, 13, 13, 0.55);
}

/* Ring wrap: drop the card chrome — the figure already supplies the canvas */
.playbook-companion[data-ring-variant="full"] .playbook-companion-ring-wrap {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  max-width: none;
  width: 100%;
}
.playbook-companion[data-ring-variant="full"] .funder-ring {
  max-width: 760px;
  margin: 0 auto;
}
/* Drop the SVG's inner radial bg since the figure provides it */
.playbook-companion[data-ring-variant="full"] .funder-ring .ring-bg {
  display: none;
}

/* Static labels in the full variant — no rotation, words always readable.
   Only the dots/spokes get a subtle ambient pulse via the existing center dot;
   the ring itself stays still. */
.playbook-companion[data-ring-variant="full"] .ring-rotor {
  animation: none;
  transform: none;
}
.playbook-companion[data-ring-variant="full"] .playbook-companion-ring-wrap:hover .ring-rotor,
.playbook-companion[data-ring-variant="full"] .playbook-companion-ring-wrap:focus-within .ring-rotor,
.playbook-companion[data-ring-variant="full"] .playbook-companion-ring-wrap.is-paused .ring-rotor,
.playbook-companion[data-ring-variant="full"] .playbook-companion-ring-wrap.is-panel-open .ring-rotor {
  animation: none;
}

/* Panel: in the full variant it lives to the right of the ring on desktop,
   and is visible by default with placeholder copy until a mode is selected. */
.playbook-companion[data-ring-variant="full"] .ring-panel {
  margin-top: 18px;
  background: transparent;
  border: none;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 0;
  padding: 18px 4px 4px;
  grid-template-columns: 1fr;
  row-gap: 10px;
  max-height: none;
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
}
.playbook-companion[data-ring-variant="full"] .ring-panel:not(.is-open) {
  visibility: visible;
  margin-top: 18px;
  padding-top: 18px;
  padding-bottom: 4px;
  border-color: rgba(255, 255, 255, 0.18);
}
.playbook-companion[data-ring-variant="full"] .ring-panel-close { display: none; }
/* Force panel to remain visible in full variant even when [hidden] is set by JS — empty state shows the prompt */
.playbook-companion[data-ring-variant="full"] .ring-panel[hidden] {
  display: grid;
}
.playbook-companion[data-ring-variant="full"] .ring-panel-left {
  min-width: 0;
}
.playbook-companion[data-ring-variant="full"] .ring-panel-right {
  padding-left: 0;
  border-left: none;
}

/* Desktop ≥ 1024px: two columns inside the figure */
@media (min-width: 1024px) {
  .playbook-companion[data-ring-variant="full"] .playbook-companion-fig {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
    gap: 56px;
    padding: 56px 56px 48px;
  }
  .playbook-companion[data-ring-variant="full"] .funder-ring {
    max-width: 720px;
  }
  .playbook-companion[data-ring-variant="full"] .ring-panel {
    margin-top: 0;
    padding: 0 0 0 32px;
    border-top: none;
    border-left: 1px dashed rgba(255, 255, 255, 0.18);
    grid-template-columns: 1fr;
    row-gap: 14px;
    align-self: center;
  }
  .playbook-companion[data-ring-variant="full"] .ring-panel:not(.is-open) {
    margin-top: 0;
    padding: 0 0 0 32px;
    border-color: rgba(255, 255, 255, 0.18);
  }
  /* Caption sits below the grid */
  .playbook-companion[data-ring-variant="full"] .playbook-companion-cap {
    grid-column: 1 / -1;
    margin-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.14);
    padding-top: 14px;
  }
}

/* Empty-state messaging when no mode is selected yet */
.playbook-companion[data-ring-variant="full"] .ring-panel:not(.is-open) .ring-panel-eyebrow,
.playbook-companion[data-ring-variant="full"] .ring-panel:not(.is-open) .ring-panel-title,
.playbook-companion[data-ring-variant="full"] .ring-panel:not(.is-open) .ring-panel-drive,
.playbook-companion[data-ring-variant="full"] .ring-panel:not(.is-open) .ring-panel-reading {
  display: none;
}
.playbook-companion[data-ring-variant="full"] .ring-panel:not(.is-open)::before {
  content: "→  Select a mode from the ring to read its diagnostic.";
  display: block;
  font-family: var(--font-serif, "GT Sectra", Georgia, serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36ch;
}

/* Tighten the dim-on-open logic so it still feels alive when a mode is chosen */
.playbook-companion[data-ring-variant="full"] .playbook-companion-ring-wrap.is-panel-open .ring-mode:not(.is-active) {
  opacity: 0.42;
}

/* Caption styling inside the dark canvas */
.playbook-companion[data-ring-variant="full"] .playbook-companion-cap .mono-tag-quiet {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
}
.playbook-companion[data-ring-variant="full"] .playbook-companion-note {
  color: rgba(255, 255, 255, 0.68);
}

/* Mobile: keep figure padding tighter */
@media (max-width: 640px) {
  .playbook-companion[data-ring-variant="full"] {
    padding: 24px 14px 28px;
  }
  .playbook-companion[data-ring-variant="full"] .playbook-companion-fig {
    padding: 24px 16px 22px;
  }
}

/* =============================================================
   MOCKUP D — INDEX GRID
   Ring is visual; the actual selection happens in a 3x3 mode index
   on the right. Reading shows below the grid.
   ============================================================= */
.playbook-companion[data-ring-variant="full"] .ring-panel,
.playbook-companion[data-ring-variant="full"] .ring-panel:not(.is-open) {
  display: block;
  padding: 0;
  border: none;
  margin: 0;
  background: transparent;
}
.playbook-companion[data-ring-variant="full"] .ring-panel:not(.is-open)::before {
  display: none;
}
/* Build the grid as a sibling pseudo via JS injection below */
.ring-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 18px;
}
.ring-index-cell {
  background: rgba(13, 13, 13, 0.96);
  padding: 12px 12px 14px;
  cursor: pointer;
  border: 0;
  text-align: left;
  color: rgba(255, 255, 255, 0.86);
  font-family: "JetBrains Mono", monospace;
  transition: background 180ms ease, color 180ms ease;
}
.ring-index-cell:hover,
.ring-index-cell:focus-visible,
.ring-index-cell.is-active {
  background: rgba(74, 26, 60, 0.55);
  color: rgba(251, 230, 184, 1);
  outline: none;
}
.ring-index-num {
  display: block;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}
.ring-index-name {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.ring-index-rootdot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
/* Reading text appears below the grid */
.ring-reading-out {
  font-family: var(--font-serif, "GT Sectra", Georgia, serif);
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1.55;
  padding-top: 18px;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  min-height: 4em;
}
.ring-reading-out em {
  font-style: italic;
  color: rgba(251, 230, 184, 1);
}
.ring-reading-empty {
  color: rgba(255, 255, 255, 0.62);
  font-style: italic;
}

/* =============================================================
   MOCKUP D — THESIS COPY ABOVE THE RING
   With ghosted UPenn photo backdrop (invisible extraction motif)
   ============================================================= */
.playbook-companion[data-ring-variant="full"] .playbook-companion-meta--thesis {
  text-align: left;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto 12px;
  /* Extra padding to give the photo backdrop visual breathing room */
  padding: 56px 48px 48px;
  gap: 16px;
  position: relative;
  isolation: isolate; /* contain z-index stacking */
  overflow: hidden;
  border-radius: 4px;
}
/* Ghost photo backdrop — the institution barely visible behind the thesis */
.playbook-companion[data-ring-variant="full"] .playbook-companion-meta--thesis::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/upenn-extraction.jpg");
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  opacity: 0.14;
  /* Subtle desaturation + warm tint to align with cream palette */
  filter: saturate(0.55) sepia(0.18) contrast(0.95);
  z-index: -2;
  pointer-events: none;
}
/* Cream wash overlay — keeps text crisp, fades the photo into the page */
.playbook-companion[data-ring-variant="full"] .playbook-companion-meta--thesis::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* Left-side wash so headline stays high-contrast */
    linear-gradient(90deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.45) 60%, rgba(255, 255, 255, 0.30) 100%),
    /* Top + bottom edge fade so the photo dissolves into the section */
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0) 75%, rgba(255, 255, 255, 0.85) 100%);
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 768px) {
  .playbook-companion[data-ring-variant="full"] .playbook-companion-meta--thesis {
    padding: 36px 20px 32px;
  }
  .playbook-companion[data-ring-variant="full"] .playbook-companion-meta--thesis::before {
    opacity: 0.10;
  }
  .playbook-companion[data-ring-variant="full"] .playbook-companion-meta--thesis::after {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0.88) 100%);
  }
}
.playbook-companion-title--thesis {
  font-family: var(--font-serif, "GT Sectra", "Tiempos Headline", Georgia, serif);
  font-size: clamp(28px, 4vw, 52px);
  font-style: normal;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink, #0d0d0d);
  margin: 0;
  max-width: 22ch;
}
.playbook-companion-title--thesis em {
  font-style: italic;
  color: var(--gold-deep, #b07a18);
  display: block;
  margin-top: 4px;
}
.playbook-companion-lede {
  font-family: var(--font-serif, "GT Sectra", Georgia, serif);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55;
  color: rgba(13, 13, 13, 0.78);
  max-width: 56ch;
  margin: 0;
  font-style: normal;
}
.playbook-companion-legend {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px dashed rgba(13, 13, 13, 0.18);
  width: 100%;
}
.pcl-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  column-gap: 10px;
  align-items: start;
}
.pcl-item p {
  margin: 0;
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(13, 13, 13, 0.78);
}
.pcl-item p strong {
  color: var(--ink, #0d0d0d);
  font-weight: 600;
}
.pcl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  box-shadow: 0 0 0 3px rgba(13, 13, 13, 0.04);
}
.pcl-dot--outer    { background: var(--gold, #db9a26); }
.pcl-dot--inner    { background: var(--plum, #a3296f); }
.pcl-dot--evidence { background: var(--teal, #0c8c89); }

@media (min-width: 820px) {
  .playbook-companion-legend {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

/* Mini eyebrow above the download grid */
/* Left-eyebrow above the cover (was centered above the grid).
   Sits inside .playbook-cover-wrap, left-aligned, above the cover-card. */
.playbook-download-eyebrow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  text-align: left;
  width: 100%;
}
.playbook-download-cue {
  font-family: var(--font-serif, "GT Sectra", Georgia, serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--ink, #0d0d0d);
  line-height: 1.1;
}
/* Cover wrap now stacks the eyebrow above the cover-card */
.playbook-cover-wrap {
  flex-direction: column;
  align-items: stretch;
  padding-top: 0;
}

/* =============================================================
   ORGANISM SECTION — desktop legibility
   Bump SVG text sizes so the tree diagram labels read at 1440+
   ============================================================= */
.organism-section svg.organism .svg-mono {
  font-size: 14px;
  letter-spacing: 0.05em;
}
.organism-section svg.organism .svg-mono.dim {
  font-size: 13px;
}
.organism-section svg.organism .svg-label {
  font-size: 14px;
  letter-spacing: 0.2em;
}
.organism-section svg.organism .svg-root-label {
  font-size: 15px;
  letter-spacing: 0.22em;
}

/* The currents (e.g. "funding velocity") get a touch more weight */
.organism-section svg.organism .svg-mono.cur {
  font-size: 13.5px;
  letter-spacing: 0.04em;
  fill: rgba(255, 255, 255, 0.82);
  opacity: 1; /* originally 0 until hover; always show on desktop for readability */
}

/* Three Roots cards: bump body text from 14.5 → 16 */
.organism-section .root-card-sub,
.organism-section .root-card-desc,
.organism-section .organism-card p {
  font-size: 16px;
  line-height: 1.55;
}

/* The "11 CURRENTS" big number stays bold; the "CURRENTS" tag bumps */
.organism-section .root-card-currents-label,
.organism-section .root-card .mono-tag {
  font-size: 12px;
  letter-spacing: 0.14em;
}

/* Mobile guards: scale these down again so they don't blow out on phones */
@media (max-width: 768px) {
  .organism-section svg.organism .svg-mono,
  .organism-section svg.organism .svg-mono.cur {
    font-size: 11px;
  }
  .organism-section svg.organism .svg-label { font-size: 11px; }
  .organism-section svg.organism .svg-root-label { font-size: 12px; }
  .organism-section .root-card-sub,
  .organism-section .root-card-desc,
  .organism-section .organism-card p {
    font-size: 15px;
  }
}

/* =============================================================
   D RING — desktop legibility bump
   Make the ring fill the left column properly + scale up labels
   ============================================================= */
@media (min-width: 1024px) {
  /* Let the ring section break out of the 1200px playbook-inner max-width */
  .playbook-inner:has(.playbook-companion[data-ring-variant="full"]) {
    max-width: 1440px;
  }
  .playbook-companion[data-ring-variant="full"] {
    max-width: 1400px;  /* widen the whole companion so columns have room */
  }
  .playbook-companion[data-ring-variant="full"] .funder-ring {
    max-width: 1020px;  /* compensate for wider viewBox so ring stays large */
    margin: 0 auto;
  }
  .playbook-companion[data-ring-variant="full"] .playbook-companion-fig {
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 1fr);
    gap: 56px;
    padding: 56px 56px 48px;
  }
  .ring-index-grid {
    min-width: 360px;
  }
}

/* Bump ring label + sublabel font sizes — use !important so they override inline SVG font-size attrs */
.playbook-companion[data-ring-variant="full"] .funder-ring .ring-label {
  font-size: 15px !important;
  letter-spacing: 0.18em;
}
.playbook-companion[data-ring-variant="full"] .funder-ring .ring-sublabel {
  font-size: 11.5px !important;
  letter-spacing: 0.1em;
}
.playbook-companion[data-ring-variant="full"] .funder-ring .root-label {
  font-size: 12px;
  letter-spacing: 0.18em;
}

/* Mobile guards — keep ring labels readable but not huge */
@media (max-width: 768px) {
  .playbook-companion[data-ring-variant="full"] .funder-ring .ring-label {
    font-size: 12px !important;
  }
  .playbook-companion[data-ring-variant="full"] .funder-ring .ring-sublabel {
    font-size: 9.5px !important;
  }
  /* Mobile: shrink grid font slightly so PERFORMANCE etc. fits within 113px cell */
  .ring-index-cell {
    padding: 10px 8px 12px !important;
  }
  .ring-index-name {
    font-size: 12px !important;
    letter-spacing: 0.06em !important;
  }
  .ring-index-num {
    font-size: 9px !important;
  }
}

/* Grid cell text bump — match the new ring legibility */
@media (min-width: 1024px) {
  .ring-index-cell {
    padding: 14px 14px 16px;
  }
  .ring-index-num {
    font-size: 10.5px;
  }
  .ring-index-name {
    font-size: 13px;
  }
  .ring-reading-out {
    font-size: 17px;
    line-height: 1.55;
  }
}

/* =============================================================
   SERVICES FOOTER — plum gradient wash at top
   Visual gravity for the "Explore full engagement arc" CTA
   ============================================================= */
.services-footer {
  position: relative;
  padding-top: clamp(28px, 3.5vw, 44px);
  padding-bottom: clamp(8px, 1.5vw, 16px);
  isolation: isolate;
  overflow: hidden;            /* contain the plum wash, no body-width expansion */
}
.services-footer::before {
  content: "";
  position: absolute;
  /* Stretch wide but stay inside the parent's overflow:hidden —
     left/right percentages reference the parent, so this is contained */
  left: -25%;
  right: -25%;
  top: 0;
  bottom: 0;
  background:
    radial-gradient(60% 90% at 50% 50%,
      rgba(163, 41, 111, 0.16) 0%,
      rgba(163, 41, 111, 0.08) 35%,
      rgba(163, 41, 111, 0.03) 60%,
      rgba(163, 41, 111, 0) 80%);
  z-index: -1;
  pointer-events: none;
}

/* =============================================================
   NAV BRAND — pulsating breathing glyph (lifted from services-v3)
   Replaces the static logo-wide-color.svg with a living mark.
   ============================================================= */
:root {
  --breath: 5.2s;
  --breath-slow: 8s;
  --breath-fast: 3.4s;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-glyph {
  display: block;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  position: relative;
}
.brand-glyph .hero-glyph__svg {
  width: 44px;
  height: 44px;
  display: block;
}
/* Stacked wordmark — replaces the wide-color.svg text portion */
.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink, #0d0d0d);
  font-size: 11px;
  text-transform: uppercase;
}
.brand-wordmark__l2 {
  letter-spacing: 0.14em;
  opacity: 0.86;
}
@media (max-width: 720px) {
  .brand-glyph { width: 36px; height: 36px; }
  .brand-glyph .hero-glyph__svg { width: 36px; height: 36px; }
  .brand-wordmark { font-size: 9.5px; }
}

/* ── Breathing animation system (scoped to .brand-glyph) ─────────── */
.brand-glyph .glyph-svg [class*="glyph__"] {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(.22,.61,.36,1);
}
.brand-glyph.is-awake .glyph__outline {
  opacity: 0.95;
  transition-delay: 0.2s;
  animation: glyphOutlineBreath var(--breath-slow) ease-in-out infinite;
}
.brand-glyph.is-awake .glyph__outline--inner { animation-delay: 1.4s; }
@keyframes glyphOutlineBreath {
  0%, 100% { transform: scale(0.98); }
  50%      { transform: scale(1.02); }
}
.brand-glyph.is-awake .glyph__corner { opacity: 1; }
.brand-glyph.is-awake .glyph__corner--teal   { transition-delay: 0.6s; animation: glyphCornerPulse var(--breath) ease-in-out infinite 0.2s; }
.brand-glyph.is-awake .glyph__corner--gold   { transition-delay: 0.8s; animation: glyphCornerPulse var(--breath) ease-in-out infinite 0.9s; }
.brand-glyph.is-awake .glyph__corner--indigo { transition-delay: 1.0s; animation: glyphCornerPulse var(--breath) ease-in-out infinite 1.6s; }
.brand-glyph.is-awake .glyph__corner--plum   { transition-delay: 1.2s; animation: glyphCornerPulse var(--breath) ease-in-out infinite 2.3s; }
@keyframes glyphCornerPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50%      { transform: scale(1.12); filter: brightness(1.18); }
}
.brand-glyph.is-awake .glyph__sawtooth,
.brand-glyph.is-awake .glyph__arrowhead { opacity: 0.92; transition-delay: 0.7s; }
.brand-glyph.is-awake .glyph__sawtooth--teal,
.brand-glyph.is-awake .glyph__arrowhead--teal   { animation: glyphArmBreath var(--breath) ease-in-out infinite 0.3s; }
.brand-glyph.is-awake .glyph__sawtooth--gold,
.brand-glyph.is-awake .glyph__arrowhead--gold   { animation: glyphArmBreath var(--breath) ease-in-out infinite 1.0s; }
.brand-glyph.is-awake .glyph__sawtooth--indigo,
.brand-glyph.is-awake .glyph__arrowhead--indigo { animation: glyphArmBreath var(--breath) ease-in-out infinite 1.7s; }
.brand-glyph.is-awake .glyph__sawtooth--plum,
.brand-glyph.is-awake .glyph__arrowhead--plum   { animation: glyphArmBreath var(--breath) ease-in-out infinite 2.4s; }
@keyframes glyphArmBreath {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.15); }
}
.brand-glyph.is-awake .glyph__quad { opacity: 1; }
.brand-glyph.is-awake .glyph__quad--gold   { transition-delay: 1.4s; animation: glyphQuadBreath var(--breath) ease-in-out infinite 2.0s; }
.brand-glyph.is-awake .glyph__quad--indigo { transition-delay: 1.6s; animation: glyphQuadBreath var(--breath) ease-in-out infinite 2.3s; }
.brand-glyph.is-awake .glyph__quad--plum   { transition-delay: 1.8s; animation: glyphQuadBreath var(--breath) ease-in-out infinite 2.6s; }
.brand-glyph.is-awake .glyph__quad--teal   { transition-delay: 2.0s; animation: glyphQuadBreath var(--breath) ease-in-out infinite 2.9s; }
@keyframes glyphQuadBreath {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50%      { transform: scale(1.06); filter: brightness(1.15); }
}
.brand-glyph.is-awake .glyph__eye {
  opacity: 1;
  transition-delay: 2.3s;
  animation: glyphEyePulse var(--breath-slow) ease-in-out infinite 2.8s;
}
@keyframes glyphEyePulse {
  0%, 100% { transform: scale(1); filter: brightness(1) drop-shadow(0 0 0 rgba(226, 122, 52, 0)); }
  50%      { transform: scale(1.4); filter: brightness(1.35) drop-shadow(0 0 8px rgba(226, 122, 52, 0.85)); }
}

/* Respect reduced motion — show the glyph fully but don't animate */
@media (prefers-reduced-motion: reduce) {
  .brand-glyph.is-awake [class*="glyph__"] { animation: none !important; }
}

/* ============================================================
   Engagement Arc — disclosure (button → expand/collapse panel)
   ============================================================ */

.engagement-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  cursor: pointer;
  border: 0;
  font: inherit;
}
.engagement-toggle__chev {
  display: inline-block;
  transform: translateY(1px) rotate(0deg);
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
  font-size: 0.85em;
  line-height: 1;
}
.engagement-toggle[aria-expanded="true"] .engagement-toggle__chev {
  transform: translateY(1px) rotate(180deg);
}

.engagement-arc {
  margin-top: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 480ms cubic-bezier(.2,.7,.2,1),
    opacity 320ms ease 80ms,
    margin-top 320ms ease;
}
.engagement-arc[hidden] { display: block; } /* keep transitions; rely on max-height */
.engagement-arc.is-open {
  margin-top: 28px;
  max-height: 2400px;
  opacity: 1;
}

.engagement-arc__inner {
  position: relative;
  margin: 0 auto;
  max-width: 1040px;
  padding: 40px clamp(20px, 4vw, 56px) 8px;
  text-align: left;
}

.engagement-arc__eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a3296f;
  opacity: 0.78;
  margin: 0 0 10px;
}
.engagement-arc__title {
  font-family: 'Cormorant Garamond', 'Source Serif Pro', Georgia, serif;
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #0d0d0d;
  margin: 0 0 14px;
}
.engagement-arc__lede {
  font-size: 16px;
  line-height: 1.55;
  color: #a3296f;
  max-width: 720px;
  margin: 0 0 28px;
}

.engagement-arc__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}

.engagement-card {
  position: relative;
  background: #f7eedf;
  border: 1px solid rgba(13, 13, 13, 0.08);
  border-radius: 14px;
  padding: 28px 26px 26px;
  box-shadow: 0 1px 0 rgba(13, 13, 13, 0.02), 0 18px 40px -28px rgba(74, 26, 60, 0.35);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.engagement-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #a3296f 0%, #db9a26 100%);
  border-radius: 14px 0 0 14px;
  opacity: 0.85;
}
.engagement-card:hover {
  transform: translateY(-2px);
  border-color: rgba(163, 41, 111, 0.28);
  box-shadow: 0 1px 0 rgba(13, 13, 13, 0.02), 0 22px 50px -28px rgba(74, 26, 60, 0.5);
}

.engagement-card__meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}
.engagement-card__no {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: #a3296f;
  line-height: 1;
}
.engagement-card__tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a3296f;
  opacity: 0.78;
}
.engagement-card__title {
  font-family: 'Cormorant Garamond', 'Source Serif Pro', Georgia, serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: #0d0d0d;
  margin: 0 0 12px;
}
.engagement-card__copy {
  font-size: 15px;
  line-height: 1.6;
  color: #a3296f;
  margin: 0 0 16px;
}
.engagement-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 6px;
}
.engagement-card__list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #a3296f;
}
.engagement-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: #a3296f;
  opacity: 0.7;
}
.engagement-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a3296f;
  text-decoration: none;
  border-bottom: 1px solid rgba(163, 41, 111, 0.35);
  padding-bottom: 2px;
  transition: color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.engagement-card__link:hover {
  color: #0d0d0d;
  border-color: #0d0d0d;
  transform: translateX(2px);
}

.engagement-arc__foot {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #a3296f;
  opacity: 0.86;
  margin: 18px 0 0;
  text-align: center;
}
.engagement-arc__foot a {
  color: #a3296f;
  text-decoration: none;
  border-bottom: 1px solid rgba(163, 41, 111, 0.4);
}
.engagement-arc__foot a:hover { color: #0d0d0d; border-color: #0d0d0d; }

@media (max-width: 768px) {
  .engagement-arc__inner { padding: 28px 20px 4px; }
  .engagement-arc__cards { grid-template-columns: 1fr; gap: 14px; }
  .engagement-card { padding: 22px 20px 20px; }
  .engagement-card__title { font-size: 22px; }
  .engagement-arc__title { font-size: 26px; }
  .engagement-arc.is-open { max-height: 3200px; }
}

@media (prefers-reduced-motion: reduce) {
  .engagement-arc,
  .engagement-toggle__chev,
  .engagement-card,
  .engagement-card__link { transition: none !important; }
}

/* ============================================================
   Mobile overflow lock — prevents horizontal shift from
   bleeding aurora glows and decorative oversize elements.
   Applied site-wide; safe on desktop.
   ============================================================ */
html, body {
  overflow-x: clip;            /* clip > hidden: doesn't create scroll container, no scroll position jump */
  max-width: 100%;
}
/* Also contain intermediate ancestors so they don't propagate sub-element overflow
   into body's bounding box (which causes desktop horizontal drift). */
body > main,
main > section {
  overflow-x: clip;
}
@supports not (overflow-x: clip) {
  html, body, body > main, main > section { overflow-x: hidden; }
}
body {
  -webkit-text-size-adjust: 100%;   /* lock iOS auto-resize on rotate */
  text-size-adjust: 100%;
  overscroll-behavior-x: none;      /* kill horizontal rubber-band drag */
  touch-action: pan-y;              /* allow only vertical pan; blocks horizontal drag shift */
}

/* Belt-and-suspenders: ensure decorative auroras never widen the page on mobile */
@media (max-width: 768px) {
  .aurora { pointer-events: none; }
}

/* ============================================================
   Honeypot trap — hidden from humans, visible to bots,
   does NOT expand body.scrollWidth (the off-screen positioning
   trick caused desktop horizontal shift).
   ============================================================ */
.hp-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.hp-trap input { width: 1px; height: 1px; }

/* ============================================================
   SCROLLBAR-GUTTER STABILITY
   ============================================================
   Fix for Chrome/Edge/Firefox on macOS+Windows with classic
   (non-overlay) scrollbars: when document height changes from
   reveal animations or disclosure expand, the browser shows/hides
   the vertical scrollbar mid-scroll. Viewport width then shifts
   by ~15px and centered content reflows sideways.

   `scrollbar-gutter: stable` ALWAYS reserves the gutter so the
   viewport width never changes whether the scrollbar is visible
   or not. No more sideways shift on scroll.
*/
html {
  scrollbar-gutter: stable;
}

/* ============================================================
   MOBILE: lock 100vh against iOS Safari address bar collapse.
   `dvh` (dynamic viewport height) follows the visible area as
   the address bar shows/hides, eliminating the layout jump.
*/
@supports (height: 100dvh) {
  :root {
    --vh-fix: 100dvh;
  }
}

/* ============================================================
   INTAKE BRIDGE — between organism (dark) and stats (cream)
   The natural CTA moment. Cream-toned, plum accent.
   ============================================================ */

.intake-bridge {
  position: relative;
  background: #ffffff;            /* base cream */
  padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 56px) clamp(48px, 6vw, 80px);
  overflow: hidden;               /* contain decorative bleeds */
  isolation: isolate;
}

/* Soft plum wash from the top — visual continuity with the dark organism above */
.intake-bridge::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 50% 0%,
      rgba(163, 41, 111, 0.10) 0%,
      rgba(163, 41, 111, 0.04) 35%,
      rgba(163, 41, 111, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.intake-bridge__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.intake-bridge__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a3296f;
  opacity: 0.86;
  margin: 0 0 18px;
}
.intake-bridge__eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #a3296f;
  display: inline-block;
}

.intake-bridge__headline {
  font-family: 'Cormorant Garamond', 'Source Serif Pro', Georgia, serif;
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: #0d0d0d;
  margin: 0 0 18px;
}

.intake-bridge__lede {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.55;
  color: #a3296f;
  max-width: 640px;
  margin: 0 auto 32px;
}

/* Toggle button */
.intake-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  cursor: pointer;
  border: 0;
  font: inherit;
}
.intake-toggle__chev {
  display: inline-block;
  transform: translateY(1px) rotate(0deg);
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
  font-size: 0.85em;
  line-height: 1;
}
.intake-toggle[aria-expanded="true"] .intake-toggle__chev {
  transform: translateY(1px) rotate(180deg);
}

/* Collapsible panel */
.intake-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition:
    max-height 480ms cubic-bezier(.2,.7,.2,1),
    opacity 320ms ease 80ms,
    margin-top 320ms ease;
}
.intake-panel[hidden] { display: block; }
.intake-panel.is-open {
  max-height: 2400px;
  opacity: 1;
  margin-top: 40px;
}

.intake-panel__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
  text-align: left;
}

.intake-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(13, 13, 13, 0.08);
  border-radius: 14px;
  padding: 28px 28px 28px 56px;
  box-shadow: 0 1px 0 rgba(13, 13, 13, 0.02), 0 18px 40px -28px rgba(74, 26, 60, 0.35);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
/* Old gradient stripe removed in favor of depth pips */
.intake-card::before { display: none; }

/* Depth pips — vertical column at top-left.
   Filled diamonds = engagement depth, open diamonds = remaining range.
   Intake = 1/5 (light touch), Pre-Assessment = 3/5 (deeper). */
.intake-card__pips {
  position: absolute;
  left: 22px;
  top: 30px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.intake-card__pip {
  display: block;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
}
.intake-card--primary .intake-card__pip { background: #a3296f; }
.intake-card--secondary .intake-card__pip { background: #0c8c89; }
.intake-card__pip--off {
  background: transparent !important;
  border: 1.2px solid rgba(28, 8, 20, 0.22);
}

/* Services-card depth pips — same vocabulary as intake-card pips,
   but inline within the mono-tag row so the existing card layout
   (photo on top, figcaption below) stays untouched. */
.svc-pips {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  vertical-align: middle;
}
.svc-pip {
  display: inline-block;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: currentColor;
}
.svc-pip--off {
  background: transparent;
  border: 1px solid rgba(28, 8, 20, 0.22);
}
.intake-card:hover {
  transform: translateY(-2px);
  border-color: rgba(163, 41, 111, 0.28);
  box-shadow: 0 1px 0 rgba(13, 13, 13, 0.02), 0 22px 50px -28px rgba(74, 26, 60, 0.5);
}

.intake-card__meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}
.intake-card__no {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: #a3296f;
  line-height: 1;
}
.intake-card--secondary .intake-card__no {
  color: #0c8c89;
}
.intake-card__tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a3296f;
  opacity: 0.82;
}
.intake-card__title {
  font-family: 'Cormorant Garamond', 'Source Serif Pro', Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: #0d0d0d;
  margin: 0 0 14px;
}
.intake-card__copy {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(20, 17, 14, 0.82);
  margin: 0 0 18px;
}
.intake-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 6px;
}
.intake-card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #a3296f;
}
/* Bullet C — outline diamond with inner dot (brand-mark echo).
   Tracks the card's accent color: plum for Intake, teal for Pre-Assessment. */
.intake-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><polygon points='6,1 11,6 6,11 1,6' fill='none' stroke='black' stroke-width='1.3'/><circle cx='6' cy='6' r='1.6' fill='black'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><polygon points='6,1 11,6 6,11 1,6' fill='none' stroke='black' stroke-width='1.3'/><circle cx='6' cy='6' r='1.6' fill='black'/></svg>") no-repeat center / contain;
  background-color: #a3296f;
}
.intake-card--secondary .intake-card__list li::before {
  background-color: #0c8c89;
}
.intake-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a3296f;
  text-decoration: none;
  border-bottom: 1px solid rgba(163, 41, 111, 0.35);
  padding-bottom: 2px;
  transition: color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.intake-card--secondary .intake-card__cta {
  color: #0c8c89;
  border-color: rgba(12, 140, 137, 0.35);
}
.intake-card__cta:hover {
  color: #0d0d0d;
  border-color: #0d0d0d;
  transform: translateX(2px);
}

.intake-panel__foot {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #a3296f;
  opacity: 0.86;
  margin: 28px auto 0;
  text-align: center;
  max-width: 720px;
}
.intake-panel__foot a {
  color: #a3296f;
  text-decoration: none;
  border-bottom: 1px solid rgba(163, 41, 111, 0.4);
}
.intake-panel__foot a:hover { color: #0d0d0d; border-color: #0d0d0d; }

/* =============================================================
   "WHERE TO BEGIN" — deep-plum panel (replaces the light-pink wash).
   The cream cards stay and pop; text that sits directly on the panel
   flips to cream/gold. Card internals are unchanged (they live on the
   cream cards). Seams: the chevron above gets plum teeth (see the
   dispatch-to-playbook rule); the library-to-footer band below is set
   to plum inline in index.html. Added 2026-06-13.
   ============================================================= */
.intake-bridge { background: #64005C; }
.intake-bridge::before {
  background:
    radial-gradient(90% 70% at 50% 0%,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.03) 35%,
      rgba(255, 255, 255, 0) 70%);
}
.intake-bridge__headline { color: #fdf6ee; }
.intake-bridge__lede { color: rgba(253, 246, 238, 0.88); }
.intake-bridge__eyebrow { color: #e1ab4b; opacity: 1; }
.intake-bridge__eyebrow .dot { background: #e1ab4b; }
.intake-panel__foot { color: rgba(253, 246, 238, 0.78); }
.intake-panel__foot a { color: #f0d6a6; border-bottom-color: rgba(240, 214, 166, 0.5); }
.intake-panel__foot a:hover { color: #ffffff; border-color: #ffffff; }

@media (max-width: 768px) {
  .intake-bridge { padding: 56px 20px 48px; }
  .intake-bridge__headline { font-size: 32px; }
  .intake-panel__inner { grid-template-columns: 1fr; gap: 14px; }
  .intake-card { padding: 22px 22px 22px; }
  .intake-card__title { font-size: 24px; }
  .intake-panel.is-open { max-height: 3200px; }
  /* Mobile: depth pips flow horizontally above the catalog row,
     not absolute-positioned in the (now non-existent) left gutter. */
  .intake-card__pips {
    position: static;
    flex-direction: row;
    gap: 6px;
    margin-bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intake-panel,
  .intake-toggle__chev,
  .intake-card,
  .intake-card__cta { transition: none !important; }
}

/* =========================================================
   MOBILE-2: SVG organism is hidden by default on mobile, revealed
   by a "Show the pressure map" toggle button. The button is also
   hidden on desktop where the SVG is visible by default.
   ========================================================= */

/* Desktop: hide the mobile toggle entirely */
.organism-mobile-toggle { display: none; }

/* Default: mobile-only copy hidden on desktop */
.organism-section .section-sub .mob-only { display: none; }

@media (max-width: 760px) {
  /* SVG is hidden by default; revealed when [data-organism-open] is set */
  .organism-stage {
    display: none !important;
  }
  body.organism-svg-open .organism-stage {
    display: block !important;
    margin-top: 16px;
    animation: organismFadeIn 380ms ease-out;
    /* Break out of the section's gutter so the map gets full viewport width. */
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    /* Allow horizontal scroll so the SVG can render at a useful min-width
       even on the narrowest phones — touch-swipe to pan. */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  body.organism-svg-open .organism {
    min-width: 760px;
  }
  @keyframes organismFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Copy switch */
  .organism-section .section-sub .desk-only { display: none; }
  .organism-section .section-sub .mob-only { display: inline; }

  /* Toggle button */
  .organism-mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 32px auto 8px;
    padding: 14px 22px;
    width: calc(100% - 44px);
    max-width: 360px;
    border: 1px solid rgba(255, 255, 255,0.22);
    background: rgba(255, 255, 255,0.05);
    color: var(--cream, #ffffff);
    font-family: var(--mono, "JetBrains Mono", ui-monospace, monospace);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    cursor: pointer;
    transition: background 220ms ease, border-color 220ms ease;
  }
  .organism-mobile-toggle:hover,
  .organism-mobile-toggle:focus-visible {
    background: rgba(255, 255, 255,0.10);
    border-color: rgba(255, 255, 255,0.40);
    outline: none;
  }
  .organism-mobile-toggle__chev {
    display: inline-block;
    width: 10px; height: 10px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 280ms ease;
  }
  body.organism-svg-open .organism-mobile-toggle__chev {
    transform: rotate(-135deg) translate(-2px, -2px);
  }
  body.organism-svg-open .organism-mobile-toggle__label::after {
    content: " (hide)";
    opacity: 0.55;
  }
}


/* =============================================================
   MOBILE FIX — Behavioral Matrix grid (May 14)
   The 3-col grid overflows on narrow phones (≤640px).
   Drop to 2 cols, tighten padding/type so MODE 03/06/09 stay on-screen.
   ============================================================= */
@media (max-width: 640px) {
  .ring-index-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ring-index-cell {
    padding: 10px 10px 12px;
    min-width: 0; /* allow flex/grid item to shrink below content size */
  }
  .ring-index-num {
    font-size: 8.5px;
  }
  .ring-index-name {
    font-size: 10.5px;
    /* Allow long names like REDIRECTION/PERFORMANCE to break cleanly */
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* Extra-narrow phones (≤380px) — fall back to a single column
   so labels never truncate. */
@media (max-width: 380px) {
  .ring-index-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   MOCK 5 — CLOSER · LIBRARY MODE
   Cream surface + Aubergine type. Editorial, calm, authoritative.
   Scoped to .closer[data-mode="library"] so it cannot bleed
   into other dark sections.
   ============================================================= */
:root {
  --aubergine:        #a3296f;
  --aubergine-deep:   #721d4e;
  --aubergine-soft:   #a3296f;
  --aubergine-tint:   rgba(100, 0, 92, 0.08);
}

/* Closer section in library mode */
.closer[data-mode="library"] {
  background: var(--cream);
  color: var(--aubergine);
}

/* Editorial paper-wash: a touch warmer in the top-right, a hint of
   dusty rose in the bottom-left. Pushed slightly stronger than v1 so
   the section reads as composed, not flat. */
.closer[data-mode="library"]::before {
  background:
    radial-gradient(ellipse 70% 60% at 88% 18%, rgba(100, 0, 92, 0.09) 0%, transparent 62%),
    radial-gradient(ellipse 75% 65% at 8% 92%, rgba(217, 167, 196, 0.28) 0%, transparent 65%);
}

/* Corner SVG triangles — flip from brand gold to aubergine */
.closer[data-mode="library"] .closer-corner g {
  fill: var(--aubergine) !important;
  opacity: 0.85;
}

/* Headline — keep the cream/gold split but invert:
   primary in deep ink-aubergine, accent in italic aubergine */
.closer[data-mode="library"] .closer-head {
  color: #1a0a18; /* near-black with a plum bias */
}
.closer[data-mode="library"] .closer-head .gold {
  color: var(--aubergine);
  font-style: italic;
}

/* Subhead — quiet aubergine-tinted body */
.closer[data-mode="library"] .closer-sub {
  color: rgba(26, 10, 24, 0.72);
}

/* Eyebrow mono-tag — aubergine on cream, deepened for contrast */
.closer[data-mode="library"] .mono-tag.cream {
  color: var(--aubergine-deep);
  border-color: rgba(74, 0, 68, 0.55);
  letter-spacing: 0.14em;
}
.closer[data-mode="library"] .mono-tag.cream .dot-gold {
  background: var(--aubergine);
}

/* Primary CTA — solid aubergine pill (the move) */
.closer[data-mode="library"] .btn-gold {
  background: var(--aubergine);
  color: var(--cream);
}
.closer[data-mode="library"] .btn-gold:hover {
  background: var(--aubergine-deep);
  color: var(--cream);
  transform: translateY(-1px);
}

/* Secondary CTA — aubergine outline on cream */
.closer[data-mode="library"] .btn-ghost-cream {
  color: var(--aubergine);
  border-color: rgba(100, 0, 92, 0.35);
}
.closer[data-mode="library"] .btn-ghost-cream:hover {
  background: rgba(100, 0, 92, 0.06);
  border-color: var(--aubergine);
}

/* Seam INTO the library closer: invert the SVG transition fill
   so the dripping triangles from the playbook section land on
   cream instead of dark plum. */
.horizon[data-seam="playbook-to-closer"][data-mode="library"] svg path {
  fill: var(--cream);
}

/* Mobile — slightly tighter type so "the diagnosis." never clips
   on the 360-420px viewports we already fixed elsewhere. */
@media (max-width: 640px) {
  .closer[data-mode="library"] .closer-head {
    font-size: clamp(38px, 11vw, 56px);
    letter-spacing: -0.02em;
  }
  .closer[data-mode="library"] .closer-sub {
    font-size: 16px;
    line-height: 1.55;
  }
  /* Pull the corner triangles down and shrink them so they
     don't crowd the stacked CTAs at 360-420px. */
  .closer[data-mode="library"] .closer-corner {
    transform: scale(0.55);
    transform-origin: bottom right;
    opacity: 0.75;
  }
}

/* ============================================================
   Cream-closer → dark footer bleed (Mock 5)
   A 96px transitional band that gradients from cream up top
   to the footer's deep ink at the bottom, with a faint
   aubergine vignette in the middle so the eye doesn't jump.
   Only renders when the closer is in library mode.
   ============================================================ */
/* The bleed div is only ever rendered alongside the library-mode
   closer (it sits between </main> and <footer>), so we can style it
   unconditionally. If we ever revert the closer, we just delete the
   <div class="closer-footer-bleed"> from the HTML. */
.closer-footer-bleed {
  display: block;
  height: 96px;
  width: 100%;
  background:
    radial-gradient(ellipse 55% 140% at 78% -10%, rgba(100, 0, 92, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 50% 130% at 18% -10%, rgba(217, 167, 196, 0.18) 0%, transparent 60%),
    linear-gradient(to bottom,
      var(--cream) 0%,
      #ead4cd 28%,
      #b08398 50%,
      #a3296f 72%,
      #721d4e 90%,
      #0d0d0d 100%);
  margin: 0;
  pointer-events: none;
}

@media (max-width: 640px) {
  .closer-footer-bleed {
    height: 72px;
  }
}
