/* ============================================================
   Kingscrowd — Intelligence Layer
   "Connect the dots" centerpiece + analyst insight reveals
   + intelligence glow / highlighter interactions
   ============================================================ */

/* ---------- Section shell ---------- */
.intel { position: relative; z-index: 2; overflow: hidden; }
.intel::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: none;
}
.intel .wrap { position: relative; z-index: 1; }

.intel-head { max-width: 760px; margin-bottom: 14px; }
.intel-head .display { margin: 14px 0 18px; }
.intel-head .lead { max-width: 660px; }
.intel-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
}
.intel-head .eyebrow::before {
  content: ""; width: 18px; height: 2px; background: var(--purple); border-radius: 2px;
}

/* ---------- The stage (3 columns + wires) ---------- */
.intel-stage {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.25fr 0.92fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: stretch;
  margin-top: 40px;
  padding: 8px 0;
}

/* wires overlay sits between columns */
.intel-wires {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; overflow: visible;
}
.intel-wire {
  fill: none; stroke: var(--purple); stroke-width: 1.6;
  stroke-linecap: round; opacity: 0.42;
}
.intel-wire--out { stroke-width: 2.6; opacity: 0.9; }
.intel-node { fill: var(--purple); }
.intel-node--ring { fill: none; stroke: var(--purple); stroke-width: 1.6; }

/* ---------- Column shared ---------- */
.intel-col { position: relative; z-index: 1; display: flex; flex-direction: column; }
.intel-label {
  font-weight: 800; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.intel-sublabel { font-size: 12.5px; color: var(--muted-2); margin: 4px 0 18px; }

/* COLUMN 1 — raw content/reporting (deliberately plain) */
.intel-raw .intel-label { color: var(--muted); }
.raw-chips { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.raw-chip {
  position: relative;
  display: flex; align-items: center; gap: 11px; white-space: nowrap;
  background: var(--card-warm);
  border: 1px dashed var(--line-2);
  border-radius: 11px;
  padding: 13px 15px;
  font-weight: 600; font-size: 14px; color: var(--muted);
  transition: transform .35s var(--ease-out), border-color .35s ease,
              color .35s ease, box-shadow .35s ease, background .35s ease;
}
.raw-chip .rc-ic {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: #EEEBE3; color: var(--muted-2);
  transition: background .35s ease, color .35s ease;
}
.raw-chip .rc-ic svg { width: 16px; height: 16px; }
.raw-chip .rc-meta { font-size: 11px; color: var(--muted-2); font-weight: 500; margin-left: auto; }
.raw-chip:hover {
  transform: translateX(4px);
  border-color: var(--purple-soft); border-style: solid;
  color: var(--ink); background: var(--card);
  box-shadow: var(--shadow);
}
.raw-chip:hover .rc-ic { background: var(--purple-soft); color: var(--purple); }
/* origin dots glow when wires are live */
.raw-chip::after {
  content: ""; position: absolute; right: -5px; top: 50%; transform: translateY(-50%) scale(0);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--purple); box-shadow: 0 0 0 4px rgba(75,45,255,0.14);
  transition: transform .4s var(--ease-soft);
}
.intel-stage.lit .raw-chip::after { transform: translateY(-50%) scale(1); }
.intel-stage.lit .raw-chip:nth-child(1)::after { transition-delay: .15s; }
.intel-stage.lit .raw-chip:nth-child(2)::after { transition-delay: .28s; }
.intel-stage.lit .raw-chip:nth-child(3)::after { transition-delay: .41s; }
.intel-stage.lit .raw-chip:nth-child(4)::after { transition-delay: .54s; }
.intel-stage.lit .raw-chip:nth-child(5)::after { transition-delay: .67s; }
.intel-stage.lit .raw-chip:nth-child(6)::after { transition-delay: .80s; }

/* COLUMN 2 — the intelligence layer (the hero panel) */
.intel-brain {
  background: var(--card);
  border: 1.5px solid var(--purple-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(75,45,255,0.10), 0 2px 6px rgba(16,20,31,0.05);
  padding: 24px 24px 22px;
  align-self: center;
  position: relative;
  overflow: hidden;
}
.intel-brain::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--purple), #7C5CFF);
}
.intel-brain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(75,45,255,0.05) 50%, transparent 70%);
  transform: translateX(-120%);
}
.intel-brain.swept::after { animation: intel-sweep 1.1s var(--ease-out) .3s; }
@keyframes intel-sweep { to { transform: translateX(120%); } }

