/* =========================================================================
   TARK — Refined editorial product site
   Inter Tight (display) · Manrope (body) · IBM Plex Mono (mono labels)
   Palette: warm neutrals + deep maroon + mustard. Hierarchy, pacing & motion
   tuned to read premium, calm and intellectually rigorous.
   ========================================================================= */

:root {
  --cream: #f8f3e9;
  --cream-soft: #f1e8d8;
  --cream-card: #fdfaf3;
  --paper: #fffefb;
  --burgundy: #6d0504;
  --burgundy-deep: #4a0302;
  --burgundy-bright: #8c1210;
  --black: #100d0a;
  --ink: #1c1611;
  --ink-soft: #4c4339;
  --muted: #786b5b;
  --mustard: #e3a92e;
  --mustard-deep: #c8901c;
  --terracotta: #c2572b;
  --sage: #5f7a55;
  --hair: rgba(28, 22, 17, 0.13);
  --hair-soft: rgba(28, 22, 17, 0.07);
  --hair-light: rgba(248, 243, 233, 0.16);

  --serif: "Inter Tight", system-ui, -apple-system, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell: min(1180px, calc(100% - 56px));
  --shell-wide: min(1320px, calc(100% - 56px));
  --section-y: clamp(92px, 11vw, 156px);
  --radius: 16px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.62; font-feature-settings: "cv05" 1, "ss01" 1; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; border-radius: 3px; }
img, svg { display: block; max-width: 100%; }
.shell { width: var(--shell); margin-inline: auto; }
.shell-wide { width: var(--shell-wide); margin-inline: auto; }

/* ---------- type ---------- */
.eyebrow { margin: 0 0 18px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--burgundy); }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 560; color: var(--ink); font-optical-sizing: auto; }
h1 { font-size: clamp(3rem, 6.15vw, 5.35rem); line-height: 0.98; font-weight: 620; }
h2 { font-size: clamp(2.2rem, 4.25vw, 3.55rem); line-height: 1.02; font-weight: 600; }
h3 { font-size: clamp(1.4rem, 2.3vw, 1.9rem); line-height: 1.16; font-weight: 600; }
em, .display-em { font-style: italic; color: var(--burgundy); }
.display-em { font-weight: 400; }
.lead { max-width: 56ch; margin: 0; color: var(--ink-soft); font-size: 1.16rem; line-height: 1.68; font-weight: 450; }
.muted { color: var(--muted); }
p { margin: 0; }

/* ---------- buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; font-size: 0.96rem; font-weight: 500; letter-spacing: -0.01em; transition: transform 220ms var(--ease), background 200ms ease, box-shadow 220ms ease, border-color 200ms ease; }
.btn-primary { background: var(--burgundy); border-color: var(--burgundy); color: var(--cream); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 10px 24px rgba(74, 3, 2, 0.18); }
.btn-primary:hover { background: var(--burgundy-deep); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(74, 3, 2, 0.24); }
.btn-ghost { background: transparent; border-color: var(--hair); color: var(--ink); }
.btn-ghost:hover { border-color: var(--burgundy); color: var(--burgundy); transform: translateY(-2px); }
.btn-light { background: var(--cream); border-color: var(--cream); color: var(--burgundy); }
.btn-light:hover { background: #fff; transform: translateY(-2px); }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--burgundy); font-weight: 500; cursor: pointer; background: none; border: 0; padding: 0; }
.text-link .arrow { transition: transform 220ms var(--ease); }
.text-link:hover .arrow { transform: translateX(4px); }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.3); transform: scale(0); animation: ripple 0.55s linear; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- announce + nav ---------- */
.top-sentinel { position: absolute; top: 0; width: 1px; height: 1px; }
.announce { padding: 10px 16px; text-align: center; background: var(--black); color: var(--cream); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }
.nav { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--cream) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 220ms ease, background 220ms ease; }
.nav.scrolled { border-color: var(--hair); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { flex: none; width: 58px; height: auto; object-fit: contain; }
.brand-tark { font-family: var(--serif); font-size: 1.24rem; font-weight: 700; line-height: 1; color: var(--burgundy); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.94rem; font-weight: 450; color: var(--ink-soft); }
.nav-links > a { position: relative; transition: color 160ms ease; }
.nav-links > a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1.5px; background: var(--burgundy); transition: width 240ms var(--ease); }
.nav-links > a:hover { color: var(--burgundy); }
.nav-links > a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { min-height: 44px; padding: 0 20px; font-size: 0.9rem; }
.nav-pill-mobile { display: none; }
.hamburger { display: none; width: 44px; height: 42px; border: 1px solid var(--hair); border-radius: 11px; background: transparent; cursor: pointer; }

