/* ============================================================
   Thomas Cox — bold modern editorial
   Palette + font tokens read from localStorage at page boot
   (see boot.js) so tweaks persist across navigation.
   ============================================================ */

:root {
  /* ── Sage scale ─────────────────────────────────────────────── */
  --sage-50:  #f4f6f2;   /* page bg */
  --sage-100: #e6ece3;   /* subtle tint on cards/sections */
  --sage-200: #cdd9c8;   /* light borders, dividers */
  --sage-300: #adc0a6;   /* watermarks, secondary borders */
  --sage-400: #8aa888;   /* mid sage */
  --sage-500: #6B8F71;   /* primary sage — accent, dot, links */
  --sage-600: #537060;   /* hover states */
  --sage-700: #3d5447;   /* text on light, button fill */
  --sage-800: #2a3b31;   /* deep surface */
  --sage-900: #1e2e22;   /* darkest — headings, nav, footer, dark cards */
  --cream:    #FAF7F0;   /* warm off-white for alternating sections */
  --coral:    #FF5B2E;   /* orange accent — unchanged */

  /* Default palette — overwritten by boot.js if user picked another */
  --bg: var(--sage-50);
  --ink: var(--sage-900);
  --ink-dim: var(--sage-500);
  --rule: var(--sage-900);
  --paper: #FFFFFF;
  --accent: var(--sage-500);
  --accent-ink: #FFFFFF;
  --accent-2: var(--coral);

  /* Display + body type — also overwritable */
  --font-display: "Bricolage Grotesque", "Boldonse", serif;
  --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  --maxw: 1360px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Shadow system */
  --shadow-sm:  0 1px 2px rgba(30,46,34,.05), 0 4px 12px rgba(30,46,34,.08);
  --shadow-md:  0 2px 4px rgba(30,46,34,.05), 0 8px 28px rgba(30,46,34,.11), 0 24px 56px rgba(30,46,34,.07);
  --shadow-lg:  0 4px 8px rgba(30,46,34,.06), 0 20px 48px rgba(30,46,34,.14), 0 56px 112px rgba(30,46,34,.09);
  --shadow-hover: 0 2px 4px rgba(30,46,34,.06), 0 16px 40px rgba(30,46,34,.20), 0 40px 80px rgba(30,46,34,.13);
  --shadow-dark: 0 2px 4px rgba(0,0,0,.2), 0 12px 36px rgba(0,0,0,.35), 0 32px 72px rgba(0,0,0,.2);
  --shadow-glow-accent: 0 0 0 1px rgba(107,143,113,.3), 0 0 24px rgba(107,143,113,.25), 0 0 80px rgba(107,143,113,.10);
}

/* ============================================================
   ENGAGEMENT CARD DESIGN SYSTEM — shared primitives
   ============================================================ */
:root {
  /* Status palette — used identically across all 10 cards */
  --status-absent:     #E8392A;
  --status-competitor: #D97706;
  --status-partial:    #6B7280;
  --status-owned:      #2D6A4F;

  /* Status fills (15% opacity backgrounds) */
  --status-absent-bg:     rgba(232,57,42,.12);
  --status-competitor-bg: rgba(217,119,6,.12);
  --status-partial-bg:    rgba(107,114,128,.10);
  --status-owned-bg:      rgba(45,106,79,.10);

  /* Card shell */
  --card-radius: 16px;
  --card-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --card-shadow-hover: 0 2px 8px rgba(0,0,0,.10), 0 8px 32px rgba(0,0,0,.10);

  /* Engagement card spacing (8px base) */
  --ew-pad-x: clamp(24px, 3vw, 40px);
  --ew-pad-y: clamp(24px, 3.5vw, 40px);

  /* Terminal dark */
  --terminal-bg: #0D1117;
  --terminal-surface: #21262D;
  --terminal-border: #30363D;
  --terminal-text: #C9D1D9;
  --terminal-dim: #8B949E;
  --terminal-blue: #58A6FF;
  --terminal-green: #3FB950;
  --terminal-red: #F85149;
  --terminal-amber: #D29922;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- type scale ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1.display { font-size: clamp(48px, 8.4vw, 132px); }
.hero-h1 { font-size: clamp(44px, 7.2vw, 96px) !important; }
h2.display { font-size: clamp(40px, 7vw, 104px); }
h3.display { font-size: clamp(28px, 3.6vw, 56px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.eyebrow .dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  transform: translateY(-1px);
}

.lede {
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.4;
  max-width: 56ch;
  color: var(--ink);
  text-wrap: pretty;
}

.mono { font-family: var(--font-mono); }
.dim { color: var(--ink-dim); }

/* ---------- container / nav ---------- */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,246,242,.72);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(30,46,34,.1);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.topnav.scrolled {
  background: rgba(244,246,242,.96);
  border-bottom-color: rgba(30,46,34,.16);
  box-shadow: 0 4px 24px rgba(30,46,34,.07);
}
.topnav .row {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.brandmark {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.brandmark .glyph {
  width: 32px; height: 32px;
  background: var(--ink);
  color: var(--accent);
  display: grid; place-items: center;
  border-radius: 9px;
  transition: transform .25s ease, background .25s ease;
}
.brandmark .glyph svg {
  width: 19px; height: 19px;
  display: block;
}
.brandmark:hover .glyph {
  transform: rotate(-8deg) scale(1.05);
  background: var(--accent);
  color: var(--ink);
}
.brandmark-word {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
}
.brandmark-promptly {
  color: var(--ink);
  font-weight: 700;
}
.brandmark-found {
  color: var(--accent);
  font-weight: 700;
  font-style: italic;
  margin-left: 2px;
}
.navlinks {
  display: flex; gap: 6px; align-items: center;
}
.navlinks a {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0;
  padding: 8px 14px;
  border-radius: 999px;
  position: relative;
}
.navlinks a.is-current { background: var(--sage-900); color: #fff; }
.navlinks a:not(.is-current):hover { background: rgba(30,46,34,0.07); }
.nav-cta {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0;
  padding: 10px 16px;
  background: var(--sage-700);
  color: #fff;
  border-radius: 999px;
  border: 1px solid var(--sage-700);
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .15s ease, background .15s ease;
}
.nav-cta:hover { transform: translateY(-2px); background: var(--sage-900); box-shadow: var(--shadow-md); }

.mobile-only { display: none; }
@media (max-width: 760px) {
  .navlinks { display: none; }
  .mobile-only { display: inline-flex; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(56px, 8vw, 120px) 0 clamp(72px, 10vw, 140px);
  border-bottom: 1px solid var(--sage-200);
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }

.hero-meta {
  display: flex; gap: 40px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 56px);
}
.hero-meta > div { min-width: 140px; }
.hero-meta .label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--ink-dim);
  margin-bottom: 6px;
  opacity: 0.6;
}
.hero-meta .val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero-meta .val .pulse {
  display: inline-block; width: 9px; height: 9px;
  background: #1B9E5C; border-radius: 50%;
  margin-right: 8px; transform: translateY(-2px);
  box-shadow: 0 0 0 0 rgba(27,158,92, .6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(27,158,92, .5); }
  70%  { box-shadow: 0 0 0 10px rgba(27,158,92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(27,158,92, 0); }
}

.hero h1 .accent-word {
  display: inline-block;
  position: relative;
  isolation: isolate;
  padding: 0.02em 0.2em 0.08em;
  margin: 0 -0.05em;
  color: var(--ink);
  transition: color 0.35s ease;
}
/* The painted highlight box — wipes in left → right when --painted is set */
.hero h1 .accent-word::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  background: var(--accent);
  border-radius: 8px;
  transform: rotate(-1.2deg) scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero h1.hero-h1--painted .accent-word::before {
  transform: rotate(-1.2deg) scaleX(1);
}
.hero h1.hero-h1--painted .accent-word {
  color: var(--accent-ink);
  transition: color 0.3s ease 0.25s;
}

.hero h1 .strike {
  position: relative;
  color: var(--ink-dim);
}
/* The strikethrough line — draws left → right when --struck is set */
.hero h1 .strike::after {
  content: "";
  position: absolute; left: -3%; right: -3%; top: 52%;
  height: 7px;
  background: var(--accent-2);
  transform: rotate(-2deg) scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.hero h1.hero-h1--struck .strike::after {
  transform: rotate(-2deg) scaleX(1);
}

.hero-after {
  max-width: 64ch;
  margin-top: clamp(28px, 4vw, 56px);
}
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px;
}
.btn {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0;
  padding: 14px 22px;
  border: 1.5px solid var(--sage-700);
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  background: transparent;
  color: var(--sage-700);
}
.btn.primary { background: var(--sage-700); color: #fff; border-color: var(--sage-700); }
.btn.primary:hover { background: var(--sage-900); border-color: var(--sage-900); }
.btn.accent { background: var(--sage-500); color: #fff; border-color: var(--sage-500); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* marquee */
.marquee {
  border-top: 1px solid var(--sage-900);
  border-bottom: 1px solid var(--sage-900);
  background: var(--sage-900);
  color: var(--sage-50);
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 5vw, 64px);
  line-height: 1;
  padding: clamp(14px, 1.6vw, 22px) 0;
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: scroll 38s linear infinite;
  gap: 48px;
  padding-right: 48px;
}
.marquee-track .star { color: var(--accent-2); }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

section.band {
  padding: clamp(56px, 7vw, 112px) 0;
  border-bottom: 1px solid var(--sage-200);
  position: relative;
}
.band.paper { background: #FFFFFF; }
.band.cream { background: var(--cream); }
.band.ink { background: var(--sage-900); color: #fff; }
.band.ink .eyebrow { color: rgba(255,255,255,.55); }
.band.ink .dim { color: rgba(255,255,255,.6); }

.section-head {
  display: block;
  margin-bottom: clamp(32px, 4vw, 56px);
}
/* Services: tighter heading-to-cards connection */
#services .section-head {
  margin-bottom: clamp(24px, 2.5vw, 36px);
}

/* ---------- services grid ---------- */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-radius: 20px;
}
/* First card spans full width — the flagship service */
.svc-grid > article:first-child {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 56px);
  min-height: 0;
}
.svc-grid > article:first-child .svc-desc {
  max-width: 52ch;
  flex: 1;
}
.svc-grid > article:first-child .svc-title {
  font-size: clamp(32px, 3.6vw, 52px);
  max-width: 10ch;
  flex-shrink: 0;
}
/* Last card (06) spans 2 cols to balance the 3+1 layout */
.svc-grid > article:last-child {
  grid-column: span 2;
}
.svc-grid > article {
  padding: clamp(24px, 3vw, 40px);
  background: var(--sage-50);
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 260px;
  transition: background .25s ease, color .25s ease;
  cursor: pointer;
  box-shadow: inset 0 0 0 0 transparent;
}
.svc-grid > article:hover { background: var(--sage-900); color: #fff; }
.svc-grid > article:hover .svc-num { color: #fff; opacity: 0.35; }
.svc-grid > article:hover .svc-tags span { border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.45); background: transparent; }
.svc-grid > article:hover .arr-big { transform: translate(5px, -5px); color: var(--sage-400); }

.svc-num {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--ink-dim);
  opacity: 0.4;
  display: flex; justify-content: space-between; align-items: center;
}
.svc-num .arr-big {
  display: inline-block;
  transition: transform .2s ease, color .2s ease;
  font-size: 22px;
  opacity: 1;
}
.svc-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
}
.svc-desc { font-size: 15px; line-height: 1.55; max-width: 40ch; opacity: .75; }
.svc-grid > article:hover .svc-desc { opacity: .65; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.svc-tags span {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0;
  padding: 4px 10px;
  background: var(--sage-100);
  border: 1px solid var(--sage-300);
  border-radius: 999px;
  color: var(--sage-700);
  transition: border-color .25s, color .25s, background .25s;
}

@media (max-width: 860px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid > article:first-child { flex-direction: column; }
  .svc-grid > article:first-child .svc-title { max-width: none; font-size: clamp(28px, 5vw, 40px); }
  .svc-grid > article:last-child { grid-column: span 1; }
}
@media (max-width: 600px) {
  .svc-grid { grid-template-columns: 1fr; border-radius: 12px; }
  .svc-grid > article:last-child { grid-column: span 1; }
}

/* ---------- case proof (anonymized) ---------- */

/* Receipt / proof cards — asymmetric: dark card wider */
.proof-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.proof-card {
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.proof-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.proof-card--dark {
  background: var(--sage-900);
  color: #fff;
}
.proof-card--light {
  background: var(--sage-50);
  color: var(--sage-900);
  border: 1px solid var(--sage-200);
}
.proof-card-top {
  padding: clamp(28px, 3.5vw, 48px) clamp(28px, 3.5vw, 48px) clamp(20px, 2.5vw, 32px);
}
.proof-card-body {
  padding: 0 clamp(28px, 3.5vw, 48px) clamp(24px, 3vw, 36px);
  flex: 1;
}
.proof-card-foot {
  padding: clamp(16px, 2vw, 24px) clamp(28px, 3.5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.proof-card--dark .proof-card-foot {
  border-top: 1px solid rgba(255,255,255,.1);
}
.proof-card--light .proof-card-foot {
  border-top: 1px solid var(--sage-200);
}
.proof-meta {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0;
  margin-bottom: 20px;
}
.proof-card--dark .proof-meta { color: rgba(255,255,255,.45); }
.proof-card--light .proof-meta { color: var(--sage-500); }
.proof-big {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 140px);
  font-weight: 800;
  line-height: .85;
  letter-spacing: -.05em;
  position: relative;
}
.proof-big--accent { color: var(--sage-700); }
.proof-big-unit {
  font-size: .4em;
  vertical-align: top;
  margin-left: 2px;
  opacity: .6;
}
.proof-headline {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 10px;
}
.proof-card--dark .proof-headline { color: rgba(255,255,255,.75); }
.proof-challenge {
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.65;
  margin: 0 0 24px;
}
.proof-card--dark .proof-challenge { color: rgba(255,255,255,.55); }
.proof-card--light .proof-challenge { color: var(--sage-700); }
.proof-kv {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.proof-kv > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
}
.proof-card--dark .proof-kv > div { border-bottom: 1px solid rgba(255,255,255,.08); }
.proof-card--light .proof-kv > div { border-bottom: 1px solid var(--sage-200); }
.proof-kv > div:last-child { border-bottom: 0; padding-bottom: 0; }
.proof-k {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0;
  flex-shrink: 0;
}
.proof-card--dark .proof-k { color: rgba(255,255,255,.4); }
.proof-card--light .proof-k { color: var(--sage-500); }
.proof-v {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 700;
  letter-spacing: -.01em;
  text-align: right;
}
.proof-tag {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0;
}
.proof-card--dark .proof-tag { color: rgba(255,255,255,.3); }
.proof-card--light .proof-tag { color: var(--sage-500); }
.proof-cta {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.proof-card--dark .proof-cta { color: var(--sage-400); }
.proof-card--light .proof-cta { color: var(--sage-700); }
@media (max-width: 760px) {
  .proof-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Proof cards v3 — trajectory chart cards (.pcard)
   ============================================================ */
.pcard {
  position: relative;
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  min-height: 380px;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease;
}
.pcard--dark {
  background: var(--sage-900);
  color: #fff;
  --label: rgba(255,255,255,.5);
  --line: rgba(255,255,255,.12);
}
.pcard--light {
  background: var(--sage-50);
  color: var(--sage-900);
  border: 1px solid var(--sage-200);
  --label: var(--sage-500);
  --line: var(--sage-200);
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.pcard-chart {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 62%;
  z-index: 0;
}
.pcard-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s cubic-bezier(.45,.05,.2,1);
  filter: drop-shadow(0 0 6px rgba(141,179,150,.4));
}
.pcard-area {
  opacity: 0;
  transition: opacity 1s ease .6s;
}
.pcard.is-in .pcard-line  { stroke-dashoffset: 0; }
.pcard.is-in .pcard-area  { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .pcard-line { transition: none; stroke-dashoffset: 0; }
  .pcard-area { transition: none; opacity: 1; }
}

.pcard-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: clamp(28px, 3vw, 40px);
}

.pcard-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.pcard-sector {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.pcard-region {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--label);
  white-space: nowrap;
}

.pcard-hero { margin-bottom: 16px; }
.pcard-hero-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(80px, 11vw, 132px);
  font-weight: 800;
  line-height: .82;
  letter-spacing: -.055em;
}
.pcard--light .pcard-hero-num { color: var(--sage-700); }
.pcard-hero-label {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 600;
  line-height: 1.25;
  margin-top: 10px;
  max-width: 22ch;
}
.pcard--dark .pcard-hero-label { color: rgba(255,255,255,.82); }

.pcard-challenge {
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 auto;
  color: var(--label);
  max-width: 42ch;
}

.pcard-stats {
  display: flex;
  align-items: stretch;
  gap: clamp(14px, 2vw, 26px);
  margin: 24px 0 22px;
  flex-wrap: wrap;
}
.pcard-stat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 92px;
}
.pcard-stat + .pcard-stat { position: relative; padding-left: clamp(14px, 2vw, 26px); }
.pcard-stat + .pcard-stat::before {
  content: "";
  position: absolute;
  left: 0; top: 2px; bottom: 2px;
  width: 1px;
  background: var(--line);
}
.pcard-stat-v {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 7px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .5s ease, transform .5s ease;
}
.pcard--light .pcard-stat-v { color: var(--sage-700); }
.pcard--dark .pcard-stat-v { color: var(--sage-400); }
.pcard.is-in .pcard-stat-v { opacity: 1; transform: translateY(0); }
.pcard-stat:nth-child(1) .pcard-stat-v { transition-delay: .35s; }
.pcard-stat:nth-child(2) .pcard-stat-v { transition-delay: .5s; }
.pcard-stat:nth-child(3) .pcard-stat-v { transition-delay: .65s; }
.pcard-stat-k {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.45;
  letter-spacing: .03em;
  color: var(--label);
  text-transform: uppercase;
}

/* Competitive edge callout — the punchline line */
.pcard-edge {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 22px;
  padding: 13px 16px 13px 18px;
  border-radius: 9px;
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.pcard-edge::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
}
.pcard--dark .pcard-edge {
  background: rgba(20,32,24,.78);
  border: 1px solid rgba(141,179,150,.28);
  color: #fff;
}
.pcard--dark .pcard-edge::before { background: var(--sage-400); }
.pcard--light .pcard-edge {
  background: rgba(255,255,255,.85);
  border: 1px solid var(--sage-200);
  color: var(--sage-900);
}
.pcard--light .pcard-edge::before { background: var(--sage-700); }

.pcard-foot {
  margin-top: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.pcard-tags {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--label);
}
.pcard-cta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.pcard--dark .pcard-cta { color: var(--sage-400); }
.pcard--light .pcard-cta { color: var(--sage-700); }
.pcard-cta .arr { transition: transform .2s ease; }
.pcard-cta:hover .arr { transform: translateX(4px); }

@media (max-width: 760px) {
  .pcard { min-height: 0; }
  .pcard-hero-num { font-size: clamp(60px, 16vw, 96px); }
  .pcard-stats { gap: 14px; }
}

/* ---------- AI check teaser (homepage) ---------- */

.aic-teaser {
  background: var(--sage-900);
  color: #fff;
  border-radius: 20px;
  padding: clamp(36px, 5vw, 72px) clamp(32px, 4.5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-dark);
}
.aic-teaser-corner {
  position: absolute;
  top: 0; left: 0;
  width: clamp(100px, 12vw, 200px);
  height: 5px;
  background: var(--sage-500);
  pointer-events: none;
}
.aic-teaser-glow-a {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  width: 420px; height: 420px;
  background: var(--sage-500);
  filter: blur(130px);
  opacity: 0.14;
  top: -160px; left: -100px;
}
.aic-teaser-glow-b {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  width: 340px; height: 340px;
  background: var(--sage-400);
  filter: blur(130px);
  opacity: 0.10;
  bottom: -120px; right: -60px;
}
.aic-teaser-left, .aic-teaser-right { position: relative; z-index: 1; }
.aic-teaser-h {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  margin: 20px 0 16px;
  text-wrap: balance;
}
.aic-teaser-h em { font-style: italic; color: var(--sage-400); }
.aic-teaser-sub {
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.65;
  color: rgba(255,255,255,.6);
  max-width: 44ch;
  margin-bottom: 24px;
}
.aic-teaser-engines {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0;
  color: rgba(255,255,255,.35);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.aic-engine-sep { opacity: .35; }
.aic-teaser-form .form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0;
  color: rgba(255,255,255,.45);
  margin-bottom: 10px;
}
.aic-teaser-form .form-row {
  display: flex;
  gap: 0;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s;
}
.aic-teaser-form .form-row:focus-within {
  border-color: var(--sage-400);
}
.aic-teaser-form input {
  flex: 1;
  background: rgba(255,255,255,.07);
  border: none;
  outline: none;
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  min-width: 0;
}
.aic-teaser-form input::placeholder { color: rgba(255,255,255,.3); }
.aic-teaser-form button.run {
  background: var(--sage-500);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0;
  padding: 14px 20px;
  white-space: nowrap;
  transition: background .15s, transform .1s;
}
.aic-teaser-form button.run:hover { filter: brightness(1.1); }
.aic-teaser-form button.run:active { transform: scale(.97); }
@media (max-width: 820px) {
  .aic-teaser { grid-template-columns: 1fr; gap: 32px; }
  [data-aic-demo] { display: none; }
}

/* Slim demo readout (homepage teaser right col) */
[data-aic-demo] {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  z-index: 1;
}
.aic-demo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.aic-demo-brand-logo {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,.12);
  object-fit: contain;
  flex-shrink: 0;
}
.aic-demo-brand-name {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0;
  color: rgba(255,255,255,.8);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aic-demo-brand-score {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--sage-400);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.aic-demo-prompt {
  font-family: var(--font-body);
  font-size: 11px;
  font-style: italic;
  color: rgba(255,255,255,.45);
  line-height: 1.45;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: rgba(255,255,255,.05);
  border-left: 2px solid rgba(255,255,255,.15);
  border-radius: 0 4px 4px 0;
}
.aic-demo-prompt-icon {
  font-style: normal;
  color: rgba(255,255,255,.2);
  font-size: 14px;
  margin: 0 2px;
}
.aic-demo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
.aic-demo-engine {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0;
  color: rgba(255,255,255,.45);
  width: 110px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.aic-engine-icon {
  width: 14px; height: 14px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 2px;
}
.aic-engine-icon--invert { filter: invert(1) brightness(0.7); }
.aic-engine-icon--gemini { filter: hue-rotate(200deg) saturate(1.5) brightness(0.85); }
.aic-engine-icon--svg {
  background: none;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.aic-engine-icon--svg svg { width: 14px; height: 14px; display: block; }
.aic-engine-icon--letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  background: rgba(255,255,255,.15);
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  letter-spacing: 0;
  flex-shrink: 0;
}
.aic-demo-bar-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  overflow: hidden;
}
.aic-demo-bar {
  display: block;
  height: 100%;
  border-radius: 2px;
  transition: width 1s cubic-bezier(.2,.7,.2,1);
  width: 0;
}
.aic-demo-score {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.5);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}
.aic-demo-verdict {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,.45);
}
.aic-demo-verdict strong { color: rgba(255,255,255,.8); }

/* Demo panel header */
.aic-demo-header {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.aic-demo-header-label {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: rgba(255,255,255,.9);
  margin-bottom: 3px;
}
.aic-demo-header-hint {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
}

/* Demo pill switcher */
.aic-demo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.aic-demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.5);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  text-transform: lowercase;
}
.aic-demo-pill:hover {
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
}
.aic-demo-pill.is-active {
  border-color: var(--sage-400);
  background: rgba(107,143,113,.18);
  color: var(--sage-300);
}
.aic-pill-logo {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ============================================================
   Engagement deliverable timeline widget
   ============================================================ */
.ew-wrap {
  /* No border. This is a document, not a dashboard panel. */
  perspective: 1200px;
  perspective-origin: 50% 40%;
}
.ew-step-visual,
#vis03-audit,
#vis04-wrap,
#vis05-wrap,
#vis07-wrap,
#vis08-wrap,
#vis10-dashboard {
  perspective: 800px;
}

/* Header — typographic, not chrome */
.ew-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 0 0 clamp(28px, 3vw, 44px);
  border-bottom: 1px solid rgba(14,15,12,.12);
  margin-bottom: clamp(48px, 5vw, 72px);
}
.ew-client { display: flex; align-items: center; gap: 14px; }
.ew-favicon {
  width: 22px; height: 22px;
  border-radius: 3px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: .7;
}
.ew-client-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1;
}
.ew-client-meta {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--ink-dim);
  margin-top: 4px;
  opacity: .65;
}
.ew-note {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--ink-dim);
  opacity: .4;
  max-width: 28ch;
  text-align: right;
  line-height: 1.6;
}

