@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Urbanist:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg:           #000000;
  --card:         #111114;
  --card-alt:     #1A1A20;
  --accent:       #626CA0;
  --accent-light: #8B93C7;
  --accent-bright:#A8B0E0;
  --pill-bg:      #3D385B;
  --heading:      #FDF5F4;
  --body:         #C4C4C4;
  --muted:        #6E6E82;
  --border:       rgba(255,255,255,0.05);
  --border-strong:rgba(255,255,255,0.09);
  --green:        #9BA4D4;
  --green-dim:    rgba(155,164,212,0.12);
  --green-border: rgba(155,164,212,0.35);
  --red:          #8B6F9E;
  --red-dim:      rgba(139,111,158,0.10);
  --red-border:   rgba(139,111,158,0.30);

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Urbanist', ui-sans-serif, -apple-system, system-ui, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--body);
  background: var(--bg); -webkit-font-smoothing: antialiased;
  font-size: 18px; line-height: 1.55;
}
a { color: inherit; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 40px; }
.wrap-wide { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* scroll flower */
.scroll-flower {
  position: fixed; bottom: 40px; right: 40px;
  width: 64px; height: 64px; z-index: 45;
  pointer-events: none; opacity: 0.7;
  will-change: transform;
}
.scroll-flower svg { width: 100%; height: 100%; display: block; }

/* grain */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: 0.03; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══ NAV ═══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 40px; background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, padding .3s;
}
.nav.solid { background: rgba(0,0,0,0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 11px 40px; }
.logo {
  display: inline-flex; align-items: center; gap: 0.04em;
  font-family: var(--sans); font-weight: 700; font-size: 20px;
  letter-spacing: 0.02em; text-transform: uppercase; line-height: 1;
  color: var(--heading); text-decoration: none;
}
.logo .dot { width: 0.55em; height: 0.55em; flex: 0 0 auto; display: block; }
.logo .dot circle { fill: var(--accent-light); }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; line-height: 1;
  color: rgba(253,245,244,0.45); text-decoration: none;
  padding: 8px 14px; border-radius: 999px;
  transition: background .18s, color .18s;
}
.nav-links a:hover { color: var(--heading); }
.nav-links a.active { background: var(--pill-bg); color: var(--heading); }
@media (max-width: 760px) { .nav-links a { font-size: 12px; padding: 7px 10px; } }

/* ═══ HERO ═══ */
.hero {
  position: relative; background: var(--bg); color: var(--heading);
  overflow: hidden; padding: 140px 40px 0;
}
.hero::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 120px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(98,108,160,0.045));
}
.hero-amb { position: absolute; inset: 0; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 1060px; margin: 0 auto; padding-bottom: 36px; }
.hero-client {
  display: inline-block; font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: 16px;
}
.hero-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(36px, 5.5vw, 52px); line-height: 1.12;
  letter-spacing: -0.02em; margin: 0 0 24px; color: var(--heading);
  max-width: 680px;
}
.hero-desc {
  font-size: 20px; font-weight: 400;
  line-height: 1.55; color: var(--body); max-width: 560px; margin: 0 0 28px;
}
.hero-desc em { font-style: italic; color: var(--accent-light); }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.htag {
  font-size: 13px; font-weight: 500;
  color: var(--accent-light); background: var(--pill-bg);
  padding: 6px 16px; border-radius: 999px;
}

