/* Layout: one 1180px column; dark green panels mark "inside the system", white cards mark proof. */
:root {
  --bg: #F1F4F2;
  --surface: #FFFFFF;
  --surface-2: #E3EAE6;
  --ink: #13201B;
  --ink-2: #3B4A44;
  --ink-3: #4A5A53;
  --line: #DCE3DF;
  --line-2: #C9D3CD;
  --brand: #0E3B2E;
  --brand-2: #144A3A;
  --brand-ink: #EAF2EE;
  --brand-ink-2: #B9CFC5;
  --accent: #F2A93B;
  --accent-ink: #13201B;
  --accent-soft: #FFF4E0;
  --accent-soft-ink: #4A3B1E;
  --code-tag: #D8EBE2;
  --diagram-bg: #FFFFFF;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* Dark theme: only when the visitor picks it with the toggle (light is the default). */
:root[data-theme="dark"] {
  --bg: #0C1613; --surface: #13211C; --surface-2: #1A2C25; --ink: #E6EEEA; --ink-2: #B5C4BD; --ink-3: #9DAEA6;
  --line: #22362E; --line-2: #2E463C; --brand: #0E3B2E; --brand-2: #17503F; --brand-ink: #EAF2EE; --brand-ink-2: #B9CFC5;
  --accent: #F2A93B; --accent-ink: #13201B; --accent-soft: #2E2615; --accent-soft-ink: #F4D9A6; --code-tag: #1F3B30;
  --diagram-bg: #FFFFFF; color-scheme: dark;
}
:root[data-theme="dark"] .pill { color: var(--ink); }
:root[data-theme="dark"] .stat .v { color: var(--accent); }
:root[data-theme="dark"] .nav-links a:hover { color: var(--accent); }
:root[data-theme="dark"] .nav-links a.btn-brand { border-color: #2E463C; }

.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; }
.theme-toggle:hover { border-color: var(--ink-3); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: block; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Nav */
.nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; padding-block: 22px; }
.brandmark { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; color: var(--ink); }
.brandmark .logo { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--accent); display: grid; place-items: center; font-weight: 800; }
.brandmark .role { font-weight: 500; color: var(--ink-3); }
.brandmark .logo-img { width: 48px; height: 48px; flex-shrink: 0; }
@media (max-width: 520px) { .brandmark .role { display: none; } }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; font-size: 15px; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--ink); }
.nav-links a:hover { color: var(--brand-2); text-decoration: underline; text-underline-offset: 4px; }
.nav-links a.btn-brand, .nav-links a.btn-brand:hover { color: #FFFFFF; text-decoration: none; }

/* Buttons and chips */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 15px; border: 1px solid transparent; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(0.95); }
.btn-brand { background: var(--brand); color: #FFFFFF; }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.pill { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--brand-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }

/* Hero */
.hero { padding-block: 64px 48px; display: flex; flex-direction: column; gap: 36px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; max-width: 1000px; }
.hero-row { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; }
.hero-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-copy .lede { font-size: 18px; color: var(--ink-2); max-width: 60ch; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.meta { font-size: 14px; color: var(--ink-3); }
.meta strong { color: var(--ink); }

.system { flex: 1.3 1 460px; min-width: 0; background: var(--brand); color: var(--brand-ink); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.system-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px; }
.system-head .label { font-size: 12px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.system-head .sub { font-size: 13px; color: var(--brand-ink-2); }
.stage { display: flex; align-items: center; gap: 12px; background: var(--brand-2); border-radius: 10px; padding: 11px 14px; }
.stage .n { font-size: 12px; font-weight: 800; color: var(--brand-ink-2); width: 20px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.stage .txt { flex: 1; min-width: 0; }
.stage .t { font-weight: 700; font-size: 15px; }
.stage .s { font-size: 12.5px; color: var(--brand-ink-2); }
.kind { font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; flex-shrink: 0; }
.kind-code { background: #D8EBE2; color: #0E3B2E; }
.kind-ai { background: #F2A93B; color: #13201B; }
.kind-human { background: #FFFFFF; color: #13201B; }
.system-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 10px; margin-top: 4px; border-top: 1px solid #2A5E4D; font-size: 13px; color: var(--brand-ink-2); }
.system-foot strong { color: #FFFFFF; font-variant-numeric: tabular-nums; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.stat { background: var(--surface); border-radius: 16px; padding: 20px 22px; }
.stat .v { font-size: 30px; font-weight: 800; color: var(--brand-2); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat .l { font-size: 14px; color: var(--ink-3); margin-top: 2px; }

/* Sections */
.section { padding-block: 88px 0; display: flex; flex-direction: column; gap: 24px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; }
.section-head p { color: var(--ink-2); max-width: 64ch; margin-top: 8px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }

/* Case cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--line-2); }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }
.card .thumb { aspect-ratio: 16 / 8; background: var(--diagram-bg); border-bottom: 1px solid var(--line); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card .thumb.dark { background: #171717; }
.card .thumb.mid img { object-position: center 38%; }
.card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .who { font-size: 12px; font-weight: 800; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }
.card h3 { font-size: 20px; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; }
.big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; }
.big .num { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.big .lbl { font-size: 13px; color: var(--accent-soft-ink); }
.card .proof { font-size: 15px; color: var(--ink-2); }
.card .more { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 700; color: var(--ink); }

/* Demo cards */
.demos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.demo .tag { align-self: flex-start; font-size: 12px; font-weight: 700; background: var(--surface-2); padding: 4px 10px; border-radius: 999px; }
.demo .tag.live { background: var(--accent); color: var(--accent-ink); }
.demo h3 { font-size: 18px; font-weight: 800; }
.demo p { font-size: 14px; color: var(--ink-2); }
.demo .more { margin-top: auto; font-size: 14px; font-weight: 700; }
a.demo:hover { border-color: var(--line-2); }

/* How I build */
.how { background: var(--brand); color: var(--brand-ink); border-radius: 24px; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 28px; }
.how h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; }
.how .intro { color: var(--brand-ink-2); max-width: 64ch; margin-top: 8px; }
.qa { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px 40px; }
.qa h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; letter-spacing: 0; color: #FFFFFF; }
.qa p { font-size: 15px; color: var(--brand-ink-2); }

/* More work */
.mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.mini > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.mini h3 { font-size: 16px; font-weight: 800; letter-spacing: 0; }
.mini p { font-size: 14px; color: var(--ink-2); }
.mini .stack { font-size: 12px; color: var(--ink-3); font-weight: 600; }

.quote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3vw, 36px); }
.quote p { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; font-weight: 600; max-width: 60ch; }
.quote footer { margin-top: 14px; font-size: 14px; color: var(--ink-3); }

.cta { padding-block: 88px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; max-width: 760px; line-height: 1.1; }
.cta p { color: var(--ink-2); }

.footer { border-top: 1px solid var(--line); padding-block: 24px 36px; font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Case study pages */
.crumb { font-size: 14px; font-weight: 600; color: var(--ink-3); text-decoration: none; }
.crumb:hover { color: var(--ink); }
.cs-hero { padding-block: 40px 32px; display: flex; flex-direction: column; gap: 18px; }
.cs-hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; max-width: 960px; }
.cs-hero .lede { font-size: 18px; color: var(--ink-2); max-width: 68ch; }
.tagline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.notice { background: var(--accent-soft); color: var(--accent-soft-ink); border-radius: 12px; padding: 12px 16px; font-size: 14px; max-width: 80ch; }
.notice strong { color: var(--ink); }

.cs-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-block: 24px 0; }
.cs-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 44px; }
.cs-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cs-side .box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.cs-side h3 { font-size: 13px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.cs-side ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }

.block { display: flex; flex-direction: column; gap: 14px; }
.block h2 { font-size: 26px; font-weight: 800; }
.block p, .block li { color: var(--ink-2); max-width: 70ch; }
.block ul, .block ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.block li strong, .block p strong { color: var(--ink); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.kpi .v { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.kpi .l { font-size: 13px; color: var(--ink-3); }

.figure { margin: 0; background: var(--diagram-bg); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.figure.dark { background: #171717; }
.figure .scroll { overflow-x: auto; }
.figure figcaption { font-size: 13px; color: #4A5A53; }
.figure.dark figcaption { color: #B5B5B5; }
.figure.tall img { max-width: 560px; width: 100%; margin: 0 auto; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: #4A5A53; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1.5px solid; }

.howgrid { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.howgrid .steps { flex: 1 1 320px; min-width: 0; }
.howgrid .figure { flex: 1 1 380px; min-width: 0; }

.guard { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.guard > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.guard h3 { font-size: 16px; font-weight: 800; letter-spacing: 0; margin-bottom: 4px; }
.guard p { font-size: 14px; color: var(--ink-2); }

pre.code { margin: 0; background: #0F1A16; color: #DDE8E2; border-radius: 14px; padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.6; }
pre.code .c { color: #8FA89C; }
pre.code .k { color: #F2C177; }
pre.code .s { color: #A9DFC1; }
.codehead { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-3); }

table.data { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
table.data td.num { font-variant-numeric: tabular-nums; text-align: right; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }

.slack { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; gap: 14px; }
.slack .av { width: 40px; height: 40px; border-radius: 8px; background: var(--brand); color: var(--accent); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.slack .msg { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.slack .msg .who { font-weight: 800; }
.slack .msg .who span { font-weight: 500; color: var(--ink-3); font-size: 12px; margin-left: 6px; }
.slack .sec { border-left: 3px solid var(--line-2); padding-left: 12px; display: flex; flex-direction: column; gap: 4px; color: var(--ink-2); }
.slack .sec b { color: var(--ink); }

.next { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }

/* ===== Motion ===== */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -24px 0 0 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--line-2) 1.1px, transparent 1.4px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 25% 35%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 25% 35%, #000 0%, transparent 75%);
  animation: grid-drift 60s linear infinite; }
@keyframes grid-drift { from { background-position: 0 0; } to { background-position: 260px 130px; } }

/* Hero pipeline replay */
.stage { position: relative; transition: background-color .35s ease, box-shadow .35s ease; }
.stage .st { font-family: var(--mono); font-size: 11.5px; color: var(--accent); min-height: 17px; margin-top: 2px; opacity: 0; transition: opacity .25s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage.running { background: #1C5A47; box-shadow: inset 0 0 0 1px rgba(242,169,59,.55); }
.stage.running .st, .stage.done .st, .stage.flag .st { opacity: 1; }
.stage.done .st { color: #9FD9BE; }
.stage.flag { background: #3A3A1F; box-shadow: inset 0 0 0 1px rgba(242,169,59,.9); }
.stage.running .kind { animation: kind-pulse 1s ease-in-out infinite; }
@keyframes kind-pulse { 50% { transform: scale(1.08); box-shadow: 0 0 0 4px rgba(242,169,59,.25); } }
.stage .n .ok { display: none; color: #9FD9BE; font-weight: 900; }
.stage.done .n .num { display: none; }
.stage.done .n .ok { display: inline; }
.replay-tag { display: inline-flex; align-items: center; gap: 6px; }
.replay-tag .dot { width: 7px; height: 7px; border-radius: 999px; background: #7BE0A8; box-shadow: 0 0 0 0 rgba(123,224,168,.6); animation: live 1.6s ease-out infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(123,224,168,0); } 100% { box-shadow: 0 0 0 0 rgba(123,224,168,0); } }

/* Diagram replay */
.diagram svg { display: block; width: 100%; height: auto; margin: 0 auto; }
.diagram .node .label-container, .diagram .node rect, .diagram .node polygon, .diagram .node path { transition: filter .3s ease, stroke-width .3s ease; }
.diagram .node.exec .label-container, .diagram .node.exec > rect, .diagram .node.exec > polygon, .diagram .node.exec > path { stroke-width: 2.6px !important; filter: drop-shadow(0 0 6px rgba(14,59,46,.35)); }
.diagram .node.ai.exec .label-container, .diagram .node.ai.exec > rect { filter: drop-shadow(0 0 9px rgba(242,169,59,.95)); }
.diagram .node.think .label-container, .diagram .node.think > rect { animation: think .5s ease-in-out infinite alternate; }
@keyframes think { to { filter: drop-shadow(0 0 14px rgba(242,169,59,1)); } }
.diagram .packet { fill: #F2A93B; stroke: #0E3B2E; stroke-width: 1.5; }
.diagram .packet.ai-out { fill: #0E3B2E; stroke: #F2A93B; }
.replay-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: #4A5A53; }
.replay-btn { font: inherit; font-size: 12px; font-weight: 700; color: #0E3B2E; background: #E3EAE6; border: 0; border-radius: 999px; padding: 6px 12px; min-height: 32px; cursor: pointer; }

/* Log feed */
.logwrap { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: stretch; }
.logwrap .qa { flex: 1.4 1 520px; min-width: 0; }
.qa > div { border-radius: 12px; padding: 10px 12px; margin: -10px -12px; transition: background-color .25s ease; cursor: default; }
.qa > div:hover, .qa > div:focus-within, .qa > div.active { background: rgba(255,255,255,.06); }
.logpanel { flex: 1 1 340px; min-width: 0; background: #08130F; border: 1px solid #1E3A30; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; font-family: var(--mono); font-size: 12px; }
.logpanel .lp-head { display: flex; justify-content: space-between; align-items: center; color: #8FA89C; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; font-family: var(--font); font-weight: 700; }
.loglines { flex: 1; min-height: 286px; height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 36px); mask-image: linear-gradient(to bottom, transparent 0, #000 36px); }
.logline { color: #C9D8D0; line-height: 1.45; transition: opacity .3s ease, color .3s ease; animation: line-in .35s ease both; overflow-wrap: anywhere; }
@keyframes line-in { from { opacity: 0; transform: translateY(6px); } }
.logline .t { color: #5E7A6D; margin-right: 6px; }
.logline .tag { color: #F2C177; }
.logline .ok { color: #7BE0A8; }
.logline .bad { color: #FF9C8A; }
.loglines.focus .logline { opacity: .28; }
.loglines.focus .logline.match { opacity: 1; color: #FFFFFF; }

/* Count-up, bars, shrink */
.bars { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.bars h3 { font-size: 15px; font-weight: 800; letter-spacing: 0; }
.barrow { display: grid; grid-template-columns: minmax(110px, 160px) 1fr 70px; gap: 12px; align-items: center; font-size: 14px; }
.bartrack { position: relative; height: 14px; background: var(--surface-2); border-radius: 999px; }
.barfill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--brand-2); width: var(--w); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.barfill.good { background: #2E8A63; }
.barfill.warn { background: #C98316; }
.bartarget { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--ink); left: var(--t); }
.barval { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.bars .note { font-size: 12.5px; color: var(--ink-3); }
.anim-ready .bars:not(.in) .barfill { width: 0; }
.shrink .barfill { transition: width 1.6s cubic-bezier(.6,0,.2,1); }

/* Card thumbnails pan on hover */
.card .thumb.pan-y img { transition: object-position 5s ease; }
.card:hover .thumb.pan-y img { object-position: center 100%; }
.card .thumb.pan-x img { object-position: left center; transition: object-position 5s ease; }
.card:hover .thumb.pan-x img { object-position: right center; }

/* Theme fade */
.theme-anim, .theme-anim * { transition: background-color .35s ease, color .35s ease, border-color .35s ease !important; }

/* Slack briefing build */
.anim-ready .slack.build .msg > * { opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.anim-ready .slack.build .msg > *.shown { opacity: 1; transform: none; }
.typing { display: inline-flex; gap: 4px; align-items: center; height: 18px; }
.typing i { width: 6px; height: 6px; border-radius: 999px; background: var(--ink-3); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }

/* Validator playground */
.play { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.play .tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.play .tabs button { font: inherit; font-size: 13px; font-weight: 700; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; }
.play .tabs button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }
.play .cols { display: flex; flex-wrap: wrap; gap: 14px; }
.play .col { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.play .lbl { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.play .transcript { background: var(--bg); border-radius: 12px; padding: 14px; font-size: 14px; line-height: 1.65; color: var(--ink-2); min-height: 150px; }
.play .transcript p + p { margin-top: 6px; }
.play .transcript b { color: var(--ink); }
.play mark { background: #BDEBD3; color: #0E3B2E; border-radius: 4px; padding: 0 2px; }
.play pre.code { min-height: 150px; font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.play .run { align-self: flex-start; }
.verdict { border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; display: none; }
.verdict.show { display: block; animation: line-in .35s ease both; }
.verdict.pass { background: #DDF3E8; color: #0E3B2E; }
.verdict.fail { background: #FFE6CC; color: #5A3600; }
.verdict.err { background: #FFE0DB; color: #6A1B0F; }

@media (prefers-reduced-motion: reduce) {
  .hero::before, .stage.running .kind, .replay-tag .dot, .typing i, .diagram .node.think .label-container { animation: none !important; }
  .barfill, .card .thumb img, .logline { transition: none !important; animation: none !important; }
}