/* ---- Vertical timeline ---- */
.ew-vtl {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 4.5vw, 64px);
}

/* Phase markers — typographic, a ruled line with overprinted label */
.ew-phase-marker {
  display: flex;
  align-items: center;
  gap: 16px;
  /* no extra margin; the vtl gap handles spacing */
}
.ew-phase-marker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ink);
  opacity: .1;
}
.ew-phase-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: .4;
  white-space: nowrap;
}
.ew-phase-name {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .5;
  white-space: nowrap;
}

/* Step blocks — no outer border, no grid gutter column */
.ew-step {
  display: block;
  /* stepped reveal handled by .reveal */
}
/* The old 80px meta column is gone. Tags and step numbers go inline in the header. */
.ew-step-meta { display: none; }
.ew-step-num  { display: none; }

/* Tags — horizontal, compact, inline */
.ew-step-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  transform: none;
  border: 1px solid transparent;
  display: inline-block;
}
.ew-tag--audit   { background: rgba(14,15,12,.05); color: var(--ink-dim); border-color: rgba(14,15,12,.12); }
.ew-tag--onsite  { background: rgba(14,15,12,.04); color: var(--ink-dim); border-color: rgba(14,15,12,.1); }
.ew-tag--offsite { background: rgba(200,130,30,.07); color: rgba(140,90,10,.8); border-color: rgba(180,120,0,.18); }
.ew-tag--geo     { background: rgba(180,220,30,.09); color: rgba(70,90,0,.75); border-color: rgba(140,170,0,.2); }

/* Step body — full bleed, no padding on the wrapper itself */
.ew-step-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-top: 0;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.ew-step-body:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}
.ew-step-text {
  padding: clamp(28px, 3.5vw, 48px) clamp(24px, 3vw, 40px);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ew-step-phase {
  font-size: 10px;
  font-weight: 600;
  color: var(--sage-500, #6B8F71);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 0 0 4px;
  opacity: 0.75;
}
.ew-step-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--ink);
  margin: 0;
  line-height: 1.08;
}
.ew-step-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink);
  opacity: .72;
  margin: 0;
}
.ew-step-deliverable {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--ink-dim);
  line-height: 1.6;
  padding: 12px 14px;
  background: rgba(14,15,12,.035);
  border-left: 1.5px solid rgba(14,15,12,.18);
  margin-top: auto;
  border-radius: 0 4px 4px 0;
}

/* Visual column */
.ew-step-visual {
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  box-sizing: border-box;
}
/* ---- Entity spider split (stacked: spider hero, matrix detail below) ---- */
.ew-vis-entity-split {
  display: flex;
  flex-direction: column;
}
.ew-spider-panel {
  padding: clamp(20px, 2.5vw, 32px);
  border-bottom: 1px solid rgba(14,15,12,.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper);
}
.ew-matrix-panel {
  padding: clamp(20px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-x: auto;
  background: var(--paper);
}
.ew-spider-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Spider spoke + node entrance animations */
.sp-spoke {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset .8s cubic-bezier(.4,0,.2,1);
}
.sp-node {
  opacity: 0;
  transition: opacity .5s ease;
}
#spider-svg.sp-active .sp-spoke { stroke-dashoffset: 0; }
#spider-svg.sp-active .sp-node  { opacity: 1; }
/* Stagger spokes by type */
#spider-svg.sp-active .sp-spoke-p1 { transition-delay: .05s; }
#spider-svg.sp-active .sp-spoke-p2 { transition-delay: .2s; }
#spider-svg.sp-active .sp-spoke-ok  { transition-delay: .35s; }
/* Stagger nodes */
#spider-svg.sp-active .sp-node-p1  { transition-delay: .4s; }
#spider-svg.sp-active .sp-node-p2  { transition-delay: .55s; }
#spider-svg.sp-active .sp-node-ok  { transition-delay: .65s; }

/* ---- Audit scorecard (replaces SVG) ---- */
.ew-audit-scorecard {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
}
.ew-asc-section {
  padding: clamp(16px, 2vw, 22px) clamp(20px, 2.5vw, 28px);
  border-bottom: 1px solid rgba(242,239,231,.07);
}
.ew-asc-section:last-child { border-bottom: none; }
.ew-asc-section-head {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(242,239,231,.3);
  margin-bottom: 12px;
}
.ew-asc-rows { display: flex; flex-direction: column; gap: 9px; }
.ew-asc-row {
  display: grid;
  grid-template-columns: 8px 1fr 80px 36px;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
  padding: 3px 4px;
  margin: -3px -4px;
  transition: background 0.2s, box-shadow 0.2s;
  cursor: default;
}
.ew-asc-row:hover {
  background: rgba(173,192,166,.07);
  box-shadow: inset 3px 0 0 rgba(107,143,113,.5);
}
.ew-asc-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.ew-asc-dot--fail { background: rgba(210,130,110,.85); box-shadow: 0 0 6px rgba(210,130,110,.35); }
.ew-asc-dot--warn { background: #adc0a6; box-shadow: 0 0 4px rgba(173,192,166,.4); }
.ew-asc-dot--pass { background: #6B8F71; box-shadow: 0 0 6px rgba(107,143,113,.4); }
.ew-asc-label {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(173,192,166,.75);
  white-space: nowrap;
}
.ew-asc-val {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(173,192,166,.4);
  margin-left: 6px;
}
.ew-asc-bar-wrap {
  height: 4px;
  background: rgba(173,192,166,.12);
  border-radius: 2px;
  overflow: hidden;
}
.ew-asc-bar {
  height: 4px;
  border-radius: 2px;
  width: var(--w, 0%);
  transition: width 1s cubic-bezier(.4,0,.2,1);
}
.ew-asc-bar--fail { background: rgba(210,130,110,.75); }
.ew-asc-bar--warn { background: #adc0a6; }
.ew-asc-bar--pass { background: #6B8F71; }
.ew-asc-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding: 3px 6px;
  border-radius: 3px;
}
.ew-asc-tag--fail { background: rgba(210,130,110,.18); color: rgba(210,130,110,.9); }
.ew-asc-tag--warn { background: rgba(173,192,166,.2); color: rgba(173,192,166,.9); }
.ew-asc-tag--pass { background: rgba(107,143,113,.18); color: rgba(107,143,113,.9); }

/* Schema JSON-LD panel (Step 5) */
.ew-step-body--schema { min-height: 420px; }
.ew-visual--schema { padding: 0 !important; }
.ew-jsonld {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ew-jsonld-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.ew-jsonld-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  opacity: .7;
}
.ew-jsonld-file {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,.3);
  letter-spacing: .05em;
  margin-left: 6px;
}
.ew-jsonld-code {
  flex: 1;
  margin: 0;
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.8;
  white-space: pre;
  overflow: hidden;
  color: rgba(255,255,255,.55);
}
.jt-key    { color: rgba(173,192,166,.85); }
.jt-str    { color: rgba(255,255,255,.55); }
.jt-str-acc { color: rgba(107,143,113,.75); }
.jt-num    { color: rgba(255,200,80,.75); }
.jt-brace  { color: rgba(255,255,255,.35); }
.jt-colon  { color: rgba(255,255,255,.25); }
.jt-comma  { color: rgba(255,255,255,.25); }
.ew-jsonld-callouts {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.ew-jsonld-note {
  padding: 8px 20px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .03em;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.ew-jsonld-note:last-child { border-bottom: none; }
.ew-jsonld-note--missing {
  color: rgba(232,52,28,.8);
  background: rgba(232,52,28,.06);
}
.ew-jsonld-note--missing::before { content: "✕ "; opacity: .7; }
.sc-edge {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset .7s cubic-bezier(.4,0,.2,1);
}
.sc-node {
  opacity: 0;
  transition: opacity .35s ease;
}
#schema-svg.sc-active .sc-edge    { stroke-dashoffset: 0; }
#schema-svg.sc-active .sc-node    { opacity: 1; }
#schema-svg.sc-active #sc-e1      { transition-delay: .05s; }
#schema-svg.sc-active #sc-e2      { transition-delay: .15s; }
#schema-svg.sc-active #sc-e3      { transition-delay: .25s; }
#schema-svg.sc-active #sc-e4      { transition-delay: .35s; }
#schema-svg.sc-active #sc-e5      { transition-delay: .45s; }
#schema-svg.sc-active #sc-e6      { transition-delay: .55s; }
#schema-svg.sc-active #sc-product { transition-delay: .1s; }
#schema-svg.sc-active #sc-brand   { transition-delay: .2s; }
#schema-svg.sc-active #sc-rating  { transition-delay: .3s; }
#schema-svg.sc-active #sc-offer   { transition-delay: .4s; }
#schema-svg.sc-active #sc-article { transition-delay: .5s; }
#schema-svg.sc-active #sc-person  { transition-delay: .6s; }
#schema-svg.sc-active #sc-org     { transition-delay: .7s; }

.ew-vis-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: .6;
}

/* ---- Entity gap matrix ---- */
.ew-entity-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}
.ew-eg-head {
  display: grid;
  grid-template-columns: 1fr 48px 72px 72px 72px;
  gap: 0;
  border-bottom: 2px solid rgba(14,15,12,.1);
  background: rgba(14,15,12,.03);
}
.ew-eg-head-cell {
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  border-left: 1px solid rgba(14,15,12,.07);
}
.ew-eg-head-cell:first-child { align-items: flex-start; border-left: none; padding-left: 16px; justify-content: center; }
.ew-eg-head-cell:nth-child(2) { border-left: none; }
.ew-eg-head-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--paper);
  border: 1.5px solid rgba(14,15,12,.14);
  box-shadow: 0 1px 4px rgba(14,15,12,.08);
}
.ew-eg-head-icon svg { width: 16px; height: 16px; }
.ew-eg-row {
  display: grid;
  grid-template-columns: 1fr 48px 72px 72px 72px;
  gap: 0;
  align-items: stretch;
  border-bottom: 1px solid rgba(14,15,12,.07);
  min-height: 58px;
}
.ew-eg-row:last-child { border-bottom: none; }
/* Tier accent: left border + subtle row tint */
.ew-eg-row--p1 { border-left: 3px solid rgba(200,40,40,.35); background: none; }
.ew-eg-row--p2 { border-left: 3px solid rgba(180,120,0,.28); background: none; }
.ew-eg-row--ok { border-left: 3px solid rgba(20,120,20,.22); background: none; }
.ew-eg-entity {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  padding: 10px 10px 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  line-height: 1.3;
}
.ew-eg-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--ink-dim);
  letter-spacing: .01em;
  line-height: 1.3;
  opacity: .82;
}
/* Coverage: bold % number + thin bar */
.ew-eg-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
}
.ew-eg-bar-track {
  width: 28px;
  height: 4px;
  background: rgba(14,15,12,.08);
  border-radius: 2px;
  overflow: hidden;
}
.ew-eg-bar {
  height: 4px;
  border-radius: 2px;
  width: var(--bw, 0%);
  transition: width .8s ease;
}
.ew-eg-bar--low  { background: rgba(232,52,28,.6); }
.ew-eg-bar--none { background: rgba(14,15,12,.18); }
.ew-eg-bar--mid  { background: rgba(200,122,10,.6); }
.ew-eg-bar--ok   { background: rgba(26,122,60,.65); }
.ew-eg-pct {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-dim);
  letter-spacing: -.01em;
}
/* Platform citation chips — full-cell heat-map fill */
.ew-eg-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 0 4px;
  border: none;
  background: none;
  white-space: nowrap;
  border-left: 1px solid rgba(14,15,12,.07);
}
.ew-chip--none       { background: rgba(200,40,40,.13);  color: rgba(160,20,20,.9); }
.ew-chip--rare       { background: rgba(200,40,40,.08);  color: rgba(160,30,30,.8); }
.ew-chip--mid        { background: rgba(200,140,0,.10);  color: rgba(140,95,0,.85); }
.ew-chip--competitor { background: rgba(200,140,0,.12);  color: rgba(130,85,0,.85); }
.ew-chip--ok         { background: rgba(20,140,20,.09);  color: rgba(20,100,20,.8); }
.ew-eg-pri {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ew-pri--1  { color: rgba(180,40,40,.9); }
.ew-pri--2  { color: rgba(150,100,0,.85); }
.ew-pri--ok { color: rgba(20,110,20,.75); }

/* ---- Card 01: Knowledge graph SVG ---- */
.vis01-kg-wrap {
  background: #F9FAFB;
  border-bottom: 1px solid #E5E7EB;
  overflow: hidden;
}
.vis01-kg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
}
.vis01-node { cursor: default; }
.vis01-node:hover circle { opacity: 0.85; }
.vis01-edge { transition: opacity 0.3s; }

/* ---- Card 01: Entity data table ---- */
.etbl {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 13px;
}
.etbl-th {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #6B7280;
  text-align: left;
  border-bottom: 2px solid #E5E7EB;
  background: #F9FAFB;
  white-space: nowrap;
}
.etbl-th--entity { padding-left: 16px; }
.etbl-th--bar { width: 148px; text-align: left; }
.etbl-th--chip { width: 88px; text-align: center; }
.etbl-platform-icon { display: inline-flex; align-items: center; vertical-align: middle; margin-right: 4px; }
.etbl-row { border-bottom: 1px solid #F3F4F6; }
.etbl-row:last-child { border-bottom: none; }
.etbl-row--absent { background: rgba(232,57,42,.025); }
.etbl-row--partial { background: transparent; }
.etbl-row--owned  { background: rgba(45,106,79,.03); }
.etbl-td-entity { padding: 12px 12px 12px 16px; }
.etbl-entity-name { display: block; font-weight: 500; color: #111827; font-size: 13px; }
.etbl-entity-sub  { display: block; font-size: 10px; color: #6B7280; margin-top: 2px; line-height: 1.4; }
.etbl-td-bar { padding: 12px 8px; vertical-align: middle; }
.etbl-bar-wrap { display: flex; align-items: center; gap: 8px; }
.etbl-bar {
  height: 4px; border-radius: 2px; width: var(--bw, 3px);
  flex-shrink: 0; max-width: 80px; min-width: 3px;
}
.etbl-bar--none { background: #E5E7EB; width: 3px; min-width: 3px; }
.etbl-bar--low  { background: var(--status-absent); opacity: 0.7; }
.etbl-bar--mid  { background: var(--status-competitor); opacity: 0.8; }
.etbl-bar--ok   { background: var(--status-owned); }
.etbl-pct { font-size: 11px; font-weight: 600; color: #374151; white-space: nowrap; min-width: 28px; }
.etbl-pct--zero  { color: var(--status-absent); }
.etbl-pct--owned { color: var(--status-owned); }
.etbl-td-chip { padding: 12px 8px; text-align: center; vertical-align: middle; }
.etbl-chip {
  display: inline-block; font-family: var(--font-body);
  font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 20px; white-space: nowrap;
}
.etbl-chip--absent     { background: var(--status-absent-bg);     color: var(--status-absent); }
.etbl-chip--competitor { background: var(--status-competitor-bg); color: var(--status-competitor); }
.etbl-chip--partial    { background: var(--status-partial-bg);    color: var(--status-partial); }
.etbl-chip--owned      { background: var(--status-owned-bg);      color: var(--status-owned); font-weight: 700; }

/* ---- Technical audit grid ---- */
.ew-audit-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(14,15,12,.12);
  font-family: var(--font-mono);
  font-size: 11px;
}
.ew-audit-row {
  display: grid;
  grid-template-columns: 20px 1fr auto 52px;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(14,15,12,.06);
}
.ew-audit-row:last-child { border-bottom: none; }
.ew-audit-check { font-size: 10px; text-align: center; }
.ew-audit-ok   { color: rgba(20,120,20,.8); }
.ew-audit-warn { color: rgba(180,120,0,.85); }
.ew-audit-fail { color: rgba(200,40,40,.8); }
.ew-audit-item { color: var(--ink); }
.ew-audit-val  { color: var(--ink-dim); font-size: 10px; text-align: right; }
.ew-audit-sev  { font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border-radius: 2px; text-align: center; border: 1px solid transparent; }
.ew-sev--high { background: rgba(200,40,40,.07); color: rgba(160,30,30,.9); border-color: rgba(200,40,40,.15); }
.ew-sev--med  { background: rgba(180,120,0,.07); color: rgba(130,85,0,.85); border-color: rgba(180,120,0,.15); }
.ew-sev--ok   { background: rgba(20,120,20,.07); color: rgba(20,100,20,.8); border-color: rgba(20,120,20,.12); }

/* ---- SOV visualisation ---- */
.ew-sov-vis {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ew-sov-platform { display: contents; }
.ew-sov-plat-name {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 6px;
  display: block;
}
.ew-sov-brands { display: flex; flex-direction: column; gap: 5px; }
.ew-sov-brand-row {
  display: grid;
  grid-template-columns: 90px 1fr 30px;
  gap: 8px;
  align-items: center;
}
.ew-sov-brand {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink);
  white-space: nowrap;
}
.ew-sov-track {
  height: 10px;
  background: rgba(14,15,12,.06);
  border-radius: 1px;
  overflow: hidden;
}
.ew-sov-fill {
  height: 100%;
  background: var(--ink);
  border-radius: 1px;
  width: 0;
  transition: width 1.1s cubic-bezier(.2,.7,.2,1);
}
.ew-sov-fill.is-visible { width: var(--w, 0%); }
.ew-sov-num {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-dim);
  text-align: right;
}

/* ---- Schema code block ---- */
.ew-code-block {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.65;
  color: var(--ink);
  background: rgba(14,15,12,.03);
  border: 1px solid rgba(14,15,12,.1);
  padding: 14px 16px;
  margin: 0;
  overflow-x: auto;
  white-space: pre;
}

/* ---- Hub tree ---- */
.ew-hub-tree {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ew-hub-root {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 12px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 2px;
  display: inline-block;
  align-self: flex-start;
}
.ew-hub-branches {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 16px;
  border-left: 2px solid rgba(14,15,12,.15);
  margin-left: 12px;
}
.ew-hub-branch {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ew-hub-connector {
  width: 12px;
  height: 1px;
  background: rgba(14,15,12,.2);
  flex-shrink: 0;
}
.ew-hub-spoke {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink);
  padding: 5px 10px;
  border: 1px solid rgba(14,15,12,.12);
  border-radius: 2px;
  background: var(--bg);
}

/* ---- FAQ mock ---- */
.ew-faq-mock {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(14,15,12,.12);
}
.ew-faq-q {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 10px 14px;
  border-bottom: 1px solid rgba(14,15,12,.08);
  background: rgba(14,15,12,.03);
}
.ew-faq-a {
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink);
  opacity: .8;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(14,15,12,.08);
}
.ew-faq-a:last-child { border-bottom: none; }
.ew-faq-a strong { font-weight: 600; color: var(--ink); opacity: 1; text-decoration: underline; text-decoration-color: var(--accent-2); text-underline-offset: 2px; }

/* ---- PR brief ---- */
.ew-pr-brief {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(14,15,12,.12);
  border-radius: 2px;
}
.ew-pr-angle {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(14,15,12,.08);
  background: rgba(14,15,12,.02);
}
.ew-pr-targets {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(14,15,12,.08);
}
.ew-pr-hook {
  padding: 12px 16px;
}
.ew-pr-angle-label, .ew-pr-targets-label, .ew-pr-hook-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 8px;
}
.ew-pr-angle-title {
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 600;
}
.ew-pr-tier-list { display: flex; flex-direction: column; gap: 7px; }
.ew-pr-tier { display: flex; flex-direction: column; gap: 4px; }
.ew-pr-tier-label {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.ew-pr-target-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ew-pr-target-list span {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 9px;
  border: 1px solid rgba(14,15,12,.14);
  border-radius: 3px;
  color: rgba(14,15,12,.78);
  background: rgba(14,15,12,.02);
}
.ew-pr-tier:first-child .ew-pr-target-list span {
  border-color: rgba(14,15,12,.22);
  background: rgba(14,15,12,.04);
  color: rgba(14,15,12,.88);
  font-weight: 600;
}
.ew-pr-hook-text {
  font-family: var(--font-body);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink);
  opacity: .72;
}

/* ---- Author card ---- */
.ew-author-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid rgba(14,15,12,.12);
}
.ew-author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ew-author-info { display: flex; flex-direction: column; gap: 4px; }
.ew-author-name { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink); }
.ew-author-cred { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-dim); line-height: 1.45; }
.ew-author-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.ew-author-link { font-family: var(--font-mono); font-size: 9px; color: var(--ink-dim); text-decoration: underline; text-underline-offset: 2px; opacity: .6; }
.ew-author-schema-hint { font-family: var(--font-mono); font-size: 8.5px; color: var(--ink-dim); margin-top: 4px; padding: 4px 8px; background: rgba(107,143,113,.1); border: 1px solid rgba(107,143,113,.2); border-radius: 2px; }

