/* Self-hosted fonts: Inter Tight + JetBrains Mono (SIL OFL 1.1), latin + latin-ext */
/* latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-tight-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-tight-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-tight-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-tight-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/inter-tight-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/inter-tight-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/inter-tight-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/inter-tight-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/inter-tight-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/inter-tight-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   brandynmurtagh.com
   Dark #09090b · layered surfaces · purple accent
   Inter Tight + JetBrains Mono (self-hosted above)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* base */
  --bg: #09090b;
  --surface-1: #111113;
  --surface-2: #18181b;
  --surface-3: #1f1f24;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --hairline: rgba(255, 255, 255, 0.05);

  /* text */
  --text-1: #ededed;
  --text-2: #a1a1aa;
  --text-3: #7d7d85;

  /* accent — evolution of the current purple pill */
  --accent: #5b2fd6;
  --accent-hot: #9776f4;
  --accent-soft: rgba(91, 47, 214, 0.14);
  --accent-soft-2: rgba(91, 47, 214, 0.08);

  /* accent fill — variant tokens (20-fills) */
  --accent-fill: linear-gradient(180deg, #3d2192 0%, #1d1240 45%, #0f0b1c 100%);
  --accent-fill-hover: linear-gradient(180deg, #4a29ad 0%, #24164f 45%, #120d22 100%);
  --accent-fill-pressed: linear-gradient(180deg, #160e30 0%, #0c0916 100%);
  --accent-grad: linear-gradient(135deg, #9776f4 0%, #5b2fd6 100%); /* decorative lines, bullets, progress bar */

  --accent-fill-shadow: inset 0 1px 0 rgba(180, 150, 255, 0.25), inset 0 0 0 1px rgba(151, 118, 244, 0.22), 0 1px 2px rgba(0, 0, 0, 0.6);
  --accent-fill-shadow-hover: inset 0 1px 0 rgba(190, 165, 255, 0.32), inset 0 0 0 1px rgba(151, 118, 244, 0.36), 0 0 0 3px rgba(91, 47, 214, 0.08);
  --accent-fill-shadow-pressed: inset 0 2px 6px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(151, 118, 244, 0.18);
  --accent-fill-shadow-sm: inset 0 1px 0 rgba(180, 150, 255, 0.22), inset 0 0 0 1px rgba(151, 118, 244, 0.2);

  /* status */
  --ok: #4ade80;
  --warn: #fbbf24;

  /* code */
  --code-bg: #0c0c0f;
  --token-comment: #6f7280;
  --token-keyword: #c4b5fd;
  --token-string: #86efac;
  --token-flag: #93c5fd;
  --token-url: #67e8f9;
  --token-punct: #a1a1aa;

  /* type */
  --font-ui: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  /* geometry */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --pill: 999px;

  --container: 1240px;
  --measure: 70ch;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 8px 24px -8px rgba(0, 0, 0, 0.55);
  --shadow-accent: 0 8px 24px -10px rgba(91, 47, 214, 0.55);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 64px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv02", "cv03", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* faint ambient background: soft grid + top glow (very subtle) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 50% -180px, rgba(91, 47, 214, 0.13), transparent 70%),
    radial-gradient(700px 300px at 85% -120px, rgba(151, 118, 244, 0.06), transparent 70%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(760px 480px at 50% -140px, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(760px 480px at 50% -140px, #000 30%, transparent 75%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { padding-left: 1.25em; }

::selection { background: var(--accent-soft); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-hot);
  outline-offset: 2px;
  border-radius: 4px;
}

/* scrollbar (webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #26262c; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

[hidden] { display: none !important; }

/* ---------- Utilities ---------- */
.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-hot);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--accent-grad);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: var(--surface-1);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
a.chip:hover { border-color: var(--accent); color: var(--text-1); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--pill);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, #17171b 0%, #101013 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--text-1);
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  background: linear-gradient(180deg, #1b1b20 0%, #141418 100%);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn-accent {
  background: var(--accent-fill);
  border: 0;
  color: #fff;
  box-shadow: var(--accent-fill-shadow);
}
.btn-accent:hover {
  background: var(--accent-fill-hover);
  box-shadow: var(--accent-fill-shadow-hover);
  transform: translateY(-1px);
}
.btn-accent:active {
  transform: translateY(1px);
  background: var(--accent-fill-pressed);
  box-shadow: var(--accent-fill-shadow-pressed);
}
.btn-ghost { background: transparent; }

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 13px 22px; font-size: 15px; }

.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--pill);
  color: var(--text-2);
  border: 1px solid transparent;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
  flex: none;
}
.icon-btn:hover {
  background: var(--surface-2);
  color: var(--text-1);
  border-color: var(--border);
}
.icon-btn svg { width: 17px; height: 17px; }

kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-2);
}

