/* ============================================================
   DIGITAL CINEMA — Academic Publications Website
   Design: Modern Editorial + Cinematic High-Tech
   ============================================================ */

/* Visually hidden but indexable by search engines */
.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;
}

/* --- CSS Variables --- */
:root {
  --bg-dark: #0a0a0f;
  --bg-surface: #12121a;
  --bg-card: #1a1a26;
  --bg-elevated: #222230;
  --text-primary: #e8e8f0;
  --text-secondary: #9898b0;
  --text-muted: #6868808;
  --accent-cyan: #00e5ff;
  --accent-blue: #4d6dff;
  --accent-magenta: #ff2d7b;
  --accent-gradient: linear-gradient(135deg, #00e5ff, #4d6dff, #ff2d7b);
  --accent-gradient-h: linear-gradient(90deg, #00e5ff, #4d6dff);
  --chrome: #c0c0d0;
  --chrome-dim: #3a3a50;
  --font-display: 'Exo 2', sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-mono: 'Courier New', monospace;
  --max-reading: 720px;
  --max-content: 1200px;
  --nav-height: 64px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 20px); }
body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent-cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }

/* --- Container --- */
.container { max-width: var(--max-content); margin: 0 auto; padding: 0 24px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.03em; text-transform: uppercase;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--accent-gradient-h); color: #000;
}
.btn-primary:hover { box-shadow: 0 0 24px rgba(0,229,255,0.4); color: #000; transform: translateY(-1px); }
.btn-secondary {
  border: 1px solid var(--chrome-dim); color: var(--text-primary); background: transparent;
}
.btn-secondary:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,15,0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--chrome-dim);
  height: var(--nav-height);
}
.nav-inner {
  max-width: var(--max-content); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; height: 100%; gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  color: var(--text-primary); white-space: nowrap;
}
.nav-logo:hover { color: var(--accent-cyan); }
.logo-icon {
  background: var(--accent-gradient-h); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  font-weight: 800; font-size: 1.2rem;
}
.nav-links {
  display: flex; gap: 4px; flex: 1;
}
.nav-links a {
  padding: 8px 14px; border-radius: 4px;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary); white-space: nowrap;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--accent-cyan); background: rgba(0,229,255,0.06); }

.nav-badge {
  display: inline-block;
  background: var(--accent-gradient);
  color: #000; font-size: 0.58rem; font-weight: 800;
  padding: 2px 7px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.08em;
  vertical-align: middle; margin-left: 5px;
  animation: badge-pulse 2.4s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(0,229,255,0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 14px rgba(255,45,123,0.6); }
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-primary); transition: var(--transition); }

.nav-search { margin-left: auto; }
.search-form { display: flex; align-items: center; }
.search-input {
  background: var(--bg-surface); border: 1px solid var(--chrome-dim);
  color: var(--text-primary); padding: 6px 12px; border-radius: 4px 0 0 4px;
  font-size: 0.85rem; width: 180px; outline: none;
  font-family: var(--font-display);
  transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--accent-cyan); }
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
  background: var(--bg-elevated); border: 1px solid var(--chrome-dim); border-left: 0;
  padding: 6px 10px; border-radius: 0 4px 4px 0;
  color: var(--text-secondary); transition: all var(--transition);
  display: flex; align-items: center;
}
.search-btn:hover { color: var(--accent-cyan); }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
  height: 3px; background: rgba(0,0,0,0.3);
}
.reading-progress-bar {
  height: 100%; width: 0%; background: var(--accent-gradient-h);
  transition: width 0.1s linear;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: calc(var(--nav-height) + 40px) 24px 80px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,229,255,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(77,109,255,0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(255,45,123,0.05) 0%, transparent 50%),
              var(--bg-dark);
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.04;
  background-image:
    linear-gradient(rgba(0,229,255,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.3) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
}
@keyframes gridShift {
  0% { transform: translate(0,0); }
  100% { transform: translate(60px, 60px); }
}
.hero-glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.15) 0%, transparent 70%);
  top: 20%; left: 50%; transform: translate(-50%,-50%);
  animation: glowPulse 6s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  0% { opacity: 0.5; transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 1; transform: translate(-50%,-50%) scale(1.2); }
}
.hero-content {
  position: relative; z-index: 1; text-align: center; max-width: 700px;
}
.hero-label {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  color: var(--accent-cyan); text-transform: uppercase; letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.1; margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem; color: var(--text-secondary); line-height: 1.6;
  max-width: 520px; margin: 0 auto 16px;
}
.hero-subsubtitle {
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7;
  max-width: 600px; margin: 0 auto 32px; font-style: italic; opacity: 0.85;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   PUBLICATIONS SECTION
   ============================================================ */
.publications { padding: 100px 0; }
.section-heading {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 700;
  margin-bottom: 48px;
}
.heading-accent {
  color: var(--accent-cyan); margin-right: 12px; font-weight: 800;
}
.pub-group { margin-bottom: 64px; }
.pub-group-label {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
  color: var(--accent-magenta); text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 24px; padding-left: 4px;
}
.pub-cards { display: grid; gap: 24px; }
.pub-cards--articles { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.pub-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--chrome-dim);
  border-radius: 12px; overflow: hidden;
  transition: all var(--transition); color: var(--text-primary);
}
.pub-card:hover {
  border-color: var(--accent-cyan); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,229,255,0.1);
}
.pub-card--book { flex-direction: row; }
.pub-card--book .pub-card-image { width: 280px; min-height: 320px; flex-shrink: 0; }