/* hero metadata */
.hero-meta {
  position: relative; z-index: 1; max-width: 1060px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  padding: 36px 0; border-top: 1px solid var(--border);
}
.hm-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px;
}
.hm-col p { margin: 0; font-size: 15px; color: var(--body); line-height: 1.5; }
@media (max-width: 760px) { .hero-meta { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .hero-meta { grid-template-columns: 1fr; gap: 20px; } .hero { padding: 110px 20px 0; } }

/* hero backdrop — oversized, cropped product UI as atmospheric texture */
.hero-backdrop {
  position: absolute;
  top: -60px; right: -80px;
  width: 52vw; height: calc(100% + 60px);
  pointer-events: none;
  opacity: 0.45;
  overflow: hidden;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 15%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.5) 85%, transparent 100%),
                       linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 12%, rgba(0,0,0,1) 75%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 15%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.5) 85%, transparent 100%),
              linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 12%, rgba(0,0,0,1) 75%, transparent 100%);
  mask-composite: intersect;
}
.hero-backdrop-frame {
  border: none; display: block;
  width: 900px; height: 750px;
  transform: scale(1.25) translateX(-340px);
  transform-origin: top left;
  border-radius: 0;
  background: transparent;
}
@media (max-width: 900px) {
  .hero-backdrop { display: none; }
}

/* ═══ SECTIONS — full-width stacked ═══ */
.sec { padding: 80px 0; }
.sec-alt { background: #060609; }

.sec-eyebrow {
  display: block;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: 16px;
  position: sticky; top: 56px; z-index: 4;
  background: var(--bg); padding: 10px 0;
  transition: background .3s;
}
.sec-alt .sec-eyebrow { background: #060609; }

.sec-heading {
  font-family: var(--sans); font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 600; line-height: 1.15; letter-spacing: -0.02em;
  color: var(--heading); margin: 0 0 16px; max-width: 720px;
}

.sec-desc {
  font-size: 18px; line-height: 1.55; color: var(--body);
  margin: 0 0 48px; max-width: 640px;
}
.sec-desc strong { font-weight: 600; color: var(--heading); }

@media (max-width: 760px) {
  .sec { padding: 56px 0; }
  .wrap { padding: 0 20px; }
}

/* reveal */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease; }
.rv-in { opacity: 1; transform: none; }

/* animations */
@media (prefers-reduced-motion: no-preference) {
  .station { animation: breathe 5s ease-in-out infinite; }
}
@keyframes breathe { 0%,100% { opacity: .08; transform: scale(.92); } 50% { opacity: .18; transform: scale(1); } }

/* ═══ CONSTRUCTS (The Lens) ═══ */
.cc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.cc {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 32px; display: flex; flex-direction: column;
}
.cc-ic {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.cc-ic-ps { background: var(--green-dim); color: var(--green); }
.cc-ic-ie { background: rgba(98,108,160,0.18); color: var(--accent-bright); }
.cc h3 {
  font-family: var(--sans); font-size: 22px; font-weight: 600;
  color: var(--heading); margin: 0 0 6px;
}
.cc-k {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 14px;
}
.cc p { font-size: 16px; line-height: 1.55; margin: 0 0 14px; }
.cc p:last-child { margin-bottom: 0; }
.cc-vs {
  border-top: 1px solid var(--border); padding-top: 14px; margin-top: auto;
  font-size: 15px; color: var(--muted);
}
.cc-vs em { font-style: italic; color: var(--body); }
@media (max-width: 680px) { .cc-cards { grid-template-columns: 1fr; } }

/* ═══ RECOMMENDATIONS (The Response) ═══ */
.rec-stages { display: flex; flex-direction: column; gap: 48px; margin-top: 48px; }
.rec-stage-header { margin-bottom: 20px; }
.rec-sn {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--accent-light); display: block; margin-bottom: 8px;
}
.rec-st {
  font-family: var(--sans); font-size: 22px; font-weight: 600;
  color: var(--heading); margin: 0 0 6px; line-height: 1.25;
}
.rec-sd { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.5; }
.rec-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rec-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; display: flex; flex-direction: column;
}
.rec-num {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  display: block; margin-bottom: 8px;
}
.rec-card h4 {
  font-family: var(--sans); font-size: 18px; font-weight: 600;
  color: var(--heading); margin: 0 0 8px; line-height: 1.3;
}
.rec-card p { font-size: 15px; line-height: 1.5; margin: 0 0 12px; }
.rec-trans {
  display: inline-block; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.04em; color: var(--green); background: var(--green-dim);
  padding: 5px 12px; border-radius: 999px; margin-top: auto;
  align-self: flex-start;
}
.rec-callout {
  margin-top: 48px; padding: 28px 32px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  border-left: 3px solid var(--accent-light);
}
.rec-callout-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent-light); margin: 0 0 8px;
}
.rec-callout-main {
  font-size: 18px; font-weight: 500; color: var(--heading);
  margin: 0; line-height: 1.5;
}
@media (max-width: 680px) { .rec-cards { grid-template-columns: 1fr; } }