.intel-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--purple); background: var(--purple-tint);
  border: 1px solid var(--purple-soft); border-radius: 999px;
  padding: 7px 13px; margin-bottom: 16px;
}
.intel-badge .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--purple);
  box-shadow: 0 0 0 0 rgba(75,45,255,0.5);
}
@media (prefers-reduced-motion: no-preference) {
  .intel-badge .pulse { animation: intel-pulse 2.2s ease-out infinite; }
  @keyframes intel-pulse {
    0% { box-shadow: 0 0 0 0 rgba(75,45,255,0.45); }
    70% { box-shadow: 0 0 0 8px rgba(75,45,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(75,45,255,0); }
  }
}

.intel-steps { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.intel-step {
  display: flex; align-items: center; gap: 12px; padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.intel-step:last-child { border-bottom: none; }
.intel-step .is-ic {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--purple-tint); color: var(--purple);
  transition: transform .4s var(--ease-soft);
}
.intel-step .is-ic svg { width: 18px; height: 18px; }
.intel-step:hover .is-ic { transform: scale(1.12) rotate(-6deg); }
.intel-step .is-tx { flex: 1; min-width: 0; }
.intel-step .is-t { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.intel-step .is-s { font-size: 12.5px; color: var(--muted); }
.intel-step .is-check {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20,138,74,0.12); color: var(--green);
  opacity: 0; transform: scale(0.4);
  transition: opacity .4s ease, transform .5s var(--ease-soft);
}
.intel-step .is-check svg { width: 13px; height: 13px; }
.intel-stage.lit .intel-step .is-check { opacity: 1; transform: scale(1); }
.intel-stage.lit .intel-step:nth-child(1) .is-check { transition-delay: .5s; }
.intel-stage.lit .intel-step:nth-child(2) .is-check { transition-delay: .7s; }
.intel-stage.lit .intel-step:nth-child(3) .is-check { transition-delay: .9s; }
.intel-stage.lit .intel-step:nth-child(4) .is-check { transition-delay: 1.1s; }

/* COLUMN 3 — conviction output */
.intel-out { justify-content: center; }
.intel-out .intel-label { color: var(--green); }
.conviction {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; position: relative; overflow: hidden;
}
.conviction::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--green);
}
.conv-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.conv-rate { display: flex; align-items: baseline; gap: 8px; }
.conv-rate .cr-n { font-family: var(--sans); font-weight: 800; font-size: 34px; letter-spacing: -0.02em; line-height: 1; }
.conv-rate .cr-w { font-weight: 700; font-size: 13px; color: var(--green); }
.conv-verdict { font-family: var(--serif); font-size: 17px; line-height: 1.4; color: var(--ink); margin-bottom: 14px; }
.conv-verdict b { color: var(--purple); font-style: normal; }
.conv-tags { display: flex; flex-wrap: wrap; gap: 7px; }

/* ---------- Hand annotations specific to the stage ---------- */
.intel-anno { position: absolute; display: flex; align-items: flex-start; gap: 8px; z-index: 3; }
.intel-anno--sauce { left: 50%; top: -18px; transform: translateX(-50%) rotate(-2deg); }
.intel-anno--dots { right: -4px; bottom: -42px; transform: rotate(-3deg); }
@media (max-width: 1180px) { .intel-anno--dots { display: none; } }

