:root {
  --bg: #05070d;
  --bg-2: #090d16;
  --line: rgba(148, 163, 184, 0.14);
  --line-hot: rgba(148, 163, 184, 0.32);
  --ink: #e8eef7;
  --ink-dim: #93a1b8;
  --ink-faint: #5b697f;
  --accent: #5eead4;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Quicksand, ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Texture + the slow arc field behind everything */
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.35;
  background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}
.arcfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5; }

/* ── Top bar ─────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(5,7,13,0.92), rgba(5,7,13,0.55) 70%, transparent);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--accent);
  border-right-color: transparent; border-bottom-color: transparent;
  box-shadow: 0 0 18px rgba(94,234,212,0.45);
  animation: spin 5.5s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.brand-text { font-weight: 700; letter-spacing: 0.16em; font-size: 13px; }
.brand-thin { font-weight: 400; color: var(--ink-dim); }

.pulse {
  display: flex; align-items: center; gap: 9px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 13px; background: rgba(9,13,22,0.7);
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint);
  box-shadow: 0 0 0 0 rgba(74,222,128,0.55);
}
.pulse-dot.live { background: #4ade80; animation: ping 2.4s var(--ease) infinite; }
.pulse-dot.part { background: #facc15; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  70% { box-shadow: 0 0 0 9px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.view { position: relative; z-index: 1; flex: 1; padding: 0 clamp(16px, 4vw, 40px) 80px; }

/* ── Hero ────────────────────────────────────────────── */
.hero { max-width: 1180px; margin: clamp(36px, 9vh, 90px) auto clamp(40px, 7vh, 72px); text-align: center; }
.hero-kicker {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.34em;
  color: var(--ink-faint); text-transform: uppercase; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(38px, 7.5vw, 82px); font-weight: 700; line-height: 1.02;
  letter-spacing: -0.02em; margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, #5eead4, #818cf8 48%, #f472b6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p {
  color: var(--ink-dim); font-size: clamp(15px, 1.9vw, 19px); line-height: 1.65;
  max-width: 620px; margin: 0 auto;
}
.hero-stats {
  display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(20px, 5vw, 54px);
  margin-top: 42px; padding-top: 32px; border-top: 1px solid var(--line);
}
.stat-n {
  font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.stat-l {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.2em;
  color: var(--ink-faint); text-transform: uppercase; margin-top: 6px;
}

/* ── Card grid ───────────────────────────────────────── */
.grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px;
}
.card {
  --a: var(--accent);
  position: relative; display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15,21,34,0.86), rgba(7,10,17,0.9));
  overflow: hidden; isolation: isolate;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit; opacity: 0; transition: opacity 0.45s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--a) 16%, transparent), transparent 62%);
}
.card:hover { transform: translateY(-5px); border-color: var(--line-hot); box-shadow: 0 22px 60px -18px rgba(0,0,0,0.85); }
.card:hover::before { opacity: 1; }

.card-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #070a11; }
.card-shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 0.85s var(--ease), filter 0.5s var(--ease);
  filter: saturate(0.98) brightness(0.95);
}
.card:hover .card-shot img { transform: scale(1.045); filter: saturate(1.05) brightness(1); }
.card-shot .card-vid {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 0.85s var(--ease), filter 0.5s var(--ease);
  filter: saturate(1) brightness(1);
}
.card:hover .card-shot .card-vid { transform: scale(1.045); filter: saturate(1.08) brightness(1.08); }
.card-shot::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(7,10,17,0.72) 72%, rgba(7,10,17,0.97));
}
.card-chip {
  position: absolute; z-index: 3; top: 12px; left: 12px;
  display: flex; align-items: center; gap: 7px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.08em;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(5,7,13,0.72); border: 1px solid var(--line); backdrop-filter: blur(8px);
  color: var(--ink-dim);
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); }
.chip-dot.up { background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,0.8); }
.chip-dot.down { background: #64748b; }

.card-body { position: relative; z-index: 3; padding: 4px 20px 22px; margin-top: -34px; }
.card-body h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.card-tag { color: var(--a); font-size: 12.5px; margin-top: 4px; font-weight: 600; }
.card-body p { color: var(--ink-dim); font-size: 13.5px; line-height: 1.6; margin-top: 11px; }
.card-go {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em;
  color: var(--a); text-transform: uppercase;
}
.card-go svg { transition: transform 0.35s var(--ease); }
.card:hover .card-go svg { transform: translateX(4px); }

/* ── Detail ──────────────────────────────────────────── */
.detail { max-width: 1120px; margin: 0 auto; padding-top: 18px; }
.back {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  color: var(--ink-faint); font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 30px;
  transition: color 0.3s var(--ease);
}
.back:hover { color: var(--ink); }

.d-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 30px; margin-bottom: 12px; }
.d-head h1 { font-size: clamp(30px, 5.5vw, 54px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }
.d-domain {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-faint);
  padding-bottom: 8px;
}
.d-tag { color: var(--a); font-size: clamp(15px, 2.2vw, 19px); font-weight: 600; margin-bottom: 26px; }