/* section rhythm */
.section { padding: 56px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-head .sub { color: var(--text-2); margin: 6px 0 0; max-width: 46ch; }
.section-head .more { flex: none; }

/* reveal on load */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 0.6s var(--ease) both; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.12s; }
.rise-3 { animation-delay: 0.19s; }
.rise-4 { animation-delay: 0.26s; }

/* ============================================================
   Navigation — floating glass pill
   ============================================================ */
.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 16px;
  border-radius: var(--pill);
  background: rgba(15, 15, 18, 0.78);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: nav-in 0.7s var(--ease) both;
}
@keyframes nav-in {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 4px;
}
.brand-mark {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-fill);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--accent-fill-shadow-sm);
}
.brand-name {
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand .mono {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px;
}
@media (max-width: 480px) { .brand-name, .brand .mono { display: none; } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
}
.nav-link {
  position: relative;
  padding: 7px 14px;
  border-radius: var(--pill);
  font-size: 13.5px;
  font-weight: 550;
  color: var(--text-2);
  transition: color 0.2s var(--ease);
}
.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  z-index: -1;
}
.nav-link:hover { color: var(--text-1); }
.nav-link:hover::before { opacity: 1; transform: scale(1); }
.nav-link[aria-current="page"] { color: #fff; }
.nav-link[aria-current="page"]::before {
  opacity: 1;
  transform: scale(1);
  background: var(--accent-fill);
  border-color: transparent;
  box-shadow: var(--accent-fill-shadow-sm);
  animation: pill-in 0.45s var(--ease) both;
}
@keyframes pill-in {
  from { transform: scale(0.82); opacity: 0.4; }
  to { transform: scale(1); opacity: 1; }
}

.nav-actions { display: flex; align-items: center; gap: 4px; }

/* Mobile menu — full-screen sheet */
.menu-btn { display: none; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(9, 9, 11, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.mobile-menu[hidden] { display: none; }
.mobile-sheet {
  position: absolute;
  inset: 14px 14px 14px 14px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #121215, #0b0b0e 60%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
  padding: 18px 22px 26px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  animation: sheet-in 0.3s var(--ease) both;
}
@keyframes sheet-in {
  from { opacity: 0; transform: translateY(16px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.mobile-sheet .sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
}
.mobile-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 6px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
  border-bottom: 1px solid var(--hairline);
  transition: color 0.18s var(--ease), padding-left 0.18s var(--ease);
}
.mobile-links a:hover { color: var(--accent-hot); padding-left: 10px; }
.mobile-links a em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}
.mobile-sheet .sheet-search {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface-1);
  color: var(--text-2);
  font-size: 14px;
  width: 100%;
  justify-content: flex-start;
}
.mobile-sheet .sheet-search svg { width: 18px; height: 18px; flex: none; }
.mobile-sheet .sheet-search span { min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-sheet .sheet-socials {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.sheet-socials .icon-btn { border: 1px solid var(--border); background: var(--surface-1); }

/* ============================================================
   Command palette (⌘K)
   ============================================================ */
.palette-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px 20px;
  background: rgba(5, 5, 8, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.palette-overlay[hidden] { display: none; }
.palette {
  width: min(620px, 100%);
  border-radius: var(--radius-lg);
  background: #121215;
  border: 1px solid var(--border-strong);
  box-shadow: 0 32px 64px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  animation: palette-in 0.22s var(--ease) both;
}
@keyframes palette-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.palette-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.palette-input-row svg { width: 18px; height: 18px; color: var(--accent-hot); flex: none; }
.palette-input-row input {
  flex: 1;
  background: none;
  border: 0;
  outline: 0;
  font-size: 16px;
  color: var(--text-1);
}
.palette-input-row input::placeholder { color: var(--text-3); }
.palette-input-row kbd { flex: none; }
.palette-results { max-height: min(440px, 60vh); overflow-y: auto; padding: 8px; }
.palette-group-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 10px 10px 4px;
}
.palette-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-1);
}
.palette-item .pi-main { display: block; min-width: 0; }
.palette-item .pi-title { display: block; font-size: 14px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-item mark { background: none; color: var(--accent-hot); font-weight: 700; }
.palette-item .pi-meta {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.palette-item .pi-type {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hot);
  border: 1px solid rgba(91, 47, 214, 0.4);
  background: var(--accent-soft-2);
  padding: 3px 8px;
  border-radius: var(--pill);
}
.palette-item[aria-selected="true"], .palette-item:hover { background: var(--accent-soft); }
.palette-item[aria-selected="true"] {
  background: linear-gradient(180deg, rgba(164, 134, 247, 0.16), rgba(91, 47, 214, 0.1));
  box-shadow: inset 0 0 0 1px rgba(151, 118, 244, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.palette-empty { padding: 26px 16px; text-align: center; color: var(--text-3); font-size: 14px; }
.palette-footer {
  display: flex;
  gap: 16px;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-mono);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
}
.footer-brand p { color: var(--text-2); font-size: 14px; max-width: 34ch; margin: 12px 0 20px; }
.footer-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a {
  color: var(--text-2);
  font-size: 14px;
  transition: color 0.16s var(--ease);
}
.footer-col a:hover { color: var(--accent-hot); }
.footer-bottom {
  padding: 20px 0 28px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-3);
  font-size: 13px;
}
.footer-bottom .mono { font-family: var(--font-mono); font-size: 12px; }
.back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 550;
  transition: color 0.16s var(--ease);
}
.back-top:hover { color: var(--accent-hot); }

.social-ico {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-2);
  transition: transform 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.social-ico:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent-soft-2);
  transform: translateY(-2px);
}
.social-ico svg { width: 16px; height: 16px; }