/* ═══ RESEARCH STATS ═══ */
.stats { display: flex; gap: 48px; margin: 0 0 48px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-n {
  font-family: var(--sans); font-size: 36px; font-weight: 700;
  color: var(--heading); letter-spacing: -0.02em; line-height: 1.1;
}
.stat-l { font-size: 14px; color: var(--muted); line-height: 1.4; }

/* ═══ RESEARCH PIPELINE (ported from original LOCAI) ═══ */
.pipe { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.track { display: flex; align-items: center; margin-bottom: 18px; }
.track-cell { display: flex; align-items: center; flex: 1; }
.track-cell:last-child { flex: 0; }
.dot { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); font-family: var(--mono); font-size: 13px; color: var(--muted); cursor: pointer; flex-shrink: 0; transition: all .2s; }
.dot.on { background: var(--accent); color: var(--heading); border-color: var(--accent); }
.seg { flex: 1; height: 1.5px; background: var(--border); margin: 0 6px; transition: background .3s; }
.seg.on { background: var(--accent); }
.stage { position: relative; height: 240px; background: var(--card-alt); border-radius: 10px; overflow: hidden; }
.scene { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .45s ease; }
.scene.on { opacity: 1; }
.caption { display: flex; align-items: center; gap: 12px; margin: 20px 2px 6px; }
.cap-title { font-family: var(--sans); font-weight: 600; font-size: 18px; color: var(--heading); }
.phase { font-size: 12px; padding: 4px 12px; border-radius: 999px; font-weight: 500; }
.tone-spring { background: var(--green-dim); color: var(--green); }
.tone-summer { background: rgba(98,108,160,0.18); color: var(--accent-bright); }
.tone-input { background: rgba(61,56,91,0.4); color: var(--accent-light); }
.cap-blurb { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 0; max-width: 580px; }
.controls { display: flex; gap: 8px; margin-top: 20px; }
.ctrl { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 14px; color: var(--body); background: var(--card-alt); border: 1px solid var(--border); border-radius: 8px; padding: 9px 14px; cursor: pointer; transition: background .15s, border-color .15s; }
.ctrl:hover { border-color: var(--accent); color: var(--heading); }
.ctrl.icon { padding: 9px; }

/* pipeline scene internals */
.sc-conv { display: flex; flex-direction: column; gap: 14px; width: 360px; }
.bubble { padding: 11px 16px; font-size: 14px; max-width: 260px; border-radius: 16px; line-height: 1.4; }
.bub-tutor { align-self: flex-start; background: var(--accent); color: var(--heading); border-bottom-left-radius: 4px; }
.bub-user { align-self: flex-end; background: var(--card); border: 1px solid var(--border); color: var(--body); border-bottom-right-radius: 4px; }
.sc-schema { display: flex; align-items: center; gap: 22px; }
.bub-ink { background: var(--accent); color: var(--heading); padding: 11px 16px; border-radius: 14px; font-size: 14px; max-width: 180px; }
.tags { display: flex; flex-direction: column; gap: 9px; }
.tag { font-size: 12px; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.sc-irr { width: 280px; text-align: center; }
.avatars { display: flex; justify-content: center; gap: 10px; margin-bottom: 18px; }
.av { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; background: rgba(98,108,160,0.18); color: var(--accent-bright); }
.bar-label { font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.bar { height: 10px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 100%; transform-origin: left; background: var(--green); }
.kappa { font-family: var(--sans); font-size: 20px; font-weight: 600; margin-top: 10px; color: var(--heading); }
.sc-scale { display: flex; align-items: center; gap: 18px; }
.one { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.chip-ic { width: 44px; height: 44px; border-radius: 10px; background: var(--accent); color: var(--heading); display: flex; align-items: center; justify-content: center; }
.one-l { font-size: 12px; color: var(--muted); }
.arrow { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(4, 28px); gap: 7px; }
.cell { width: 28px; height: 28px; border-radius: 6px; background: rgba(98,108,160,0.18); border: 1px solid var(--border); }
.sc-recs { text-align: center; }
.bulb { color: var(--accent-light); display: inline-block; }
.loop-l { display: block; font-size: 12px; color: var(--muted); margin-top: -2px; }

/* pipeline transition paths */
.sc-trans { display: flex; flex-direction: column; gap: 14px; align-items: center; width: 100%; }
.tr-row { display: grid; grid-template-columns: 140px 46px 168px auto; align-items: center; gap: 11px; }
.tr-node { font-size: 13px; color: var(--body); background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; text-align: center; white-space: nowrap; }
.tr-conn { position: relative; height: 2px; background: rgba(255,255,255,0.1); border-radius: 2px; }
.tr-conn::after { content: ""; position: absolute; right: -1px; top: 50%; width: 0; height: 0; border-left: 5px solid var(--muted); border-top: 3px solid transparent; border-bottom: 3px solid transparent; transform: translateY(-50%); }
.tr-conn i { position: absolute; top: 50%; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); transform: translateY(-50%); animation: tr-move 2s ease-in-out infinite; }
@keyframes tr-move { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 4px); opacity: 0; } }
.tr-node.tr-loop { border-color: var(--red-border); }
.tr-node.tr-fork { border-color: rgba(139,111,158,0.45); }
.tr-node.tr-rec { border-color: var(--green-border); }
.tr-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.tag-loop { color: var(--red); background: var(--red-dim); }
.tag-fork { color: var(--red); background: var(--red-dim); }
.tag-rec { color: var(--green); background: var(--green-dim); }
@media (max-width: 620px) { .tr-row { grid-template-columns: auto; justify-items: center; gap: 5px; } .tr-conn { display: none; } }
@media (prefers-reduced-motion: reduce) { .tr-conn i { animation: none; opacity: 0; } }

/* pipeline animations */
@media (prefers-reduced-motion: no-preference) {
  .pingA { animation: ping 1.7s ease-in-out infinite; }
  .pingB { animation: ping 1.7s ease-in-out infinite .85s; }
  .tagIn { animation: tagin 2.1s ease-in-out infinite; }
  .bar-fill { animation: fill 2.4s ease-in-out infinite; }
  .cell { animation: pop 2.2s ease-in-out infinite; }
  .bulb { animation: glow 1.7s ease-in-out infinite; }
  .loop { animation: dash 1.4s linear infinite; }
}
@keyframes ping { 0%,100% { opacity: .42; transform: scale(.97); } 50% { opacity: 1; transform: scale(1); } }
@keyframes tagin { 0% { opacity: 0; transform: translateX(16px); } 45%,100% { opacity: 1; transform: translateX(0); } }
@keyframes fill { 0% { transform: scaleX(.12); } 65%,100% { transform: scaleX(.92); } }
@keyframes pop { 0% { opacity: 0; transform: scale(.3); } 55%,100% { opacity: 1; transform: scale(1); } }
@keyframes glow { 0%,100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1); } }
@keyframes dash { to { stroke-dashoffset: -26; } }
@media (prefers-reduced-motion: reduce) { .scene { transition: none; } }