.d-cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .d-cols { grid-template-columns: 1fr; } }
.d-story { color: var(--ink-dim); font-size: 15.5px; line-height: 1.8; }
.d-side { display: flex; flex-direction: column; gap: 24px; }

.d-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.d-list li {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 14px; color: var(--ink-dim); line-height: 1.55;
}
.d-list li::before {
  content: ''; flex: none; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%;
  background: var(--a); box-shadow: 0 0 10px color-mix(in srgb, var(--a) 70%, transparent);
}
.d-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.d-stack span {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.06em;
  padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-dim); background: rgba(15,21,34,0.6);
}
.d-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px;
}

/* Under-the-hood panel — the in-the-weeds technical read */
.d-deep {
  margin-top: clamp(36px, 6vh, 60px); max-width: 860px;
  padding: 22px clamp(20px, 3vw, 28px);
  border: 1px solid var(--line); border-left: 2px solid var(--a);
  border-radius: var(--radius); background: rgba(9,13,22,0.5);
}
.d-deep p { color: var(--ink-dim); font-size: 14.5px; line-height: 1.85; }

/* Explore panel */
.explore { margin-top: clamp(40px, 7vh, 72px); }
.ex-frame {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #070a11;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.9);
}
.ex-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); background: rgba(9,13,22,0.9);
}
.ex-dots { display: flex; gap: 6px; }
.ex-dots i { width: 9px; height: 9px; border-radius: 50%; }
.ex-dots i:nth-child(1) { background: #f87171; }
.ex-dots i:nth-child(2) { background: #facc15; }
.ex-dots i:nth-child(3) { background: #4ade80; }
.ex-url {
  flex: 1; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-faint);
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ex-live {
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.12em;
  color: #4ade80; border: 1px solid rgba(74,222,128,0.35); border-radius: 999px; padding: 3px 8px;
}
.ex-live.static { color: var(--ink-faint); border-color: var(--line); }
.ex-frame iframe { display: block; width: 100%; height: min(72vh, 720px); border: 0; background: #fff; }

/* Static walkthrough */
.wt { display: grid; grid-template-columns: 1fr; }
.wt-stage { position: relative; background: #070a11; }
.wt-stage img { display: block; width: 100%; height: auto; }
.wt-cap {
  display: flex; gap: 14px; align-items: baseline;
  padding: 16px 18px; border-top: 1px solid var(--line); background: rgba(9,13,22,0.9);
}
.wt-cap b { font-size: 14px; font-weight: 700; }
.wt-cap span { color: var(--ink-dim); font-size: 13px; line-height: 1.5; }
.wt-rail { display: flex; gap: 10px; overflow-x: auto; padding: 14px; border-top: 1px solid var(--line); }
.wt-rail button {
  flex: none; width: 118px; padding: 0; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: #070a11; overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), opacity 0.3s var(--ease);
  opacity: 0.55;
}
.wt-rail button img { display: block; width: 100%; height: 68px; object-fit: cover; object-position: top center; }
.wt-rail button:hover { opacity: 0.9; transform: translateY(-2px); }
.wt-rail button.on { opacity: 1; border-color: var(--a); box-shadow: 0 0 0 1px var(--a); }

.ex-note {
  margin-top: 14px; font-size: 12.5px; color: var(--ink-faint); line-height: 1.6;
  display: flex; gap: 9px; align-items: flex-start;
}
.ex-note::before { content: '·'; color: var(--a); font-weight: 700; }

/* Mobile shot */
.d-phone { margin-top: clamp(40px, 7vh, 72px); display: flex; gap: clamp(24px, 5vw, 56px); align-items: center; flex-wrap: wrap; }
.phone-frame {
  flex: none; width: min(260px, 62vw); border-radius: 30px; padding: 9px;
  border: 1px solid var(--line-hot); background: linear-gradient(180deg, #131a29, #070a11);
  box-shadow: 0 30px 70px -22px rgba(0,0,0,0.95);
}
/* The mobile captures are full-page and very tall — crop to a phone viewport so the
   frame reads as a handset rather than a paper strip. */
.phone-frame img {
  display: block; width: 100%; aspect-ratio: 9 / 19.5;
  object-fit: cover; object-position: top center; border-radius: 22px;
}
.d-phone-copy { flex: 1; min-width: 240px; }
.d-phone-copy p { color: var(--ink-dim); font-size: 14.5px; line-height: 1.75; margin-top: 12px; }

.foot {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 26px clamp(16px, 4vw, 40px); border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--ink-faint);
}

.fade-in { animation: fade 0.6s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Milestones band — the estate's record, between the hero and the grid (2026-08-30) */
.marks {
  max-width: 1180px; margin: 0 auto clamp(40px, 7vh, 72px);
  padding: 0 clamp(16px, 4vw, 28px);
}
.marks-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.3em;
  color: var(--ink-faint); text-transform: uppercase; text-align: center; margin-bottom: 22px;
}
.marks-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 3 + 3, not a ragged 4 + 2 */
}
.mark {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(9,13,22,0.5); padding: 18px 20px 20px;
}
.mark-n {
  font-family: 'JetBrains Mono', monospace; font-size: 26px; font-weight: 500;
  line-height: 1; letter-spacing: -0.02em;
  background: linear-gradient(96deg, #5eead4, #818cf8 60%, #f472b6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mark-l {
  font-size: 12.5px; font-weight: 600; margin-top: 7px; color: var(--ink);
}
.mark p { color: var(--ink-dim); font-size: 13px; line-height: 1.6; margin-top: 9px; }

/* ══════════════════════════════════════════════════════════════════════════
   PORTFOLIO PASS — 2026-08-30
   The index stopped being a wall of 38 cards and became three chapters:
   self-hosted, reverse-engineered, original. Everything below serves that.
   --k is the chapter colour, inherited down from .chapter / .detail / a pill.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --k-selfhosted: #5eead4;
  --k-reversed: #f6a94a;
  --k-original: #f472b6;
  --k: var(--accent);
  --shell: 1180px;
}

/* ── Hero, re-cut editorial ──────────────────────────── */
.hero { text-align: left; max-width: var(--shell); }
.hero h1 { max-width: 19ch; }
.hero p { margin: 0; max-width: 62ch; }
.hero-stats { justify-content: flex-start; gap: clamp(26px, 6vw, 68px); }
@media (max-width: 640px) {
  .hero { text-align: center; }
  .hero h1 { max-width: none; }
  .hero p { margin: 0 auto; }
  .hero-stats { justify-content: center; }
}

/* ── Section eyebrow, shared ─────────────────────────── */
.sec-eyebrow {
  max-width: var(--shell); margin: 0 auto 20px;
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--ink);
}
.sec-eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--line-hot); align-self: center;
}
.sec-eyebrow span { letter-spacing: 0.14em; color: var(--ink-faint); text-transform: none; font-size: 11px; }

/* ── Selected work ───────────────────────────────────── */
.feat { max-width: var(--shell); margin: 0 auto clamp(44px, 8vh, 78px); }
.feat-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.feat-card {
  position: relative; display: flex; flex-direction: column; gap: 7px;
  text-decoration: none; color: inherit; overflow: hidden;
  padding: 24px 22px 22px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--k) 9%, transparent), transparent 62%),
    linear-gradient(180deg, rgba(15,21,34,0.7), rgba(7,10,17,0.9));
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.feat-card:hover {
  transform: translateY(-4px); border-color: color-mix(in srgb, var(--k) 42%, var(--line));
  box-shadow: 0 22px 60px -20px rgba(0,0,0,0.9);
}
.feat-art { width: 40px; height: 40px; margin-bottom: 6px; opacity: 0.9; }
.feat-art svg { width: 100%; height: 100%; }
.feat-kind {
  font-family: "JetBrains Mono", monospace; font-size: 9.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--k);
}
.feat-card h3 { font-size: 23px; font-weight: 700; letter-spacing: -0.015em; }
.feat-card p { color: var(--ink-dim); font-size: 13.5px; line-height: 1.6; }
.feat-card .card-go { color: var(--k); margin-top: 10px; }
.feat-card:hover .card-go svg { transform: translateX(4px); }