/* ---- Delta SOV (before/after) ---- */
.ew-delta-sov {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ew-dsov-row { display: flex; flex-direction: column; gap: 3px; }
.ew-dsov-plat {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 3px;
}
.ew-dsov-bars { display: flex; flex-direction: column; gap: 3px; }
.ew-dsov-before, .ew-dsov-after {
  height: 16px;
  background: rgba(14,15,12,.05);
  overflow: hidden;
  position: relative;
}
.ew-dsov-fill-b {
  height: 100%;
  background: rgba(14,15,12,.18);
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--ink-dim);
  white-space: nowrap;
}
.ew-dsov-fill-a {
  height: 100%;
  background: var(--ink);
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--bg);
  white-space: nowrap;
  width: 0;
  transition: width 1.1s cubic-bezier(.2,.7,.2,1);
}
.ew-dsov-fill-a.is-visible { width: var(--w, 0%); }
.ew-dsov-legend {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--ink-dim);
}
.ew-dsov-leg-b::before { content: ""; display: inline-block; width: 10px; height: 3px; background: rgba(14,15,12,.18); margin-right: 4px; vertical-align: 2px; }
.ew-dsov-leg-a::before { content: ""; display: inline-block; width: 10px; height: 3px; background: var(--ink); margin-right: 4px; vertical-align: 2px; }

/* ---- Prompt intent board (Step 2) ---- */
.ew-intent-board {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ew-ib-cluster {
  flex: 1;
  border-bottom: 1px solid rgba(14,15,12,.08);
}
.ew-ib-cluster:last-child { border-bottom: none; }
.ew-ib-cluster-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 8px 20px 6px;
  background: rgba(14,15,12,.03);
  border-bottom: 1px solid rgba(14,15,12,.06);
}
.ew-ib-row {
  display: grid;
  grid-template-columns: 1fr auto 80px;
  gap: 0;
  align-items: stretch;
  border-bottom: 1px solid rgba(14,15,12,.05);
  min-height: 44px;
}
.ew-ib-row:last-child { border-bottom: none; }
.ew-ib-row--absent { border-left: 3px solid rgba(200,40,40,.3); }
.ew-ib-row--weak   { border-left: 3px solid rgba(180,120,0,.3); }
.ew-ib-row--ok     { border-left: 3px solid rgba(20,120,20,.3); }
.ew-ib-prompt {
  padding: 10px 16px 10px 17px;
  font-family: var(--font-body);
  font-size: 11px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.4;
  display: flex;
  align-items: center;
}
.ew-ib-winner {
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-dim);
  border-left: 1px solid rgba(14,15,12,.06);
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.ew-ib-nike {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  border-left: 1px solid rgba(14,15,12,.06);
}
.ew-ib-nike--absent {
  background: rgba(200,40,40,.08);
  color: rgba(180,30,30,.85);
}
.ew-ib-nike--weak {
  background: rgba(180,120,0,.08);
  color: rgba(140,90,0,.85);
}
.ew-ib-nike--ok {
  background: rgba(20,120,20,.08);
  color: rgba(16,100,16,.85);
}

/* ---- Layout variants ---- */

/* Full-width: text on top, visual spanning full width below */
.ew-step--full {
  display: block;
}
.ew-step-top {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 80ch;
  background: var(--paper);
}
.ew-step-meta-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ew-step-num-sm {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: rgba(14,15,12,.25);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ew-step--full .ew-step-tag {
  writing-mode: horizontal-tb;
  transform: none;
}
.ew-step-vis-full {
  padding: 0;
  background: var(--paper);
}
.ew-step--full {
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.ew-step--full .ew-step-top {
  padding: clamp(28px, 3.5vw, 48px) clamp(24px, 3vw, 40px);
  border-bottom: 1px solid rgba(14,15,12,.07);
  max-width: none;
}

/* Wide-text: 3:2 split favouring text, visual has dark bg */
.ew-step--wide-text .ew-step-body {
  grid-template-columns: 1.4fr 1fr;
}

/* Flip: visual on left, text on right */
.ew-step--flip .ew-step-body {
  direction: rtl;
}
.ew-step--flip .ew-step-body > * {
  direction: ltr;
}
.ew-step--flip .ew-step-text {
  border-right: none;
  border-left: none;
}

/* Visual panel colour variants */
.ew-visual--dark {
  background: var(--ink);
}
.ew-visual--code {
  background: #0e0f0c;
}
.ew-visual--paper {
  background: var(--paper);
}

/* Dark visual label */
.ew-visual--dark .ew-vis-label,
.ew-visual--code .ew-vis-label {
  color: rgba(242,239,231,.35);
  opacity: 1;
}

/* Audit grid dark variant */
.ew-audit-grid--dark {
  border-color: rgba(255,255,255,.08);
  background: transparent;
}
.ew-audit-grid--dark .ew-audit-section-head {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(242,239,231,.3);
  padding: 8px 10px 4px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ew-audit-grid--dark .ew-audit-row {
  border-bottom-color: rgba(255,255,255,.06);
}
.ew-audit-grid--dark .ew-audit-item { color: rgba(242,239,231,.85); }
.ew-audit-grid--dark .ew-audit-val  { color: rgba(242,239,231,.45); }
.ew-audit-grid--dark .ew-audit-note { color: rgba(242,239,231,.3); font-size: 9px; }
.ew-audit-grid--dark .ew-audit-ok   { color: rgba(100,200,100,.7); }
.ew-audit-grid--dark .ew-audit-warn { color: rgba(220,160,60,.8); }
.ew-audit-grid--dark .ew-audit-fail { color: rgba(240,80,80,.8); }
.ew-audit-grid--dark .ew-sev--high  { background: rgba(200,40,40,.15); color: rgba(240,100,100,.9); border-color: rgba(200,40,40,.25); }
.ew-audit-grid--dark .ew-sev--med   { background: rgba(180,120,0,.15); color: rgba(220,170,60,.9); border-color: rgba(180,120,0,.25); }
.ew-audit-grid--dark .ew-sev--ok    { background: rgba(20,120,20,.15); color: rgba(80,200,80,.8); border-color: rgba(20,120,20,.25); }
.ew-audit-note { font-size: 9px; color: var(--ink-dim); }

/* Code block dark variant */
.ew-visual--code .ew-code-block {
  background: transparent;
  border-color: rgba(255,255,255,.08);
  color: rgba(173,192,166,.85);
  font-size: 10px;
}

/* Entity grid — no column overrides needed, base grid handles it */
.ew-eg-sub {
  display: block;
  font-size: 8.5px;
  color: var(--ink-dim);
  opacity: .6;
  margin-top: 2px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
}

/* Prompt transcript */
/* ---- Citation baseline (Step 4) ---- */
.ew-cbl-transcript {
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(14,15,12,.09);
  flex-shrink: 0;
}
.ew-cbl-q {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 14px;
}
.ew-cbl-answer {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(14,15,12,.65);
}
.ew-cbl-engine {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: block;
  margin-bottom: 8px;
}
.ew-cbl-comp { font-weight: 600; color: rgba(14,15,12,.88); }
.ew-cbl-nike { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--accent-2); }
.ew-cbl-callout {
  margin-top: 14px;
  padding: 8px 12px;
  background: rgba(200,40,40,.06);
  border-left: 3px solid rgba(200,40,40,.35);
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: rgba(160,30,30,.85);
  font-weight: 500;
}
.ew-cbl-bars {
  padding: 20px 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ew-cbl-section-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.ew-cbl-bar-group { display: flex; flex-direction: column; gap: 10px; }
.ew-cbl-bar-row {
  display: grid;
  grid-template-columns: 60px 1fr 38px;
  gap: 12px;
  align-items: center;
}
.ew-cbl-bar-row--nike .ew-cbl-brand { color: var(--sage-700); font-weight: 700; }
.ew-cbl-bar-row--nike .ew-cbl-pct   { color: var(--sage-700); font-weight: 700; }
.ew-cbl-brand {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: rgba(14,15,12,.7);
}
.ew-cbl-track {
  height: 14px;
  background: rgba(14,15,12,.05);
  border-radius: 2px;
  overflow: hidden;
}
.ew-cbl-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 1.1s cubic-bezier(.2,.7,.2,1);
}
.ew-cbl-fill.is-visible { width: var(--w, 0%); }
.ew-cbl-fill--comp { background: rgba(14,15,12,.12); }
.ew-cbl-fill--nike { background: var(--sage-700); }
.ew-cbl-pct {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-dim);
  text-align: right;
}

/* Architecture SVG diagram (full-width hub diagram) */
.ew-vis-arch-svg {
  background: var(--paper);
  padding: 0;
}
.ew-arch-diagram {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 0;
}
/* Spoke lines and hub cards animate in on scroll */
.arch-spoke-line { opacity: 0; transition: opacity .5s ease; }
.arch-hub { opacity: 0; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transform-origin: center; transform: scale(.94) translateY(8px); }
.arch-spoke { opacity: 0; transition: opacity .5s ease; }
#arch-svg.arch-active .arch-spoke-line { opacity: 1; }
#arch-svg.arch-active .arch-hub-1 { opacity: 1; transform: scale(1) translateY(0); transition-delay: .1s; }
#arch-svg.arch-active .arch-hub-2 { opacity: 1; transform: scale(1) translateY(0); transition-delay: .25s; }
#arch-svg.arch-active .arch-sl-1 { opacity: 1; transition-delay: .2s; }
#arch-svg.arch-active .arch-sl-2 { opacity: 1; transition-delay: .35s; }
#arch-svg.arch-active .arch-sp-1 { opacity: 1; transition-delay: .3s; }
#arch-svg.arch-active .arch-sp-2 { opacity: 1; transition-delay: .45s; }

/* PR tier list */
.ew-pr-tier-list { display: flex; flex-direction: column; gap: 8px; }
.ew-pr-tier { display: flex; flex-direction: column; gap: 4px; }
.ew-pr-tier-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.ew-pr-angle-sub {
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin-top: 4px;
}

/* Author pair */
.ew-author-pair { display: flex; flex-direction: column; gap: 0; }
.ew-author-pubs {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--ink-dim);
  opacity: .65;
  line-height: 1.5;
  margin-top: 2px;
}

/* Final SOV — SVG chart container */
.ew-vis-sov-final {
  background: var(--paper);
  padding: 0;
}
.ew-sov-chart {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 12px;
}
/* After bars in SVG: start at width=0, transition when active */
.sov-bar-a { transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.sov-label-a, .sov-delta, .sov-delta-t { transition: opacity .4s ease; }
#sov-svg.sov-active .sov-bar-a[id="sov-a1"] { width: 465px; transition-delay: .05s; }
#sov-svg.sov-active .sov-bar-a[id="sov-a2"] { width: 594px; transition-delay: .2s; }
#sov-svg.sov-active .sov-bar-a[id="sov-a3"] { width: 511px; transition-delay: .35s; }
#sov-svg.sov-active .sov-bar-a[id="sov-a4"] { width: 411px; transition-delay: .5s; }
#sov-svg.sov-active [id="sov-l1"] { opacity: 1; transition-delay: .8s; }
#sov-svg.sov-active [id="sov-l2"] { opacity: 1; transition-delay: .95s; }
#sov-svg.sov-active [id="sov-l3"] { opacity: 1; transition-delay: 1.1s; }
#sov-svg.sov-active [id="sov-l4"] { opacity: 1; transition-delay: 1.25s; }
#sov-svg.sov-active [id="sov-d1"],#sov-svg.sov-active [id="sov-dt1"] { opacity: 1; transition-delay: .85s; }
#sov-svg.sov-active [id="sov-d2"],#sov-svg.sov-active [id="sov-dt2"] { opacity: 1; transition-delay: 1.0s; }
#sov-svg.sov-active [id="sov-d3"],#sov-svg.sov-active [id="sov-dt3"] { opacity: 1; transition-delay: 1.15s; }
#sov-svg.sov-active [id="sov-d4"],#sov-svg.sov-active [id="sov-dt4"] { opacity: 1; transition-delay: 1.3s; }

/* Footer */
.etl-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: clamp(36px, 4vw, 56px) 0 0;
}
.etl-disclaimer {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: .45;
}
.etl-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.etl-cta:hover { color: var(--accent-2); }

/* ========================================================
   REDESIGNED STEP VISUALS
   ======================================================== */

/* ---- Step 02: Prompt intent swim-lane zones ---- */
.ew-pm-zones {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  gap: 0;
}
.ew-pm-zone {
  flex: 1;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid rgba(14,15,12,.08);
}
.ew-pm-zone--win    { background: rgba(20,122,60,.07); }
.ew-pm-zone--mid    { background: rgba(200,122,10,.07); }
.ew-pm-zone--absent { background: rgba(200,40,40,.06); flex: 3; }
.ew-pm-zone-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ew-pm-zone--win    .ew-pm-zone-label { color: rgba(20,110,50,.8); }
.ew-pm-zone--mid    .ew-pm-zone-label { color: rgba(150,95,0,.8); }
.ew-pm-zone--absent .ew-pm-zone-label { color: rgba(180,30,30,.8); }
.ew-pm-zone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.ew-pm-chip {
  font-family: var(--font-body);
  font-size: 10.5px;
  line-height: 1.3;
  padding: 4px 8px;
  border-radius: 3px;
  background: rgba(14,15,12,.05);
  color: var(--ink);
  font-style: italic;
}
.ew-pm-zone--absent .ew-pm-chip {
  background: rgba(200,40,40,.08);
  color: rgba(140,20,20,.8);
}
.ew-pm-footnote {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--ink-dim);
  padding: 8px 20px;
  letter-spacing: .05em;
  border-top: 1px solid rgba(14,15,12,.08);
}

/* ---- Step 04: Citation baseline — dark chat + race bars ---- */
.ew-cbl-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}
.ew-cbl-chat {
  padding: 20px 24px 18px;
  background: var(--sage-900);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ew-cbl-chat-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ew-cbl-chat-engine {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(173,192,166,.7);
}
.ew-cbl-chat-q {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255,253,247,.92);
  font-style: italic;
}
.ew-cbl-chat-body {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255,253,247,.7);
}
mark.ew-cbl-rival {
  background: none;
  color: rgba(255,90,46,.9);
  font-weight: 600;
}
mark.ew-cbl-brand {
  background: none;
  color: rgba(255,253,247,.95);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(200,122,10,.6);
}
.ew-cbl-verdict {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(232,52,28,.85);
  border-left: 2px solid rgba(232,52,28,.5);
  padding-left: 10px;
}
.ew-cbl-race {
  flex: 1;
  padding: 18px 24px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ew-cbl-race-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.ew-cbl-race-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.ew-cbl-race-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 10px;
}
.ew-cbl-race-brand {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-dim);
  text-align: right;
}
.ew-cbl-race-row--nike .ew-cbl-race-brand { color: var(--sage-700); }
.ew-cbl-race-track {
  height: 36px;
  background: rgba(14,15,12,.05);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.ew-cbl-race-fill {
  height: 100%;
  width: 0;
  transition: width .9s cubic-bezier(.16,1,.3,1);
  border-radius: 2px;
  display: flex;
  align-items: center;
  padding-right: 8px;
  justify-content: flex-end;
}
.ew-cbl-race-fill--comp { background: rgba(14,15,12,.10); }
.ew-cbl-race-fill--nike { background: var(--sage-700); }
.ew-cbl-race-fill.is-visible { width: var(--w); }
.ew-cbl-race-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: rgba(14,15,12,.5);
  white-space: nowrap;
}
.ew-cbl-race-row--nike .ew-cbl-race-pct { color: rgba(255,253,247,.9); }

/* ---- Step 06: CSS hub-spoke diagram ---- */
.ew-hub-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
}
.ew-hub-diagram {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 0;
  flex: 1;
  align-items: center;
  padding: 24px 16px 12px;
}
.ew-hub-col {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
}
.ew-hub-col--right { flex-direction: row-reverse; }
.ew-hub-card {
  background: var(--sage-900);
  color: var(--paper);
  border-radius: 6px;
  padding: 16px 18px;
  min-width: 140px;
  max-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.ew-hub-card-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(173,192,166,.7);
  text-transform: uppercase;
}
.ew-hub-card-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: rgba(255,253,247,.95);
}
.ew-hub-card-author {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: rgba(255,253,247,.4);
}
.ew-hub-card-badge {
  margin-top: 4px;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  background: var(--sage-500);
  color: #fff;
  padding: 2px 7px;
  border-radius: 2px;
  align-self: flex-start;
}
.ew-hub-spokes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.ew-hub-spokes--left {
  padding-right: 10px;
  align-items: flex-end;
}
.ew-hub-spokes--right {
  padding-left: 10px;
  align-items: flex-start;
}
.ew-hub-spoke {
  position: relative;
  padding: 7px 12px;
  background: var(--paper);
  border: 1px solid rgba(14,15,12,.12);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--ink);
  max-width: 100%;
}
.ew-hub-spokes--left .ew-hub-spoke::after {
  content: '→';
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: rgba(14,15,12,.22);
}
.ew-hub-spokes--right .ew-hub-spoke::before {
  content: '←';
  position: absolute;
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: rgba(14,15,12,.22);
}
.ew-hub-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.ew-hub-bridge-line {
  width: 1px;
  height: 40px;
  background: rgba(14,15,12,.15);
}
.ew-hub-bridge-label {
  font-family: var(--font-mono);
  font-size: 7px;
  color: rgba(14,15,12,.3);
  letter-spacing: .06em;
  writing-mode: vertical-rl;
  text-transform: uppercase;
}
.ew-hub-footer {
  padding: 8px 16px 14px;
  border-top: 1px solid rgba(14,15,12,.08);
}
.ew-hub-footer-stat {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .07em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

/* ---- Step 07: GEO FAQ document mockup ---- */
.ew-faq-doc {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  overflow: hidden;
}
.ew-faq-doc-header {
  padding: 14px 20px 12px;
  border-bottom: 1px solid rgba(14,15,12,.1);
  background: rgba(14,15,12,.03);
}
.ew-faq-doc-url {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(14,15,12,.35);
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.ew-faq-doc-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.ew-faq-item {
  padding: 14px 20px 12px;
  border-bottom: 1px solid rgba(14,15,12,.07);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ew-faq-item:last-child { border-bottom: none; }
.ew-faq-item-q {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.ew-faq-item-lead {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
}
.ew-faq-item-detail {
  font-family: var(--font-body);
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--ink-dim);
}
.ew-faq-item-entities {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}
.ew-faq-item-entities span {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 2px 6px;
  border-radius: 2px;
  background: rgba(14,15,12,.06);
  color: rgba(14,15,12,.5);
  text-transform: uppercase;
}

/* ---- Step 08: Pitch brief card ---- */
.ew-pitch-brief {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  overflow: hidden;
}
.ew-pitch-header {
  background: var(--sage-900);
  padding: 18px 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ew-pitch-tag {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(173,192,166,.7);
}
.ew-pitch-headline {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(255,253,247,.95);
  font-style: italic;
}
.ew-pitch-sub {
  font-family: var(--font-body);
  font-size: 10.5px;
  line-height: 1.55;
  color: rgba(255,253,247,.5);
}
.ew-pitch-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.ew-pitch-targets {
  padding: 16px 18px;
  border-right: 1px solid rgba(14,15,12,.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ew-pitch-targets-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.ew-pitch-tier {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ew-pitch-tier-dr {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(14,15,12,.4);
  text-transform: uppercase;
}
.ew-pitch-tier-pubs {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink);
}
.ew-pitch-tier--forum .ew-pitch-tier-pubs { color: var(--ink-dim); }
.ew-pitch-signal {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(14,15,12,.02);
}
.ew-pitch-signal-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.ew-pitch-signal-text {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink);
  border-left: 2px solid rgba(14,15,12,.15);
  padding-left: 10px;
}
.ew-pitch-signal-stat {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(14,15,12,.4);
  margin-top: auto;
}

@media (max-width: 900px) {
  .ew-step-body { grid-template-columns: 1fr; }
  .ew-step-text { border-right: none; }
  .ew-step--flip .ew-step-body { direction: ltr; }
}

/* ── Engagement card mobile (< 640px) ── */
@media (max-width: 640px) {
  /* Card 01 */
  .vis01-kg { max-height: 280px; }
  .etbl-th--bar { display: none; }
  .etbl-td-bar { display: none; }
  .etbl { font-size: 12px; }

  /* Card 02 */
  .vis02-intent-wrap { height: 360px; }
  .vis02-canvas { height: 320px; }

  /* Card 03 */
  .vis03-gauges { grid-template-columns: repeat(2, 1fr); }

  /* Card 04 */
  .vis04-theatres { grid-template-columns: 1fr; }
  .vis04-platform { min-height: 280px; }
  .vis04-sov-stage { grid-template-columns: 120px 1fr 56px; gap: 0 10px; }
  .vis04-sov-stage-eg { display: none; }

  /* Card 05 */
  .vis05-diff-full { grid-template-columns: 1fr; }
  .vis05-hbar-checks { gap: 12px; }

  /* Card 06 */
  .vis06-grid { grid-template-columns: 1fr; }
  .vis06-bridge {
    flex-direction: row;
    padding-top: 0;
    padding: 4px 0;
    align-self: center;
  }
  .vis06-bridge-label { writing-mode: horizontal-tb; transform: none; }
  .vis06-footer { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Card 07 */
  .vis07-flow { padding: 16px; gap: 12px; }
  .vis07-source-q { font-size: 13px; }
  .vis07-source-a { font-size: 11.5px; }

  /* Card 08 */
  #vis08-canvas { height: 320px !important; }

  /* Card 09 */
  #vis09-canvas { height: 360px !important; }

  /* Card 10 */
  #vis10-main-chart { height: 240px !important; }
  .vis10-counter-overlay { bottom: 16px; right: 16px; }
  .vis10-odometer { font-size: 28px; }
}

/* ---------- AI check widget ---------- */

.widget {
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 16px;
  padding: clamp(28px, 3.5vw, 56px);
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: stretch;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-dark);
}
@media (max-width: 980px) { .widget { grid-template-columns: 1fr; padding: clamp(28px, 6vw, 56px); } }

/* Watermark numeral behind */
.widget-mark {
  position: absolute;
  top: -28px; right: -10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(220px, 28vw, 420px);
  line-height: 0.78;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,.04);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
/* Top-left corner accent strip */
.widget-corner {
  position: absolute;
  top: 0; left: 0;
  width: clamp(120px, 14vw, 220px);
  height: 14px;
  background: var(--accent);
  pointer-events: none;
}
/* Soft glows */
.widget-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}
.widget-glow-a { width: 360px; height: 360px; background: var(--accent); top: -120px; left: -120px; opacity: 0.16; }
.widget-glow-b { width: 320px; height: 320px; background: var(--accent-2); bottom: -120px; right: -80px; opacity: 0.22; }

.widget-head, .widget-readout { position: relative; z-index: 1; }
.widget-head { display: flex; flex-direction: column; }

.widget-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.widget-eyebrow .dot {
  display: inline-block; width: 7px; height: 7px;
  background: var(--accent); border-radius: 50%;
}
.widget-eyebrow .sep { color: rgba(255,255,255,.25); }

.widget h3.widget-h, .widget .widget-h {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 56px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.widget .widget-h em {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.widget .widget-sub {
  font-size: 17px;
  line-height: 1.5;
  max-width: 44ch;
  color: rgba(255,255,255,.72);
  margin: 0 0 24px;
}

/* Preset brand pill switcher */
.preset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.preset-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 8px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 100px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.55);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap;
}
.preset-pill:hover {
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
}
.preset-pill.active {
  border-color: var(--accent);
  background: rgba(107,143,113,.15);
  color: var(--accent);
}
.preset-pill-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border-radius: 3px;
  display: block;
  flex-shrink: 0;
}

.widget .form {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 10px;
}
.widget .form-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.widget .form-row {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.widget input {
  flex: 1; min-width: 220px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--bg);
  padding: 18px 22px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 16px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.widget input:focus { border-color: var(--accent); background: rgba(255,255,255,.07); }
.widget input::placeholder { color: rgba(255,255,255,.35); }
.widget button.run {
  background: var(--accent); color: var(--accent-ink);
  padding: 18px 28px; border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--accent);
  transition: transform .15s ease, box-shadow .15s ease;
}
.widget button.run:hover { transform: translate(-3px,-3px); box-shadow: 5px 5px 0 var(--accent-2); }

/* Readout (right column) */
.widget-readout { display: flex; flex-direction: column; }

.audit-status {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  border-radius: 12px;
  position: relative;
}
.audit-status::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
  border-radius: 12px 0 0 12px;
}
.audit-status .brand-mark {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-radius: 12px;
  text-transform: uppercase;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.2);
  transition: background .25s ease, color .25s ease, transform .25s ease;
  overflow: hidden;
  position: relative;
}
.audit-status .brand-mark .brand-mono {
  width: 100%; height: 100%;
  display: grid; place-items: center;
}
.audit-status .brand-mark img.brand-logo {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 0;
  display: block;
  background: #FFFDF7;
}
.audit-status .brand-mark.has-logo {
  background: #FFFDF7;
}
.audit-status .brand-mark.is-placeholder {
  background: transparent;
  color: rgba(255,255,255,.35);
  border: 1.5px dashed rgba(255,255,255,.22);
  box-shadow: none;
  font-size: 26px;
}
.audit-status .brand-mark.tone-2 { background: var(--accent-2); color: #fff; }
.audit-status .brand-block {
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
.audit-status .audit-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.audit-status .audit-target {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--bg);
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audit-status .audit-target.is-placeholder {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 400;
  color: rgba(255,255,255,.45);
  text-transform: none;
}
.audit-status .audit-score {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  text-align: right;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.readout-head {
  display: grid;
  grid-template-columns: 130px 1fr 80px;
  gap: 16px;
  padding: 0 4px 14px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  margin-bottom: 4px;
}
.readout-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.readout-label-pct { text-align: right; }

.widget .console {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
  flex: 1;
  display: flex; flex-direction: column;
}
.widget .console .row {
  display: grid;
  grid-template-columns: 130px 1fr 80px;
  gap: 16px;
  align-items: center;
  padding: 18px 4px;
  margin-bottom: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.widget .console .row:last-of-type { border-bottom: 0; }
.widget .console .row .src {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  min-width: 0;
  text-transform: none;
}
.widget .console .row .src .src-logo {
  width: 28px; height: 28px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 7px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
  overflow: hidden;
  padding: 3px;
}
.widget .console .row .src .src-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.widget .console .row .src .src-logo svg {
  width: 16px; height: 16px;
}
.widget .console .row .src .src-name {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.widget .console .row:nth-child(2n) .src .src-logo { background: #fff; }
.widget .console .row .bar {
  flex: 1; height: 10px; background: rgba(255,255,255,.06);
  border-radius: 99px; overflow: hidden; position: relative;
}
.widget .console .row .bar > i {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--sage-500);
  width: 0;
  transition: width .9s cubic-bezier(.2,.7,.2,1);
  border-radius: 99px;
}
.widget .console .row .pct {
  color: var(--bg);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-width: 0;
}
.widget .verdict {
  margin-top: 22px; padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  border-radius: 12px;
  color: rgba(255,255,255,.78);
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.02em;
  line-height: 1.5;
}
.widget .console .verdict strong { color: var(--sage-400); font-weight: 600; }
.widget-contact-cta { display:inline-flex; align-items:center; gap:6px; margin-top:16px; padding:11px 20px; background:var(--sage-500); color:#fff; font-family:var(--font-mono); font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; text-decoration:none; border-radius:4px; transition:opacity .15s; }
.widget-contact-cta:hover { opacity:.85; }

/* ---------- methodology stripe ---------- */

.method {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--sage-900);
  border-bottom: 1px solid var(--sage-900);
}
.method > div {
  padding: clamp(28px, 3vw, 44px);
  border-right: 1px solid var(--sage-900);
  min-height: 240px;
  display: flex; flex-direction: column; gap: 14px;
}
.method > div:last-child { border-right: 0; }
/* Uniform card background so the four read as an aligned set */
.method > div:nth-child(1),
.method > div:nth-child(2),
.method > div:nth-child(3),
.method > div:nth-child(4) { background: var(--paper); }
.method .step-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0;
  color: var(--ink-dim);
  margin-bottom: 4px;
}
.method .step-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.method .step-desc { font-size: 14px; line-height: 1.5; }
@media (max-width: 860px) {
  .method { grid-template-columns: repeat(2, 1fr); }
  .method > div { border-bottom: 1px solid var(--sage-900); }
  .method > div:nth-child(2n) { border-right: 0; }
}

/* ---------- big cta ---------- */

.bigcta {
  padding: clamp(80px, 12vw, 180px) 0;
  background: var(--sage-900);
  color: #fff;
  border-bottom: 1px solid var(--sage-900);
  text-align: center;
}
.bigcta h2 { margin: 0 0 32px; color: #fff; }
.bigcta .lede { color: rgba(255,255,255,.75); }
.bigcta .btn {
  background: var(--sage-500); color: #fff; border-color: var(--sage-500);
}
.bigcta .btn:hover { background: var(--sage-400); border-color: var(--sage-400); }
.bigcta .btn--coral {
  background: var(--coral); border-color: var(--coral);
  box-shadow: 0 4px 24px rgba(255,91,46,.35);
}
.bigcta .btn--coral:hover {
  background: #e64d22; border-color: #e64d22;
  box-shadow: 0 6px 32px rgba(255,91,46,.5);
}

/* ---------- footer ---------- */

footer.site {
  background: var(--sage-900); color: #fff;
  padding: clamp(40px, 5vw, 72px) 0 24px;
}
footer.site .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 760px) {
  footer.site .grid { grid-template-columns: 1fr 1fr; }
}
footer.site h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin: 0 0 14px;
  font-weight: 500;
}
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 8px; font-size: 15px; }
footer.site li a:hover { color: var(--accent); }
footer.site .legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: rgba(255,255,255,.5);
}
footer.site .bigname {
  font-family: var(--font-display);
  font-size: clamp(60px, 12vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 12px 0 40px;
}
footer.site .bigname em { color: var(--sage-500); font-style: normal; }
/* Promptly Found — compact footer lockup */
footer.site .footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--bg);
}
footer.site .footer-brand em {
  font-style: italic;
  color: var(--sage-500);
}

/* ---------- generic content ---------- */

.prose { max-width: 64ch; }
.prose p { margin: 0 0 1em; font-size: 18px; line-height: 1.55; }
.prose h2 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 52px); line-height: 1; letter-spacing: -0.025em; margin: 1.5em 0 0.5em; }
.prose h3 { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); margin: 1.5em 0 0.4em; letter-spacing: -0.02em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 1.5em 0;
}

