/* ============================================================
   DATA PLATFORM PORTFOLIO — Dark & Bold, Electric Blue
   Fonts: Public Sans (display/body) + IBM Plex Mono (utility)
   ============================================================ */

:root {
  --bg: #080B12;
  --bg-2: #0D1117;
  --bg-3: #131920;
  --surface: #111827;
  --surface-2: #1a2535;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(37,99,235,0.4);
  --text: #E2E8F0;
  --text-muted: #64748B;
  --text-dim: #94A3B8;
  --accent: #2563EB;
  --accent-bright: #3B82F6;
  --accent-glow: rgba(37, 99, 235, 0.25);
  --accent-glow-strong: rgba(37, 99, 235, 0.5);
  --font-display: 'Public Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-body: 'Public Sans', sans-serif;
  --radius: 12px;
  --radius-sm: 6px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg: #F8FAFC;
  --bg-2: #EFF6FF;
  --bg-3: #E2E8F0;
  --surface: #FFFFFF;
  --surface-2: #E8EEF8;
  --border: rgba(15, 23, 42, 0.10);
  --border-hover: rgba(37,99,235,0.28);
  --text: #0F172A;
  --text-muted: #475569;
  --text-dim: #334155;
  --accent: #2563EB;
  --accent-bright: #1D4ED8;
  --accent-glow: rgba(37, 99, 235, 0.16);
  --accent-glow-strong: rgba(37, 99, 235, 0.24);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.accent { color: var(--accent-bright); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* ---- REVEAL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
  padding: 0.85rem 0;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: color var(--transition);
}
.nav-logo:hover { color: var(--accent-bright); }
.nav-logo-mark {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 2.7rem;
  height: 2.7rem;
  padding: 0.35rem;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border));
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 20%, transparent), transparent 58%),
    color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.nav-logo-glyph {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.nav-logo-glyph:first-child {
  justify-self: start;
  align-self: start;
  color: var(--accent-bright);
}
.nav-logo-glyph:last-child {
  justify-self: end;
  align-self: end;
}
.nav-logo-slash {
  position: absolute;
  inset: 0.4rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-bright) 92%, white), color-mix(in srgb, var(--accent) 70%, transparent));
  transform: rotate(31deg);
  transform-origin: center;
  opacity: 0.95;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin-left: auto;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.5rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.theme-toggle {
  position: relative;
  -webkit-appearance: none;
  appearance: none;
  width: 84px;
  min-width: 84px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  color: var(--text-muted);
  display: inline-block;
  cursor: pointer;
  transition: all var(--transition);
  flex: 0 0 84px;
  overflow: hidden;
  vertical-align: middle;
}
.theme-toggle:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.theme-toggle-icon {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transform: translateY(-50%);
  transition: color var(--transition), opacity var(--transition), transform var(--transition);
}
.theme-toggle-icon-sun { left: 12px; }
.theme-toggle-icon-moon { right: 12px; }
.theme-toggle-icon svg { width: 16px; height: 16px; }
.theme-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(226,232,240,0.94));
  border: 1px solid rgba(148,163,184,0.36);
  box-shadow: 0 4px 12px rgba(15,23,42,0.16);
  transform: translateX(44px);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition);
}
[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(0);
  background: linear-gradient(180deg, #FFFFFF, #F8FAFC);
}
[data-theme="light"] .theme-toggle-icon-sun,
[data-theme="dark"] .theme-toggle-icon-moon {
  color: var(--accent-bright);
}
.nav-socials {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.55rem;
  padding-left: 0.9rem;
  margin-left: 0.15rem;
  border-left: 1px solid var(--border);
  flex: 0 0 auto;
}
.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;
}
.nav-search {
  position: relative;
  flex: 0 0 auto;
}
.nav-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition), box-shadow var(--transition);
}
.nav-search-trigger svg {
  width: 15px;
  height: 15px;
}
.nav-search-trigger:hover,
.nav-search.open .nav-search-trigger {
  color: var(--text);
  border-color: var(--border-hover);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.nav-search-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.nav-search-panel {
  position: absolute;
  top: calc(100% + 0.85rem);
  right: 0;
  width: min(30rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.34);
}
.nav-search-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--text);
  padding: 0.95rem 1rem;
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.nav-search-input::placeholder {
  color: var(--text-muted);
}
.nav-search-input:focus {
  outline: none;
  border-color: var(--border-hover);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.nav-search-results {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.85rem;
  max-height: 24rem;
  overflow-y: auto;
}
.nav-search-hint,
.nav-search-empty {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
  padding: 0.35rem 0.15rem 0.1rem;
}
.nav-search-result {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}
.nav-search-result:hover {
  border-color: var(--border-hover);
  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
  transform: translateY(-1px);
}
.nav-search-result-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nav-search-result-section {
  color: var(--accent-bright);
}
.nav-search-result-title {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.35;
}
.nav-search-result-summary {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.55;
}
.nav-social-link {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
  flex: 0 0 40px;
}
.nav-social-link svg {
  width: 21px;
  height: 21px;
}
.nav-social-glyph {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}
.nav-social-link:hover {
  color: var(--text);
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  transform: translateY(-1px);
}
.nav-social-link.is-disabled {
  opacity: 0.4;
  color: var(--text-muted);
}
.nav-social-link-rss {
  color: var(--accent-bright);
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.btn-resume {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-bright);
  border: 1px solid var(--accent);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.btn-resume:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow-strong);
}
.btn-icon { margin-left: 4px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 0 30px var(--accent-glow-strong), 0 4px 20px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--surface);
}
.btn-full { width: 100%; justify-content: center; }
.compact-list {
  display: grid;
  gap: 0.65rem;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 8rem;
}
.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 3rem;
}
.hero-copy {
  min-width: 0;
}
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 1rem;
}
.hero-pre {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 10px #22C55E;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 10px #22C55E; }
  50% { box-shadow: 0 0 20px #22C55E, 0 0 30px rgba(34,197,94,0.4); }
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  color: var(--accent-bright);
  margin-bottom: 1.5rem;
  min-height: 2rem;
}
.cursor {
  animation: blink 1s step-end infinite;
  color: var(--accent-bright);
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-visual {
  position: relative;
}
.hero-art {
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(59,130,246,0.34), transparent 30%),
    radial-gradient(circle at 80% 25%, rgba(14,165,233,0.18), transparent 26%),
    linear-gradient(160deg, rgba(15,23,42,0.96), rgba(7,12,24,0.88));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
}
.hero-cover-image {
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 22%, rgba(56,189,248,0.95), transparent 24%),
    radial-gradient(circle at 78% 18%, rgba(96,165,250,0.72), transparent 22%),
    radial-gradient(circle at 68% 74%, rgba(14,165,233,0.35), transparent 28%),
    linear-gradient(140deg, #0f172a 6%, #13233d 35%, #123257 62%, #08111f 100%);
  filter: saturate(118%);
  opacity: 0.92;
}
.hero-cover-image::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.08), transparent 35%),
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: auto, 38px 38px, 38px 38px;
  mix-blend-mode: screen;
}
.hero-cover-image::after {
  content: '';
  position: absolute;
  inset: auto 24px 24px 24px;
  height: 42%;
  border-radius: 20px;
  background: linear-gradient(to top, rgba(8,11,18,0.88), rgba(8,11,18,0));
}
.hero-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(0,0,0,0.25));
}
.hero-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(59,130,246,0.25);
}
.hero-orbit-a {
  width: 420px;
  height: 420px;
  right: -130px;
  top: -120px;
}
.hero-orbit-b {
  width: 300px;
  height: 300px;
  left: -120px;
  bottom: -140px;
}
.hero-panel {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  background: rgba(15,23,42,0.72);
  box-shadow: 0 18px 45px rgba(0,0,0,0.28);
}
.hero-panel-main {
  inset: 56px 54px 140px 48px;
  padding: 1.6rem;
}
.panel-topline {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59,130,246,0.95), rgba(14,165,233,0.3), transparent 78%);
  margin-bottom: 1.15rem;
}
.panel-eyebrow,
.panel-note-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.hero-panel-main h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.02;
  margin: 0.7rem 0 0.9rem;
  color: #fff;
}
.hero-panel-main p,
.hero-panel-metric strong {
  color: var(--text-dim);
}
.panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.panel-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.28rem 0.6rem;
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
}
.hero-panel-note {
  width: 190px;
  right: 28px;
  top: 28px;
  padding: 1rem;
  transform: rotate(5deg);
}
.panel-lines {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
}
.panel-lines span {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(148,163,184,0.55), rgba(148,163,184,0.08));
}
.hero-panel-metric {
  left: 34px;
  bottom: 30px;
  width: 240px;
  padding: 1rem 1.1rem;
  transform: rotate(-4deg);
}
.hero-panel-metric strong {
  display: block;
  font-size: 1rem;
  line-height: 1.45;
  margin-top: 0.45rem;
  color: #e2e8f0;
}
.stat { text-align: left; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-bright);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}
.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- SECTIONS ---- */
.section { padding: 7rem 0; }
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.label-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}
.label-line {
  flex: 0 0 40px;
  height: 1px;
  background: var(--accent);
}
.label-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  color: var(--text);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.section-title-tight {
  margin-bottom: 0;
}