/* compact footer variant (home + article) */
.footer-compact .footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 40px 0 28px;
}

/* ============================================================
   Home — Bento hero (shared tile primitives)
   Variant layout lives at the end of this file under
   "home: content bento".
   ============================================================ */

.bento-tile {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-1);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}
a.bento-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 47, 214, 0.5);
  box-shadow: var(--shadow-2), 0 0 0 1px rgba(91, 47, 214, 0.22);
}
.bento-tile .tile-body { padding: 22px; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.bento-tile .tile-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bento-tile .tile-arrow {
  position: absolute;
  top: 18px; right: 18px;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), background 0.22s var(--ease), color 0.22s var(--ease);
}
a.bento-tile:hover .tile-arrow {
  opacity: 1;
  transform: translate(0, 0);
  background: var(--accent-fill);
  box-shadow: var(--accent-fill-shadow);
  color: #fff;
  border-color: transparent;
}
.bento-tile .tile-arrow svg { width: 14px; height: 14px; }


/* ============================================================
   Home latest writing (compact list)
   ============================================================ */
.section--tight { padding: 40px 0 0; }

.writing-list {
  border-top: 1px solid var(--border-strong);
}
.wl-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto 84px;
  gap: 20px;
  align-items: baseline;
  padding: 15px 6px;
  border-bottom: 1px solid var(--hairline);
  transition: background 0.16s var(--ease);
}
.wl-row:hover { background: rgba(255, 255, 255, 0.03); }
.wl-row:hover .wl-title { color: var(--accent-hot); }
.wl-soon:hover { background: none; }
.wl-soon .wl-title, .wl-soon:hover .wl-title { color: var(--text-3); }
.wl-date, .wl-read {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}
.wl-title {
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--text-1);
  transition: color 0.16s var(--ease);
}
.wl-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 640px) {
  .wl-row { grid-template-columns: 1fr auto; gap: 8px 14px; }
  .wl-title { grid-column: 1 / -1; }
  .wl-tags { grid-column: 1 / -1; justify-content: flex-start; }
  .wl-read { grid-row: 1; grid-column: 2; text-align: right; }
}


/* ============================================================
   Episode card (talks page)
   ============================================================ */
.ep-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-1);
  overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}
.ep-card:hover { transform: translateY(-3px); border-color: rgba(91, 47, 214, 0.5); }
.ep-card .ep-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.ep-card .ep-thumb::before {
  content: attr(data-ep);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: rgba(151, 118, 244, 0.5);
  background:
    radial-gradient(130% 100% at 15% 0%, rgba(91, 47, 214, 0.32), transparent 55%),
    linear-gradient(160deg, #1b1b22, #0e0e13 70%);
}
.ep-card .ep-thumb img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; transition: transform 0.4s var(--ease); }
.ep-card .ep-thumb img.bad { display: none; }
.ep-card:hover .ep-thumb img { transform: scale(1.045); }
.ep-card .play-overlay {
  z-index: 2;
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.35);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}
.ep-card:hover .play-overlay { opacity: 1; }
.ep-card .play-overlay .play-badge {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  place-items: center;
  color: #101014;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.ep-card .play-overlay svg { width: 16px; height: 16px; margin-left: 2px; }
.ep-card .ep-src {
  z-index: 2;
  position: absolute;
  top: 10px; left: 10px;
}
.ep-card .ep-body { padding: 14px 16px 16px; }
.ep-card .ep-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-hot);
}

/* ============================================================
   Writing archive: compact header, Notion-style search, dense list
   ============================================================ */
.page-head { padding: calc(var(--nav-h) + 56px) 0 0; }
.page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
  flex-wrap: wrap;
}
.page-head-row h1 {
  margin: 12px 0 0;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}
.page-lede { margin: 0; max-width: 46ch; color: var(--text-2); font-size: 15px; line-height: 1.55; }

