/* ─────────────────────────────────────────────────────────────
   Swiss-grid theme: cream paper, heavy grotesque, red accents,
   hairline rules and faint 12-column guides.
   ───────────────────────────────────────────────────────────── */
:root {
  --paper: #f2eee3;
  --paper-2: #ebe6d8;
  --card: #f6f3ea;
  --ink: #111111;
  --ink-2: #3a3a3a;
  --ink-3: #6e6b64;
  --rule: #1a1a1a;
  --hair: #cfc9ba;
  --guide: rgb(17 17 17 / .075);
  --chip: #e3ddcd;
  --red: #e2401f;

  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;

  --frame: 1320px;
  --pad: clamp(16px, 2.6vw, 36px);
  --cols: 12;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121212;
    --paper-2: #1a1a1a;
    --card: #171717;
    --ink: #f0ece2;
    --ink-2: #c9c5bb;
    --ink-3: #8f8b83;
    --rule: #e8e4da;
    --hair: #34322e;
    --guide: rgb(240 236 226 / .06);
    --chip: #26241f;
    --red: #ff5a36;
  }
}
:root[data-theme="dark"] {
  --paper: #121212;
  --paper-2: #1a1a1a;
  --card: #171717;
  --ink: #f0ece2;
  --ink-2: #c9c5bb;
  --ink-3: #8f8b83;
  --rule: #e8e4da;
  --hair: #34322e;
  --guide: rgb(240 236 226 / .06);
  --chip: #26241f;
  --red: #ff5a36;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
.red { color: var(--red); font-style: normal; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.skip:focus { left: 8px; }

.frame { width: 100%; max-width: var(--frame); margin-inline: auto; padding-inline: var(--pad); }

/* Faint column guides behind everything */
body { position: relative; }
.grid-lines { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.grid-lines .frame { height: 100%; }
.grid-lines .frame::before {
  content: ""; display: block; height: 100%;
  border-right: 1px solid var(--guide);
  background-image: linear-gradient(90deg, var(--guide) 1px, transparent 1px);
  background-size: calc(100% / var(--cols)) 100%;
}
@media (max-width: 900px) { :root { --cols: 6; } }
@media (max-width: 560px) { :root { --cols: 4; } }

/* ───────── Header ───────── */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 60px; position: relative; }
.nav::after { content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: 0; border-bottom: 1.5px solid var(--rule); }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.01em; white-space: nowrap; }
.nav-links { display: flex; gap: clamp(10px, 1.8vw, 26px); }
.nav-links a { font-size: 1.05rem; white-space: nowrap; }
.nav-links a[aria-current] { color: var(--red); }
@media (max-width: 760px) {
  .nav { height: auto; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 12px; padding-bottom: 10px; }
  .nav nav { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav nav::-webkit-scrollbar { display: none; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: .95rem; }
}

/* ───────── Hero ───────── */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 25%); gap: clamp(20px, 3vw, 40px);
  padding-top: clamp(20px, 3vw, 28px); padding-bottom: clamp(36px, 5vw, 56px); align-items: start;
}
.hero h1 {
  font-weight: 900; font-size: clamp(3.1rem, 7.15vw, 6.9rem); line-height: .86; white-space: nowrap; letter-spacing: -0.035em;
  margin-left: -0.04em; padding-top: .06em;
}
.hero-sub { font-size: clamp(1.6rem, 3.7vw, 3.3rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; margin-top: clamp(10px, 1.4vw, 18px); }
.hero-meta { margin-top: 22px; font-size: 1.02rem; color: var(--ink-2); }
.hero-now { margin-top: 8px; font-size: 1.02rem; color: var(--ink-2); }
.hero-now span { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; margin-right: 6px; }
.hero-links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 1.05rem; font-weight: 500; }
.hero-photo { margin: 0; border: 1.5px solid var(--rule); background: var(--paper-2); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 4.3; object-fit: cover; object-position: 50% 22%; filter: grayscale(1) contrast(1.08) brightness(1.02); height: auto; }
@media (max-width: 760px) {
  .hero h1 { white-space: normal; font-size: clamp(3.1rem, 17vw, 6rem); }
  .hero { grid-template-columns: 1fr; }
  .hero-photo { order: -1; width: 46%; max-width: 220px; }
}