/* ═══ CONFUSION LOOP (ported from original LOCAI) ═══ */
.cl2-diagram { position: relative; width: 100%; max-width: 560px; margin: 32px auto 0; aspect-ratio: 520 / 600; }
.cl2-arrows { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cl2-node { position: absolute; transform: translate(-50%, calc(-50% + 16px)); opacity: 0; box-sizing: border-box; border-radius: 10px; padding: 10px 14px; text-align: center; font-size: 14px; line-height: 1.35; color: var(--body); background: var(--card); transition: opacity .5s ease-out, transform .5s ease-out; }
.cl2-node .cl2-t { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.cl2-node span:not(.cl2-t) { display: block; font-size: 13px; color: var(--muted); margin: 1px 0; }
.cl2-node.learner { white-space: nowrap; border: 1px solid rgba(98,108,160,0.40); background: rgba(98,108,160,0.10); font-weight: 500; color: var(--heading); padding: 14px 24px; font-size: 15px; }
.cl2-node.tutor { white-space: nowrap; border: 1px solid rgba(98,108,160,0.50); background: var(--pill-bg); font-weight: 700; font-size: 14px; color: var(--heading); }
.cl2-node.reinf { border: 1px solid var(--red-border); background: var(--red-dim); }
.cl2-node.reinf .cl2-t { color: var(--red); }
.cl2-node.recov { border: 1px solid var(--green-border); background: var(--green-dim); }
.cl2-node.recov .cl2-t { color: var(--green); }
.cl2-node.reengage { border: 1px solid var(--green-border); background: rgba(155,164,212,0.15); }
.cl2-node.reengage .cl2-t { color: var(--green); }
.cl2-signals { left: 50%; top: 7.3%; }
.cl2-repeats { left: 22%; top: 28%; }
.cl2-asks { left: 78%; top: 28%; }
.cl2-tutor { left: 50%; top: 44.7%; }
.cl2-reinf { left: 23%; top: 68.3%; width: 40%; }
.cl2-recov { left: 77%; top: 67.5%; width: 40%; }
.cl2-reengage { left: 77%; top: 89.2%; width: 40%; }
.cl2-caption { position: absolute; left: 64%; top: 44.7%; transform: translateY(-50%); width: 34%; margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); font-style: italic; opacity: 0; transition: opacity .5s ease-out; }
.cl2-arrow { opacity: 0; transition: opacity .5s ease-out; }
/* sequenced entry */
.cl2-diagram.play .cl2-node { opacity: 1; transform: translate(-50%, -50%); }
.cl2-diagram.play .cl2-caption, .cl2-diagram.play .cl2-arrow { opacity: 1; }
.cl2-diagram.play .cl2-signals { transition-delay: 0s; }
.cl2-diagram.play .cl2-repeats { transition-delay: .08s; }
.cl2-diagram.play .cl2-asks { transition-delay: .16s; }
.cl2-diagram.play .cl2-loop { transition-delay: .30s; }
.cl2-diagram.play .cl2-tutor, .cl2-diagram.play .cl2-down, .cl2-diagram.play .cl2-caption { transition-delay: .45s; }
.cl2-diagram.play .cl2-reinf, .cl2-diagram.play .cl2-recov, .cl2-diagram.play .cl2-branch { transition-delay: .60s; }
.cl2-diagram.play .cl2-reengage { transition-delay: .78s; }
.cl2-diagram.play .cl2-return, .cl2-diagram.play .cl2-recarrow { transition-delay: .92s; }
.cl2-diagram.settled .cl2-node, .cl2-diagram.settled .cl2-caption, .cl2-diagram.settled .cl2-arrow { transition-delay: 0s; }
/* hover emphasis */
.cl2-diagram.emph-reinf .g-recov { opacity: .3; }
.cl2-diagram.emph-recov .g-reinf { opacity: .3; }
@media (prefers-reduced-motion: reduce) {
  .cl2-node { opacity: 1; transform: translate(-50%, -50%); transition: none; }
  .cl2-caption, .cl2-arrow { opacity: 1; transition: none; }
}
@media (max-width: 820px) { .cl2-diagram { max-width: 460px; } }

/* ═══ INSIGHTS — 38% vs 14% comparison ═══ */
.cmp {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px;
  align-items: stretch; margin: 48px 0 56px;
}
.cmp-vs {
  font-family: var(--mono); font-size: 14px; color: var(--muted);
  display: flex; align-items: center;
}
.cmp-card {
  background: var(--card); border-radius: 16px; padding: 32px;
  display: flex; flex-direction: column;
}
.cmp-scaffold { border: 1px solid var(--green-border); }
.cmp-direct { border: 1px solid var(--red-border); }
.cmp-card h3 {
  font-family: var(--sans); font-size: 18px; font-weight: 600;
  color: var(--heading); margin: 0 0 14px;
}
.cmp-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.cmp-pill { font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.cmp-scaffold .cmp-pill { background: var(--green-dim); color: var(--green); }
.cmp-direct .cmp-pill { background: var(--red-dim); color: var(--red); }
.cmp-stat { border-top: 1px solid var(--border); padding-top: 20px; margin-top: auto; }
.cmp-n {
  font-family: var(--sans); font-size: 56px; font-weight: 700;
  line-height: 1; display: block; letter-spacing: -0.02em;
}
.cmp-scaffold .cmp-n { color: var(--green); }
.cmp-direct .cmp-n { color: var(--red); }
.cmp-l { font-size: 15px; color: var(--muted); margin-top: 6px; display: block; }
@media (max-width: 680px) {
  .cmp { grid-template-columns: 1fr; gap: 16px; }
  .cmp-vs { justify-content: center; }
}

/* ═══ INSIGHTS — split layout ═══ */
.insights-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: start; margin-top: 48px;
}
.insights-left { display: flex; flex-direction: column; gap: 48px; }

/* evidence blocks — metric + interpretation, no card */
.evidence-block { }
.ev-n {
  font-family: var(--sans); font-size: 36px; font-weight: 700;
  color: var(--accent-bright); display: block; line-height: 1;
  letter-spacing: -0.02em;
}
.ev-l {
  font-size: 14px; color: var(--muted); display: block;
  margin: 6px 0 20px;
}
.evidence-block h3 {
  font-family: var(--sans); font-weight: 600; font-size: 20px;
  line-height: 1.25; margin: 0 0 8px; color: var(--heading);
}
.evidence-block p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--body); }
.insights-right .cl2-diagram { margin: 0 auto; max-width: 100%; }
@media (max-width: 900px) {
  .insights-split { grid-template-columns: 1fr; gap: 40px; }
}