.wr-search {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  margin-top: 28px;
  padding: 0 12px 0 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: rgba(24, 24, 28, 0.72);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  cursor: text;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.wr-search:hover { border-color: rgba(255, 255, 255, 0.22); }
.wr-search:focus-within {
  border-color: rgba(91, 47, 214, 0.65);
  box-shadow: var(--shadow-2), 0 0 0 3px rgba(91, 47, 214, 0.18);
}
.wr-search > svg { width: 18px; height: 18px; color: var(--accent-hot); flex: none; }
.wr-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: none;
  border: 0;
  outline: 0;
  font-size: 15px;
  color: var(--text-1);
  cursor: text;
}
.wr-search input::placeholder { color: var(--text-3); }
.wr-search kbd {
  flex: none;
  min-width: 24px;
  padding: 3px 8px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
  color: var(--text-3);
}

.wr-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 14px;
}
.wr-meta {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.wr-meta a:hover { color: var(--accent-hot); }

.wr-archive { padding: 28px 0 64px; }
.wr-year {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0 24px;
  border-top: 1px solid var(--border-strong);
}
.wr-year-head { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; padding-top: 18px; }
.wr-year-head h2 { margin: 0; font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--text-1); }
.wr-year-head span { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.wr-list { list-style: none; margin: 0; padding: 4px 0; }
.wr-row { scroll-margin-top: calc(var(--nav-h) + 48px); }
.wr-row + .wr-row { border-top: 1px solid var(--hairline); }
.wr-link {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 208px 52px;
  gap: 0 20px;
  align-items: baseline;
  margin: 4px -12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: background 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.wr-link:hover { background: var(--surface-1); }
.wr-link:hover .wr-title { color: var(--accent-hot); }
.wr-date, .wr-read { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); white-space: nowrap; }
.wr-read { text-align: right; }
.wr-main { min-width: 0; }
.wr-title { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; color: var(--text-1); transition: color 0.16s var(--ease); }
.wr-soon:hover { background: none; }
.wr-soon .wr-title, .wr-soon:hover .wr-title { color: var(--text-3); }
.wr-dek {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wr-tags { display: flex; justify-content: flex-end; gap: 6px; }

@media (max-width: 900px) {
  .wr-year { grid-template-columns: 1fr; }
  .wr-year-head { position: static; display: flex; align-items: baseline; gap: 10px; padding: 16px 0 0; }
  .wr-year-head span { margin: 0; }
  .wr-link { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; }
  .wr-date { grid-row: 1; grid-column: 1; }
  .wr-read { grid-row: 1; grid-column: 2; }
  .wr-main, .wr-tags { grid-column: 1 / -1; }
  .wr-tags { margin-top: 6px; justify-content: flex-start; }
  .wr-dek { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
@media (max-width: 640px) {
  .page-head { padding-top: calc(var(--nav-h) + 40px); }
  .page-head-row { display: block; }
  .page-lede { margin-top: 10px; font-size: 14.5px; }
  .wr-search { height: 48px; margin-top: 20px; }
  .wr-search input { font-size: 16px; } /* <16px makes iOS Safari zoom the page on focus */
  .wr-search kbd { display: none; }
  .wr-filters { flex-direction: column; align-items: stretch; gap: 10px; }
  .wr-archive { padding-top: 20px; }
  .palette-item .pi-title { white-space: normal; }
}

/* ============================================================
   Article — Swiss layout, Bento dressing
   ============================================================ */
.read-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 80;
  background: transparent;
}
.read-progress i {
  display: block;
  height: 100%;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.08s linear;
}

/* 12-col Swiss grid: rail 1–3 / body 4–12 */
.art-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 28px;
}
.art-rail { grid-column: 1 / 4; min-width: 0; }
.rail-in {
  position: sticky;
  top: calc(var(--nav-h) + 30px);
  padding-bottom: 2rem;
}
.crumb a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color 0.16s var(--ease);
}
.crumb a:hover { color: var(--accent-hot); }

.rail-meta {
  border-top: 1px solid var(--border-strong);
  padding-top: 1.2rem;
  margin-top: 1.6rem;
}
.rail-meta dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.2rem;
  margin: 0 0 1rem;
}
.rail-meta dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.rail-meta dd { margin: 0; font-size: 13.5px; color: var(--text-1); }
.num-acc {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-hot);
  font-weight: 600;
}
.rail-meta .rss {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  transition: color 0.16s var(--ease);
}
.rail-meta .rss:hover { color: var(--accent-hot); }

/* sticky contents */
.toc { margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1.2rem; }
.toc-h {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 0.6rem;
}
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.toc a {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13.5px;
  color: var(--text-3);
  transition: color 0.16s var(--ease);
}
.toc a:hover { color: var(--text-1); }
.toc a .n {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-3);
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}
.toc a.is-active { color: var(--text-1); }
.toc a.is-active .n { color: var(--accent-hot); opacity: 1; }
.toc a.is-active::after {
  content: "→";
  font-family: var(--font-mono);
  color: var(--accent-hot);
  font-size: 11px;
  margin-left: auto;
}