/* ---------- long-form post chrome (editorial spread) ---------- */

.essay {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
}
.essay-col {
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.essay-wide {
  margin: 32px 0;
  padding: 0 clamp(20px, 4vw, 48px);
}
.essay-bleed {
  width: 100%;
  margin: 56px 0;
}

/* Opening lede paragraphs */
.essay-lede {
  margin: 0 0 48px;
  padding: 0 clamp(20px, 4vw, 48px);
}
.essay-lede p {
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.essay-lede p + p { margin-top: 14px; }

/* Full-bleed chapter interstitial — huge numeral + title */
.chapter-mark {
  width: 100vw;
  margin: 72px calc(50% - 50vw) 40px;
  padding: 36px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 116px;
}
.chapter-mark.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chapter-mark .ch-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.chapter-mark .ch-num {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.82;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--accent-2);
}
.chapter-mark.dark .ch-num { color: var(--accent); }
.chapter-mark .ch-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}
.chapter-mark .ch-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: right;
  align-self: end;
  padding-bottom: 8px;
}
.chapter-mark.dark .ch-meta { color: rgba(255,255,255,0.55); }
@media (max-width: 760px) {
  .chapter-mark .ch-inner { grid-template-columns: 1fr; gap: 14px; }
  .chapter-mark .ch-meta { text-align: left; align-self: start; padding-bottom: 0; }
}

/* Floating section progress strip across the top of the article */
.essay-rail {
  position: sticky;
  top: 64px;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--ink);
  padding: 10px 0;
  margin-bottom: 8px;
}
.essay-rail .rail-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
  scrollbar-width: none;
}
.essay-rail .rail-inner::-webkit-scrollbar { display: none; }
.essay-rail a {
  color: var(--ink-dim);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  flex-shrink: 0;
}
.essay-rail a:hover { color: var(--ink); border-bottom-color: var(--accent-2); }
.essay-rail .sep { opacity: 0.4; flex-shrink: 0; }

.post-body { max-width: none; }
.post-body > * + * { margin-top: 1.05em; }
.post-body p { font-size: 19px; line-height: 1.62; }
.post-body h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 2em 0 0.4em;
  scroll-margin-top: 96px;
}
.post-body h2 .num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent-2);
  margin-bottom: 10px;
  font-weight: 400;
}
.post-body h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.02em;
  margin: 1.4em 0 0.2em;
}
.post-body ul, .post-body ol { padding-left: 1.3em; font-size: 19px; line-height: 1.6; }
.post-body li { margin-bottom: 0.5em; }
.post-body li::marker { color: var(--accent-2); font-family: var(--font-mono); font-weight: 600; }
.post-body strong { font-weight: 600; }
.post-body em { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; }
.post-body a:not(.btn) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-2);
  color: var(--accent-2);
}
.post-body blockquote {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 1.8em 0;
  padding: 8px 0 8px 28px;
  border-left: 4px solid var(--accent);
}
.post-body blockquote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 14px;
  font-weight: 400;
}

.callout {
  margin: 1.8em 0;
  padding: 22px 24px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid rgba(14,15,12,.15);
  border-radius: 12px;
  box-shadow: var(--shadow-glow-accent);
}
.callout .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.callout p { font-size: 17px !important; line-height: 1.5; margin: 0; }

figure.post-fig {
  margin: 1.8em 0;
  border: 1px solid rgba(14,15,12,.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--paper);
}
figure.post-fig .figbody { padding: 28px; }
figure.post-fig figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border-top: 1px solid var(--ink);
  padding: 12px 20px;
  background: var(--bg);
}

pre.code {
  margin: 1.6em 0;
  padding: 0;
  background: var(--sage-900);
  color: #EDEAE0;
  border-radius: 12px;
  box-shadow: var(--shadow-dark);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
}
pre.code .codehead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #1A1B17;
  border-bottom: 1px solid #2C2D27;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8E908A;
}
pre.code .codehead .lang { color: var(--accent); font-weight: 600; }
pre.code .codebody { padding: 18px 20px; overflow-x: auto; }
pre.code code { font-family: inherit; white-space: pre; }
.tk-c { color: #7F827D; font-style: italic; }
.tk-k { color: #FF8C5A; }
.tk-s { color: #C8FF3D; }
.tk-n { color: #7AB8FF; }
.tk-f { color: #FFD466; }
.tk-p { color: #EDEAE0; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 36px;
  padding: 22px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 32px 0 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.post-meta b {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  margin-top: 4px;
}

.footnotes {
  margin-top: 4em;
  padding-top: 24px;
  padding-bottom: 12px;
  border-top: 1px solid var(--ink);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-dim);
}
.footnotes ol { padding-left: 1.4em; }
.footnotes li { margin-bottom: 8px; }
sup.fn a { color: var(--accent-2); font-weight: 600; text-decoration: none; }

/* ---------- forms ---------- */

.field {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 22px;
}
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: 18px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  outline: none;
  border-radius: 0;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-bottom-color: var(--accent-2);
}
.field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.checks {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.check {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  background: var(--paper);
}
.check input { display: none; }
.check.is-on { background: var(--ink); color: var(--bg); }

/* ---------- page header ---------- */

.pagehead {
  padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--ink);
}
.pagehead .crumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 28px;
}
.pagehead h1 { margin: 0 0 24px; }

/* sticker / circle scribble */
.sticker {
  position: absolute;
  width: 140px; height: 140px;
  background: var(--accent-2);
  color: var(--paper);
  border-radius: 50%;
  display: grid; place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.01em;
  transform: rotate(-12deg);
  padding: 16px;
  box-shadow: 0 8px 0 -2px rgba(0,0,0,.08);
}
.sticker.tilt-right { transform: rotate(8deg); }

/* writing list */
.writing-list { border-top: 1px solid var(--ink); }
.writing-item {
  display: grid;
  grid-template-columns: 140px 1fr 1fr 100px;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--ink);
  align-items: baseline;
  transition: background .15s ease, color .15s ease, padding .15s ease;
  cursor: pointer;
}
.writing-item:hover { background: var(--ink); color: var(--bg); padding-left: 20px; padding-right: 20px; }
.writing-item:hover .date { color: rgba(255,255,255,.45); }
.writing-item:hover .blurb { color: rgba(255,255,255,.55); }
.writing-item:hover .arr { color: var(--accent); letter-spacing: .12em; }
.writing-item .date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color .15s ease;
}
.writing-item .title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.writing-item .blurb { font-size: 15px; color: var(--ink-dim); transition: color .15s ease; }
.writing-item .arr {
  font-family: var(--font-mono);
  font-size: 14px;
  text-align: right;
  transition: color .15s ease, letter-spacing .15s ease;
}
@media (max-width: 780px) {
  .writing-item { grid-template-columns: 1fr; gap: 6px; }
  .writing-item .arr { display: none; }
}

/* about — pull stats */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.stat-row > div {
  padding: clamp(24px, 3vw, 36px);
  border-right: 1px solid var(--ink);
}
.stat-row > div:last-child { border-right: 0; }
.stat-row .n {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-row .l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 8px;
}
@media (max-width: 780px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-row > div:nth-child(2n) { border-right: 0; }
  .stat-row > div:nth-child(1), .stat-row > div:nth-child(2) { border-bottom: 1px solid var(--ink); }
}

/* timeline */
.timeline { border-top: 1px solid var(--ink); }
.timeline-item {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--ink);
}
.timeline-item .years {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
}
.timeline-item .role {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 8px;
}
.timeline-item .where {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 12px;
}
.timeline-item .what { font-size: 16px; line-height: 1.5; max-width: 60ch; }
@media (max-width: 700px) { .timeline-item { grid-template-columns: 1fr; gap: 8px; } }

/* tweaks panel */
.tweaks-toggle {
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  background: var(--ink); color: var(--bg);
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  display: none;
  border: 1px solid var(--bg);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.tweaks-toggle.show { display: inline-flex; }
.tweaks-panel {
  position: fixed; right: 20px; bottom: 72px; z-index: 101;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink);
  width: 320px;
  border-radius: 14px;
  padding: 20px;
  display: none;
  box-shadow: 0 10px 40px rgba(0,0,0,.18);
}
.tweaks-panel.open { display: block; }
.tweaks-panel h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 18px 0 10px;
  color: var(--ink-dim);
  font-weight: 500;
}
.tweaks-panel h5:first-child { margin-top: 0; }
.tweaks-panel .head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.tweaks-panel .head .ttl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.tweaks-panel .head .x {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--ink-dim);
}
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.swatch {
  aspect-ratio: 1; border: 1px solid var(--ink); border-radius: 8px;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  overflow: hidden; cursor: pointer;
  position: relative;
}
.swatch.is-on::after {
  content: ""; position: absolute; inset: 3px;
  border: 2px solid var(--ink); border-radius: 6px;
  pointer-events: none;
}
.swatch i { display: block; }
.opts { display: flex; gap: 6px; flex-wrap: wrap; }
.opt {
  flex: 1; min-width: 80px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 10px;
  border: 1px solid var(--ink); border-radius: 999px;
  cursor: pointer; text-align: center;
  background: transparent;
}
.opt.is-on { background: var(--ink); color: var(--bg); }


/* ============================================================
   DEPTH PASS — textures, watermarks, offset shadows, layering
   ============================================================ */

/* hero — dot grid background + tilted accent shape */
.hero {
  background:
    radial-gradient(circle at 1px 1px, rgba(14,15,12,0.08) 1px, transparent 1.5px) 0 0/22px 22px,
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  left: -120px; top: -80px;
  width: 380px; height: 380px;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -120px;
  width: 280px; height: 280px;
  background: var(--accent-2);
  opacity: 0.18;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* hero — two-column layout */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.hero-left {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}
.hero-lede {
  margin-top: 0;
  max-width: 52ch;
}
.hero-right {
  position: relative;
  padding-top: clamp(20px, 3vw, 40px);
}
/* case study card */
.hero-card {
  background: var(--sage-900);
  color: #fff;
  border-radius: 20px;
  padding: clamp(22px, 2.8vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero-card-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sage-400);
  margin-bottom: clamp(14px, 1.8vw, 20px);
  opacity: .7;
}
.hero-card-headline-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: clamp(14px, 1.8vw, 20px);
}
.hero-card-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 800;
  line-height: .88;
  letter-spacing: -0.04em;
  color: var(--sage-400);
}
.hero-card-unit {
  font-size: .45em;
  vertical-align: top;
  margin-left: 2px;
  opacity: .7;
}
.hero-card-label {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255,255,255,.5);
  max-width: 26ch;
}
.hero-card-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin-bottom: clamp(14px, 1.8vw, 20px);
}
.hero-card-before-after {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-card-ba-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 8px;
}
.hero-card-ba-label {
  font-size: 11.5px;
  color: rgba(255,255,255,.38);
}
.hero-card-ba-flow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  white-space: nowrap;
}
.hero-card-ba-arrow {
  color: var(--sage-400);
  font-weight: 400;
  margin: 0 2px;
}
.hero-card-ba-note {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--sage-500);
  font-weight: 600;
  white-space: nowrap;
  opacity: .85;
}
/* sticker — CTA link */
.hero-sticker {
  position: absolute;
  right: -20px;
  top: -10px;
  width: clamp(90px, 10vw, 130px);
  height: clamp(90px, 10vw, 130px);
  transform: rotate(-10deg);
  filter: drop-shadow(0 8px 0 rgba(26,22,18,0.12));
  animation: stickerSpin 22s linear infinite;
  z-index: 3;
  display: block;
  text-decoration: none;
  transition: filter 0.2s ease;
}
.hero-sticker:hover {
  filter: drop-shadow(0 12px 0 rgba(26,22,18,0.22)) brightness(1.06);
  animation-play-state: paused;
}
.hero-sticker svg { width: 100%; height: 100%; }
@keyframes stickerSpin {
  from { transform: rotate(-10deg); }
  to   { transform: rotate(350deg); }
}
/* Nav CTA availability dot */
.nav-cta { gap: 7px; }
.nav-cta-avail {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  flex-shrink: 0;
  animation: navDotPulse 2.2s ease-out infinite;
}
@keyframes navDotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
  70%  { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
@media (max-width: 860px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-right { display: flex; gap: 20px; align-items: flex-start; }
  .hero-card { flex: 1; }
  .hero-sticker { position: relative; right: auto; top: auto; flex-shrink: 0; }
}
@media (max-width: 600px) {
  .hero-right { flex-direction: column; }
  .hero-sticker { width: 90px; height: 90px; }
}

/* hero meta — quieter, sits at the bottom of the hero */
.hero-meta--bottom {
  margin-top: clamp(40px, 6vw, 80px) !important;
  margin-bottom: 0 !important;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
  display: flex !important;
  flex-wrap: wrap;
  gap: 16px 40px !important;
}
.hero-meta--bottom .label { font-size: 10px; margin-bottom: 4px; }
.hero-meta--bottom .val { font-size: 15px; font-weight: 500; }

/* accent-word paint is controlled by .hero-h1--painted (see hero h1 rules above) */

/* big watermark numerals behind section heads */
.depth-band, section.band { position: relative; overflow: hidden; }
.watermark {
  position: absolute;
  right: clamp(-30px, -1vw, 0px);
  top: 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(160px, 22vw, 360px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(173,192,166,0.45);
  -webkit-text-stroke: 1.5px rgba(173,192,166,0.45); /* duplicate for linter — intentional vendor prefix */
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.band.ink .watermark {
  -webkit-text-stroke: 1.5px rgba(245,241,232,0.10);
}
.band .container { position: relative; z-index: 2; }


/* SERVICE SECTION BIG NUMERALS — fills left-column gap in section headers */
body[data-screen-label="02 Services"] .svc-big-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(80px, 10vw, 140px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--ink);
  opacity: 0.08;
  margin-bottom: 16px;
  user-select: none;
}
body[data-screen-label="02 Services"] .band.paper .svc-big-num {
  opacity: 0.06;
}
body[data-screen-label="02 Services"] section[data-svc="01"] .svc-big-num {
  color: var(--accent);
  opacity: 0.22;
}

/* SERVICE CARDS */
.svc-grid {
  border: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.svc-grid > article {
  border: 1px solid rgba(14,15,12,.12) !important;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease, background .2s ease;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.svc-grid > article::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(14,15,12,0.04) 1px, transparent 1.5px) 0 0/14px 14px;
  pointer-events: none;
  z-index: 0;
}
.svc-grid > article > * { position: relative; z-index: 1; }
.svc-grid > article { cursor: pointer; }
.svc-grid > article:hover {
  box-shadow: var(--shadow-hover);
}
.svc-grid > article:hover .svc-desc { color: var(--accent-ink); }
.svc-grid > article:hover .svc-tags span {
  background: rgba(14,15,12,0.1);
  border-color: var(--accent-ink);
  color: var(--accent-ink);
}
@media (max-width: 760px) {
  .svc-grid { grid-template-columns: 1fr; }
}

/* ---- "What I do." cards — cursor-following gradient + per-card shade ---- */
/* Slightly different resting shade per card so they're not uniform */
.svc-grid > article:nth-child(1) { background: var(--sage-50); }
.svc-grid > article:nth-child(2) { background: #f4f7f1; }
.svc-grid > article:nth-child(3) { background: #f1f5ee; }
.svc-grid > article:nth-child(4) { background: #eef3ea; }
.svc-grid > article:nth-child(5) { background: #f3f6f0; }
.svc-grid > article:nth-child(6) { background: #f0f4ec; }

/* Cursor-following gradient spotlight — a second ::after layer that
   sits above the dotted texture (::before) but below the content.
   On the dark hover card this reads as a bright sage glow tracking the cursor. */
.svc-grid > article::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: var(--glow, 0);
  transition: opacity .35s ease;
  background:
    radial-gradient(
      300px circle at var(--mx, 50%) var(--my, 50%),
      rgba(140,180,150,0.45),
      rgba(107,143,113,0.18) 42%,
      transparent 72%
    );
}
/* Dark card on hover; the cursor gradient glows on top, text goes light. */
.svc-grid > article:hover {
  background: var(--sage-900);
  color: #fff;
  border-color: rgba(107,143,113,.5) !important;
}
.svc-grid > article:hover .svc-desc { color: rgba(255,255,255,.72); opacity: 1; }
.svc-grid > article:hover .svc-tags span {
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.06);
}
.svc-grid > article:hover .svc-num { color: rgba(255,255,255,.45); }
.svc-grid > article:hover .arr-big { color: var(--sage-400); transform: translate(5px, -5px); }

/* ============================================================
   GLOBAL DEPTH — applied to every page
   ============================================================ */

/* Vignette / atmospheric depth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(107,143,113,0.07), transparent 45%),
    radial-gradient(ellipse at 85% 100%, rgba(255,91,46,0.04), transparent 50%);
}

/* Make sure content sits above the overlays */
nav.topnav, section, footer, article, .container { position: relative; z-index: 2; }

/* Decorative corner crosshairs on every page-head section */
.pagehead { position: relative; }
.pagehead::before,
.pagehead::after {
  content: "";
  position: absolute;
  width: 24px; height: 24px;
  background:
    linear-gradient(var(--ink), var(--ink)) center/100% 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center/1px 100% no-repeat;
  opacity: 0.5;
  z-index: 3;
  pointer-events: none;
}
.pagehead::before { top: 18px; left: 18px; }
.pagehead::after { bottom: 18px; right: 18px; }

/* Bands get tickmark rules at the top edge */
.band { position: relative; }
.band > .container { position: relative; }
.band::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 14px;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, var(--ink) 1px, transparent 1px);
  background-size: 48px 14px;
  opacity: 0.12;
}


/* Lift cards across the site */
.pg-card, .seo-card, .proof-grid > article, .writing-list .writing-item,
figure.post-fig, .pg-visual {
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s cubic-bezier(.2,.7,.2,1);
}
.pg-card:hover, figure.post-fig:hover {
  transform: translate(-3px, -3px);
  box-shadow: 14px 14px 0 var(--ink);
}

/* Footer atmospheric */
footer.site { position: relative; overflow: hidden; }
footer.site::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107,143,113,0.12), transparent 60%);
  top: -250px; right: -150px;
  pointer-events: none;
  z-index: 0;
}
footer.site > .container { position: relative; z-index: 2; }

