/* ==========================================================================
   Premium Personal Site — Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Instrument+Serif:ital@0;1&family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600&display=swap');

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg-dark: #080808;
  --bg-dark-elevated: #111110;
  --bg-dark-surface: #1a1a18;
  --bg-light: #faf9f6;
  --bg-light-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.72);
  --text-on-dark: #f8f7f4;
  --text-on-dark-muted: #9b9994;
  --text-on-light: #121211;
  --text-on-light-muted: #6b6a66;
  --accent: var(--ghost-accent-color, #e8622e);
  --accent-hover: color-mix(in srgb, var(--accent) 82%, black);
  --accent-glow: color-mix(in srgb, var(--accent) 45%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --border-light: rgba(18, 18, 17, 0.08);
  --border-dark: rgba(248, 247, 244, 0.08);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 80px var(--accent-glow);
  --nav-bg: rgba(8, 8, 8, 0.88);
  --nav-bg-scrolled: rgba(8, 8, 8, 0.94);
  --nav-text: #a8a6a0;
  --nav-text-active: #f8f7f4;
  --nav-border: rgba(248, 247, 244, 0.1);
  --grain-opacity: 0.035;
  --hero-image-bg: linear-gradient(165deg, #1c1c1a 0%, color-mix(in srgb, var(--accent) 22%, #1c1c1a) 45%, color-mix(in srgb, var(--accent) 35%, #141210) 100%);
  --hero-outline-border: rgba(245, 244, 240, 0.35);
  --hero-outline-bg: rgba(248, 247, 244, 0.04);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --gh-font-heading: var(--font-display);
  --gh-font-body: var(--font-body);
  --max-width: 1280px;
  --nav-height: 80px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.25s var(--ease-smooth);
  --transition-slow: 0.6s var(--ease-out);
}

/* Remap light-named tokens so section--light, cards, etc. render dark */
[data-theme="dark"] {
  --bg-light: var(--bg-dark-elevated);
  --bg-light-elevated: var(--bg-dark-surface);
  --bg-card: rgba(26, 26, 24, 0.88);
  --text-on-light: var(--text-on-dark);
  --text-on-light-muted: var(--text-on-dark-muted);
  --border-light: var(--border-dark);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-on-light);
  background: var(--bg-light);
  overflow-x: hidden;
  transition: background-color 0.45s var(--ease-smooth), color 0.45s var(--ease-smooth);
}

[data-theme="dark"] body {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

body.home-template {
  background: var(--bg-dark);
}

[data-theme="light"] body.home-template {
  background: var(--bg-light);
}

body:not(.is-loaded) .hero__content > *,
body:not(.is-loaded) .hero__portrait,
body:not(.is-loaded) .hero__image {
  opacity: 0;
}

body.is-loaded .hero__content > * {
  animation: heroFadeUp 1s var(--ease-out) forwards;
}

body.is-loaded .hero__content > *:nth-child(1) { animation-delay: 0.1s; }
body.is-loaded .hero__content > *:nth-child(2) { animation-delay: 0.2s; }
body.is-loaded .hero__content > *:nth-child(3) { animation-delay: 0.3s; }
body.is-loaded .hero__content > *:nth-child(4) { animation-delay: 0.4s; }
body.is-loaded .hero__content > *:nth-child(5) { animation-delay: 0.5s; }

body.is-loaded .hero__portrait,
body.is-loaded .hero__image {
  animation: heroImageIn 1.2s var(--ease-out) 0.15s forwards;
  opacity: 0;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroImageIn {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---- Grain overlay ---- */

.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
  z-index: 2;
}

/* ---- Reveal animations ---- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Typography ---- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
}

h3 { font-size: 1.375rem; font-weight: 600; }

.font-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}

.text-accent { color: var(--accent); }

.text-muted { color: var(--text-on-light-muted); }
.text-muted-dark { color: var(--text-on-dark-muted); }

.lead {
  font-size: 1.25rem;
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

/* ---- Layout ---- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.container--narrow { max-width: 820px; }

.section {
  padding: clamp(5rem, 10vw, 8rem) 0;
  position: relative;
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section--light { background: var(--bg-light); }

.section--elevated {
  background: var(--bg-light-elevated);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---- Navigation ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background 0.5s var(--ease-smooth),
              border-color 0.5s var(--ease-smooth),
              backdrop-filter 0.5s var(--ease-smooth),
              box-shadow 0.5s var(--ease-smooth);
}

.nav.nav--scrolled {
  background: var(--nav-bg-scrolled);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--nav-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  flex-wrap: wrap;
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav__link {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nav-text);
  position: relative;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}

.nav__link:hover,
.nav__link--active { color: var(--nav-text-active); }

.nav__link:hover::after,
.nav__link--active::after { width: 100%; }

/* Home: nav scrolls inside hero, fully clear; pins fixed only after hero */
body.home-template .nav:not(.nav--past-hero) {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: none;
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}

body.home-template .nav.nav--past-hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

body.home-template .nav:not(.nav--scrolled) .nav__link {
  color: color-mix(in srgb, var(--text-on-dark-muted) 88%, var(--text-on-dark));
}

body.home-template .nav:not(.nav--scrolled) .nav__link:hover,
body.home-template .nav:not(.nav--scrolled) .nav__link--active {
  color: var(--text-on-dark);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--nav-border);
  background: var(--hero-outline-bg);
  color: var(--nav-text-active);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out),
              background 0.3s var(--ease-out),
              color 0.3s var(--ease-out);
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle__icon { display: none; }

[data-theme="dark"] .theme-toggle__icon--sun { display: block; }
[data-theme="light"] .theme-toggle__icon--moon { display: block; }

.nav__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 25%, #1c1c1a), var(--accent));
  border: 1.5px solid var(--nav-border);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav__avatar:hover {
  transform: scale(1.06);
  box-shadow: 0 0 24px var(--accent-glow);
}

.nav__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .nav__inner {
    gap: 1rem;
  }

  .nav__links {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, #000 92%, transparent 100%);
  }

  .nav__links::-webkit-scrollbar {
    display: none;
  }

  .nav__link {
    flex-shrink: 0;
  }

  .btn--sm { padding: 0.6rem 1rem; font-size: 0.75rem; }
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.9rem 1.75rem;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease-out),
              background 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out),
              transform 0.3s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--text-on-dark);
  color: var(--bg-dark);
  border-color: var(--text-on-dark);
}