/* ═══ PIPELINE / SIGNALS → SOLUTIONS ═══ */
.pipe-cols { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0; align-items: start; margin-top: 48px; }
.pipe-arrow { display: flex; align-items: center; justify-content: center; color: var(--muted); padding: 64px 10px 0; }
.pipe-col { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.pc-header { padding: 24px 24px 16px; border-bottom: 1px solid var(--border); }
.pc-header h4 { font-family: var(--sans); font-size: 18px; font-weight: 600; margin: 0 0 6px; color: var(--heading); }
.pc-num { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.pc-q { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.45; }
.pc-h1 { border-top: 2px solid var(--accent); }
.pc-h2 { border-top: 2px solid var(--accent-light); }
.pc-h3 { border-top: 2px solid var(--pill-bg); }
.pc-list { list-style: none; margin: 0; padding: 16px 24px; }
.pc-list li { font-size: 15px; line-height: 1.5; color: var(--body); padding: 8px 0; border-bottom: 1px solid var(--border); }
.pc-list li:last-child { border-bottom: 0; }
@media (max-width: 820px) {
  .pipe-cols { grid-template-columns: 1fr; gap: 14px; }
  .pipe-arrow { padding: 0; transform: rotate(90deg); }
}

/* ═══ ADAPTIVE TUTOR — demo split ═══ */
.demo-split {
  display: grid; grid-template-columns: 30fr 70fr; gap: 48px;
  align-items: start; margin-top: 64px;
}
.demo-rule {
  display: block; width: 40px; height: 2px;
  background: var(--accent-light); margin-bottom: 20px;
}
.demo-text { padding-top: 32px; }
.demo-heading {
  font-family: var(--sans); font-size: 24px; font-weight: 600;
  color: var(--heading); margin: 0 0 12px; line-height: 1.25;
}
.demo-caption {
  font-size: 16px; line-height: 1.55; color: var(--body); margin: 0;
}
.demo-split .demo-container { margin: 0; }
@media (max-width: 900px) {
  .demo-split { grid-template-columns: 1fr; gap: 24px; }
  .demo-text { padding-top: 0; }
}

/* ═══ DESIGN ═══ */
.demo-container { margin: 0; }
.demo-chrome {
  background: var(--card-alt); border-radius: 10px 10px 0 0;
  padding: 10px 16px; display: flex; align-items: center; gap: 12px;
}
.demo-dots { display: flex; gap: 6px; }
.demo-dots span { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.demo-dots span:first-child { background: #ff5f57; }
.demo-dots span:nth-child(2) { background: #ffbd2e; }
.demo-dots span:nth-child(3) { background: #28c840; }
.demo-label { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.demo-frame { width: 100%; height: 580px; border: none; border-radius: 0 0 10px 10px; background: #1c1c1e; display: block; }

.dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dd-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px;
  display: flex; flex-direction: column; transition: border-color .22s;
}
.dd-card:hover { border-color: var(--accent); }
.dd-num { font-family: var(--mono); font-size: 12px; color: var(--muted); display: block; margin-bottom: 8px; }
.dd-card h3 { font-family: var(--sans); font-size: 20px; font-weight: 600; margin: 0 0 8px; color: var(--heading); }
.dd-desc { font-size: 16px; line-height: 1.55; margin: 0 0 18px; }
.dd-flow { display: flex; flex-direction: column; margin-top: auto; border-top: 1px solid var(--border); padding-top: 14px; }
.dd-signal, .dd-response, .dd-goal { font-size: 14px; line-height: 1.5; padding: 8px 0; }
.dd-signal { border-bottom: 1px solid var(--border); }
.dd-response { border-bottom: 1px solid var(--border); }
.dd-label { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: 3px; }
.dd-signal .dd-label { color: var(--accent-light); }
.dd-response .dd-label { color: var(--accent); }
.dd-goal .dd-label { color: var(--muted); }
@media (max-width: 680px) { .dd-grid { grid-template-columns: 1fr; } }

/* ═══ FOOTER ═══ */
.foot { background: var(--card); color: var(--heading); padding: 48px 0; border-top: 1px solid var(--border); }
.foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-mark { font-weight: 600; font-size: 18px; margin: 0 0 6px; }
.foot-sub { font-size: 13px; color: var(--muted); margin: 0; max-width: 320px; }
.foot-meta { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.foot-affil { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; margin-top: 16px; }
.foot-affil-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.foot-logos { display: flex; align-items: center; gap: 10px; }
.foot-logos .chip {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px;
  height: 64px; display: inline-flex; align-items: center; justify-content: center; padding: 14px 20px;
}
.foot-logos img { height: 26px; width: auto; display: block; filter: brightness(0) invert(1); opacity: 0.72; transition: opacity .2s; }
.foot-logos .chip:hover img { opacity: 1; }
.foot-logos img[src*="hcii"] { height: 40px; }
@media (max-width: 760px) { .foot-affil { align-items: flex-start; } }
