/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --orange:  #FF5500;
  --yellow:  #FFD100;
  --nav-bg:  rgba(255, 255, 255, 0.92);
  --fg:      #0A0A0A;
  --muted:   #4A4A4A;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Base ──────────────────────────────────────────────────────────────────── */
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  background: #020304;
}

/* ── Section backgrounds ─────────────────────────────────────────────────── */

/* Light — white with grain */
#hero, #about {
  background-color: #FFFFFF;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 80% 70% at 65% 45%, rgba(255, 85, 0, 0.03) 0%, transparent 65%);
  background-size: 200px 200px, cover;
  color: #0A0A0A;
  --muted: #4A4A4A;
}

/* Project — featured deep card, first dark section */
#project {
  border-top: 4px solid #FF5500;
  padding: 5rem 0 6rem;
  background-color: #000D1C;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 70% 60% at 20% 70%, rgba(255, 85, 0, 0.07) 0%, transparent 60%);
  background-size: 200px 200px, cover;
  color: #C8D0E0;
  --muted: #4E6080;
  --sky: #5BC0FF;
}


/* Nuclear medicine sub-page — products carousel */
#products {
  border-top: 4px solid #FF5500;
  padding: 5rem 0 3rem;
  overflow-x: hidden;
  background-color: #000D1C;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 70% 60% at 80% 30%, rgba(91, 192, 255, 0.07) 0%, transparent 60%);
  background-size: 200px 200px, cover;
  color: #C8D0E0;
  --muted: #4E6080;
  --sky: #5BC0FF;
}

#articles {
  background-color: #000D1C;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  color: #C8D0E0;
  --muted: #4E6080;
  padding: 4rem 0;
}

/* Neurotech sub-page — studies carousel */
#studies {
  border-top: 4px solid #FF5500;
  padding: 5rem 0 3rem;
  overflow-x: hidden;
  background-color: #000D1C;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 70% 60% at 20% 70%, rgba(255, 85, 0, 0.07) 0%, transparent 60%);
  background-size: 200px 200px, cover;
  color: #C8D0E0;
  --muted: #4E6080;
  --sky: #5BC0FF;
}

/* Nuclear medicine sub-page sections */
#nuclycan {
  border-top: 4px solid #FF5500;
  padding: 5rem 0 6rem;
  background-color: #000D1C;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 55% 45% at 80% 30%, rgba(91, 192, 255, 0.06) 0%, transparent 60%);
  background-size: 200px 200px, cover;
  color: #C8D0E0;
  --muted: #4E6080;
  --sky: #5BC0FF;
}

#qualyscan {
  padding: 2rem 0 6rem;
  background-color: #000D1C;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(255, 85, 0, 0.07) 0%, transparent 60%);
  background-size: 200px 200px, cover;
  color: #C8D0E0;
  --muted: #4E6080;
  --sky: #5BC0FF;
}

#writing {
  padding: 2rem 0 6rem;
  background-color: #000D1C;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  color: #C8D0E0;
  --muted: #4E6080;
  --sky: #5BC0FF;
}

/* Terapet — continuous dark, no transition marker needed */
#terapet {
  padding: 2rem 0 6rem;
  background-color: #000D1C;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 55% 45% at 20% 75%, rgba(20, 70, 180, 0.08) 0%, transparent 60%);
  background-size: 200px 200px, cover;
  color: #C8D0E0;
  --muted: #4E6080;
  --sky: #5BC0FF;
}

/* Per-study quote panel — dark, flows from studies carousel */
#study-quote {
  padding: 5rem 0;
  background-color: #000D1C;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  color: #C8D0E0;
  --muted: #4E6080;
}

/* In the news — dark */
#press {
  background-color: #000D1C;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 55% 45% at 80% 25%, rgba(20, 70, 180, 0.10) 0%, transparent 60%);
  background-size: 200px 200px, cover;
  color: #C8D0E0;
  --muted: #4A5A72;
  --sky:   #5BC0FF;
  --sea:   #3090CC;
}


/* Interests — penultimate dark section */
#interests {
  background-color: #040608;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 45% 35% at 72% 65%, rgba(8, 40, 100, 0.08) 0%, transparent 60%);
  background-size: 200px 200px, cover;
  color: #C0C8D8;
  --muted: #465568;
  --sky: #5BC0FF;
  --sea: #3090CC;
}

