/* =====================================================================
   chainge / marketing site styles
   ---------------------------------------------------------------------
   Single source of truth for chainge.global and /worked-example.
   Extracted from inline <style> blocks on 2026-05-15.

   Includes:
     - Design tokens (warm paper / ink / moss accent)
     - Typography stack (Newsreader serif, IBM Plex Mono, Inter)
     - Layout primitives (shell, section, hero, profiles)
     - Worked example components (chain card, briefing card, citation chips)
     - Responsive rules (1100px tablet, 700px phone, 380px small phone)
     - Reduced-motion accessibility (prefers-reduced-motion: reduce)

   When editing:
     - Both index.html and worked-example.html link to this file
     - Push the file along with any HTML that depends on new classes
     - Pretty URLs on Netlify use absolute path /styles.css for safety
   ===================================================================== */

:root {
    --paper: #F4EFE6;
    --paper-2: #EBE5DA;
    --ink: #15130F;
    --ink-2: #2B2620;
    --mute: #847866;
    --line: #C9C2B6;
    --accent: #2D5C47;
    --accent-deep: #1F3F31;
    --gold: #B68A2C;
    --serif: "Newsreader", ui-serif, Georgia, serif;
    --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(21,19,15,0.025) 1px, transparent 1px);
    background-size: 3px 3px;
    z-index: 1;
    mix-blend-mode: multiply;
  }
  main, nav, footer { position: relative; z-index: 2; }
  a { color: var(--ink); text-decoration: none; }
  a:hover { color: var(--accent); }

  /* ============ JARGON TOOLTIP SYSTEM ============ */
  /*
    Any term wrapped in <span class="jargon" data-tip="..." tabindex="0">term</span>
    gets a dotted underline and shows a plain-language definition on hover/tap.

    Future: this is the foundation for a "language level" toggle. Same content,
    different surface text driven by a user preference. Out of scope for v0.2.
  */
  .jargon {
    border-bottom: 1px dotted var(--accent);
    cursor: help;
    position: relative;
    display: inline;
    color: inherit;
    outline: none;
  }
  .jargon:focus { background: rgba(45, 92, 71, 0.08); }
  .jargon::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--paper);
    padding: 10px 14px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: normal;
    text-transform: none;
    width: max-content;
    max-width: 280px;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease-out;
    z-index: 20;
    text-align: left;
    border: 1px solid var(--ink);
    box-shadow: 4px 4px 0 var(--accent);
  }
  .jargon::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--ink);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease-out;
    z-index: 20;
  }
  .jargon:hover::after, .jargon:hover::before,
  .jargon:focus::after, .jargon:focus::before {
    opacity: 1;
  }
  /* tooltip flips down at the top of the page to avoid clipping */
  .jargon.tip-down::after { bottom: auto; top: calc(100% + 10px); }
  .jargon.tip-down::before {
    bottom: auto;
    top: calc(100% + 4px);
    border-top-color: transparent;
    border-bottom-color: var(--ink);
  }

  /* ============ NAV ============ */
  .nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .nav-mark {
    font-family: var(--serif);
    font-size: 22px;
    letter-spacing: -0.02em;
    font-weight: 400;
  }
  .nav-mark .ch { font-style: italic; font-weight: 300; }
  .nav-mark .ng { font-weight: 500; }
  .nav-links {
    display: flex;
    gap: 28px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-2);
  }
  .nav-cta {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
  }
  .nav-cta:hover { color: var(--accent-deep); border-bottom-color: var(--accent-deep); }

  /* ============ ACCESSIBILITY HINT BAR ============ */
  .hint-bar {
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }
  .hint-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.04em;
    color: var(--mute);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .hint-bar-inner .hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .hint-bar-inner .hint::before {
    content: "";
    width: 14px;
    height: 1px;
    border-bottom: 1px dotted var(--accent);
    display: inline-block;
  }
  .hint-bar-inner .future {
    color: var(--mute);
    font-style: italic;
    font-family: var(--serif);
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0;
  }

  /* ============ SHELL ============ */
  .shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
  }

  /* ============ HERO ============ */
  .hero {
    padding: 48px 0 96px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 72px;
    align-items: center;
  }
  .hero-text { max-width: 540px; }
  .hero-eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .hero-eyebrow::before {
    content: "";
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2.8s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
  }
  .hero h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 68px;
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin: 0 0 28px;
  }
  .hero h1 em { font-style: italic; font-weight: 300; color: var(--accent); }
  .hero-lede {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.45;
    color: var(--ink-2);
    margin: 0 0 36px;
    max-width: 34ch;
  }
  .hero-undermark {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--mute);
    border-top: 1px solid var(--line);
    padding-top: 16px;
    max-width: 40ch;
    line-height: 1.6;
  }
  .hero-undermark .tag {
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  /* hero chain demo */
  .demo {
    position: relative;
  }
  .demo-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }
  .demo-tab {
    background: none;
    border: none;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mute);
    padding: 10px 16px 12px;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
  }
  .demo-tab:hover { color: var(--ink); }
  .demo-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
  }
  .demo-tab .tab-letter {
    color: var(--accent);
    margin-right: 6px;
    font-weight: 500;
  }
  .demo-tab .tab-letter::before { content: "0"; }
  .demo-stage {
    position: relative;
    background: var(--paper-2);
    border: 1px solid var(--line);
    padding: 28px 32px 24px;
    min-height: 460px;
  }
  .demo-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mute);
    margin-bottom: 16px;
    gap: 16px;
  }
  .demo-title {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.3;
    margin: 0 0 18px;
    max-width: 38ch;
    font-weight: 400;
  }
  .demo-title em { font-style: italic; color: var(--accent); }
  .demo-svg-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.5;
    margin-top: 4px;
  }
  .chain {
    position: absolute; inset: 0;
    display: none;
  }
  .chain.is-active { display: block; }
  .chain svg { width: 100%; height: 100%; overflow: visible; }

  /* chain svg primitives */
  .c-line {
    fill: none;
    stroke: var(--ink);
    stroke-width: 0.9;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
  }
  .c-line.weak {
    stroke-dasharray: 3 4;
    stroke-width: 0.7;
    opacity: 0;
  }
  .c-line.active { stroke: var(--accent); stroke-width: 1.4; }
  .chain.is-active .c-line { animation: draw 1.8s cubic-bezier(.4,0,.2,1) forwards; }
  .chain.is-active .c-line.weak { animation: drawWeak 2s cubic-bezier(.4,0,.2,1) forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes drawWeak { to { opacity: 0.5; } }
  .c-node {
    fill: var(--paper-2);
    stroke: var(--ink);
    stroke-width: 1;
    opacity: 0;
  }
  .chain.is-active .c-node { animation: fadeIn 0.5s ease-out forwards; }
  .c-node.active { stroke: var(--accent); stroke-width: 1.6; }
  .c-node.terminal { fill: var(--accent); stroke: var(--accent); }
  .c-pulse {
    fill: var(--accent);
    opacity: 0;
    transform-origin: center;
    transform-box: fill-box;
  }
  .chain.is-active .c-pulse { animation: nodePulse 3s ease-out infinite; }
  @keyframes fadeIn { to { opacity: 1; } }
  @keyframes nodePulse {
    0% { opacity: 0.55; r: 6; }
    100% { opacity: 0; r: 20; }
  }
  .c-label {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    fill: var(--ink-2);
    opacity: 0;
  }
  .chain.is-active .c-label { animation: fadeIn 0.6s ease-out forwards; }
  .c-label.exposure { fill: var(--accent); }
  .c-hop {
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    fill: var(--mute);
    opacity: 0;
  }
  .chain.is-active .c-hop { animation: fadeIn 0.6s ease-out forwards; }
  .demo-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mute);
  }
  .demo-disclaimer {
    margin: 14px 4px 0;
    font-family: var(--serif);
    font-size: 13px;
    line-height: 1.5;
    color: var(--mute);
    font-style: italic;
    max-width: 56ch;
  }
  .demo-foot .verdict {
    color: var(--accent);
    font-weight: 500;
  }
  .demo-foot .verdict::before { content: "▲ "; }

  /* ============ SECTION SHARED ============ */
  .section {
    padding: 96px 0;
    border-top: 1px solid var(--line);
  }
  .section-mark {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mute);
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    align-items: center;
  }
  .section-mark::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
  }
  .section h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 52px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 32px;
    max-width: 22ch;
  }
  .section h2 em { font-style: italic; font-weight: 300; color: var(--accent); }
  .section-lede {
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.5;
    color: var(--ink-2);
    max-width: 60ch;
    margin: 0 0 56px;
  }

  /* ============ THESIS ============ */
  .thesis {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 72px;
  }
  .thesis-quote {
    font-family: var(--serif);
    font-size: 36px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 32px;
    padding-left: 24px;
    border-left: 2px solid var(--accent);
    max-width: 22ch;
  }
  .thesis-quote em { font-style: italic; font-weight: 300; }
  .thesis-body p {
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.6;
    margin: 0 0 18px;
    color: var(--ink-2);
  }
  .thesis-cite {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--mute);
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .thesis-cite em { color: var(--ink-2); font-family: var(--serif); font-style: italic; font-size: 14px; }
  .thesis-svg {
    aspect-ratio: 1 / 0.95;
    width: 100%;
  }

  /* ============ HOW IT WORKS ============ */
  .pipeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
  }
  .stage {
    border: 1px solid var(--line);
    background: var(--paper-2);
    padding: 24px 22px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .stage::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -16px;
    width: 12px;
    height: 1px;
    background: var(--ink);
  }
  .stage::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -19px;
    width: 0; height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid var(--ink);
    transform: translateY(-50%);
  }
  .stage:last-child::before, .stage:last-child::after { display: none; }
  .stage-num {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
  }
  .stage h3 {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.2;
    margin: 0;
    font-weight: 400;
    letter-spacing: -0.01em;
  }
  .stage p {
    font-family: var(--serif);
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--ink-2);
    margin: 0;
  }
  .stage-meta {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mute);
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
  }

  /* ============ THE LOOP ============ */
  .pipeline-loop {
    margin: 0 0 48px;
    padding: 24px 28px;
    background: var(--paper-2);
    border-left: 3px solid var(--accent);
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 28px;
    align-items: center;
  }
  .loop-mark {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .loop-icon {
    font-size: 36px;
    color: var(--accent);
    line-height: 1;
    font-weight: 300;
    display: inline-block;
    animation: loopSpin 8s linear infinite;
    transform-origin: center;
  }
  @keyframes loopSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  .loop-eyebrow {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    white-space: nowrap;
  }
  .loop-text {
    font-family: var(--serif);
    font-size: 16.5px;
    line-height: 1.55;
    color: var(--ink-2);
    margin: 0;
    max-width: 80ch;
  }
  .loop-text em {
    font-style: italic;
    color: var(--ink);
    font-weight: 500;
  }
  @media (max-width: 1100px) {
    .pipeline-loop { grid-template-columns: 1fr; gap: 14px; }
    .loop-mark { flex-direction: row; align-items: center; gap: 14px; }
  }

  .credibility-strip {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
    padding: 32px 36px;
    border: 1px solid var(--ink);
    background: var(--paper-2);
    box-shadow: 6px 6px 0 var(--ink);
  }
  .credibility-strip h3 {
    font-family: var(--serif);
    font-size: 24px;
    line-height: 1.2;
    margin: 0 0 14px;
    font-weight: 400;
    letter-spacing: -0.01em;
  }
  .credibility-strip h3 em { font-style: italic; color: var(--accent); }
  .credibility-strip p {
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink-2);
    margin: 0;
  }
  .credibility-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .credibility-stat {
    border-left: 2px solid var(--accent);
    padding-left: 14px;
  }
  .credibility-stat .num {
    font-family: var(--mono);
    font-size: 22px;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    line-height: 1;
  }
  .credibility-stat .label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mute);
    margin-top: 6px;
  }

  /* ============ RECENT BRIEFINGS LIST (track record companion) ============ */
  .recent-list {
    margin: 32px 0 0;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    max-width: 80ch;
  }
  .recent-list-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mute);
    margin-bottom: 16px;
  }
  .recent-row {
    font-family: var(--serif);
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--ink-2);
    margin: 0 0 14px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: baseline;
  }
  .recent-row:last-child {
    margin-bottom: 0;
  }
  .recent-week {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    color: var(--mute);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 130px;
  }
  .recent-body {
    flex: 1;
    min-width: 0;
  }
  .recent-body a {
    color: var(--accent);
    text-decoration: none;
    font-family: var(--mono);
    margin-left: 4px;
  }
  .recent-body a:hover {
    text-decoration: underline;
  }

  /* ============ PROFILES ============ */
  .profiles {
    display: flex;
    flex-direction: column;
    gap: 36px;
  }
  .profile {
    background: var(--paper-2);
    border: 1px solid var(--line);
    padding: 0;
    display: grid;
    grid-template-columns: 280px 1fr;
  }
  .profile-meta {
    padding: 32px 32px 28px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--paper);
  }
  .profile-meta-bottom {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px dashed var(--line);
  }
  .profile-content {
    padding: 32px 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .profile-chain {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .profile-chain::before {
    content: "";
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
  }
  .profile-name {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0;
  }
  .profile-role {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--mute);
    line-height: 1.5;
  }
  .profile-outcome {
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.4;
    color: var(--accent);
    margin: 0;
    font-style: italic;
  }
  .profile-outcome::before {
    content: "→ ";
    font-style: normal;
    margin-right: 4px;
  }
  .profile-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .profile-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mute);
  }
  .profile-text {
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.5;
    color: var(--ink-2);
    margin: 0;
    max-width: 64ch;
  }
  .profile-text em { font-style: italic; color: var(--ink); }

  /* ============ HORIZONTAL TIMELINE ============ */
  .timeline {
    margin-top: 8px;
  }
  .timeline-headline {
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.5;
    color: var(--ink);
    margin: 14px 0 18px;
    padding: 16px 18px;
    background: var(--paper);
    border-left: 3px solid var(--accent);
    max-width: 68ch;
  }
  .timeline-headline strong {
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
  }
  .timeline-headline em {
    font-style: italic;
    color: var(--accent);
    font-weight: 500;
  }
  .timeline-spine {
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink-2);
    margin: 12px 0 36px;
    max-width: 64ch;
  }
  .timeline-spine em {
    font-style: italic;
    color: var(--accent);
    font-weight: 500;
  }
  .timeline-spine .ifclause {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-right: 4px;
  }
  .timeline-track {
    position: relative;
    padding: 12px 0 0;
  }
  .timeline-line {
    position: absolute;
    top: 36px;
    left: 10%;
    right: 10%;
    height: 1.4px;
    background: var(--accent);
    z-index: 1;
    transform: scaleX(0);
    transform-origin: left center;
  }
  .timeline-track.in-view .timeline-line {
    animation: drawLine 1.5s cubic-bezier(.4,0,.2,1) 0.1s forwards;
  }
  @keyframes drawLine {
    to { transform: scaleX(1); }
  }
  .timeline-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: relative;
    z-index: 2;
    align-items: start;
  }
  .t-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 6px;
    position: relative;
  }
  /* connector phrase on the line between this step and the next */
  .t-step[data-connector]::after {
    content: attr(data-connector);
    position: absolute;
    top: 36px;
    right: 0;
    transform: translate(50%, -50%);
    background: var(--paper-2);
    padding: 2px 10px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 11.5px;
    line-height: 1;
    color: var(--mute);
    white-space: nowrap;
    z-index: 4;
    opacity: 0;
  }
  .timeline-track.in-view .t-step[data-connector]::after {
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: 1.8s;
  }
  .t-eyebrow {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mute);
    margin: 0 0 8px;
    opacity: 0;
    order: 1;
  }
  .t-step.terminal .t-eyebrow { color: var(--accent); font-weight: 500; }
  .t-node-row {
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 16px;
    position: relative;
    z-index: 3;
    order: 2;
  }
  .t-label {
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 10px;
    color: var(--ink);
    opacity: 0;
    order: 3;
  }
  .t-step.terminal .t-label { color: var(--accent); font-style: italic; }
  .t-node {
    width: 12px; height: 12px;
    background: var(--paper-2);
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    opacity: 0;
    position: relative;
    z-index: 3;
  }
  .t-step.first .t-node { background: var(--ink); }
  .t-step.terminal .t-node {
    background: var(--accent);
    border-color: var(--accent);
    width: 14px; height: 14px;
    box-shadow: 0 0 0 3px var(--paper-2), 0 0 0 4px var(--accent);
  }
  .t-pulse {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 14px; height: 14px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
  }
  .timeline-track.in-view .t-step.terminal .t-pulse {
    animation: tlPulse 2.8s ease-out infinite;
    animation-delay: 2.5s;
  }
  @keyframes tlPulse {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(3); }
  }
  .t-explain {
    font-family: var(--serif);
    font-size: 13px;
    line-height: 1.4;
    color: var(--mute);
    font-style: italic;
    margin: 0;
    max-width: 22ch;
    opacity: 0;
    order: 4;
  }
  .t-step.terminal .t-explain { color: var(--ink-2); font-style: normal; }
  .timeline-track.in-view .t-eyebrow {
    animation: fadeIn 0.5s ease-out forwards;
  }
  .timeline-track.in-view .t-label {
    animation: fadeIn 0.6s ease-out forwards;
  }
  .timeline-track.in-view .t-node {
    animation: fadeIn 0.5s ease-out forwards;
  }
  .timeline-track.in-view .t-explain {
    animation: fadeIn 0.6s ease-out forwards;
  }
  .timeline-track.in-view .t-step:nth-child(1) .t-eyebrow { animation-delay: 0.2s; }
  .timeline-track.in-view .t-step:nth-child(1) .t-label { animation-delay: 0.3s; }
  .timeline-track.in-view .t-step:nth-child(1) .t-node { animation-delay: 0.3s; }
  .timeline-track.in-view .t-step:nth-child(1) .t-explain { animation-delay: 0.5s; }
  .timeline-track.in-view .t-step:nth-child(2) .t-eyebrow { animation-delay: 0.5s; }
  .timeline-track.in-view .t-step:nth-child(2) .t-label { animation-delay: 0.6s; }
  .timeline-track.in-view .t-step:nth-child(2) .t-node { animation-delay: 0.6s; }
  .timeline-track.in-view .t-step:nth-child(2) .t-explain { animation-delay: 0.8s; }
  .timeline-track.in-view .t-step:nth-child(3) .t-eyebrow { animation-delay: 0.8s; }
  .timeline-track.in-view .t-step:nth-child(3) .t-label { animation-delay: 0.9s; }
  .timeline-track.in-view .t-step:nth-child(3) .t-node { animation-delay: 0.9s; }
  .timeline-track.in-view .t-step:nth-child(3) .t-explain { animation-delay: 1.1s; }
  .timeline-track.in-view .t-step:nth-child(4) .t-eyebrow { animation-delay: 1.1s; }
  .timeline-track.in-view .t-step:nth-child(4) .t-label { animation-delay: 1.2s; }
  .timeline-track.in-view .t-step:nth-child(4) .t-node { animation-delay: 1.2s; }
  .timeline-track.in-view .t-step:nth-child(4) .t-explain { animation-delay: 1.4s; }
  .timeline-track.in-view .t-step:nth-child(5) .t-eyebrow { animation-delay: 1.4s; }
  .timeline-track.in-view .t-step:nth-child(5) .t-label { animation-delay: 1.5s; }
  .timeline-track.in-view .t-step:nth-child(5) .t-node { animation-delay: 1.5s; }
  .timeline-track.in-view .t-step:nth-child(5) .t-explain { animation-delay: 1.7s; }

  /* ============ FOUNDER ============ */
  .founder-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 56px;
    align-items: start;
  }
  .founder-photo-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .founder-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid var(--ink);
    display: block;
    background: var(--paper-2);
  }
  .founder-cap {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mute);
    line-height: 1.5;
  }
  .founder-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .founder-text {
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink-2);
    margin: 0;
    max-width: 64ch;
  }
  .founder-text em {
    font-style: italic;
    color: var(--accent);
    font-weight: 500;
  }
  .founder-text.punch {
    font-size: 22px;
    line-height: 1.35;
    color: var(--ink);
  }
  .founder-text.founder-team {
    padding-top: 20px;
    border-top: 1px dashed var(--line);
    font-size: 15.5px;
  }
  .founder-text.founder-team strong {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    display: inline;
    margin-right: 4px;
  }
  .founder-links {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    color: var(--mute);
    margin: 8px 0 0;
  }
  .founder-links a {
    color: var(--ink-2);
    border-bottom: 1px dotted var(--mute);
    padding-bottom: 1px;
  }
  .founder-links a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
  }

  /* ============ MOAT + CTA ============ */
  .closing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
  }
  .moat-list {
    list-style: none;
    margin: 0; padding: 0;
  }
  .moat-list li {
    padding: 24px 0;
    border-top: 1px solid var(--line);
  }
  .moat-list li:last-child {
    border-bottom: 1px solid var(--line);
  }
  .moat-list strong {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 500;
  }
  .moat-list p {
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink-2);
    margin: 0;
  }

  .cta-card {
    background: var(--ink);
    color: var(--paper);
    padding: 40px 40px 44px;
    border: 1px solid var(--ink);
    position: relative;
  }
  .cta-card .cta-eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .cta-card .cta-eyebrow::before {
    content: "";
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
  }
  .cta-card h3 {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
    color: var(--paper);
  }
  .cta-card h3 em { font-style: italic; color: var(--accent); }
  .cta-card p {
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.55;
    color: var(--paper-2);
    margin: 0 0 24px;
    opacity: 0.85;
  }
  /* tooltips inside the dark CTA card need to flip color */
  .cta-card .jargon { border-bottom-color: var(--accent); color: inherit; }
  .cta-card .jargon::after {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
    box-shadow: 4px 4px 0 var(--accent);
  }
  .cta-card .jargon::before { border-top-color: var(--paper); }
  .cta-button {
    display: inline-block;
    background: var(--accent);
    color: var(--paper);
    padding: 14px 28px;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
  }
  .cta-button:hover { background: var(--accent-deep); color: var(--paper); }
  .cta-email {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(244, 239, 230, 0.15);
  }
  .cta-email-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mute);
    margin-bottom: 12px;
  }
  .cta-email-form {
    display: flex;
    gap: 0;
  }
  .cta-email-form input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--mute);
    color: var(--paper);
    font-family: var(--serif);
    font-size: 16px;
    padding: 10px 0;
    outline: none;
  }
  .cta-email-form input::placeholder { color: var(--mute); font-style: italic; }
  .cta-email-form input:focus { border-bottom-color: var(--accent); }
  .cta-email-form button {
    background: transparent;
    border: none;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 16px;
    cursor: pointer;
  }
  .cta-email-form button:hover { color: var(--paper); }
  .cta-email-privacy {
    margin: 16px 0 0;
    font-family: var(--serif);
    font-size: 12.5px;
    line-height: 1.5;
    font-style: italic;
    color: var(--mute);
  }
  .cta-email-privacy a {
    color: var(--paper-2);
    border-bottom: 1px dotted var(--mute);
    padding-bottom: 1px;
    font-style: normal;
    text-decoration: none;
  }
  .cta-email-privacy a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
  }

  /* ============ WORKED EXAMPLE ============ */
  .worked-example {
    margin-top: 56px;
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 920px;
  }
  .we-block {
    border-top: 1px solid var(--line);
    padding-top: 32px;
  }
  .we-block:first-child {
    border-top: none;
    padding-top: 0;
  }
  .we-block-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 500;
  }
  .we-block-intro {
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink-2);
    margin: 0 0 16px;
    max-width: 68ch;
  }
  .we-block-headline {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
    max-width: 68ch;
    color: var(--ink);
  }
  .we-block-headline strong {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 500;
  }
  .we-block-headline em {
    font-style: italic;
    font-weight: 300;
    color: var(--accent);
  }
  .we-block-caption {
    font-family: var(--serif);
    font-size: 14px;
    line-height: 1.5;
    color: var(--mute);
    font-style: italic;
    margin: 12px 0 0;
  }
  .we-data {
    background: var(--paper-2);
    border: 1px solid var(--line);
    padding: 20px 24px;
    margin: 16px 0 0;
    overflow-x: auto;
  }
  .we-data code {
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--ink);
    white-space: pre;
    display: block;
    background: transparent;
    padding: 0;
  }
  .we-link {
    margin: 16px 0 0;
  }
  .we-link a {
    font-family: var(--serif);
    font-size: 14px;
    font-style: italic;
    color: var(--accent);
    border-bottom: 1px dotted var(--accent);
    padding-bottom: 1px;
  }
  .we-link a:hover {
    color: var(--accent-deep);
    border-bottom-style: solid;
  }
  .we-link-large a {
    font-size: 17px;
    font-style: normal;
  }

  /* chain card */
  .we-chain {
    margin-top: 24px;
    border: 1px solid var(--line);
    background: var(--paper);
  }
  .we-hop {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
  }
  .we-hop:last-child {
    border-bottom: none;
  }
  .we-hop.terminal {
    background: rgba(45, 92, 71, 0.05);
  }
  .we-hop-num {
    font-family: var(--mono);
    font-size: 28px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1;
    padding-top: 4px;
  }
  .we-hop.terminal .we-hop-num { color: var(--accent); }
  .we-hop-body { min-width: 0; }
  .we-hop-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }
  .we-hop-meta {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--mute);
    text-transform: uppercase;
    white-space: nowrap;
  }
  .we-hop-text {
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink-2);
    margin: 0;
  }

  /* citation chips */
  .we-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 8px 3px;
    border: 1px solid var(--line);
    background: var(--paper-2);
    color: var(--ink-2);
    white-space: nowrap;
  }
  .we-chip::before {
    content: "";
    width: 5px; height: 5px;
    background: var(--mute);
    border-radius: 50%;
    flex-shrink: 0;
  }
  .we-chip.primary::before { background: var(--accent); }
  .we-chip.model::before { background: var(--gold); }
  .we-chip.lens::before { background: var(--ink); }

  /* terminal callout */
  .we-terminal {
    margin-top: 24px;
    padding: 16px 20px;
    border-left: 3px solid var(--accent);
    background: rgba(45, 92, 71, 0.04);
  }
  .we-terminal p {
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink-2);
    margin: 0;
  }
  .we-terminal em {
    font-style: italic;
    color: var(--accent);
  }

  /* ============ WORKED EXAMPLE: BRIEFING CARD ============ */
  .we-briefing-card {
    background: var(--accent);
    color: var(--paper);
    padding: 32px 36px;
    margin: 48px 0 56px;
    border: 1px solid var(--accent);
    max-width: 920px;
  }
  .we-briefing-eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--paper-2);
    margin-bottom: 14px;
    opacity: 0.9;
  }
  .we-briefing-eyebrow-2 {
    margin-top: 28px;
    margin-bottom: 10px;
    color: var(--paper);
    opacity: 1;
  }
  .we-briefing-title {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
    color: var(--paper);
  }
  .we-briefing-plain {
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.5;
    font-style: italic;
    color: var(--paper);
    margin: 0;
    max-width: 64ch;
  }
  .we-briefing-quote {
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.6;
    color: var(--paper-2);
    margin: 0 0 24px;
    max-width: 70ch;
    opacity: 0.92;
  }
  .we-briefing-cta {
    display: inline-block;
    padding: 12px 24px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    transition: background 0.2s;
  }
  .we-briefing-cta:hover {
    background: var(--paper-2);
    color: var(--ink);
  }
  .we-briefing-card .jargon {
    border-bottom-color: var(--paper-2);
    color: inherit;
  }
  .we-briefing-card .jargon::after {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
    box-shadow: 4px 4px 0 var(--accent-deep);
  }

  /* hop plain-language subtitle */
  .we-hop-plain {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--ink);
    margin: 0 0 14px;
    font-style: italic;
    max-width: 62ch;
  }
  .we-hop.terminal .we-hop-plain {
    color: var(--accent);
  }

  /* footer of the worked example */
  .we-footer {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--ink);
  }
  .we-verdict {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .we-verdict::before {
    content: "▲";
    font-size: 9px;
  }
  .we-footer-meta {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--mute);
    margin: 0 0 20px;
  }

  /* ============ FOOTER ============ */
  .footer {
    margin-top: 80px;
    padding: 32px 48px 40px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    border-top: 1px solid var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mute);
  }
  .footer a:hover { color: var(--accent); }

  /* ============ HOW IT WORKS · USER FLOW (3-step journey) ============ */
  .userflow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px;
    margin: 8px 0 56px;
    position: relative;
  }
  .userflow-step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 8px 4px 0;
  }
  .userflow-step::after {
    content: "→";
    position: absolute;
    top: 38px;
    right: -36px;
    font-family: var(--serif);
    font-size: 28px;
    color: var(--accent);
    line-height: 1;
    font-weight: 300;
  }
  .userflow-step:last-child::after { display: none; }
  .userflow-num {
    font-family: var(--serif);
    font-size: 84px;
    font-weight: 300;
    line-height: 0.95;
    color: var(--ink);
    letter-spacing: -0.02em;
    font-feature-settings: "lnum" 1;
  }
  .userflow-eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-top: -4px;
  }
  .userflow-step h3 {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.25;
    margin: 0;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--ink);
  }
  .userflow-step p {
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-2);
    margin: 0;
  }
  .userflow-meta {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mute);
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
  }

  /* ============ HOW IT WORKS · DATA SOURCES LIST ============ */
  .data-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .data-list li {
    padding: 22px 0;
    border-top: 1px solid var(--line);
  }
  .data-list li:last-child {
    border-bottom: 1px solid var(--line);
  }
  .data-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }
  .data-name {
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.25;
    color: var(--ink);
    font-weight: 500;
    letter-spacing: -0.005em;
  }
  .data-tag {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 3px 8px 2px;
    border-radius: 2px;
    white-space: nowrap;
  }
  .data-list p {
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-2);
    margin: 0;
    max-width: 80ch;
  }
  .data-footer {
    font-family: var(--serif);
    font-style: italic;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-2);
    margin: 24px 0 0;
    max-width: 80ch;
  }

  /* ============ RESPONSIVE ============ */
  @media (max-width: 1100px) {
    .hero { grid-template-columns: 1fr; gap: 48px; }
    .hero h1 { font-size: 52px; }
    .thesis { grid-template-columns: 1fr; gap: 40px; }
    .pipeline { grid-template-columns: repeat(2, 1fr); }
    .stage::before, .stage::after { display: none; }
    .userflow { gap: 36px; }
    .userflow-step::after { display: none; }
    .userflow-num { font-size: 72px; }
    .credibility-strip { grid-template-columns: 1fr; gap: 24px; }
    .profile { grid-template-columns: 1fr; }
    .profile-meta { border-right: none; border-bottom: 1px solid var(--line); }
    .closing { grid-template-columns: 1fr; gap: 40px; }
    .founder-grid { grid-template-columns: 1fr; gap: 32px; }
    .founder-photo-wrap { max-width: 260px; }
  }
  @media (max-width: 700px) {
    /* nav: keep links visible on mobile */
    .nav { padding: 14px 16px; flex-wrap: wrap; gap: 10px; }
    .nav-mark { font-size: 18px; }
    .nav-links { display: flex; gap: 14px; font-size: 10.5px; flex-wrap: wrap; }
    .nav-cta { font-size: 11px; }

    /* layout */
    .hint-bar-inner { padding: 0 20px; flex-direction: column; gap: 6px; }
    .shell { padding: 0 20px; }
    .hero { padding: 32px 0 56px; }
    .hero h1 { font-size: 40px; }
    .section { padding: 48px 0; }
    .section h2 { font-size: 28px; }
    .thesis-quote { font-size: 24px; }
    .pipeline { grid-template-columns: 1fr; }
    .userflow { grid-template-columns: 1fr; gap: 32px; }
    .userflow-num { font-size: 64px; }
    .userflow-step h3 { font-size: 20px; }
    .userflow-step p { font-size: 15.5px; }
    .data-name { font-size: 17px; }
    .data-list p { font-size: 14.5px; }
    .demo-tabs { overflow-x: auto; }
    .demo-tab { white-space: nowrap; }

    /* profile timelines */
    .timeline-steps { grid-template-columns: 1fr; gap: 24px; }
    .timeline-line { display: none; }
    .t-step[data-connector]::after { display: none; }
    .t-step { text-align: left; align-items: flex-start; padding: 16px 0 16px 24px; border-left: 1px solid var(--line); position: relative; }
    .t-step.first { border-left-color: var(--ink); }
    .t-step.terminal { border-left-color: var(--accent); }
    .t-node-row { position: absolute; left: -7px; top: 50%; margin: 0; transform: translateY(-50%); }
    .t-label { min-height: 0; margin-bottom: 8px; }
    .t-explain { max-width: 100%; }

    /* worked example: side-by-side compact */
    .worked-example { gap: 32px; }
    .we-block { padding-top: 24px; }
    .we-block-label { font-size: 10px; }
    .we-block-intro { font-size: 15.5px; }
    .we-block-headline { font-size: 20px; line-height: 1.3; }
    .we-block-headline strong { font-size: 10.5px; }
    .we-block-caption { font-size: 13px; }

    .we-data { padding: 14px 14px; }
    .we-data code { font-size: 10.5px; line-height: 1.55; }

    .we-link a { font-size: 13.5px; }
    .we-link-large a { font-size: 15px; }

    .we-hop { grid-template-columns: 36px 1fr; gap: 14px; padding: 16px 14px; }
    .we-hop-num { font-size: 18px; padding-top: 2px; }
    .we-hop-body { min-width: 0; }
    .we-hop-text { font-size: 14.5px; line-height: 1.5; }
    .we-hop-plain { font-size: 15px; margin-bottom: 10px; }
    .we-hop-meta { font-size: 9.5px; }
    .we-chip { font-size: 9.5px; padding: 3px 7px 2px; }
    .we-hop-row { gap: 8px; margin-bottom: 8px; }

    .we-terminal { padding: 14px 16px; }
    .we-terminal p { font-size: 14.5px; }

    .we-footer { margin-top: 32px; padding-top: 24px; }
    .we-verdict { font-size: 10px; }
    .we-footer-meta { font-size: 10px; }

    /* briefing card */
    .we-briefing-card { padding: 22px 18px; margin: 24px 0 36px; }
    .we-briefing-eyebrow { font-size: 10px; }
    .we-briefing-title { font-size: 22px; line-height: 1.25; }
    .we-briefing-plain { font-size: 16px; line-height: 1.45; }
    .we-briefing-quote { font-size: 13px; line-height: 1.55; }
    .we-briefing-cta { padding: 11px 20px; font-size: 11px; }

    /* footer */
    .footer { padding: 24px 20px 32px; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 10px; }

    /* founder section */
    .founder-grid { grid-template-columns: 1fr; gap: 32px; }
    .founder-photo-wrap { max-width: 220px; }
  }
  @media (max-width: 380px) {
    .nav-links { font-size: 10px; gap: 10px; }
    .we-hop { grid-template-columns: 28px 1fr; gap: 10px; padding: 14px 12px; }
    .we-hop-num { font-size: 16px; }
    .we-hop-text { font-size: 14px; }
    .we-data code { font-size: 10px; }
    .we-briefing-title { font-size: 20px; }
    .we-briefing-quote { font-size: 12.5px; }
    .section h2 { font-size: 25px; }
  }

  /* ============ MOBILE CUT-OFF DEFENSE ============ */
  html, body { overflow-x: hidden; max-width: 100%; }
  main, .shell, section { max-width: 100%; box-sizing: border-box; }
  .worked-example, .we-block, .we-hop, .we-hop-body, .we-briefing-card { min-width: 0; }
  .we-data { max-width: 100%; box-sizing: border-box; }
  .we-hop-text,
  .we-hop-plain,
  .we-briefing-quote,
  .we-briefing-plain,
  .we-briefing-title,
  .we-block-headline,
  .we-block-intro,
  .we-block-caption,
  .we-terminal p,
  .section h2,
  .section-lede,
  .hero h1,
  p, h1, h2, h3, h4 {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  img { max-width: 100%; height: auto; }
  @media (max-width: 700px) {
    /* on mobile, let the JSON/diagnostic pre blocks wrap instead of forcing horizontal scroll */
    .we-data code {
      white-space: pre-wrap;
      overflow-wrap: anywhere;
      word-break: break-word;
    }
    /* tighten the briefing card so it actually fits */
    .we-briefing-card { max-width: 100%; }
    /* hop rows: prevent the 36px column + content from blowing out */
    .we-hop { max-width: 100%; }
    /* metadata + chips can wrap if needed */
    .we-hop-meta { white-space: normal; }
    /* on mobile, only keep the example-report link visible in the nav; other anchor links are unnecessary since the home page is scrollable */
    .nav-links a:not(.nav-link-primary) { display: none; }
    .nav-links { gap: 0; }
    /* hero demo-tabs can scroll horizontally without pushing the page wider */
    .demo, .demo-tabs, .demo-card { max-width: 100%; min-width: 0; box-sizing: border-box; }
  }

  /* ============ REDUCED MOTION ACCESSIBILITY ============ */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