/* mobile contents (details) */
.toc-mobile { display: none; margin-bottom: 2rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-1); }
.toc-mobile summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 12px 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "+"; font-size: 15px; color: var(--accent-hot); font-weight: 600; }
.toc-mobile[open] summary::after { content: "−"; }
.toc-mobile ol {
  list-style: none;
  margin: 0;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
}
.toc-mobile a {
  display: block;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.16s var(--ease);
}
.toc-mobile a:last-child { border-bottom: 0; }
.toc-mobile a .n {
  margin-right: 0.9rem;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent-hot);
}
.toc-mobile a.is-active { color: var(--accent-hot); }

/* body column */
.art-body { grid-column: 4 / 13; min-width: 0; }
.prose { max-width: 68ch; font-size: 18px; line-height: 1.65; color: var(--text-2); }
.meta-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.prose > .meta-mono { color: var(--accent-hot); }
.prose h1 {
  margin: 0.5rem 0 1.4rem;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-1);
  text-wrap: balance;
}
.art-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1rem;
  margin-bottom: 2.4rem;
}
.art-meta .mono {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.art-meta .mono b { color: var(--text-1); font-weight: 600; }
.art-meta .rd { color: var(--accent-hot); }

.art-sec { scroll-margin-top: calc(var(--nav-h) + 90px); }
.prose h2 {
  margin: 3rem 0 1rem;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 720;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-1);
  position: relative;
}
.prose > section:first-of-type h2 { margin-top: 0; }
.h-link {
  position: absolute;
  right: calc(100% + 10px);
  top: 0.12em;
  color: var(--accent-hot);
  opacity: 0;
  font-weight: 600;
  transition: opacity 0.16s var(--ease);
}
.prose h2:hover .h-link, .h-link:focus-visible { opacity: 1; }

.prose p { margin: 0 0 1.15rem; }
.prose > section:first-of-type > p:first-of-type {
  font-size: 1.12em;
  color: var(--text-1);
}
.prose a {
  color: var(--accent-hot);
  text-decoration: underline;
  text-decoration-color: rgba(151, 118, 244, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.16s var(--ease);
}
.prose a:hover { text-decoration-color: var(--accent-hot); }
.prose strong { color: var(--text-1); font-weight: 650; }

/* inline code */
.code-inline {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  color: #dcd1fb;
  white-space: nowrap;
}

/* feature / step rows */
.prose ul.chk, .prose ol.steps {
  list-style: none;
  counter-reset: item;
  margin: 1.4rem 0 2rem;
  padding: 0;
}
.prose ul.chk li, .prose ol.steps li {
  counter-increment: item;
  position: relative;
  padding: 0.85rem 0 0.85rem 3.4rem;
  border-top: 1px solid var(--hairline);
  font-size: 15.5px;
  line-height: 1.55;
}
.prose ul.chk li:last-child, .prose ol.steps li:last-child { border-bottom: 1px solid var(--hairline); }
.prose ul.chk li::before, .prose ol.steps li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.85rem;
  line-height: calc(15.5px * 1.55);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-hot);
  font-variant-numeric: tabular-nums;
}
.prose ul.chk li b { color: var(--text-1); font-weight: 650; }

/* table */
.art-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0 2rem;
  font-size: 15px;
}
.art-table th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  color: var(--text-3);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
.art-table th:not(:first-child), .art-table td:not(:first-child) { padding-left: 1.2rem; }
.art-table td {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-2);
}
.art-table tbody tr { transition: background 0.14s var(--ease); }
.art-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.art-table tbody tr:last-child td { border-bottom: 0; }
.t-no {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-hot);
  font-variant-numeric: tabular-nums;
}
.t-type { font-weight: 650; color: var(--text-1); }

/* footnotes */
sup.fn { font-size: 0.75em; }
sup.fn a {
  font-family: var(--font-mono);
  font-size: 0.95em;
  color: var(--accent-hot);
  text-decoration: none;
  padding: 0 0.15em;
}
.fn-list {
  border-top: 1px solid var(--border-strong);
  margin-top: 3.2rem;
  padding-top: 1.2rem;
}
.fn-list .toc-h { margin: 0 0 0.9rem; }
.fn-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fn-list li {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-3);
}
.fn-list li a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.16s var(--ease);
}
.fn-list li a:hover { color: var(--accent-hot); }
.fn-list .back { text-decoration: none; }

/* callout */
.note {
  display: flex;
  gap: 1rem;
  border: 1px solid rgba(91, 47, 214, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(91, 47, 214, 0.12), rgba(91, 47, 214, 0.05));
  padding: 1.1rem 1.2rem;
  margin: 1.4rem 0 2rem;
}
.note .note-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--accent-hot);
  font-weight: 600;
  white-space: nowrap;
}
.note p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
}