/* ---------- reveal / motion ---------- */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(28px); }
html.js .reveal.in { opacity: 1; transform: none; }
.stagger > * { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
html.js .stagger > * { opacity: 0; transform: translateY(22px); }
html.js .stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: 70ms; }
.stagger.in > *:nth-child(3) { transition-delay: 140ms; }
.stagger.in > *:nth-child(4) { transition-delay: 210ms; }
.stagger.in > *:nth-child(5) { transition-delay: 280ms; }
.stagger.in > *:nth-child(6) { transition-delay: 350ms; }
.stagger.in > *:nth-child(7) { transition-delay: 420ms; }
.stagger.in > *:nth-child(8) { transition-delay: 490ms; }

/* ---------- chapter scaffold ---------- */
.chapter { padding: var(--section-y) 0; position: relative; }
.chapter + .chapter { border-top: 1px solid var(--hair-soft); }
.chapter-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 84px); }
.chapter-index { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.chapter-index .num { color: var(--burgundy); }
.chapter-index .rule { width: 46px; height: 1px; background: var(--hair); }
.chapter-head h2 { margin-bottom: 22px; }
.chapter-head .lead { font-size: 1.24rem; }

/* ========================== HERO ========================== */
.hero { padding: clamp(60px, 7vw, 96px) 0 var(--section-y); }
.hero-copy { max-width: 820px; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 28px; font-size: 1.3rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* hero product showcase (Intercom-style tabbed demo) */
.hero-showcase { margin-top: clamp(48px, 6vw, 78px); }
.showcase-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.show-tab { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; border: 1px solid var(--hair); border-radius: 14px; padding: 15px 18px 18px; background: var(--cream-card); cursor: pointer; text-align: left; transition: transform 260ms var(--ease), border-color 240ms ease, box-shadow 260ms ease, background 240ms ease; }
.show-tab:hover { transform: translateY(-3px); border-color: rgba(77, 3, 3, 0.3); box-shadow: 0 12px 26px rgba(28, 22, 17, 0.09); }
.show-tab.is-active { background: var(--black); border-color: var(--black); box-shadow: 0 16px 36px rgba(28, 22, 17, 0.24); transform: none; }
.show-tab-text { display: flex; flex-direction: column; gap: 3px; }
.show-tab-title { font-family: var(--serif); font-size: 1.08rem; font-weight: 500; color: var(--ink); transition: color 240ms ease; }
.show-tab-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.03em; color: var(--muted); transition: color 240ms ease; }
.show-tab.is-active .show-tab-title { color: var(--cream); }
.show-tab.is-active .show-tab-sub { color: var(--mustard); }
.show-tab-bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: transparent; }
.show-tab-fill { display: block; width: 0; height: 100%; background: var(--mustard); }
.showcase-window { margin-top: 18px; border: 1px solid var(--hair); border-radius: var(--radius-lg); overflow: hidden; background: var(--cream-card); box-shadow: 0 40px 90px -30px rgba(28, 22, 17, 0.32); }
.window-bar { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--hair); padding: 13px 22px; background: color-mix(in srgb, var(--paper) 70%, transparent); }
.window-dots { display: inline-flex; gap: 7px; }
.window-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--hair); }
.window-dots i:nth-child(1) { background: var(--terracotta); }
.window-dots i:nth-child(2) { background: var(--mustard); }
.window-dots i:nth-child(3) { background: #b9ad9a; }
.window-title { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; color: var(--muted); }
.window-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.window-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); animation: pulse 2s infinite; }
.showcase-stage { position: relative; min-height: 432px; }
.demo { display: flex; }
.demo[hidden] { display: none; }
.showcase-stage.ready .demo { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(18px) scale(0.992); pointer-events: none; transition: opacity 0.5s ease, transform 0.66s var(--ease), visibility 0s linear 0.5s; }
.showcase-stage.ready .demo.is-active { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity 0.5s ease, transform 0.66s var(--ease), visibility 0s; }
.demo-canvas { flex: 1; display: flex; flex-direction: column; justify-content: center; margin: 16px; padding: 28px 30px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(28, 22, 17, 0.05); }
.demo-dialogue .demo-canvas { background: #e9f0ec; }
.demo-arc .demo-canvas { background: #f2ead7; }
.demo-report .demo-canvas { background: #e9edf5; }
.demo-tree .demo-canvas { background: #f4eae1; }
/* showcase · dialogue demo (sc- namespaced to avoid clashing with the Socratic section) */
.sc-chat { flex: 1; display: flex; flex-direction: column; width: 100%; max-width: 560px; margin: 0 auto; }
.sc-tag { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--burgundy); }
.sc-feed { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 11px; padding: 18px 0; overflow: hidden; }
.sc-msg { max-width: 82%; padding: 11px 15px; font-size: 0.9rem; line-height: 1.5; border-radius: 15px; opacity: 0; transform: translateY(9px); animation: msgIn 0.46s var(--ease) forwards; }
.sc-msg.tark { align-self: flex-start; border-bottom-left-radius: 5px; color: var(--ink); background: var(--cream); border: 1px solid var(--hair); }
.sc-msg.tark::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 8px; background: url("assets/tark-logo.png") center / contain no-repeat; vertical-align: middle; }
.sc-msg.student { align-self: flex-end; border-bottom-right-radius: 5px; color: var(--cream); background: var(--burgundy); }
.sc-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 13px 15px; border-radius: 15px; border-bottom-left-radius: 5px; background: var(--cream); border: 1px solid var(--hair); opacity: 0; animation: msgIn 0.3s ease forwards; }
.sc-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite; }
.sc-typing i:nth-child(2) { animation-delay: 0.16s; }
.sc-typing i:nth-child(3) { animation-delay: 0.32s; }
.sc-input { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding: 11px 12px 11px 15px; border-radius: 12px; background: var(--cream); border: 1px solid var(--hair); }
.sc-input-text { font-size: 0.88rem; color: var(--muted); }
.sc-send { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--cream); background: var(--burgundy); font-size: 0.86rem; }
/* showcase · arc demo */
.arc-demo { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 520px; margin: 0 auto; }
.arc-demo-head { display: flex; align-items: baseline; gap: 14px; }
.arc-demo-step { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--burgundy); }
.arc-demo-name { font-family: var(--serif); font-size: 1.55rem; color: var(--ink); }
.hs-arc { display: block; width: 100%; height: auto; }
.hs-arc-base, .hs-arc-line { fill: none; stroke-width: 2.4; stroke-linecap: round; }
.hs-arc-base { stroke: rgba(77, 3, 3, 0.16); }
.hs-arc-line { stroke: var(--burgundy); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.5s cubic-bezier(0.45, 0, 0.2, 1); }
.hs-node circle { fill: var(--cream-card); stroke: rgba(77, 3, 3, 0.32); stroke-width: 1.6; transition: 380ms var(--ease-spring); }
.hs-node text { fill: var(--muted); font: 700 10px var(--mono); text-anchor: middle; letter-spacing: 0.04em; transition: fill 360ms ease; }
.hs-node.on circle { fill: var(--mustard); stroke: var(--mustard); transform: scale(1.32); }
.hs-node.on text { fill: var(--burgundy); }
.arc-demo-copy { margin: 2px 0 0; min-height: 2.7em; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
/* showcase · report demo */
.metric-card { display: flex; flex-direction: column; width: 100%; max-width: 540px; margin: 0 auto; }
.metric-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.metric-kicker { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.metric-live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.metric-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); animation: pulse 2s infinite; }
.metric-title { margin: 16px 0 4px; font-family: var(--serif); font-size: 1.42rem; font-weight: 400; color: var(--ink); }
.metric-list { display: flex; flex-direction: column; gap: 20px; margin-top: 16px; }
.metric-row { display: grid; grid-template-columns: 1fr auto; gap: 9px 14px; }
.metric-name { grid-row: 1; grid-column: 1; font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.metric-val { grid-row: 1; grid-column: 2; font-family: var(--serif); font-size: 1.12rem; color: var(--burgundy); }
.metric-track { grid-row: 2; grid-column: 1 / -1; height: 8px; overflow: hidden; border-radius: 999px; background: rgba(77, 3, 3, 0.09); }
.metric-fill { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--burgundy); transition: width 1.15s cubic-bezier(0.45, 0, 0.2, 1); }
/* showcase · tree demo */
.tree-demo { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 560px; margin: 0 auto; }
.tree-demo-tag { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--burgundy); }
.hs-tree { display: block; width: 100%; height: auto; }
.hs-edge { stroke: var(--burgundy); stroke-width: 2; opacity: 0.42; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 0.55s ease; }
.hs-edge.drawn { stroke-dashoffset: 0; }
.hs-tnode { opacity: 0; transition: opacity 0.45s ease; }
.hs-tnode.on { opacity: 1; }
.hs-tnode circle { fill: var(--burgundy); transform: scale(0.4); transform-origin: center; transition: transform 0.52s var(--ease-spring); }
.hs-tnode.on circle { transform: scale(1); }
.hs-tnode[data-i="0"] circle { fill: var(--black); }
.hs-tnode text { fill: var(--ink); font: 700 10px var(--mono); text-anchor: middle; }