.pub-cards--articles .pub-card { flex-direction: row; }
.pub-cards--articles .pub-card-image { width: 180px; min-height: 160px; flex-shrink: 0; }
.pub-cards--articles .pub-card-image img { object-fit: contain; background: var(--bg-surface); }
.pub-card--article .pub-card-title { font-size: 1.1rem; }

.pub-card-image--phd {
  background: linear-gradient(135deg, #0a0a1f 0%, #12182e 50%, #1a0d2e 100%);
  display: flex; align-items: center; justify-content: center;
}
.pub-card-image--phd::after {
  content: "PhD";
  font-family: var(--font-display); font-size: 3rem; font-weight: 800;
  background: var(--accent-gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  opacity: 0.35; letter-spacing: 0.1em;
}

.pub-card-image {
  position: relative; overflow: hidden; min-height: 200px;
  background: var(--bg-surface);
}
.pub-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition);
}
.pub-card:hover .pub-card-image img { transform: scale(1.03); }
.pub-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,15,0.6));
}
.pub-card-image--gradient {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-elevated));
}
.pub-card-image--alt {
  background: linear-gradient(135deg, #1a1028, #12121a);
}
.pub-card-icon { color: var(--accent-cyan); opacity: 0.5; }

.pub-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.pub-card-type {
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 600;
  color: var(--accent-cyan); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.pub-card-title {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  line-height: 1.3; margin-bottom: 12px;
}
.pub-card-excerpt {
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6;
  margin-bottom: 16px; flex: 1;
}
.pub-card-link {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  color: var(--accent-cyan); transition: color var(--transition);
}
.pub-card:hover .pub-card-link { color: #fff; }

.pub-card--featured {
  flex-direction: row;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              var(--accent-gradient) border-box;
  position: relative;
}
.pub-card--featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 60px rgba(0,229,255,0.18), 0 0 0 1px rgba(255,45,123,0.2);
}
.pub-card--featured .pub-card-image {
  width: 320px; min-height: 260px; flex-shrink: 0;
  background: linear-gradient(135deg, #0d0d22 0%, #1a0830 50%, #0a1628 100%);
}
.pub-card--featured .pub-card-image img { object-fit: cover; }
.pub-card--featured .pub-card-title { font-size: 1.5rem; }
.pub-card--featured .pub-card-type { color: var(--accent-magenta); }
.cineborg-visual {
  font-size: 5rem; opacity: 0.25; user-select: none;
  background: var(--accent-gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0,229,255,0.4));
  animation: cineborg-glow 3s ease-in-out infinite;
}
@keyframes cineborg-glow {
  0%, 100% { opacity: 0.25; filter: drop-shadow(0 0 20px rgba(0,229,255,0.4)); }
  50% { opacity: 0.4; filter: drop-shadow(0 0 36px rgba(255,45,123,0.5)); }
}
.pub-group--featured .pub-group-label { color: var(--accent-cyan); }

/* ============================================================
   FILMS SECTION
   ============================================================ */
.films-section {
  padding: 80px 0 120px;
  background: var(--bg-surface);
  border-top: 1px solid var(--chrome-dim);
}
.films-intro {
  color: var(--text-secondary); margin-bottom: 40px; max-width: 600px;
}
.film-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.film-card {
  background: var(--bg-card); border: 1px solid var(--chrome-dim);
  border-radius: 10px; padding: 20px; text-align: left;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.film-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent-gradient-h); opacity: 0;
  transition: opacity var(--transition);
}
.film-card:hover { border-color: var(--accent-cyan); transform: translateY(-2px); }
.film-card:hover::before { opacity: 1; }
.film-card-play {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,229,255,0.1); color: var(--accent-cyan);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; transition: all var(--transition);
}
.film-card:hover .film-card-play { background: var(--accent-cyan); color: #000; }
.film-card-title {
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 600;
  margin-bottom: 4px;
}
.film-card-scene { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 4px; }
.film-card-director { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================================
   READING PAGE LAYOUT
   ============================================================ */
.reading-page {
  display: flex; min-height: 100vh;
  padding-top: var(--nav-height);
}

/* TOC Sidebar */
.toc-sidebar {
  position: sticky; top: var(--nav-height); height: calc(100vh - var(--nav-height));
  width: 280px; flex-shrink: 0; overflow-y: auto;
  background: var(--bg-surface); border-right: 1px solid var(--chrome-dim);
  padding: 24px 0;
  scrollbar-width: thin; scrollbar-color: var(--chrome-dim) transparent;
}
.toc-toggle {
  display: none; align-items: center; gap: 8px;
  padding: 12px 20px; width: 100%;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  color: var(--text-secondary); border-bottom: 1px solid var(--chrome-dim);
}
.toc-title {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0 20px 16px; border-bottom: 1px solid var(--chrome-dim);
  margin-bottom: 12px;
}
.toc-list a {
  display: block; padding: 6px 20px;
  font-family: var(--font-display); font-size: 0.82rem;
  color: var(--text-secondary); border-left: 2px solid transparent;
  transition: all var(--transition);
}
.toc-list a:hover { color: var(--accent-cyan); background: rgba(0,229,255,0.04); }
.toc-list a.active {
  color: var(--accent-cyan); border-left-color: var(--accent-cyan);
  background: rgba(0,229,255,0.06);
}
.toc-list ul { margin: 0; }
.toc-list ul a { padding-left: 36px; font-size: 0.78rem; }

/* Reading Content */
.reading-content {
  flex: 1; min-width: 0; padding: 48px 24px 120px;
  display: flex; flex-direction: column; align-items: center;
}
.reading-header {
  text-align: center; margin-bottom: 64px; max-width: var(--max-reading);
  width: 100%;
}
.reading-type {
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 600;
  color: var(--accent-cyan); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 12px; display: block;
}
.reading-title {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 12px;
}
.reading-subtitle {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 300;
  color: var(--text-secondary); margin-bottom: 12px;
}
.reading-author {
  font-size: 1rem; color: var(--text-secondary); margin-bottom: 8px;
}
.reading-affiliation {
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px;
}
.reading-meta {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  font-family: var(--font-display); font-size: 0.8rem; color: var(--text-muted);
  margin-bottom: 20px;
}
.btn-download { margin-top: 8px; }

/* Reading Body */
.reading-body {
  max-width: var(--max-reading); width: 100%;
}
.reading-body p {
  margin-bottom: 1.4em; text-align: justify;
  hyphens: auto; -webkit-hyphens: auto;
}
.reading-body .chapter-title {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 800;
  margin: 80px 0 32px; padding-top: 32px;
  border-top: 2px solid var(--chrome-dim);
}
.reading-body .chapter-title:first-child { border-top: none; margin-top: 0; }
.chapter-num {
  display: block; font-size: 0.75rem; font-weight: 600;
  color: var(--accent-cyan); text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.reading-body .section-title {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  margin: 48px 0 20px; color: var(--accent-cyan);
}
.reading-body .section-title::before {
  content: '//'; margin-right: 8px; opacity: 0.5;
}

/* Pull quotes & photo captions */
.pull-quote {
  border-left: 3px solid var(--accent-cyan);
  margin: 1.8em 0 1.8em 1.5em;
  padding: 0.6em 1em;
  color: var(--text-secondary);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.65;
  background: rgba(0,229,255,0.04);
  border-radius: 0 4px 4px 0;
}
.photo-caption-note {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
  font-style: italic;
  margin: -0.6em 0 1.4em;
  opacity: 0.75;
}

/* Film title highlighting */
.film-title {
  color: var(--accent-cyan);
  font-style: italic;
}

/* ── Film still images ── */
.film-still {
  margin: 1.6em 0;
  max-width: 320px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,229,255,0.15);
  transition: box-shadow 0.25s, transform 0.25s;
}
.film-still:hover {
  box-shadow: 0 8px 36px rgba(0,229,255,0.25), 0 0 0 2px var(--accent-cyan);
  transform: translateY(-2px);
}
.film-still.still-right {
  float: right;
  margin: 0.4em 0 1.4em 2em;
}
.film-still.still-left {
  float: left;
  margin: 0.4em 2em 1.4em 0;
}
.film-still img {
  width: 100%;
  height: auto;
  display: block;
}
.film-still figcaption {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-surface));
  color: var(--text-secondary);
  font-size: 0.78rem;
  padding: 8px 12px;
  line-height: 1.4;
  border-top: 1px solid rgba(0,229,255,0.2);
}
.film-still figcaption em {
  color: var(--accent-cyan);
  font-style: normal;
}
/* Clickable film stills — YouTube play overlay */
.film-still[data-youtube] { cursor: pointer; position: relative; }
.film-still[data-youtube]::after {
  content: '';
  position: absolute;
  top: calc(50% - 36px);
  left: 50%;
  transform: translateX(-50%);
  width: 52px; height: 52px;
  background: rgba(0,0,0,0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300e5ff'%3E%3Cpolygon points='6,3 20,12 6,21'/%3E%3C/svg%3E") center/22px no-repeat;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  opacity: 0;
  transition: opacity 0.22s;
  pointer-events: none;
}
.film-still[data-youtube]:hover::after { opacity: 1; }
/* Clear floats after each heading */
.chapter-title, .section-title { clear: both; }

@media (max-width: 768px) {
  .film-still.still-right,
  .film-still.still-left {
    float: none;
    margin: 1.4em auto;
    max-width: 100%;
  }
}

/* Notes & References */
.notes-section, .references-section {
  border-top: 1px solid var(--chrome-dim); padding-top: 24px; margin-top: 24px;
}
.note-entry, .reference-entry {
  font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 0.8em;
  line-height: 1.6;
}
.note-entry:target {
  background: rgba(255, 45, 123, 0.1);
  border-left: 3px solid var(--accent-magenta);
  padding-left: 8px;
  border-radius: 2px;
}
/* Footnote reference links in body text */
a.fn-ref {
  text-decoration: none;
}
a.fn-ref sup {
  color: var(--accent-magenta);
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 0.72em;
  vertical-align: super;
  line-height: 0;
  margin-left: 1px;
  transition: opacity 0.15s;
}
a.fn-ref:hover sup {
  opacity: 0.7;
}
/* Footnote back-reference links in notes section */
a.fn-backref {
  color: var(--accent-cyan);
  font-size: 0.85em;
  margin-left: 5px;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity var(--transition);
}
a.fn-backref:hover { opacity: 1; }
/* Unlinked footnote numbers (refs without a matching note) */
.reading-content p > sup {
  color: var(--accent-magenta);
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 0.72em;
  vertical-align: super;
  line-height: 0;
  margin-left: 1px;
}

/* ============================================================
   YOUTUBE MODAL
   ============================================================ */
.youtube-modal {
  display: none; position: fixed; inset: 0; z-index: 2000;
  align-items: center; justify-content: center;
}
.youtube-modal.active { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
}
.modal-content {
  position: relative; z-index: 1;
  background: var(--bg-card); border: 1px solid var(--chrome-dim);
  border-radius: 12px; padding: 24px; width: 90%; max-width: 800px;
  animation: modalIn 0.3s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute; top: 12px; right: 16px;
  font-size: 2rem; color: var(--text-secondary); line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--accent-cyan); }
