  /* Self-hosted font faces (latin subset, woff2) */
  @font-face {
    font-family: "DM Serif Display";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/dm-serif-display-latin-400-normal.woff2") format("woff2");
  }
  @font-face {
    font-family: "DM Serif Display";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/dm-serif-display-latin-400-italic.woff2") format("woff2");
  }
  @font-face {
    font-family: "Inter Tight";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/inter-tight-latin-400-normal.woff2") format("woff2");
  }
  @font-face {
    font-family: "Inter Tight";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/inter-tight-latin-500-normal.woff2") format("woff2");
  }
  @font-face {
    font-family: "Inter Tight";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/inter-tight-latin-600-normal.woff2") format("woff2");
  }
  @font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  }
  @font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  }

  :root {
    color-scheme: dark light;
    --bg:        #0C0A08;
    --bg-2:      #120F0C;
    --panel:     #17130F;
    --panel-2:   #1D1812;
    --hairline:  rgba(255,244,230,0.08);
    --hairline-2:rgba(255,244,230,0.14);
    --text:      #F6EFE6;
    --muted:     #B6A999;
    --dim:       #8A7E70;
    --faint:     #5C5346;
    --accent:      #FF6B2B;
    --accent-deep: #D94E14;
    --accent-soft: rgba(255,107,43,0.14);
    --accent-glow: rgba(255,107,43,0.30);
    --good: #8FCFA0;
    --warn: #F0B35E;
    --ff-display: "DM Serif Display", Georgia, serif;
    --ff-body:    "Inter Tight", system-ui, sans-serif;
    --ff-mono:    "JetBrains Mono", ui-monospace, monospace;
    --maxw: 1200px;
    --gutter: 24px;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: var(--ff-body); font-size: 16px; line-height: 1.6;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    background-image:
      radial-gradient(900px 500px at 85% -5%, rgba(255,107,43,0.12), transparent 60%),
      radial-gradient(700px 400px at 12% 3%, rgba(255,140,64,0.08), transparent 60%),
      linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 60%);
    background-attachment: fixed;
  }

  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }
  button { font: inherit; cursor: pointer; }

  h1, h2, h3 {
    font-family: var(--ff-display); font-weight: 500;
    letter-spacing: -0.02em; line-height: 1.05; margin: 0; color: var(--text);
  }
  h1 { font-size: clamp(2.6rem, 4.5vw, 3.75rem); }
  h2 { font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -0.025em; }
  h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; font-weight: 500; }
  p  { margin: 0; color: var(--muted); }

  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--ff-mono); font-size: 0.82rem; font-weight: 600;
    color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em;
  }
  .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }

  .container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
  section { padding: clamp(64px, 9vw, 120px) 0; }

  /* Alternating section bands */
  .band-dark {
    background: var(--bg);
  }
  .band-light {
    background: rgba(255,244,230,0.03);
    border-top: 1px solid var(--hairline-2);
    border-bottom: 1px solid var(--hairline-2);
  }
  .band-panel {
    background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
    border-top: 1px solid var(--hairline-2);
    border-bottom: 1px solid var(--hairline-2);
  }

  .section-head { max-width: 760px; margin-bottom: 56px; }
  .section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
  .section-head h2 { margin-top: 18px; }
  .section-head p  { margin-top: 20px; font-size: 1.0625rem; color: var(--muted); max-width: 620px; }
  .section-head.center p { margin-left: auto; margin-right: auto; }

  /* BUTTONS */
  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 20px; border-radius: 10px;
    font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.005em;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: 1px solid var(--hairline-2); background: rgba(255,244,230,0.03); color: var(--text);
  }
  .btn:hover { transform: translateY(-1px); }
  .btn:not(.btn-primary):hover { background: rgba(255,244,230,0.06); }
  .btn-primary,
  .btn-primary:link,
  .btn-primary:visited,
  .btn-primary:hover,
  .btn-primary:active,
  .btn-primary:focus {
    background: linear-gradient(180deg, #FF7A3D 0%, var(--accent) 55%, var(--accent-deep) 100%);
    color: #1a0b03; border: 1px solid rgba(255,140,64,0.5);
    box-shadow: 0 10px 30px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.18);
    font-weight: 600;
  }
  .btn-primary:hover { box-shadow: 0 14px 36px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25); }
  .btn .arrow { transition: transform 0.2s; }
  .btn:hover .arrow { transform: translateX(3px); }

  /* NAV */
  .nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    background: rgba(12,10,8,0.72); border-bottom: 1px solid var(--hairline);
  }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
  .brand { display: flex; align-items: center; gap: 12px; }
  .brand-mark { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
  .brand-mark svg { width: 100%; height: 100%; display: block; }
  .brand-name { display: flex; flex-direction: column; line-height: 1.1; }
  .brand-name .n { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.015em; }
  .brand-name .t { font-family: var(--ff-mono); font-size: 0.62rem; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; }
  .nav-links { display: none; gap: 28px; }
  .nav-links a { font-size: 0.875rem; color: var(--muted); transition: color 0.15s; }
  .nav-links a:hover { color: var(--text); }
  .nav-cta { display: flex; gap: 10px; }
  @media (min-width: 860px) { .nav-links { display: flex; } }

  /* HERO */
  .hero { padding-top: 88px; padding-bottom: 80px; }
  .hero-center { max-width: 820px; margin: 0 auto; text-align: center; }
  .hero-center h1 { letter-spacing: -0.03em; line-height: 1.1; }
  .hero-sub { margin: 26px auto 0; font-size: 1.125rem; color: var(--muted); max-width: 640px; line-height: 1.65; }
  .hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

  .hero-proof { margin-top: 64px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
  .hero-proof img {
    display: block; width: 100%; max-width: 340px; height: auto;
    border-radius: 28px; border: 1px solid var(--hairline-2);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6), 0 8px 20px -6px rgba(255,107,43,0.12), inset 0 1px 0 rgba(255,255,255,0.04);
  }
  .hero-proof-caption {
    font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.06em;
    color: var(--dim); text-align: center; max-width: 340px; line-height: 1.5;
  }

  /* PAIN CARDS */
  /* Flexbox so an incomplete trailing row (e.g. 3 cards in 2-col → 2+1) centres instead of left-aligning. */
  .pain-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 1000px; margin: 0 auto; }
  .pain-grid > * { flex: 0 0 100%; }
  @media (min-width: 820px) {
    .pain-grid { gap: 20px; }
    .pain-grid > * { flex: 0 0 calc((100% - 20px) / 2); }
  }
  .pain-card {
    position: relative; padding: 28px 28px 26px;
    border: 1px solid var(--hairline); border-radius: 14px;
    background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  }
  .pain-card::before {
    content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 2px;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(255,107,43,0.15) 100%);
    border-radius: 0 2px 2px 0;
  }
  .pain-tag {
    display: inline-block; font-family: var(--ff-mono); font-size: 0.7rem;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
    padding: 4px 10px; border-radius: 999px;
    background: var(--accent-soft); border: 1px solid rgba(255,107,43,0.25);
  }
  /* Source citation — small muted footer line inside .pain-card, used on
     the #evidence section to attribute each stat. Visually demoted vs the
     pain-tag pill so the big stat stays the hero. */
  .pain-card .source {
    display: block; margin-top: 14px;
    font-family: var(--ff-mono); font-size: 0.62rem; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--dim);
  }
  .pain-card .source a {
    color: var(--dim); text-decoration: none;
    border-bottom: 1px dotted rgba(255,244,230,0.25);
    transition: color 0.15s, border-color 0.15s;
  }
  .pain-card .source a:hover { color: var(--muted); border-bottom-color: var(--muted); }
  .pain-card h3 { margin-top: 16px; font-family: var(--ff-display); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.015em; color: var(--text); line-height: 1.25; }
  .pain-card p { margin-top: 14px; font-size: 0.9375rem; line-height: 1.6; color: var(--muted); }

  /* PIPELINE SCHEMATIC */
  .schematic {
    position: relative; max-width: 1100px; margin: 0 auto; padding: 40px 32px;
    border: 1px solid var(--hairline); border-radius: 20px;
    background: radial-gradient(600px 300px at 85% 0%, rgba(255,107,43,0.08), transparent 60%), linear-gradient(180deg, rgba(255,244,230,0.02) 0%, transparent 100%);
  }
  @media (max-width: 640px) { .schematic { padding: 28px 20px; } }
  .schematic-label {
    font-family: var(--ff-mono); font-size: 0.7rem; color: var(--accent);
    letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 36px;
    position: relative; padding-left: 22px;
  }
  .schematic-label::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 14px; height: 1px; background: var(--accent); }

  .h-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 0; }
  .h-flow.h-flow-6 { grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr auto 1fr; }
  .h-flow.h-flow-7 { grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr auto 1fr auto 1fr; }

  .h-stage { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
  .h-gate { font-family: var(--ff-mono); font-size: 0.58rem; padding: 3px 8px; border-radius: 999px; letter-spacing: 0.08em; white-space: nowrap; margin-bottom: 12px; }
  .h-gate.human { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(255,107,43,0.35); }
  .h-gate.auto { background: rgba(255,244,230,0.03); color: var(--dim); border: 1px solid var(--hairline); }
  .h-node { width: 12px; height: 12px; border-radius: 50%; background: var(--accent-soft); border: 1.5px solid rgba(255,107,43,0.5); position: relative; z-index: 2; }
  .h-node.active { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(255,107,43,0.15), 0 0 14px var(--accent-glow); animation: flow-pulse 2.4s ease-in-out infinite; }
  .h-node.done { background: var(--good); border-color: var(--good); box-shadow: 0 0 0 5px rgba(143,207,160,0.15), 0 0 12px rgba(143,207,160,0.2); }
  @keyframes flow-pulse {
    0%, 100% { box-shadow: 0 0 0 5px rgba(255,107,43,0.15), 0 0 14px var(--accent-glow); }
    50% { box-shadow: 0 0 0 8px rgba(255,107,43,0.05), 0 0 20px var(--accent-glow); }
  }
  .h-role { margin-top: 14px; font-family: var(--ff-display); font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.01em; color: var(--text); line-height: 1.2; }
  .h-who { margin-top: 4px; font-family: var(--ff-mono); font-size: 0.58rem; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3; }
  .h-connector { height: 1.5px; width: 100%; min-width: 16px; background: linear-gradient(90deg, rgba(255,107,43,0.4), rgba(255,107,43,0.15)); transform: translateY(-29px); }

  @media (max-width: 640px) {
    .h-flow, .h-flow.h-flow-6, .h-flow.h-flow-7 { grid-template-columns: 1fr; gap: 0; }
    .h-stage { flex-direction: row; align-items: center; text-align: left; gap: 14px; padding: 14px 0; border-top: 1px solid var(--hairline); position: relative; }
    .h-stage:first-child { border-top: none; }
    .h-gate { order: 3; margin-bottom: 0; margin-left: auto; }
    .h-node { order: 1; flex-shrink: 0; }
    .h-role { order: 2; margin-top: 0; font-size: 1rem; display: flex; flex-direction: column; }
    .h-who { font-size: 0.62rem; margin-top: 3px; }
    .h-connector { display: none; }
  }

  .schematic-footer { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--hairline); font-family: var(--ff-display); font-style: italic; font-size: 0.95rem; color: var(--muted); letter-spacing: -0.005em; text-align: center; }

  /* OUTCOME SECTIONS */
  .outcome-section .narrow { max-width: 820px; }
  .outcome-body { margin-top: 24px; font-size: 1.0625rem; line-height: 1.7; color: var(--muted); }

  /* SPRINT PROGRESSION (Confidence over time) */
  .sprint-progression { margin-top: 48px; display: flex; flex-direction: column; gap: 0; max-width: 900px; margin-left: auto; margin-right: auto; position: relative; }
  .sprint-progression::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(180deg, rgba(255,107,43,0.15) 0%, var(--accent) 50%, var(--good) 100%); }
  @media (max-width: 640px) { .sprint-progression::before { left: 19px; } }

  .sprint-step { display: flex; gap: 20px; align-items: flex-start; padding: 20px 0; position: relative; }
  .sprint-marker { flex-shrink: 0; width: 48px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .sprint-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,107,43,0.4); background: var(--accent-soft); position: relative; z-index: 2; }
  .sprint-step:last-child .sprint-dot { background: var(--good); border-color: var(--good); box-shadow: 0 0 0 5px rgba(143,207,160,0.15), 0 0 12px rgba(143,207,160,0.2); }
  .sprint-step:nth-child(2) .sprint-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,107,43,0.1); }
  .sprint-label { font-family: var(--ff-mono); font-size: 0.62rem; color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; text-align: center; white-space: nowrap; }

  .sprint-card { flex: 1; padding: 20px 24px; border: 1px solid var(--hairline); border-radius: 12px; background: rgba(255,244,230,0.015); }
  .sprint-card h4 { margin: 0; font-family: var(--ff-body); font-weight: 500; font-size: 0.9375rem; color: var(--text); line-height: 1.35; }
  .sprint-card p { margin-top: 10px; font-size: 0.875rem; color: var(--muted); line-height: 1.55; }
  .sprint-card .context-count { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px; }
  .sprint-card .context-count.low { color: var(--dim); background: rgba(255,244,230,0.03); border: 1px solid var(--hairline); }
  .sprint-card .context-count.mid { color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(255,107,43,0.25); }
  .sprint-card .context-count.high { color: var(--good); background: rgba(143,207,160,0.1); border: 1px solid rgba(143,207,160,0.25); }

  /* ARTIFACT TRAIL (No more black box) */
  /* Flexbox so an incomplete trailing row centres instead of left-aligning.
     Each card is fixed-width per breakpoint; the gap matches the old grid. */
  .artifact-trail { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 1000px; margin-left: auto; margin-right: auto; }
  .artifact-trail > .artifact-card { flex: 0 0 100%; }
  @media (min-width: 720px) {
    .artifact-trail > .artifact-card { flex: 0 0 calc((100% - 14px) / 2); }
  }
  @media (min-width: 960px) {
    .artifact-trail > .artifact-card { flex: 0 0 calc((100% - 42px) / 4); }
    /* When a gallery has exactly 5 cards, render as 3 + 2 instead of 4 + 1 (no orphan trailing single). */
    .artifact-trail:has(> .artifact-card:nth-last-child(5):first-child) > .artifact-card {
      flex: 0 0 calc((100% - 28px) / 3);
    }
  }

  .artifact-card { padding: 22px 20px; border: 1px solid var(--hairline); border-radius: 14px; background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%); position: relative; }
  .artifact-card .artifact-num { font-family: var(--ff-mono); font-size: 0.62rem; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
  .artifact-card .artifact-num::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
  .artifact-card h4 { margin: 0; font-family: var(--ff-body); font-weight: 500; font-size: 0.9375rem; color: var(--text); line-height: 1.3; }
  .artifact-card p { margin-top: 10px; font-size: 0.875rem; line-height: 1.55; color: var(--muted); }
  .artifact-card .artifact-example { margin-top: 14px; padding: 10px 14px; border-radius: 8px; background: rgba(12,10,8,0.5); border: 1px solid var(--hairline); font-family: var(--ff-mono); font-size: 0.7rem; color: var(--dim); line-height: 1.6; letter-spacing: 0.02em; }

  /* ATTENTION GRID */
  .attention-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
  @media (min-width: 960px) { .attention-grid { grid-template-columns: 1fr 1fr; gap: 60px; } }
  .attention-list { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
  .attention-list .it { display: flex; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--hairline); }
  .attention-list .it:first-child { border-top: none; }
  .attention-list .it .i { font-family: var(--ff-mono); font-size: 0.7rem; color: var(--accent); min-width: 28px; }
  .attention-list .it p { font-size: 0.9375rem; color: var(--muted); }
  .attention-list .it strong { color: var(--text); font-weight: 500; }

  .telegram-proof { display: flex; flex-direction: column; align-items: center; gap: 14px; }
  .telegram-proof img {
    display: block; width: 100%; max-width: 340px; height: auto;
    border-radius: 28px; border: 1px solid var(--hairline-2);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6), 0 8px 20px -6px rgba(255,107,43,0.12), inset 0 1px 0 rgba(255,255,255,0.04);
  }
  .telegram-proof-caption { font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--dim); text-align: center; max-width: 320px; line-height: 1.5; }
  @media (min-width: 960px) { .telegram-proof img { max-width: 380px; } }

  /* COMPETENCE TRANSFORMATION (You describe, Fostery handles) */
  .transform-visual { margin-top: 48px; max-width: 1000px; margin-left: auto; margin-right: auto; }

  .transform-input {
    padding: 24px 28px; border-radius: 14px 14px 0 0;
    border: 1px solid var(--hairline-2);
    background: linear-gradient(180deg, rgba(255,244,230,0.04) 0%, rgba(255,244,230,0.01) 100%);
  }
  .transform-input-label {
    font-family: var(--ff-mono); font-size: 0.7rem; color: var(--accent);
    letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
  }
  .transform-input-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
  .transform-input blockquote {
    margin: 0; padding: 0; font-family: var(--ff-display); font-size: 1.125rem;
    font-style: italic; color: var(--text); line-height: 1.55;
  }

  .transform-arrow {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 14px 0; position: relative;
  }
  .transform-arrow::before { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,107,43,0.3)); }
  .transform-arrow::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,107,43,0.3), transparent); }
  .transform-arrow-text {
    font-family: var(--ff-mono); font-size: 0.7rem; color: var(--accent);
    letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
    padding: 4px 14px; border-radius: 999px;
    background: var(--accent-soft); border: 1px solid rgba(255,107,43,0.25);
  }

  .transform-output { display: grid; gap: 12px; grid-template-columns: 1fr; }
  @media (min-width: 720px) { .transform-output { grid-template-columns: 1fr 1fr; } }

  .transform-card {
    padding: 20px 22px; border: 1px solid var(--hairline); border-radius: 12px;
    background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  }
  .transform-card .tc-num {
    font-family: var(--ff-mono); font-size: 0.62rem; color: var(--accent);
    letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
  }
  .transform-card .tc-num::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
  .transform-card h4 { margin: 0; font-family: var(--ff-body); font-weight: 500; font-size: 0.9375rem; color: var(--text); line-height: 1.3; }
  .transform-card p { margin-top: 8px; font-size: 0.875rem; line-height: 1.55; color: var(--muted); }
  .transform-card .tc-example { margin-top: 12px; padding: 10px 14px; border-radius: 8px; background: rgba(12,10,8,0.5); border: 1px solid var(--hairline); font-family: var(--ff-mono); font-size: 0.7rem; color: var(--dim); line-height: 1.6; letter-spacing: 0.02em; }

  /* COMPOUND CALLOUT */
  .compound-callout {
    margin-top: 40px; max-width: 640px; margin-left: auto; margin-right: auto;
    padding: 24px 28px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,107,43,0.08) 0%, rgba(255,107,43,0.02) 100%);
    border: 1px solid rgba(255,107,43,0.22); text-align: center;
  }
  .compound-callout p { font-family: var(--ff-display); font-size: 1.0625rem; font-style: italic; line-height: 1.55; color: var(--text); }

  /* MODEL FREEDOM / BYOM */
  .freedom {
    background: linear-gradient(180deg, rgba(255,107,43,0.06) 0%, transparent 40%), linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
    border: 1px solid var(--hairline-2); border-radius: 24px; padding: 56px 40px;
    position: relative; overflow: hidden;
  }
  @media (max-width: 720px) { .freedom { padding: 40px 24px; } }
  .freedom::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% -5%, var(--accent-glow), transparent 55%); pointer-events: none; opacity: 0.6; }
  .freedom-inner { position: relative; max-width: 920px; }
  .freedom h2 { margin-top: 18px; }
  .freedom > .freedom-inner > p { margin-top: 22px; font-size: 1.0625rem; line-height: 1.65; color: var(--muted); max-width: 720px; }
  .model-list { margin-top: 36px; display: grid; gap: 12px; grid-template-columns: 1fr; }
  @media (min-width: 720px) { .model-list { grid-template-columns: repeat(3, 1fr); } }
  .model-item { border: 1px solid var(--hairline); border-radius: 12px; padding: 18px; background: rgba(12,10,8,0.35); display: flex; align-items: center; gap: 14px; }
  .model-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex-shrink: 0; }
  .model-item .name { font-weight: 500; }
  .model-item .desc { font-family: var(--ff-mono); font-size: 0.7rem; color: var(--dim); margin-top: 3px; letter-spacing: 0.06em; }
  .freedom-bottom { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--hairline); display: grid; gap: 24px; grid-template-columns: 1fr; }
  @media (min-width: 720px) { .freedom-bottom { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
  .freedom-bottom .pt h4 { margin: 0; font-family: var(--ff-body); font-weight: 500; font-size: 0.9375rem; color: var(--text); }
  .freedom-bottom .pt p  { margin-top: 8px; font-size: 0.875rem; color: var(--muted); line-height: 1.55; }

  /* SECURITY */
  /* Flexbox so an incomplete trailing row (e.g. 7 cards in 2-col → 2+2+2+1) centres instead of left-aligning. */
  .sec-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
  .sec-grid > * { flex: 0 0 100%; }
  @media (min-width: 720px) {
    .sec-grid > * { flex: 0 0 calc((100% - 14px) / 2); }
  }
  .sec-item { padding: 22px; border: 1px solid var(--hairline); border-radius: 14px; background: rgba(255,244,230,0.015); }
  .sec-item h4 { font-family: var(--ff-body); font-weight: 500; font-size: 0.9375rem; margin: 0; display: flex; align-items: center; gap: 10px; color: var(--text); }
  .sec-item h4::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
  .sec-item p { margin-top: 10px; font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

  /* SIGN-OFF */
  .signoff { max-width: 720px; margin: 0 auto; text-align: center; }
  .signoff-body { font-size: 1.0625rem; line-height: 1.7; color: var(--muted); font-style: italic; font-family: var(--ff-display); }
  .signoff-author { margin-top: 24px; font-family: var(--ff-mono); font-size: 0.82rem; color: var(--dim); letter-spacing: 0.04em; }
  .signoff-beta { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--hairline); font-size: 0.9375rem; color: var(--muted); line-height: 1.65; }

  /* FAQ */
  .faq { max-width: 860px; margin: 0 auto; }
  .faq-item { border-top: 1px solid var(--hairline); padding: 0; }
  .faq-item:last-child { border-bottom: 1px solid var(--hairline); }
  .faq-item summary { list-style: none; padding: 22px 4px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-family: var(--ff-display); font-size: 1.125rem; font-weight: 500; letter-spacing: -0.015em; color: var(--text); line-height: 1.3; transition: color 0.15s ease; }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary:hover { color: var(--accent); }
  .faq-icon { position: relative; flex-shrink: 0; width: 18px; height: 18px; border: 1px solid var(--hairline-2); border-radius: 50%; transition: border-color 0.2s, background 0.2s; }
  .faq-icon::before, .faq-icon::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--muted); transition: transform 0.25s ease, background 0.15s; }
  .faq-icon::before { width: 8px; height: 1.5px; transform: translate(-50%, -50%); }
  .faq-icon::after { width: 1.5px; height: 8px; transform: translate(-50%, -50%); }
  .faq-item[open] .faq-icon { border-color: rgba(255,107,43,0.5); background: var(--accent-soft); }
  .faq-item[open] .faq-icon::before { background: var(--accent); }
  .faq-item[open] .faq-icon::after { background: var(--accent); transform: translate(-50%, -50%) rotate(90deg); }
  .faq-item[open] summary { color: var(--text); }
  .faq-item p { padding: 0 4px 22px; font-size: 0.9375rem; line-height: 1.7; color: var(--muted); max-width: 760px; }

  /* FINAL CTA */
  .final { max-width: 880px; margin: 0 auto; text-align: center; border: 1px solid var(--hairline-2); border-radius: 24px; padding: 64px 40px; background: radial-gradient(500px 300px at 50% 0%, var(--accent-soft), transparent 60%), linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%); position: relative; overflow: hidden; }
  @media (max-width: 720px) { .final { padding: 48px 24px; } }
  .final h2 { margin-top: 16px; }
  .final p  { margin-top: 20px; font-size: 1.0625rem; max-width: 560px; margin-left: auto; margin-right: auto; }
  .final-cta { margin-top: 36px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

  /* BETA FORM */
  .beta-form { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin-left: auto; margin-right: auto; }
  .beta-form input, .beta-form textarea { width: 100%; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--hairline-2); background: rgba(255,244,230,0.03); color: var(--text); font-family: var(--ff-body); font-size: 0.9375rem; outline: none; transition: border-color 0.2s; }
  .beta-form input:focus, .beta-form textarea:focus { border-color: rgba(255,107,43,0.5); }
  .beta-form input::placeholder, .beta-form textarea::placeholder { color: var(--dim); }
  .beta-form textarea { resize: vertical; min-height: 60px; }

  /* FOOTER */
  footer { border-top: 1px solid var(--hairline); padding: 56px 0 40px; margin-top: 80px; }
  .foot-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
  @media (min-width: 860px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; } }
  .foot-brand p { margin-top: 14px; font-size: 0.875rem; color: var(--muted); max-width: 340px; line-height: 1.65; }
  .foot-col h5 { font-family: var(--ff-mono); font-size: 0.7rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 16px; }
  .foot-col a { display: block; font-size: 0.875rem; color: var(--muted); padding: 6px 0; transition: color 0.15s; }
  .foot-col a:hover { color: var(--text); }
  .foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-family: var(--ff-mono); font-size: 0.7rem; color: var(--dim); letter-spacing: 0.06em; }

  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

  /* Definitional deck line (AEO entity sentence). Sits below hero-sub as a small subordinate caption. */
  .def-line {
    margin: 18px auto 0;
    font-size: 0.82rem;
    color: var(--dim);
    max-width: 520px;
    line-height: 1.55;
    letter-spacing: 0.01em;
  }

  /* COMPARE TABLE */
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--hairline); border-radius: 14px; background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%); }
  .compare-table { width: 100%; border-collapse: collapse; min-width: 720px; }
  .compare-table th, .compare-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--hairline); font-size: 0.9375rem; vertical-align: top; line-height: 1.4; }
  .compare-table thead th { font-family: var(--ff-body); font-weight: 500; color: var(--text); border-bottom: 1px solid var(--hairline-2); padding-top: 22px; padding-bottom: 22px; line-height: 1.35; }
  .compare-table thead th .th-sub { display: block; font-family: var(--ff-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--dim); text-transform: uppercase; margin-top: 6px; font-weight: normal; }
  .compare-table thead th.th-feature { color: var(--accent); }
  .compare-table thead th.th-feature .th-sub { color: var(--accent); opacity: 0.85; }
  .compare-table tbody th { font-weight: 500; color: var(--text); width: 22%; background: rgba(255,244,230,0.015); }
  .compare-table tbody td { color: var(--muted); }
  .compare-table tbody tr td:nth-child(3) { color: var(--text); background: linear-gradient(180deg, rgba(255,107,43,0.06), rgba(255,107,43,0.02)); }
  .compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }
  @media (max-width: 720px) {
    .compare-table th, .compare-table td { padding: 12px 14px; font-size: 0.875rem; }
  }

  /* STAT FIGURE — large display-font number used inside pain-card h3 on the
     #evidence section, so the metric reads as the headline figure. */
  .stat-fig {
    font-family: var(--ff-display);
    color: var(--accent);
    font-size: 1.55em;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-right: 6px;
  }

  /* EVIDENCE SECTION — coda paragraphs after the stat grid */
  .evidence-coda {
    text-align: center;
    max-width: 720px;
    margin: 36px auto 0;
    color: var(--muted);
    font-size: 1.0625rem;
    line-height: 1.7;
  }
  .evidence-coda strong { color: var(--text); font-weight: 500; }
  .evidence-coda em { font-style: italic; color: var(--text); }
  .evidence-coda a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.15s; }
  .evidence-coda a:hover { color: var(--accent-deep, var(--accent)); }
  .evidence-punch {
    text-align: center;
    max-width: 720px;
    margin: 28px auto 0;
    font-family: var(--ff-display);
    font-size: clamp(1.25rem, 2.4vw, 1.625rem);
    line-height: 1.35;
    color: var(--text);
  }

  /* LEGAL DOCUMENTS (terms, privacy) */
  /* Trim the section's top padding by ~60% so the title sits closer to the
     breadcrumb (default section top padding is clamp(64px, 9vw, 120px)). */
  section:has(.legal) { padding-top: clamp(26px, 3.6vw, 48px); }
  .legal { max-width: 760px; margin: 0 auto; }
  .legal-meta { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--dim); margin-top: 14px; line-height: 1.7; }
  .legal-intro { margin-top: 28px; font-size: 1.0625rem; line-height: 1.75; color: var(--muted); }
  .legal h2 { font-family: var(--ff-display); font-weight: 400; font-size: 1.5rem; letter-spacing: -0.01em; color: var(--text); margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--hairline); }
  .legal h3 { font-family: var(--ff-body); font-weight: 600; font-size: 1.0625rem; color: var(--text); margin-top: 28px; }
  .legal p { margin-top: 16px; font-size: 1rem; line-height: 1.75; color: var(--muted); }
  .legal p strong, .legal li strong { color: var(--text); font-weight: 600; }
  .legal ul { margin-top: 16px; padding-left: 22px; }
  .legal li { margin-top: 9px; font-size: 1rem; line-height: 1.7; color: var(--muted); }
  .legal li::marker { color: var(--accent); }
  .legal a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
  .legal .legal-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 20px; }
  .legal table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 520px; }
  .legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--hairline); vertical-align: top; line-height: 1.55; color: var(--muted); }
  .legal thead th { color: var(--text); font-weight: 500; border-bottom: 1px solid var(--hairline-2); }
  .legal-signoff { margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--hairline); font-size: 0.9375rem; line-height: 1.7; color: var(--dim); }
  .legal-signoff strong { color: var(--muted); }

  /* Footer legal links (sit beside the copyright in .foot-bottom) */
  .foot-legal { display: flex; flex-wrap: wrap; gap: 18px; }
  .foot-legal a { color: var(--dim); transition: color 0.15s; }
  .foot-legal a:hover { color: var(--muted); }

  /* ABOUT PAGE */
  .prose-narrow { max-width: 720px; margin: 36px auto 0; }
  .prose-narrow p { font-size: 1.0625rem; line-height: 1.7; color: var(--muted); }
  .prose-narrow p + p { margin-top: 18px; }
  .pull-quote {
    max-width: 760px; margin: 56px auto 0; padding: 36px 24px 0;
    text-align: center; border-top: 1px solid var(--hairline-2);
    font-family: var(--ff-display); color: var(--text);
  }
  .pull-quote p {
    font-size: clamp(1.5rem, 2.6vw, 1.875rem);
    line-height: 1.35; margin: 0;
  }
  .pull-quote p + p { margin-top: 4px; }
  .pull-quote em { font-style: italic; color: var(--accent); }
  .contact-actions {
    margin-top: 36px; display: flex; flex-direction: column;
    align-items: center; gap: 14px;
  }
  @media (min-width: 720px) {
    .contact-actions { flex-direction: row; justify-content: center; gap: 16px; }
  }
  .entity-line {
    margin: 64px auto 0; text-align: center;
    font-family: var(--ff-mono); font-size: 0.7rem;
    color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase;
  }

  /* ============================================================
     LIGHT MODE EXPERIMENT, token overrides + a few fixes for
     surfaces/shadows that don't translate via tokens alone.
     Wrap-and-revert: delete this whole block to remove.
     ============================================================ */
  @media (prefers-color-scheme: light) {
    :root {
      --bg:        #FAF6EF;
      --bg-2:      #F2EBE0;
      --panel:     #FFFFFF;
      --panel-2:   #F7F1E7;
      --hairline:  rgba(20,14,8,0.08);
      --hairline-2:rgba(20,14,8,0.14);
      --text:      #1A1410;
      --muted:     #4A3D32;
      --dim:       #6E5F50;
      --faint:     #9B8C7C;
      --accent:      #D94E14;
      --accent-deep: #B23F0E;
      --accent-soft: rgba(217,78,20,0.10);
      --accent-glow: rgba(217,78,20,0.18);
      --good: #2F8A4A;
      --warn: #B57418;
    }

    body {
      background-image:
        radial-gradient(900px 500px at 85% -5%, rgba(217,78,20,0.06), transparent 60%),
        radial-gradient(700px 400px at 12% 3%, rgba(217,78,20,0.04), transparent 60%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 60%);
    }

    .nav { background: rgba(250,246,239,0.78); }

    .band-light {
      background: rgba(20,14,8,0.025);
    }
    .band-panel {
      background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
    }

    /* Btn-primary keeps its orange gradient against the light bg, but
       the dark-on-orange text needs to lighten for AA contrast. */
    .btn-primary,
    .btn-primary:link,
    .btn-primary:visited,
    .btn-primary:hover,
    .btn-primary:active,
    .btn-primary:focus {
      background: linear-gradient(180deg, #E25A1F 0%, var(--accent) 55%, var(--accent-deep) 100%);
      color: #ffffff;
      border: 1px solid rgba(178,63,14,0.5);
      box-shadow: 0 10px 24px -8px rgba(217,78,20,0.35), inset 0 1px 0 rgba(255,255,255,0.18);
    }

    /* Soften the heavy dark drop-shadows used on hero/telegram screenshots. */
    .hero-proof img,
    .telegram-proof img {
      box-shadow: 0 24px 48px -20px rgba(20,14,8,0.18), 0 6px 14px -4px rgba(217,78,20,0.10);
    }

    /* Pulse animation halo against light bg */
    .h-node.active {
      box-shadow: 0 0 0 5px rgba(217,78,20,0.12), 0 0 14px rgba(217,78,20,0.25);
    }
    @keyframes flow-pulse {
      0%, 100% { box-shadow: 0 0 0 5px rgba(217,78,20,0.12), 0 0 14px rgba(217,78,20,0.25); }
      50%      { box-shadow: 0 0 0 8px rgba(217,78,20,0.04), 0 0 20px rgba(217,78,20,0.30); }
    }

    /* Sprint last-step "good" dot needs the light-mode green */
    .sprint-step:last-child .sprint-dot {
      box-shadow: 0 0 0 5px rgba(47,138,74,0.12), 0 0 12px rgba(47,138,74,0.18);
    }
    .h-node.done { box-shadow: 0 0 0 5px rgba(47,138,74,0.12), 0 0 12px rgba(47,138,74,0.18); }

    /* Artifact-example and freedom panels: code-block surfaces darken in dark mode;
       in light mode they should be off-white instead of the rgba(12,10,8,0.5) overlay. */
    .artifact-card .artifact-example,
    .transform-card .tc-example {
      background: rgba(20,14,8,0.04);
    }
    .model-item { background: rgba(255,255,255,0.6); }

    /* Compare table: lighter panel, swap dark accent column tint */
    .compare-table tbody th { background: rgba(20,14,8,0.025); }
    .compare-table tbody tr td:nth-child(3) { background: linear-gradient(180deg, rgba(217,78,20,0.06), rgba(217,78,20,0.02)); }
  }

  /* ============================================================
     MEET YOUR TEAM — ORG CHART
     ============================================================ */
  .org { display: flex; flex-direction: column; align-items: center; }
  .person { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .person .av {
    width: 68px; height: 68px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px; transition: transform 0.2s ease;
  }
  .person:hover .av { transform: translateY(-3px); }
  .person .av svg { width: 30px; height: 30px; }
  .person .nm {
    font-family: var(--ff-display); font-size: 0.72rem; font-weight: 500;
    margin-bottom: 3px; max-width: 120px; line-height: 1.3; color: var(--text);
  }
  .person .ds { font-size: 0.58rem; color: var(--muted); line-height: 1.35; max-width: 115px; }

  .av-boss { background: linear-gradient(145deg, #2c1a0a, #1a0f05); border: 2.5px solid var(--accent); box-shadow: 0 4px 20px rgba(255,107,43,0.12); }
  .av-bl { background: linear-gradient(145deg, #101c30, #0a1220); border: 2px solid rgba(96,165,250,0.30); }
  .av-or { background: linear-gradient(145deg, #261408, #180c04); border: 2px solid rgba(255,107,43,0.30); }
  .av-pu { background: linear-gradient(145deg, #180a2c, #100820); border: 2px solid rgba(192,132,252,0.30); }
  .av-am { background: linear-gradient(145deg, #261a08, #181004); border: 2px solid rgba(251,191,36,0.30); }
  .av-gr { background: linear-gradient(145deg, #0a2618, #081810); border: 2px solid rgba(74,222,128,0.30); }
  .av-re { background: linear-gradient(145deg, #260a0a, #180606); border: 2px solid rgba(248,113,113,0.30); }
  .av-cy { background: linear-gradient(145deg, #0a1e24, #081418); border: 2px solid rgba(34,211,238,0.30); }
  .av-pk { background: linear-gradient(145deg, #2a0a20, #1a0614); border: 2px solid rgba(244,114,182,0.30); }

  .c-or { color: var(--accent); }
  .c-bl { color: #60a5fa; }
  .c-pu { color: #c084fc; }
  .c-am { color: #fbbf24; }
  .c-gr { color: #4ade80; }
  .c-re { color: #f87171; }
  .c-cy { color: #22d3ee; }
  .c-pk { color: #f472b6; }

  .dept {
    padding: 10px 20px; border-radius: 10px;
    font-family: var(--ff-mono); font-size: 0.7rem;
    font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    text-align: center; display: inline-block;
  }
  .dept span {
    display: block; font-family: var(--ff-body); font-size: 0.62rem;
    font-weight: 400; letter-spacing: 0; text-transform: none;
    color: var(--muted); margin-top: 3px;
  }
  .dept-product { background: rgba(244,114,182,0.06); border: 1px solid rgba(244,114,182,0.15); color: #f472b6; }
  .dept-build { background: rgba(96,165,250,0.06); border: 1px solid rgba(96,165,250,0.15); color: #60a5fa; }
  .dept-bugfix { background: rgba(255,107,43,0.06); border: 1px solid rgba(255,107,43,0.15); color: var(--accent); }

  .grp-label {
    font-family: var(--ff-mono); font-size: 0.58rem; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint);
    margin: 18px 0 10px; text-align: center;
  }
  .role-group { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }

  .grid-3 {
    display: grid; grid-template-columns: 1fr 1.5fr 1.5fr;
    gap: 24px; width: 100%; align-items: start;
  }
  .grid-3 .col { display: flex; flex-direction: column; align-items: center; gap: 0; }
  .branch-svg { width: 100%; margin: 0 auto; overflow: visible; }
  .branch-svg line { stroke: var(--hairline-2); }

  .team-count {
    display: inline-block; padding: 5px 14px; border-radius: 8px;
    background: var(--panel); border: 1px solid var(--hairline);
    font-family: var(--ff-mono); font-size: 0.7rem; color: var(--muted);
    margin-bottom: 40px;
  }
  .team-count strong { color: var(--accent); }

  .team-tagline {
    text-align: center; margin-top: 48px; padding: 24px 28px;
    background: var(--panel); border: 1px solid var(--hairline); border-radius: 14px;
    max-width: 680px; margin-left: auto; margin-right: auto;
  }
  .team-tagline p {
    font-family: var(--ff-display); font-size: 1.0625rem; font-style: italic;
    color: var(--text); font-weight: 400; line-height: 1.4;
  }

  @media (max-width: 900px) {
    .grid-3 { grid-template-columns: 1fr; gap: 48px; }
    .branch-svg { display: none; }
  }

  @media (prefers-color-scheme: light) {
    .av-boss { background: linear-gradient(145deg, #fff3e8, #ffe8d4); box-shadow: 0 4px 16px rgba(217,78,20,0.12); }
    .av-bl { background: linear-gradient(145deg, #e8f0ff, #d4e4ff); }
    .av-or { background: linear-gradient(145deg, #fff0e8, #ffe4d4); }
    .av-pu { background: linear-gradient(145deg, #f0e8ff, #e4d4ff); }
    .av-am { background: linear-gradient(145deg, #fff8e8, #fff0d4); }
    .av-gr { background: linear-gradient(145deg, #e8fff0, #d4ffe4); }
    .av-re { background: linear-gradient(145deg, #ffe8e8, #ffd4d4); }
    .av-cy { background: linear-gradient(145deg, #e8fcff, #d4f8ff); }
    .av-pk { background: linear-gradient(145deg, #ffe8f4, #ffd4ec); }
    .c-bl { color: #2563eb; }
    .c-pu { color: #9333ea; }
    .c-am { color: #b45309; }
    .c-gr { color: #15803d; }
    .c-re { color: #dc2626; }
    .c-cy { color: #0891b2; }
    .c-pk { color: #db2777; }
    .dept-product { color: #db2777; }
    .dept-build { color: #2563eb; }
  }

  /* ============================================================
     BREADCRUMB (engine detail pages)
     ============================================================ */
  .breadcrumb { border-bottom: 1px solid var(--hairline); }
  .breadcrumb .container {
    display: flex; align-items: center; gap: 8px;
    padding-top: 12px; padding-bottom: 12px;
    font-family: var(--ff-mono); font-size: 0.7rem;
    letter-spacing: 0.06em; color: var(--dim);
  }
  .breadcrumb a { color: var(--muted); transition: color 0.15s ease; }
  .breadcrumb a:hover { color: var(--accent); }
  .breadcrumb .sep { color: var(--faint); }
  .breadcrumb .current { color: var(--text); }

  /* Nav CTA cluster — compact text link + compact primary button (smaller than hero/section primary).
     align-items: center so the login link and Sign up button sit at the same baseline as the nav links. */
  .nav-cta { align-items: center; }
  .nav-login {
    font-size: 0.875rem; color: var(--muted);
    padding: 6px 10px; line-height: 1.4;
    transition: color 0.15s ease;
  }
  .nav-login:hover { color: var(--text); }
  .nav-cta .btn {
    padding: 6px 14px; font-size: 0.875rem;
    line-height: 1.4; border-radius: 8px;
  }
  .nav-cta .btn-primary {
    box-shadow: 0 2px 6px -2px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.18);
  }
  .nav-cta .btn-primary:hover {
    box-shadow: 0 4px 12px -2px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25);
  }
  .nav-cta .btn .arrow { display: none; }

  /* ============================================================
     BLOG — index listing + article + inline diagrams
     Reuses the existing palette tokens so light mode adapts for
     free. The few dark code-surface overlays are overridden in the
     light block at the very bottom of this section.
     ============================================================ */

  /* --- Blog index listing --- */
  .blog-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
  .post-card {
    display: block; position: relative; padding: 28px 30px 26px;
    border: 1px solid var(--hairline); border-radius: 16px;
    background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
    transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  }
  .post-card::before {
    content: ""; position: absolute; left: 0; top: 28px; bottom: 26px; width: 2px;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(255,107,43,0.15) 100%);
    border-radius: 0 2px 2px 0;
  }
  .post-card:hover { transform: translateY(-2px); border-color: var(--hairline-2); box-shadow: 0 18px 40px -24px rgba(0,0,0,0.5); }
  .post-kicker { font-family: var(--ff-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .post-kicker .cat { color: var(--accent); }
  .post-kicker .dot { color: var(--faint); }
  .post-card h2 { margin-top: 14px; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.12; }
  .post-card .ex { margin-top: 13px; font-size: 1rem; line-height: 1.65; color: var(--muted); }
  .post-card .more { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 500; color: var(--accent); }
  .post-card .more .arrow { transition: transform 0.2s ease; }
  .post-card:hover .more .arrow { transform: translateX(3px); }

  /* --- Article shell --- */
  .post-header { max-width: 760px; margin: 0 auto; text-align: center; }
  .post-title { margin-top: 22px; font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.08; letter-spacing: -0.025em; }
  .post-meta { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--dim); }
  .post-meta .au { color: var(--muted); }
  .post-meta .dot { color: var(--faint); }
  .post-lead { max-width: 720px; margin: 30px auto 0; font-family: var(--ff-display); font-size: clamp(1.2rem, 2.3vw, 1.55rem); line-height: 1.4; color: var(--text); text-align: center; letter-spacing: -0.01em; }

  .post-body { max-width: 720px; margin: 52px auto 0; }
  .post-body > p { margin-top: 22px; font-size: 1.0625rem; line-height: 1.8; color: var(--muted); }
  .post-body > p:first-child { margin-top: 0; }
  .post-body strong { color: var(--text); font-weight: 600; }
  .post-body em { font-style: italic; color: var(--text); }
  .post-body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
  .post-body h2 {
    margin-top: 66px; padding-top: 38px; border-top: 1px solid var(--hairline);
    font-family: var(--ff-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.14;
    font-size: clamp(1.6rem, 3.1vw, 2.15rem); color: var(--text);
  }
  .post-body h2 + p { margin-top: 22px; }
  .post-body h3 { margin-top: 42px; font-family: var(--ff-body); font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.005em; color: var(--text); }
  .post-body h3 + p { margin-top: 12px; }
  /* a short, emphatic standalone line between paragraphs */
  .post-body .punch { margin-top: 22px; font-family: var(--ff-display); font-style: italic; font-size: 1.18rem; line-height: 1.45; color: var(--text); }
  .post-body ul { margin-top: 18px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .post-body ul li { position: relative; padding-left: 26px; font-size: 1.0625rem; line-height: 1.7; color: var(--muted); }
  .post-body ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

  /* Article pull-quote */
  .post-quote { margin: 50px 0; padding: 6px 0 6px 26px; border-left: 3px solid var(--accent); }
  .post-quote p { font-family: var(--ff-display); font-size: clamp(1.3rem, 2.5vw, 1.7rem); line-height: 1.35; color: var(--text); letter-spacing: -0.01em; }
  .post-quote p + p { margin-top: 6px; }
  .post-quote em { color: var(--accent); font-style: italic; }

  /* ============================================================
     INLINE DIAGRAMS (figures)
     ============================================================ */
  .figure { margin: 48px 0; }
  .figure-frame {
    position: relative; padding: 32px 28px; border: 1px solid var(--hairline); border-radius: 18px;
    background:
      radial-gradient(620px 320px at 85% 0%, var(--accent-soft), transparent 60%),
      linear-gradient(180deg, rgba(255,244,230,0.02) 0%, transparent 100%);
  }
  @media (max-width: 600px) { .figure-frame { padding: 24px 16px; } }
  .figure-label { font-family: var(--ff-mono); font-size: 0.66rem; color: var(--accent); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 26px; padding-left: 20px; position: relative; }
  .figure-label::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 13px; height: 1px; background: var(--accent); }
  .figure-cap { margin-top: 22px; font-family: var(--ff-display); font-style: italic; font-size: 0.98rem; line-height: 1.5; color: var(--muted); text-align: center; }

  /* shared diagram primitives */
  .dgm-verdict { margin-top: 16px; font-family: var(--ff-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 9px 12px; border-radius: 8px; display: flex; align-items: center; gap: 9px; line-height: 1.4; }
  .dgm-verdict::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
  .dgm-verdict.bad { color: var(--dim); background: rgba(255,244,230,0.02); border: 1px dashed var(--hairline-2); }
  .dgm-verdict.bad::before { background: var(--faint); }
  .dgm-verdict.good { color: var(--good); background: rgba(143,207,160,0.10); border: 1px solid rgba(143,207,160,0.25); }
  .dgm-verdict.good::before { background: var(--good); box-shadow: 0 0 8px rgba(143,207,160,0.5); }

  /* two-pane compare (bad vs good) */
  .dgm-split { display: grid; grid-template-columns: 1fr; gap: 16px; }
  @media (min-width: 660px) { .dgm-split { grid-template-columns: 1fr 1fr; gap: 18px; } }
  .dgm-pane { padding: 22px 20px; border-radius: 14px; display: flex; flex-direction: column; }
  .dgm-pane.bad { border: 1px dashed var(--hairline-2); background: rgba(255,244,230,0.015); }
  .dgm-pane.good { border: 1px solid rgba(255,107,43,0.30); background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 70%); }
  .dgm-pane-h { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-family: var(--ff-display); font-size: 1.08rem; color: var(--text); line-height: 1.2; }
  .dgm-pane.bad .dgm-pane-h { color: var(--muted); }
  .dgm-tag { font-family: var(--ff-mono); font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
  .dgm-pane.bad .dgm-tag { color: var(--dim); background: rgba(255,244,230,0.03); border: 1px solid var(--hairline); }
  .dgm-pane.good .dgm-tag { color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(255,107,43,0.3); }
  .dgm-chips { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
  .dgm-chip { font-size: 0.82rem; line-height: 1.45; color: var(--muted); padding: 9px 12px; border-radius: 8px; background: var(--code-surface); border: 1px solid var(--hairline); }
  .dgm-pane.bad .dgm-chip { opacity: 0.62; border-style: dashed; }
  .dgm-chip .k { display: block; font-family: var(--ff-mono); font-size: 0.56rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 3px; }
  .dgm-chip strong { color: var(--text); font-weight: 600; }
  .dgm-note { margin-top: 14px; font-size: 0.83rem; line-height: 1.6; color: var(--muted); }

  /* horizontal flow rows (handoff: relay vs assembly line) */
  .dgm-flow { padding: 20px; border-radius: 14px; border: 1px solid var(--hairline); background: rgba(255,244,230,0.015); }
  .dgm-flow + .dgm-flow { margin-top: 16px; }
  .dgm-flow-h { font-family: var(--ff-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
  .dgm-flow.good .dgm-flow-h { color: var(--accent); }
  .dgm-flow-h::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  .dgm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .dgm-arr { color: var(--faint); font-size: 0.9rem; }
  .dgm-flow.good .dgm-arr { color: var(--accent); }
  .dgm-bubble { font-size: 0.78rem; color: var(--muted); padding: 8px 14px; border-radius: 14px 14px 14px 4px; background: var(--code-surface); border: 1px dashed var(--hairline-2); }
  .dgm-bubble.f1 { opacity: 0.78; } .dgm-bubble.f2 { opacity: 0.56; } .dgm-bubble.f3 { opacity: 0.4; }
  .dgm-bubble.q { color: var(--dim); font-family: var(--ff-mono); }
  .dgm-part { font-size: 0.76rem; color: var(--text); padding: 9px 13px; border-radius: 8px; background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%); border: 1px solid rgba(255,107,43,0.28); display: flex; flex-direction: column; gap: 3px; }
  .dgm-part .pk { font-family: var(--ff-mono); font-size: 0.54rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

  /* three teams */
  .dgm-teams { display: grid; grid-template-columns: 1fr; gap: 12px; }
  @media (min-width: 720px) { .dgm-teams { grid-template-columns: 1fr 1fr 1fr; gap: 14px; align-items: stretch; } }
  .dgm-team { padding: 20px 18px; border-radius: 14px; border: 1px solid var(--hairline); background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%); display: flex; flex-direction: column; }
  .dgm-team p { margin-top: 14px; font-size: 0.86rem; line-height: 1.55; color: var(--muted); }
  .dgm-team p strong { color: var(--text); font-weight: 600; }
  .dgm-team .arts { margin-top: auto; padding-top: 14px; }
  .dgm-team .arts .al { font-family: var(--ff-mono); font-size: 0.56rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
  .dgm-team .arts .av { display: flex; flex-wrap: wrap; gap: 6px; }
  .dgm-team .arts .av span { font-family: var(--ff-mono); font-size: 0.62rem; color: var(--muted); padding: 4px 9px; border-radius: 6px; background: var(--code-surface); border: 1px solid var(--hairline); }
  .dgm-bandline { margin-top: 16px; display: flex; align-items: center; gap: 10px; font-family: var(--ff-mono); font-size: 0.64rem; letter-spacing: 0.04em; color: var(--dim); padding: 12px 14px; border-radius: 8px; background: rgba(255,107,43,0.04); border: 1px solid rgba(255,107,43,0.14); }
  .dgm-bandline .lab { color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }

  /* writer-reviewer pairs, gated by impact */
  .dgm-track { display: grid; grid-template-columns: 1fr; gap: 12px; position: relative; }
  @media (min-width: 720px) { .dgm-track { grid-template-columns: repeat(4, 1fr); gap: 10px; } }
  .dgm-stage { padding: 16px 14px; border-radius: 12px; border: 1px solid var(--hairline); background: rgba(255,244,230,0.015); display: flex; flex-direction: column; gap: 12px; }
  .dgm-stage-h { font-family: var(--ff-display); font-size: 0.95rem; color: var(--text); }
  .dgm-stage-h .ph { display: block; font-family: var(--ff-mono); font-size: 0.54rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
  .dgm-agents { display: flex; flex-direction: column; gap: 6px; }
  .dgm-ag { font-size: 0.72rem; padding: 7px 10px; border-radius: 7px; display: flex; align-items: center; gap: 7px; }
  .dgm-ag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
  .dgm-ag.w { color: var(--text); background: var(--code-surface); border: 1px solid var(--hairline); }
  .dgm-ag.w::before { background: var(--muted); }
  .dgm-ag.r { color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(255,107,43,0.3); }
  .dgm-ag.r::before { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
  .dgm-stage-tag { margin-top: auto; font-family: var(--ff-mono); font-size: 0.56rem; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.4; padding: 7px 9px; border-radius: 6px; }
  .dgm-stage-tag.hi { color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(255,107,43,0.22); }
  .dgm-stage-tag.lo { color: var(--dim); background: rgba(255,244,230,0.02); border: 1px dashed var(--hairline-2); }
  .dgm-scale { margin-top: 16px; height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) 0%, rgba(255,107,43,0.5) 42%, var(--hairline-2) 75%, var(--hairline) 100%); }
  .dgm-scale-row { margin-top: 8px; display: flex; justify-content: space-between; font-family: var(--ff-mono); font-size: 0.56rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }

  /* human gates strip (controlled autonomy) */
  .dgm-gates { display: flex; flex-wrap: wrap; gap: 8px; }
  .dgm-gate { font-family: var(--ff-mono); font-size: 0.62rem; letter-spacing: 0.04em; padding: 8px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
  .dgm-gate.human { color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(255,107,43,0.35); }
  .dgm-gate.human::before { content: "◆"; font-size: 0.6rem; }
  .dgm-gate.auto { color: var(--dim); background: rgba(255,244,230,0.02); border: 1px dashed var(--hairline-2); }
  .dgm-gate.auto::before { content: "·"; }

  /* knowledge-base / memory compounds */
  .dgm-kb { display: grid; grid-template-columns: 1fr; gap: 14px; }
  @media (min-width: 680px) { .dgm-kb { grid-template-columns: 1.1fr auto 1fr; align-items: center; gap: 18px; } }
  .dgm-kb-feed { display: flex; flex-direction: column; gap: 8px; }
  .dgm-kb-feed span { font-size: 0.78rem; color: var(--muted); padding: 8px 12px; border-radius: 7px; background: var(--code-surface); border: 1px solid var(--hairline); }
  .dgm-kb-core { text-align: center; padding: 22px 18px; border-radius: 16px; border: 1px solid rgba(255,107,43,0.3); background: radial-gradient(circle at 50% 30%, var(--accent-soft), transparent 70%), linear-gradient(180deg, var(--panel), var(--panel-2)); }
  .dgm-kb-core .lab { font-family: var(--ff-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
  .dgm-kb-core .big { margin-top: 8px; font-family: var(--ff-display); font-size: 1.15rem; color: var(--text); line-height: 1.2; }
  .dgm-kb-arrow { display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1.1rem; }
  @media (max-width: 679px) { .dgm-kb-arrow { transform: rotate(90deg); } }
  .dgm-kb-out { display: flex; flex-direction: column; gap: 8px; }
  .dgm-kb-out span { font-size: 0.78rem; color: var(--text); padding: 8px 12px; border-radius: 7px; background: rgba(143,207,160,0.07); border: 1px solid rgba(143,207,160,0.22); }

  /* code-surface inset token: dark by default, overridden in light block below */
  .figure, .dgm-flow, .dgm-team, .dgm-stage, .dgm-kb { --code-surface: rgba(12,10,8,0.42); }

  @media (prefers-color-scheme: light) {
    .figure, .dgm-flow, .dgm-team, .dgm-stage, .dgm-kb { --code-surface: rgba(20,14,8,0.045); }
  }