/* ---- ABOUT ---- */
.about { background: var(--bg-2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 5rem;
  align-items: start;
}
.about-text p {
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  max-width: 560px;
}
.about-contact-line {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.about-contact-line a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.about-text .section-title { margin-bottom: 1.75rem; }
.about-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.author-visual {
  position: relative;
  height: 168px;
  margin-bottom: 1.5rem;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(59,130,246,0.38), transparent 22%),
    linear-gradient(140deg, rgba(37,99,235,0.18), rgba(8,11,18,0.3) 48%, rgba(2,6,23,0.9));
  border: 1px solid rgba(255,255,255,0.08);
}
.author-visual-ring {
  position: absolute;
  width: 180px;
  height: 180px;
  right: -30px;
  top: -44px;
  border-radius: 999px;
  border: 1px solid rgba(96,165,250,0.22);
}
.author-visual-panel {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.author-visual-panel span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  color: #dbeafe;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(15,23,42,0.6);
}
.about-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
}
.avatar-ring {
  position: absolute;
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.4;
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-inner {
  width: 72px; height: 72px;
  background: var(--surface-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-hover);
}
.avatar-inner svg { width: 40px; height: 40px; }
.about-quick { display: flex; flex-direction: column; gap: 0.85rem; }
.quick-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.quick-item:last-child { border-bottom: none; padding-bottom: 0; }
.qi-label { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.78rem; }

/* ---- SKILLS ---- */
.skills { background: var(--bg); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.skill-category:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 30px var(--accent-glow);
}
.skill-cat-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 1rem;
}
.credential-icon-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.credential-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 30% 25%, rgba(59,130,246,0.22), transparent 48%),
    color-mix(in srgb, var(--bg-3) 82%, transparent);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.credential-icon svg {
  width: 28px;
  height: 28px;
}
.credential-icon-aws {
  color: #f59e0b;
  background:
    radial-gradient(circle at 30% 25%, rgba(245,158,11,0.18), transparent 45%),
    color-mix(in srgb, var(--bg-3) 84%, transparent);
}
.credential-icon-kubernetes {
  color: #60a5fa;
}
.credential-icon-delivery {
  color: #34d399;
}
.credential-icon-abinitio {
  color: #a78bfa;
}
.credential-icon-data {
  color: #38bdf8;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  transition: all var(--transition);
}
.skill-tag:hover {
  color: var(--accent-bright);
  border-color: var(--accent);
  background: var(--surface-2);
}

/* ---- PROJECTS ---- */
.projects { background: var(--bg-2); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.content-cover {
  position: relative;
  height: 168px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0.15rem;
  isolation: isolate;
}
.content-cover-card { height: 168px; }
.content-cover-list {
  width: 192px;
  min-width: 192px;
  height: 128px;
  margin-bottom: 0;
  flex: 0 0 192px;
}
.content-cover-hero {
  max-width: 720px;
  height: clamp(240px, 32vw, 360px);
  margin: 0 auto 2.5rem;
  border-radius: 24px;
}
.content-cover-media {
  border-color: rgba(255,255,255,0.12);
}
.content-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.content-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,11,18,0.08), rgba(8,11,18,0.56) 68%, rgba(8,11,18,0.82) 100%);
  z-index: 0;
}
.cover-glow {
  position: absolute;
  width: 170px;
  height: 170px;
  right: -36px;
  top: -44px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59,130,246,0.45), rgba(59,130,246,0));
  filter: blur(8px);
}
.cover-grid,
.cover-wave,
.cover-bars {
  position: absolute;
  inset: 0;
}
.cover-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 92%);
}
.cover-bars {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 0.55rem;
  padding: 1rem;
}
.cover-bars span {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(191,219,254,0.88), rgba(191,219,254,0.18));
}
.cover-bars span:nth-child(1) { width: 78%; }
.cover-bars span:nth-child(2) { width: 58%; }
.cover-bars span:nth-child(3) { width: 68%; }
.cover-wave::before,
.cover-wave::after {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  height: 52px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  filter: blur(1px);
}
.cover-wave::before {
  bottom: 44px;
  transform: rotate(-5deg);
}
.cover-wave::after {
  bottom: 18px;
  transform: rotate(4deg);
  opacity: 0.7;
}
.cover-chip {
  position: absolute;
  left: 14px;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eff6ff;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(15,23,42,0.62);
  padding: 0.32rem 0.55rem;
  z-index: 2;
}
.content-cover-copy {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
}
.content-cover-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226,232,240,0.8);
  margin-bottom: 0.55rem;
}
.content-cover-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 15ch;
}
.content-cover-list .content-cover-copy strong {
  font-size: 0.95rem;
}
.content-cover-hero .content-cover-copy {
  left: 24px;
  right: 24px;
  bottom: 24px;
}
.content-cover-hero .content-cover-eyebrow {
  font-size: 0.74rem;
  margin-bottom: 0.65rem;
}
.content-cover-hero .content-cover-copy strong {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  max-width: 18ch;
}
.content-cover-writing {
  background:
    radial-gradient(circle at 22% 20%, rgba(14,165,233,0.55), transparent 25%),
    linear-gradient(145deg, #10213b, #0b1323 55%, #09101a);
}
.content-cover-template {
  background:
    radial-gradient(circle at 74% 22%, rgba(59,130,246,0.36), transparent 20%),
    linear-gradient(160deg, #13233b, #0f172a 48%, #08111f);
}
.content-cover-case {
  background:
    radial-gradient(circle at 16% 22%, rgba(56,189,248,0.26), transparent 18%),
    linear-gradient(150deg, #0b1322, #13233d 46%, #10243f 72%, #09111a);
}
.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 40px var(--accent-glow), 0 8px 40px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}
.project-card.featured {
  border-color: rgba(37,99,235,0.25);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(37,99,235,0.05) 100%);
}
.project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ptag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-bright);
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.2);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
}
.project-links { display: flex; gap: 0.5rem; }
.plink {
  color: var(--text-muted);
  padding: 0.35rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.plink:hover { color: var(--accent-bright); border-color: var(--accent); }
.project-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.project-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.65;
  flex: 1;
}
.featured-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  border: 1px solid var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  align-self: flex-start;
}