/* ── Filter rail ─────────────────────────────────────── */
.fbar {
  position: sticky; top: 58px; z-index: 15;
  max-width: var(--shell); margin: 0 auto clamp(34px, 6vh, 56px);
  display: flex; flex-wrap: wrap; gap: 9px;
  padding: 11px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(7,10,17,0.82); backdrop-filter: blur(16px);
}
.fpill {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 8px 15px 8px 11px; border-radius: 999px;
  border: 1px solid transparent; background: transparent; color: var(--ink-dim);
  font-family: inherit; font-size: 13px; font-weight: 600;
  transition: color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.fpill > span { white-space: nowrap; }
.fpill b {
  font-family: "JetBrains Mono", monospace; font-size: 10.5px; font-weight: 500;
  color: var(--ink-faint); font-variant-numeric: tabular-nums;
}
.fpill-art { display: block; width: 17px; height: 17px; color: var(--k); opacity: 0.75; }
.fpill-art svg { width: 100%; height: 100%; }
.fpill:hover { color: var(--ink); background: rgba(148,163,184,0.07); }
.fpill.on {
  color: var(--ink); background: color-mix(in srgb, var(--k) 12%, transparent);
  border-color: color-mix(in srgb, var(--k) 38%, transparent);
}
.fpill.on b { color: var(--k); }
.fpill.on .fpill-art { opacity: 1; }
@media (max-width: 560px) {
  .fbar { border-radius: var(--radius); position: static; }
  .fpill { font-size: 12.5px; padding: 7px 12px 7px 9px; }
}

/* ── Chapter ─────────────────────────────────────────── */
.chapter { max-width: var(--shell); margin: 0 auto clamp(56px, 10vh, 104px); }
.chap-head {
  display: grid; grid-template-columns: 78px 1fr; gap: clamp(18px, 3vw, 30px);
  align-items: start; margin-bottom: clamp(26px, 4vh, 38px);
  padding-bottom: clamp(22px, 3.5vh, 32px);
  border-bottom: 1px solid var(--line);
}
.chap-art { width: 78px; height: 78px; color: var(--k); opacity: 0.92; }
.chap-art svg { width: 100%; height: 100%; }
.chap-n {
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.24em;
  color: var(--k); margin-bottom: 8px;
}
.chap-copy h2 {
  font-size: clamp(26px, 4.4vw, 42px); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.05;
}
.chap-line {
  color: var(--ink); font-size: clamp(14.5px, 1.9vw, 17px); line-height: 1.6;
  margin-top: 11px; max-width: 56ch;
}
.chap-body {
  color: var(--ink-dim); font-size: 14px; line-height: 1.75; margin-top: 10px; max-width: 66ch;
}
@media (max-width: 560px) {
  .chap-head { grid-template-columns: 1fr; }
  .chap-art { width: 54px; height: 54px; }
}

/* The kind is said once, in the chapter header. Each card carries only a quiet
   chapter-coloured rule along its top edge — context without 38 repeated words. */
.chapter .grid { max-width: none; }
.chapter .card::after {
  content: ''; position: absolute; z-index: 4; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--k), color-mix(in srgb, var(--k) 12%, transparent));
  opacity: 0.5; transition: opacity 0.45s var(--ease);
}
.chapter .card:hover::after { opacity: 1; }