/* author */
.author {
  margin: 3.2rem 0 0;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border);
  padding: 1.8rem 0;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.5rem;
  align-items: center;
}
.author img {
  width: 96px; height: 96px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: cover;
}
.author .a-name { margin: 0; font-size: 20px; font-weight: 720; letter-spacing: -0.015em; color: var(--text-1); }
.author .a-role {
  margin: 2px 0 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-hot);
}
.author p { margin: 0 0 10px; font-size: 14.5px; color: var(--text-2); line-height: 1.6; }
.a-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.a-links a {
  color: var(--text-3);
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.a-links a:hover { color: var(--accent-hot); border-color: rgba(91, 47, 214, 0.5); }

/* code block */
.code-block {
  margin: 18px 0 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--code-bg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.code-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: #121216;
}
.code-head .dots { display: flex; gap: 6px; }
.code-head .dots i { width: 10px; height: 10px; border-radius: 50%; }
.code-head .dots i:nth-child(1) { background: #ff5f57; }
.code-head .dots i:nth-child(2) { background: #febc2e; }
.code-head .dots i:nth-child(3) { background: #28c840; }
.code-head .file {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.code-head .lang {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
}
.code-body { overflow-x: auto; padding: 18px 20px; }
.code-body pre { margin: 0; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; tab-size: 2; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  padding: 5px 12px;
  border-radius: var(--pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 550;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background 0.16s var(--ease);
  flex: none;
}
.copy-btn:hover { color: #fff; border-color: var(--border-strong); }
.copy-btn.copied { color: var(--ok); border-color: rgba(74, 222, 128, 0.45); background: rgba(74, 222, 128, 0.08); }
.copy-btn svg { width: 13px; height: 13px; }
.copy-btn .ico-check { display: none; }
.copy-btn.copied .ico-copy { display: none; }
.copy-btn.copied .ico-check { display: inline-block; }

/* syntax tokens */
.tk-comment { color: var(--token-comment); font-style: italic; }
.tk-cmd { color: #e4e4e7; }
.tk-flag { color: var(--token-flag); }
.tk-str { color: var(--token-string); }

.mono { font-family: var(--font-mono); }

/* visually hidden (table captions) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- article breakpoints ---------- */
@media (max-width: 900px) {
  .art-rail, .art-body { grid-column: 1 / -1; }
  .rail-in { position: static; padding-bottom: 0; }
  .toc-desk { display: none; }
  .toc-mobile { display: block; }
  .rail-meta {
    border-top: 1px solid var(--border);
    margin-top: 1.4rem;
    padding-top: 1rem;
  }
  .rail-meta dl {
    grid-template-columns: repeat(3, auto);
    column-gap: 1.6rem;
  }
  .prose { max-width: none; }
}
@media (max-width: 640px) {
  .author { grid-template-columns: 72px 1fr; gap: 1.1rem; }
  .author img { width: 72px; height: 72px; }
  .prose { font-size: 16.5px; }
}

/* ============================================================
   Talks page
   ============================================================ */
.photo-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  gap: 12px;
  grid-template-areas:
    "aud vo2 gmb head"
    "aud vo2 austin2 blackhat"
    "aud panel austin2 austinlhe";
}
.pa-aud { grid-area: aud; }
.pa-vo2 { grid-area: vo2; }
.pa-gmb { grid-area: gmb; }
.pa-head { grid-area: head; }
.pa-austin2 { grid-area: austin2; }
.pa-blackhat { grid-area: blackhat; }
.pa-panel { grid-area: panel; }
.pa-austinlhe { grid-area: austinlhe; }
.photo-tile {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.photo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s var(--ease); }
.photo-tile:hover img { transform: scale(1.05); }
.photo-tile .pt-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 8, 0.85));
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.photo-tile .pt-cap .pt-loc {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-hot);
  font-weight: 600;
  margin-bottom: 2px;
}

@media (max-width: 900px) {
  .photo-bento { grid-template-columns: repeat(2, 1fr); grid-template-areas: none; grid-auto-rows: 150px; }
  .photo-bento .photo-tile { grid-area: auto; }
  .photo-bento .photo-tile.tall { grid-row: span 2; }
  .photo-bento .photo-tile.wide { grid-column: span 2; }
}
@media (max-width: 520px) { .photo-bento { grid-template-columns: 1fr; grid-auto-rows: 200px; } .photo-bento .photo-tile.wide { grid-column: span 1; } }

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1080px) { .episodes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .episodes-grid { grid-template-columns: 1fr; } }

/* collapsible episodes: first N visible until expanded (JS adds .is-collapsed) */
.episodes-grid.is-collapsed .ep-card:nth-child(n+7) { display: none; }
.ep-more { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.ep-more::before, .ep-more::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.ep-more[hidden] { display: none; }
.ep-more-chev { transition: transform 0.25s var(--ease); }
.ep-more .btn[aria-expanded="true"] .ep-more-chev { transform: rotate(180deg); }
.episodes-grid.is-revealing .ep-card:nth-child(n+7) { animation: rise 0.4s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  .episodes-grid.is-revealing .ep-card:nth-child(n+7) { animation: none; }
  .ep-more-chev { transition: none; }
}

.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.media-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-1);
  padding: 24px;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}
a.media-card:hover { transform: translateY(-3px); border-color: rgba(91, 47, 214, 0.5); }
.media-card .m-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-1);
}
.media-card .m-brand i { width: 22px; height: 22px; border-radius: 6px; background: var(--accent-fill); box-shadow: var(--accent-fill-shadow-sm); display: grid; place-items: center; font-size: 11px; color: #fff; font-style: normal; }
.media-card h3 { margin: 14px 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.media-card p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.media-card .m-foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.media-card .m-more { font-weight: 600; font-size: 13.5px; color: var(--accent-hot); display: inline-flex; align-items: center; gap: 6px; }
.media-card .m-more svg { width: 13px; height: 13px; }


/* ============================================================
   Projects: bento cards
   ============================================================ */
.pj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pj-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-1);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.pj-card:hover { transform: translateY(-3px); border-color: rgba(91, 47, 214, 0.45); }
.pj-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.pj-media img { width: 100%; height: 100%; object-fit: cover; }
.pj-media--murtasec { background: var(--bg); }
.pj-media--murtasec img { object-fit: contain; padding: 12%; }
.pj-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.pj-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-hot);
}
.pj-card h2 { margin: 0; font-size: 22px; font-weight: 720; letter-spacing: -0.02em; line-height: 1.22; }
.pj-desc { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.pj-list { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--hairline); }
.pj-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
}
.pj-list li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-grad);
  transform: translateY(-1px);
}
.pj-cta { margin-top: auto; padding-top: 16px; }
@media (max-width: 900px) {
  .pj-grid { grid-template-columns: 1fr; }
}