/* ───────── Sections ───────── */
.columns { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-top: 32px; gap: clamp(28px, 4vw, 56px); position: relative; }
.columns::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); border-top: 1.5px solid var(--rule); }
.col { min-width: 0; }
.sec { display: grid; align-content: start; grid-template-columns: clamp(52px, 6vw, 84px) minmax(0, 1fr); column-gap: 12px; padding-top: clamp(28px, 3.4vw, 44px); padding-bottom: 12px; }
.sec-num { grid-column: 1; grid-row: 1; color: var(--red); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1; letter-spacing: -0.03em; }
.sec-title { grid-column: 2; grid-row: 1; font-weight: 800; text-transform: uppercase; font-size: clamp(1.7rem, 2.9vw, 2.45rem); line-height: 1; letter-spacing: -0.02em; align-self: center; }
.sec-body { grid-column: 2; margin-top: 18px; min-width: 0; }
.sec-wide { position: relative; margin-top: 32px; padding-bottom: 40px; }
.sec-wide::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); border-top: 1.5px solid var(--rule); }
@media (max-width: 960px) {
  .columns { grid-template-columns: 1fr; gap: 0; }
  #venture { position: relative; margin-top: 24px; border-top: 1.5px solid var(--rule); }
}
@media (max-width: 560px) {
  .sec { grid-template-columns: 1fr; }
  .sec-num { grid-row: auto; margin-bottom: 4px; }
  .sec-title, .sec-body { grid-column: 1; }
  .sec-title { grid-row: auto; }
}

/* Research */
.intro { max-width: 46em; padding-bottom: 18px; }
.intro p { color: var(--ink-2); font-size: .98rem; }
.r-list { border-top: 1px solid var(--hair); }
.r-item { padding: 18px 0 20px; border-bottom: 1px solid var(--hair); }
.r-item h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.r-meta { color: var(--ink-2); font-size: .95rem; margin-top: 2px; }
.r-summary { margin-top: 10px; font-size: .96rem; color: var(--ink-2); }
.r-points { margin-top: 10px; display: grid; gap: 6px; }
.r-points li { position: relative; padding-left: 16px; font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.r-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 2px; background: var(--red); }
.r-status { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; font-size: .95rem; }
.r-status a { font-weight: 500; }