/* ---------- trust bar ---------- */
.trust { border-top: 1px solid var(--hair-soft); border-bottom: 1px solid var(--hair-soft); background: var(--cream-soft); }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 12px 0; }
.trust-side { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.trust-muted { color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; }
.trust-dot { color: var(--muted); }
.seal-sm { display: grid; place-items: center; width: 12px; height: 12px; border-radius: 50%; background: var(--mustard); color: transparent; box-shadow: 0 0 0 1px rgba(16, 13, 10, 0.08); }

/* ========================== 01 · SOCRATIC ========================== */
.socratic-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.socratic-points { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 2px; }
.socratic-points li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; padding: 18px 0; border-top: 1px solid var(--hair-soft); }
.socratic-points li:first-child { border-top: 0; }
.socratic-points .k { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--mustard-deep); padding-top: 2px; }
.socratic-points .v strong { font-weight: 600; font-size: 1.02rem; }
.socratic-points .v span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.96rem; }
.chat { border: 1px solid var(--hair); border-radius: var(--radius-lg); background: var(--cream-card); box-shadow: 0 30px 70px -34px rgba(28, 22, 17, 0.3); overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 22px; border-bottom: 1px solid var(--hair); }
.chat-case-lockup { min-width: 0; display: inline-flex; align-items: center; gap: 18px; }
.mini-brand { flex: none; display: inline-flex; align-items: center; gap: 8px; }
.mini-brand img { width: 36px; height: auto; object-fit: contain; }
.mini-brand b { font-family: var(--serif); font-size: 0.9rem; line-height: 1; color: var(--burgundy); }
.chat-head .case { min-width: 0; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--burgundy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head .arc { display: inline-flex; gap: 6px; }
.chat-head .arc i { width: 22px; height: 4px; border-radius: 2px; background: var(--hair); transition: background 400ms ease; }
.chat-head .arc i.on { background: var(--mustard); }
.chat-feed { padding: 24px 22px; display: flex; flex-direction: column; gap: 13px; min-height: 320px; }
.msg { max-width: 80%; padding: 12px 16px; font-size: 0.98rem; line-height: 1.5; border-radius: 16px; opacity: 0; transform: translateY(10px); }
.msg.show { animation: msgIn 0.5s var(--ease) forwards; }
.msg.tark { align-self: flex-start; background: var(--paper); border: 1px solid var(--hair); border-bottom-left-radius: 5px; }
.msg.tark .who { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mustard-deep); }
.msg.tark .who::before { content: ""; width: 16px; height: 16px; background: url("assets/tark-logo.png") center / contain no-repeat; }
.msg.student { align-self: flex-end; background: var(--burgundy); color: var(--cream); border-bottom-right-radius: 5px; }
.msg.flag { align-self: flex-start; max-width: 88%; background: rgba(109, 5, 4, 0.05); border: 1px dashed rgba(109, 5, 4, 0.4); color: var(--burgundy-deep); font-family: var(--mono); font-size: 0.82rem; }
.msg.flag b { font-weight: 700; }
.typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; border-radius: 16px; border-bottom-left-radius: 5px; background: var(--paper); border: 1px solid var(--hair); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.16s; }
.typing i:nth-child(3) { animation-delay: 0.32s; }
.chat-input { display: flex; align-items: center; gap: 12px; margin: 0 22px 22px; padding: 12px 12px 12px 16px; border: 1px solid var(--hair); border-radius: 13px; background: var(--paper); }
.chat-input span { color: var(--muted); font-size: 0.95rem; }
.chat-input .send { margin-left: auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--burgundy); color: var(--cream); }