/* ============================================================
   GENERIC: analyst INSIGHT reveals on hover (margin notes)
   ============================================================ */
.has-insight { position: relative; }
.insight {
  position: absolute;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--hand); font-weight: 600; font-size: 19px; line-height: 1.05;
  color: var(--purple); white-space: nowrap;
  pointer-events: none; z-index: 6;
  opacity: 0; transform: translateY(4px) rotate(-2deg);
  transition: opacity .3s ease, transform .35s var(--ease-soft);
}
.insight svg { width: 30px; height: 18px; flex: none; }
.insight--green { color: var(--green); }
.insight--amber { color: var(--amber); }
.insight--red { color: var(--red); }
/* default placement: to the right, vertically centered */
.insight--right { right: 0; top: 50%; transform: translate(calc(100% + 10px), -50%) translateY(4px) rotate(-2deg); }
.has-insight:hover .insight { opacity: 1; transform: translateY(0) rotate(-2deg); }
.has-insight:hover .insight--right { transform: translate(calc(100% + 10px), -50%) rotate(-2deg); }
/* proof cards opt in without a wrapper class change */
.proof-card { position: relative; }
.proof-card:hover .insight--top { opacity: 1; transform: translate(-50%, calc(-100% - 6px)) rotate(-2deg); }

/* dark traction stats: same hover insight, lightened for the navy band */
.traction .tstat { position: relative; }
.traction .tstat:hover .insight--top { opacity: 1; transform: translate(-50%, calc(-100% - 6px)) rotate(-2deg); }
.traction .insight { color: #C9BEFF; }
.traction .insight--green { color: #86E3AD; }

/* ---------- Scorecard rows: hand-written insight on hover ---------- */
.sc-row { position: relative; }
.sc-insight {
  position: absolute; z-index: 7; right: 18px; top: 4px;
  transform: translateY(-70%) rotate(-2.5deg) translateY(6px);
  display: inline-flex; align-items: flex-end; gap: 6px;
  font-family: var(--hand); font-weight: 600; font-size: 18px; line-height: 1.02;
  color: var(--purple); white-space: nowrap; pointer-events: none;
  background: rgba(255,253,248,0.94); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  border: 1px solid var(--purple-soft); box-shadow: var(--shadow);
  border-radius: 10px; padding: 6px 12px;
  opacity: 0; transition: opacity .26s ease, transform .38s var(--ease-soft);
}
.sc-insight svg { width: 26px; height: 26px; flex: none; margin-bottom: -4px; }
.sc-insight--green { color: var(--green); border-color: rgba(20,138,74,0.24); }
.sc-insight--amber { color: var(--amber); border-color: rgba(216,148,0,0.28); }
.sc-row:hover .sc-insight { opacity: 1; transform: translateY(-70%) rotate(-2.5deg); }
@media (max-width: 1180px) { .sc-insight { display: none; } }

/* ---------- Underlined marks: hand-written insight on hover ---------- */
.mark-note {
  position: absolute; left: 50%; bottom: 100%; z-index: 9;
  transform: translateX(-50%) translateY(-4px) rotate(-2deg);
  display: inline-flex; align-items: flex-end; gap: 6px;
  font-family: var(--hand); font-weight: 600; font-size: 17px; line-height: 1.05;
  color: inherit; white-space: nowrap; pointer-events: none; font-style: normal;
  background: rgba(255,253,248,0.96); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  border: 1px solid rgba(16,20,31,0.1); box-shadow: var(--shadow);
  border-radius: 10px; padding: 5px 11px;
  opacity: 0; transition: opacity .24s ease, transform .36s var(--ease-soft);
}
.mark-note svg { width: 22px; height: 18px; flex: none; margin-bottom: -2px; }
.mark:hover .mark-note { opacity: 1; transform: translateX(-50%) translateY(-9px) rotate(-2deg); }
@media (max-width: 1180px) { .mark-note { display: none; } }

/* Why Now — steps on a card */
.why-steps {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 38px 36px;
}

/* Updates + FAQ — header polish */
.util-head { gap: 14px; margin-bottom: 8px; }
.util-head .ic {
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(150deg, var(--purple), #7C5CFF); color: #fff;
  box-shadow: 0 8px 18px rgba(75,45,255,0.28);
  transition: transform .35s var(--ease-soft);
}
.util-head .ic svg { width: 22px; height: 22px; }
.util-container:hover .util-head .ic, .util-head .ic:hover { transform: rotate(-6deg) scale(1.06); }
.util-head h3 { font-family: var(--display); font-size: 27px; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1; color: var(--ink); }
.util-sub { font-size: 14.5px; }

/* Updates — animated icon tiles */
.update-thumb { width: 92px; height: 92px; flex: none; border-radius: 14px; display: flex; align-items: center; justify-content: center; overflow: visible; }
.update-thumb .upd-svg { width: 42px; height: 42px; }
.upd--purple { background: var(--purple-soft); color: var(--purple); }
.upd--green { background: rgba(20,138,74,0.12); color: var(--green); }
.upd--amber { background: rgba(216,148,0,0.14); color: var(--amber); }
.update-card:hover .update-thumb { transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .upd-bar { transform-box: fill-box; transform-origin: bottom; animation: upd-bar 2.6s ease-in-out infinite; }
  .upd-chart .upd-bar:nth-of-type(2) { animation-delay: .25s; }
  .upd-chart .upd-bar:nth-of-type(3) { animation-delay: .5s; }
  @keyframes upd-bar { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
  .upd-pulse { transform-box: fill-box; transform-origin: center; animation: upd-pulse 2.2s ease-in-out infinite; }
  @keyframes upd-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.28); } }
  .upd-line { stroke-dasharray: 14; animation: upd-scan 2.8s ease-in-out infinite; }
  @keyframes upd-scan { 0% { stroke-dashoffset: 14; } 45%, 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 14; } }
}