/* ---- BLOG ---- */
.blog { background: var(--bg); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--transition);
}
.blog-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-3px);
}
.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.blog-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.blog-summary {
  color: var(--text-dim);
  font-size: 0.875rem;
  line-height: 1.65;
  flex: 1;
}
.blog-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.btag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 0.18rem 0.5rem;
  border-radius: 3px;
}
.blog-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-bright);
  letter-spacing: 0.02em;
  transition: gap var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
}
.blog-link:hover { gap: 0.6rem; }

/* ---- CONTACT ---- */
.contact { background: var(--bg-2); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-text p {
  color: var(--text-dim);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  max-width: 440px;
}
.contact-text .section-title { margin-bottom: 1.5rem; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.contact-link:hover { color: var(--accent-bright); }
.bmc-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  display: inline-flex;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15,23,42,0.18);
  transition: transform var(--transition), box-shadow var(--transition);
}
.bmc-button img {
  display: block;
  width: 217px;
  height: 60px;
}
.bmc-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15,23,42,0.24);
}
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.contact-form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright), transparent);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

/* ---- FOOTER ---- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}
.footer-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95em;
  height: 0.95em;
  flex: 0 0 auto;
}
.footer-link-icon svg {
  width: 100%;
  height: 100%;
}
.footer-links a:hover { color: var(--accent-bright); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-card { max-width: 400px; }
  .hero-shell { grid-template-columns: 1fr; }
  .hero-art { min-height: 420px; }
}
@media (max-width: 768px) {
  .section { padding: 5rem 0; }
  .nav-toggle { display: flex; }
  .nav-actions { margin-left: auto; }
  .nav-search-panel {
    position: fixed;
    top: 78px;
    left: 1rem;
    right: 1rem;
    width: auto;
  }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    top: 64px;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-link { font-size: 1rem; }
  .hero-stats { gap: 1.25rem; }
  .stat-num { font-size: 2rem; }
  .hero-art { min-height: 360px; }
  .hero-panel-main { inset: 30px 24px 110px 24px; }
  .hero-panel-main h3 { font-size: 1.6rem; }
  .hero-panel-note { width: 150px; right: 16px; top: 16px; }
  .hero-panel-metric { left: 18px; bottom: 20px; width: 210px; }
  .projects-grid, .blog-grid, .skills-grid { grid-template-columns: 1fr; }
  .post-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
  }
  .content-cover-list {
    width: 100%;
    min-width: 0;
    height: 176px;
    flex-basis: auto;
  }
  .post-row-arrow { display: none; }
}
@media (max-width: 480px) {
  .nav-inner { padding: 0 1rem; }
  .nav-actions { gap: 0.45rem; }
  .nav-search-trigger {
    min-width: 42px;
    padding: 0.7rem 0.8rem;
  }
  .nav-search-trigger span {
    display: none;
  }
  .theme-toggle {
    width: 84px;
    min-width: 84px;
    flex-basis: 84px;
  }
  .theme-toggle-thumb { transform: translateX(44px); }
  [data-theme="light"] .theme-toggle-thumb { transform: translateX(0); }
  .nav-socials { gap: 0.35rem; padding-left: 0.55rem; }
  .nav-social-link {
    width: 38px;
    min-width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  .nav-social-link svg { width: 20px; height: 20px; }
  .list-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .content-cover-hero {
    height: 220px;
    border-radius: 18px;
  }
  .content-cover-hero .content-cover-copy {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .about-actions { flex-direction: column; }
  .bmc-button {
    right: 16px;
    bottom: 16px;
  }
  .bmc-button img {
    width: 190px;
    height: auto;
  }
  .hero-art { min-height: 320px; }
  .hero-panel-note { display: none; }
  .hero-panel-main { inset: 22px 18px 94px 18px; }
  .hero-panel-main h3 { font-size: 1.35rem; }
  .hero-panel-main p { font-size: 0.92rem; }
  .hero-panel-metric { left: 16px; right: 16px; width: auto; }
}

/* ---- BLOG LIST PAGE ---- */
.list-page { padding: 8rem 0 6rem; min-height: 100vh; background: var(--bg); }
.list-header { margin-bottom: 4rem; }
.list-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.list-rss-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.list-rss-link svg {
  width: 18px;
  height: 18px;
}
.list-rss-link:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--surface-2) 94%, transparent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  transform: translateY(-1px);
}
.back-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  transition: color var(--transition);
}
.back-link:hover { color: var(--accent-bright); }
.list-subtitle {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 520px;
  margin-top: 0;
}
.list-intro {
  max-width: 680px;
  margin-top: 1.5rem;
  color: var(--text-dim);
}
.list-intro p {
  margin-bottom: 0;
}
.list-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}
.list-control-cluster {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.list-control-dropdown {
  position: relative;
}
.list-controls-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.list-control-trigger,
.list-control-option,
.list-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color var(--transition), color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.list-control-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  min-width: 170px;
  padding: 0.62rem 0.95rem;
  cursor: pointer;
}
.list-control-trigger-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  text-align: left;
}
.list-control-trigger-label {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.88;
}
.list-control-trigger strong {
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.list-control-trigger-toggle {
  min-width: 200px;
}
.list-control-chevron {
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: transform var(--transition), color var(--transition);
}
.list-control-dropdown.is-open .list-control-chevron {
  transform: rotate(180deg);
  color: var(--text);
}
.list-control-trigger:hover,
.list-control-trigger:focus-visible,
.list-control-trigger.is-active,
.list-control-option:hover,
.list-control-option:focus-visible,
.list-control-option.is-active,
.list-sort-button:hover,
.list-sort-button:focus-visible,
.list-sort-button.is-active {
  color: var(--text);
  border-color: var(--border-hover);
  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.list-control-trigger:hover,
.list-control-trigger.is-active,
.list-control-option:hover,
.list-control-option.is-active,
.list-sort-button:hover,
.list-sort-button.is-active {
  transform: translateY(-1px);
}
.list-control-trigger:focus-visible,
.list-control-option:focus-visible,
.list-sort-button:focus-visible {
  outline: none;
}
.list-control-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  z-index: 15;
  min-width: 100%;
  padding: 0.55rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 14%, transparent), transparent 48%),
    color-mix(in srgb, var(--bg) 94%, rgba(10, 15, 25, 0.98));
  box-shadow: 0 18px 44px rgba(0,0,0,0.28);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.list-control-dropdown.is-open .list-control-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.list-control-menu[hidden] {
  display: none;
}
.list-control-option {
  width: 100%;
  justify-content: flex-start;
  padding: 0.68rem 0.85rem;
  cursor: pointer;
}
.list-controls-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.list-controls.is-grouped .list-controls-sort-cluster {
  display: none;
}
.list-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.list-pagination[hidden] {
  display: none;
}
.list-pagination-button,
.list-pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition), opacity var(--transition);
}
.list-pagination-button:hover,
.list-pagination-button:focus-visible,
.list-pagination-page:hover,
.list-pagination-page:focus-visible,
.list-pagination-page.is-active {
  color: var(--text);
  border-color: var(--border-hover);
  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.list-pagination-button:hover,
.list-pagination-page:hover,
.list-pagination-page.is-active {
  transform: translateY(-1px);
}
.list-pagination-button:focus-visible,
.list-pagination-page:focus-visible {
  outline: none;
}
.list-pagination-button[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
  transform: none;
}
.list-pagination-status {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.list-pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.list-pagination-page {
  min-width: 42px;
  padding-inline: 0.75rem;
}
.list-pagination-gap {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.92rem;
}
.post-list { display: flex; flex-direction: column; gap: 0; }
.post-list[data-list-style="cards"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.post-list[data-list-style="cards"][data-list-view="series"] {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.series-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.series-group + .series-group {
  margin-top: 2.5rem;
}
.post-list[data-list-style="cards"][data-list-view="series"] .series-group + .series-group {
  margin-top: 0;
}
.series-group-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.5rem;
}
.series-group-kicker {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.series-group-title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.series-group-items {
  display: flex;
  flex-direction: column;
}
.post-list[data-list-style="cards"][data-list-view="series"] .series-group-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.post-row {
  display: grid;
  grid-template-columns: 192px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.post-row:first-child { border-top: 1px solid var(--border); }
.post-row:hover { background: var(--surface); margin: 0 -2rem; padding: 2rem; border-radius: var(--radius-sm); border-color: transparent; }
.post-row-body { min-width: 0; }
.post-list[data-list-style="list"] .post-row {
  grid-template-columns: 192px 1fr auto;
}
.post-list[data-list-style="compact"] .post-row {
  grid-template-columns: 144px 1fr auto;
  gap: 1.15rem;
  padding: 1.3rem 0;
}
.post-list[data-list-style="compact"] .post-row:hover {
  padding: 1.3rem 1.1rem;
  margin: 0 -1.1rem;
}
.post-list[data-list-style="compact"] .content-cover-list {
  width: 144px;
  min-width: 144px;
  height: 98px;
  flex-basis: 144px;
}
.post-list[data-list-style="compact"] .content-cover-copy strong {
  font-size: 0.82rem;
}
.post-list[data-list-style="compact"] .content-cover-eyebrow {
  font-size: 0.62rem;
  margin-bottom: 0.4rem;
}
.post-list[data-list-style="compact"] .post-row-title {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.post-list[data-list-style="compact"] .post-row-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.55;
  margin-bottom: 0.6rem;
}
.post-list[data-list-style="compact"] .series-meta {
  margin-bottom: 0.55rem;
}
.post-list[data-list-style="compact"] .post-row-actions {
  gap: 0.55rem;
}
.post-list[data-list-style="cards"] .post-row {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 0.95rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.post-list[data-list-style="cards"] .post-row:first-child {
  border-top: 1px solid var(--border);
}
.post-list[data-list-style="cards"] .post-row:hover {
  margin: 0;
  padding: 1.5rem;
  border-color: var(--border-hover);
  border-radius: var(--radius);
  box-shadow: 0 0 30px var(--accent-glow), 0 8px 32px rgba(0,0,0,0.28);
  transform: translateY(-3px);
}
.post-list[data-list-style="cards"] .content-cover-list {
  width: 100%;
  min-width: 0;
  height: 168px;
  flex-basis: auto;
}
.post-list[data-list-style="cards"] .content-cover-copy {
  display: none;
}
.post-list[data-list-style="cards"] .post-row-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.post-list[data-list-style="cards"] .post-row-meta,
.post-list[data-list-style="cards"] .series-meta,
.post-list[data-list-style="cards"] .post-row-title,
.post-list[data-list-style="cards"] .post-row-summary,
.post-list[data-list-style="cards"] .post-row-tags {
  margin-bottom: 0;
}
.post-list[data-list-style="cards"] .post-row-title {
  font-size: 1.15rem;
  line-height: 1.28;
}
.post-list[data-list-style="cards"] .post-row-summary {
  flex: 1;
}
.post-list[data-list-style="cards"] .post-row-actions {
  justify-self: start;
  flex-wrap: wrap;
}
.post-list[data-list-style="cards"] .post-row-arrow {
  margin-left: auto;
}
.post-list[data-list-style="detail"] .post-row {
  grid-template-columns: minmax(220px, 248px) minmax(0, 1fr);
  grid-template-areas:
    "cover body"
    "cover actions";
  gap: 1.4rem 1.8rem;
  align-items: start;
  padding: 2.15rem 0;
}
.post-list[data-list-style="detail"] .post-row:hover {
  padding: 2.15rem 1.6rem;
  margin: 0 -1.6rem;
}
.post-list[data-list-style="detail"] .content-cover-list {
  grid-area: cover;
  width: 100%;
  min-width: 0;
  height: 182px;
  flex-basis: auto;
}
.post-list[data-list-style="detail"] .post-row-body {
  grid-area: body;
}
.post-list[data-list-style="detail"] .post-row-actions {
  grid-area: actions;
  justify-self: start;
  flex-wrap: wrap;
}
.post-list[data-list-style="detail"] .post-row-title {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}
.post-list[data-list-style="detail"] .post-row-summary {
  font-size: 0.98rem;
  line-height: 1.72;
  max-width: 60ch;
}
.post-list[data-list-style="detail"] .content-cover-copy strong {
  font-size: 1rem;
}
.post-list[data-list-style="detail"] .series-meta {
  margin-bottom: 0.95rem;
}
.post-list[data-list-style="detail"] .post-row-meta {
  margin-bottom: 0.85rem;
}
.post-row-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}
.post-row-meta time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.pr-read {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.6;
}
.post-row-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.post-row-title a { transition: color var(--transition); }
.post-row-title a:hover { color: var(--accent-bright); }
.series-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.series-meta-label,
.series-meta-order {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%),
    color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.series-meta-inline {
  margin-top: -0.1rem;
}
.post-row-summary {
  color: var(--text-dim);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.post-row-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.post-row-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-self: end;
}
.content-count-pill,
.like-pill,
.post-row-preview,
.post-row-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: border-color var(--transition), color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.content-count-pill {
  padding: 0.55rem 0.8rem;
  color: var(--accent-bright);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    color-mix(in srgb, var(--surface) 92%, transparent);
}
.like-pill {
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}
.post-row-preview {
  padding: 0.65rem 0.95rem;
  cursor: pointer;
}
.content-count-pill svg,
.like-pill svg,
.post-row-preview svg,
.post-row-arrow svg {
  width: 16px;
  height: 16px;
}
.like-pill:hover,
.like-pill:focus-visible,
.post-row-preview:hover,
.post-row-preview:focus-visible,
.post-row-arrow:hover,
.post-row-arrow:focus-visible {
  color: var(--text);
  border-color: var(--border-hover);
  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.like-pill:hover,
.post-row-preview:hover,
.post-row-arrow:hover {
  transform: translateY(-1px);
}
.like-pill:focus-visible,
.post-row-preview:focus-visible,
.post-row-arrow:focus-visible {
  outline: none;
}
.like-pill svg {
  fill: transparent;
  stroke: currentColor;
  transition: fill var(--transition), stroke var(--transition), transform var(--transition);
}
.like-pill.is-liked {
  color: #fda4af;
  border-color: rgba(244, 114, 182, 0.4);
  background: rgba(190, 24, 93, 0.12);
}
.like-pill.is-liked svg {
  fill: currentColor;
  stroke: currentColor;
}
.content-count-pill span,
.like-pill span {
  min-width: 1.5ch;
}
.post-row-arrow {
  width: 42px;
  min-width: 42px;
  padding: 0;
  align-self: center;
}
.post-row:hover .post-row-arrow,
.post-row:hover .post-row-preview {
  border-color: rgba(37,99,235,0.2);
}
.post-list[data-list-style="cards"] + .list-pagination {
  margin-top: 2.5rem;
}

/* ---- LIST READER ---- */
body.reader-open {
  overflow: hidden;
}
.reader-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  pointer-events: none;
}
.reader-overlay.is-visible {
  pointer-events: auto;
}
.reader-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(8, 11, 18, 0.42);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.32s ease;
}
.reader-overlay.is-visible .reader-backdrop {
  opacity: 1;
}
.reader-surface {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: min(52rem, calc(100vw - 2rem));
  height: 100vh;
  background: color-mix(in srgb, var(--bg) 92%, rgba(10, 15, 25, 0.96));
  border-left: 1px solid rgba(255,255,255,0.08);
  box-shadow: -30px 0 90px rgba(2, 6, 23, 0.34);
  transform: translateX(106%);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
  overflow: hidden;
}
.reader-overlay.is-visible .reader-surface {
  transform: translateX(0);
  opacity: 1;
}
.reader-surface.is-resizing {
  transition: none;
  user-select: none;
}
.reader-surface[data-reader-mode="modal"] {
  top: 10vh;
  left: 50%;
  right: auto;
  width: min(72vw, 58rem);
  min-width: 20rem;
  max-width: calc(100vw - 1.5rem);
  height: min(78vh, 56rem);
  min-height: 20rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  box-shadow: 0 30px 120px rgba(2, 6, 23, 0.5);
  resize: both;
  overflow: auto;
  transform: translate(-50%, 24px) scale(0.98);
}
.reader-overlay.is-visible .reader-surface[data-reader-mode="modal"] {
  transform: translate(-50%, 0) scale(1);
}
.reader-surface.reader-modal-positioned[data-reader-mode="modal"] {
  transform: translate(0, 24px) scale(0.98);
}
.reader-overlay.is-visible .reader-surface.reader-modal-positioned[data-reader-mode="modal"] {
  transform: translate(0, 0) scale(1);
}
.reader-surface[data-reader-mode="fullscreen"] {
  inset: 0;
  width: 100vw;
  height: 100vh;
  border-left: none;
  box-shadow: none;
}
.reader-resize-handle {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 6;
  width: 18px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reader-resize-handle span {
  display: block;
  width: 2px;
  height: 3.25rem;
  border-radius: 999px;
  background: rgba(148,163,184,0.34);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.reader-resize-handle span + span {
  margin-left: 4px;
}
.reader-resize-handle:hover span,
.reader-surface.is-resizing .reader-resize-handle span,
.reader-resize-handle:focus-visible span {
  background: var(--accent-bright);
  box-shadow: 0 0 18px var(--accent-glow-strong);
  transform: scaleY(1.05);
}
.reader-resize-handle:focus-visible {
  outline: none;
}
.reader-surface[data-reader-mode="modal"] .reader-resize-handle,
.reader-surface[data-reader-mode="fullscreen"] .reader-resize-handle {
  display: none;
}
.reader-surface.is-dragging {
  transition: none;
  user-select: none;
}
.reader-toolbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(24px);
  cursor: default;
}
.reader-surface[data-reader-mode="modal"] .reader-toolbar {
  cursor: move;
}
.reader-toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.reader-toolbar-summary {
  min-width: 0;
}
.reader-toolbar-summary strong,
.reader-toolbar-summary p {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reader-toolbar-label {
  margin-bottom: 0.15rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#listReaderTitle {
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.35;
}
.reader-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.reader-icon-button svg {
  width: 17px;
  height: 17px;
}
.reader-icon-button:hover,
.reader-icon-button:focus-visible {
  color: var(--text);
  border-color: var(--border-hover);
  background: color-mix(in srgb, var(--surface-2) 90%, transparent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.reader-icon-button:hover {
  transform: translateY(-1px);
}
.reader-icon-button:focus-visible {
  outline: none;
}
.reader-icon-button[disabled] {
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.reader-menu {
  position: relative;
  z-index: 8;
}
.reader-menu-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  z-index: 12;
  min-width: 13.5rem;
  padding: 0.55rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  background: color-mix(in srgb, var(--bg) 98%, transparent);
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.48);
}
.reader-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.reader-menu-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.reader-menu-item:hover,
.reader-menu-item:focus-visible {
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
  color: var(--text);
  transform: translateX(1px);
  outline: none;
}
.reader-menu-divider {
  height: 1px;
  margin: 0.45rem 0 0.55rem;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.reader-viewport {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 2rem 2rem 3rem;
}
.reader-loading,
.reader-error {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: fit-content;
  max-width: 32rem;
  margin: 2rem auto;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--text-dim);
}
.reader-loading[hidden],
.reader-error[hidden],
.reader-menu-panel[hidden],
.reader-overlay[hidden] {
  display: none !important;
}
.reader-error {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.reader-error a {
  color: var(--accent-bright);
  text-decoration: none;
}
.reader-loading-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-bright);
  box-shadow: 0 0 18px var(--accent-glow-strong);
  animation: reader-pulse 1.2s ease-in-out infinite;
}
@keyframes reader-pulse {
  0%, 100% { transform: scale(0.75); opacity: 0.65; }
  50% { transform: scale(1); opacity: 1; }
}
.reader-content {
  max-width: 46rem;
  margin: 0 auto;
}
.reader-content .post-header {
  margin: 0 auto 2.5rem;
}
.reader-content .content-cover-hero {
  margin: 0 auto 2.5rem;
  max-width: 46rem;
}
.reader-content .post-content {
  max-width: 46rem;
}

/* ---- SINGLE POST PAGE ---- */
.post-page { padding: 8rem 0 6rem; min-height: 100vh; background: var(--bg); }
.post-header { max-width: 720px; margin: 0 auto 3rem; }
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.status-indicator {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
  background: color-mix(in srgb, var(--accent-glow) 55%, transparent);
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.post-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.post-summary {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 620px;
}
.post-like-pill {
  margin-bottom: 2rem;
}
.post-like-pill-bottom {
  display: flex;
  margin: 2.5rem auto 0;
  max-width: 720px;
}
.article-downloads {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.article-downloads-top {
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}
.article-downloads-bottom {
  margin-top: 2.5rem;
}
.article-download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: min(100%, 240px);
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 14%, transparent), transparent 58%),
    color-mix(in srgb, var(--surface) 94%, transparent);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition), background var(--transition);
}
.article-download-link:hover,
.article-download-link:focus-visible {
  border-color: var(--border-hover);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-2px);
}
.article-download-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.article-download-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  color: var(--accent-bright);
  background: color-mix(in srgb, var(--bg-3) 88%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.article-download-icon svg {
  width: 1.3rem;
  height: 1.3rem;
}
.article-download-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.article-download-label {
  color: var(--text);
  font-weight: 600;
  line-height: 1.35;
}
.article-download-type {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.post-header .series-meta {
  margin-bottom: 1.4rem;
}
.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.post-divider { height: 1px; background: var(--border); max-width: 720px; margin: 0 auto 3rem; }
.post-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dim);
}
.post-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 3rem 0 1rem;
  letter-spacing: -0.02em;
}
.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}
.post-content p { margin-bottom: 1.5rem; }
.post-content a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
.post-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--accent-bright);
  background: var(--surface);
  padding: 0.15em 0.45em;
  border-radius: 3px;
  border: 1px solid var(--border);
}
.post-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  color: var(--text);
}
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--text-muted);
  font-style: italic;
}
.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.post-content li { margin-bottom: 0.5rem; }
.post-content img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 2rem 0;
}
.post-content .highlight,
.reader-content .highlight {
  margin: 1.75rem 0;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15,23,42,0.14), rgba(15,23,42,0) 24%),
    #0b1220;
  box-shadow: 0 22px 50px rgba(2, 6, 23, 0.18);
}
.post-content .highlight pre,
.reader-content .highlight pre {
  margin: 0;
  padding: 1.25rem 1.35rem;
  border: 0;
  background: transparent;
}
.article-quiz {
  margin: 2.5rem 0;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, var(--accent-glow), transparent 36%),
    color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 22px 48px rgba(2, 6, 23, 0.14);
  overflow: hidden;
}
.article-quiz-summary {
  list-style: none;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  cursor: pointer;
}
.article-quiz-summary::-webkit-details-marker {
  display: none;
}
.article-quiz-summary-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.article-quiz-summary-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.article-quiz-body {
  padding: 0 1.5rem 1.5rem;
}
.article-quiz-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-3) 88%, transparent);
  color: var(--text);
  flex: 0 0 auto;
}
.article-quiz-toggle svg {
  width: 1rem;
  height: 1rem;
  transition: transform var(--transition);
}
.article-quiz-toggle-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article-quiz-toggle-label-closed {
  display: none;
}
.article-quiz:not([open]) .article-quiz-toggle svg {
  transform: rotate(-90deg);
}
.article-quiz:not([open]) .article-quiz-toggle-label-open {
  display: none;
}
.article-quiz:not([open]) .article-quiz-toggle-label-closed {
  display: inline;
}
.article-quiz-eyebrow,
.article-quiz-status-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.article-quiz-title {
  display: block;
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--text);
}
.article-quiz-intro {
  display: block;
  margin: 0.65rem 0 0;
  color: var(--text-dim);
}
.article-quiz-status {
  min-width: 170px;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-3) 88%, transparent);
  text-align: right;
}
.article-quiz-status strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--text);
  font-size: 0.95rem;
}
.article-quiz-questions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.article-quiz[data-paginated="true"] .article-quiz-questions {
  position: relative;
  display: block;
  overflow: hidden;
}
.article-quiz[data-paginated="true"] .quiz-question {
  transition: transform 0.32s ease, opacity 0.32s ease;
}
.article-quiz[data-paginated="true"] .quiz-question.is-transitioning {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.article-quiz[data-paginated="true"] .quiz-question.is-active:not(.is-transitioning) {
  position: relative;
}
.quiz-question {
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-2) 44%, transparent);
}
.quiz-question.is-correct {
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.18);
}
.quiz-question.is-incorrect {
  border-color: rgba(248, 113, 113, 0.48);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.14);
}
.quiz-question-prompt {
  margin-bottom: 0.95rem;
  color: var(--text);
}
.quiz-question-prompt > :first-child,
.quiz-option-text > :first-child,
.quiz-question-explanation-body > :first-child {
  margin-top: 0;
}
.quiz-question-prompt > :last-child,
.quiz-option-text > :last-child,
.quiz-question-explanation-body > :last-child {
  margin-bottom: 0;
}
.quiz-question-prompt p,
.quiz-option-text p,
.quiz-question-explanation-body p {
  margin-bottom: 0.75rem;
}
.quiz-question-prompt a,
.quiz-option-text a,
.quiz-question-explanation-body a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quiz-question-prompt img,
.quiz-option-text img {
  margin: 0.85rem 0 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  max-width: min(100%, 20rem);
}
.quiz-question-prompt h3,
.quiz-question-prompt h4,
.quiz-question-prompt h5,
.quiz-question-prompt h6 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  color: var(--text);
}
.quiz-question-options {
  display: grid;
  gap: 0.75rem;
}
.quiz-option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.quiz-option:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}
.quiz-option:has(.quiz-option-input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.quiz-option.is-correct {
  border-color: rgba(52, 211, 153, 0.48);
  background: rgba(16, 185, 129, 0.12);
}
.quiz-option.is-incorrect {
  border-color: rgba(248, 113, 113, 0.48);
  background: rgba(239, 68, 68, 0.1);
}
.quiz-option-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.quiz-option-control {
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
}
.quiz-question[data-input-type="checkbox"] .quiz-option-control {
  border-radius: 0.35rem;
}
.quiz-option-input:checked + .quiz-option-control::after {
  content: '';
  position: absolute;
  inset: 0.2rem;
  border-radius: 999px;
  background: var(--accent-bright);
}
.quiz-question[data-input-type="checkbox"] .quiz-option-input:checked + .quiz-option-control::after {
  inset: 0.17rem;
  border-radius: 0.18rem;
}
.quiz-option-text,
.quiz-question-feedback,
.quiz-question-explanation,
.article-quiz-result,
.article-quiz-noscript {
  color: var(--text-dim);
}
.quiz-question-feedback {
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.quiz-question-explanation {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}
.quiz-question-explanation strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.35rem;
}
.quiz-question-explanation-body {
  color: var(--text-dim);
}
.article-quiz-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.article-quiz-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.article-quiz-button {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, var(--surface)), color-mix(in srgb, var(--accent-bright) 18%, var(--surface)));
  color: #eff6ff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.article-quiz-button[disabled] {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.article-quiz-button:hover,
