/* ═══════════════════════════════════════════════════════
   Night Edition — design tokens
   ═══════════════════════════════════════════════════════ */
:root {
  --ground: #171514;
  --card: #221f1d;
  --deepcyan: #10282f;
  --deepcyan-edge: #1d4550;
  --paper: #f3f2f2;
  --ink: #201e1d;
  --ink-2: #47423d;
  --ink-muted: #6d655e;

  --text: #f3f2f2;
  --text-2: #c9c2bc;
  --text-muted: #a39b94;
  --text-faint: #6d655e;
  --text-row: #e5e1dd;

  --cyan: #33b5da;
  --cyan-light: #8fd4e8;
  --oncyan-1: #b8d3d9;
  --oncyan-2: #d8e8ec;
  --oncyan-3: #eaf4f6;
  --oncyan-muted: #7fa5ad;

  --magenta: #f0479c;
  --magenta-deep: #b0005a;
  --magenta-light: #f286bd;
  --magenta-tint: #fbe3ef;

  --hairline: #2b2724;
  --frame-edge: #35302c;
  --border-neutral: #4a443f;

  --radius-card: 18px;
  --radius-img: 8px;
  --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.5);
  --shadow-card-lg: 0 22px 50px rgba(0, 0, 0, 0.5);

  --serif: 'Source Serif 4', serif;
  --mono: 'JetBrains Mono', monospace;

  --pad-x: 72px;
  --pad-x-lib: 64px;
  --max-w: 1440px;
  --max-w-lib: 1200px;
}

/* ── base ─────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ground);
  color: var(--text);
  font-family: var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
button { font-family: inherit; background: none; border: none; color: inherit; cursor: pointer; }

.page { display: none; max-width: var(--max-w); margin: 0 auto; }
.page.active { display: block; }
#page-library, #page-workshop, #page-contact { max-width: var(--max-w-lib); }

em { font-style: italic; }

.smallcaps-label {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── masthead ─────────────────────────────────────────── */
.masthead { padding: 40px var(--pad-x) 0; }

.masthead-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.masthead-name { font-size: 56px; font-weight: 600; letter-spacing: -0.015em; display: block; }

.masthead-day {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.masthead-datetime {
  margin-top: 4px;
  font-size: 14px;
  font-style: italic;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.masthead-nav { display: flex; gap: 28px; font-size: 15px; font-style: italic; color: var(--text-2); padding-top: 14px; }
.masthead-nav a:hover { color: var(--cyan-light); }
.nav-resume { color: var(--cyan); }

/* ── hero ─────────────────────────────────────────────── */
.hero { padding: 84px var(--pad-x) 64px; }

.hero-kicker { font-size: 14px; font-style: italic; color: var(--text-muted); margin-bottom: 26px; }

.hero-headline {
  font-size: 84px;
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 1180px;
}
.hero-headline em { font-weight: 400; color: var(--magenta); }

.hero-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 72px;
  margin-top: 44px;
  align-items: start;
}

.hero-standfirst { font-size: 21px; line-height: 1.55; font-style: italic; color: var(--text-2); }

.hero-currently { font-size: 15px; line-height: 1.7; color: var(--text-muted); }
.hero-currently-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--text);
}
.hero-currently a { color: var(--cyan); }
.hero-currently a:hover { color: var(--cyan-light); }

/* ── section heads ────────────────────────────────────── */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 var(--pad-x);
}

.section-heading { font-size: 42px; font-weight: 600; letter-spacing: -0.01em; }
.section-heading em { font-weight: 400; color: var(--magenta); }

.section-note { font-size: 14px; font-style: italic; color: var(--text-muted); }

.fan-section { padding: 20px 0 64px; }
.casefiles { padding: 40px 0 64px; }

/* ── tilted cards: shared hover recipe ────────────────── */
.tcard {
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
  position: relative;
}
.hovergroup:has(.tcard:hover) .tcard:not(:hover) { filter: blur(2.5px); }
/* extra selector weight so slot z-indexes can't pin a hovered card behind its neighbors */
.hovergroup .tcard:hover, .tcard.tcard:hover {
  z-index: 99;
  transform: rotate(var(--tilt, 0deg)) translateY(var(--lift, -10px)) scale(var(--lift-scale, 1.06));
}
.tcard-lg { --lift: -8px; --lift-scale: 1.03; }

