
  :root {
    /* Fabrica-style palette — warm off-white, near-black, single accent */
    --bg: #ffffff;          /* page background */
    --bg-2: #F2EEE6;        /* slightly warmer panel */
    --ink: #111110;         /* near black */
    --ink-2: #2A2925;
    --muted: #6E6A60;
    --line: rgba(17,17,16,0.12);
    --line-2: rgba(17,17,16,0.06);
    --accent: #F94E52;      /* confetti coral — base accent */
    --paper: #F7F4EC;
    --noir: #0E0E0C;        /* dark panel */
    --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
  body {
    font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    position: relative;
  }

  /* ─── Felt texture ─────────────────────────────────────────────── */
  /* Fine fiber grain on the whole page */
  body::before {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: var(--felt-grain-opacity, 0.55);
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch' seed='7'/><feColorMatrix values='0 0 0 0 0.42  0 0 0 0 0.39  0 0 0 0 0.35  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 220px 220px;
  }
  /* Long, wispy fibers — broader, lower-frequency turbulence */
  body::after {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: var(--felt-fiber-opacity, 0.18);
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='f'><feTurbulence type='turbulence' baseFrequency='0.012 0.55' numOctaves='2' seed='12'/><feColorMatrix values='0 0 0 0 0.30  0 0 0 0 0.27  0 0 0 0 0.22  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23f)'/></svg>");
    background-size: 600px 600px;
  }
  body.dark::before { mix-blend-mode: screen; opacity: 0.35; }
  body.dark::after  { mix-blend-mode: screen; opacity: 0.12; }

  header.site, .wrap, main, footer.site, section, .tweaks-panel { position: relative; z-index: 2; }
  /* Cards / surfaces get their own felt fuzz */
  .felt-surface {
    position: relative;
    isolation: isolate;
  }
  .felt-surface::after {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0.4;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' seed='3'/><feColorMatrix values='0 0 0 0 0.38  0 0 0 0 0.34  0 0 0 0 0.28  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 180px 180px;
    z-index: 1;
  }
  .felt-surface > * { position: relative; z-index: 2; }
  /* Soft "felted edge" — slightly irregular outline like cut wool felt */
  .felt-edge {
    box-shadow:
      0 0 0 1px var(--line),
      0 1px 0 rgba(255,255,255,0.6) inset,
      0 14px 28px -18px rgba(70, 50, 30, 0.25);
  }
  a { color: inherit; text-decoration: none; }
  .mono { font-family: var(--font-mono); }

  /* Cursor */
  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-100px,-100px,0);
    will-change: transform;
    mix-blend-mode: difference;
  }
  .cursor-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #fff;
  }
  .cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 50%;
    transition: width .25s ease, height .25s ease, border-color .25s ease, background .25s ease;
  }
  .cursor-ring.is-hover {
    width: 64px; height: 64px;
    background: rgba(240,54,154,0.85);
    border-color: rgba(240,54,154,0);
  }
  @media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

  /* Type system */
  .display {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 0.95;
    font-variation-settings: "opsz" 96;
  }
  .display-xl { font-size: clamp(56px, 11vw, 188px); }
  .display-l  { font-size: clamp(44px, 8vw, 124px); }
  .display-m  { font-size: clamp(34px, 5.4vw, 84px); }
  .eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.02em;
  }
  .body-l { font-size: 20px; line-height: 1.4; color: var(--ink-2); text-wrap: pretty; }
  .body   { font-size: 16px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }

  /* Layout */
  .wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 32px; }
  .row { display: flex; }
  .col { display: flex; flex-direction: column; }
  hr.line { border: none; border-top: 1px solid var(--line); margin: 0; }

  /* Marquee */
  .marquee {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }
  .marquee__track {
    display: flex;
    flex: 0 0 auto;
    animation: marquee var(--dur, 40s) linear infinite;
    align-items: center;
    gap: 0.6em;
    padding-right: 0.6em;
  }
  .marquee:hover .marquee__track { animation-play-state: paused; }
  @keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }

  /* Buttons */
  .btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 26px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
    user-select: none;
    background: linear-gradient(90deg, #F94E52, #F0369A, #F86A47, #FBBE4A);
    color: #14100E;
    overflow: hidden;
    transition: opacity .2s ease, transform .2s ease;
    will-change: transform;
  }
  .btn::before {
    content: "";
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.15);
    opacity: 0;
    transition: opacity .2s ease;
    z-index: 0;
  }
  .btn:hover::before { opacity: 1; }
  header.site .btn { background: linear-gradient(90deg, #F94E52, #F0369A, #F86A47, #FBBE4A); color: #14100E; }
  .btn > * { position: relative; z-index: 1; }
  .btn-secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
  }
  .btn-secondary::before { background: var(--ink); opacity: 0; }
  .btn-secondary:hover::before { opacity: 1; }
  .btn-secondary:hover { color: var(--bg); }
  .btn .arrow { transition: transform .3s ease; display: inline-flex; }
  .btn:hover .arrow { transform: translate(2px,-2px); }

  /* Hero */
  .hero {
    position: relative;
    padding: 112px 0 32px;
    border-bottom: 1px solid var(--line);
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.32fr 0.88fr;
    gap: 56px;
    align-items: end;
    margin-top: 52px;
  }
  .hero .display-xl { font-size: clamp(52px, 9.4vw, 150px); }
  .hero-aside {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-bottom: 10px;
    border-left: 1px solid var(--line);
    padding-left: 40px;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 80px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .hero-stats .stat {
    padding: 30px 30px 30px 0;
    border-right: 1px solid var(--line);
  }
  .hero-stats .stat:last-child { border-right: none; padding-right: 0; }
  .hero-stats .stat .n {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-size: clamp(38px, 3.6vw, 56px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
  }
  .hero-stats .stat .n .accent { color: var(--accent); }
  .hero-stats .stat:nth-child(1) .n { color: #F94E52; }
  .hero-stats .stat:nth-child(2) .n { color: #F0369A; }
  .hero-stats .stat:nth-child(3) .n { color: #F86A47; }
  .hero-stats .stat:nth-child(4) .n .accent { color: #FBBE4A; }
  .hero-stats .stat .l {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 14px;
  }
  .hero-art {
    position: relative;
    aspect-ratio: 5/4;
    border-radius: 8px;
    overflow: hidden;
    background: var(--noir);
    border: 1px solid var(--line);
  }
  /* Craft-table idle motion */
  .ct-float { animation: ctFloat 6s ease-in-out infinite; }
  .ct-twinkle { animation: ctTwinkle 4s ease-in-out infinite; }
  @keyframes ctFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-8px) rotate(1.1deg); }
  }
  @keyframes ctTwinkle {
    0%, 100% { transform: scale(0.98); opacity: 0.7; }
    50%      { transform: scale(1.04); opacity: 1; }
  }
  @media (prefers-reduced-motion: reduce) {
    .ct-float, .ct-twinkle { animation: none; }
  }
  .hero-statement {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-weight: 400;
    font-size: clamp(23px, 2.1vw, 28px);
    line-height: 1.32;
    max-width: 30ch;
    color: var(--ink);
    letter-spacing: 0;
    text-wrap: balance;
  }

  /* Header */
  header.site {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid var(--line-2);
  }
  header.site::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, #F94E52, #F0369A, #F2437E, #F04D63, #F86A47, #F98A3C, #FB9A3E, #FBBE4A);
    opacity: 0.9;
  }
  header.site .wrap {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
  }
  .nav-links { display: flex; gap: 28px; align-items: center; }
  .nav-links a {
    font-size: 14px;
    color: var(--ink-2);
    position: relative;
    padding: 4px 0;
  }
  .nav-links a::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 100%; height: 1px; background: var(--ink);
    transform: scaleX(0); transform-origin: 0 50%;
    transition: transform .3s ease;
  }
  .nav-links a:hover::after { transform: scaleX(1); }
  .nav-links > a:nth-of-type(1)::after { background: #F94E52; }
  .nav-links > a:nth-of-type(2)::after { background: #F0369A; }
  .nav-links > a:nth-of-type(3)::after { background: #F2437E; }
  .nav-links > a:nth-of-type(4)::after { background: #F86A47; }
  .nav-links > a:nth-of-type(5)::after { background: #FBBE4A; }
  .nav-links > a:nth-of-type(1):hover { color: #F94E52; }
  .nav-links > a:nth-of-type(2):hover { color: #F0369A; }
  .nav-links > a:nth-of-type(3):hover { color: #F2437E; }
  .nav-links > a:nth-of-type(4):hover { color: #F86A47; }
  .nav-links > a:nth-of-type(5):hover { color: #FBBE4A; }
  .logo {
    display: inline-flex; align-items: center; gap: 4px;
    font-weight: 600; letter-spacing: -0.02em;
    font-size: 20px;
  }
  .logo .sup { font-size: 11px; vertical-align: super; opacity: 0.65; }

  /* Mobile menu */
  .nav-toggle {
    display: none;
    flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 0;
    background: none; border: none; cursor: pointer;
    position: relative; z-index: 220;
  }
  .nav-toggle span {
    display: block; width: 22px; height: 2px; margin: 0 auto;
    background: var(--ink); border-radius: 2px;
    transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .2s ease;
  }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  /* Mobile menu — show/hide via display so no compositing context is created.
     Grain layers are hidden on mobile entirely (invisible on small screens anyway)
     so mix-blend-mode can never bleed through the menu overlay. */
  @media (max-width: 600px) {
    body::before, body::after { display: none !important; }
  }

  .mobile-menu-backdrop {
    display: none;
    position: fixed; inset: 0; z-index: 9998;
    background: transparent;
  }
  .mobile-menu-backdrop.open { display: block; }
  .mobile-menu {
    display: none;
    position: fixed; top: 64px; left: 0; right: 0; z-index: 9999;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(14,14,12,0.10);
    flex-direction: column; padding: 20px 24px 24px;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu nav { display: flex; flex-direction: column; gap: 0; }
  .mobile-menu nav a {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--font-body); font-size: 17px; font-weight: 500;
    color: var(--ink); text-decoration: none; padding: 12px 0;
    border-bottom: 1px solid var(--line-2);
  }
  .mobile-menu nav a:last-of-type { border-bottom: none; }
  .mobile-menu nav a.btn {
    margin-top: 16px; border-bottom: none;
    font-size: 15px; color: var(--bg);
    justify-content: center;
  }

  /* Sections */
  section { position: relative; padding: 120px 0; border-bottom: 1px solid var(--line); }
  .section-head {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: end;
    margin-bottom: 64px;
  }
  .section-meta { display: flex; flex-direction: column; gap: 8px; }

  /* Materials grid (replaces 'projects/case studies' but for materials/skills) */
  .materials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 24px;
  }
  .mat-card {
    position: relative;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .25s ease, box-shadow .3s ease;
    cursor: pointer;
    box-shadow:
      0 1px 0 rgba(255,255,255,0.7) inset,
      0 16px 32px -22px rgba(70, 50, 30, 0.28);
  }
  .mat-card:hover { box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 24px 40px -22px rgba(70, 50, 30, 0.34); }
  .mat-card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    opacity: 0.45; mix-blend-mode: multiply; z-index: 1;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' seed='3'/><feColorMatrix values='0 0 0 0 0.38  0 0 0 0 0.34  0 0 0 0 0.28  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 180px 180px;
  }
  .mat-card > * { position: relative; z-index: 2; }
  .post {
    position: relative;
    box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 14px 30px -22px rgba(70,50,30,0.28);
  }
  .post::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    opacity: 0.4; mix-blend-mode: multiply; z-index: 1;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' seed='5'/><feColorMatrix values='0 0 0 0 0.38  0 0 0 0 0.34  0 0 0 0 0.28  0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 180px 180px;
  }
  .post > * { position: relative; z-index: 2; }
  /* Tape highlight — felted strip rather than crisp rect */
  .tape {
    position: relative;
    background: var(--accent);
    color: var(--bg);
    padding: 0.02em 0.22em;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 6px 14px -6px rgba(249,78,82,0.5);
  }
  .hero-statement .tape {
    background: linear-gradient(90deg, #F94E52, #F0369A, #F2437E, #F86A47, #FB9A3E, #FBBE4A);
    color: #14100E;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.05), 0 6px 16px -6px rgba(240,54,154,0.45);
  }
  #about .tape {
    background: linear-gradient(90deg, #F0369A, #F2437E, #F86A47, #FB9A3E);
    color: #14100E;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.05), 0 6px 16px -6px rgba(240,54,154,0.45);
  }
  /* Showcase felt panel */
  .showcase {
    box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 30px 60px -30px rgba(0,0,0,0.5);
  }
  .showcase::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    opacity: 0.5; mix-blend-mode: screen; z-index: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='2' stitchTiles='stitch' seed='9'/><feColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.16  0 0 0 0 0.13  0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 240px 240px;
  }
  .showcase > * { position: relative; z-index: 1; }
  /* Hero art felt rim */
  .hero-art, .canvas-mock {
    box-shadow:
      0 0 0 1px rgba(0,0,0,0.04),
      0 30px 60px -30px rgba(70, 50, 30, 0.45);
  }
  .mat-card:hover { border-color: rgba(17,17,16,0.4); }
  .mat-card .thumb {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--noir);
  }
  .mat-card .thumb canvas, .mat-card .thumb .gen {
    width: 100%; height: 100%; display: block;
  }
  .mat-card .meta {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px;
  }
  .mat-card .meta h3 {
    margin: 0;
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-size: 25px;
    font-weight: 500;
    letter-spacing: -0.01em;
  }
  .mat-card .meta .index {
    font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  }
  .mat-card .tags {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 0 22px 22px;
  }
  .tag {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-2);
  }

  /* Showcase / "case study" — featured large block */
  .showcase {
    background: var(--noir);
    color: var(--bg);
    border-radius: 16px;
    padding: 56px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: stretch;
    position: relative;
    overflow: hidden;
  }
  .showcase .eyebrow { color: rgba(237,233,225,0.55); }
  .showcase h3 {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-size: clamp(36px, 4.4vw, 64px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.02;
    margin: 0;
    color: var(--bg);
    text-wrap: balance;
  }
  .showcase .stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: auto;
  }
  .showcase .stat .num {
    font-size: 56px;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1;
  }
  .showcase .stat .num .accent { color: var(--accent); }
  .showcase .stat:nth-child(1) .num .accent { color: #F94E52; }
  .showcase .stat:nth-child(3) .num .accent { color: #FB9A3E; }
  .showcase .stat .lbl {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(237,233,225,0.6);
    margin-top: 8px;
  }

  /* Behavior canvas mock */
  .canvas-mock {
    position: relative;
    background: #16140F;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    min-height: 380px;
  }

  /* FAQ */
  .faq-list { border-top: 1px solid var(--line); }
  .faq-item {
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
    cursor: pointer;
  }
  .faq-q {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
  }
  .faq-q h4 {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-size: clamp(21px, 2vw, 29px);
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0;
  }
  .faq-toggle {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--bg);
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
    transition: background .25s ease, transform .35s cubic-bezier(.4,.0,.2,1);
  }
  .faq-item.open .faq-toggle { background: var(--accent); transform: rotate(45deg); }
  .faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s cubic-bezier(.2,.8,.2,1), margin .45s ease;
    color: var(--ink-2);
  }
  .faq-item.open .faq-a {
    max-height: 240px;
    margin-top: 16px;
  }
  .faq-a p {
    margin: 0;
    max-width: 70ch;
    font-size: 17px;
    line-height: 1.55;
  }

  /* Blog — horizontal rail */
  .blog-rail {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 4px;
    scroll-padding-left: 0;
  }
  .blog-rail::-webkit-scrollbar { display: none; }
  .blog-rail .post {
    flex: 0 0 clamp(280px, 28.5%, 400px);
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: 136px 1fr;
  }
  .blog-rail .post .post-img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 178px;
  }
  .blog-rail .post .post-body {
    padding: 18px 20px;
    gap: 9px;
    justify-content: center;
  }
  .blog-rail .post .post-body h4 { font-size: 20px; }
  .post-teaser {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-wrap: pretty;
  }
  .rail-nav { display: flex; gap: 8px; }
  .rail-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.55);
    color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
  }
  .rail-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .post {
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
  }
  .post:hover { border-color: rgba(17,17,16,0.35); }
  .post .post-img {
    aspect-ratio: 5/6;
    background: var(--noir);
    overflow: hidden;
  }
  .post .post-body {
    padding: 22px;
    display: flex; flex-direction: column; gap: 12px;
  }
  .post .post-body h4 {
    margin: 0;
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.16;
    text-wrap: balance;
  }
  .post .post-body .meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    display: flex; gap: 12px; align-items: center;
  }

  .supporting-repo:hover {
    background: rgba(249,78,82,0.06) !important;
  }
  .supporting-repo:hover .arrow {
    transform: translate(3px, -3px);
  }

  /* Footer + CTA */
  .cta {
    padding: 140px 0 100px;
    background: var(--noir);
    color: var(--bg);
    border: none;
  }
  .cta .display-xl { color: var(--bg); }
  .cta .btn { background: #ffffff; color: #0E0E0C; box-shadow: none; }
  .cta .btn::before { background: rgba(255,255,255,0.12); }
  .cta .btn-secondary { background: transparent; color: #ffffff; border-color: rgba(255,255,255,0.25); }
  .cta .btn-secondary::before { background: rgba(255,255,255,0.08); }
  .cta .btn-secondary:hover { color: #ffffff; }
  footer.site {
    background: var(--noir);
    color: var(--bg);
    position: relative;
    padding: 0 0 32px;
    border: none;
  }
  footer.site::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F94E52, #F0369A, #F2437E, #F04D63, #F86A47, #F98A3C, #FB9A3E, #FBBE4A);
  }
  footer.site .ftr-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 64px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  footer.site h5 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(237,233,225,0.55);
    margin: 0 0 18px;
    font-weight: 400;
  }
  footer.site ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
  footer.site ul a { color: rgba(237,233,225,0.85); font-size: 15px; }
  footer.site ul a:hover { color: var(--accent); }
  .ftr-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(237,233,225,0.55);
  }

  /* Magnetic */
  .magnetic { display: inline-block; will-change: transform; }

  /* Decorative */
  .pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.02em;
    color: var(--ink-2);
    background: rgba(255,255,255,0.4);
    box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 1px 2px rgba(70,50,30,0.06);
  }
  /* Buttons get a felt-press feel */
  .btn {
    box-shadow:
      0 1px 0 rgba(255,255,255,0.08) inset,
      0 8px 18px -8px rgba(0,0,0,0.4);
  }
  .btn-secondary {
    box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 1px 2px rgba(70,50,30,0.06);
  }
  /* FAQ rows feel like fibers */
  .faq-toggle {
    box-shadow: 0 6px 14px -6px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.08) inset;
  }
  /* Section dividers — slightly fuzzed */
  section { border-bottom: 1px solid var(--line); }
  section + section { border-top: 1px dashed var(--line-2); margin-top: -1px; }
  /* Tags — pressed-felt chips */
  .tag {
    background: rgba(255,255,255,0.55);
    box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset;
  }
  .pill .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    animation: pulse 3s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 0.45; }
    50%      { opacity: 1; }
  }

  /* Tape highlight */
  .tape {
    background: var(--accent);
    color: var(--bg);
    padding: 0 0.18em;
    border-radius: 2px;
  }

  /* Reveal on scroll */
  .reveal { opacity: 0; transform: translateY(8px); transition: opacity .8s ease, transform .8s cubic-bezier(.4,0,.2,1); }
  .reveal.in { opacity: 1; transform: none; }

  /* Responsive */
  @media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-aside { border-left: none; padding-left: 0; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .hero-stats .stat:nth-child(2) { border-right: none; padding-right: 0; }
    .hero-stats .stat:nth-child(1), .hero-stats .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
    .section-head { grid-template-columns: 1fr; gap: 16px; }
    .materials { grid-template-columns: 1fr; }
    .showcase { grid-template-columns: 1fr; padding: 36px; gap: 36px; }
    footer.site .ftr-grid { grid-template-columns: 1fr 1fr; }
    .blog-rail .post { flex: 0 0 clamp(300px, 62%, 460px); }
  }
  @media (max-width: 600px) {
    .blog-rail { gap: 12px; }
    .blog-rail .post { flex: 0 0 84vw; grid-template-columns: 112px 1fr; }
    .blog-rail .post .post-img { min-height: 156px; }
    .blog-rail .post .post-body { padding: 16px; }
    .blog-rail .post .post-body h4 { font-size: 17px; }
    .rail-nav { display: none; }
  }
  /* Canvas overlay defaults */
  .canvas-agents { min-width: 240px; }

  /* Tablet — nav can get tight between 600–900px */
  @media (max-width: 860px) {
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 13px; }
    .nav-links .btn { padding: 10px 14px !important; font-size: 13px; }
  }

  @media (max-width: 600px) {
    .wrap { padding: 0 24px; }
    section { padding: 64px 0; }
    .hero { padding: 88px 0 16px; }
    .hero .eyebrow { display: none; }
    .cta { padding: 80px 0 60px; }
    .display-xl { font-size: clamp(40px, 12vw, 100px) !important; }
    .display-m  { font-size: clamp(28px, 8vw, 60px) !important; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .mobile-menu { padding: 0 20px; }
    /* Hero stats: 1-column on small phones */
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .hero-stats .stat { padding: 18px 12px 18px 0; }
    .hero-stats .stat .n { font-size: clamp(28px, 7.5vw, 44px); }
    /* Showcase */
    .showcase { padding: 22px; gap: 28px; }
    .showcase .stat .num { font-size: clamp(32px, 9vw, 48px); }
    /* About */
    .about-bio-row { flex-direction: column !important; gap: 28px !important; }
    .about-bio-row > * { min-width: 0 !important; max-width: 100% !important; }
    /* Footer */
    footer.site .ftr-grid { grid-template-columns: 1fr; gap: 28px; }
    .ftr-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
    /* Canvas mock */
    .canvas-agents { min-width: 0; max-width: 56%; font-size: 10px !important; }
    .canvas-pairs { display: none; }
    .canvas-status { font-size: 10px !important; max-width: 44%; }
    .canvas-mock { min-height: 280px; aspect-ratio: auto; height: 320px; }
  }

  @media (max-width: 380px) {
    .wrap { padding: 0 14px; }
    .hero-stats { grid-template-columns: 1fr; }
    .hero-stats .stat { border-right: none !important; padding-right: 0 !important; border-bottom: 1px solid var(--line); }
    .hero-stats .stat:last-child { border-bottom: none; }
  }

  /* ─── /work + /portfolio ──────────────────────────────────────── */
  .page-hero {
    padding: 132px 0 0;
    border-bottom: 1px solid var(--line);
  }
  /* Portfolio hero — the title on the left, the photograph beside it. */
  .hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 56px;
    align-items: center;
    padding-bottom: 72px;
  }
  .hero-portrait { margin: 0; }
  .hero-portrait img {
    display: block;
    width: 100%;
    max-width: 460px;
    margin-left: auto;
    /* height:auto first — the img's height attribute is a presentational hint
       that would otherwise beat aspect-ratio and stretch the circle. */
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--line);
    box-shadow: 0 26px 52px -32px rgba(70,50,30,0.5);
  }
  .page-hero .lede {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: start;
    margin: 44px 0 64px;
  }
  .page-hero .lede p { margin: 0 0 18px; }
  .page-hero .lede p:last-child { margin-bottom: 0; }
  .lede-aside {
    border-left: 1px solid var(--line);
    padding-left: 36px;
    display: flex; flex-direction: column; gap: 22px;
  }
  .credential {
    display: flex; flex-direction: column; gap: 4px;
  }
  .credential .k {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--muted);
  }
  .credential .v { font-size: 15px; color: var(--ink-2); }

  /* Case study */
  .case { padding: 104px 0; border-bottom: 1px solid var(--line); }
  .case:last-of-type { border-bottom: none; }
  .case-index {
    display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px;
  }
  .case-index .num {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
    color: var(--muted);
  }
  .case h2 {
    font-family: var(--font-display); font-optical-sizing: auto;
    font-size: clamp(34px, 5vw, 76px); font-weight: 500;
    letter-spacing: -0.025em; line-height: 0.98; margin: 0;
    text-wrap: balance;
  }
  .grenade {
    font-family: var(--font-display); font-optical-sizing: auto;
    font-weight: 400; font-size: clamp(20px, 2vw, 27px); line-height: 1.35;
    max-width: 42ch; margin: 26px 0 0; color: var(--ink);
    text-wrap: pretty;
  }
  .case-body {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 40px; margin-top: 56px;
    border-top: 1px solid var(--line); padding-top: 36px;
  }
  .case-block h3 {
    font-family: var(--font-mono); font-size: 11px; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--muted); margin: 0 0 14px;
  }
  .case-block p { margin: 0 0 12px; font-size: 16px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
  .case-block p:last-child { margin-bottom: 0; }

  .metrics {
    display: flex; flex-wrap: wrap; gap: 0;
    margin-top: 40px;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  }
  .metrics .m {
    flex: 1 1 160px; padding: 26px 26px 26px 0;
    border-right: 1px solid var(--line);
  }
  .metrics .m:last-child { border-right: none; }
  .metrics .m .n {
    font-family: var(--font-display); font-optical-sizing: auto;
    font-size: clamp(30px, 3vw, 46px); font-weight: 600;
    letter-spacing: -0.02em; line-height: 1;
  }
  .metrics .m:nth-child(1) .n { color: #F94E52; }
  .metrics .m:nth-child(2) .n { color: #F0369A; }
  .metrics .m:nth-child(3) .n { color: #F86A47; }
  .metrics .m:nth-child(4) .n { color: #FBBE4A; }
  .metrics .m .l {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--muted); margin-top: 12px;
  }

  .artefacts {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    margin-top: 40px;
  }
  .artefact {
    position: relative; aspect-ratio: 4/3;
    border: 1px dashed var(--line); border-radius: 10px;
    background: var(--paper);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; padding: 20px; text-align: center;
  }
  .artefact .cap {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
    color: var(--muted); text-wrap: pretty; line-height: 1.5;
  }
  .artefact .mark {
    width: 26px; height: 26px; border-radius: 50%;
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-family: var(--font-mono); font-size: 12px;
  }

  /* Employer teaser */
  .teaser {
    display: grid; grid-template-columns: 0.95fr 1.05fr;
    gap: 56px; align-items: start;
  }
  .teaser .teaser-copy p { font-size: 17px; line-height: 1.55; color: var(--ink-2); margin: 0 0 18px; text-wrap: pretty; }
  .teaser-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

  /* Now strip */
  .now-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
    background: var(--line);
    border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  }
  .now-item {
    background: var(--paper); padding: 28px 30px;
    display: flex; flex-direction: column; gap: 10px;
    transition: background .25s ease;
  }
  .now-item:hover { background: rgba(249,78,82,0.05); }
  .now-item .nm {
    font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em;
    display: flex; align-items: center; gap: 8px;
  }
  .now-item .nm .swatch { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
  .now-item p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

  /* Facets — the other practices, each with a photo. Same hairline-grid
     language as .now-grid; the last card spans both columns. */
  .facets {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
    background: var(--line);
    border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  }
  .facet { background: var(--paper); display: flex; flex-direction: column; }
  .facet .shot {
    aspect-ratio: 4 / 3; overflow: hidden;
    background: rgba(70,50,30,0.06); border-bottom: 1px solid var(--line);
  }
  .facet .shot > * { width: 100%; height: 100%; display: block; object-fit: cover; }
  .facet .txt { padding: 26px 30px 30px; display: flex; flex-direction: column; gap: 10px; }
  .facet .nm {
    font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em;
    display: flex; align-items: center; gap: 8px;
  }
  .facet .nm .swatch { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
  .facet p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
  .facet p a { border-bottom: 1px solid var(--accent); }
  /* Lead card runs full width and carries no photo — it opens the section. */
  .facet.wide { grid-column: 1 / -1; }
  .facet.wide .txt { padding: 30px 34px 34px; max-width: 78ch; }
  .facet.wide p { font-size: 16.5px; line-height: 1.6; }
  /* Full-width variant that does carry a photo, beside the copy. */
  .facet.wide.with-shot { display: grid; grid-template-columns: 1fr 1.4fr; }
  .facet.wide.with-shot .shot { aspect-ratio: auto; min-height: 280px; border-bottom: none; border-right: 1px solid var(--line); }
  .facet.wide.with-shot .txt { justify-content: center; }
  @media (max-width: 900px) {
    .facets { grid-template-columns: 1fr; }
    .facet.wide { grid-column: auto; }
    .facet.wide.with-shot { grid-template-columns: 1fr; }
    .facet.wide.with-shot .shot { aspect-ratio: 4 / 3; border-right: none; border-bottom: 1px solid var(--line); }
  }

  /* Gate */
  .gate-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 96px 24px 64px;
  }
  .gate {
    width: 100%; max-width: 460px;
    border: 1px solid var(--line); border-radius: 16px;
    background: var(--paper);
    padding: 40px;
    box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 24px 48px -30px rgba(70,50,30,0.35);
  }
  .gate h1 {
    font-family: var(--font-display); font-optical-sizing: auto;
    font-size: 34px; font-weight: 500; letter-spacing: -0.02em;
    margin: 16px 0 10px; line-height: 1.05;
  }
  .gate p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
  .gate form { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
  .gate input {
    font-family: var(--font-mono); font-size: 14px;
    padding: 15px 16px; border-radius: 10px;
    border: 1px solid var(--line); background: rgba(255,255,255,0.7);
    color: var(--ink); outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
  }
  .gate input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,78,82,0.12); }
  .gate .err {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
    color: #F94E52; min-height: 14px;
  }
  /* Public summary on the gate. These facts are already on /work and LinkedIn;
     surfacing them here means a recruiter — or the agent they sent — gets the
     shape of the career instead of a 401 and nothing. */
  .gate-summary {
    list-style: none;
    margin: 24px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 14px;
  }
  .gate-summary li {
    font-size: 14px; line-height: 1.5;
    color: var(--ink-2); text-wrap: pretty;
  }
  .gate-summary b { color: var(--ink); font-weight: 600; }
  .gate-note {
    margin: 18px 0 0 !important;
    font-size: 13px !important;
    color: var(--muted) !important;
  }
  .gate .request {
    margin-top: 22px; padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 14px; color: var(--muted); line-height: 1.55;
  }
  .gate .request a { color: var(--ink); border-bottom: 1px solid var(--accent); }

  .embed-frame {
    display: block;
    width: 100%; aspect-ratio: 16/9;
    border: 1px solid var(--line); border-radius: 10px;
    background: var(--noir);
    box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 24px 48px -30px rgba(70,50,30,0.35);
  }

  @media (max-width: 900px) {
    /* Photo drops under the title, and narrows so it isn't the whole screen. */
    .hero-split { grid-template-columns: 1fr; gap: 36px; padding-bottom: 56px; }
    .hero-portrait img { max-width: 320px; margin-left: 0; }
    .page-hero .lede { grid-template-columns: 1fr; gap: 32px; }
    .lede-aside { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
    .case-body { grid-template-columns: 1fr; gap: 28px; }
    .teaser { grid-template-columns: 1fr; gap: 32px; }
    .artefacts { grid-template-columns: 1fr 1fr; }
    .now-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 600px) {
    .page-hero { padding: 104px 0 0; }
    .case { padding: 64px 0; }
    .metrics .m { flex: 1 1 45%; padding: 20px 18px 20px 0; border-bottom: 1px solid var(--line); }
    .artefacts { grid-template-columns: 1fr; }
    .gate { padding: 28px; }
  }


  /* Career timeline — dark band */
  .ledger { background: var(--noir); color: #EDE9E1; padding: 44px 0 40px; margin-top: 56px; }
  .ledger .lead {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 24px; flex-wrap: wrap; margin-bottom: 40px;
  }
  .ledger .lead h3 {
    font-family: var(--font-display); font-optical-sizing: auto;
    font-weight: 500; font-size: clamp(20px, 2.1vw, 28px); letter-spacing: -0.02em;
    margin: 0; color: #EDE9E1;
  }
  .ledger .lead span {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
    text-transform: uppercase; color: rgba(237,233,225,0.5);
  }
  /* Prologue and track side by side; the doctorate is not a stop on the
     employment axis, so it does not get a column on it. */
  .ledger-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 3.2fr);
    gap: 48px;
  }
  .ledger .prologue { position: relative; padding-right: 32px; border-right: 1px solid rgba(237,233,225,0.14); }
  /* Same type rhythm as a track stop, so the two align across the divider. */
  .ledger .prologue .yr {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
    color: rgba(237,233,225,0.55); display: block; margin-bottom: 12px;
  }
  .ledger .prologue .dur {
    font-weight: 400; color: rgba(237,233,225,0.34);
    padding-left: 6px; border-left: 1px solid rgba(237,233,225,0.18);
    margin-left: 6px;
  }
  /* A diamond, not a dot — it reads as a different kind of event. */
  .ledger .prologue .mark {
    display: block; width: 9px; height: 9px; margin: 1px 0 21px 1px;
    background: rgba(237,233,225,0.72); transform: rotate(45deg);
  }
  .ledger .prologue .org {
    font-family: var(--font-display); font-optical-sizing: auto;
    font-weight: 500; font-size: clamp(17px, 1.7vw, 22px); letter-spacing: -0.02em;
    color: #FBF9F5; line-height: 1.2;
  }

  .ledger .track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
  /* The rule spans first dot to last, rather than running off both edges. */
  .ledger .track::before {
    content: ""; position: absolute; left: 5px; right: calc(25% - 5px); top: 30px;
    height: 1px; background: rgba(237,233,225,0.2);
  }
  .ledger .stop {
    position: relative; padding-right: 28px; display: block;
    color: inherit; text-decoration: none;
  }
  .ledger .stop .yr {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
    color: rgba(237,233,225,0.55); display: block; margin-bottom: 12px;
  }
  /* Duration, so a six-year run does not read the same as a one-year one.
     The columns are equal width on purpose — scaling them by length would
     look measured without being it. */
  .ledger .stop .dur {
    font-weight: 400; color: rgba(237,233,225,0.34);
    padding-left: 6px; border-left: 1px solid rgba(237,233,225,0.18);
    margin-left: 6px;
  }
  .ledger .stop .dot {
    position: relative; z-index: 1; display: block;
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--hue, #EDE9E1);
    box-shadow: 0 0 0 4px var(--noir);
    margin-bottom: 20px;
    transition: transform .22s ease, box-shadow .22s ease;
  }
  .ledger .stop.is-now .dot { box-shadow: 0 0 0 4px var(--noir), 0 0 0 1px var(--noir) inset, 0 0 0 8px rgba(249,78,82,0.3); }
  .ledger .stop.is-now .yr { color: var(--accent); }
  .ledger .stop .org {
    display: block;
    font-family: var(--font-display); font-optical-sizing: auto;
    font-weight: 500; font-size: clamp(17px, 1.7vw, 22px); letter-spacing: -0.02em;
    color: #FBF9F5; line-height: 1.2;
    transition: color .2s ease;
  }
  .ledger .note, .ledger .stop .note {
    display: block;
    font-size: 13px; line-height: 1.5; color: rgba(237,233,225,0.55);
    margin-top: 8px; max-width: 30ch; text-wrap: pretty;
  }
  /* The affordance only appears on approach — the timeline stays quiet
     until you go looking, then every stop turns out to be a way in. */
  .ledger .stop .go {
    display: block; margin-top: 12px;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--hue);
    opacity: 0; transform: translateY(-3px);
    transition: opacity .22s ease, transform .22s ease;
  }
  .ledger .stop .go::after { content: " ↓"; }
  .ledger .stop:hover .org, .ledger .stop:focus-visible .org { color: var(--hue); }
  .ledger .stop:hover .dot, .ledger .stop:focus-visible .dot { transform: scale(1.35); }
  .ledger .stop:hover .go, .ledger .stop:focus-visible .go { opacity: 1; transform: none; }
  .ledger .stop:focus-visible { outline: 1px solid var(--hue); outline-offset: 8px; }
  @media (prefers-reduced-motion: reduce) {
    .ledger .stop .dot, .ledger .stop .go, .ledger .stop .org { transition: none; }
  }
  /* Touch has no hover, so the link needs to be visible from the start. */
  @media (hover: none) {
    .ledger .stop .go { opacity: 1; transform: none; }
  }

  @media (max-width: 1000px) {
    .ledger-grid { grid-template-columns: 1fr; gap: 36px; }
    .ledger .prologue {
      padding-right: 0; padding-bottom: 32px;
      border-right: none; border-bottom: 1px solid rgba(237,233,225,0.14);
    }
    .ledger .prologue .note { max-width: 60ch; }
  }
  @media (max-width: 820px) {
    .ledger .track { grid-template-columns: 1fr; padding-left: 26px; }
    /* Vertical rule, again stopping at the last dot rather than running past. */
    .ledger .track::before { left: 5px; right: auto; top: 22px; bottom: auto; width: 1px; height: calc(100% - 22px - 78px); }
    .ledger .stop { padding: 0 0 30px 0; }
    .ledger .stop .dot { position: absolute; left: -26px; top: 20px; margin: 0; }
    .ledger .stop:last-child { padding-bottom: 0; }
    .ledger .stop .yr { margin-bottom: 6px; }
    .ledger .stop .note { max-width: 46ch; }
  }

  .case-index { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
  .case-logo { width: 132px; height: 34px; flex: 0 0 auto; }
  @media (max-width: 640px) { .case-logo { width: 100px; height: 26px; } }

  /* Texture off — flat paper */
  :root { --felt-grain-opacity: 0; --felt-fiber-opacity: 0; }
  body::before, body::after, .felt-surface::after { display: none; }

  /* Press / shipped links */
  .press { margin-top: 44px; border-top: 1px solid var(--line); }
  .press-head {
    font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--muted); padding: 16px 0 4px;
  }
  .press ul { list-style: none; margin: 0; padding: 0; }
  .press li { border-bottom: 1px solid var(--line-2); }
  .press li:last-child { border-bottom: none; }
  .press a {
    display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
    padding: 14px 0; text-decoration: none; color: var(--ink);
    transition: color .2s ease;
  }
  .press a .t { font-size: 16px; line-height: 1.4; text-wrap: pretty; }
  .press a .s {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--muted); flex: 0 0 auto;
  }
  .press a:hover .t { color: var(--accent); }
  @media (max-width: 640px) {
    .press a { flex-direction: column; gap: 6px; }
  }

  /* Deep dives */
  .deep { margin-top: 48px; border-top: 1px solid var(--line); }
  .deep-head {
    font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--muted); padding: 16px 0 10px;
  }
  .dive { border-top: 1px solid var(--line-2); }
  .dive summary {
    list-style: none; cursor: pointer;
    display: grid; grid-template-columns: 40px minmax(0,1fr) auto 20px;
    align-items: baseline; gap: 16px; padding: 18px 0;
  }
  .dive summary::-webkit-details-marker { display: none; }
  .dive-ix { font-size: 11px; letter-spacing: 0.1em; color: var(--accent); }
  .dive-t {
    font-family: var(--font-display); font-optical-sizing: auto;
    font-weight: 500; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em;
  }
  .dive-s { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
  .dive-x { position: relative; width: 12px; height: 12px; align-self: center; }
  .dive-x::before, .dive-x::after {
    content: ""; position: absolute; background: var(--ink); transition: transform .25s cubic-bezier(.4,0,.2,1);
  }
  .dive-x::before { left: 0; right: 0; top: 5px; height: 1px; }
  .dive-x::after { top: 0; bottom: 0; left: 5px; width: 1px; }
  .dive[open] .dive-x::after { transform: scaleY(0); }
  .dive-body { padding: 4px 0 34px; }
  .dive-lede {
    font-family: var(--font-display); font-optical-sizing: auto;
    font-weight: 400; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45;
    max-width: 62ch; margin: 0 0 30px; text-wrap: pretty;
  }
  .dive-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-bottom: 30px; }
  .dive-cols h4 {
    font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--muted); margin: 0 0 10px; font-weight: 400;
  }
  .dive-cols p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
  .dive-figs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-bottom: 34px; }
  .dive-figs figure { margin: 0; }
  .dive-figs image-slot { width: 100%; height: 420px; }
  .dive-figs figcaption {
    font-size: 13px; line-height: 1.5; color: var(--muted);
    margin-top: 12px; text-wrap: pretty;
  }
  @media (max-width: 760px) {
    .dive summary { grid-template-columns: 32px minmax(0,1fr) 20px; }
    .dive-s { display: none; }
    .dive-cols, .dive-figs { grid-template-columns: 1fr; gap: 24px; }
    .dive-figs image-slot { height: 340px; }
  }

  .dive-list { margin: 0; padding-left: 18px; }
  .dive-list li { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin-bottom: 6px; }
  .dive-list li::marker { color: var(--accent); }

  .rail-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