.article-quiz-button:focus-visible {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 4px var(--accent-glow);
  transform: translateY(-1px);
}
.article-quiz-button[disabled]:hover,
.article-quiz-button[disabled]:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
  box-shadow: none;
  transform: none;
  outline: none;
}
.article-quiz-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.article-quiz-button-secondary {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text);
}
.article-quiz-result {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-3) 86%, transparent);
}
.article-quiz-result.is-passing {
  border-color: rgba(52, 211, 153, 0.42);
}
.article-quiz-result.is-failing {
  border-color: rgba(248, 113, 113, 0.4);
}
.article-quiz-result-summary {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}
.article-quiz-result-meta {
  margin: 0.25rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.article-quiz-noscript {
  margin-top: 1rem;
  font-size: 0.92rem;
}
.diagram-block {
  margin: 2rem 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, var(--accent-glow), transparent 36%),
    color-mix(in srgb, var(--surface) 94%, transparent);
  overflow-x: auto;
}
.diagram-block figcaption {
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.mermaid-diagram {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mermaid-diagram svg {
  width: 100%;
  height: auto;
  max-width: 100%;
}
.mermaid-source {
  width: 100%;
  margin: 0;
  white-space: pre-wrap;
}
.excalidraw-diagram {
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  background: #fff;
}

/* ---- 404 PAGE ---- */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg);
}
.nf-inner { text-align: center; }
.nf-code {
  font-family: var(--font-mono);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 800;
  color: var(--surface-2);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}