.btn--primary:hover {
  background: transparent;
  color: var(--text-on-dark);
  box-shadow: 0 8px 32px rgba(248, 247, 244, 0.08);
}

.btn--outline {
  background: var(--hero-outline-bg);
  color: var(--text-on-dark);
  border-color: var(--hero-outline-border);
  backdrop-filter: blur(8px);
}

.btn--outline:hover {
  border-color: var(--text-on-dark);
  background: var(--accent-soft);
}

.btn--accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn--accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-color: var(--bg-dark);
}

.btn--dark:hover {
  background: transparent;
  color: var(--bg-dark);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--text-on-light);
  border-color: var(--border-light);
}

.btn--ghost:hover {
  border-color: var(--text-on-light);
}

.btn--sm {
  padding: 0.7rem 1.35rem;
  font-size: 0.8rem;
}

/* ---- Hero ---- */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: var(--nav-height);
  background: var(--bg-dark);
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: meshFloat 12s ease-in-out infinite;
}

.hero__mesh-orb--1 {
  width: 65vw;
  height: 65vw;
  top: -10%;
  right: -18%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent) 0%, transparent 68%);
  animation-delay: 0s;
}

.hero__mesh-orb--2 {
  width: 45vw;
  height: 45vw;
  bottom: 5%;
  right: 8%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent) 0%, transparent 72%);
  animation-delay: -4s;
}

.hero__mesh-orb--3 {
  width: 25vw;
  height: 25vw;
  top: 40%;
  left: -5%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  animation-delay: -8s;
}

@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-3%, 2%) scale(1.05); }
  66% { transform: translate(2%, -3%) scale(0.95); }
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 3;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

/* Homepage: full-bleed top — portrait & mesh under transparent nav */
.hero--home {
  --hero-nav-gap: clamp(0.75rem, 2vw, 1.25rem);
  padding-top: 0;
  min-height: 100dvh;
}

.hero--home .hero__mesh {
  top: 0;
}

.hero--home .hero__inner {
  position: relative;
  z-index: 3;
  min-height: 100dvh;
  padding-top: calc(var(--nav-height) + var(--hero-nav-gap));
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero--home .hero__inner .hero__content {
  max-width: min(44rem, 52%);
  width: 100%;
}

.hero--home .hero__eyebrow {
  font-size: 0.8rem;
  margin-bottom: 1.75rem;
}

.hero--home .hero__title {
  font-size: clamp(3.5rem, 8.5vw, 6.25rem);
  margin-bottom: 1.75rem;
}

.hero--home .hero__bio {
  font-size: clamp(1.25rem, 1.65vw, 1.45rem);
  max-width: 42rem;
  margin-bottom: 2.75rem;
  line-height: 1.72;
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100dvh - var(--nav-height));
  padding-block: clamp(3rem, 6vw, 5rem);
}

.hero__inner .hero__content {
  max-width: 36rem;
  width: min(100%, 46vw);
}

.hero__eyebrow { margin-bottom: 1.5rem; }

.hero__title {
  margin-bottom: 1.5rem;
  line-height: 1.02;
}

.hero__title .font-serif {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero__bio {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-on-dark-muted);
  max-width: 34rem;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero__social {
  display: flex;
  gap: 0.75rem;
}

.hero__social:empty {
  display: none;
}

.hero__social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-on-dark-muted);
  transition: all 0.4s var(--ease-out);
}

.hero__social .social-icon {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  flex-shrink: 0;
}

.hero__social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-3px);
}

/* ---- Hero portrait (homepage) — full-bleed, fades into background ---- */

.hero__image {
  position: relative;
}