.modal-title {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  margin-bottom: 4px; padding-right: 40px;
}
.modal-desc {
  font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 16px;
}
.modal-video {
  position: relative; width: 100%; padding-bottom: 56.25%;
  background: #000; border-radius: 8px; overflow: hidden;
}
.modal-video iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-page { padding: calc(var(--nav-height) + 60px) 0 120px; }
.about-hero {
  display: flex; align-items: center; gap: 52px;
  margin-bottom: 64px; flex-wrap: wrap;
}
.about-photo {
  width: 260px; height: 260px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--chrome-dim); flex-shrink: 0;
  box-shadow: 0 0 0 6px rgba(0,229,255,0.08), 0 8px 32px rgba(0,0,0,0.5);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-name {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 800;
  margin-bottom: 8px;
}
.about-role {
  font-family: var(--font-display); font-size: 1rem;
  color: var(--accent-cyan); margin-bottom: 4px;
}
.about-affiliation { color: var(--text-secondary); font-size: 0.95rem; }

.about-content { max-width: 720px; }
.about-section { margin-bottom: 48px; }
.about-section h2 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  margin-bottom: 16px; color: var(--accent-cyan);
}
.about-section h2::before { content: '// '; opacity: 0.5; }
.about-section p { margin-bottom: 1em; color: var(--text-secondary); }
.about-interests {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px;
}
.about-interests li {
  font-size: 0.9rem; color: var(--text-secondary);
  padding-left: 16px; position: relative;
}
.about-interests li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-cyan);
}
.about-publications { display: flex; flex-direction: column; gap: 16px; }
.about-pub {
  padding: 16px; background: var(--bg-card); border: 1px solid var(--chrome-dim);
  border-radius: 8px;
}
.about-pub h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.about-pub p { font-size: 0.85rem; margin: 0; }
.about-email a {
  font-family: var(--font-display); font-size: 1.1rem;
  color: var(--accent-cyan);
}
.about-note { font-size: 0.85rem; color: var(--accent-magenta); }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-page { padding: calc(var(--nav-height) + 60px) 0 120px; }
.search-heading {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  margin-bottom: 24px;
}
.search-form-large {
  display: flex; gap: 12px; margin-bottom: 40px; flex-wrap: wrap;
}
.search-input-large {
  flex: 1; min-width: 200px;
  background: var(--bg-surface); border: 1px solid var(--chrome-dim);
  color: var(--text-primary); padding: 14px 20px; border-radius: 8px;
  font-size: 1rem; font-family: var(--font-display); outline: none;
  transition: border-color var(--transition);
}
.search-input-large:focus { border-color: var(--accent-cyan); }
.search-placeholder { color: var(--text-muted); }