.nf-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.nf-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 420px;
  margin: 0 auto 2.5rem;
}
.nf-terminal {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  margin-top: 2.5rem;
  color: var(--text-dim);
}
.nt-prompt { color: var(--accent-bright); }
.nt-cmd { color: var(--text); }

/* ---- RESPONSIVE ADDITIONS ---- */
@media (max-width: 768px) {
  .post-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .post-row:hover { margin: 0; padding: 1.5rem 0; }
  .post-row-meta { flex-direction: row; gap: 1rem; }
  .post-row-actions {
    justify-self: start;
  }
  .like-pill {
    padding-inline: 0.8rem;
  }
  .post-row-preview span {
    display: none;
  }
  .post-row-preview {
    width: 42px;
    min-width: 42px;
    padding: 0;
  }
  .list-control-cluster,
  .list-control-dropdown {
    width: 100%;
  }
  .list-control-trigger {
    width: 100%;
    min-width: 0;
  }
  .list-control-menu {
    width: 100%;
  }
  .post-list[data-list-style="compact"] .content-cover-list,
  .post-list[data-list-style="detail"] .content-cover-list,
  .post-list[data-list-style="cards"] .content-cover-list {
    width: 100%;
    min-width: 0;
    flex-basis: auto;
  }
  .post-list[data-list-style="compact"] .post-row,
  .post-list[data-list-style="detail"] .post-row,
  .post-list[data-list-style="cards"] .post-row {
    grid-template-columns: 1fr;
  }
  .post-list[data-list-style="compact"] .post-row:hover,
  .post-list[data-list-style="detail"] .post-row:hover,
  .post-list[data-list-style="cards"] .post-row:hover {
    margin: 0;
  }
  .post-list[data-list-style="compact"] .content-cover-list {
    height: 112px;
  }
  .post-list[data-list-style="cards"] {
    grid-template-columns: 1fr;
  }
  .post-list[data-list-style="detail"] .post-row {
    grid-template-areas:
      "cover"
      "body"
      "actions";
    gap: 0.95rem;
    padding: 1.6rem 0;
  }
  .post-list[data-list-style="detail"] .post-row:hover {
    padding: 1.6rem 0;
  }
  .post-list[data-list-style="detail"] .content-cover-list {
    height: 168px;
  }
  .post-list[data-list-style="detail"] .post-row-title {
    font-size: 1.25rem;
  }
  .list-pagination {
    align-items: flex-start;
  }
  .list-pagination-status {
    order: -1;
    width: 100%;
  }
  .list-pagination-pages {
    order: 3;
    width: 100%;
  }
  .post-page, .list-page { padding: 6rem 0 4rem; }
  .article-quiz {
    border-radius: 18px;
  }
  .article-quiz-summary {
    padding: 1.2rem;
    flex-direction: column;
  }
  .article-quiz-body {
    padding: 0 1.2rem 1.2rem;
  }
  .article-quiz-summary-meta {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .article-quiz-actions,
  .article-quiz-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .article-quiz-status {
    min-width: 0;
    width: 100%;
    text-align: left;
  }
  .article-quiz-toggle {
    justify-content: center;
  }
  .quiz-question {
    padding: 1rem;
  }
  .quiz-option {
    grid-template-columns: 1fr;
  }
  .quiz-option-control {
    display: none;
  }
  .article-download-link {
    width: 100%;
    min-width: 0;
  }
  .section-heading { align-items: start; flex-direction: column; }
  .reader-surface,
  .reader-surface[data-reader-mode="modal"],
  .reader-surface[data-reader-mode="fullscreen"] {
    inset: auto 0 0 0;
    width: 100vw;
    max-width: 100vw;
    height: min(88vh, 48rem);
    min-height: 22rem;
    border: 1px solid var(--border);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -30px 90px rgba(2, 6, 23, 0.38);
    transform: translateY(106%);
    resize: none;
    left: 0;
    right: 0;
    top: auto;
  }
  .reader-overlay.is-visible .reader-surface,
  .reader-overlay.is-visible .reader-surface[data-reader-mode="modal"],
  .reader-overlay.is-visible .reader-surface[data-reader-mode="fullscreen"] {
    transform: translateY(0);
  }
  .reader-resize-handle {
    display: none;
  }
  .reader-toolbar {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .reader-toolbar-group:first-child {
    flex-wrap: wrap;
  }
  .reader-toolbar-summary {
    grid-column: 1 / -1;
    order: 3;
  }
  .reader-viewport {
    padding: 1.2rem 1rem 1.75rem;
  }
  .reader-content .post-header,
  .reader-content .content-cover-hero,
  .reader-content .post-content {
    max-width: 100%;
  }
}

/* ---- PLATFORM PORTFOLIO EXTENSIONS ---- */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.experience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
}
.experience-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 36px var(--accent-glow), 0 8px 40px rgba(0,0,0,0.35);
  transform: translateY(-3px);
}
.experience-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.experience-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 0.35rem;
}
.impact-list {
  color: var(--text-dim);
  margin: 1rem 0 1.25rem;
  padding-left: 1.15rem;
}
.impact-list li {
  margin-bottom: 0.55rem;
  line-height: 1.65;
}
.template-outcome {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}
.resume {
  background: var(--bg-2);
}
.resume-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}
.resume-copy p {
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  max-width: 620px;
  font-size: 1.05rem;
}
.resume-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 0.9rem !important;
}
.resume-note code,
.contact-text code {
  font-family: var(--font-mono);
  color: var(--accent-bright);
}
.resume-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.resume-panel h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .resume-grid { grid-template-columns: 1fr; gap: 2rem; }
}