.hero__portrait {
  position: absolute;
  top: var(--nav-height);
  right: 0;
  bottom: 0;
  width: 58%;
  z-index: 1;
  pointer-events: none;
}

.hero--home .hero__portrait {
  position: absolute;
  top: 0;
  right: -3%;
  bottom: 0;
  width: 42%;
  z-index: 2;
}

.hero--home .hero__portrait-figure {
  height: 100%;
  border-radius: 0;
  -webkit-mask-image:
    linear-gradient(to bottom, #000 0%, #000 86%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 20%, #000 100%);
  mask-image:
    linear-gradient(to bottom, #000 0%, #000 86%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 20%, #000 100%);
}

.hero--home .hero__portrait-figure::after {
  background:
    linear-gradient(to right, var(--bg-dark) 0%, transparent 28%),
    linear-gradient(to bottom, transparent 62%, var(--bg-dark) 100%);
  opacity: 0.45;
}

.hero--home .hero__portrait-ambient {
  inset: 8% -4% 10% 22%;
}

.hero--home .hero__portrait-glow {
  right: -6%;
  width: 72%;
}

.hero--home .hero__portrait-photo {
  object-position: 68% 8%;
}

.hero__portrait:not(:has(.hero__portrait-photo)) {
  display: none;
}

.hero__portrait-ambient {
  position: absolute;
  inset: 5% -12% 8% 28%;
  background: radial-gradient(
    ellipse 70% 65% at 82% 38%,
    color-mix(in srgb, var(--accent) 36%, transparent) 0%,
    transparent 68%
  );
  filter: blur(48px);
  opacity: 0.45;
}

.hero__portrait-glow {
  position: absolute;
  right: -8%;
  top: 12%;
  width: 58%;
  height: 75%;
  background: radial-gradient(
    ellipse 60% 55% at 50% 45%,
    color-mix(in srgb, var(--accent) 40%, transparent) 0%,
    transparent 72%
  );
  filter: blur(72px);
  opacity: 0.38;
  animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.42; transform: scale(1); }
  50% { opacity: 0.58; transform: scale(1.03); }
}

.hero__portrait-figure {
  margin: 0;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.1s linear;
  will-change: transform;
  /* Fade left, bottom, and top — no hard rectangular crop */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 72%, transparent 100%),
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.2) 16%, #000 40%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 72%, transparent 100%),
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.2) 16%, #000 40%, #000 100%);
  mask-composite: intersect;
}

.hero__portrait-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 48% 14%;
  filter: saturate(0.98) contrast(1.05) brightness(1.02);
}

/* Subtle edge tint — glow stays behind, not on the face */
.hero__portrait-figure::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 55% 50% at 88% 35%,
      color-mix(in srgb, var(--accent) 22%, transparent) 0%,
      transparent 68%
    ),
    linear-gradient(
      to right,
      var(--bg-dark) 0%,
      color-mix(in srgb, var(--bg-dark) 70%, transparent) 18%,
      transparent 40%
    );
  mix-blend-mode: multiply;
  opacity: 0.5;
}

.hero__portrait-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to top, var(--bg-dark) 0%, rgba(8, 8, 8, 0.75) 8%, transparent 28%),
    linear-gradient(to right, var(--bg-dark) 0%, transparent 32%),
    linear-gradient(to bottom, transparent 60%, var(--bg-dark) 100%);
  opacity: 0.65;
}

.hero__portrait-placeholder {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Non-homepage hero frames (about, podcast): keep card treatment */
.hero__image-frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--hero-image-bg);
  position: relative;
  z-index: 1;
  border: 1px solid var(--nav-border);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: transform 0.1s linear;
  will-change: transform;
}

.hero__image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8, 8, 8, 0.5) 100%);
  z-index: 2;
}

.hero__image:not(.hero__image--portrait) .hero__image-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 65%);
  filter: blur(40px);
  opacity: 0.5;
  z-index: 0;
  animation: glowPulse 6s ease-in-out infinite;
}

.hero__image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 20rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