/* ========================== 02 · REASONING TREE ========================== */
.tree-wrap { border: 1px solid var(--hair); border-radius: var(--radius-lg); background: var(--cream-card); overflow: hidden; box-shadow: 0 30px 80px -40px rgba(28, 22, 17, 0.32); }
.tree-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--hair); }
.tree-top .case { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--burgundy); }
.tree-legend { margin-left: auto; display: inline-flex; gap: 18px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.tree-legend span { display: inline-flex; align-items: center; gap: 7px; }
.tree-legend .sw { width: 10px; height: 10px; border-radius: 50%; }
.tree-legend .sw.move { background: var(--burgundy); }
.tree-legend .sw.gap { background: var(--mustard); box-shadow: 0 0 0 3px rgba(227, 169, 46, 0.25); }
.tree-legend .sw.root { background: var(--black); }
.tree-canvas { position: relative; background: radial-gradient(circle at 1px 1px, rgba(28, 22, 17, 0.05) 1px, transparent 0) 0 0 / 26px 26px; }
.tree-canvas svg { width: 100%; height: auto; }
.t-edge { stroke: var(--burgundy); stroke-width: 1.8; opacity: 0.4; fill: none; transition: stroke-dashoffset 0.7s var(--ease); }
html.js .t-edge { stroke-dasharray: 240; stroke-dashoffset: 240; }
html.js .t-edge.drawn { stroke-dashoffset: 0; }
.t-edge.drawn { stroke-dashoffset: 0; }
.t-node { cursor: pointer; }
html.js .t-node { opacity: 0; }
html.js .t-node.show { opacity: 1; }
.t-node circle { fill: var(--burgundy); transform-origin: center; transition: transform 0.55s var(--ease-spring), fill 200ms ease; }
html.js .t-node circle { transform: scale(0.4); }
html.js .t-node.show circle { transform: scale(1); }
.t-node[data-kind="root"] circle { fill: var(--black); }
.t-node[data-kind="gap"] circle { fill: var(--mustard); }
.t-node[data-kind="gap"] .halo { fill: none; stroke: var(--mustard); stroke-width: 2; opacity: 0; animation: halo 2.4s ease-out infinite; }
.t-node.show[data-kind="gap"] .halo { opacity: 1; }
.t-node:hover circle { fill: var(--terracotta); }
.t-node[data-kind="gap"]:hover circle { fill: var(--mustard-deep); }
.t-label { fill: var(--ink); font: 600 12px var(--sans); }
.t-sub { fill: var(--muted); font: 500 10.5px var(--mono); }
.tree-tip { position: absolute; left: 0; top: 0; max-width: 260px; padding: 13px 15px; border-radius: 12px; border-left: 3px solid var(--mustard); background: var(--black); color: var(--cream); font-size: 0.86rem; line-height: 1.5; box-shadow: 0 18px 40px -12px rgba(28, 22, 17, 0.5); opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity 200ms ease, transform 200ms ease; z-index: 5; }
.tree-tip.show { opacity: 1; transform: none; }
.tree-tip .gt { display: block; margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(212, 160, 23, 0.25); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mustard); }
.tree-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--hair); }
.tree-foot .hint { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ========================== 03 · TRIM ========================== */
.trim { background: #f6ead7; color: var(--ink); box-shadow: inset 0 1px 0 rgba(28, 22, 17, 0.08), inset 0 -1px 0 rgba(28, 22, 17, 0.08); }
.trim h2 { color: var(--ink); }
.trim .lead { color: var(--ink-soft); }
.trim .chapter-index { color: var(--muted); }
.trim .chapter-index .num { color: var(--burgundy); }
.trim .chapter-index .rule { background: rgba(109, 5, 4, 0.18); }
.trim-badge { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; border: 1px solid rgba(109, 5, 4, 0.18); border-radius: 999px; padding: 7px 15px; background: rgba(255, 254, 251, 0.54); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--burgundy); }
.trim-engine { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-top: clamp(40px, 5vw, 64px); }
.trim-col { border: 1px solid rgba(109, 5, 4, 0.16); border-radius: var(--radius); background: var(--paper); padding: 24px; display: flex; flex-direction: column; box-shadow: 0 18px 42px -32px rgba(28, 22, 17, 0.36); }
.trim-col .step { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 16px; }
.trim-col h4 { color: var(--ink); font-size: 1.15rem; margin-bottom: 14px; }
.trim-quote { border-left: 3px solid var(--terracotta); padding: 4px 0 4px 14px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.58; }
.trim-quote em { color: var(--burgundy); font-style: italic; }
.trim-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.trim-checks li { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: center; font-size: 0.92rem; color: var(--ink-soft); opacity: 0.5; transition: opacity 400ms ease; }
.trim-checks li.lit { opacity: 1; }
.trim-checks .tick { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(28, 22, 17, 0.18); font-size: 11px; transition: 300ms ease; }
.trim-checks li.lit .tick.pass { background: var(--sage); border-color: var(--sage); color: #fff; }
.trim-checks li.lit .tick.fail { background: var(--mustard); border-color: var(--mustard); color: var(--black); }
.trim-diag { margin-top: auto; }
.trim-diag .gap-chip { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 14px; background: #f0cf7b; color: var(--black); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.trim-diag p { margin-top: 14px; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.58; }
.trim-note { margin-top: 28px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.trim-note b { color: var(--burgundy); }

/* ========================== 04 · GAP CONSTELLATION ========================== */
.gaps-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); gap: clamp(36px, 4vw, 64px); align-items: center; }
.constellation { position: relative; aspect-ratio: 1 / 0.92; }
.constellation svg { width: 100%; height: 100%; overflow: visible; }
.c-edge { stroke: var(--hair); stroke-width: 1.4; transition: stroke 240ms ease, stroke-width 240ms ease; }
.c-edge.hot { stroke: var(--mustard); stroke-width: 2; }
.c-hub circle { fill: var(--black); }
.c-hub text { fill: var(--cream); font: 700 11px var(--mono); text-anchor: middle; letter-spacing: 0.04em; }
.gap-node { cursor: pointer; }
.gap-node circle { fill: var(--cream-card); stroke: var(--burgundy); stroke-width: 1.6; transition: 260ms var(--ease-spring); }
.gap-node text { fill: var(--ink); font: 600 11px var(--sans); text-anchor: middle; transition: fill 200ms ease; }
.gap-node:hover circle, .gap-node.active circle { fill: var(--burgundy); stroke: var(--burgundy); r: 13; }
.gap-node:hover text, .gap-node.active text { fill: var(--burgundy); font-weight: 700; }
.gap-detail { border: 1px solid var(--hair); border-radius: var(--radius); background: var(--cream-card); padding: 26px; min-height: 230px; box-shadow: 0 20px 50px -30px rgba(28, 22, 17, 0.3); }
.gap-detail .n { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mustard-deep); }
.gap-detail h3 { margin: 12px 0 14px; }
.gap-detail .def { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.6; }
.gap-detail .ex { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hair-soft); font-size: 0.94rem; color: var(--muted); line-height: 1.55; }
.gap-detail .ex b { color: var(--burgundy); font-weight: 600; }