[data-theme="light"] .hero-grid { opacity: 0.45; }
[data-theme="light"] .hero-name {
  color: #0F172A;
}
[data-theme="light"] .hero-title,
[data-theme="light"] .cursor {
  color: #1E3A8A;
}
[data-theme="light"] .theme-toggle { background: color-mix(in srgb, white 84%, transparent); }

/* ---- GRAPH PAGE ---- */
.graph-page {
  min-height: 100vh;
  padding: 8rem 0 5rem;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 20%, transparent), transparent 36%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-2) 86%, transparent), var(--bg));
}
.graph-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
.graph-shell:fullscreen {
  max-width: none;
  width: 100vw;
  height: 100vh;
  padding: 1rem;
  overflow: auto;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 20%, transparent), transparent 36%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-2) 90%, transparent), var(--bg));
}
.graph-shell:fullscreen .graph-intro {
  display: none;
}
.graph-shell:fullscreen .graph-stage-layout {
  min-height: calc(100vh - 7rem);
  grid-template-columns: minmax(0, 1fr) 320px;
}
.graph-shell:fullscreen .graph-stage,
.graph-shell:fullscreen .graph-panel {
  min-height: calc(100vh - 8rem);
}
.graph-shell:fullscreen .graph-sidebar {
  align-self: stretch;
}
.graph-intro {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 2rem;
}
.graph-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}
.graph-kicker {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.graph-summary {
  max-width: 760px;
  color: var(--text-dim);
  font-size: 1.02rem;
}
.graph-back-link {
  color: var(--accent-bright);
  font-weight: 600;
  white-space: nowrap;
}
.graph-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.graph-search {
  position: relative;
  min-width: min(100%, 360px);
  flex: 1 1 320px;
}
.graph-search-input {
  width: 100%;
  min-height: 50px;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--text);
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.graph-search-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.graph-search-results {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 0.45rem;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}
.graph-search-results[hidden] {
  display: none;
}
.graph-search-result {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.graph-search-result:hover,
.graph-search-result:focus-visible {
  outline: none;
  background: color-mix(in srgb, var(--surface-2) 86%, transparent);
}
.graph-search-result-meta,
.graph-search-empty {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.graph-cluster-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.graph-cluster-control-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.graph-cluster-button {
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text-dim);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}
.graph-cluster-button:hover,
.graph-cluster-button.is-active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
}
.graph-cluster-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.graph-cluster-icon-button svg {
  width: 0.98rem;
  height: 0.98rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.graph-cluster-icon-button:hover,
.graph-cluster-icon-button:focus-visible,
.graph-cluster-icon-button.is-active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
  outline: none;
}
.graph-cluster-icon-button:focus-visible {
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.graph-cluster-icon-button[aria-pressed="false"] {
  color: var(--text-muted);
  opacity: 0.72;
}
.graph-cluster-icon-button[aria-pressed="false"] svg {
  opacity: 0.7;
}
.graph-stage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.25rem;
  align-items: start;
}
.graph-stage-card,
.graph-legend-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--accent) 10%, transparent), transparent 45%),
    color-mix(in srgb, var(--surface) 93%, transparent);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.18);
}
.graph-stage {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), transparent 30%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-2) 80%, transparent), color-mix(in srgb, var(--bg) 96%, transparent));
}
.graph-stage::before,
.graph-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.graph-stage::before {
  background-image:
    linear-gradient(color-mix(in srgb, var(--border) 70%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--border) 70%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.24;
}
.graph-stage::after {
  background: radial-gradient(circle at center, transparent 55%, rgba(8, 11, 18, 0.16));
}
.graph-canvas,
.graph-label-layer,
.graph-panel-backdrop {
  position: absolute;
  inset: 0;
}
.graph-canvas {
  width: 100%;
  height: 100%;
  touch-action: none;
}
.graph-label-layer {
  pointer-events: none;
}
.graph-stage-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.45rem;
  padding: 0.45rem;
  border: 1px solid color-mix(in srgb, var(--border) 92%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.28);
  opacity: 0;
  transform: translateY(-0.35rem);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), border-color var(--transition), background var(--transition);
}
.graph-stage:hover .graph-stage-controls,
.graph-stage:focus-within .graph-stage-controls,
.graph-stage-controls:hover,
.graph-stage-controls:focus-within {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.graph-stage-control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-2) 78%, transparent);
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.graph-stage-control-button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.graph-stage-control-button:hover,
.graph-stage-control-button:focus-visible {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 36%, var(--border));
  background: color-mix(in srgb, var(--surface) 22%, var(--accent));
  box-shadow: 0 0 0 4px var(--accent-glow);
  outline: none;
}
.graph-stage-control-button:active {
  transform: scale(0.96);
}
.graph-stage-control-button[data-graph-view="fullscreen"][aria-pressed="true"] .graph-stage-control-icon-enter,
.graph-stage-control-button[data-graph-view="fullscreen"][aria-pressed="false"] .graph-stage-control-icon-exit {
  display: none;
}
.graph-node-label {
  position: absolute;
  max-width: 12rem;
  padding: 0.34rem 0.6rem;
  border: 1px solid color-mix(in srgb, var(--border) 94%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transform: translate(-50%, -100%);
  transition: opacity var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.graph-node-label.is-hovered,
.graph-node-label.is-selected {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
}
.graph-node-label.is-neighbour {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}
.graph-node-label.is-selected {
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.graph-node-label.is-dimmed {
  opacity: 0.22;
}
.graph-panel-backdrop {
  display: none;
}
.graph-sidebar {
  position: relative;
  min-width: 0;
}
.graph-panel {
  position: relative;
  width: 100%;
  min-height: 72vh;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 72%, transparent), color-mix(in srgb, var(--surface) 95%, transparent));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  transform: translateX(2rem);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
}
.graph-panel.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.graph-panel[aria-hidden="true"] {
  display: none;
}
.graph-sidebar[data-panel-open="true"] .graph-legend {
  display: none;
}
.graph-panel-body {
  display: grid;
  gap: 1rem;
  padding: 1.4rem 1.4rem 1.6rem;
}
.graph-panel-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  cursor: pointer;
}
.graph-panel-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.6px;
  border-radius: 999px;
  background: var(--text);
}
.graph-panel-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.graph-panel-close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.graph-panel-eyebrow {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.graph-panel h2 {
  padding-right: 2rem;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.12;
}
.graph-panel-summary {
  color: var(--text-dim);
}
.graph-panel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}
.graph-panel-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.graph-panel-stats div {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 95%, transparent);
}
.graph-panel-stats dt {
  margin-bottom: 0.25rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.graph-panel-stats dd {
  font-size: 1rem;
  font-weight: 700;
}
.graph-panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.graph-panel-link {
  justify-self: start;
}
.graph-legend {
  display: grid;
  gap: 1rem;
}
.graph-legend-card {
  padding: 1.1rem 1rem;
}
.graph-legend-title {
  font-size: 0.95rem;
}
.graph-filter-builder-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
.graph-filter-builder-copy {
  margin-top: 0.45rem;
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.6;
}
.graph-filter-builder-copy code {
  font-family: var(--font-mono);
  color: var(--text);
}
.graph-filter-builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.graph-filter-action-button {
  min-height: 40px;
  padding: 0 0.95rem;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 84%, transparent);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}