.search-result {
  padding: 20px; margin-bottom: 12px;
  background: var(--bg-card); border: 1px solid var(--chrome-dim);
  border-radius: 8px; transition: border-color var(--transition);
}
.search-result:hover { border-color: var(--accent-cyan); }
.search-result-pub {
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 600;
  color: var(--accent-cyan); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.search-result-title {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  margin-bottom: 8px;
}
.search-result-title a { color: var(--text-primary); }
.search-result-title a:hover { color: var(--accent-cyan); }
.search-result-snippet {
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6;
}
.search-result-snippet mark {
  background: rgba(0,229,255,0.2); color: var(--accent-cyan);
  padding: 1px 3px; border-radius: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-surface); border-top: 1px solid var(--chrome-dim);
  padding: 48px 0 32px;
}
.footer-inner {
  max-width: var(--max-content); margin: 0 auto; padding: 0 24px;
  display: flex; gap: 48px; flex-wrap: wrap;
}
.footer-col h4 {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.footer-col a {
  display: block; font-size: 0.85rem; color: var(--text-secondary);
  margin-bottom: 6px;
}
.footer-col a:hover { color: var(--accent-cyan); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  body { font-size: 16px; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-height); left: 0; right: 0;
    background: var(--bg-surface); border-bottom: 1px solid var(--chrome-dim);
    flex-direction: column; padding: 12px;
  }
  .nav-links.open { display: flex; }
  .nav-search { display: none; }

  .hero { min-height: 80vh; }
  .hero-title { font-size: 2rem; }

  .pub-card--book { flex-direction: column; }
  .pub-card--book .pub-card-image { width: 100%; min-height: 200px; }
  .pub-card--featured { flex-direction: column; }
  .pub-card--featured .pub-card-image { width: 100%; min-height: 200px; }
  .pub-cards--articles .pub-card-image { width: 140px; }

  .reading-page { flex-direction: column; }
  .toc-sidebar {
    position: relative; top: auto; width: 100%; height: auto;
    border-right: none; border-bottom: 1px solid var(--chrome-dim);
  }
  .toc-toggle { display: flex; }
  .toc-nav { display: none; padding: 12px 0; }
  .toc-nav.open { display: block; }

  .reading-content { padding: 24px 16px 80px; }
  .reading-title { font-size: 1.6rem; }

  .about-hero { flex-direction: column; text-align: center; }
  .about-photo { margin: 0 auto; }
  .about-interests { grid-template-columns: 1fr; }

  .film-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

  .footer-inner { flex-direction: column; gap: 24px; }
}

@media (max-width: 375px) {
  .hero-cta { flex-direction: column; }
  .pub-cards--articles { grid-template-columns: 1fr; }
}