.about-body { padding: 32px 0 72px; }
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } }
.about-sticky { position: sticky; top: calc(var(--nav-h) + 30px); }
@media (max-width: 900px) { .about-sticky { position: static; } }
.about-photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/4.6;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .about-photo { aspect-ratio: 16/10; } .about-photo img { object-position: center 30%; } }

.about-copy > p { color: var(--text-2); font-size: 16.5px; line-height: 1.75; margin: 0 0 18px; max-width: 62ch; }
.about-copy > p:first-child { color: var(--text-1); font-size: 19px; font-weight: 600; }
.about-copy > p a:not(.btn) { color: var(--text-1); text-decoration: underline; text-decoration-color: rgba(151, 118, 244, 0.5); text-underline-offset: 3px; }
.about-copy > p a:not(.btn):hover { color: var(--accent-hot); }
.about-copy h2 { margin: 44px 0 12px; font-size: 23px; font-weight: 700; letter-spacing: -0.02em; scroll-margin-top: calc(var(--nav-h) + 40px); }
.about-copy h3 { margin: 22px 0 6px; font-size: 17px; font-weight: 660; letter-spacing: -0.01em; }
.about-copy h3 + p { margin-bottom: 0; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(140deg, #14131f 0%, #0c0c10 65%);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(440px 200px at 90% 120%, rgba(91, 47, 214, 0.22), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { margin: 0 0 6px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 720; letter-spacing: -0.022em; }
.cta-band p { margin: 0; color: var(--text-2); font-size: 15px; max-width: 48ch; }
.cta-band .cta-btns { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }

/* ============================================================
   Contact: "Work with me" (one card per reason to get in touch)
   ============================================================ */
.work { padding: 32px 0 64px; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.work-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-1), #0e0e11);
  scroll-margin-top: calc(var(--nav-h) + 40px);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.work-card:target { border-color: rgba(91, 47, 214, 0.6); box-shadow: 0 0 0 3px rgba(91, 47, 214, 0.16); }
.work-card.is-primary {
  border-color: rgba(91, 47, 214, 0.35);
  background:
    radial-gradient(520px 220px at 90% -30%, rgba(91, 47, 214, 0.22), transparent 70%),
    linear-gradient(180deg, #14131d, #0d0d11);
}
.work-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-hot);
}
.work-kicker span { color: var(--text-3); }
.work-card h2 { margin: 0; font-size: clamp(21px, 2vw, 25px); font-weight: 720; letter-spacing: -0.02em; line-height: 1.2; }
.work-card p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; max-width: 54ch; }
.work-card .work-note { font-size: 13px; color: var(--text-3); }
.work-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.work-cta { margin-top: auto; padding-top: 8px; }
.work-foot {
  margin: 22px 0 0;
  color: var(--text-2);
  font-size: 14.5px;
}
.work-foot a { color: var(--text-1); text-decoration: underline; text-decoration-color: rgba(151, 118, 244, 0.5); text-underline-offset: 3px; }
.work-foot a:hover { color: var(--accent-hot); }
@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card { padding: 22px; }
}

/* ============================================================
   Responsive nav / global
   ============================================================ */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 860px) {
  .nav-pill { width: calc(100% - 28px); justify-content: space-between; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-grid, .footer-compact .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-band { padding: 34px 26px; }
}
@media (max-width: 640px) {
  .episodes-grid { grid-template-columns: 1fr; }
  .footer-grid, .footer-compact .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .container { width: calc(100% - 36px); }
  .palette-footer { display: none; }
}

/* skip link: off-screen until focused */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--pill);
  background: var(--accent-fill);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