/* ========================== 05 · FACULTY ========================== */
.faculty-grid { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: clamp(40px, 5vw, 76px); align-items: center; }
.faculty-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.std-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--hair); border-radius: 999px; padding: 8px 14px; background: var(--cream-card); font-size: 0.84rem; font-weight: 500; color: var(--ink-soft); }
.std-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.lang-line { margin-top: 22px; font-size: 0.96rem; color: var(--muted); }
.lang-line b { color: var(--ink); font-weight: 600; }
.dash { border: 1px solid var(--hair); border-radius: var(--radius-lg); background: var(--paper); box-shadow: 0 36px 80px -38px rgba(28, 22, 17, 0.34); overflow: hidden; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--hair); background: var(--cream-card); }
.dash-head .k { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.dash-head .live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.dash-head .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); animation: pulse 2s infinite; }
.dash-body { padding: 24px; }
.dash-body h4 { font-size: 1.2rem; margin-bottom: 4px; }
.dash-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }
.mrow { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; margin-bottom: 20px; }
.mrow .mname { font-weight: 500; font-size: 0.95rem; }
.mrow .mval { font-family: var(--serif); font-size: 1.15rem; color: var(--burgundy); }
.mrow .mtrack { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: rgba(28, 22, 17, 0.07); overflow: hidden; }
.mrow .mfill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--burgundy), var(--burgundy-bright)); transition: width 1.1s var(--ease); }
.dash-gaps { border-top: 1px solid var(--hair); padding-top: 20px; }
.dash-gaps .glabel { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 13px; }
.gap-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gchip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--hair); border-radius: 999px; padding: 7px 13px; background: var(--cream-card); font-size: 0.82rem; color: var(--ink-soft); transition: 200ms ease; cursor: default; }
.gchip .ct { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--burgundy); }
.gchip:hover { border-color: var(--burgundy); transform: translateY(-2px); }