/* Dot-grid backdrop behind page heads */
.pagehead {
  background-image:
    radial-gradient(circle, rgba(14,15,12,0.10) 1px, transparent 1.4px);
  background-size: 24px 24px;
  background-position: 0 0;
}

/* METHOD — render as cards w/ shadows instead of flat columns */
.method {
  border: 0 !important;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 0 var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.method > div {
  border: 1px solid rgba(14,15,12,.09);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  /* Uniform padding on all sides; extra bottom room for the watermark */
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.4vw, 32px) clamp(56px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
  transform: translateY(var(--para, 0));
}
.method > div:hover {
  transform: translateY(calc(var(--para, 0px) - 8px));
  box-shadow: var(--shadow-hover);
}
/* Ghost step number watermark — contained within the card, bottom-right */
.method > div::after {
  content: attr(data-step);
  position: absolute;
  bottom: -6px; right: 10px;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  color: rgba(14,15,12,.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}
@media (max-width: 860px) {
  .method { grid-template-columns: repeat(2, 1fr); }
}

/* BIGCTA — layered offset block + accent shape */
.bigcta { position: relative; overflow: hidden; }
.bigcta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(14,15,12,0.10) 1px, transparent 1.5px) 0 0/22px 22px;
  opacity: 0.7;
  pointer-events: none;
}
.bigcta::after {
  content: "✱";
  position: absolute;
  left: 6%; top: 18%;
  font-family: var(--font-display);
  font-size: clamp(120px, 18vw, 280px);
  color: var(--sage-700);
  opacity: 0.18;
  pointer-events: none;
  transform: rotate(-12deg);
}
.bigcta .container { position: relative; z-index: 2; }

/* PAPER sections — subtle noise texture */
.band.paper {
  position: relative;
}
.band.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(14,15,12,0.025), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(14,15,12,0.03), transparent 50%);
  pointer-events: none;
}

/* MARQUEE — a touch of dimension via inset shadow */
.marquee { box-shadow: inset 0 8px 16px -8px rgba(0,0,0,.4), inset 0 -8px 16px -8px rgba(0,0,0,.4); }

/* PAGEHEAD — dot pattern + watermark slot */
.pagehead { position: relative; overflow: hidden; }
.pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 1px 1px, rgba(14,15,12,0.08) 1px, transparent 1.5px) 0 0/22px 22px;
  pointer-events: none;
}
.pagehead .container { position: relative; z-index: 2; }

/* ============================================================
   LIVE DATA PANEL — DataForSEO LLM Mentions
   ============================================================ */
.live-data-panel {
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Header */
.lp-header { margin-bottom: clamp(28px, 3.5vw, 48px); }
.lp-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .13em;
  text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 14px;
}
.lp-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.lp-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 2.8vw, 36px); letter-spacing: -.025em;
  color: #fff; margin: 0 0 10px;
}
.lp-subtitle { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.45); margin: 0; max-width: 52ch; }

/* Engine blocks — side-by-side on wide, stacked on mobile */
.lp-engines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.lp-engine-block {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  padding: clamp(20px, 2.5vw, 32px);
  display: flex; flex-direction: column; gap: 22px;
}

/* Engine header row */
.lp-engine-header {
  display: flex; align-items: center; gap: 10px;
}
.lp-engine-logo { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.lp-engine-logo img { width: 18px; height: 18px; object-fit: contain; border-radius: 3px; }
.lp-engine-name {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.55); flex: 1;
}
.lp-verified-badge {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 99px;
  background: rgba(107,143,113,.15); color: var(--accent);
  border: 1px solid rgba(107,143,113,.3);
}

/* Stats row */
.lp-stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.lp-stat-block { display: flex; flex-direction: column; gap: 4px; }
.lp-stat-val {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; color: #fff;
}
.lp-stat-lab {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.3);
}

/* Section label (shared by pages + codomains) */
.lp-section-label {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 10px;
}

/* Top cited pages */
.lp-pages-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lp-page-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 12px; border-radius: 7px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
}
.lp-page-url {
  font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.6);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.lp-page-stats { display: flex; gap: 10px; flex-shrink: 0; }
.lp-page-stat { font-family: var(--font-mono); font-size: 10px; color: var(--accent); white-space: nowrap; }
.lp-stat-unit { color: rgba(255,255,255,.3); }

/* Co-cited domains — ranked bar rows */
.lp-codomain-rows { display: flex; flex-direction: column; gap: 5px; }
.lp-dom-row {
  display: grid;
  grid-template-columns: 18px 22px 1fr auto auto;
  align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 7px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  transition: background .15s;
}
.lp-dom-row:hover { background: rgba(255,255,255,.06); }
.lp-dom-rank {
  font-family: var(--font-mono); font-size: 9px; color: rgba(255,255,255,.2);
  text-align: right;
}
.lp-dom-logo-wrap { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lp-dom-logo { width: 14px; height: 14px; object-fit: contain; border-radius: 2px; display: block; }
.lp-dom-name { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lp-dom-bar-wrap { height: 4px; background: rgba(255,255,255,.07); border-radius: 99px; overflow: hidden; min-width: 40px; }
.lp-dom-bar { height: 100%; background: var(--accent); border-radius: 99px; display: block; transition: width .6s cubic-bezier(.4,0,.2,1); }
.lp-dom-count { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,.35); white-space: nowrap; min-width: 36px; text-align: right; }

/* Loading spinner state */
.lp-loading {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  padding: clamp(28px,3.5vw,48px) 0;
}
.lp-spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.1);
  border-top-color: var(--accent);
  animation: lp-spin .7s linear infinite;
}
@keyframes lp-spin { to { transform: rotate(360deg); } }
.lp-loading-text {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.3);
}

/* Brand entities */
.lp-entities {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.lp-entity-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-entity-chip {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 99px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
}
.lp-entity-name { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.65); }
.lp-entity-count {
  font-family: var(--font-mono); font-size: 10px; color: var(--accent);
  background: rgba(107,143,113,.12); padding: 1px 6px; border-radius: 99px;
}

/* TIMELINE — gutters + dot markers */
.timeline { position: relative; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0; top: 44px;
  width: 10px; height: 10px;
  background: var(--accent);
  border: 1px solid var(--ink);
  border-radius: 50%;
  transform: translateX(-30px);
}
@media (max-width: 700px) { .timeline-item::before { display: none; } }
.timeline { padding-left: 30px; margin-left: -30px; }

/* WRITING ITEMS — full inversion hover; ::before cleared */
.writing-item { position: relative; }

/* TWEAKS PANEL — softer */
.tweaks-panel { box-shadow: 12px 12px 0 var(--ink); }

/* CTA buttons - subtle inner highlight */
.nav-cta, .btn { position: relative; }


/* AI-check widget — loading state animation */
.widget .console .loading-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 35%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: loadingSweep 1.2s ease-in-out infinite;
}
@keyframes loadingSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(370%); }
}
.widget .console .dots::after {
  content: ".";
  animation: dotPulse 1.4s steps(4, end) infinite;
}
@keyframes dotPulse {
  0%, 20% { content: "."; }
  40% { content: ".."; }
  60% { content: "..."; }
  80%, 100% { content: ""; }
}
.widget button.run:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============================================================
   AI CHECK — full page engine cards + verdict
   ============================================================ */

.aic-band { position: relative; overflow: hidden; }

.engine-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
@media (max-width: 860px) { .engine-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .engine-cards { grid-template-columns: 1fr; } }

.engine-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  transition: background .2s ease, border-color .2s ease;
}
.engine-card.is-idle { opacity: 0.38; pointer-events: none; }
.engine-card.is-loading { pointer-events: none; }

.engine-card .ec-head {
  display: flex; align-items: center; gap: 12px;
}
.engine-card .ec-logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
  display: grid; place-items: center;
  overflow: hidden;
  padding: 4px;
  flex-shrink: 0;
}
.engine-card .ec-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.engine-card .ec-logo svg { width: 18px; height: 18px; }
.engine-card .ec-name {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

.engine-card .ec-score-row {
  display: flex; align-items: flex-end; gap: 14px;
}
.engine-card .ec-score {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700; letter-spacing: -0.04em;
  line-height: 1; color: var(--bg);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.engine-card .ec-bar-wrap { flex: 1; padding-bottom: 10px; }
.engine-card .ec-bar {
  height: 8px;
  background: rgba(255,255,255,.08);
  border-radius: 99px; overflow: hidden; position: relative;
}
.engine-card .ec-bar > i {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--accent);
  border-radius: 99px;
  transition: width .9s cubic-bezier(.2,.7,.2,1);
}
.engine-card .ec-bar > .loading-bar {
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  animation: loadingSweep 1.2s ease-in-out infinite;
  transition: none;
}

.engine-card .ec-reason {
  font-size: 14px; line-height: 1.5;
  color: rgba(255,255,255,.65);
  min-height: 2.8em;
}
.engine-card .ec-reason.is-placeholder {
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  color: transparent;
}

.engine-card .ec-prompts-label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  margin-bottom: 2px;
}
.engine-card .ec-prompts {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 6px;
}
/* Chat bubble — looks like a user message sent to an AI */
.engine-card .ec-prompts li {
  font-size: 12px; letter-spacing: 0.01em;
  color: rgba(255,255,255,.75);
  padding: 9px 13px 9px 36px;
  background: rgba(255,255,255,.06);
  border-radius: 14px 14px 14px 4px;
  border: 1px solid rgba(255,255,255,.08);
  line-height: 1.45;
  position: relative;
}
/* Avatar dot — mimics a user avatar in a chat UI */
.engine-card .ec-prompts li::before {
  content: '';
  position: absolute;
  left: 11px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
}
/* Cursor chevron — subtle send indicator */
.engine-card .ec-prompts li::after {
  content: '↵';
  position: absolute;
  right: 10px; bottom: 7px;
  font-size: 9px;
  color: rgba(255,255,255,.18);
  line-height: 1;
}

/* full-page verdict panel */
.full-verdict {
  margin-top: 0;
  padding: 32px 36px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  display: none;
}
.full-verdict.is-visible { display: block; }
.full-verdict .fv-label {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700; letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1; margin-bottom: 14px;
}
.full-verdict .fv-summary {
  font-size: 17px; line-height: 1.5;
  color: rgba(255,255,255,.75);
  max-width: 70ch;
}

/* engine chip badges (pre-run hint) */
.engine-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 20px;
}
.engine-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.engine-chip .chip-logo {
  width: 16px; height: 16px;
  display: grid; place-items: center;
  color: var(--accent);
}
.engine-chip .chip-logo svg { width: 14px; height: 14px; }

/* score-range explainer strip */
.score-range-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  margin-top: clamp(40px, 5vw, 72px);
}
.score-range-strip > div {
  padding: clamp(20px, 2.5vw, 32px);
  border-right: 1px solid var(--ink);
}
.score-range-strip > div:last-child { border-right: 0; }
.score-range-strip .sr-range {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 10px;
}
.score-range-strip .sr-label {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.05;
  margin-bottom: 10px;
}
.score-range-strip .sr-desc {
  font-size: 13px; line-height: 1.45; color: var(--ink-dim);
}
@media (max-width: 760px) {
  .score-range-strip { grid-template-columns: 1fr 1fr; }
  .score-range-strip > div:nth-child(2n) { border-right: 0; }
  .score-range-strip > div:not(:nth-last-child(-n+2)) { border-bottom: 1px solid var(--ink); }
}
@media (max-width: 480px) {
  .score-range-strip { grid-template-columns: 1fr; }
  .score-range-strip > div { border-right: 0 !important; border-bottom: 1px solid var(--ink); }
  .score-range-strip > div:last-child { border-bottom: 0; }
}

/* ---- per-engine gap/action insight block ---- */
.ec-insight { display: flex; flex-direction: column; gap: 8px; }
.ec-gap, .ec-action { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; }
.ec-gap { color: rgba(255,255,255,.55); }
.ec-action { color: rgba(255,255,255,.80); }
.ec-insight-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 4px; flex-shrink: 0; margin-top: 1px;
}
.ec-gap .ec-insight-label { background: rgba(255,80,60,.15); color: #FF6B55; }
.ec-action .ec-insight-label { background: rgba(107,143,113,.15); color: var(--accent); }

/* ---- AI Check lead section ---- */
.aic-lead-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px); align-items: center;
}
@media (max-width: 700px) { .aic-lead-grid { grid-template-columns: 1fr; } }
.aic-lead-heading {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 3.6vw, 52px);
  letter-spacing: -0.03em; line-height: 1.12;
  color: var(--bg); margin: 0;
}
.aic-lead-right {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 8px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
}
.aic-lead-form {
  display: flex; flex-direction: column; gap: 12px;
}
.aic-lead-form input {
  background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 10px; color: #fff; font-family: var(--font-body);
  font-size: 15px; padding: 14px 18px; width: 100%; box-sizing: border-box;
  transition: border-color .2s, background .2s;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.25);
}
.aic-lead-form input::placeholder { color: rgba(255,255,255,.35); }
.aic-lead-form input:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.10); box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 0 0 3px rgba(107,143,113,.18); }
.aic-lead-form .aic-lead-btn {
  width: 100%; justify-content: center; margin-top: 4px;
  background: var(--accent); color: var(--accent-ink);
  padding: 16px 28px; border-radius: 12px; border: 2px solid var(--accent);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.aic-lead-form .aic-lead-btn:hover { transform: translate(-3px,-3px); box-shadow: 5px 5px 0 var(--accent-2); }
.aic-lead-form[data-lead-locked] { opacity: 0.4; pointer-events: none; }

/* ---- input validation ---- */
input.is-invalid { border-color: var(--accent-2) !important; }
.input-hint {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-2); margin-top: 8px;
}

/* ---- full verdict variants ---- */
.fv-variant-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.25); margin-bottom: 20px; margin-top: 40px;
}
.fv-variant-tag:first-child { margin-top: 0; }
.fv-variant { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.fv-variant:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }

/* A — bold score card */
.fva-eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.fva-score-row { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 14px; flex-wrap: wrap; }
.fva-score { font-family: var(--font-display); font-size: clamp(56px, 8vw, 96px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--bg); font-variant-numeric: tabular-nums; }
.fva-label { font-family: var(--font-display); font-size: clamp(24px, 3vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--bg); padding-bottom: 10px; }
.fva-bar { height: 6px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; position: relative; margin-bottom: 20px; }
.fva-bar > i { position: absolute; left:0; top:0; bottom:0; width:0; background: var(--accent); border-radius: 99px; transition: width 1s cubic-bezier(.2,.7,.2,1); }
.fva-summary { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.65); max-width: 68ch; }

/* B — editorial callout */
.fvb-quote { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 16px; }
.fvb-mark { font-family: var(--font-display); font-size: clamp(56px, 7vw, 88px); font-weight: 700; color: var(--accent); line-height: 1; opacity: .5; }
.fvb-label { font-family: var(--font-display); font-size: clamp(28px, 4vw, 52px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--bg); }
.fvb-summary { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.75); max-width: 66ch; margin-bottom: 20px; font-style: italic; }
.fvb-brand { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); }

/* C — two-column split */
.fv-variant-c { display: grid; grid-template-columns: minmax(220px, 40%) 1px 1fr; gap: 0 40px; align-items: center; }
@media (max-width: 640px) { .fv-variant-c { grid-template-columns: 1fr; } .fvc-divider { display: none; } }
.fvc-left { display: flex; flex-direction: column; gap: 12px; }
.fvc-label { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--bg); }
.fvc-score { font-family: var(--font-display); font-size: clamp(52px, 7vw, 80px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--accent); display: flex; align-items: flex-end; gap: 8px; }
.fvc-score-num { font-variant-numeric: tabular-nums; }
.fvc-score-sub { font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); padding-bottom: 12px; }
.fvc-divider { background: rgba(255,255,255,.12); align-self: stretch; }
.fvc-right { display: flex; flex-direction: column; justify-content: center; }
.fvc-brand { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.fvc-brand .brand-mark { width: 64px; height: 64px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.25), 0 8px 24px rgba(0,0,0,.15); overflow: hidden; position: relative; }
.fvc-brand .brand-mark .brand-mono { width: 100%; height: 100%; display: grid; place-items: center; }
.fvc-brand .brand-mark img.brand-logo { width: 100%; height: 100%; object-fit: contain; padding: 0; display: block; background: #FFFDF7; }
.fvc-brand .brand-mark.has-logo { background: #FFFDF7; }
.fvc-brand .brand-mark.tone-2 { background: var(--accent-2); color: #fff; }
.fvc-brand .brand-block { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fvc-brand .audit-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.fvc-brand .audit-target { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.025em; color: var(--bg); line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fvc-summary { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.7); max-width: 58ch; }

/* ============================================================
   SERVICES PAGE — visual depth pass
   ============================================================ */

/* --- Watermark numerals behind each service section --- */
body[data-screen-label="02 Services"] section.band,
body[data-screen-label="02 Services"] section.band.paper {
  overflow: hidden;
}
body[data-screen-label="02 Services"] section.band[data-svc]::after,
body[data-screen-label="02 Services"] section.band.paper[data-svc]::after {
  content: attr(data-svc);
  position: absolute;
  right: clamp(-20px, -1vw, 10px);
  top: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(160px, 22vw, 340px);
  line-height: 0.82;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(14,15,12,0.07);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
body[data-screen-label="02 Services"] section.band .container,
body[data-screen-label="02 Services"] section.band.paper .container {
  position: relative;
  z-index: 2;
}

/* --- Dot-grid texture on white .band sections (paper already has noise) --- */
body[data-screen-label="02 Services"] section.band:not(.paper) {
  position: relative;
}
body[data-screen-label="02 Services"] section.band:not(.paper)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 1px 1px, rgba(14,15,12,0.055) 1px, transparent 1.5px) 0 0/22px 22px;
  pointer-events: none;
  z-index: 0;
}

/* --- Accent left-border pip on sh-num --- */
body[data-screen-label="02 Services"] .sh-num {
  display: flex;
  align-items: center;
  gap: 10px;
}
body[data-screen-label="02 Services"] .sh-num::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* --- Tick marks on service lists --- */
body[data-screen-label="02 Services"] .band ul li,
body[data-screen-label="02 Services"] .band.paper ul li {
  list-style: none;
  padding-left: 0;
  position: relative;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
body[data-screen-label="02 Services"] .band ul,
body[data-screen-label="02 Services"] .band.paper ul {
  padding-left: 0;
}
body[data-screen-label="02 Services"] .band ul li::before,
body[data-screen-label="02 Services"] .band.paper ul li::before {
  content: "✓";
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(107,143,113,0.12);
  border: 1px solid rgba(107,143,113,0.3);
  border-radius: 4px;
  padding: 2px 5px;
  line-height: 1.4;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Subtle accent strip at section top for service bands --- */
body[data-screen-label="02 Services"] section.band[data-svc],
body[data-screen-label="02 Services"] section.band.paper[data-svc] {
  border-top: 3px solid var(--ink);
}
body[data-screen-label="02 Services"] section.band[data-svc="01"],
body[data-screen-label="02 Services"] section.band.paper[data-svc="01"] { border-top-color: var(--accent); }
body[data-screen-label="02 Services"] section.band[data-svc="03"],
body[data-screen-label="02 Services"] section.band.paper[data-svc="03"] { border-top-color: var(--accent); }

/* --- Industries section glow --- */
body[data-screen-label="02 Services"] .svc-industries {
  position: relative;
  overflow: hidden;
}
body[data-screen-label="02 Services"] .svc-industries::before {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(160px);
  opacity: 0.08;
  top: -120px; left: -80px;
  pointer-events: none;
  z-index: 0;
}
body[data-screen-label="02 Services"] .svc-industries::after {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: var(--accent-2);
  filter: blur(140px);
  opacity: 0.10;
  bottom: -100px; right: -60px;
  pointer-events: none;
  z-index: 0;
}
body[data-screen-label="02 Services"] .svc-industries > .container {
  position: relative;
  z-index: 2;
}

/* --- Industry pills --- */
.ind-pill {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  color: var(--bg);
  cursor: default;
  transition: background .18s ease, border-color .18s ease;
}
.ind-pill:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation-play-state: paused; }
}

/* Competitive landscape — vertical bars */
.competitive-landscape {
  position: relative; z-index: 1;
  margin: 28px 0 0;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 32px);
}

/* Newspaper-style masthead above chart */
.cl-masthead {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.cl-masthead-title {
  font-family: var(--font-display); font-size: clamp(14px, 2vw, 18px); font-weight: 700;
  color: rgba(255,255,255,.9); letter-spacing: -.02em; line-height: 1.1;
}
.cl-masthead-meta {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.28);
}
/* Tooltip — appears above each column on hover */
.cl-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%; transform: translateX(-50%);
  width: 180px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 10px 12px;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.cl-tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(255,255,255,.12);
}
.cl-col:hover .cl-tooltip { display: block; }
.cl-col-leader .cl-tooltip { border-color: rgba(255,145,30,.3); }
.cl-tooltip-domain {
  display: block;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 4px;
}
.cl-tooltip-score {
  display: block;
  font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1;
  color: #fff; margin-bottom: 8px;
}
.cl-col-subject .cl-tooltip-score { color: var(--accent); }
.cl-tooltip-summary {
  margin: 0;
  font-size: 12px; line-height: 1.5;
  color: rgba(255,255,255,.55);
}

/* Wrapper holds bars + avg line in same coordinate space */
.cl-cols-wrap {
  position: relative;
}

/* Average line — child of .cl-cols, spans all columns, JS sets bottom in px */
.cl-avg-line {
  position: absolute;
  left: 0; right: 0;
  bottom: 0; /* overridden by JS */
  pointer-events: none;
  transition: bottom 0.8s cubic-bezier(.2,.7,.2,1);
  z-index: 2;
}
.cl-avg-line::before {
  content: '';
  display: block;
  width: 100%; height: 1px;
  border-top: 1px dashed #ff911e;
  opacity: .7;
}
.cl-avg-label {
  position: absolute;
  right: 0; top: -16px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
  color: #ff911e;
  white-space: nowrap;
}

/* Chart area: fixed height, cols sit inside aligned to bottom */
.cl-cols {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 400px; /* total chart zone including foot */
  position: relative;
}
.cl-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-width: 0;
  position: relative; /* tooltip anchor */
  cursor: default;
}
/* Pct label — fixed height so it never overlaps the bar */
.cl-pct {
  font-family: var(--font-mono); font-size: 24px; color: rgba(255,255,255,.45);
  line-height: 1; height: 24px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-bottom: 4px; width: 100%; text-align: center;
}
.cl-col-subject .cl-pct { color: var(--accent); font-weight: 600; }
.cl-trophy { font-style: normal; font-size: 12px; vertical-align: middle; margin-left: 2px; }

