  /* ============================================================
     TOKENS
     ============================================================ */
  :root {
    --bg: oklch(1 0 0);
    --bg-alt: oklch(0.965 0.002 260);
    --bg-card: oklch(1 0 0);
    --ink: oklch(0.22 0.008 270);
    --ink-2: oklch(0.5 0.01 270);
    --ink-3: oklch(0.64 0.008 270);
    --rule: oklch(0.22 0.008 270 / 0.12);
    --rule-soft: oklch(0.22 0.008 270 / 0.06);
    --dark-bg: oklch(0.13 0.008 270);
    --dark-ink: oklch(0.96 0.002 260);
    --dark-ink-2: oklch(0.68 0.008 265);
    --dark-rule: oklch(0.96 0.002 260 / 0.12);
    --card-shadow: 0 1px 2px oklch(0.2 0.01 270 / 0.04), 0 16px 40px oklch(0.2 0.01 270 / 0.06);
    --sans: "Switzer", "Helvetica Neue", sans-serif;
    --mono: "JetBrains Mono", "SF Mono", monospace;
  }

  /* lens accents: one vivid color per reading of the work */
  html[data-lens="all"]    { --accent: oklch(0.56 0.21 258); --accent-2: oklch(0.72 0.14 215); }
  html[data-lens="ai"]     { --accent: oklch(0.5 0.25 285);  --accent-2: oklch(0.62 0.21 320); }
  html[data-lens="data"]   { --accent: oklch(0.58 0.16 162); --accent-2: oklch(0.72 0.13 200); }
  html[data-lens="ops"]    { --accent: oklch(0.64 0.19 42);  --accent-2: oklch(0.62 0.21 5);   }
  html[data-lens="builds"] { --accent: oklch(0.56 0.23 350); --accent-2: oklch(0.52 0.24 290); }

  [data-theme="dark"] {
    --bg: oklch(0.145 0.008 270);
    --bg-alt: oklch(0.185 0.008 270);
    --bg-card: oklch(0.21 0.009 270);
    --ink: oklch(0.95 0.002 260);
    --ink-2: oklch(0.67 0.008 265);
    --ink-3: oklch(0.54 0.008 265);
    --rule: oklch(0.95 0.002 260 / 0.13);
    --rule-soft: oklch(0.95 0.002 260 / 0.07);
    --dark-bg: oklch(0.1 0.007 270);
    --card-shadow: 0 1px 2px oklch(0 0 0 / 0.3), 0 16px 40px oklch(0 0 0 / 0.35);
  }
  [data-theme="dark"][data-lens="all"]    { --accent: oklch(0.66 0.19 252); --accent-2: oklch(0.78 0.13 210); }
  [data-theme="dark"][data-lens="ai"]     { --accent: oklch(0.64 0.21 290); --accent-2: oklch(0.72 0.18 325); }
  [data-theme="dark"][data-lens="data"]   { --accent: oklch(0.7 0.16 162);  --accent-2: oklch(0.78 0.12 200); }
  [data-theme="dark"][data-lens="ops"]    { --accent: oklch(0.72 0.17 45);  --accent-2: oklch(0.7 0.19 8);    }
  [data-theme="dark"][data-lens="builds"] { --accent: oklch(0.68 0.21 350); --accent-2: oklch(0.62 0.22 290); }

  /* ============================================================
     BASE
     ============================================================ */
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  html, body { overflow-x: clip; }

  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, color 0.4s ease;
  }

  ::selection { background: var(--accent); color: white; }
  a { color: inherit; }

  .wrap { width: min(1200px, 100% - clamp(2.5rem, 6vw, 6rem)); margin-inline: auto; }

  .mono {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-2);
  }
  .kicker {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    transition: color 0.5s ease;
  }
  .grad {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* ============================================================
     PROGRESS + HEADER
     ============================================================ */
  #progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    z-index: 120;
  }

  header {
    position: fixed;
    inset: 2px 0 auto 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg) 70%, transparent);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background-color 0.4s ease;
  }
  header.scrolled { border-bottom-color: var(--rule-soft); }

  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 0.95rem;
    gap: 1rem;
  }
  .nav-name {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    white-space: nowrap;
  }
  .nav-links { display: flex; align-items: center; gap: 1.6rem; }
  .nav-links a {
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink-2);
    transition: color 0.2s ease;
  }
  .nav-links a:hover { color: var(--ink); }
  .nav-meta { display: flex; align-items: center; gap: 0.6rem; }

  .pill {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    background: none;
    border: 1px solid var(--rule);
    border-radius: 100px;
    color: var(--ink);
    padding: 0.42rem 1rem;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  }
  .pill:hover { border-color: var(--accent); color: var(--accent); }
  .pill.solid {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
  }
  .pill.solid:hover { filter: brightness(1.08); color: white; }

  @media (max-width: 880px) {
    .nav-links { display: none; }
    .nav { gap: 0.6rem; }
    .pill { padding: 0.38rem 0.75rem; font-size: 0.74rem; }
  }

  /* ============================================================
     HERO
     ============================================================ */
  .hero {
    min-height: 100svh;
    position: relative;
    display: grid;
    align-content: center;
    padding-top: 7rem;
    padding-bottom: 9.5rem;
    overflow: clip;
  }
  #hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }
  .hero .wrap { position: relative; z-index: 1; }

  .hero h1 {
    font-weight: 700;
    font-size: clamp(2.7rem, 6.6vw, 5.6rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-top: 1.4rem;
    max-width: 18ch;
    text-wrap: balance;
  }
  .hero h1 .hl { color: var(--accent); transition: color 0.5s ease; }
  .hero h1 .w { display: inline-block; }

  .hero-row {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: end;
    margin-top: 2.4rem;
  }
  .hero-sub { color: var(--ink-2); font-size: 1.06rem; max-width: 36rem; }
  .hero-stat { text-align: left; }
  .hero-stat-num {
    font-weight: 800;
    font-size: clamp(3rem, 5.6vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
  }
  .hero-stat-label { margin-top: 0.7rem; font-size: 0.92rem; color: var(--ink-2); max-width: 20rem; }

  .hero .hero-foot {
    position: absolute;
    bottom: 2rem; left: 0; right: 0;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }
  .hero-foot .mono { font-size: 0.64rem; }

  @media (max-width: 820px) {
    .hero-row { grid-template-columns: 1fr; }
    .hero-foot { flex-direction: column; gap: 0.3rem; }
  }

  /* ============================================================
     SECTIONS
     ============================================================ */
  section { padding-block: clamp(5.5rem, 9vw, 9rem); position: relative; }
  .section-alt { background: var(--bg-alt); transition: background-color 0.4s ease; }

  .section-head { margin-bottom: clamp(2.8rem, 5vw, 4.5rem); }
  .section-head h2 {
    font-weight: 700;
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-top: 0.9rem;
    max-width: 24ch;
    text-wrap: balance;
  }
  .section-head .head-note { margin-top: 1rem; color: var(--ink-2); font-size: 0.95rem; max-width: 40rem; }

  /* ============================================================
     STAT BAND
     ============================================================ */
  .stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
  }
  .stat-cell {
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: clamp(1.4rem, 2.4vw, 2.2rem);
    min-height: 11rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.8rem;
    background: var(--bg);
    transition: background-color 0.4s ease;
  }
  .stat-num {
    font-weight: 800;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
  }
  .stat-num .unit { font-size: 0.46em; font-weight: 600; color: var(--ink-2); letter-spacing: -0.01em; }
  .stat-label { font-size: 0.86rem; line-height: 1.5; color: var(--ink-2); }
  .stat-cell.feature .stat-num {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  @media (max-width: 980px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 520px) { .stat-grid { grid-template-columns: 1fr; } }

  /* ============================================================
     CASES
     ============================================================ */
  #case-list { display: flex; flex-direction: column; }
  .case {
    border-top: 1px solid var(--rule);
    padding-block: clamp(3.5rem, 6vw, 5.5rem);
  }
  .case:first-child { border-top: none; padding-top: 0; }

  .case-head {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    margin-bottom: clamp(2rem, 4vw, 3.2rem);
  }
  .case-index { grid-column: 1 / 3; }
  .case-index .num {
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    transition: color 0.5s ease;
  }
  .case-index .client {
    margin-top: 0.55rem;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ink-3);
    line-height: 1.7;
  }
  .case-title-block { grid-column: 3 / 13; }
  .case-title-block h3 {
    font-weight: 700;
    font-size: clamp(1.8rem, 3.4vw, 2.9rem);
    letter-spacing: -0.035em;
    line-height: 1.06;
    text-wrap: balance;
  }
  .case-tagline { margin-top: 0.8rem; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--accent); transition: color 0.5s ease; }

  .case-body {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
  }
  .case-text { grid-column: 3 / 8; display: flex; flex-direction: column; gap: 1.5rem; }
  .case-aside { grid-column: 8 / 13; }

  .case-field .mono { display: block; margin-bottom: 0.4rem; font-size: 0.64rem; font-weight: 700; color: var(--accent); transition: color 0.5s ease; }
  .case-field p { color: var(--ink-2); font-size: 0.97rem; }
  .case-field p strong { color: var(--ink); font-weight: 600; }

  .stack-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.2rem; }
  .chip {
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.04em;
    color: var(--ink-2);
    background: var(--bg-alt);
    border-radius: 100px;
    padding: 0.32rem 0.75rem;
    white-space: nowrap;
    transition: background-color 0.4s ease;
  }
  .section-alt .chip, .artifact .chip { background: color-mix(in srgb, var(--ink) 6%, transparent); }

  .pull-quote {
    font-size: clamp(1.3rem, 2.1vw, 1.7rem);
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-wrap: balance;
    margin-top: 0.5rem;
  }
  .pull-quote::before {
    content: "\201C";
    display: block;
    font-size: 3rem;
    line-height: 0.6;
    margin-bottom: 0.7rem;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .pull-quote .attribution {
    display: block;
    margin-top: 0.9rem;
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
  }

  @media (max-width: 900px) {
    .case-index { grid-column: 1 / -1; display: flex; gap: 1.5rem; align-items: baseline; }
    .case-index .client { margin-top: 0; }
    .case-title-block, .case-text, .case-aside { grid-column: 1 / -1; }
  }

  /* ---------- artifacts ---------- */
  .artifact {
    background: var(--bg-card);
    border: 1px solid var(--rule-soft);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: clamp(1.5rem, 2.5vw, 2.2rem);
    transition: background-color 0.4s ease;
  }
  .artifact-caption {
    margin-top: 1rem;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ink-3);
    line-height: 1.8;
  }

  .tally { display: grid; grid-template-columns: repeat(10, 1fr); gap: 0.5rem; }
  .tally span {
    aspect-ratio: 1;
    border-radius: 6px;
    border: 1px solid var(--rule);
    transform: scale(0);
  }
  .tally span.shipped { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
  .no-motion .tally span, .tally.revealed span { transform: scale(1); }
  .tally-legend {
    display: flex; gap: 1.4rem; margin-top: 1.2rem;
    font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.07em;
    text-transform: uppercase; color: var(--ink-2);
  }
  .tally-legend i {
    display: inline-block; width: 0.66rem; height: 0.66rem;
    border-radius: 3px; margin-right: 0.4rem; vertical-align: -1px;
    border: 1px solid var(--rule);
  }
  .tally-legend .shipped-key i { background: var(--accent); border-color: transparent; }

  .doc-artifact .doc-head {
    display: flex; justify-content: space-between; align-items: baseline;
    border-bottom: 1px solid var(--rule); padding-bottom: 0.8rem; margin-bottom: 1.1rem;
  }
  .doc-title { font-family: var(--mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
  .doc-stamp {
    font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
    border-radius: 100px; padding: 0.18rem 0.55rem;
  }
  .doc-section { margin-bottom: 1.05rem; }
  .doc-section:last-child { margin-bottom: 0; }
  .doc-label {
    font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.5rem;
  }
  .redact { display: flex; flex-direction: column; gap: 0.42rem; }
  .redact b { display: block; height: 0.58rem; border-radius: 4px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
  .redact b:nth-child(2) { width: 92%; }
  .redact b:nth-child(3) { width: 64%; }

  .paper-card {
    background: var(--bg-card);
    border: 1px solid var(--rule-soft);
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    padding: clamp(1.8rem, 3vw, 2.6rem);
    transform: rotate(-1.2deg);
  }
  .paper-card .paper-line { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.35; font-weight: 600; letter-spacing: -0.02em; }
  .paper-card .paper-note {
    margin-top: 1.3rem; font-family: var(--mono); font-size: 0.62rem;
    letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3);
  }

  .chat { display: flex; flex-direction: column; gap: 0.75rem; min-height: 19rem; }
  .chat-msg {
    max-width: 88%;
    padding: 0.68rem 1rem;
    border-radius: 18px;
    font-size: 0.88rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .chat-msg.shown { opacity: 1; transform: translateY(0); }
  .chat-msg.bot { align-self: flex-start; background: var(--bg-alt); border-bottom-left-radius: 6px; }
  [data-theme="dark"] .chat-msg.bot { background: oklch(0.27 0.01 270); }
  .chat-msg.user {
    align-self: flex-end;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: white;
    border-bottom-right-radius: 6px;
  }
  .chat-replay {
    align-self: flex-start; margin-top: 0.3rem;
    font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
    background: none; border: none; color: var(--accent); cursor: pointer; padding: 0;
  }
  .chat-replay:hover { text-decoration: underline; }

  .threshold-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
  .threshold-readout {
    font-family: var(--mono); font-size: 0.74rem; font-weight: 700;
    letter-spacing: 0.06em; color: var(--accent); font-variant-numeric: tabular-nums;
  }
  .threshold-items { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.45rem; margin-bottom: 1.1rem; }
  .t-item {
    aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center;
    font-family: var(--mono); font-size: 0.58rem; font-weight: 500;
    font-variant-numeric: tabular-nums;
    border: 1px solid var(--rule); color: var(--ink-3);
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  }
  .t-item.auto { background: var(--accent); border-color: transparent; color: white; }
  input[type="range"].threshold-slider {
    width: 100%; appearance: none; -webkit-appearance: none;
    height: 3px; background: var(--rule); border-radius: 2px; outline: none; cursor: pointer;
  }
  input[type="range"].threshold-slider::-webkit-slider-thumb {
    appearance: none; -webkit-appearance: none;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--accent); border: 3px solid var(--bg-card);
    box-shadow: 0 1px 5px oklch(0 0 0 / 0.3);
  }
  input[type="range"].threshold-slider::-moz-range-thumb {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--accent); border: 3px solid var(--bg-card);
  }
  .threshold-counts {
    display: flex; justify-content: space-between; margin-top: 1rem;
    font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.09em;
    text-transform: uppercase; color: var(--ink-2); font-variant-numeric: tabular-nums;
  }
  .threshold-counts b { color: var(--accent); font-weight: 700; }

  .subcases {
    margin-top: clamp(3rem, 5vw, 4.5rem);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
  }
  .subcases-note { grid-column: 1 / 3; }
  .subcase-list { grid-column: 3 / 13; display: flex; flex-direction: column; }
  .subcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    padding-block: clamp(2rem, 3.5vw, 3rem);
    border-top: 1px solid var(--rule-soft);
    align-items: start;
  }
  .subcase:first-child { border-top: 1px solid var(--rule); }
  .subcase:nth-child(even) .subcase-copy { order: 2; }
  .subcase h4 { font-weight: 700; font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -0.025em; line-height: 1.12; margin-top: 0.5rem; }
  .subcase .sub-tag { margin-top: 0.45rem; color: var(--accent); font-weight: 600; font-size: 0.97rem; letter-spacing: -0.01em; transition: color 0.5s ease; }
  .subcase p.sub-body { margin-top: 0.9rem; color: var(--ink-2); font-size: 0.94rem; }
  .subcase .stack-row { margin-top: 1rem; }
  @media (max-width: 900px) {
    .subcases-note, .subcase-list { grid-column: 1 / -1; }
    .subcase { grid-template-columns: 1fr; }
    .subcase:nth-child(even) .subcase-copy { order: 0; }
  }

  .result-callout { border-top: 1px solid var(--rule); padding-top: 1.2rem; }
  .result-callout .big {
    font-weight: 800;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
  }
  .result-callout .big .accent { color: var(--accent); transition: color 0.5s ease; }
  .result-callout p { margin-top: 0.55rem; font-size: 0.9rem; color: var(--ink-2); }

  .rank-ladder { display: flex; flex-direction: column; gap: 0.5rem; }
  .rank-row { display: flex; align-items: center; gap: 1rem; }
  .rank-row .rk {
    font-family: var(--mono); font-size: 0.66rem; font-weight: 500;
    width: 3rem; color: var(--ink-3); font-variant-numeric: tabular-nums;
  }
  .rank-row .bar {
    height: 0.6rem; border-radius: 4px;
    background: color-mix(in srgb, var(--ink) 9%, transparent);
    transform-origin: 0 50%;
  }
  .rank-row.is-store .bar { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
  .rank-row.is-store .rk { color: var(--accent); font-weight: 700; }
  .rank-divider {
    font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.13em;
    text-transform: uppercase; color: var(--ink-3); padding-block: 0.45rem;
  }

  .ba { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
  .ba > div { padding: 1.3rem clamp(0.9rem, 2vw, 1.5rem) 1.3rem 0; }
  .ba > div + div { border-left: 1px solid var(--rule); padding-left: clamp(0.9rem, 2vw, 1.5rem); padding-right: 0; }
  .ba .doc-label { margin-bottom: 0.8rem; }
  .ba ul { list-style: none; }
  .ba li { font-size: 0.88rem; color: var(--ink-2); padding-block: 0.35rem; border-bottom: 1px solid var(--rule-soft); }
  .ba li:last-child { border-bottom: none; }
  .ba .after li { color: var(--ink); }
  .ba .after li::before {
    content: "";
    display: inline-block;
    width: 0.42rem; height: 0.42rem;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 0.55rem;
    vertical-align: 1px;
  }
  .ba .before li { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); }

  /* ============================================================
     DARK BANDS
     ============================================================ */
  .band { background: var(--dark-bg); color: var(--dark-ink); transition: background-color 0.4s ease; }
  .band .mono { color: var(--dark-ink-2); }

  .principles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--dark-rule);
    border-left: 1px solid var(--dark-rule);
  }
  .principle {
    border-right: 1px solid var(--dark-rule);
    border-bottom: 1px solid var(--dark-rule);
    padding: clamp(1.75rem, 3vw, 2.75rem);
    position: relative;
    overflow: hidden;
  }
  .principle .p-num {
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    background: linear-gradient(120deg, var(--accent-2), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .principle h3 { font-weight: 700; font-size: clamp(1.35rem, 2.2vw, 1.8rem); letter-spacing: -0.025em; line-height: 1.15; margin-top: 0.85rem; }
  .principle p { margin-top: 0.75rem; font-size: 0.92rem; color: var(--dark-ink-2); }
  @media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

  /* ============================================================
     BUILDS
     ============================================================ */
  .builds-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.2rem, 2vw, 1.8rem); }
  .build-card {
    background: var(--bg-card);
    border: 1px solid var(--rule-soft);
    border-radius: 22px;
    box-shadow: var(--card-shadow);
    padding: clamp(1.6rem, 2.6vw, 2.3rem);
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.4s ease;
  }
  .build-card:hover { transform: translateY(-5px); }
  .build-card.lg { grid-column: span 7; }
  .build-card.md { grid-column: span 5; }
  .build-card.sm { grid-column: span 4; }
  .build-card h3 { font-weight: 700; font-size: clamp(1.35rem, 2.2vw, 1.8rem); letter-spacing: -0.025em; line-height: 1.12; }
  .build-card p { color: var(--ink-2); font-size: 0.92rem; flex-grow: 1; }
  .build-card .badge {
    font-family: var(--mono); font-size: 0.58rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
    transition: color 0.5s ease;
  }
  @media (max-width: 900px) { .build-card.lg, .build-card.md, .build-card.sm { grid-column: 1 / -1; } }

  /* ============================================================
     SKILLS + CREDENTIALS
     ============================================================ */
  .skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); }
  .skill-col .doc-label { color: var(--accent); border-bottom: 1px solid var(--rule); padding-bottom: 0.7rem; margin-bottom: 1rem; font-weight: 700; }
  .skill-col ul { list-style: none; }
  .skill-col li { font-size: 0.92rem; color: var(--ink-2); padding-block: 0.45rem; border-bottom: 1px solid var(--rule-soft); line-height: 1.5; }
  .skill-col li strong { color: var(--ink); font-weight: 600; }
  .skill-col li:last-child { border-bottom: none; }
  @media (max-width: 860px) { .skills-grid { grid-template-columns: 1fr; } }

  .creds {
    margin-top: clamp(3.5rem, 6vw, 5rem);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    border-top: 1px solid var(--rule);
    padding-top: clamp(2rem, 3.5vw, 3rem);
  }
  .creds .creds-label { grid-column: 1 / 3; }
  .creds .creds-list { grid-column: 3 / 13; display: flex; flex-direction: column; }
  .cred {
    display: grid; grid-template-columns: 2fr 1.2fr; gap: 1.5rem;
    padding-block: 1.1rem; border-bottom: 1px solid var(--rule-soft); align-items: baseline;
  }
  .cred:last-child { border-bottom: none; }
  .cred .c-name { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
  .cred .c-detail { font-size: 0.87rem; color: var(--ink-2); }
  .cred .c-note { grid-column: 1 / -1; font-size: 0.87rem; color: var(--ink-2); margin-top: 0.2rem; }
  @media (max-width: 860px) {
    .creds .creds-label, .creds .creds-list { grid-column: 1 / -1; }
    .cred { grid-template-columns: 1fr; gap: 0.3rem; }
  }

  /* ============================================================
     ABOUT
     ============================================================ */
  .about-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
  .about-lede {
    grid-column: 1 / 9;
    font-size: clamp(1.45rem, 2.7vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.32;
    text-wrap: pretty;
  }
  .about-lede .hl {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .about-side { grid-column: 9 / 13; display: flex; flex-direction: column; gap: 1.3rem; }
  .about-side p { font-size: 0.92rem; color: var(--ink-2); }
  @media (max-width: 900px) { .about-lede, .about-side { grid-column: 1 / -1; } }

  /* ============================================================
     CONTACT
     ============================================================ */
  .contact { padding-bottom: 0; }
  .contact-inner { padding-block: clamp(5.5rem, 9vw, 9rem) clamp(4rem, 7vw, 6rem); }
  .contact h2 {
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -0.035em;
    line-height: 1.08;
    margin-top: 1.3rem;
    max-width: 26ch;
    text-wrap: balance;
  }
  .contact-mail {
    display: inline-block;
    font-weight: 800;
    font-size: clamp(1.8rem, 4.8vw, 4rem);
    letter-spacing: -0.04em;
    line-height: 1.1;
    text-decoration: none;
    margin-top: 2rem;
    word-break: break-word;
    background: linear-gradient(120deg, var(--accent-2), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: filter 0.25s ease;
  }
  .contact-mail:hover { filter: brightness(1.15); }
  .contact-sub { margin-top: 1.8rem; max-width: 32rem; color: var(--dark-ink-2); font-size: 0.96rem; }
  .footer-bar {
    border-top: 1px solid var(--dark-rule);
    padding-block: 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .footer-bar .mono { font-size: 0.6rem; }
  .footer-bar a { color: inherit; }

  /* ============================================================
     REVEALS
     ============================================================ */
  [data-reveal] { opacity: 0; transform: translateY(30px); }
  .no-motion [data-reveal] { opacity: 1; transform: none; }
  .hero h1 .w, .hero [data-hero] { opacity: 0; }
  .no-motion .hero h1 .w, .no-motion .hero [data-hero] { opacity: 1; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal], .hero h1 .w, .hero [data-hero] { opacity: 1 !important; transform: none !important; }
    .chat-msg { opacity: 1; transform: none; }
    .tally span { transform: scale(1); }
  }

  /* ============================================================
     THESIS / VENN
     ============================================================ */
  #thesis { padding-top: clamp(3.5rem, 6vw, 6rem); }
  .venn { max-width: 720px; margin: 0 auto; }
  .venn-svg { width: 100%; height: auto; display: block; overflow: visible; }
  .venn-svg text { font-family: var(--sans); }
  .venn-circle {
    fill: var(--accent); fill-opacity: 0.13;
    stroke: var(--accent); stroke-opacity: 0.5; stroke-width: 1.5;
  }
  .venn-lobe-label { fill: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: 0.04em; }
  .venn-center-label { fill: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
  .venn-center-dot { fill: var(--accent); }
  .venn-fail { fill: var(--ink-3); font-size: 14px; font-weight: 500; }
  .venn-leader { stroke: var(--ink-3); stroke-opacity: 0.55; stroke-width: 1; stroke-dasharray: 2 3; }
  .venn-marker { fill: var(--bg); stroke: var(--ink-3); stroke-width: 1.5; }

  .venn-legend {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 2.8rem);
    margin-top: clamp(2.5rem, 5vw, 4rem);
  }
  .venn-num { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--accent); }
  .venn-col h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; margin: 0.7rem 0 0.6rem; }
  .venn-col p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.62; }
  .venn-punch {
    margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; max-width: 720px;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 500;
    letter-spacing: -0.015em; line-height: 1.4;
  }
  .venn-punch .hl { color: var(--accent); }
  @media (max-width: 760px) {
    .venn-legend { grid-template-columns: 1fr; }
    .venn-svg .venn-fail { font-size: 16px; }
    .venn-svg .venn-center-label { font-size: 15px; }
  }