/* ========================== 06 · WHAT WE DIAGNOSE ========================== */
.diagnose { background: var(--cream-soft); }
.diagnose-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(36px, 5vw, 72px); align-items: end; margin-bottom: clamp(44px, 5vw, 64px); }
.bignum { font-family: var(--serif); font-size: clamp(3.4rem, 7vw, 5.6rem); font-weight: 300; line-height: 0.92; color: var(--burgundy); letter-spacing: -0.03em; }
.bignum span { display: block; margin-top: 10px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.framework-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fw-card { border: 1px solid var(--hair); border-radius: var(--radius); padding: 22px 20px 24px; background: var(--cream-card); transition: transform 240ms var(--ease), box-shadow 240ms ease; }
.fw-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -16px rgba(28, 22, 17, 0.18); }
.fw-card .fw-k { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mustard-deep); }
.fw-card h4 { margin: 14px 0 8px; font-size: 1.16rem; }
.fw-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.diagnose-foot { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.diagnose-foot .glabel { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.diagnose-foot .gchip { background: var(--paper); cursor: default; }

/* ========================== 07 · COMPARISON ========================== */
.cmp { width: var(--shell); margin-inline: auto; }
.cmp-table { border: 1px solid var(--hair); border-radius: var(--radius-lg); overflow: hidden; background: var(--cream-card); }
.cmp-row { display: grid; grid-template-columns: minmax(0, 1.6fr) 1fr 1fr 1.15fr; align-items: stretch; border-top: 1px solid var(--hair-soft); }
.cmp-row:first-child { border-top: 0; }
.cmp-head { background: var(--cream-soft); }
.cmp-head .cell { padding: 20px 22px; }
.cmp-head .col-name { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 9px; }
.cmp-head .col-tark .col-name { color: var(--burgundy); }
.cmp .cell { display: flex; align-items: center; padding: 19px 22px; }
.cmp .cap { font-weight: 500; font-size: 1rem; color: var(--ink); }
.cmp .mark { justify-content: center; }
.cmp .col-tark { background: rgba(109, 5, 4, 0.045); position: relative; }
.cmp-row .col-tark { border-left: 1px solid rgba(109, 5, 4, 0.12); }
.ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; transition: opacity 0.4s var(--ease), transform 0.45s var(--ease-spring); }
html.js .ico { opacity: 0; transform: scale(0.5); }
.cmp-row.in .ico { opacity: 1; transform: scale(1); }
.cmp-row.in .col-tark .ico { transition-delay: 0.22s; }
.ico.yes { background: var(--burgundy); color: var(--cream); }
.ico.partial { background: transparent; border: 1.5px solid var(--mustard-deep); color: var(--mustard-deep); }
.ico.no { background: transparent; color: rgba(28, 22, 17, 0.26); }
.ico.no::before { content: "—"; }
.ico.tark { background: var(--burgundy); color: var(--cream); box-shadow: 0 0 0 0 rgba(109, 5, 4, 0.4); }
.cmp-row.in .col-tark .ico.tark { animation: tarkPop 0.6s var(--ease-spring) 0.22s both; }
.col-name .seal { width: 10px; height: 10px; border-radius: 50%; background: var(--mustard); color: transparent; display: inline-block; }

/* ========================== 08 · TESTIMONIALS ========================== */
.testimonials .testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonial { display: grid; align-content: space-between; gap: 28px; border: 1px solid var(--hair); border-radius: var(--radius-lg); padding: 32px; background: var(--cream-card); transition: transform 240ms var(--ease), box-shadow 240ms ease; }
.testimonial:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -22px rgba(28, 22, 17, 0.22); }
.testimonial blockquote { margin: 0; font-family: var(--serif); font-size: 1.34rem; font-weight: 380; font-style: italic; line-height: 1.42; color: var(--ink); }
.testimonial .attrib strong { display: block; font-size: 0.92rem; color: var(--burgundy); }
.testimonial .attrib span { color: var(--muted); font-size: 0.82rem; }