@media (max-width: 1100px) {
  .hero__grid {
    grid-template-columns: 1fr minmax(240px, 46%);
  }

  .hero--home .hero__portrait {
    width: 38%;
    right: -2%;
  }

  .hero--home .hero__inner .hero__content {
    max-width: min(40rem, 48%);
  }

  .hero__portrait {
    width: 54%;
  }

  .hero:not(.hero--home) .hero__inner .hero__content {
    width: min(100%, 50vw);
  }

  .hero__portrait-photo {
    object-position: 50% 18%;
  }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    justify-content: flex-start;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__inner {
    order: 2;
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 3rem;
    justify-content: center;
  }

  .hero__inner .hero__content {
    width: 100%;
    max-width: 34rem;
    margin: 0 auto;
    text-align: center;
  }

  .hero__bio { margin-left: auto; margin-right: auto; }
  .hero__actions, .hero__social { justify-content: center; }

  .hero--home .hero__inner {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 1rem);
  }

  .hero--home .hero__portrait {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    order: 1;
    width: 100%;
    max-width: none;
    height: clamp(18rem, 56vw, 28rem);
    margin: 0;
  }

  .hero--home .hero__inner .hero__content {
    max-width: 34rem;
  }

  .hero--home .hero__content {
    text-align: center;
    margin: 0 auto;
  }

  .hero--home .hero__bio {
    margin-left: auto;
    margin-right: auto;
  }

  .hero--home .hero__actions,
  .hero--home .hero__social {
    justify-content: center;
  }

  .hero--home .hero__portrait-figure {
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  }

  .hero__portrait {
    position: relative;
    top: auto;
    right: auto;
    order: 1;
    width: 100%;
    max-width: 22rem;
    height: clamp(16rem, 52vw, 22rem);
    margin: 0 auto;
  }

  .hero__portrait-figure {
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 72%,
      transparent 100%
    ),
    linear-gradient(
      to right,
      transparent 0%,
      #000 18%,
      #000 82%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      #000 72%,
      transparent 100%
    ),
    linear-gradient(
      to right,
      transparent 0%,
      #000 18%,
      #000 82%,
      transparent 100%
    );
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }

  .hero__portrait-photo {
    object-position: center 18%;
  }
}

@media (max-width: 480px) {
  .hero--home .hero__portrait {
    height: clamp(16rem, 68vw, 24rem);
  }

  .hero__portrait {
    max-width: 19rem;
    height: clamp(14rem, 68vw, 19rem);
  }

  .hero__portrait-photo {
    object-position: center 22%;
  }
}

/* ---- Stats ---- */

.stats {
  background: var(--bg-dark-elevated);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  position: relative;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.stat {
  text-align: center;
  padding: 1rem 2rem;
  position: relative;
}

.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background: var(--border-dark);
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 0.35rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat__label {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .stats__grid { grid-template-columns: 1fr; }

  .stat:not(:last-child)::after {
    right: 50%;
    top: auto;
    bottom: 0;
    transform: translateX(50%);
    width: 48px;
    height: 1px;
  }
}

/* ---- Now section ---- */

.now-section {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.now-section--page {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.now-panel {
  background: var(--bg-light-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.now-item {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-light);
}

.now-item--last {
  border-bottom: none;
}

.now-item__label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: 0.65rem;
}

.now-item__text {
  color: var(--text-on-light);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0;
}

.now-page-notes {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.95rem;
  color: var(--text-on-light-muted);
}

[data-theme="light"] .now-panel {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

/* ---- Cards ---- */

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out),
              box-shadow 0.5s var(--ease-out),
              border-color 0.5s var(--ease-out);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 30%, transparent), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--accent) 15%, transparent);
}

.card:hover::before { opacity: 1; }

.card__number {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  opacity: 0.7;
}

.card__title { margin-bottom: 0.875rem; }

.card__text {
  color: var(--text-on-light-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-on-light);
  letter-spacing: 0.01em;
  transition: gap 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.card__link::after {
  content: '→';
  transition: transform 0.3s var(--ease-out);
}

.card__link:hover {
  color: var(--accent);
  gap: 0.75rem;
}

.card__link:hover::after { transform: translateX(3px); }

/* ---- Quote block ---- */

.quote-block {
  background: var(--bg-light-elevated);
  border: 1px solid var(--border-light);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--text-on-light);
  position: relative;
}

.quote-block::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.2;
  font-family: var(--font-serif);
}

.quote-block--dark {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-dark);
  color: var(--text-on-dark);
}

/* ---- Large quote section ---- */

.quote-section {
  padding: clamp(6rem, 12vw, 10rem) 0;
  text-align: center;
  position: relative;
}

.quote-section__text {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  max-width: 52rem;
  margin: 0 auto;
  color: var(--text-on-dark-muted);
  letter-spacing: -0.01em;
}

.quote-section__text em {
  color: var(--text-on-dark);
  font-style: italic;
}

.quote-section__mark {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  font-style: normal;
}

/* ---- Logo marquee ---- */

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee__track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee__track:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-strip__item {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-on-light-muted);
  opacity: 0.4;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: opacity 0.4s var(--ease-out);
  flex-shrink: 0;
}

.logo-strip__item:hover { opacity: 0.75; }

/* ---- Article cards ---- */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 900px) {
  .article-grid { grid-template-columns: 1fr; }
}

.article-card {
  background: var(--bg-light-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.article-card__image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #eceae5, #d8d6d0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-light-muted);
  position: relative;
  overflow: hidden;
  transition: transform 0.6s var(--ease-out);
}



.article-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.04));
}

.article-card__body { padding: 1.75rem; }

.article-card__tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.article-card__title {
  font-size: 1.2rem;
  margin-bottom: 0.875rem;
  line-height: 1.35;
  transition: color 0.3s var(--ease-out);
}

.article-card:hover .article-card__title { color: var(--accent); }

.article-card__meta {
  font-size: 0.84rem;
  color: var(--text-on-light-muted);
}

/* ---- Page header ---- */