/* Balance the two columns: pin the trailing "view all" link to the bottom */
.util-col { display: flex; flex-direction: column; }
.util-col > div:last-child { margin-top: auto !important; padding-top: 22px; }
.faq-q { padding: 21px 0; }

/* Founder — editorial testimonial */
.founder-photo-wrap .founder-anno { opacity: 0; transition: opacity .35s ease; }
.founder-photo-wrap:hover .founder-anno { opacity: 1; }
.founder-anno .note { color: rgb(250, 247, 241); }
.founder-grid { align-items: center; }
.founder-bigquote {
  font-family: var(--serif);
  font-size: clamp(25px, 2.9vw, 38px);
  line-height: 1.32; color: var(--ink);
  margin: 20px 0 22px; text-wrap: balance;
}
.founder-bigquote .serif-em { color: var(--purple); font-style: italic; }
.founder-bigquote .bq-mark { font-family: var(--serif); color: var(--purple); }

/* Credibility strip — structured logo card */
.cred .logos {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; place-items: stretch;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 16px;
}
.cred .logos .logo {
  display: flex; align-items: center; justify-content: center;
  padding: 26px 18px; border-radius: 12px;
  background: var(--card-warm); box-shadow: none;
  transition: background .25s ease, transform .3s var(--ease-out);
}
.cred .logos .logo:hover { background: var(--paper-2); transform: translateY(-2px); }
@media (max-width: 720px) {
  .cred .logos { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cred .logos .logo { padding: 22px 12px; }
}

/* All hand-drawn annotation text rendered lowercase */
.note, .insight, .mark-note, .sc-insight, .card-anno, .fw-return-label { text-transform: lowercase; }

/* All eyebrows get the animated underline */
.eyebrow { position: relative; display: inline-block; }
.eyebrow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 6px;
  background: currentColor; opacity: 0.2; border-radius: 4px;
  transform: scaleX(0); transform-origin: left center;
}
@media (prefers-reduced-motion: no-preference) {
  .eyebrow::after { transition: transform .7s var(--ease-out) .2s; }
}
.eyebrow.mark-in::after { transform: scaleX(1); }
.force-show .eyebrow::after { transform: scaleX(1) !important; transition: none !important; }