/* ========================== 09 · PILOT ========================== */
.pilot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr); gap: clamp(44px, 5vw, 76px); align-items: start; }
.pilot .btn { margin-top: 34px; }
.pilot-fineprint { margin: 16px 0 0; color: var(--muted); font-size: 0.84rem; }
.pilot-card { border: 1px solid var(--hair); border-radius: var(--radius-lg); background: var(--cream-card); padding: 8px 30px; box-shadow: 0 30px 70px -40px rgba(28, 22, 17, 0.3); }
.pilot-list { margin: 0; padding: 0; list-style: none; }
.pilot-list li { position: relative; padding: 20px 0 20px 36px; border-top: 1px solid var(--hair-soft); font-size: 0.98rem; }
.pilot-list li:first-child { border-top: 0; }
.pilot-list li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 16px; height: 16px; border-radius: 50%; background: var(--burgundy); }
.pilot-list li::after { content: "✓"; position: absolute; left: 5px; top: 19px; color: var(--cream); font-size: 10px; font-weight: 700; }

/* ========================== 10 · FAQ ========================== */
.faq-inner { max-width: 800px; }
.faq-list { border-top: 1px solid var(--hair); }
.faq-list details { border-bottom: 1px solid var(--hair); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 4px; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--hair); font-size: 1.1rem; color: var(--burgundy); transition: transform 240ms var(--ease), background 200ms ease, color 200ms ease; }
.faq-list details[open] .faq-icon { transform: rotate(45deg); background: var(--burgundy); color: var(--cream); border-color: var(--burgundy); }
.faq-list details p { margin: 0; padding: 0 4px 28px; max-width: 680px; color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }
.faq-list details a { color: var(--burgundy); text-decoration: underline; text-underline-offset: 3px; }

/* ========================== 11 · CTA ========================== */
.cta { background: var(--burgundy); color: var(--cream); }
.cta-inner { text-align: center; max-width: 880px; margin-inline: auto; }
.cta .eyebrow { color: var(--mustard); }
.cta h2 { color: var(--cream); margin-bottom: 16px; }
.cta h2 em { color: var(--mustard); }
.cta .lead { margin: 0 auto 36px; color: rgba(248, 243, 233, 0.72); text-align: center; }
.cta .hero-actions { justify-content: center; }
.cta-ghost { border-color: rgba(248, 243, 233, 0.35); color: var(--cream); }
.cta-ghost:hover { border-color: var(--cream); color: var(--cream); background: rgba(255, 255, 255, 0.08); }

/* ---------- footer ---------- */
.footer { color: rgba(248, 243, 233, 0.7); background: var(--black); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 56px; padding: 76px 0 46px; }
.footer-logo { color: var(--cream); }
.footer-logo .brand-tark { color: var(--cream); }
.footer-brand p { max-width: 320px; margin: 18px 0 24px; color: rgba(248, 243, 233, 0.5); font-size: 0.9rem; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--hair-light); border-radius: 50%; color: rgba(248, 243, 233, 0.7); transition: 180ms ease; }
.footer-social a:hover { color: var(--cream); border-color: var(--burgundy); background: var(--burgundy); }
.footer-social svg { width: 17px; height: 17px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { margin: 0 0 16px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mustard); }
.footer-col a { display: block; margin-bottom: 11px; color: rgba(248, 243, 233, 0.6); font-size: 0.92rem; transition: color 150ms ease; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--hair-light); padding: 22px 0; color: rgba(248, 243, 233, 0.45); font-size: 0.82rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--cream); }