.page-header {
  padding: calc(var(--nav-height) + clamp(3rem, 6vw, 5rem)) 0 clamp(2.5rem, 5vw, 4rem);
  background: var(--bg-dark);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
  opacity: 0.4;
}

.page-header--compact { padding-bottom: 2.5rem; }

.page-header--light {
  background: var(--bg-light);
  color: var(--text-on-light);
}

.page-header--light::before { display: none; }

.page-header__inner { position: relative; z-index: 1; }

.page-header__eyebrow { margin-bottom: 1.25rem; }

.page-header__title { margin-bottom: 1.25rem; }

.page-header__desc {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-on-dark-muted);
  max-width: 38rem;
  line-height: 1.7;
}

.page-header--light .page-header__desc { color: var(--text-on-light-muted); }

/* ---- Article layout ---- */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}

.article-content {
  max-width: 680px;
  width: 100%;
  min-width: 0;
}

.article-content h2 {
  margin: 3rem 0 1.25rem;
  font-size: 1.85rem;
}

.article-content h3 { margin: 2.5rem 0 1rem; }

.article-content p { margin-bottom: 1.5rem; }

.article-content .lead {
  font-size: 1.3rem;
  color: var(--text-on-light);
  font-weight: 400;
}

.article-content blockquote {
  margin: 2.5rem 0;
  padding: 2rem 2.5rem;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.55;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-content ul, .article-content ol {
  margin: 1.25rem 0 1.75rem 1.5rem;
  list-style: disc;
}

.article-content li { margin-bottom: 0.6rem; }

.article-hero-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #eceae5, #d8d6d0);
}

.article-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  align-self: start;
}

.sidebar-box {
  background: var(--bg-light-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.sidebar-box__title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-light-muted);
  margin-bottom: 1.25rem;
}

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

/* ---- Events ---- */

.event-list { display: flex; flex-direction: column; }

.event-item {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 2.5rem;
  align-items: center;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: padding-left 0.4s var(--ease-out);
}

.event-item:first-child { border-top: 1px solid var(--border-light); }

.event-item:hover { padding-left: 0.75rem; }

.event-item__date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.event-item__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.event-item__venue {
  font-size: 0.9rem;
  color: var(--text-on-light-muted);
}

@media (max-width: 700px) {
  .event-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ---- Podcast ---- */

.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 700px) {
  .episode-grid { grid-template-columns: 1fr; }
}

.episode-card {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-light-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.episode-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.episode-card__number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.episode-card__title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.episode-card__meta {
  font-size: 0.84rem;
  color: var(--text-on-light-muted);
}

.player-bar {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.player-bar__progress {
  flex: 1;
  height: 3px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}

.player-bar__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s var(--ease-out);
}

/* ---- Contact ---- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: var(--text-on-light-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-light-elevated);
  color: var(--text-on-light);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-info__block { margin-bottom: 2.75rem; }

.contact-info__label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-light-muted);
  margin-bottom: 0.6rem;
}

.contact-info__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.contact-info__value a {
  color: var(--accent);
  transition: opacity 0.3s var(--ease-out);
}

.contact-info__value a:hover { opacity: 0.75; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---- Footer ---- */

.footer {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 2.75rem);
  background: var(--bg-dark);
  color: var(--text-on-dark-muted);
  border-top: 1px solid var(--border-dark);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__copy {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.footer__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.footer__nav a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  position: relative;
  transition: color var(--transition-fast);
}

.footer__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease-out);
}

.footer__nav a:hover {
  color: var(--text-on-dark);
}

.footer__nav a:hover::after {
  width: 100%;
}

@media (max-width: 600px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .footer__nav {
    justify-content: center;
  }
}

/* ---- Section header ---- */

.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header--center { text-align: center; }

.section-header--center .eyebrow {
  justify-content: center;
}

.section-header__eyebrow,
.section-header .eyebrow { margin-bottom: 1rem; }

/* ---- Filter tabs ---- */

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.filter-tab {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  border: 1px solid var(--border-light);
  background: var(--bg-light-elevated);
  color: var(--text-on-light-muted);
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
}

.filter-tab:hover,
.filter-tab--active {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-color: var(--bg-dark);
  transform: translateY(-1px);
}

/* ---- About extras ---- */

.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--border-dark));
}

.timeline__item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.4rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transform: translateX(-4px);
}

.timeline__year {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.timeline__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.timeline__desc {
  font-size: 0.95rem;
  color: var(--text-on-dark-muted);
  line-height: 1.65;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .values-grid { grid-template-columns: 1fr; }
}

.value-item {
  padding: 2rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-light-elevated);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.value-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-item__icon {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ---- Divider ---- */

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  margin: 0;
}

/* ---- Utility ---- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

.section--tight-top { padding-top: 2rem; }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.section--compact-bottom { padding-bottom: 0; }

.grid-2--center { align-items: center; }
.max-w-content { max-width: 36rem; margin-left: auto; margin-right: auto; }

.hero__image-frame--lg { max-width: 420px; }
.hero__image-frame--md { max-width: 360px; margin-left: auto; }
.hero__image-frame--square { aspect-ratio: 1; border-radius: var(--radius-lg); }
.hero__image-frame--card { aspect-ratio: 1; border-radius: var(--radius-md); }
.hero__image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.hero__actions--tight { margin-top: 2.5rem; margin-bottom: 0; }
.filter-tabs--flush { margin-bottom: 0; }
.btn--block { width: 100%; }

/* ---- Post template ---- */

.post-header__meta {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-on-light-muted);
  margin-bottom: 1.25rem;
}