/* ── Detail: the kind, stated ────────────────────────── */
.d-meta {
  display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.d-kind {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--k);
  padding: 6px 13px 6px 9px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--k) 34%, transparent);
  background: color-mix(in srgb, var(--k) 9%, transparent);
}
.d-kind i { display: block; width: 15px; height: 15px; }
.d-kind i svg { width: 100%; height: 100%; }
.d-kind-line { color: var(--ink-faint); font-size: 13px; line-height: 1.5; }

/* ── Detail: siblings of the same kind ───────────────── */
.d-kin { margin-top: clamp(44px, 8vh, 76px); }
.kin-row {
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}
.kin {
  display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: rgba(9,13,22,0.5); padding-bottom: 12px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.kin img {
  display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top center;
  filter: saturate(0.85) brightness(0.78); transition: filter 0.4s var(--ease);
}
.kin b { font-size: 13.5px; font-weight: 700; padding: 10px 12px 0; }
.kin span { font-size: 11.5px; color: var(--ink-faint); line-height: 1.45; padding: 0 12px; }
.kin:hover { transform: translateY(-3px); border-color: var(--line-hot); }
.kin:hover img { filter: saturate(1) brightness(1); }

/* ── Milestones, retuned to the new rhythm ───────────── */
.marks { padding: 0; }
.marks-grid { gap: 12px; }
.mark { background: rgba(9,13,22,0.45); }