/* Project cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1.5px solid var(--rule); padding: 14px; color: inherit; transition: transform .15s, box-shadow .15s; }
.card-link:hover { color: inherit; transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--rule); }
.card-link:hover .arrow { color: var(--red); }
.card h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.card .arrow { font-weight: 500; color: var(--ink-3); }
.card-meta { font-size: .84rem; color: var(--ink-3); margin-top: 2px; }
.card > p:not(.card-meta) { margin-top: 8px; font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.chips li { background: var(--chip); padding: 3px 8px; font-size: .8rem; line-height: 1.35; }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* Rows (experience / writing) */
.rows { border-top: 1px solid var(--hair); }
.rows li { padding: 11px 0 12px; border-bottom: 1px solid var(--hair); display: grid; gap: 1px; align-content: start; }
.rows li > a { display: grid; gap: 1px; }
.rows b { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.rows span { font-size: .93rem; color: var(--ink-2); }
.rows small { font-size: .86rem; color: var(--ink-3); line-height: 1.45; margin-top: 3px; }
.more { margin-top: 12px; font-weight: 500; }
.sub-title { margin-top: 28px; margin-bottom: 10px; font-size: .9rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.toolbox { border-top: 1px solid var(--hair); }
.toolbox > div { padding: 10px 0 12px; border-bottom: 1px solid var(--hair); }
.toolbox dt { font-weight: 700; font-size: .93rem; }
.toolbox dd { margin: 0; }
.toolbox .chips { padding-top: 6px; }

/* Archive */
.intro-line { color: var(--ink-2); margin-bottom: 16px; }
.archive { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.shot { background: var(--card); border: 1.5px solid var(--rule); display: flex; flex-direction: column; }
.shot-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1.5px solid var(--rule); background: var(--paper-2); }
.shot-img { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: zoom-in; opacity: 0; transition: opacity .4s ease; }
.shot-img.is-active { opacity: 1; z-index: 1; }
.shot-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .3s ease; }
.shot:hover .shot-img img { filter: none; }
.shot-img.contain { background: #fff; }
.shot-img.contain img { object-fit: contain; padding: 10%; }
.dots { position: absolute; z-index: 2; right: 8px; bottom: 8px; display: flex; gap: 5px; }
.dot { width: 9px; height: 9px; padding: 0; border: 1.5px solid #111; background: #fff; cursor: pointer; }
.dot.is-active { background: var(--red); border-color: var(--red); }
.shot-body { padding: 12px 14px 16px; }
.shot h3 { font-size: 1rem; font-weight: 700; line-height: 1.25; }
.shot p:not(.card-meta) { margin-top: 8px; font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 1100px) { .archive { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .archive { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .archive { grid-template-columns: 1fr; } }

/* Contact */
.contact-big { font-size: clamp(1.4rem, 2.8vw, 2.3rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; max-width: 22em; }
.contact-links { margin-top: 24px; border-top: 1px solid var(--hair); }
.contact-links li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.contact-links span { color: var(--ink-3); }
.contact-links a { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 560px) { .contact-links li { grid-template-columns: 1fr; gap: 0; } }

/* Lightbox */
.lightbox { border: 1.5px solid var(--rule); padding: 0; background: var(--paper); max-width: 92vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgb(10 10 10 / .85); }
.lightbox img { max-width: 90vw; max-height: 86vh; object-fit: contain; }
.lightbox-close { position: absolute; top: -42px; right: -2px; width: 34px; height: 34px; border: 1.5px solid #fff; background: transparent; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }

/* Inner pages */
.prose-page { padding-top: clamp(28px, 4vw, 48px); padding-bottom: 72px; min-height: 60vh; }
.page-head { padding-bottom: 20px; border-bottom: 1.5px solid var(--rule); margin-bottom: 28px; }
.page-head h1, .notfound h1 { font-weight: 900; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 5rem); line-height: .9; letter-spacing: -0.03em; }
.eyebrow { color: var(--red); font-weight: 700; margin-bottom: 10px; }
.section-sub { margin-top: 14px; color: var(--ink-2); font-size: 1.1rem; max-width: 40em; }
.section-sub a { text-decoration: underline; }
.post-list { border-top: 1px solid var(--hair); }
.post-list a { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.post-list a span:first-child { color: var(--red); }
.post-list a span:last-child { font-weight: 700; }
.empty { color: var(--ink-2); }
.empty a { text-decoration: underline; }
.prose { max-width: 44em; font-size: 1.05rem; line-height: 1.65; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.5rem; font-weight: 800; margin-top: 2em; }
.prose h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.6em; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose a { color: var(--red); text-decoration: underline; }
.prose code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; background: var(--chip); padding: .1em .3em; }
.prose pre { background: var(--card); border: 1.5px solid var(--rule); padding: 14px 16px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin-left: 0; padding-left: 16px; border-left: 3px solid var(--red); color: var(--ink-2); }
.notfound h1 em { color: var(--red); font-style: normal; }
@media (max-width: 560px) { .post-list a { grid-template-columns: 1fr; gap: 0; } }

/* Footer */
.site-footer { margin-top: 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 22px; position: relative; font-size: .98rem; }
.footer-inner::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); border-top: 1.5px solid var(--rule); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ═════════ Lab-notebook layer: mono accents, findings, triad, RL, spec sheet ═════════ */
:root { --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; }
.sec-lede { margin-bottom: 18px; font-size: 1.05rem; color: var(--ink-2); }
.sec-lede a { font-weight: 500; color: var(--ink); }

/* Radar */
.radar { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding: 8px 12px; border: 1.5px solid var(--rule); background: var(--card); font-family: var(--mono); font-size: .86rem; color: var(--ink-2); max-width: 46em; }
.radar .prompt { color: var(--ink-3); }
.radar-label { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 8px; }
.radar-item b { color: var(--ink); font-weight: 700; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 55%, transparent); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* Mono metadata everywhere it's "data" */
.card-meta, .pillar-meta, .pillar-kicker, .spec dt, .spec-head, .specimen, .diagram-cap, .lane-head span, .story span, .venture-top, .rows span em { font-family: var(--mono); }
.card-meta { font-size: .76rem; letter-spacing: .01em; }

/* Finding badge */
.finding { background: var(--ink); color: var(--paper); padding: 12px 14px 13px; margin-top: 14px; position: relative; }
.finding span { display: block; font-family: var(--mono); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--red); margin-bottom: 4px; }
.finding p { font-weight: 600; font-size: .98rem; line-height: 1.35; letter-spacing: -0.005em; }

/* Research triad */
.triad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--rule); border-bottom: 1.5px solid var(--rule); }
.pillar { padding: 22px 22px 24px; display: flex; flex-direction: column; min-width: 0; }
.pillar + .pillar { border-left: 1px solid var(--hair); }
.pillar:first-child { padding-left: 0; }
.pillar:last-child { padding-right: 0; }
.pillar-kicker { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); font-weight: 700; }
.pillar h3 { margin-top: 8px; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.pillar-meta { margin-top: 6px; font-size: .76rem; color: var(--ink-3); }
.pillar-summary { margin-top: 14px; font-size: .93rem; color: var(--ink-2); line-height: 1.5; }
.pillar .r-points { margin-top: 12px; }
.pillar-links { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .92rem; align-items: baseline; }
.pillar-links a { font-weight: 500; }
@media (max-width: 1000px) {
  .triad { grid-template-columns: 1fr; }
  .pillar, .pillar:first-child, .pillar:last-child { padding: 22px 0 24px; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--hair); }
}

/* AlphaSlayer */
.rl { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.rl-diagram { border: 1.5px solid var(--rule); background: var(--card); padding: 16px 16px 18px; background-image: radial-gradient(var(--hair) 1px, transparent 1px); background-size: 14px 14px; }
.diagram-cap { font-size: .72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.lane + .lane { margin-top: 18px; }
.lane-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.lane-head b { font-weight: 800; text-transform: uppercase; font-size: .9rem; letter-spacing: .02em; }
.lane-head span { font-size: .76rem; color: var(--red); font-weight: 700; }
.flow { display: grid; grid-template-columns: 1.15fr auto 1fr auto 1fr auto 1.05fr auto 1.15fr; align-items: stretch; gap: 0; }
.node { border: 1.5px solid var(--rule); background: var(--paper); padding: 8px 8px; font-size: .78rem; font-weight: 600; line-height: 1.25; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 64px; }
.node-in { background: var(--chip); font-weight: 500; }
.node-out { background: var(--ink); color: var(--paper); }
.flow .arrow { align-self: center; padding: 0 4px; color: var(--red); font-weight: 700; }
.rl-text > p { margin-top: 14px; color: var(--ink-2); font-size: .97rem; }
.story { margin-top: 16px; border-top: 1px solid var(--hair); counter-reset: s; }
.story li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.story span { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--red); font-weight: 700; padding-top: 2px; }
.story p { font-size: .93rem; }
.rl-text .chips { padding-top: 14px; }
@media (max-width: 1000px) { .rl { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .flow { grid-template-columns: 1fr; }
  .flow .arrow { transform: rotate(90deg); justify-self: center; padding: 2px 0; }
  .node { min-height: 0; }
  .story li { grid-template-columns: 1fr; gap: 2px; }
}

/* Spec sheet */
.spec { border: 1.5px solid var(--rule); background: var(--card); }
.spec-head { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; background: var(--ink); color: var(--paper); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.spec-head span:first-child { color: var(--red); font-weight: 700; }
.spec dl > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--hair); }
.spec dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding-top: 2px; }
.spec dd { margin: 0; font-size: .92rem; line-height: 1.45; }
.spec-links { padding: 11px 14px 12px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-weight: 500; }
@media (max-width: 480px) { .spec dl > div { grid-template-columns: 1fr; gap: 2px; } }

/* Venture */
.venture { display: block; border: 1.5px solid var(--rule); background: var(--red); color: #fff; padding: 16px 18px 18px; margin-bottom: 14px; transition: transform .15s, box-shadow .15s; }
.venture:hover { color: #fff; transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--rule); }
.venture-top { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.venture-stat { margin-top: 16px; font-weight: 900; font-size: clamp(3rem, 5.4vw, 4.7rem); line-height: 1; letter-spacing: -0.04em; }
.venture-label { font-size: 1.15rem; font-weight: 600; margin-top: 6px; }
.venture-role { margin-top: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.venture-summary { margin-top: 6px; font-size: .95rem; line-height: 1.5; color: rgb(255 255 255 / .92); }
.venture-link { margin-top: 14px; font-weight: 600; }
#venture .card { margin-top: 0; }

/* Experience in two columns */
.rows-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); border-top: 0; }
.rows-2 li { border-top: 1px solid var(--hair); border-bottom: 0; }
@media (max-width: 760px) { .rows-2 { grid-template-columns: 1fr; } .rows-2 li:last-child { border-bottom: 1px solid var(--hair); } }

/* Specimens */
.kicker-quote { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; max-width: 34em; margin-bottom: 20px; }
.specimen { padding: 6px 10px; border-bottom: 1.5px solid var(--rule); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; }
.specimen span:last-child { color: var(--red); overflow: hidden; text-overflow: ellipsis; }

/* ═════════ Projects / Work (home) ═════════ */
.feature-project { margin-bottom: 18px; }
.sec-lede b { color: var(--ink); font-weight: 800; }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.spec-head span:last-child { color: var(--paper); opacity: .75; }
.spec-head span:first-child { font-weight: 700; }
.spec-summary { padding: 12px 14px; border-bottom: 1px solid var(--hair); font-size: .93rem; color: var(--ink-2); }
@media (max-width: 860px) { .spec-grid { grid-template-columns: 1fr; } }
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.work-grid .venture { margin-bottom: 0; }
.work-card { display: flex; flex-direction: column; border: 1.5px solid var(--rule); background: var(--card); padding: 16px 18px 18px; color: inherit; transition: transform .15s, box-shadow .15s; }
.work-card:hover { color: inherit; transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--rule); }
.work-card .venture-top { color: var(--ink-3); }
.work-card h3 { margin-top: 16px; font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.work-role { margin-top: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.work-summary { margin-top: 6px; font-size: .95rem; color: var(--ink-2); line-height: 1.5; }
.work-card .chips { margin-top: 0; padding-top: 14px; }
.work-card .venture-link { margin-top: auto; padding-top: 14px; }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }
.archive-cta { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.archive-cta a { font-weight: 700; font-size: 1.08rem; }
.archive-cta span { color: var(--ink-3); font-size: .93rem; }

/* ═════════ Archive page ═════════ */
.year-jump { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 500; }
.year { display: grid; grid-template-columns: clamp(90px, 14vw, 200px) minmax(0, 1fr); gap: 0 clamp(12px, 2vw, 24px); border-top: 1.5px solid var(--rule); padding-top: 18px; margin-top: 8px; scroll-margin-top: 72px; }
.year-num { font-weight: 900; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: .9; letter-spacing: -0.04em; color: var(--red); position: sticky; top: 76px; align-self: start; }
.entries { min-width: 0; }
.entry { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 4px 0 20px; }
.entry + .entry { border-top: 1px solid var(--hair); padding-top: 18px; }
.entry.has-media { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.kind { padding: 2px 7px; border: 1.5px solid var(--rule); color: var(--ink); font-weight: 700; }
.kind-research { background: var(--ink); color: var(--paper); }
.kind-venture, .kind-client-work { background: var(--red); border-color: var(--red); color: #fff; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; }
.entry h3 { margin-top: 8px; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.entry h3 .arrow { font-weight: 500; color: var(--ink-3); }
.entry h3 a:hover .arrow { color: var(--red); }
.entry-role { margin-top: 4px; font-weight: 600; font-size: .95rem; }
.entry-finding { margin-top: 8px; font-size: .92rem; font-weight: 600; }
.entry-finding b { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--red); margin-right: 6px; }
.entry-summary { margin-top: 8px; font-size: .95rem; color: var(--ink-2); max-width: 46em; }
.entry .chips { margin-top: 0; padding-top: 10px; }
.entry-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-self: start; }
.thumb { padding: 0; border: 1.5px solid var(--rule); background: var(--paper-2); aspect-ratio: 1; overflow: hidden; cursor: zoom-in; }
.thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .25s; }
.thumb:hover img { filter: none; }
.thumb.contain { background: #fff; }
.thumb.contain img { object-fit: contain; padding: 8%; }
@media (max-width: 760px) {
  .year { grid-template-columns: 1fr; }
  .year-num { position: static; margin-bottom: 10px; }
  .entry.has-media { grid-template-columns: 1fr; }
  .entry-media { max-width: 320px; }
}
.archive-page .page-head { border-bottom: 0; margin-bottom: 0; }

/* Theme toggle */
.theme-toggle { font: inherit; font-size: 1.05rem; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; }
.theme-toggle:hover { color: var(--red); }
.theme-toggle .to-light { display: none; }
:root[data-theme="dark"] .theme-toggle .to-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .to-light { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .to-dark { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .to-light { display: inline; }
}
.nav nav { margin-left: auto; }
.theme-toggle { color: var(--red); }
.theme-toggle:hover { color: var(--ink); }
@media (max-width: 760px) { .theme-toggle { position: absolute; top: 14px; right: var(--pad); font-size: .95rem; } }