.post-header__meta a {
  color: inherit;
  transition: color var(--transition-fast);
}

.post-header__meta a:hover {
  color: var(--accent);
}

.post-feature {
  margin: 0 0 2.5rem;
}

.post-feature__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #eceae5, #d8d6d0);
}

.post-template .article-content {
  max-width: none;
  padding-bottom: 0;
}

.post-footer {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-light);
  display: grid;
  gap: 2rem;
}

.post-footer__label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-light-muted);
  margin-bottom: 0.875rem;
}

.post-footer__block--newsletter p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.post-footer .hero__social a {
  border-color: var(--border-light);
  background: var(--bg-light-elevated);
  color: var(--text-on-light-muted);
}

.post-footer .hero__social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.sidebar-box .hero__social a {
  border-color: var(--border-light);
  background: var(--bg-light-elevated);
  color: var(--text-on-light-muted);
}

.sidebar-box .hero__social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.section--compact-top {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.pagination { margin-top: 4rem; }
.pagination__status {
  font-size: 0.9rem;
  margin: 0 1rem;
}
.pagination__btn--prev { margin-right: 0.75rem; }
.pagination__btn--next { margin-left: 0.75rem; }

.page-header__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

@media (max-width: 900px) {
  .page-header__grid {
    grid-template-columns: 1fr;
  }

  .hero__image-frame--md {
    margin-left: auto;
    margin-right: auto;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.featured-episode {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--bg-light-elevated);
  padding: 2.5rem;
}

@media (max-width: 768px) {
  .featured-episode {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }
}

/* Legacy class aliases */
.hero__eyebrow,
.page-header__eyebrow,
.section-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__eyebrow::before,
.page-header__eyebrow::before,
.section-header__eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.section-header--center .hero__eyebrow::before,
.section-header--center .page-header__eyebrow::before,
.section-header--center .section-header__eyebrow::before {
  display: none;
}

.section-header--center .hero__eyebrow,
.section-header--center .page-header__eyebrow,
.section-header--center .section-header__eyebrow {
  justify-content: center;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem 3.5rem;
  padding: 2rem 0;
}

/* ---- Dark mode: light-named sections & components ---- */

[data-theme="dark"] .section--light,
[data-theme="dark"] .section--elevated {
  color: var(--text-on-dark);
}

[data-theme="dark"] .page-header--light {
  color: var(--text-on-dark);
}

[data-theme="dark"] .page-header--light .page-header__desc {
  color: var(--text-on-dark-muted);
}

[data-theme="dark"] .post-header__meta,
[data-theme="dark"] .post-footer__label {
  color: var(--text-on-dark-muted);
}

[data-theme="dark"] .post-footer {
  border-top-color: var(--border-dark);
}

[data-theme="dark"] .post-feature__image,
[data-theme="dark"] .article-card__image {
  background: linear-gradient(145deg, var(--bg-dark-surface), var(--bg-dark-elevated));
}

[data-theme="dark"] .article-card__title {
  color: var(--text-on-dark);
}

[data-theme="dark"] .gh-content {
  color: var(--text-on-dark);
}

[data-theme="dark"] .gh-content h2,
[data-theme="dark"] .gh-content h3 {
  color: var(--text-on-dark);
}

[data-theme="dark"] .now-item__text {
  color: var(--text-on-dark);
}

[data-theme="dark"] .now-page-notes {
  color: var(--text-on-dark-muted);
  border-top-color: var(--border-dark);
}

[data-theme="dark"] .now-item {
  border-bottom-color: var(--border-dark);
}

[data-theme="dark"] .article-content .lead {
  color: var(--text-on-dark);
}

/* ---- Light mode ---- */

[data-theme="light"] {
  color-scheme: light;
  --bg-dark: #f0eeea;
  --bg-dark-elevated: #e8e5df;
  --bg-dark-surface: #dedad3;
  --bg-light: #faf9f6;
  --bg-light-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --text-on-dark: #121211;
  --text-on-dark-muted: #6b6a66;
  --text-on-light: #121211;
  --text-on-light-muted: #6b6a66;
  --accent-glow: color-mix(in srgb, var(--accent) 18%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 8%, transparent);
  --border-light: rgba(18, 18, 17, 0.1);
  --border-dark: rgba(18, 18, 17, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.07);
  --nav-bg: rgba(255, 255, 255, 0.9);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.96);
  --nav-text: #6b6a66;
  --nav-text-active: #121211;
  --nav-border: rgba(18, 18, 17, 0.1);
  --grain-opacity: 0;
  --hero-image-bg: linear-gradient(165deg, #eceae5 0%, #e3ddd4 45%, color-mix(in srgb, var(--accent) 30%, #eceae5) 100%);
  --hero-outline-border: rgba(18, 18, 17, 0.15);
  --hero-outline-bg: rgba(255, 255, 255, 0.55);
}

[data-theme="light"] .hero__mesh-orb--1 {
  opacity: 0.45;
}

[data-theme="light"] .hero__mesh-orb--2 {
  opacity: 0.35;
}

/* Light mode hero — clean & modern, no vintage grading */
[data-theme="light"] .hero--home {
  background:
    radial-gradient(ellipse 65% 50% at 84% 38%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 68%),
    linear-gradient(128deg, #faf9f6 0%, #f5f3ef 52%, #f0eeea 100%);
}

[data-theme="light"] .hero--home .hero__vignette {
  background: radial-gradient(ellipse 90% 80% at 50% 45%, transparent 62%, rgba(18, 18, 17, 0.04) 100%);
}

[data-theme="light"] .hero--home.grain::after {
  opacity: 0;
}

[data-theme="light"] .hero--home .hero__mesh-orb--1,
[data-theme="light"] .hero--home .hero__mesh-orb--2 {
  opacity: 0.16;
}

[data-theme="light"] .hero--home .hero__mesh-orb--3 {
  opacity: 0.5;
}

[data-theme="light"] .hero--home .hero__portrait-glow {
  opacity: 0.18;
}

[data-theme="light"] .hero--home .hero__portrait-ambient {
  opacity: 0.2;
}

[data-theme="light"] .hero--home .hero__portrait-photo {
  filter: none;
}

[data-theme="light"] .hero--home .hero__portrait-figure::before {
  mix-blend-mode: normal;
  opacity: 0.3;
  background: linear-gradient(
    to right,
    #faf9f6 0%,
    color-mix(in srgb, #faf9f6 40%, transparent) 22%,
    transparent 42%
  );
}

[data-theme="light"] .hero--home .hero__portrait-figure::after {
  opacity: 0.28;
  background:
    linear-gradient(to right, #faf9f6 0%, transparent 30%),
    linear-gradient(to bottom, transparent 72%, #f0eeea 100%);
}

[data-theme="light"] .hero--home .hero__wave-canvas {
  mix-blend-mode: normal;
}

[data-theme="light"] .hero--home.is-wave-active .hero__wave-canvas {
  opacity: 0.4;
}

[data-theme="light"] .hero__portrait-figure::after {
  background:
    linear-gradient(to right, var(--bg-light) 0%, transparent 32%),
    linear-gradient(to bottom, transparent 60%, var(--bg-light) 100%);
}

[data-theme="light"] .hero__portrait-figure::before {
  background:
    radial-gradient(
      ellipse 55% 50% at 88% 35%,
      color-mix(in srgb, var(--accent) 10%, transparent) 0%,
      transparent 68%
    ),
    linear-gradient(
      to right,
      var(--bg-light) 0%,
      color-mix(in srgb, var(--bg-light) 50%, transparent) 18%,
      transparent 40%
    );
  mix-blend-mode: normal;
  opacity: 0.35;
}

[data-theme="light"] .hero__social a {
  background: rgba(255, 255, 255, 0.65);
  color: var(--text-on-light-muted);
  border-color: var(--border-light);
}

[data-theme="light"] .hero__social a:hover {
  background: var(--accent-soft);
}

[data-theme="light"] .btn--primary {
  background: var(--text-on-light);
  color: var(--bg-light-elevated);
  border-color: var(--text-on-light);
}

[data-theme="light"] .btn--primary:hover {
  background: transparent;
  color: var(--text-on-light);
}

[data-theme="light"] .btn--dark {
  background: var(--text-on-light);
  color: var(--bg-light-elevated);
  border-color: var(--text-on-light);
}

[data-theme="light"] .btn--dark:hover {
  background: transparent;
  color: var(--text-on-light);
}

[data-theme="light"] .btn--outline {
  color: var(--text-on-dark);
}

[data-theme="light"] .episode-card__number,
[data-theme="light"] .filter-tab--active,
[data-theme="light"] .filter-tab:hover {
  background: var(--text-on-light);
  color: var(--bg-light-elevated);
}

[data-theme="light"] .quote-block--dark {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--border-light);
  color: var(--text-on-light);
}

[data-theme="light"] .gh-content pre {
  background: #1a1a18;
  color: #f8f7f4;
}

[data-theme="light"] .page-header--light {
  background: var(--bg-light);
}

/* Light mode — site-wide clean surfaces (no vintage grading) */
[data-theme="light"] .grain::after {
  opacity: 0;
}

[data-theme="light"] .section--dark,
[data-theme="light"] .quote-section,
[data-theme="light"] .stats {
  background:
    radial-gradient(ellipse 55% 40% at 82% 18%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 68%),
    linear-gradient(180deg, #faf9f6 0%, #f3f1ec 100%);
  color: var(--text-on-light);
}

[data-theme="light"] .stats {
  background: linear-gradient(180deg, #f0eeea 0%, #faf9f6 100%);
  border-top-color: var(--border-light);
  border-bottom-color: var(--border-light);
}

[data-theme="light"] .stat__number {
  color: var(--text-on-light);
}

[data-theme="light"] .stat__label {
  color: var(--text-on-light-muted);
}

[data-theme="light"] .stat:not(:last-child)::after {
  background: var(--border-light);
}

[data-theme="light"] .page-header {
  background:
    radial-gradient(ellipse 65% 48% at 78% 22%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 66%),
    linear-gradient(180deg, #faf9f6 0%, #f0eeea 100%);
  color: var(--text-on-light);
}

[data-theme="light"] .page-header::before {
  opacity: 0.12;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 70%);
}

[data-theme="light"] .page-header__desc {
  color: var(--text-on-light-muted);
}

[data-theme="light"] .page-header--light::before {
  opacity: 0.1;
}

[data-theme="light"] .quote-section::before {
  opacity: 0.2;
  background: radial-gradient(ellipse 55% 45% at 50% 50%, color-mix(in srgb, var(--accent) 4%, transparent), transparent 72%);
}

[data-theme="light"] .quote-section__text {
  color: var(--text-on-light-muted);
}

[data-theme="light"] .quote-section__text em {
  color: var(--text-on-light);
}

[data-theme="light"] .text-muted-dark {
  color: var(--text-on-light-muted);
}

[data-theme="light"] .footer {
  background: var(--bg-light);
  color: var(--text-on-light-muted);
  border-top-color: var(--border-light);
}

[data-theme="light"] .footer__nav a {
  color: var(--text-on-light-muted);
}

[data-theme="light"] .footer__nav a:hover {
  color: var(--text-on-light);
}

[data-theme="light"] .newsletter-form__input {
  background: var(--bg-light);
  border-color: var(--border-light);
  color: var(--text-on-light);
}

[data-theme="light"] .section--light {
  background: linear-gradient(180deg, #faf9f6 0%, var(--bg-light) 100%);
}

[data-theme="light"] .section--elevated {
  background: linear-gradient(180deg, var(--bg-light-elevated) 0%, #f8f6f2 100%);
}

[data-theme="light"] .article-card__image::after {
  background: linear-gradient(180deg, transparent 45%, rgba(18, 18, 17, 0.1) 100%);
  opacity: 0.35;
}

[data-theme="light"] .article-card:hover .article-card__image::after {
  opacity: 0.5;
}

[data-theme="light"] .hero__image-frame::after {
  background: linear-gradient(180deg, transparent 55%, rgba(18, 18, 17, 0.08) 100%);
}

[data-theme="light"] .error-page__code {
  color: color-mix(in srgb, var(--accent) 75%, var(--text-on-light));
}

[data-theme="light"] .error-page__desc {
  color: var(--text-on-light-muted);
}

[data-theme="light"] .cursor-glow.is-visible {
  opacity: 0.12;
}

[data-theme="light"] .btn--outline {
  color: var(--text-on-light);
  border-color: var(--border-light);
}

[data-theme="light"] .section--dark .btn--outline,
[data-theme="light"] .quote-section .btn--outline {
  color: var(--text-on-light);
  border-color: color-mix(in srgb, var(--text-on-light) 22%, transparent);
}

.section--dark,
.section--light,
.hero,
.footer,
.stats,
.page-header,
.card,
.article-card,
.quote-block,
.nav {
  transition: background-color 0.45s var(--ease-smooth),
              color 0.45s var(--ease-smooth),
              border-color 0.45s var(--ease-smooth);
}

/* ---- Ghost editor content ---- */

.gh-content {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.gh-content > * + * {
  margin-top: 1.25rem;
}

.gh-content h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin-top: 2.5rem;
  letter-spacing: -0.03em;
}

.gh-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-top: 2rem;
}

.gh-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gh-content blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  padding: 1.5rem 2rem;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.gh-content img {
  border-radius: var(--radius-md);
  margin: 2rem 0;
}

.gh-content ul,
.gh-content ol {
  padding-left: 1.5rem;
  list-style: disc;
}

.gh-content code {
  font-size: 0.9em;
  background: var(--accent-soft);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.gh-content pre {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 0.9rem;
}

.gh-content pre code {
  background: none;
  padding: 0;
}

.gh-content .kg-card {
  margin: 2rem 0;
}

.gh-content .kg-image-card img {
  margin: 0;
}

.gh-content .kg-width-wide,
.gh-content .kg-width-full {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  transform: none;
}

.gh-content .kg-width-full img {
  width: 100%;
  border-radius: 0;
}

.gh-content .kg-btn-accent,
.gh-content .kg-product-card-btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.gh-content .kg-btn-accent:hover,
.gh-content .kg-product-card-btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.gh-content .kg-callout-card-background-accent {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
}