@media (max-width: 400px) {
  .rail-meta dl { grid-template-columns: 1fr 1fr; }
  .nav-pill { gap: 4px; padding-left: 12px; }
  .btn-sm.contact-cta { padding: 8px 12px; font-size: 12.5px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Home: content bento
   Every tile is content; no portrait on the home page.
   Grid: intro (wide) + featured article, then
   topics / latest episode / now.
   ============================================================ */
.home-hero { padding: calc(var(--nav-h) + 72px) 0 0; }

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, minmax(200px, auto));
  gap: 14px;
  grid-template-areas:
    "intro intro intro intro intro feature feature feature feature feature feature feature"
    "topics topics topics topics episode episode episode episode now now now now";
}
.tile-intro    { grid-area: intro; }
.tile-featured { grid-area: feature; }
.tile-topics   { grid-area: topics; }
.tile-episode  { grid-area: episode; }
.tile-now      { grid-area: now; }

/* ---- intro tile ---- */
.tile-intro {
  border-color: var(--border-strong);
}
.tile-intro .tile-body { gap: 14px; padding: 24px 26px; }
.tile-intro h1 {
  margin: 0;
  font-size: clamp(26px, 2.3vw, 34px);
  font-weight: 760;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.tile-intro .tagline {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-hot);
  letter-spacing: 0.02em;
}
.tile-intro .intro {
  margin: 0;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 56ch;
}
.intro-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.intro-socials { display: flex; gap: 8px; margin-top: auto; }

/* ---- featured article tile ---- */
.tile-featured {
  background: linear-gradient(160deg, #14141b 0%, var(--surface-1) 55%);
}
.tile-featured .tile-body { padding: 24px; }
.feat-mid {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 12px 0 16px;
  flex: 1;
  min-height: 0;
}
.tile-featured h3 {
  margin: 0;
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.tile-featured .feat-dek {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 8px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- latest episode tile ---- */
.tile-episode .tile-body { gap: 12px; }
.tile-episode .ep-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-height: 0;
}
.tile-episode .ep-thumb {
  position: relative;
  flex: none;
  width: 172px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.tile-episode .ep-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-episode .ep-thumb .play-badge {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent-fill);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--accent-fill-shadow);
}
.tile-episode .ep-thumb .play-badge svg { width: 12px; height: 12px; margin-left: 1px; }
a.tile-episode:hover .ep-thumb { border-color: rgba(91, 47, 214, 0.5); }
a.tile-episode:hover .play-badge { filter: brightness(1.08); }
.tile-episode .ep-txt { min-width: 0; }
.tile-episode .ep-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tile-episode .ep-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  font-weight: 620;
  line-height: 1.3;
  margin-top: 3px;
}

/* ---- topics tile ---- */
.tile-topics .tile-body { gap: 12px; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tile-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.18s var(--ease);
}
.tile-more:hover { color: var(--accent-hot); }
.tile-more svg { transition: transform 0.18s var(--ease); }
.tile-more:hover svg { transform: translateX(3px); }

/* ---- now tile ---- */
.tile-now .tile-body { gap: 10px; }
.now-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  flex: 1;
  align-content: center;
}
.now-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.45;
}
.now-dot {
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-grad);
  margin-top: 8px;
}

/* ---- bento rebalance ---- */
@media (max-width: 1200px) {
  .bento {
    grid-template-areas:
      "intro intro intro intro intro intro feature feature feature feature feature feature"
      "topics topics topics topics episode episode episode episode now now now now";
  }
  .tile-featured h3 { font-size: clamp(18px, 1.9vw, 22px); }
  /* stack thumb above text so the episode title gets room to wrap */
  .tile-episode .ep-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .tile-episode .ep-thumb { width: 46%; max-width: 200px; }
}
@media (max-width: 640px) {
  .home-hero { padding: calc(var(--nav-h) + 56px) 0 0; }
  .bento {
    gap: 12px;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "intro"
      "feature"
      "episode"
      "topics"
      "now";
  }
  .tile-intro .tile-body { padding: 22px; }
  .tile-episode .ep-row { flex-direction: row; align-items: center; gap: 16px; }
  .tile-episode .ep-thumb { width: 46%; max-width: 172px; }
}

/* Former inline styles (moved here so the CSP can forbid style="") */
.ep-name { display: block; margin-top: 6px; font-size: 15px; font-weight: 640; line-height: 1.3; }
.section--pt0 { padding-top: 0; }
.section--pt32 { padding-top: 32px; }
.art-top { padding-top: calc(var(--nav-h) + clamp(32px, 4vw, 56px)); }
.palette-footer .pf-scope { margin-left: auto; }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