#contact {
  background-color: #020304;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.015'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  color: #B8C0D0;
  --muted: #404E60;
  --sky:   #5BC0FF;
  --sea:   #3090CC;
}


/* ── Progress bar — thick, glowing ────────────────────────────────────────── */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 5px;
  width: 0%;
  background: linear-gradient(90deg, #FF5500, #FFD100);
  z-index: 100;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.55), 0 0 20px rgba(255, 85, 0, 0.18);
}

/* ── Nav ───────────────────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 2rem;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(128, 128, 128, 0.1);
  z-index: 90;
  transition: background 0.1s ease;
}

#nav .logo {
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: #FF5500;
}

#nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

#nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

#nav a:hover,
#nav a.active { color: var(--fg); }

/* ── Sections ──────────────────────────────────────────────────────────────── */
section { padding: 6rem 0; position: relative; }

.section-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FF5500;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

h2 {
  font-family: 'Source Serif 4', serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.divider {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #FF5500, #FFD100);
  margin-bottom: 2.5rem;
}


/* ── Hero ──────────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  overflow: hidden;
}


.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
  will-change: transform;
  position: relative;
  z-index: 1;
}


.hero-name {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(3.8rem, 9vw, 7.5rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.6s 0.28s ease forwards;
}

.hero-title {
  font-size: 1rem;
  color: #6A6A6A;
  margin-bottom: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.6s 0.44s ease forwards;
}

.hero-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.6s 0.60s ease forwards;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.12s, box-shadow 0.12s;
}

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

.btn-primary {
  background: #FFD100;
  color: #0A0A0A;
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(255, 209, 0, 0.45);
}

.btn-ghost {
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  color: #4A4A4A;
  transition: color 0.15s, border-color 0.15s, transform 0.12s;
}

.btn-ghost:hover { color: #0A0A0A; border-color: #0A0A0A; }


/* ── About ─────────────────────────────────────────────────────────────────── */
.about-body p {
  font-size: 1.05rem;
  color: #3A3A3A;
  max-width: 64ch;
  font-weight: 400;
}

.about-body p + p { margin-top: 1.1rem; }


/* ── Press ─────────────────────────────────────────────────────────────────── */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.press-card {
  display: block;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 1.3rem;
  text-decoration: none;
  color: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.press-card:hover {
  border-color: rgba(255, 85, 0, 0.5);
  background: rgba(255, 85, 0, 0.06);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.press-type {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FF5500;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.press-outlet {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.press-title {
  font-size: 0.85rem;
  color: var(--muted, #4A5A72);
  line-height: 1.55;
  font-weight: 400;
}


/* ── Contact ───────────────────────────────────────────────────────────────── */
.contact-grid { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted, #404E60);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: color 0.15s, border-color 0.15s, transform 0.15s;
}

.contact-link:hover {
  color: #C0C8D0;
  border-color: rgba(91, 192, 255, 0.4);
  transform: translateY(-2px);
}

#cv-footer { display: none; }

/* ── Project card ──────────────────────────────────────────────────────────── */
.project-card {
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.06) 0%, rgba(0, 8, 20, 0) 55%);
  border: 1px solid rgba(255, 85, 0, 0.22);
  border-radius: 8px;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.project-card-body {
  padding: 2.5rem;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%; height: 100%;
  background: radial-gradient(ellipse 80% 80% at 100% 0%, rgba(255, 85, 0, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.project-badge {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FF5500;
  border: 1px solid rgba(255, 85, 0, 0.38);
  border-radius: 3px;
  padding: 0.28rem 0.65rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.project-name {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #F0F4FF;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.project-subtitle {
  font-size: 0.92rem;
  color: var(--sky, #5BC0FF);
  font-weight: 400;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}

.project-desc {
  font-size: 0.93rem;
  color: var(--muted, #4E6080);
  line-height: 1.72;
  max-width: 58ch;
  margin-bottom: 1.6rem;
}

.project-video {
  display: block;
  border-top: 1px solid rgba(255, 85, 0, 0.12);
  border-radius: 0 0 7px 7px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  text-decoration: none;
}

.project-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-video:hover .project-video-thumb {
  transform: scale(1.025);
}

.project-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(0, 5, 15, 0.45);
  color: #E8EEF8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.project-video:hover .project-video-play {
  background: rgba(255, 85, 0, 0.5);
}

/* Blue variant for Terapet card */
.project-card--blue {
  background: linear-gradient(135deg, rgba(91, 192, 255, 0.05) 0%, rgba(0, 8, 20, 0) 55%);
  border-color: rgba(91, 192, 255, 0.16);
}

.project-card--blue::after {
  background: radial-gradient(ellipse 80% 80% at 100% 0%, rgba(91, 192, 255, 0.05) 0%, transparent 70%);
}

.tlinks {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tlink {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.tlink:hover .tlink-label { color: #E0E8F8; }

.tlink-chip {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFD100;
  border: 1px solid rgba(255, 209, 0, 0.35);
  border-radius: 3px;
  padding: 0.2rem 0.5rem;
  font-weight: 700;
  white-space: nowrap;
}

.tlink-label {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: #C0C8D8;
  transition: color 0.15s;
}

.tlink-note {
  font-size: 0.7rem;
  color: var(--muted, #4E6080);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── Card more link ────────────────────────────────────────────────────────── */
.card-more {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FF5500;
  text-decoration: none;
  margin-top: 1.4rem;
  transition: color 0.15s, letter-spacing 0.15s;
}

.card-more:hover {
  color: #FF7733;
  letter-spacing: 0.14em;
}


/* ── Sub-page intro (white header section on neurotech.html / nuclear.html) ─ */
#page-intro {
  background-color: #FFFFFF;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  color: #0A0A0A;
  --muted: #4A4A4A;
  padding: 7rem 0 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FF5500;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.15s;
}

.back-link:hover { color: #CC4400; }

.back-link::before {
  content: '←';
}

.page-title {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.page-desc {
  font-size: 1rem;
  color: #5A5A5A;
  max-width: 52ch;
  line-height: 1.7;
  margin-top: 0.5rem;
}

/* ── Interests ─────────────────────────────────────────────────────────────── */
.interests-body p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #A0ACBC;
  max-width: 58ch;
}

.interests-cta {
  margin-top: 1.5rem !important;
}

.interests-cta a {
  color: #FFD100;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.15s;
}

.interests-cta a:hover { color: #FFDD44; }

/* ── Essay hub (#latest, #archive) ────────────────────────────────────────── */
#latest, #archive {
  background-color: #000D1C;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  color: #C8D0E0;
  --muted: #4E6080;
}

.essay-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.05) 0%, rgba(0, 8, 20, 0) 55%);
  border: 1px solid rgba(255, 85, 0, 0.18);
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.essay-card:hover {
  border-color: rgba(255, 85, 0, 0.4);
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.08) 0%, rgba(0, 8, 20, 0) 55%);
  transform: translateY(-2px);
}

.essay-date {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FF5500;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.essay-title {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #F0F4FF;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 0.8rem;
}

.essay-excerpt {
  font-size: 0.93rem;
  color: var(--muted, #4E6080);
  line-height: 1.7;
  max-width: 58ch;
  margin-bottom: 1.2rem;
}

.essay-read {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FF5500;
}

.essay-coming {
  padding: 2.5rem 0 1rem;
  color: var(--muted, #4E6080);
  font-size: 0.93rem;
  font-style: italic;
}

/* Archive list */
.essay-archive {
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.essay-archive-item {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  transition: color 0.15s;
}

.essay-archive-item:hover .essay-archive-title { color: #E0E8F8; }

.essay-archive-date {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FF5500;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.essay-archive-title {
  font-size: 0.93rem;
  color: var(--muted, #4E6080);
  transition: color 0.15s;
}

/* ── Essay archive nav ─────────────────────────────────────────────────────── */
.essay-archive-nav {
  background-color: #FFFFFF;
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.essay-archive-nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted, #4A4A4A);
  text-decoration: none;
  transition: color 0.15s;
}

.essay-archive-nav a:hover {
  color: #0A0A0A;
}

/* ── Essay body (white, prose-optimised) ───────────────────────────────────── */
#essay-body,
.essay-section {
  background-color: #FFFFFF;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  color: #0A0A0A;
  --muted: #4A4A4A;
  padding: 2rem 0 5rem;
}

/* ── Essay interruptions — author's voice breaking through ─────────────────── */
.essay-interruption {
  background-color: #000D1C;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2020/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 45% 35% at 72% 65%, rgba(8, 40, 100, 0.12) 0%, transparent 60%);
  background-size: 200px 200px, cover;
  padding: 5rem 0;
  color: #C8D0E0;
}

.interruption-inner {
  max-width: 52ch;
  margin: 0 auto;
  padding: 0 2rem;
}

.interruption-text {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  font-style: normal;
  line-height: 1.35;
  color: #EEF0F4;
  margin: 0 0 1.4rem;
  quotes: none;
}

.interruption-text::before {
  content: '\201C';
  color: #FF5500;
  display: block;
  font-size: 1.2em;
  line-height: 0.8;
  margin-bottom: 0.3em;
}

.interruption-attr {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FFD100;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.essay-prose {
  max-width: 65ch;
}

.essay-prose p {
  font-size: 1.08rem;
  line-height: 1.85;
  color: #1A1A1A;
  margin-bottom: 1.4rem;
}

.essay-prose h2 {
  font-family: 'Source Serif 4', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #0A0A0A;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}

.essay-prose blockquote {
  border-left: 3px solid #FF5500;
  padding: 0.2rem 0 0.2rem 1.8rem;
  margin: 2rem 0;
}

.essay-prose blockquote p {
  font-family: 'Source Serif 4', serif;
  font-size: 1.12rem;
  font-style: italic;
  font-weight: 700;
  color: #2A2A2A;
  margin-bottom: 0.5rem;
}

.essay-prose blockquote cite {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FF5500;
  font-style: normal;
  font-weight: 600;
}

.essay-prose h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: #0A0A0A;
  margin: 2rem 0 0.7rem;
  letter-spacing: -0.01em;
}

/* Tables — for the more technical essays */
.essay-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  font-size: 0.96rem;
}

.essay-prose th,
.essay-prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  line-height: 1.6;
  color: #1A1A1A;
}

.essay-prose thead th {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FF5500;
  font-weight: 700;
  background: rgba(255, 85, 0, 0.04);
}

.essay-prose tbody th {
  width: 30%;
  font-weight: 700;
  color: #0A0A0A;
}

/* ── Comments section ──────────────────────────────────────────────────────── */
#comments {
  background-color: #040608;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 45% 35% at 72% 65%, rgba(8, 40, 100, 0.08) 0%, transparent 60%);
  background-size: 200px 200px, cover;
  color: #C0C8D8;
  --muted: #465568;
}

.comments-body { max-width: 52ch; }

.comments-mock {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  padding: 1rem 1.2rem;
  margin-bottom: 2rem;
  cursor: not-allowed;
}

.comments-mock-prompt {
  font-size: 0.9rem;
  color: rgba(192, 200, 216, 0.25);
  font-style: italic;
  user-select: none;
}

.comments-cta {
  font-size: 1rem;
  line-height: 1.75;
  color: #A0ACBC;
  margin-bottom: 1.2rem;
}

/* ── Pull quote ────────────────────────────────────────────────────────────── */
blockquote {
  border-left: 3px solid #FF5500;
  padding: 0 0 0 2rem;
  max-width: 56ch;
}

blockquote p {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.55;
  color: inherit;
  margin-bottom: 1rem;
}

blockquote cite {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FF5500;
  font-style: normal;
  font-weight: 600;
}

/* ── Scroll reveal ─────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: none; }

.stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.00s; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.08s; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.16s; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.24s; }
.stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.32s; }
.stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.40s; }

/* ── Hero entrance ─────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  #nav ul { display: none; }
  .entry, .award-entry { grid-template-columns: 1fr; }
  .entry-date, .award-year { grid-row: auto; grid-column: 1; }
}

/* ── Studies carousel ─────────────────────────────────────────────────────── */
.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  width: 100%;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 1.5rem;
  padding: 0 2rem;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  scroll-snap-align: center;
  flex: 0 0 min(700px, calc(100vw - 4rem));
}

.carousel-slide--muted { color: var(--muted, #4E6080); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 0 0;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
  background: var(--orange);
  transform: scale(1.25);
}

/* ── Per-study quote crossfade ────────────────────────────────────────────── */
#study-quote .section-inner {
  display: grid;
  min-height: 8rem;
}

.study-quote {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  margin: 0;
}
.study-quote.active {
  opacity: 1;
  pointer-events: auto;
}

/* ── Per-study press panels ───────────────────────────────────────────────── */
.press-panel { display: none; }
.press-panel.active { display: block; }

/* Carousel cards are always visible — no slide-up jank inside the track */
.carousel-slide .reveal,
.carousel-slide .stagger > * {
  opacity: 1;
  transform: none;
  transition: none;
}