/* KC Capital — compact two-column flow */
.cap-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 5vw, 72px); align-items: center; }
.cap-head { max-width: none; margin: 0; }
.cap-head .display { margin: 14px 0 16px; }
.cap-head .lead { max-width: 470px; }
.cap-head .lead .serif-em { color: var(--purple); }
.cap-cta { text-align: left; margin-top: 26px; }

.fw-flow { display: flex; flex-direction: column; gap: 10px; }
.fw-step {
  display: flex; align-items: center; gap: 16px; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 18px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s ease, border-color .3s ease;
}
.fw-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--purple-soft); }
.fw-step:hover .card-anno { opacity: 1; transform: translateY(-100%) rotate(-2deg); }
.fw-step .fw-ic {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--purple), #7C5CFF); color: #fff;
  box-shadow: 0 8px 16px rgba(75,45,255,0.24); transition: transform .35s var(--ease-soft);
}
.fw-step .fw-ic svg { width: 21px; height: 21px; }
.fw-step:hover .fw-ic { transform: rotate(-6deg) scale(1.08); }
.fw-step .fw-t { font-family: var(--display); text-transform: uppercase; font-size: 18px; line-height: 1; letter-spacing: 0.01em; color: var(--ink); }
.fw-step .fw-d { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.fw-step--hub { background: var(--purple); border-color: var(--purple); box-shadow: 0 14px 30px rgba(75,45,255,0.30); }
.fw-step--hub .fw-ic { background: rgba(255,255,255,0.18); box-shadow: none; }
.fw-step--hub .fw-t { color: #fff; }
.fw-step--hub .fw-d { color: rgba(255,255,255,0.85); }
.fw-loop { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding-left: 4px; color: var(--purple); font-family: var(--hand); font-weight: 600; font-size: 19px; text-transform: lowercase; }
.fw-loop svg { width: 20px; height: 20px; flex: none; }

@media (max-width: 980px) {
  .cap-grid { grid-template-columns: 1fr; gap: 34px; }
  .cap-head .lead { max-width: none; }
}

/* Founder → KC Capital: one continuous story */
.story-bridge {
  max-width: 720px; margin: 4px auto 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.story-bridge .bridge-line {
  font-family: var(--serif); font-size: clamp(21px, 2.1vw, 27px); line-height: 1.42; color: var(--ink);
}
.story-bridge .bridge-line .serif-em { color: var(--purple); font-style: italic; }
.story-bridge .bridge-arrow { color: var(--purple); }

/* Left-align the closing "Invest With Us" banner content */
#brief .banner--center .banner-content { text-align: left; }
#brief .banner--center .banner-title,
#brief .banner--center .banner-sub { margin-left: 0; margin-right: 0; }
#brief .banner--center .banner-actions { justify-content: flex-start; }
/* placement: above the element, centered */
.insight--top { left: 50%; top: 0; transform: translate(-50%, calc(-100% - 6px)) translateY(6px) rotate(-2deg); }
.has-insight:hover .insight--top { transform: translate(-50%, calc(-100% - 6px)) rotate(-2deg); }
.insight--top svg { transform: rotate(70deg); }
@media (max-width: 1180px) { .insight { display: none; } }

/* ============================================================
   GENERIC: intelligence glow on data cards (data section)
   ============================================================ */
#platform .card { position: relative; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out); }
#platform .card:hover { border-color: var(--purple-soft); box-shadow: 0 10px 30px rgba(75,45,255,0.10), var(--shadow); }

/* ---------- Mosaic cards: hand-written annotation on hover ---------- */
.card-anno {
  position: absolute; z-index: 8; right: 26px; top: 0;
  transform: translateY(-100%) rotate(-2deg) translateY(10px);
  display: inline-flex; align-items: flex-end; gap: 6px;
  font-family: var(--hand); font-weight: 600; font-size: 19px; line-height: 1.02;
  color: var(--purple); white-space: nowrap; pointer-events: none;
  background: rgba(255,253,248,0.95); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  border: 1px solid var(--purple-soft); box-shadow: var(--shadow);
  border-radius: 11px; padding: 7px 13px;
  opacity: 0; transition: opacity .26s ease, transform .4s var(--ease-soft);
}
.card-anno svg { width: 22px; height: 24px; flex: none; margin-bottom: -3px; }
.card-anno--green { color: var(--green); border-color: rgba(20,138,74,0.24); }
.card-anno--amber { color: var(--amber); border-color: rgba(216,148,0,0.28); }
#platform .card:hover .card-anno { opacity: 1; transform: translateY(-100%) rotate(-2deg); }

/* hero panel cards — hand-annotation on hover (they already raise via .card--pad) */
.hero-panel .card { position: relative; }
.hero-panel .card:hover .card-anno { opacity: 1; transform: translateY(-100%) rotate(-2deg); }

/* traction dark cards — raise + hand-annotation on hover */
.dark-card { position: relative; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.dark-card:hover { transform: translateY(-5px); box-shadow: 0 26px 52px rgba(0,0,0,0.34); }
.dark-card:hover .card-anno { opacity: 1; transform: translateY(-100%) rotate(-2deg); }
@media (max-width: 1080px) { .card-anno { display: none; } }

/* highlighter sweep under .note text on hover of its parent card/step */
.note { position: relative; }
.note-hl { position: relative; }
.note-hl::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 1px; height: 9px;
  background: currentColor; opacity: 0.16; border-radius: 4px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .45s var(--ease-out);
  z-index: -1;
}
.note-hl.hl-in::after { transform: scaleX(1); }

/* stat underline sweep on hover */
.proof-card .n, .ns-cell .n, .data-cell .dn { position: relative; display: inline-block; }
.proof-card .n::after, .data-cell .dn::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 3px; width: 100%;
  background: var(--purple); border-radius: 2px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .4s var(--ease-out);
}
.proof-card:hover .n::after, .data-cell:hover .dn::after { transform: scaleX(1); }

/* ============================================================
   Self-drawing annotation arrows (set up by intelligence.js)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .arrow-draw {
    stroke-dasharray: var(--alen); stroke-dashoffset: var(--alen);
    transition: stroke-dashoffset .9s var(--ease-out);
  }
  .arrow-draw.drawn { stroke-dashoffset: 0; }
  /* note text writes in just before its arrow */
  .note-ink { opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .6s var(--ease-out); }
  .note-ink.inked { opacity: 1; transform: none; }

  .intel-wire { stroke-dasharray: var(--wlen); stroke-dashoffset: var(--wlen); transition: stroke-dashoffset 1.1s var(--ease-out); }
  .intel-wire.drawn { stroke-dashoffset: 0; }
  .intel-node, .intel-node--ring { opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; transition: opacity .3s ease, transform .5s var(--ease-soft); }
  .intel-node.drawn, .intel-node--ring.drawn { opacity: 1; transform: scale(1); }
}

/* force-show fallback for the new bits */
.force-show .arrow-draw, .force-show .intel-wire { stroke-dashoffset: 0 !important; transition: none !important; }
.force-show .note-ink, .force-show .intel-node, .force-show .intel-node--ring { opacity: 1 !important; transform: none !important; transition: none !important; }
.force-show .intel-stage.lit .is-check, .force-show .raw-chip::after { transition: none !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .intel-stage { grid-template-columns: 1fr; gap: 30px; }
  .intel-brain { align-self: stretch; }
  .intel-anno--sauce { display: none; }
}