/* ── fans (feed + projects) ───────────────────────────── */
.fan-row {
  display: flex;
  align-items: center;
  padding: 44px var(--pad-x) 8px;
}

.fan {
  display: flex;
  align-items: center;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
/* arrow paging: pure horizontal scroll — slide one card-width out, swap, slide back in */
.fan.fan-exit-left { transform: translateX(-300px); }
.fan.fan-exit-right { transform: translateX(300px); }
.fan.fan-enter-right { transform: translateX(300px); transition: none; }
.fan.fan-enter-left { transform: translateX(-300px); transition: none; }

.fan-card {
  border-radius: var(--radius-card);
  flex-shrink: 0;
}

/* slot color / geometry rotation (fixed by position, not item) */
.fan-card.slot-0 {
  --tilt: -4deg;
  width: 330px; padding: 24px;
  background: var(--card);
  box-shadow: var(--shadow-card), 0 0 0 1px var(--frame-edge);
  z-index: 1;
}
.fan-card.slot-1 {
  --tilt: 2deg;
  width: 300px; padding: 26px;
  background: var(--paper); color: var(--ink);
  margin-left: -36px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  z-index: 2;
}
.fan-card.slot-2 {
  --tilt: -2deg;
  width: 330px; padding: 24px;
  background: var(--card);
  margin-left: -30px;
  box-shadow: var(--shadow-card), 0 0 0 1px var(--frame-edge);
  z-index: 3;
}
.fan-card.slot-3 {
  --tilt: 4deg;
  width: 280px; padding: 26px;
  background: var(--deepcyan);
  margin-left: -28px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--deepcyan-edge);
  z-index: 4;
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.card-kicker { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.slot-1 .card-kicker { color: var(--magenta-deep); }

/* source logo badges — exact brand glyphs on a chip */
.logo-badge {
  width: 24px; height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-badge svg { width: 13px; height: 13px; display: block; }
.badge-light { background: var(--paper); color: #171514; }
.badge-dark { background: var(--card); color: var(--paper); box-shadow: 0 0 0 1px var(--frame-edge); }
/* LinkedIn "in" always in brand blue so it never reads like the X glyph */
.logo-badge.src-in { color: #0a66c2; }

.card-time { font-size: 13px; font-style: italic; color: var(--text-muted); }
.slot-1 .card-time { color: var(--ink-muted); }
.slot-3 .card-time { color: var(--oncyan-muted); }

.card-engagement { font-size: 12px; font-style: italic; color: var(--text-muted); margin-top: 14px; }
.slot-1 .card-engagement { color: var(--ink-muted); margin-top: 16px; }
.slot-3 .card-engagement { color: var(--oncyan-muted); margin-top: 16px; }

/* post body variants */
.post-body { font-size: 15px; line-height: 1.6; color: var(--text-2); }
.post-body .dropcap { font-size: 34px; float: left; line-height: 0.9; padding-right: 8px; color: var(--text); }
.slot-1 .post-body { color: var(--ink-2); }
.slot-1 .post-body .dropcap { color: var(--ink); }
.slot-3 .post-body { color: var(--oncyan-1); }
.slot-3 .post-body .dropcap { color: var(--oncyan-3); }

.x-body { font-size: 18px; line-height: 1.45; font-weight: 600; }
.slot-0 .x-body, .slot-2 .x-body { font-weight: 400; font-size: 17px; line-height: 1.5; color: var(--text-2); }
.slot-3 .x-body { font-weight: 400; font-style: italic; color: var(--oncyan-2); }

/* halftone image block */
.halftone {
  height: 150px;
  border-radius: var(--radius-img);
  background: radial-gradient(#3a332e 1.4px, var(--card) 1.4px);
  background-size: 7px 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.halftone img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
}
.halftone.has-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(23, 21, 20, 0.45) 1.1px, transparent 1.1px);
  background-size: 6px 6px;
  pointer-events: none;
}
.halftone-caption {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--card);
  padding: 4px 8px;
}

.card-title { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.slot-3 .card-title { color: var(--oncyan-3); }

.card-desc { font-size: 14px; line-height: 1.6; color: var(--text-2); }
.slot-1 .card-desc { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.slot-3 .card-desc { font-size: 15px; line-height: 1.55; color: var(--oncyan-1); }

.card-tech { font-size: 12px; font-style: italic; color: var(--text-muted); margin-top: 14px; }
.slot-1 .card-tech { color: var(--ink-muted); margin-top: 16px; }
.slot-3 .card-tech { color: var(--oncyan-muted); margin-top: 16px; }
.card-tech a { color: inherit; }
.card-tech a:hover { color: var(--cyan); }

/* milestones & certificates — straight 2-up horizontal cards */
.mile-fan { gap: 24px; }

.mile-card {
  display: flex;
  gap: 24px;
  width: 610px;
  flex-shrink: 0;
  border-radius: var(--radius-card);
  padding: 26px;
  position: relative;
  --lift: -6px;
  --lift-scale: 1.02;
}
.mile-card.mc-0 {
  background: var(--card);
  box-shadow: var(--shadow-card), 0 0 0 1px var(--frame-edge);
}
.mile-card.mc-1 {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
.mile-card.mc-2 {
  background: var(--deepcyan);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--deepcyan-edge);
}

.mile-img {
  width: 210px;
  height: 200px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.mile-body { min-width: 0; padding-bottom: 30px; }

.mile-title { font-size: 22px; font-weight: 600; line-height: 1.25; }
.mc-2 .mile-title { color: var(--oncyan-3); }

.mile-date { font-size: 13px; font-style: italic; color: var(--text-muted); margin-top: 6px; }
.mc-1 .mile-date { color: var(--ink-muted); }
.mc-2 .mile-date { color: var(--oncyan-muted); }

.mile-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  margin-top: 16px;
}
.mc-1 .mile-bullets { color: var(--ink-2); }
.mc-2 .mile-bullets { color: var(--oncyan-1); }
.mc-1 .mile-bullets .bullet-marker { color: var(--magenta-deep); }

.mile-link { position: absolute; right: 20px; bottom: 20px; }
.mc-1 .mile-link { border-color: var(--ink-muted); color: var(--ink-2); }
a.mile-link:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.mc-1 a.mile-link:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* arrows */
.fan-arrows { margin-left: 32px; display: flex; flex-direction: column; gap: 12px; }

.arrow {
  width: 54px; height: 54px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-family: var(--serif);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.arrow-solid { background: var(--paper); color: var(--ink); }
.arrow-solid:hover { transform: scale(1.08); }
.arrow-ghost { border: 1px solid var(--border-neutral); color: var(--text-2); }
.arrow-ghost:hover { border-color: var(--text-2); transform: scale(1.08); }

/* ── index previews (library rows / github rows) ─────── */
.index-preview { padding: 40px var(--pad-x) 0; }

.index-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.preview-link { font-size: 17px; font-style: italic; color: var(--cyan); font-weight: 600; }
.preview-link:hover { color: var(--cyan-light); text-decoration: underline; text-underline-offset: 4px; }

.index-row {
  display: grid;
  grid-template-columns: 110px 90px 1fr 48px;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: center;
}
.index-row:last-child { border-bottom: none; }
.index-row.gh { grid-template-columns: 110px 260px 1fr 48px; }

/* clickable rows */
.row-link { cursor: pointer; }
.row-link:hover .row-text,
.row-link:hover .archive-text,
.row-link:hover .wire-text { text-decoration: underline; text-underline-offset: 3px; color: var(--text); }
.row-link:hover .row-arrow { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.row-link:hover .row-repo { text-decoration: underline; text-underline-offset: 3px; }

.row-arrow {
  width: 30px; height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border-neutral);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  justify-self: end;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.row-date { font-size: 13px; font-style: italic; color: var(--text-faint); }
.row-source { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.row-source.src-linkedin { color: var(--cyan); }
.row-source.src-x { color: var(--magenta); }
.row-repo { font-size: 14px; color: var(--cyan); }
.row-text { font-size: 16px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-count { font-size: 13px; font-style: italic; color: var(--text-faint); text-align: right; }

/* ── case files ───────────────────────────────────────── */
.dossier-wrap { display: flex; padding: 0 var(--pad-x); }
.dossier-wrap.first { padding-top: 40px; }
.dossier-wrap:not(.first) { margin-top: -28px; }
.dossier-wrap.left { justify-content: flex-start; }
.dossier-wrap.right { justify-content: flex-end; }

.dossier {
  border-radius: var(--radius-card);
  padding: 36px 40px;
}
.dossier.d-0 {
  --tilt: -1.5deg;
  width: 760px;
  background: var(--card);
  box-shadow: var(--shadow-card-lg), 0 0 0 1px var(--frame-edge);
  z-index: 1;
}
.dossier.d-1 {
  --tilt: 1.5deg;
  width: 700px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
  z-index: 2;
}
.dossier.d-2 {
  --tilt: -1deg;
  width: 720px;
  background: var(--deepcyan);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--deepcyan-edge);
  margin-left: 60px;
  z-index: 3;
}

.dossier-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.dossier-kicker { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); }
.d-1 .dossier-kicker { color: var(--magenta-deep); }

/* dates/location: readable — bigger, bolder, upright */
.dossier-dates { font-size: 15px; font-weight: 600; color: var(--text-2); }
.d-1 .dossier-dates { color: var(--ink-2); }
.d-2 .dossier-dates { color: var(--oncyan-1); }

/* role leads big; company follows small */
.dossier-role { font-size: 32px; font-weight: 600; margin-top: 10px; }
.d-2 .dossier-role { color: var(--oncyan-3); }

.dossier-company { font-size: 15px; font-style: italic; color: var(--text-muted); margin: 4px 0 22px; }
.d-1 .dossier-company { color: var(--ink-muted); }
.d-2 .dossier-company { color: var(--oncyan-muted); }

.dossier-bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
}
.d-1 .dossier-bullets { color: var(--ink-2); }
.d-2 .dossier-bullets { color: var(--oncyan-1); }

.bullet-marker { color: var(--cyan); }
.d-1 .bullet-marker { color: var(--magenta-deep); }

.exhibit-row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.exhibit-chip {
  display: inline-block;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  background: var(--deepcyan);
  color: var(--cyan-light);
  box-shadow: 0 0 0 1px var(--deepcyan-edge);
}
.d-1 .exhibit-chip { background: var(--magenta-tint); color: var(--magenta-deep); box-shadow: none; }
.d-2 .exhibit-chip { background: #0b1c21; }

/* ── credentials ──────────────────────────────────────── */
.credentials { padding: 72px var(--pad-x) 0; }
.creds-heading { margin-bottom: 36px; }

.creds-row { display: flex; gap: 8px; }

.diploma {
  border-radius: var(--radius-card);
  width: 480px;
  padding: 32px 36px;
  position: relative;
}
.diploma.dp-0 {
  --tilt: -2deg;
  background: var(--paper); color: var(--ink);
  box-shadow: var(--shadow-card);
}
.diploma.dp-1 {
  --tilt: 1.5deg;
  background: var(--card);
  box-shadow: var(--shadow-card), 0 0 0 1px var(--frame-edge);
  margin-top: 20px;
}

.diploma-seal {
  position: absolute;
  top: 22px; right: 26px;
  width: 80px; height: 80px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 6px;
}
.dp-0 .diploma-seal {
  border: 3px solid rgba(176, 0, 90, 0.75);
  color: rgba(176, 0, 90, 0.95);
  transform: rotate(12deg);
}
.dp-1 .diploma-seal {
  border: 3px solid rgba(51, 181, 218, 0.7);
  color: rgba(51, 181, 218, 0.95);
  transform: rotate(-10deg);
}

.diploma-status { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
.dp-0 .diploma-status { color: var(--ink-muted); }

.diploma-school { font-size: 27px; font-weight: 600; margin-top: 12px; max-width: 300px; }

.diploma-degree { font-size: 16px; font-style: italic; margin-top: 8px; color: var(--text-2); }
.dp-0 .diploma-degree { color: var(--ink-2); }

.diploma-dates { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 18px; color: var(--text-muted); }
.dp-0 .diploma-dates { color: var(--ink-muted); }

/* ── footer ───────────────────────────────────────────── */
.footer {
  padding: 36px var(--pad-x) 48px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--hairline);
}

.footer-tag { font-size: 15px; font-style: italic; color: var(--text-muted); }

.footer-links { display: flex; gap: 28px; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.footer-links a:hover { color: var(--cyan); }

/* ═══════════════════════════════════════════════════════
   Library pages (feed library + workshop + contact)
   ═══════════════════════════════════════════════════════ */
.lib-masthead {
  padding: 40px var(--pad-x-lib) 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.lib-name { font-size: 22px; font-weight: 600; }

.lib-back { font-size: 14px; font-style: italic; color: var(--text-2); }
.lib-back:hover { color: var(--cyan-light); }

.lib-head { padding: 64px var(--pad-x-lib) 24px; }

.lib-title { font-size: 56px; font-weight: 600; letter-spacing: -0.02em; }
.title-accent { font-weight: 400; color: var(--magenta); }

.lib-sub { font-size: 17px; font-style: italic; color: var(--text-muted); margin-top: 12px; }

.lib-tabs {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  font-size: 15px;
  align-items: baseline;
}

.lib-tab { font-size: 15px; color: var(--text-muted); padding-bottom: 6px; border-bottom: 2px solid transparent; }
.lib-tab.active { color: var(--text); border-bottom-color: var(--cyan); }
.lib-tab.tab-x.active { border-bottom-color: var(--magenta); }
.lib-tab:hover:not(.active) { color: var(--text-2); }

.tab-count { color: var(--text-faint); }

.lib-spacer { flex: 1; }

.lib-search {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-neutral);
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--text);
  text-align: right;
  width: 220px;
  padding-bottom: 4px;
}
.lib-search::placeholder { color: var(--text-2); }
.lib-search:focus { outline: none; border-bottom-color: var(--paper); }

.lib-tabnote { font-size: 14px; font-style: italic; color: var(--text-faint); }

.lib-body { padding: 16px var(--pad-x-lib) 56px; }

/* month headers + archive rows (All tab) */
.month-label {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 24px 0 8px;
}
.month-label + .month-label,
.archive-row + .month-label { margin-top: 40px; }

.archive-row {
  display: grid;
  grid-template-columns: 90px 60px 1fr 48px;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: center;
}

.archive-text { font-size: 17px; color: var(--text-row); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.attach-note { font-size: 13px; font-style: italic; color: var(--text-faint); }

.load-more-wrap { text-align: center; margin-top: 44px; }
.load-more { font-size: 15px; font-style: italic; color: var(--cyan); }
.load-more:hover { color: var(--cyan-light); }
.load-more.magenta { color: var(--magenta); }
.load-more.magenta:hover { color: var(--magenta-light); }

/* LinkedIn tab / Projects tab — lead + thumb rows */
.article-grid {
  padding-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.lead-halftone {
  height: 240px;
  border-radius: var(--radius-img);
  background: radial-gradient(#3a332e 1.4px, var(--ground) 1.4px);
  background-size: 7px 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.lead-halftone img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) contrast(1.05); }
.lead-halftone.has-img::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(rgba(23, 21, 20, 0.45) 1.1px, transparent 1.1px);
  background-size: 6px 6px;
  pointer-events: none;
}
.lead-halftone .halftone-caption { background: var(--ground); }

.lead-meta { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }

.lead-headline { font-size: 27px; font-weight: 600; line-height: 1.25; margin-bottom: 16px; }

.lead-excerpt { font-size: 15px; line-height: 1.7; color: var(--text-2); }
.lead-excerpt .dropcap-lg { font-size: 42px; float: left; line-height: 0.85; padding-right: 9px; color: var(--text); }

.lead-cta { display: inline-block; font-size: 14px; font-style: italic; color: var(--cyan); margin-top: 16px; }
.lead-cta:hover { color: var(--cyan-light); }

.thumb-col { display: flex; flex-direction: column; gap: 36px; }

/* long lists scroll inside the column, not the page */
.thumb-col.scrolling {
  max-height: 720px;
  overflow-y: auto;
  padding-right: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-neutral) transparent;
}
.thumb-col.scrolling::-webkit-scrollbar { width: 6px; }
.thumb-col.scrolling::-webkit-scrollbar-thumb { background: var(--border-neutral); border-radius: 999px; }
.thumb-col.scrolling::-webkit-scrollbar-track { background: transparent; }

.thumb-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: start;
}

.thumb-halftone {
  height: 104px;
  border-radius: var(--radius-img);
  background: radial-gradient(#3a332e 1.4px, var(--ground) 1.4px);
  background-size: 6px 6px;
  position: relative;
  overflow: hidden;
}
.thumb-halftone img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) contrast(1.05); }
.thumb-halftone.has-img::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(rgba(23, 21, 20, 0.45) 1px, transparent 1px);
  background-size: 5px 5px;
  pointer-events: none;
}

.thumb-meta { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }

.thumb-headline { font-size: 18px; font-weight: 600; line-height: 1.35; }
a.thumb-headline-link:hover .thumb-headline { color: var(--cyan-light); }

.col-footer-link { font-size: 15px; font-style: italic; color: var(--cyan); }
.col-footer-link:hover { color: var(--cyan-light); }

/* X wire tab — simple bulleted list */
.wire-list {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  max-width: 820px;
}

.wire-entry {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}
.wire-entry:last-child { border-bottom: none; }

.wire-bullet {
  width: 9px; height: 9px;
  border-radius: 999px;
  border: 2px solid var(--border-neutral);
  flex-shrink: 0;
  margin-top: 6px;
}

.wire-entry-body { min-width: 0; }

.wire-time { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }

.wire-text { font-size: 17px; line-height: 1.55; color: var(--text-row); }

/* GitHub live tab */
.repo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  max-width: 820px;
}

.repo-block { padding: 24px 0; border-bottom: 1px solid var(--hairline); min-width: 0; }

.repo-head { display: flex; align-items: baseline; gap: 12px; }

.repo-ring {
  width: 9px; height: 9px;
  border-radius: 999px;
  flex-shrink: 0;
  position: relative;
  top: -1px;
}
.repo-block.alt-cyan .repo-ring { border: 2px solid var(--cyan); }
.repo-block.alt-magenta .repo-ring { border: 2px solid var(--magenta); }

.repo-name { font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.repo-block.alt-cyan .repo-name { color: var(--cyan-light); }
.repo-block.alt-magenta .repo-name { color: var(--magenta-light); }
a.repo-name:hover { text-decoration: underline; }

.repo-updated { font-size: 13px; font-style: italic; color: var(--text-faint); }

.repo-commits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 0 4px;
  padding-left: 17px;
  border-left: 1px solid var(--hairline);
}

.commit-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--mono);
  font-size: 13px;
}
a.commit-line:hover .commit-msg { text-decoration: underline; text-underline-offset: 3px; color: var(--text); }
.commit-msg { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.commit-time { color: var(--text-faint); flex-shrink: 0; }

.repo-footer { text-align: center; margin-top: 44px; }

/* ── contact ──────────────────────────────────────────── */
.contact-body {
  padding: 24px var(--pad-x-lib) 80px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 72px;
  align-items: start;
}

.contact-form { display: flex; flex-direction: column; gap: 28px; }

.field { display: flex; flex-direction: column; gap: 10px; }

.field-label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }

.field input, .field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-neutral);
  padding: 10px 2px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--text);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--cyan);
}