/* Bar track — takes all remaining vertical space */
.cl-bar-wrap {
  width: 100%;
  flex: 1;
  position: relative;
  background: rgba(255,255,255,.05);
  border-radius: 6px 6px 0 0;
  transition: background 0.2s;
}
.cl-col:hover .cl-bar-wrap { background: rgba(255,255,255,.09); }
/* Bar grows from bottom using absolute position — no overflow:hidden so bar cap stays visible */
.cl-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(to top, rgba(255,255,255,.18), rgba(255,255,255,.28));
  transition: height 0.7s cubic-bezier(.2,.7,.2,1), filter 0.2s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
.cl-col:hover .cl-bar {
  filter: brightness(1.3);
}
.cl-col-subject .cl-bar {
  background: linear-gradient(to top, rgba(200,242,60,.7), var(--accent));
  box-shadow: 0 0 16px rgba(200,242,60,.2), inset 0 1px 0 rgba(255,255,255,.2);
}
/* Leader bar uses the same fill as peers — outline on .cl-bar-wrap is the sole marker,
   so a lower-scoring leader doesn't misleadingly appear dominant */

/* Footer — fixed height below bars */
.cl-foot {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.07);
  width: 100%;
}
.cl-logo { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; background: white; padding: 4px;}
.cl-domain {
  font-size: 12px; color: rgba(255,255,255,.4);
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  width: 100%; letter-spacing: -.01em;
}
.cl-col-subject .cl-domain { color: rgba(255,255,255,.75); }
/* Category leader — full column highlight in bright orange */
.cl-col-leader {
  background: rgba(255,145,30,.07);
  border-radius: 8px 8px 0 0;
  outline: 1px solid rgba(255,145,30,.55);
  outline-offset: 2px;
}
.cl-col-leader .cl-bar-wrap {
  background: rgba(255,145,30,.12);
}
.cl-col-leader .cl-pct {
  color: #ff911e;
  font-weight: 600;
}
.cl-col-leader .cl-domain {
  color: rgba(255,145,30,.7);
}
/* Inline tag in tooltip domain line */
.cl-tooltip-leader-tag {
  font-family: var(--font-mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase;
  color: #ff911e; opacity: .8;
}
/* Skeleton competitor columns */
@keyframes cl-shimmer {
  0% { opacity: .35; } 50% { opacity: .15; } 100% { opacity: .35; }
}
.cl-col-skeleton .cl-pct { color: rgba(255,255,255,.2); }
.cl-bar-skeleton { background: rgba(255,255,255,.1) !important; filter: none !important; box-shadow: none !important; transition: height 0.6s cubic-bezier(.2,.7,.2,1) !important; animation: cl-shimmer 1.4s ease-in-out infinite; }
.cl-logo-skeleton { width: 18px; height: 18px; border-radius: 4px; background: rgba(255,255,255,.1); animation: cl-shimmer 1.4s ease-in-out infinite; }
.cl-domain-skeleton { display: block; width: 80%; height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); margin: 0 auto; animation: cl-shimmer 1.4s ease-in-out infinite; }

/* Engine card — mentioned badge */
.ec-mentioned-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; margin-left: auto; flex-shrink: 0;
}
.ec-mentioned-yes { background: rgba(200,242,60,.15); color: var(--accent); border: 1px solid rgba(200,242,60,.3); }
.ec-mentioned-no  { background: rgba(255,255,255,.06); color: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.1); }

/* ============================================================
   Series nav bar (sn-*)
   Used on all 9 "How AI Search Works" series articles.
   ============================================================ */
.sn-bar { background: var(--ink); color: var(--bg); }
.sn-inner { max-width: 1040px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sn-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .5; white-space: nowrap; }
.sn-divider { width: 1px; height: 18px; background: rgba(255,255,255,.2); flex-shrink: 0; }
.sn-dots { display: flex; gap: 6px; align-items: center; }
.sn-item { position: relative; display: inline-flex; }
.sn-dot { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.sn-dot-link { border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.7); }
.sn-dot-link:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); color: #fff; }
.sn-dot-current { background: #fff; color: var(--ink); cursor: default; box-shadow: 0 0 0 3px rgba(255,255,255,.2); }
.sn-tip { position: absolute; top: calc(100% + 10px); bottom: auto; left: 50%; transform: translateX(-50%); background: var(--bg); color: var(--ink); padding: 14px 16px; border: 1px solid var(--ink); width: 300px; text-align: left; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 100; box-shadow: var(--shadow-md); }
.sn-tip::after { content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-bottom-color: var(--ink); }
.sn-tip::before { content: ''; position: absolute; bottom: calc(100% - 1px); left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-bottom-color: var(--bg); z-index: 1; }
.sn-item:first-child .sn-tip { left: 0; transform: none; }
.sn-item:first-child .sn-tip::after, .sn-item:first-child .sn-tip::before { left: 15px; transform: none; }
.sn-item:last-child .sn-tip { left: auto; right: 0; transform: none; }
.sn-item:last-child .sn-tip::after, .sn-item:last-child .sn-tip::before { left: auto; right: 15px; transform: none; }
.sn-tip-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); margin-bottom: 8px; }
.sn-tip-lede { font-family: var(--font-body); font-size: 12px; line-height: 1.55; color: var(--ink-dim); }
.sn-item:hover .sn-tip { opacity: 1; }

/* ============================================================
   Footnotes accordion
   ============================================================ */
.footnotes-accordion[open] .sn-acc-icon { transform: rotate(180deg); }
.footnotes-accordion summary::-webkit-details-marker { display: none; }

/* ============================================================
   Vertical timeline (vt-*)
   Used in series-attention.html and series-ai-race.html.
   Per-file spine/dot left offsets remain as small inline overrides.
   ============================================================ */
.vt { position: relative; margin: 48px 0 56px; padding-left: 32px; }
.vt::before { content: ''; position: absolute; top: 6px; bottom: 6px; width: 2px; background: var(--ink); }
.vt-node { position: relative; display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 0 0 36px; align-items: start; }
.vt-node:last-child { padding-bottom: 0; }
.vt-node::before { content: ''; position: absolute; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 2px solid var(--ink); z-index: 1; }
.vt-node.pivot::before { width: 18px; height: 18px; background: var(--accent); border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); top: 2px; }
.vt-node.vt-today::before { background: var(--accent-2); border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); width: 18px; height: 18px; top: 2px; }
.vt-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; padding-top: 2px; }
.vt-logo { width: 32px; height: 32px; object-fit: contain; border-radius: 3px; }
.vt-body { display: flex; flex-direction: column; gap: 3px; }
.vt-label { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.vt-node.pivot .vt-label { font-size: 20px; }
.vt-sub { font-family: var(--font-display); font-size: 14px; color: var(--ink-dim); line-height: 1.45; margin-top: 2px; }
.vt-impact { font-family: var(--font-display); font-size: 14px; color: var(--ink-dim); text-decoration: underline; line-height: 1.45; margin-top: 4px; }
/* series-attention.html uses .vt-year for per-node date labels */
.vt-year { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); text-align: right; line-height: 1.3; }
.vt-node.pivot .vt-year { color: var(--ink); font-weight: 700; }
/* series-ai-race.html uses .vt-year-group (section headings) and .vt-month */
.vt-year-group { font-family: var(--font-display); font-size: clamp(28px, 4vw, 48px); font-weight: 700; letter-spacing: -.03em; line-height: 1; margin: 56px 0 32px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.vt-year-group:first-child { margin-top: 0; }
.vt-month { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); text-align: right; line-height: 1.3; }

/* ============================================================
   Writing page (feat-*, wp-cta-*)
   ============================================================ */
.feat-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; border: 1px solid var(--ink); background: var(--bg); }
.feat-main { padding: clamp(32px,4vw,56px); border-right: 1px solid var(--ink); min-height: 420px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; text-decoration: none; color: var(--ink); transition: background .2s, color .2s; }
.feat-main::before { content: "01"; position: absolute; bottom: -20px; right: clamp(-10px,1vw,0px); font-family: var(--font-display); font-size: clamp(140px,22vw,260px); font-weight: 700; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); opacity: .055; pointer-events: none; user-select: none; z-index: 0; transition: opacity .2s; }
.feat-main:hover { background: var(--ink); color: var(--bg); }
.feat-main:hover::before { -webkit-text-stroke-color: var(--bg); opacity: .08; }
.feat-main:hover .feat-tag { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.7); }
.feat-main:hover .feat-tag-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.feat-main:hover .mono.dim { color: rgba(255,255,255,.5); }
.feat-main:hover .feat-arr { color: var(--accent); transform: translate(4px,-4px); }
.feat-main > * { position: relative; z-index: 1; }
.feat-arr { position: absolute; bottom: clamp(24px,3vw,40px); right: clamp(24px,3vw,40px); font-family: var(--font-mono); font-size: 22px; transition: transform .2s, color .2s; z-index: 1; }
.feat-tag { font-family: var(--font-mono); font-size: 11px; padding: 6px 10px; border: 1px solid var(--ink); border-radius: 99px; letter-spacing: .08em; text-transform: uppercase; transition: border-color .2s, color .2s; }
.feat-sidebar { padding: clamp(28px,3vw,44px); display: flex; flex-direction: column; gap: 0; background: var(--paper); }
.feat-side-item { display: block; padding: clamp(16px,2vw,24px) 0; border-bottom: 1px solid var(--ink); color: inherit; text-decoration: none; position: relative; transition: padding-left .15s, background .15s; padding-left: 0; }
.feat-side-item:first-of-type { padding-top: 0; }
.feat-side-item:last-of-type { border-bottom: 0; padding-bottom: 0; }
.feat-side-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); opacity: 0; transition: opacity .15s; }
.feat-side-item:hover { padding-left: 14px; }
.feat-side-item:hover::before { opacity: 1; }
.feat-side-item:hover .feat-side-arr { opacity: 1; transform: translateX(0); }
.feat-side-arr { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; margin-top: 8px; opacity: 0; transform: translateX(-6px); transition: opacity .15s, transform .15s; color: var(--ink-dim); }
@media (max-width: 760px) {
  .feat-grid { grid-template-columns: 1fr; }
  .feat-main { border-right: 0; border-bottom: 1px solid var(--ink); }
}
.wp-cta { display: block; text-decoration: none; color: var(--bg); background: var(--ink); border: 1px solid var(--ink); position: relative; overflow: clip; }
.wp-cta-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(28px,4vw,52px) var(--gutter); }
.wp-cta-rule-top { height: 4px; background: var(--accent); margin-bottom: clamp(20px,3vw,36px); }
.wp-cta-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 20px; }
.wp-cta-title { font-family: var(--font-display); font-size: clamp(28px,4.5vw,60px); font-weight: 700; line-height: .95; letter-spacing: -.03em; max-width: 18ch; margin-bottom: clamp(20px,3vw,36px); color: var(--bg); }
.wp-cta-title em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.5); }
.wp-cta-pitch { font-size: clamp(14px,1.5vw,17px); line-height: 1.6; color: rgba(255,255,255,.6); max-width: 54ch; margin-bottom: clamp(20px,3vw,36px); }
.wp-cta-rule-mid { height: 1px; background: rgba(255,255,255,.12); margin-bottom: clamp(20px,3vw,36px); }
.wp-cta-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.wp-cta-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 0; border: 1px solid rgba(255,255,255,.15); width: fit-content; }
.wp-cta-stat { padding: 10px 18px; border-right: 1px solid rgba(255,255,255,.15); text-align: center; }
.wp-cta-stat:last-child { border-right: 0; }
.wp-cta-stat-n { font-family: var(--font-display); font-size: clamp(18px,2.2vw,26px); font-weight: 700; line-height: 1; letter-spacing: -.02em; display: block; color: var(--bg); }
.wp-cta-stat-l { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); display: block; margin-top: 4px; }
.wp-cta-btn { display: inline-flex; align-items: center; gap: 12px; background: var(--accent); color: var(--ink); font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 16px 28px; white-space: nowrap; transition: background .15s ease; }
.wp-cta:hover .wp-cta-btn { background: #fff; }
.wp-cta:hover .wp-cta-btn-arr { transform: translateX(4px); }
.wp-cta-btn-arr { display: inline-block; transition: transform .15s ease; }
.wp-cta-stat-logos { padding: 10px 18px; }
.wp-cta-logos { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.wp-logo { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; border-radius: 3px; }
.wp-logo-white { filter: invert(1); }
.wp-logo-color { opacity: .9; }
@media (max-width: 700px) {
  .wp-cta-stats { grid-template-columns: repeat(3, 1fr); }
  .wp-cta-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Series index page (si-*)
   ============================================================ */
.si-hero { background: var(--ink); color: var(--bg); padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 7vw, 88px); }
.si-hero .container { max-width: 1040px; }
.si-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .5; margin-bottom: 24px; }
.si-h1 { font-family: var(--font-display); font-weight: 700; line-height: .92; letter-spacing: -.035em; font-size: clamp(48px, 8.5vw, 116px); margin: 0 0 32px; }
.si-h1 em { font-style: italic; color: var(--accent); }
.si-hero-meta { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.15); }
.si-hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.si-hero-meta-item .val { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1; }
.si-hero-meta-item .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .5; }
.si-hero-cta { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 16px 28px; text-decoration: none; margin-top: 40px; transition: opacity .15s; }
.si-hero-cta:hover { opacity: .85; }
.si-outcomes { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--paper); }
.si-outcomes .container { max-width: 1040px; }
.si-outcomes-kicker { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--ink); margin-bottom: 40px; }
.si-outcomes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; position: relative; }
.si-outcome { background: var(--ink); padding: clamp(28px, 3.5vw, 44px); display: flex; flex-direction: column; position: relative; overflow: hidden; transition: background .2s; }
.si-outcome::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(107,143,113,.07) 0%, transparent 60%); pointer-events: none; opacity: 0; transition: opacity .25s; }
.si-outcome:hover { background: var(--sage-800); }
.si-outcome:hover::after { opacity: 1; }
.si-outcome-node { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.si-outcome-dot { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--ink); font-family: var(--font-mono); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; letter-spacing: .02em; box-shadow: 0 0 0 1px rgba(107,143,113,.3), 0 4px 20px rgba(107,143,113,.2); }
.si-outcome-connector { flex: 1; height: 1px; background: linear-gradient(to right, rgba(107,143,113,.4), rgba(107,143,113,.05)); }
.si-outcome-step-label { font-size: 16px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); opacity: .7; }
.si-outcome-num-bg { position: absolute; top: -10px; right: -4px; font-family: var(--font-display); font-size: 120px; font-weight: 800; line-height: 1; color: rgba(255,255,255,.025); pointer-events: none; letter-spacing: -.04em; user-select: none; }
.si-outcome h3 { font-family: var(--font-display); font-size: clamp(18px, 1.9vw, 23px); font-weight: 700; line-height: 1.15; margin: 0 0 16px; color: var(--bg); position: relative; z-index: 1; }
.si-outcome p { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.5); margin: 0; position: relative; z-index: 1; }
.si-articles { padding: clamp(48px, 7vw, 96px) 0; }
.si-articles .container { max-width: 1040px; }
.si-articles-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.si-articles-head h2 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 56px); font-weight: 700; line-height: .92; letter-spacing: -.035em; margin: 0; }
.si-read-time { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .5; white-space: nowrap; }
.si-article-list { display: flex; flex-direction: column; gap: 0; }
.si-article { display: grid; grid-template-columns: 56px 1fr auto; gap: 0; border: 1px solid var(--ink); border-bottom: 0; text-decoration: none; color: var(--ink); background: var(--paper); transition: background .15s; }
.si-article:last-child { border-bottom: 1px solid var(--ink); }
.si-article:hover { background: var(--ink); color: var(--bg); }
.si-article:hover .si-art-num { border-right-color: rgba(255,255,255,.15); color: rgba(255,255,255,.4); }
.si-article:hover .si-art-meta { color: rgba(255,255,255,.5); }
.si-article:hover .si-art-arr { color: var(--accent); }
.si-art-num { display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--ink); font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--ink-dim); transition: color .15s, border-color .15s; }
.si-art-body { padding: clamp(20px, 2.5vw, 32px) clamp(20px, 2.5vw, 28px); }
.si-art-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 8px; transition: color .15s; }
.si-art-title { font-family: var(--font-display); font-size: clamp(17px, 2vw, 22px); font-weight: 700; line-height: 1.15; margin-bottom: 8px; }
.si-art-desc { font-size: 14px; line-height: 1.5; color: var(--ink-dim); transition: color .15s; }
.si-article:hover .si-art-desc { color: rgba(255,255,255,.6); }
.si-art-arr { display: flex; align-items: center; padding: 0 clamp(16px, 2vw, 28px); font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--ink-dim); transition: color .15s; }
.si-article-divider { display: flex; align-items: center; gap: 20px; padding: 40px 0 24px; }
.si-article-divider-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); white-space: nowrap; background: var(--accent); padding: 4px 10px; }
.si-article-divider-rule { flex: 1; height: 1px; background: var(--ink); opacity: .2; }
.si-article-followon { border-left: 3px solid var(--accent); }
.si-article-followon .si-art-num { border-left: none; }
.si-author { background: var(--paper); border-top: 1px solid var(--ink); padding: clamp(40px, 5vw, 64px) 0; }
.si-author .container { max-width: 1040px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.si-author-quote { font-family: var(--font-display); font-size: clamp(22px, 2.8vw, 36px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 24px; }
.si-author-by { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .5; margin-bottom: 8px; }
.si-author-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.si-author-bio { font-size: 15px; line-height: 1.55; color: var(--ink-dim); max-width: 44ch; }
.si-author-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 2px; text-decoration: none; color: var(--ink); transition: opacity .15s; }
.si-author-cta:hover { opacity: .6; }
@media (max-width: 720px) {
  .si-outcomes-grid { grid-template-columns: 1fr; gap: 2px; }
  .si-outcome-connector { display: none; }
  .si-outcome { border-right: 0; border-bottom: 1px solid var(--ink); }
  .si-outcome:last-child { border-bottom: 0; }
  .si-article { grid-template-columns: 44px 1fr; }
  .si-art-arr { display: none; }
  .si-author .container { grid-template-columns: 1fr; }
}

/* ============================================================
   Author card
   Replaces repeated inline style="" attrs on series post author sections.
   ============================================================ */
.author-card { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(28px, 4vw, 60px); align-items: center; padding: clamp(40px, 5vw, 64px); border: 1px solid rgba(14,15,12,.1); border-radius: 16px; box-shadow: var(--shadow-md); background: var(--bg); }
.author-card-avatar { aspect-ratio: 1/1; background: var(--ink); color: var(--bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; max-width: 220px; }
.author-card-avatar .display { font-size: 88px; line-height: 1; }
.author-card-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   Custom cursor
   ============================================================ */
.cursor-dot,
.cursor-ring { display: none; }

/* ============================================================
   Hero depth blobs
   ============================================================ */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}
.hero-blob-a {
  width: 560px; height: 480px;
  background: radial-gradient(ellipse, rgba(107,143,113,.18) 0%, transparent 70%);
  top: -100px; right: -60px;
}
.hero-blob-b {
  width: 400px; height: 360px;
  background: radial-gradient(ellipse, rgba(107,143,113,.10) 0%, transparent 70%);
  bottom: -40px; left: 8%;
}
.hero-headline-wrap {
  transition: transform .12s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}
.hero-sticker {
  will-change: transform;
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px) rotate(0.4deg);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) rotate(0);
}
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
.reveal-d5 { transition-delay: .40s; }

/* ============================================================
   Testimonials — scattered card layout
   ============================================================ */
.testimonials-scatter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.testimonials-scatter figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid rgba(14,15,12,.1);
  border-radius: 18px;
  padding: clamp(28px, 3vw, 40px);
  box-shadow: var(--shadow-md);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease, z-index 0s;
  transform-style: preserve-3d;
  cursor: default;
  display: flex; flex-direction: column; gap: 20px;
  min-height: 320px;
  position: relative;
}
.testimonials-scatter figure:nth-child(1) { transform: rotate(-1.4deg) translateY(14px); }
.testimonials-scatter figure:nth-child(2) { transform: rotate(0.7deg); z-index: 2; }
.testimonials-scatter figure:nth-child(3) { transform: rotate(-0.9deg) translateY(10px); }
.testimonials-scatter figure:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.02) !important;
  box-shadow: var(--shadow-hover);
  z-index: 10;
}
@media (max-width: 900px) {
  .testimonials-scatter { grid-template-columns: 1fr; gap: 16px; }
  .testimonials-scatter figure:nth-child(1),
  .testimonials-scatter figure:nth-child(2),
  .testimonials-scatter figure:nth-child(3) { transform: none; }
}

/* ============================================================
   bigcta — light sweep
   ============================================================ */
.bigcta { position: relative; overflow: hidden; isolation: isolate; }
.bigcta-sweep {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
}
.bigcta-sweep::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% -5%, rgba(255,255,255,.28), transparent 55%);
}
@keyframes lightsweep {
  0%   { transform: translateX(-140%) skewX(-18deg); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateX(340%) skewX(-18deg); opacity: 0; }
}
.bigcta-sweep::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 90px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  animation: lightsweep 4s ease-in-out infinite;
}
.bigcta .container { position: relative; z-index: 2; }