/* ========================== CONTACT PAGE ========================== */
.contact { padding: clamp(56px, 7vw, 92px) 0 var(--section-y); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr); gap: clamp(44px, 5vw, 72px); align-items: start; }
.contact-title { font-size: clamp(2.8rem, 5.4vw, 4.4rem); }
.contact-details { display: grid; gap: 18px; margin-top: 40px; border-top: 1px solid var(--hair); padding-top: 28px; }
.contact-details > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; font-size: 0.96rem; }
.contact-details a { color: var(--burgundy); text-decoration: underline; text-underline-offset: 3px; }
.contact-label { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-card { display: grid; gap: 18px; border: 1px solid var(--hair); border-radius: var(--radius-lg); padding: 32px; background: var(--cream-card); box-shadow: 0 36px 80px -40px rgba(28, 22, 17, 0.3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--burgundy); }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--hair); border-radius: 12px; padding: 13px 14px; color: var(--ink); background: var(--paper); font-size: 0.96rem; transition: border-color 160ms ease, box-shadow 160ms ease; }
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--burgundy) 50%), linear-gradient(135deg, var(--burgundy) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(109, 5, 4, 0.12); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.7; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 4px; }
.form-status { margin: 0; font-size: 0.9rem; color: var(--muted); }
.form-status.error { color: var(--burgundy); }

/* ---------- keyframes ---------- */
@keyframes msgIn { to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes halo { 0% { r: 9; opacity: 0.6; } 100% { r: 22; opacity: 0; } }
@keyframes tarkPop { 0% { transform: scale(0.5); } 55% { transform: scale(1.18); box-shadow: 0 0 0 10px rgba(109, 5, 4, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(109, 5, 4, 0); } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .socratic-grid, .gaps-grid, .faculty-grid, .pilot-grid, .diagnose-lead, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .framework-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials .testimonial-grid { grid-template-columns: 1fr; }
  .trim-engine { grid-template-columns: 1fr; }
  .showcase-stage { min-height: 404px; }
  .diagnose-lead { align-items: start; }
}
@media (max-width: 720px) {
  :root { --shell: calc(100% - 36px); --shell-wide: calc(100% - 36px); }
  body { font-size: 16px; }
  .nav-links { position: absolute; top: 100%; left: 18px; right: 18px; display: none; flex-direction: column; align-items: stretch; gap: 4px; border: 1px solid var(--hair); border-radius: 16px; padding: 14px; background: var(--cream); box-shadow: 0 24px 50px rgba(28, 22, 17, 0.18); }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 11px 8px; }
  .nav-pill-mobile { display: inline-flex; margin-top: 8px; justify-content: center; }
  .nav-cta .btn:not(.hamburger) { display: none; }
  .hamburger { display: inline-grid; place-items: center; }
  .hero-showcase { margin-top: 40px; }
  .showcase-tabs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .show-tab { padding: 12px 14px 15px; }
  .show-tab-sub { display: none; }
  .showcase-window { border-radius: 18px; }
  .showcase-stage { min-height: 458px; }
  .demo-canvas { margin: 12px; padding: 22px 20px; }
  .framework-grid { grid-template-columns: 1fr; }
  .cmp-row { grid-template-columns: 1.3fr 0.8fr 0.8fr 0.9fr; }
  .cmp .cell { padding: 14px 12px; }
  .cmp .cap { font-size: 0.88rem; }
  .cmp-head .col-name span:not(.seal) { display: none; }
  .tree-legend { width: 100%; margin-left: 0; }
  .chat-head { align-items: flex-start; }
  .chat-case-lockup { flex-direction: column; align-items: flex-start; gap: 8px; }
  .chat-head .case { white-space: normal; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; padding: 50px 0 32px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-details > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .t-edge, .t-node, .t-node circle, .ico, .mfill, .metric-fill { transition: none !important; }
  html.js .t-edge { stroke-dashoffset: 0; }
  html.js .t-node { opacity: 1; }
  html.js .t-node circle { transform: scale(1); }
  html.js .ico { opacity: 1; transform: scale(1); }
  .showcase-stage.ready .demo { transition: opacity 0.2s ease; transform: none; }
  .show-tab-fill { display: none; }
  .sc-msg, .msg, .sc-typing { animation-duration: 0.01s; }
  .window-live-dot, .metric-live-dot, .dash-head .live-dot, .typing i, .sc-typing i, .t-node[data-kind="gap"] .halo, .ico.tark { animation: none !important; }
  .hs-arc-line { transition: none; }
}