.contact-actions { display: flex; align-items: center; gap: 24px; margin-top: 8px; }

.btn-transmit {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 34px;
  border-radius: 999px;
  transition: transform 0.2s ease;
}
.btn-transmit:hover { transform: scale(1.04); }
.btn-transmit:disabled { opacity: 0.5; cursor: wait; }

.contact-status { font-size: 14px; font-style: italic; color: var(--text-muted); }
.contact-status.ok { color: var(--cyan); }
.contact-status.err { color: var(--magenta); }

.contact-aside { display: flex; flex-direction: column; gap: 16px; font-size: 16px; padding-top: 34px; }
.contact-aside a { color: var(--cyan); font-style: italic; }
.contact-aside a:hover { color: var(--cyan-light); }
.contact-aside .smallcaps-label { margin-bottom: 6px; }

/* ── empty / loading states ───────────────────────────── */
.state-note {
  font-size: 14px;
  font-style: italic;
  color: var(--text-faint);
  padding: 24px 0;
}

/* ═══════════════════════════════════════════════════════
   Mobile
   ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  :root { --pad-x: 24px; --pad-x-lib: 24px; }

  .masthead-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .masthead-name { font-size: 40px; }
  .masthead-nav { flex-wrap: wrap; gap: 16px; padding-top: 0; }

  .hero { padding: 56px var(--pad-x) 48px; }
  .hero-headline { font-size: 44px; }
  .hero-cols { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
  .hero-standfirst { font-size: 18px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-heading { font-size: 32px; }

  /* fans -> single-card swipe carousel, no overlap */
  .fan-row { flex-direction: column; align-items: stretch; padding: 32px 0 8px; }
  .fan {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 12px var(--pad-x) 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .fan::-webkit-scrollbar { display: none; }
  .fan-card.slot-0, .fan-card.slot-1, .fan-card.slot-2, .fan-card.slot-3 {
    --tilt: 0deg;
    width: 85vw;
    max-width: 360px;
    margin-left: 0;
    flex-shrink: 0;
    scroll-snap-align: center;
  }
  .hovergroup:has(.tcard:hover) .tcard:not(:hover) { filter: none; }
  .tcard:hover { transform: none; }
  .fan-arrows { display: none; }

  .mile-card {
    width: 85vw;
    max-width: 360px;
    flex-direction: column;
    scroll-snap-align: center;
  }
  .mile-img { width: 100%; height: 150px; }

  .index-row { grid-template-columns: 60px 32px 1fr 34px; gap: 12px; }
  .index-row.gh { grid-template-columns: 60px 1fr 34px; }
  .index-row.gh .row-text { grid-column: 1 / -1; }
  .row-text { white-space: normal; }
  .row-arrow { width: 26px; height: 26px; font-size: 12px; }

  /* dossiers stack full width, straight (no tilt on mobile) */
  .dossier-wrap { padding: 0 var(--pad-x); }
  .dossier-wrap:not(.first) { margin-top: 20px; }
  .dossier.d-0, .dossier.d-1, .dossier.d-2 {
    --tilt: 0deg;
    width: 100%;
    margin-left: 0;
    padding: 26px 24px;
  }
  /* kicker / dates stack so they never collide */
  .dossier-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .dossier-role { font-size: 26px; }

  .credentials { padding: 56px var(--pad-x) 0; }
  .creds-row { flex-direction: column; gap: 20px; }
  .diploma { width: 100%; }
  .diploma.dp-1 { margin-top: 0; }

  .footer { flex-direction: column; gap: 16px; }

  .lib-title { font-size: 38px; }
  .lib-tabs { flex-wrap: wrap; gap: 20px; }
  .lib-search { width: 100%; text-align: left; }

  .archive-row { grid-template-columns: 56px 30px 1fr 32px; gap: 12px; }
  .archive-text { font-size: 15px; }

  .article-grid { grid-template-columns: 1fr; }
  .thumb-col.scrolling { max-height: none; overflow: visible; }
  .repo-grid { grid-template-columns: minmax(0, 1fr); max-width: 100%; }

  /* github live: keep blocks inside the viewport */
  .repo-head { flex-wrap: wrap; row-gap: 4px; }
  .repo-name { font-size: 17px; }
  .repo-commits { margin-left: 2px; padding-left: 12px; }
  .commit-line { gap: 12px; min-width: 0; }
  .commit-msg { flex: 1 1 auto; }
  .commit-time { font-size: 11px; }

  .contact-body { grid-template-columns: 1fr; gap: 48px; }
}