/* ── Visualization briefs — implementation notes, hidden from live page ── */
.vis-brief {
  display: none;
}
.vis-brief .vis-brief-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(26, 109, 212, .6);
  margin-bottom: 12px;
}
.vis-brief p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: #1a6dd4;
  margin: 0 0 10px;
}
.vis-brief p:last-child { margin-bottom: 0; }
.vis-brief strong { color: #1a6dd4; font-weight: 700; }
.vis-brief em { color: #1a6dd4; }
.vis-brief code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(26, 109, 212, 0.1);
  padding: 1px 5px;
  border-radius: 3px;
  color: #1a6dd4;
}

/* ============================================================
   ENGAGEMENT VISUALS — all 10 cards
   Appended after vis-brief block
   ============================================================ */

/* ---- CARD 01: Entity graph canvas ---- */
.ew-vis-entity-split {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ---- CARD 01: Entity mapping matrix ---- */
.em-matrix {
  background: #fff;
  border: 1px solid #e8efe8;
  border-radius: 12px;
  padding: 16px 16px 14px;
  box-shadow: 0 2px 10px rgba(45,106,79,.06);
  font-family: Geist, sans-serif;
  overflow-x: auto;
}
.em-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 13px;
  margin-bottom: 12px;
  border-bottom: 1px solid #eef3ee;
}
.em-stat { display: flex; align-items: baseline; gap: 5px; }
.em-stat-n { font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.em-stat-n--owned  { color: #2D6A4F; }
.em-stat-n--comp   { color: #c8281c; }
.em-stat-n--absent { color: #9CA3AF; }
.em-stat-l { font-size: 11px; color: #6B7280; font-weight: 500; }
.em-stat-div { width: 1px; height: 22px; background: #e5e7eb; }

/* Column header row */
.em-head {
  display: grid;
  grid-template-columns: 1fr repeat(4, 58px);
  gap: 5px;
  align-items: end;
  padding: 0 8px 8px;
  border-bottom: 1px solid #e8efe8;
}
.em-head-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.em-head-plat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 700;
  color: #6B7280;
}
.em-head-plat svg { display: block; }

.em-body { padding-top: 6px; }
.em-group-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #2D6A4F;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 10px 0 5px;
  padding-left: 8px;
}
.em-group-label:first-child { margin-top: 0; }

.em-row {
  display: grid;
  grid-template-columns: 1fr repeat(4, 58px);
  gap: 5px;
  align-items: center;
  padding: 5px 8px;
  border-radius: 6px;
  transition: background .2s;
}
.em-row:hover { background: #fafbfa; }
.em-row--win {
  background: linear-gradient(90deg, #f0fdf6, #ecfdf5);
  box-shadow: inset 2px 0 0 #6EE7B7;
}
.em-prompt {
  font-size: 11px;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.em-row--win .em-prompt { color: #065F46; font-weight: 600; }

/* Cells */
.em-cell {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.em-cell--win {
  background: #D1FAE5;
  box-shadow: 0 0 0 1.5px #6EE7B7;
}
.em-cell--comp {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  overflow: hidden;
}
.em-comp {
  font-size: 8px;
  font-weight: 700;
  color: #b91c1c;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.em-cell--partial {
  background: #FEF3C7;
  color: #b8860b;
}
.em-cell--absent {
  background: #f3f4f6;
  color: #c8ccc8;
  font-size: 14px;
}

.em-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #eef3ee;
  font-size: 10px;
  color: #6B7280;
}
.em-legend span { display: inline-flex; align-items: center; }
.em-dot {
  width: 10px; height: 10px; border-radius: 3px;
  margin-right: 5px;
}
.em-dot--win { background: #D1FAE5; box-shadow: 0 0 0 1.5px #6EE7B7; }
.em-dot--comp { background: #FEF2F2; border: 1px solid #FECACA; }
.em-dot--partial { background: #FEF3C7; }
.em-dot--absent { background: #f3f4f6; }

/* Canonical platform icon wrapper — consistent across all cards */
.plat-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}
.plat-ico svg { display: block; }

/* ---- CARD 06: Technology content hubs — HTML, light sage ---- */
.vis06-hub {
  background: #EEF3EE !important;
  padding: 22px 20px !important;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.vis06-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: start;
}
.vis06-cluster {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Hub card */
.vis06-hubcard {
  background: linear-gradient(135deg, #2D6A4F, #235741);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(45,106,79,.25);
  position: relative;
  overflow: hidden;
}
.vis06-hubcard::after {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
}
.vis06-hub-eyebrow {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 5px;
}
.vis06-hub-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
}
.vis06-hub-author {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  margin-bottom: 10px;
}
.vis06-hub-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.vis06-hub-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  color: #A7F3D0;
  background: rgba(167,243,208,.12);
  border: 1px solid rgba(167,243,208,.3);
  border-radius: 5px;
  padding: 3px 9px;
  letter-spacing: .04em;
}
/* Spokes */
.vis06-spokes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 14px;
  border-left: 2px dashed #c8d8c8;
  margin-left: 12px;
}
.vis06-spoke {
  background: #fff;
  border: 1px solid #dde8e0;
  border-radius: 8px;
  padding: 8px 11px;
  position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.vis06-spoke::before {
  content: '';
  position: absolute;
  left: -15px; top: 50%;
  width: 13px; height: 1px;
  background: #c8d8c8;
}
.vis06-spoke:hover {
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(45,106,79,.12);
  border-color: #A7F3D0;
}
.vis06-spoke-main { flex: 1; min-width: 0; }
.vis06-spoke-slug {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: #2D6A4F;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vis06-spoke-desc {
  font-family: var(--font-body);
  font-size: 9.5px;
  color: #8aaa8a;
  margin-top: 2px;
}
/* Per-spoke citation icons */
.vis06-spoke-cites {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.vis06-cite-dot {
  width: 18px; height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: transform .15s, opacity .15s;
}
.vis06-cite-dot svg { display: block; width: 16px; height: 16px; }
.vis06-cite-dot:hover { transform: scale(1.2); }
/* Not-yet-citing: desaturated + faint */
.vis06-cite-dot.is-off {
  opacity: .9;
  filter: grayscale(1);
}
.vis06-cite-dot.is-off svg { opacity: .35; }
/* Inter-hub bridge */
.vis06-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 32px;
  align-self: stretch;
  justify-content: flex-start;
}
.vis06-bridge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6EE7B7;
}
.vis06-bridge-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  color: #8aaa8a;
  text-transform: uppercase;
  letter-spacing: .06em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
/* Footer: citing + stats */
.vis06-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #c8d8c8;
  flex-wrap: wrap;
}
.vis06-citing {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.vis06-citing-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: #6B8F71;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-right: 2px;
}
.vis06-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: #4a6a4a;
}
.vis06-chip {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  border-radius: 20px;
  padding: 4px 12px;
}
.vis06-chip--gpt  { color: #10A37F; background: rgba(16,163,127,.1); border: 1px solid rgba(16,163,127,.3); }
.vis06-chip--pplx { color: #1a8a82; background: rgba(32,178,170,.1); border: 1px solid rgba(32,178,170,.3); }
.vis06-chip--gem  { color: #7c5cdb; background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.3); }
.vis06-chip--aio  { color: #4285F4; background: rgba(66,133,244,.1); border: 1px solid rgba(66,133,244,.3); }
.vis06-stats {
  display: flex;
  align-items: center;
  gap: 22px;
}
.vis06-stat { display: flex; align-items: baseline; gap: 5px; }
.vis06-stat-n {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #2D6A4F;
  line-height: 1;
}
.vis06-stat-l {
  font-family: var(--font-body);
  font-size: 10px;
  color: #8aaa8a;
}

/* ---- CARD 02: HTML prompt stream + heatmap — sage theme ---- */
.vis02-html {
  max-height: 600px;
  overflow: hidden;
  background: #EEF3EE;
}
.vis02-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  height: 600px;
}

/* Left: scrolling chip stream */
.vis02-stream-wrap {
  position: relative;
  overflow: hidden;
  border-right: 1px solid #c8d8c8;
  background: #EEF3EE;
}
.vis02-stream {
  display: flex;
  flex-direction: column;
  animation: vis02scroll 32s linear infinite;
}
@keyframes vis02scroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.vis02-chips {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 14px;
  margin-bottom: 4px;
}
.vis02-chip {
  font-family: Geist, sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  padding: 7px 12px 7px 18px;
  border-radius: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  flex-shrink: 0;
  border-left: 3px solid transparent;
  color: #3d5447;
}
.vis02-chip--absent {
  background: rgba(220,38,38,0.07);
  border-left-color: #E8392A;
  color: #7a2020;
}
.vis02-chip--mid {
  background: rgba(217,119,6,0.08);
  border-left-color: #D97706;
  color: #7a4a00;
}
.vis02-chip--win {
  background: rgba(45,106,79,0.1);
  border-left-color: #2D6A4F;
  color: #2D4A2D;
}
/* Top/bottom fade */
.vis02-fade-top, .vis02-fade-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 52px;
  pointer-events: none;
  z-index: 2;
}
.vis02-fade-top {
  top: 0;
  background: linear-gradient(to bottom, #EEF3EE, transparent);
}
.vis02-fade-bottom {
  bottom: 0;
  background: linear-gradient(to top, #EEF3EE, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .vis02-stream { animation: none; }
}

/* Right: cluster heatmap — sage */
.vis02-heat {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  padding: 0;
  gap: 0;
  background: #f0f5f0;
  border-left: 1px solid #c8d8c8;
}
.vis02-heat-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 18px;
  flex: 1;
  border-bottom: 1px solid #dde8dd;
  justify-content: center;
}
.vis02-heat-row:last-child { border-bottom: none; }
.vis02-heat-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.vis02-heat-name {
  font-family: Geist, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #2D4A2D;
  letter-spacing: -0.01em;
}
.vis02-heat-total {
  font-family: Geist, sans-serif;
  font-size: 9px;
  font-weight: 500;
  color: #8aaa8a;
}
.vis02-heat-bar-wrap { width: 100%; }
.vis02-heat-track {
  height: 6px;
  background: #dde8dd;
  border-radius: 4px;
  display: flex;
  overflow: hidden;
  gap: 1px;
}
.vis02-heat-fill {
  height: 100%;
  border-radius: 4px 0 0 4px;
  flex-shrink: 0;
}
.vis02-heat-cited {
  height: 100%;
  background: #2D6A4F;
  flex-shrink: 0;
  opacity: 0.4;
}
.vis02-heat-nums {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.vis02-heat-absent {
  font-family: Geist, sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: #c8281c;
  letter-spacing: -0.03em;
}
.vis02-heat-sub {
  font-family: Geist, sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: #aaaaaa;
}
.vis02-heat-cited-n {
  font-family: Geist, sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #2D6A4F;
  margin-left: auto;
}

/* Legacy canvas — hidden, kept so JS guard doesn't error */
.vis02-intent-wrap { height: 100%; }
.vis02-canvas { display: none; }

/* ---- CARD 03: Sage audit panel (vis03) ---- */
#vis03-audit {
  background: #EEF3EE;
  padding: 0 !important;
  position: relative;
  overflow: hidden;
}
.vis03-terminal {
  background: #EEF3EE;
  height: 100%;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.vis03-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #dde8dd;
  border-bottom: 1px solid #c8d8c8;
  flex-shrink: 0;
}
.vis03-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.vis03-title {
  font-family: Geist, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #4a6a4a;
  margin-left: 8px;
}
.vis03-body {
  flex: 1;
  padding: 14px 20px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.vis03-cmd-line {
  font-family: Geist, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #2D4A2D;
  min-height: 18px;
}
.vis03-cursor {
  display: inline-block;
  animation: vis03blink .8s step-end infinite;
  color: #2D6A4F;
}
@keyframes vis03blink { 50% { opacity: 0; } }
.vis03-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vis03-progress-bar {
  flex: 1;
  height: 4px;
  background: #c8d8c8;
  border-radius: 2px;
  overflow: hidden;
}
.vis03-progress-fill {
  height: 100%;
  width: 0%;
  background: #2D6A4F;
  border-radius: 2px;
  transition: width .05s linear;
  box-shadow: 0 0 6px rgba(45,106,79,0.3);
}
.vis03-prog-label {
  font-family: Geist, sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #4a6a4a;
  min-width: 76px;
  text-align: right;
}
.vis03-stat-line {
  font-family: Geist, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #2D6A4F;
  transition: opacity .5s;
}
.vis03-gauges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 12px;
  transition: opacity .5s;
  margin-top: 4px;
}
.vis03-gauge-item {
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  border-bottom: 1px solid rgba(173,192,166,0.07);
}
.vis03-gauge-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.vis03-gauge-label {
  font-family: Geist, sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  color: #3d5a3d;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}
.vis03-severity-label {
  font-family: Geist, sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #7a9a7a;
}
.vis03-gauge-ring-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.vis03-ring {
  width: 44px;
  height: 44px;
  transition: stroke 0.4s ease;
}
#vis03-ring0, #vis03-ring1, #vis03-ring2, #vis03-ring3,
#vis03-ring4, #vis03-ring5 {
  transition: stroke 0.4s ease;
}
#vis03-issues {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-top: 1px solid #c8d8c8;
  padding-top: 6px;
}
.vis03-issue-line {
  font-family: Geist, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  color: #4a6a4a;
  padding: 2px 0 2px 8px;
  border-left: 2px solid #c87a00;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vis03-issue-line.is-visible { opacity: 1; transform: translateX(0); }
.vis03-critical-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  margin-top: 6px;
  background: rgba(200,40,30,0.08);
  border-left: 3px solid #c8281c;
  border-radius: 0 6px 6px 0;
  font-family: Geist, sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  color: #8a2a1a;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .4s ease, transform .4s ease;
}
.vis03-critical-callout.is-visible { opacity: 1; transform: translateY(0); }
.vis03-callout-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.vis03-critical-callout strong { color: #5a1a0a; font-weight: 700; }

/* ---- CARD 04: LLM theatre (vis04) ---- */
#vis04-wrap {
  background: #0D1117;
  padding: 0 !important;
  overflow: hidden;
  position: relative;
}

/* ── No separate screen-frame needed — vis04-wrap is the container ── */
.vis04-screen-frame {
  overflow: hidden;
}

/* ── Three-column theatre ── */
.vis04-theatres {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
  background: var(--paper);
  border-bottom: none;
}
.vis04-platform {
  display: flex;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: opacity 0.4s ease;
  position: relative;
  z-index: 1;
  min-height: 280px;
  margin: 10px;
  border-radius: 12px;
}
.vis04-platform:last-child { border-right: none; }
.vis04-platform.is-active { opacity: 1; }
.vis04-platform.is-idle { opacity: 0.65; }

/* ── macOS-style window chrome (shared) ── */
.vis04-winbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  flex-shrink: 0;
}
.vis04-winbar-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.vis04-winbar-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}
.vis04-winbar-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  flex: 1;
  justify-content: center;
  color: rgba(0,0,0,.55);
  letter-spacing: -.01em;
}
.vis04-winbar--pplx .vis04-winbar-title { color: rgba(255,255,255,.6); }

/* Counters */
.vis04-counters {
  display: flex;
  gap: 8px;
  font-size: 8px;
  font-family: var(--font-mono);
  margin-left: auto;
  flex-shrink: 0;
}
.vis04-counters--light { color: rgba(0,0,0,.35); }
.vis04-counters--dark  { color: rgba(255,255,255,.3); }
.vis04-comp-count strong { color: #d93025; font-weight: 700; }
.vis04-nike-count strong { color: rgba(0,0,0,.4); font-weight: 700; }
.vis04-counters--dark .vis04-comp-count strong { color: #ff7070; }
.vis04-counters--dark .vis04-nike-count strong { color: rgba(255,255,255,.4); }

/* Shared response text */
.vis04-response {
  font-size: 10.5px;
  line-height: 1.7;
  flex: 1;
  overflow: hidden;
}
.vis04-token--comp {
  display: inline;
  background: rgba(217,48,37,.1);
  color: #c0392b;
  border-radius: 3px;
  padding: 0 3px;
  font-weight: 600;
}
.vis04-token--nike {
  display: inline;
  color: rgba(0,0,0,.38);
  font-weight: 500;
}

/* ── Blinking cursor appended to active response ── */
.vis04-response::after {
  content: '▋';
  display: inline-block;
  animation: vis04-blink 0.9s step-end infinite;
  color: rgba(255,255,255,.45);
  font-size: 0.85em;
  margin-left: 1px;
  vertical-align: baseline;
}
.vis04-response.is-done::after { display: none; }
@keyframes vis04-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── ChatGPT platform ── */
.vis04-platform--gpt {
  background: #1a1a1a;
}
.vis04-winbar--gpt {
  background: #262626;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.vis04-winbar--gpt .vis04-winbar-title { color: rgba(255,255,255,.6); }
.vis04-gpt-inner {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.vis04-gpt-sidebar {
  width: 130px;
  background: #111111;
  border-right: 1px solid rgba(255,255,255,.07);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.vis04-gpt-sidebar-item {
  font-size: 9.5px;
  color: rgba(255,255,255,.35);
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}
.vis04-gpt-sidebar-item--active {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
}
.vis04-gpt-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vis04-gpt-modelbar {
  padding: 8px 12px 6px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
}
.vis04-gpt-model-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.08);
  border-radius: 6px;
  padding: 3px 8px;
  cursor: default;
}
.vis04-gpt-thread {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.vis04-gpt-user-msg {
  display: flex;
  justify-content: flex-end;
}
.vis04-gpt-bubble {
  background: #303030;
  border-radius: 18px 18px 4px 18px;
  padding: 8px 12px;
  font-size: 10.5px;
  color: rgba(255,255,255,.92);
  max-width: 88%;
  line-height: 1.45;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.vis04-gpt-ai-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.vis04-gpt-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10a37f;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vis04-platform--gpt .vis04-response {
  font-size: 10.5px;
  color: rgba(255,255,255,.82);
  line-height: 1.7;
}
.vis04-platform--gpt .vis04-token--comp {
  background: rgba(217,48,37,.18);
  color: #ff7b72;
}
.vis04-platform--gpt .vis04-token--nike {
  color: rgba(255,255,255,.35);
}

/* ── Google AIO platform ── */
.vis04-platform--aio {
  background: #191923;
}
.vis04-winbar--aio {
  background: #111118;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.vis04-aio-searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 12px 0;
  padding: 8px 14px;
  border: 1px solid var(--terminal-border);
  border-radius: 24px;
  background: #2a2a3e;
}
.vis04-aio-query {
  flex: 1;
  font-size: 11px;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-body);
}
.vis04-aio-searchbtn {
  width: 28px;
  height: 28px;
  background: #4285F4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vis04-aio-tabs {
  display: flex;
  gap: 0;
  padding: 6px 12px 0;
  border-bottom: 1px solid var(--terminal-border);
  margin-top: 6px;
}
.vis04-aio-tab {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,.35);
  padding: 6px 12px;
  cursor: default;
  border-bottom: 2px solid transparent;
  font-family: var(--font-body);
}
.vis04-aio-tab--active {
  color: #4285F4;
  border-bottom-color: #1a73e8;
}
.vis04-aio-card {
  margin: 10px 12px;
  border: 1px solid var(--terminal-border);
  border-radius: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.vis04-aio-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  color: #4285F4;
  font-family: var(--font-body);
}
.vis04-platform--aio .vis04-aio-body {
  font-size: 10.5px;
  color: rgba(255,255,255,.7);
  line-height: 1.68;
  font-family: var(--font-body);
  flex: 1;
}
.vis04-aio-sources {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid var(--terminal-border);
  margin-top: auto;
}
.vis04-aio-src-pill {
  font-size: 9px;
  color: #7ab3f7;
  background: rgba(66,133,244,.18);
  border: 1px solid rgba(66,133,244,.25);
  border-radius: 4px;
  padding: 3px 8px;
  font-family: var(--font-body);
}

/* ── Perplexity platform ── */
.vis04-platform--pplx {
  background: #16191e;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.vis04-winbar--pplx {
  background: #0e1013;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.vis04-pplx-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  padding: 10px 14px;
  gap: 8px;
}
.vis04-pplx-query-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  font-size: 11px;
  color: rgba(255,255,255,.88);
  line-height: 1.45;
}
.vis04-pplx-sources-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.vis04-pplx-src {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px;
  padding: 2px 7px;
}
.vis04-pplx-src-num {
  width: 13px;
  height: 13px;
  background: rgba(32,178,170,.25);
  color: #20b2aa;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 7.5px;
  font-weight: 700;
}
.vis04-pplx-answer-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  font-family: var(--font-mono);
}
.vis04-platform--pplx .vis04-pplx-body {
  font-size: 10.5px;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  flex: 1;
  overflow: hidden;
}
.vis04-platform--pplx .vis04-token--comp {
  background: rgba(217,48,37,.2);
  color: #ff7b72;
  border-radius: 3px;
  padding: 0 3px;
}
.vis04-platform--pplx .vis04-token--nike {
  color: rgba(255,255,255,.32);
}

/* ── Race bars ── */
/* ── SOV by buyer journey stage ── */
.vis04-sov {
  background: #fff;
  padding: 20px 24px 22px;
  border-top: 1px solid rgba(0,0,0,.06);
}
.vis04-sov-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.vis04-sov-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  max-width: 62ch;
}
.vis04-sov-cluster {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  color: rgba(14,15,12,.35);
  letter-spacing: .03em;
  margin-left: 6px;
  white-space: nowrap;
}
.vis04-sov-subtitle {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(14,15,12,.45);
  margin-top: 5px;
  line-height: 1.4;
  max-width: 64ch;
}
.vis04-sov-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 10px;
  color: rgba(14,15,12,.5);
  flex-shrink: 0;
}
.vis04-sov-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.vis04-sov-leg-swatch {
  width: 18px; height: 9px;
  border-radius: 3px;
  display: inline-block;
}
.vis04-sov-leg-comp {
  background: repeating-linear-gradient(90deg, rgba(14,15,12,.5) 0 4px, transparent 4px 7px);
  height: 2px;
  align-self: center;
}
.vis04-sov-leg-nike { background: var(--sage-700); }
/* Chart */
.vis04-sov-chart {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.vis04-sov-stage {
  display: grid;
  grid-template-columns: 168px 1fr 64px;
  align-items: center;
  gap: 0 16px;
  padding: 11px 12px;
  border: 1px solid #eef1ee;
  border-radius: 9px;
  background: #fcfdfc;
  transition: box-shadow .25s, border-color .25s;
}
.vis04-sov-stage:hover { box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.vis04-sov-stage--win {
  background: linear-gradient(100deg, #f0fdf6, #ecfdf5);
  border-color: rgba(45,106,79,.28) !important;
  box-shadow: inset 3px 0 0 #2D6A4F;
}
.vis04-sov-stage-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.vis04-sov-stage-name {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: rgba(14,15,12,.78);
}
.vis04-sov-stage--win .vis04-sov-stage-name { color: var(--sage-700); }
.vis04-sov-stage-eg {
  display: block;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-style: italic;
  color: rgba(14,15,12,.38);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vis04-sov-dual {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
/* Brand bar row — primary display */
.vis04-sov-track-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Competitor reference row */
.vis04-sov-track-wrap--comp {
  position: relative;
  order: 2;
}
.vis04-sov-track-wrap--comp .vis04-sov-track {
  background: none !important;
  border: none;
  overflow: visible;
  height: 8px;
  display: flex;
  align-items: center;
}
.vis04-sov-track-wrap--comp .vis04-sov-fill--comp {
  background: repeating-linear-gradient(
    90deg,
    rgba(14,15,12,.4) 0px, rgba(14,15,12,.4) 5px,
    transparent 5px, transparent 9px
  );
  height: 2px;
  border-radius: 0;
  position: relative;
}
/* Competitor end marker */
.vis04-sov-track-wrap--comp .vis04-sov-fill--comp::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 2px; height: 11px;
  background: rgba(14,15,12,.5);
  border-radius: 1px;
}
.vis04-sov-track {
  flex: 1;
  height: 18px;
  background: rgba(14,15,12,.05);
  border-radius: 5px;
  overflow: hidden;
}
.vis04-sov-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 1s cubic-bezier(.16,1.2,.3,1);
}
.vis04-sov-fill--comp { background: rgba(14,15,12,.18); }
.vis04-sov-fill--nike {
  background: linear-gradient(90deg, #2D6A4F, #4a8c6a);
  box-shadow: 0 1px 6px rgba(45,106,79,.35);
  position: relative;
}
.vis04-sov-stage--win .vis04-sov-fill--nike {
  background: linear-gradient(90deg, #2D6A4F, #5aa37c);
  box-shadow: 0 1px 12px rgba(45,106,79,.5);
}
.vis04-sov-val {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--sage-700);
  min-width: 62px;
  flex-shrink: 0;
}
.vis04-sov-val--comp {
  font-size: 9px;
  font-weight: 600;
  color: rgba(14,15,12,.4);
}
.vis04-sov-val--nike { color: var(--sage-700); }
.vis04-sov-stage--win .vis04-sov-val--nike {
  color: var(--sage-600);
  font-size: 12px;
}
.vis04-sov-gap-tag {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  color: #c8281c;
  background: rgba(200,40,28,.07);
  border: 1px solid rgba(200,40,28,.18);
  border-radius: 6px;
  padding: 6px 4px;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .4s ease, transform .4s ease;
}
.vis04-sov-win-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  color: #065F46;
  background: #D1FAE5;
  border: 1px solid #A7F3D0;
  border-radius: 6px;
  padding: 6px 4px;
  text-align: center;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .4s ease, transform .4s ease;
}
.vis04-sov-win-tag::before { content: '↑'; margin-right: 2px; }
.vis04-sov-gap-tag.is-visible,
.vis04-sov-win-tag.is-visible {
  opacity: 1;
  transform: scale(1);
}
.vis04-sov-journey {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px 0;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(14,15,12,.4);
  margin-top: 4px;
}
.vis04-sov-journey span:first-child { color: rgba(200,40,28,.7); }
.vis04-sov-journey span:last-child { color: var(--sage-700); }
.vis04-sov-journey-arrow {
  flex: 1;
  height: 2px;
  margin: 0 14px;
  background: linear-gradient(90deg, rgba(200,40,28,.35), rgba(45,106,79,.5));
  border-radius: 1px;
  font-size: 0;
}

/* ---- CARD 05: Schema diff (vis05) ---- */
#vis05-wrap {
  background: #eef3ee;
  padding: 0;
  overflow: hidden;
  position: relative;
}
/* Old three-column layout — kept for backward compat but unused */
.vis05-diff-theatre {
  display: grid;
  grid-template-columns: 1fr 1fr 120px;
  gap: 0;
  height: 100%;
  min-height: 340px;
  position: relative;
}

/* Card 05: 2-col outer (text | right panel), nested grid inside right */
.vis05-three-col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  align-items: stretch;
}
.vis05-col-text {
  padding: clamp(24px, 3vw, 40px);
  background: var(--paper);
  border-right: 1px solid rgba(14,15,12,.08);
}
/* Right panel: stacks diff-row on top, meter on bottom */
.vis05-right {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 420px;
  border-left: 1px solid rgba(14,15,12,.08);
}
/* Top row inside right: before | after side by side */
.vis05-diff-row {
  display: grid;
  grid-template-columns: 2fr 3fr;
  border-bottom: 1px solid #dde8e0;
}
.vis05-col-before {
  background: #f8faf8;
  border-right: 1px solid #dde8e0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px;
}
.vis05-col-after {
  background: #f4f6f2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px;
}
/* Bottom row: Rich Results spans full right panel width */
.vis05-col-meter {
  background: #eef3ee;
}

/* Legacy full-width diff layout — kept for backward compat */
.vis05-diff-full {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  min-height: 420px;
  position: relative;
  border-bottom: 1px solid #1a2f22;
}

/* Horizontal LLM meter */
.vis05-hbar-meter {
  background: #eef3ee;
  padding: 16px 24px;
  border-top: 1px solid #dde8e0;
}
.vis05-hbar-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.vis05-hbar-segments {
  display: flex;
  gap: 4px;
  height: 10px;
  margin-bottom: 12px;
}
.vis05-hbar-seg {
  flex: 1;
  border-radius: 3px;
  background: #E5E7EB;
  position: relative;
  transition: background 0.5s ease;
}
.vis05-hbar-seg::after {
  content: attr(data-label);
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 11px;
  color: #374151;
  white-space: nowrap;
}
.vis05-hbar-seg.is-active { background: var(--status-owned); }
.vis05-hbar-seg--target.is-active {
  background: var(--status-owned);
  box-shadow: 0 0 8px rgba(45,106,79,.4);
}
.vis05-hbar-checks {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.vis05-hbar-check {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--status-owned);
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.vis05-hbar-check.is-visible { opacity: 1; }

/* Missing block (replaces ghost) */
.vis05-missing-block {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  margin-top: 4px;
  background: rgba(248,81,73,0.06);
  border: 1.5px solid rgba(232,57,42,.35);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--status-absent);
}
.vis05-missing-block code { font-family: var(--font-mono); font-size: 10px; }
.vis05-missing-comment { color: rgba(232,57,42,.5); font-style: italic; margin-left: auto; font-size: 9px; }
.vis05-rain-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
#vis05-rain {
  width: 100%;
  height: 100%;
  opacity: .035;
}
.vis05-panel {
  position: relative;
  z-index: 1;
  padding: 18px 18px 20px;
  border-right: 1px solid #dde8e0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  background: #f8faf8;
  align-self: stretch;
}
.vis05-panel--after {
  border-right: none;
  background: #f4f6f2;
  align-self: stretch;
}
.vis05-panel--after:hover {
  box-shadow: var(--shadow-glow-accent);
}
/* Rain intensifies on fixed panel hover */
#vis05-wrap:has(.vis05-panel--after:hover) #vis05-rain {
  opacity: 0.14;
  transition: opacity 0.4s ease;
}
#vis05-rain {
  transition: opacity 0.6s ease;
}
/* Meter glow on hover */
.vis05-panel--after:hover .vis05-meter-fill {
  box-shadow: 0 0 16px rgba(107,143,113,.5);
}
.vis05-panel-label {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.vis05-label--bad  { color: rgba(180,100,80,.8); }
.vis05-label--good { color: var(--sage-700); }
.vis05-code {
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.7;
  color: var(--sage-700);
  margin: 0;
  white-space: pre;
  overflow: visible;
}
.jt-brace { color: var(--sage-400); }
.jt-key   { color: var(--sage-700); }
.jt-str   { color: var(--sage-600); }
.vis05-ghost {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #c8281c;
  border: 1.5px dashed rgba(200,40,28,.45);
  border-radius: 4px;
  padding: 4px 8px;
  margin-top: 4px;
  background: rgba(200,40,28,.04);
  transition: color 0.5s ease, border-color 0.5s ease, border-style 0.5s ease, background 0.5s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}
.vis05-missing-pill {
  display: inline-block;
  font-size: 7px; font-weight: 800; letter-spacing: .1em;
  background: #c8281c; color: #fff;
  padding: 1px 5px; border-radius: 2px;
  text-transform: uppercase; margin-right: 8px; flex-shrink: 0;
}
.vis05-ghost em {
  color: rgba(200,40,28,.5);
  font-style: normal;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color 0.4s ease, opacity 0.4s ease;
  margin-left: 4px;
}
@keyframes vis05resolve {
  0%   { transform: scale(0.94); box-shadow: 0 0 0 0 rgba(107,143,113,.5); }
  40%  { transform: scale(1.03); box-shadow: 0 0 0 8px rgba(107,143,113,0); }
  100% { transform: scale(1);    box-shadow: none; }
}
/* Ghost resolved state */
.vis05-ghost.is-resolved {
  color: var(--sage-700);
  border: 1px solid rgba(107,143,113,.35);
  background: rgba(107,143,113,.06);
  animation: vis05resolve 0.5s cubic-bezier(.34,1.56,.64,1) forwards;
}
.vis05-ghost.is-resolved em {
  color: transparent;
  opacity: 0;
}
.vis05-typed-code {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.75;
  color: #3d5447;
  white-space: pre;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #adc0a6 #f4f6f2;
}
.vis05-typed-code::-webkit-scrollbar { width: 6px; }
.vis05-typed-code::-webkit-scrollbar-track { background: #f4f6f2; }
.vis05-typed-code::-webkit-scrollbar-thumb { background: #adc0a6; border-radius: 3px; }
.vis05-typed-code::-webkit-scrollbar-thumb:hover { background: #6B8F71; }

/* BEFORE code pre scrollbar */
.vis05-panel--before pre::-webkit-scrollbar { width: 6px; }
.vis05-panel--before pre::-webkit-scrollbar-track { background: #f8faf8; }
.vis05-panel--before pre::-webkit-scrollbar-thumb { background: #adc0a6; border-radius: 3px; }
.vis05-panel--before pre::-webkit-scrollbar-thumb:hover { background: #6B8F71; }
.vis05-line-new {
  border-left: 2px solid #2D6A4F;
  padding-left: 6px;
  color: #2D6A4F;
  background: rgba(45,106,79,.08);
  border-radius: 0 2px 2px 0;
  display: block;
  animation: vis05linefade .7s ease forwards;
}
.vis05-line-new::before {
  content: '+';
  color: rgba(45,106,79,.5);
  margin-right: 4px;
  font-weight: 700;
}
@keyframes vis05linefade {
  0%   { background: rgba(45,106,79,.18); }
  100% { background: rgba(45,106,79,.06); }
}
@keyframes vis05MissingPulse {
  0%, 100% { border-color: #C0392B; box-shadow: none; }
  50%       { border-color: #E8392A; box-shadow: 0 0 0 3px rgba(192,57,43,.15); }
}
.vis05-meter {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 10px;
  align-items: center;
}
.vis05-meter-label {
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage-400);
  text-align: center;
}
.vis05-meter-track {
  flex: 1;
  width: 28px;
  background: var(--sage-100);
  border-radius: 14px;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 160px;
}
/* Tick marks at 25%, 50%, 75%, 100% */
.vis05-meter-track::before {
  content: '100%  75%  50%  25%';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 36px;
  font-family: var(--font-mono);
  font-size: 6.5px;
  color: rgba(61,84,71,.35);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  white-space: pre;
  line-height: 1;
  letter-spacing: 0;
}
.vis05-meter-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(0deg, var(--sage-700) 0%, var(--sage-500) 100%);
  border-radius: 11px;
  transition: height 2s cubic-bezier(.4,0,.2,1);
  position: absolute;
  bottom: 0;
  box-shadow: 0 0 12px rgba(107,143,113,.4);
}
.vis05-meter-pct {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  color: var(--sage-700);
  white-space: nowrap;
}
.vis05-meter-items {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}
.vis05-meter-item {
  font-family: var(--font-mono);
  font-size: 7.5px;
  color: var(--sage-700);
  opacity: 0;
  transition: opacity .5s;
  text-align: left;
  line-height: 1.45;
  padding: 3px 6px;
  border-radius: 4px;
  background: transparent;
}
.vis05-meter-item.is-visible {
  opacity: 1;
  background: rgba(61,84,71,.07);
}
.vis05-meter-item.is-visible::before {
  content: '✓ ';
  color: var(--sage-500);
  font-weight: 700;
}

/* ---- CARD 06: Hub canvas ---- */
/* canvas already styled inline */

/* ---- CARD 07: Citation proof (vis07) ---- */
#vis07-wrap {
  background: var(--paper);
  padding: 0 !important;
  overflow: hidden;
}
/* ---- CARD 07: GEO content layer — source → cited → count flow ---- */
.vis07-flow {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
  padding: 20px;
  gap: 14px;
}

/* 1. Source document */
.vis07-source {
  background: #fff;
  border: 1px solid #dde8e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.vis07-source-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: #f4f8f4;
  border-bottom: 1px solid #dde8e0;
}
.vis07-source-lock { width: 11px; height: 11px; color: #6B8F71; flex-shrink: 0; }
.vis07-source-url {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #4a6a4a;
  flex: 1;
}
.vis07-source-tag {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  color: #2D6A4F;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 3px;
  padding: 2px 7px;
  letter-spacing: .03em;
}
.vis07-source-body { padding: 14px 16px 13px; }
.vis07-source-q {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 7px;
}
.vis07-source-a {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.6;
  color: #3d4a3d;
  margin-bottom: 12px;
}
.vis07-claim {
  background: rgba(253,224,71,.55);
  border-radius: 3px;
  padding: 1px 4px;
  font-weight: 600;
  color: #5a4a00;
  box-shadow: 0 0 0 0 rgba(45,106,79,0);
  animation: vis07claimPulse 3s ease-in-out infinite;
}
@keyframes vis07claimPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45,106,79,0); }
  50%      { box-shadow: 0 0 0 4px rgba(45,106,79,.12); }
}
.vis07-source-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 11px;
  border-top: 1px solid #f0f4f0;
  flex-wrap: wrap;
}
.vis07-source-author {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: #374151;
}
.vis07-source-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #2D6A4F;
  color: #fff;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vis07-source-cited {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #8aaa8a;
  letter-spacing: .02em;
}

/* 2. Broadcast connector */
.vis07-broadcast {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vis07-broadcast-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c8d8c8, transparent);
}
.vis07-broadcast-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #6B8F71;
  flex-shrink: 0;
}
.vis07-broadcast-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  animation: vis07livePulse 1.5s ease-out infinite;
}
@keyframes vis07livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* 3. Platforms citing */
.vis07-platforms {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.vis07-plat {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .45s ease, transform .45s ease;
}
.vis07-plat.is-cited { opacity: 1; transform: translateX(0); }
.vis07-plat-icon { width: 18px; height: 18px; flex-shrink: 0; }
.vis07-plat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.vis07-plat-name {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: #374151;
}
.vis07-plat-quote {
  font-family: var(--font-body);
  font-size: 10.5px;
  line-height: 1.45;
  color: #6B7280;
}
.vis07-plat-quote b { color: #5a4a00; background: rgba(253,224,71,.45); border-radius: 2px; padding: 0 2px; font-weight: 600; }
.vis07-plat-src { color: #9CA3AF; font-style: italic; }
.vis07-plat-check {
  width: 16px; height: 16px; flex-shrink: 0;
  opacity: 0;
  transition: opacity .4s ease .2s;
}
.vis07-plat.is-cited .vis07-plat-check { opacity: 1; }

/* 4. Live count footer */
.vis07-count-bar {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #dde8e0;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.vis07-count-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; flex-shrink: 0;
  align-self: center;
  animation: vis07livePulse 1.5s ease-out infinite;
}
.vis07-count-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: #2D6A4F;
  line-height: 1;
}
.vis07-count-label {
  font-family: var(--font-body);
  font-size: 11px;
  color: #8aaa8a;
}

/* ---- CARD 08: Authority canvas (vis08) ---- */
#vis08-wrap {
  padding: 0 !important;
  background: var(--terminal-bg);
  overflow: hidden;
}
.vis08-stat-bar {
  background: var(--sage-50);
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--sage-400);
  letter-spacing: .05em;
  text-align: center;
  border-top: 1px solid var(--sage-200);
}
.vis08-stat-bar strong { color: var(--sage-700); }
.vis08-high-badge {
  display: inline-block;
  background: #3d5447;
  color: #fff;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: .1em;
  padding: 2px 8px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 2px;
  box-shadow: 0 0 10px rgba(61,84,71,.35);
}

/* ---- CARD 08: Digital PR — signal chain + coverage (sage) ---- */
.vis08-panel {
  min-height: 420px;
}
/* Signal chain — hero */
.vis08-chain {
  padding: 16px 18px 18px;
  background: linear-gradient(135deg, #f4f8f4 0%, #e8f0e8 100%);
  border-bottom: 1px solid #c8d8c8;
}
.vis08-chain-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.vis08-chain-eyebrow {
  font-family: Geist, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #2D4A2D;
  letter-spacing: .02em;
}
.vis08-chain-note {
  font-family: Geist, sans-serif;
  font-size: 10px;
  color: #7a9a7a;
}
.vis08-chain-flow {
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.vis08-chain-step {
  flex: 1;
  background: #fff;
  border: 1px solid #dde8e0;
  border-radius: 8px;
  padding: 9px 11px;
  position: relative;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
}
.vis08-chain-step.is-in { opacity: 1; transform: translateY(0); }
.vis08-chain-step--final {
  background: #2D6A4F;
  border-color: #2D6A4F;
}
.vis08-chain-num {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  color: #b8ccb8;
  margin-bottom: 4px;
}
.vis08-chain-step--final .vis08-chain-num { color: rgba(255,255,255,.5); }
.vis08-chain-label {
  font-family: Geist, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #2D4A2D;
  line-height: 1.2;
  margin-bottom: 2px;
}
.vis08-chain-step--final .vis08-chain-label { color: #fff; }
.vis08-chain-sub {
  font-family: Geist, sans-serif;
  font-size: 9px;
  color: #8aaa8a;
  line-height: 1.3;
}
.vis08-chain-step--final .vis08-chain-sub { color: rgba(255,255,255,.65); }
.vis08-chain-arrow {
  width: 18px;
  flex-shrink: 0;
  align-self: center;
  color: #b8ccb8;
}

/* KPI strip */
.vis08-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-bottom: 1px solid #dde8e0;
}
.vis08-kpi {
  padding: 11px 14px;
  border-right: 1px solid #f0f4f0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vis08-kpi:last-child { border-right: none; }
.vis08-kpi-n {
  font-family: Geist, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #2D6A4F;
  line-height: 1;
}
.vis08-kpi-l {
  font-family: Geist, sans-serif;
  font-size: 9px;
  font-weight: 500;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Coverage log */
.vis08-coverage {
  flex: 1;
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
}
.vis08-cov-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.vis08-cov-head > span:first-child {
  font-family: Geist, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #2D4A2D;
}
.vis08-cov-count {
  font-family: Geist, sans-serif;
  font-size: 9.5px;
  color: #8aaa8a;
}
.vis08-cov-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vis08-cov-row {
  display: grid;
  grid-template-columns: 34px 1fr 64px 48px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e8efe8;
  border-radius: 7px;
}
.vis08-cov-row--pending {
  background: transparent;
  border-style: dashed;
  border-color: #dde8e0;
}
.vis08-cov-dr {
  font-family: Geist, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  border-radius: 4px;
  padding: 3px 0;
}
.vis08-cov-dr--high { color: #065F46; background: #D1FAE5; }
.vis08-cov-dr--mid  { color: #92400E; background: #FEF3C7; }
.vis08-cov-dr--pending { color: #c8d0c8; background: transparent; }
.vis08-cov-pub {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.vis08-cov-name {
  font-family: Geist, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: #1f2a1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vis08-cov-row--pending .vis08-cov-name { color: #9CA3AF; font-weight: 500; }
.vis08-cov-angle {
  font-family: Geist, sans-serif;
  font-size: 9.5px;
  color: #8aaa8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vis08-cov-link {
  font-family: Geist, sans-serif;
  font-size: 9px;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  padding: 3px 0;
}
.vis08-cov-link--do { color: #2D6A4F; background: #ECFDF5; border: 1px solid #A7F3D0; }
.vis08-cov-link--no { color: #6B7280; background: #F3F4F6; border: 1px solid #E5E7EB; }
.vis08-cov-link--pending { color: #c8d0c8; background: transparent; border: 1px solid #e0e6e0; }
.vis08-cov-status {
  font-family: Geist, sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  color: #2D6A4F;
  text-align: right;
  white-space: nowrap;
}
.vis08-cov-status--pending { color: #b8860b; }

/* ---- CARD 09: Author graph (vis09) ---- */
#vis09-wrap {
  padding: 0 !important;
  overflow: hidden;
}

/* ---- CARD 10: SOV mission control (vis10) ---- */
.vis10-dashboard {
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vis10-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .vis10-grid { grid-template-columns: repeat(2, 1fr); }
}
.vis10-panel {
  background: var(--sage-100);
  border: 1px solid var(--sage-200);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.vis10-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid var(--sage-200);
}
.vis10-platform-name {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--sage-500);
}
.vis10-final-sov {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--sage-700);
}
.vis10-chart { display: block; width: 100%; }
.vis10-chart-wrap {
  background: transparent;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: visible;
  position: relative;
}
/* Legacy footer — no longer used */
.vis10-footer { display: none; }

/* Overlaid counter — bottom-right of canvas */
.vis10-counter-overlay {
  position: absolute;
  bottom: 24px;
  right: 24px;
  text-align: right;
  pointer-events: none;
}
.vis10-counter-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: 4px;
  display: block;
}
.vis10-odometer {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: #2D6A4F;
  line-height: 1;
}
.vis10-odometer.is-calculating {
  font-size: 16px;
  font-style: italic;
  color: #9CA3AF;
  font-family: var(--font-body);
  font-weight: 400;
}
.vis10-particle-burst {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 60px; height: 60px;
  pointer-events: none;
}

/* ============================================================
   Paper grain texture — very subtle, makes bg feel like paper
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ============================================================
   Scroll-driven stat underline — proof numbers
   @supports gate for safety
   ============================================================ */
@supports (animation-timeline: view()) {
  .proof-big {
    position: relative;
  }
  .proof-big::after {
    content: '';
    display: block;
    height: 3px;
    background: var(--sage-500);
    transform-origin: left center;
    transform: scaleX(0);
    border-radius: 2px;
    animation: tcox-drawLine linear forwards;
    animation-timeline: view();
    animation-range: entry 10% entry 55%;
  }
  @keyframes tcox-drawLine {
    to { transform: scaleX(1); }
  }
}

/* ============================================================
   Section colour transition — body attr swapped by JS
   ============================================================ */
body {
  transition: background-color 0.7s ease;
}

/* ============================================================
   Magnetic button — JS adds inline transform, CSS adds spring
   ============================================================ */
.btn-magnetic {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .15s ease !important;
  will-change: transform;
}

/* ============================================================
   Hero H1 entrance — smooth fade + rise
   ============================================================ */
.hero-h1 {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.hero-h1.hero-h1--in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .hero-h1 { opacity: 1; transform: none; transition: none; }
}