.graph-filter-action-button:hover,
.graph-filter-action-button:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.graph-filter-action-button-secondary {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--text-dim);
}
.graph-filter-builder-list {
  display: grid;
  gap: 0.75rem;
}
.graph-filter-builder-empty {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}
.graph-filter-condition {
  display: grid;
  gap: 0.6rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 95%, transparent);
}
.graph-filter-condition-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.graph-filter-condition-controls label {
  display: grid;
  gap: 0.3rem;
}
.graph-filter-control-label {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.graph-filter-select {
  width: 100%;
  min-height: 40px;
  padding: 0 0.7rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text);
  font: inherit;
}
.graph-filter-select:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.graph-filter-toggle-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: nowrap;
  align-items: center;
}
.graph-filter-toggle {
  min-height: 36px;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text-dim);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.graph-filter-toggle:hover,
.graph-filter-toggle:focus-visible,
.graph-filter-toggle.is-active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
  outline: none;
}
.graph-filter-toggle:focus-visible {
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.graph-filter-toggle:not(.is-active) {
  opacity: 0.7;
}
.graph-filter-segmented {
  display: inline-flex;
  align-items: stretch;
  padding: 0.18rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}
.graph-filter-segment {
  min-width: 3.2rem;
  min-height: 36px;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.graph-filter-segment:hover,
.graph-filter-segment:focus-visible,
.graph-filter-segment.is-active {
  color: var(--text);
  outline: none;
}
.graph-filter-segment.is-active {
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 26%, var(--border));
}
.graph-filter-segment:not(.is-active) {
  opacity: 0.7;
}
.graph-filter-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.graph-filter-remove:hover,
.graph-filter-remove:focus-visible {
  outline: none;
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
}

@media (max-width: 1100px) {
  .graph-stage-layout {
    grid-template-columns: 1fr;
  }
  .graph-sidebar {
    min-height: 0;
  }
  .graph-legend {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .graph-page {
    padding-top: 7rem;
  }
  .graph-shell {
    padding: 0 1rem;
  }
  .graph-heading-row {
    flex-direction: column;
    align-items: start;
  }
  .graph-stage {
    min-height: 68vh;
  }
  .graph-panel {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .graph-toolbar {
    align-items: stretch;
  }
  .series-group + .series-group {
    margin-top: 2rem;
  }
  .graph-search,
  .graph-cluster-controls {
    width: 100%;
  }
  .graph-cluster-controls {
    justify-content: flex-start;
  }
  .graph-legend {
    grid-template-columns: 1fr;
  }
  .graph-node-label {
    max-width: 9rem;
    font-size: 0.66rem;
  }
  .graph-stage-controls {
    top: 0.85rem;
    right: 0.85rem;
    gap: 0.35rem;
    padding: 0.35rem;
  }
  .graph-filter-condition-controls {
    grid-template-columns: 1fr;
  }
  .graph-filter-toggle-row {
    flex-wrap: wrap;
  }
}

@media (hover: none), (pointer: coarse) {
  .graph-stage-controls {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

/* LinkedIn Badge - Allow dynamically showing version based on theme */
.linkedin-badge-dark-site,
.linkedin-badge-light-site {
  display: none;
}

[data-theme="dark"] .linkedin-badge-dark-site {
  display: block;
}

[data-theme="light"] .linkedin-badge-light-site {
  display: block;
}
