/* ============================================================
   deepengarg.github.io — shared stylesheet
   Staging build for /temp-workbench/. Editorial identity with a
   dynamic, motion-driven layout. Retheme from this one file.
   ============================================================ */

:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-hi: #f4f4f3;
  --line: #e6e6e6;
  --ink: #232323;
  --ink-soft: #5e5e5e;
  --ink-darkfaint: #7c7c7c;
  --ink-faint: #9a9a9a;
  --accent: #095f7a;
  --accent-tint: #e4f1f4;
  --danger: #c0563a;
  --radius: 16px;

  --dark-bg: #0c1b22;
  --dark-ink: #eaf0f1;
  --dark-soft: #91a8ad;
  --dark-accent: #6fc1d4;

  --ease: cubic-bezier(.22, .68, .32, 1);
  --ease-settle: cubic-bezier(.34, 1.32, .5, 1);
  /* fonts come from ../fonts/fonts.css */
}

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

html { scroll-behavior: smooth; }
html, body { background: var(--bg); }

body {
  font-family: var(--font-body, "Helvetica Neue", Arial, sans-serif);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
::selection { background: var(--accent-tint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; display: block; }

/* ============================================================
   Reveal-on-scroll (hidden only when JS is on — graceful fallback)
   ============================================================ */

.js [data-reveal] {
  opacity: 0;
  transition: opacity .8s var(--ease), transform .8s var(--ease-settle);
  transition-delay: calc(var(--i, 0) * 75ms);
  will-change: opacity, transform;
}
.js [data-reveal="up"]    { transform: translateY(42px); }
.js [data-reveal="left"]  { transform: translateX(-52px); }
.js [data-reveal="right"] { transform: translateX(52px); }
.js [data-reveal="scale"] { transform: scale(.9); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  /* Suppress all transitions and animations globally, then restore the
     purely decorative ones that should keep running at their normal pace. */
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .marquee-track         { animation-duration: 42s !important; }
  .scroll-cue .rail::after { animation-duration: 1.9s !important; }
}

/* ============================================================
   Layout
   ============================================================ */

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 48px; }

.section { position: relative; padding: clamp(70px, 11vh, 132px) 0; }
.section + .section { border-top: 1px solid var(--line); }

/* ============================================================
   Scroll progress + navigation
   ============================================================ */

.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: var(--accent);
  z-index: 120;
  transition: width .1s linear;
}

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; gap: 14px;
  padding: 20px 48px;
  background: transparent;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.nav.scrolled {
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  backdrop-filter: saturate(1.6) blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 8px 28px rgba(0, 0, 0, .05);
  padding: 12px 48px;
}

.brand {
  font-family: var(--font-display, Georgia, serif);
  font-size: 21px; font-weight: 400;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap; line-height: 1;
}
/* .brand .brand-mark { font-style: italic; } */
.brand .brand-mark { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 17px; font-weight: 500;
  letter-spacing: .01em;
  padding: 9px 14px; border-radius: 9px;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute;
  left: 14px; right: 14px; bottom: 3px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .32s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-links a.cv-link {
  background: var(--accent); color: #fff;
  font-weight: 600; padding: 8px 16px;
}
.nav-links a.cv-link::after { display: none; }
.nav-links a.cv-link:hover { filter: brightness(1.1); color: #fff; }
.nav-links a.cv-link .ext { font-size: 11px; vertical-align: 1px; margin-left: 3px; }

.nav-burger {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-left: auto;
  border: none; background: none; border-radius: 10px;
  color: var(--ink); cursor: pointer;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.burger-box { position: relative; width: 24px; height: 16px; transition: transform .4s var(--ease); }
.burger-line {
  position: absolute; left: 0; right: 0; height: 2px;
  border-radius: 2px; background: currentColor;
  transition: transform .4s var(--ease), opacity .2s ease;
}
.burger-line:nth-child(1) { top: 0; }
.burger-line:nth-child(2) { top: 7px; }
.burger-line:nth-child(3) { top: 14px; }
body.drawer-open .nav-burger { color: #fff; }
body.drawer-open .burger-box { transform: rotate(180deg); }
body.drawer-open .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.drawer-open .burger-line:nth-child(2) { opacity: 0; }
body.drawer-open .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0;
  background: rgba(12, 27, 34, .5);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease; z-index: 105;
}
.nav-drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 282px; max-width: 84vw;
  background: var(--dark-bg);
  box-shadow: 2px 0 40px rgba(0, 0, 0, .3);
  transform: translateX(-100%);
  transition: transform .34s var(--ease);
  z-index: 106;
  display: flex; flex-direction: column;
  padding: 84px 0 20px;
}
body.drawer-open .nav-scrim { opacity: 1; pointer-events: auto; }
body.drawer-open .nav-drawer { transform: translateX(0); }
.nav-drawer a {
  text-decoration: none; color: var(--dark-soft);
  font-size: 18px; font-weight: 500;
  padding: 15px 26px;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.nav-drawer a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-drawer a.active { color: #fff; border-left-color: var(--dark-accent); }

@media (min-width: 821px) { .nav-drawer, .nav-scrim { display: none; } }

/* ============================================================
   Typography helpers
   ============================================================ */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }

.section-title {
  font-family: var(--font-display, "Iowan Old Style", Georgia, serif);
  font-weight: 400; font-style: italic;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.02; letter-spacing: -.015em;
}

.lede {
  color: var(--ink-soft);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.64;
  max-width: 60ch;
}
.lede a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.ghost-num {
  font-family: var(--font-display, Georgia, serif);
  font-style: italic; font-weight: 400;
  font-size: clamp(110px, 20vw, 260px);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(9, 95, 122, .16);
  letter-spacing: -.03em;
  pointer-events: none; user-select: none;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 150px 0 100px;
  overflow: hidden;
}
.hero.hero-sub { min-height: auto; padding: 158px 0 72px; }

.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 94%);
  mask-image: linear-gradient(180deg, #000 40%, transparent 94%);
}
.hero .wrap { position: relative; z-index: 1; }

.hero-eyebrow { margin-bottom: clamp(18px, 2.6vw, 26px); animation: fadeUp .8s var(--ease) both .1s; }

.hero-name {
  font-family: var(--font-display, "Iowan Old Style", Georgia, serif);
  font-weight: 400; font-style: italic;
  font-size: clamp(40px, 5.4vw, 70px);
  line-height: 1; letter-spacing: -.02em;
  color: var(--ink);
  display: flex; flex-wrap: wrap; gap: 0 .26em;
}
.hero-name .word { display: inline-block; }
.hero-name .word:nth-child(1) { animation: fadeUp .8s var(--ease-settle) both .22s; }
.hero-name .word:nth-child(2) { animation: fadeUp .8s var(--ease-settle) both .32s; }

.hero-meta {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 6px 20px;
  margin-top: clamp(18px, 2.6vw, 26px);
  max-width: 820px;
  animation: fadeUp .8s var(--ease) both .46s;
}
.hero-role { font-size: clamp(14px, 1.4vw, 16px); color: var(--ink-soft); }
.hero-role strong { color: var(--ink); font-weight: 600; }
.hero-role a { color: var(--accent); text-decoration: none; }
.hero-role a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-line { flex: 1; min-width: 80px; height: 1px; background: var(--line); }

.hero-blurb {
  margin-top: 24px; max-width: 56ch;
  font-size: clamp(15px, 1.5vw, 18.5px);
  color: var(--ink-soft); line-height: 1.62;
  animation: fadeUp .8s var(--ease) both .58s;
}

.contact-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 32px;
  animation: fadeUp .8s var(--ease) both .7s;
}
.contact-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 500;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--line);
  border-radius: 30px; padding: 9px 16px;
  transition: border-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.contact-link:hover {
  border-color: var(--accent);
  color: var(--dark-accent);
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(9, 95, 122, .12);
}
.contact-link .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-tint); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  z-index: 1;
  animation: fadeUp 1s var(--ease) both 1s;
}
.scroll-cue span {
  font-size: 10.5px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--ink-faint);
}
.scroll-cue .rail {
  width: 1px; height: 44px;
  background: var(--line);
  position: relative; overflow: hidden;
}
.scroll-cue .rail::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 16px; background: var(--accent);
  animation: railDrop 1.9s var(--ease) infinite;
}

/* ============================================================
   Section heading
   ============================================================ */

.head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(38px, 5.5vw, 66px); }
.head.with-num {
  display: grid; grid-template-columns: 1fr auto;
  align-items: end; gap: 8px 40px;
}
.head .head-text { display: flex; flex-direction: column; gap: 14px; }
.head .ghost-num { justify-self: end; margin-bottom: -.1em; }

/* ============================================================
   Intro statement
   ============================================================ */

.intro-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 6vw, 92px); align-items: start;
}
.statement {
  font-family: var(--font-display, "Iowan Old Style", Georgia, serif);
  font-weight: 400; font-style: italic;
  font-size: clamp(25px, 3.2vw, 44px);
  line-height: 1.2; letter-spacing: -.015em;
  color: var(--ink); max-width: 17ch;
}
.statement em { color: var(--accent); }
.intro-grid .lede + .lede { margin-top: 16px; }

/* ============================================================
   Research-direction cards — staggered staircase
   ============================================================ */

.focus-stack {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 26px; align-items: start;
}
.focus-stack .focus-card:nth-child(2) { margin-top: 60px; }
.focus-stack .focus-card:nth-child(3) { margin-top: 120px; }

.focus-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.focus-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform .35s var(--ease);
}
.focus-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 22px 48px rgba(9, 95, 122, .14);
}
.focus-card:hover::before { transform: scaleY(1); }
.focus-card .fc-num {
  font-family: var(--font-mono, ui-monospace, Menlo, monospace);
  font-size: 12px; color: var(--accent); letter-spacing: .08em;
}
.focus-card h3 {
  font-family: var(--font-display, "Iowan Old Style", Georgia, serif);
  font-style: italic; font-weight: 400;
  font-size: 23px; line-height: 1.18;
  margin: 16px 0 12px;
}
.focus-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.62; }

/* ============================================================
   Dark band
   ============================================================ */

.band {
  position: relative;
  background: var(--dark-bg);
  color: var(--dark-ink);
  padding: clamp(78px, 12vh, 156px) 0;
  overflow: hidden;
}
.band::before {
  content: ""; position: absolute;
  top: -30%; right: -10%; width: 70%; height: 130%;
  background: radial-gradient(circle, rgba(111, 193, 212, .14) 0%, transparent 62%);
  pointer-events: none;
}
.band .eyebrow { color: var(--dark-accent); }
.band .eyebrow::before { background: var(--dark-accent); }

.band-statement {
  font-family: var(--font-display, "Iowan Old Style", Georgia, serif);
  font-weight: 400; font-style: italic;
  font-size: clamp(27px, 3.9vw, 52px);
  line-height: 1.18; letter-spacing: -.018em;
  max-width: 24ch; margin-top: 26px;
}
.band-statement em { color: var(--dark-accent); }
.band-statement .word {
  display: inline-block;
  opacity: 0; transform: translateY(26px);
  transition: opacity .6s var(--ease), transform .6s var(--ease-settle);
  transition-delay: calc(var(--i, 0) * 52ms);
}
.band-statement.in .word { opacity: 1; transform: none; }

.marquee {
  margin-top: clamp(46px, 7vw, 84px);
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-display, Georgia, serif);
  font-style: italic;
  font-size: clamp(21px, 2.7vw, 36px);
  color: var(--dark-soft);
  padding: 0 .55em; white-space: nowrap;
}
.marquee-item .sep { color: var(--dark-accent); font-style: normal; padding-left: 1.1em; }

/* ============================================================
   Bio prose
   ============================================================ */

.bio-grid {
  display: grid; grid-template-columns: clamp(230px, 26vw, 320px) 1fr;
  gap: clamp(30px, 6vw, 90px); align-items: start;
}
.bio-aside { position: sticky; top: 110px; }

/* Portrait */
.bio-photo {
  margin: 0;
  max-width: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .42);
}
.bio-photo img {
  width: 100%; height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Address below the portrait */
.bio-address {
  margin-top: 22px;
  max-width: 360px;
  font-style: normal;
  font-size: 15px; line-height: 1.7;
  color: var(--dark-soft);
}
.bio-address a {
  color: var(--dark-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(111, 193, 212, .35);
}
.bio-address a:hover { border-bottom-color: var(--dark-accent); }

/* Text column (intro note + prose) */
.bio-note {
  font-size: 13px; color: var(--ink-faint);
  max-width: 22ch; line-height: 1.6; margin-top: 14px;
}
.bio-prose { max-width: 64ch; }
.bio-prose p {
  color: var(--ink-soft);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.72;
  text-align: justify;
  hyphens: auto;
}
.bio-prose p + p { margin-top: 17px; }
.bio-prose p:first-of-type::first-letter {
  font-family: var(--font-display, Georgia, serif);
  font-style: italic; font-weight: 400;
  font-size: 3em; line-height: .8;
  float: left; margin: 8px 14px -2px 0;
  color: var(--accent);
}

/* Readable variants on the dark band */
.band .bio-note {
  color: var(--dark-soft);
  max-width: 54ch;
  font-size: 15px; line-height: 1.65;
  margin-top: 16px; margin-bottom: 30px;
}
.band .bio-prose p { color: var(--dark-soft); }
.band .bio-prose p:first-of-type::first-letter { color: var(--dark-accent); }

/* ============================================================
   Research themes
   ============================================================ */

.themes { display: flex; flex-direction: column; }
.theme {
  display: grid;
  grid-template-columns: clamp(92px, 12vw, 176px) 1fr;
  gap: clamp(22px, 4vw, 60px);
  padding: clamp(38px, 5.5vw, 72px) 0;
  border-top: 1px solid var(--line);
}
.theme:first-child { border-top: none; padding-top: 6px; }
.theme-num {
  font-family: var(--font-mono, Georgia, serif);
  font-style: normal; font-weight: 400;
  font-size: clamp(46px, 5vw, 112px);
  line-height: .8;
  color: var(--accent);
  /* -webkit-text-stroke: 1.4px rgba(9, 95, 122, .32);
  transition: -webkit-text-stroke-color .3s ease; */
}
.theme:hover .theme-num { -webkit-text-stroke-color: var(--accent); }
.theme-title {
  font-family: var(--font-display, "Iowan Old Style", Georgia, serif);
  font-style: italic; font-weight: 400;
  font-size: clamp(23px, 3vw, 36px);
  line-height: 1.14; margin-bottom: 16px;
}
.theme-body {
  color: var(--ink-soft);
  font-size: clamp(15px, 1.45vw, 16.5px);
  line-height: 1.68; max-width: 64ch;
  text-align: justify;
  /* hyphens: auto; */
}
.theme-body + .theme-body { margin-top: 14px; }
.theme-body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(9,95,122,.3); }
.theme-body a:hover { border-bottom-color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag {
  font-family: var(--font-mono, ui-monospace, Menlo, monospace);
  font-size: 11.5px; letter-spacing: .03em;
  color: var(--ink-soft);
  background: var(--panel-hi);
  border-radius: 30px; padding: 6px 13px;
}

/* ============================================================
   Publications
   ============================================================ */

.pub-group { display: grid; grid-template-columns: 8rem 1fr; gap: 0 36px; }
.pub-group + .pub-group { margin-top: 10px; }
.pub-year {
  font-family: var(--font-mono, monospace);
  font-style: normal; font-weight: 400;
  font-size: clamp(30px, 3.6vw, 48px);
  color: var(--ink-faint); padding-top: 26px;
}
.pub-list { display: flex; flex-direction: column; }
.pub-entry {
  position: relative;
  padding: 26px 0 26px 26px;
  border-top: 1px solid var(--line);
  transition: padding-left .3s var(--ease);
}
.pub-entry::before {
  content: ""; position: absolute;
  left: 0; top: 26px; bottom: 26px;
  width: 2px; background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform .32s var(--ease);
}
.pub-entry:hover { padding-left: 34px; }
.pub-entry:hover::before { transform: scaleY(1); }
.pub-group:first-child .pub-entry:first-child { border-top: none; }
.pub-authors { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 6px; }
.pub-authors .me { color: var(--ink); font-weight: 700; }
.pub-title {
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 600; color: var(--ink);
  line-height: 1.36; margin-bottom: 7px;
}
.pub-venue {
  font-family: var(--font-display, Georgia, serif);
  font-style: italic; font-size: 15px; color: var(--ink-soft);
}
.pub-venue .num {
  font-family: var(--font-mono, ui-monospace, Menlo, monospace);
  font-style: normal; font-size: 12.5px; color: var(--ink-faint);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  font-family: var(--font-mono, ui-monospace, Menlo, monospace);
  font-size: 12px; letter-spacing: .03em;
  font-weight: 550;
  text-transform: lowercase; text-decoration: none;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 12px;
  transition: border-color .15s, color .15s, background .15s, transform .15s;
}
.chip:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-tint); transform: translateY(-1px);
}

/* ============================================================
   Notes / arrow links
   ============================================================ */

.note { background: var(--accent-tint); border-radius: var(--radius); padding: 26px 28px; }
.note p { color: var(--ink-soft); font-size: 15px; line-height: 1.64; }
.note p strong { color: var(--ink); }
.note a { color: var(--accent); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600;
  text-decoration: none; color: var(--accent);
}
.arrow-link .arw { display: inline-flex; transition: transform .22s var(--ease); }
.arrow-link:hover .arw { transform: translateX(6px); }
.section-cta { margin-top: clamp(38px, 5.5vw, 60px); }

/* ============================================================
   Footer
   ============================================================ */

.site-footer { border-top: 1px solid var(--line); padding: 54px 0 60px; }

/* Galaxy background variant */
.site-footer.has-bg {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background-color: var(--dark-bg);
  background-image:
    linear-gradient(rgba(8, 15, 20, .05), rgba(8, 15, 20, .4)),
    url("/images/footer.jpg");
  background-size: cover;
  background-position: center;
  color: var(--dark-ink);
}
.site-footer.has-bg .footer-name { color: #fff; }
.site-footer.has-bg .footer-links a { color: var(--dark-ink); }
.site-footer.has-bg .footer-links a:hover { color: var(--dark-accent); }
.site-footer.has-bg .footer-meta { color: var(--dark-ink); }

.footer-inner {
  display: flex; flex-wrap: wrap;
  gap: 24px 48px; align-items: flex-end; justify-content: space-between;
}
.footer-name {
  font-family: var(--font-display, Georgia, serif);
  font-style: italic;
  font-size: clamp(26px, 2.5vw, 40px);
  line-height: 1; color: var(--ink);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a {
  font-size: 16px; font-weight: 500;
  text-decoration: none; color: var(--ink-darkfaint);
  transition: color .15s ease;
}
.footer-links a:hover { color: var(--accent); }
.footer-meta { font-size: 13px; color: var(--ink-faint); margin-top: 20px; }
.footer-credit { font-size: 12px; color: var(--dark-soft); margin-top: 6px; }
.site-footer.has-bg .footer-credit a { color: var(--dark-soft); text-underline-offset: 3px; }
.site-footer.has-bg .footer-credit a:hover { color: var(--dark-accent); }

/* ============================================================
   Keyframes
   ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes railDrop {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(280%); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1040px) {
  .intro-grid { grid-template-columns: 1fr; }
  .focus-stack { grid-template-columns: 1fr; }
  .focus-stack .focus-card:nth-child(2),
  .focus-stack .focus-card:nth-child(3) { margin-top: 0; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-aside { position: static; }
  .bio-note { max-width: none; }
}

@media (max-width: 820px) {
  .wrap { padding: 0 26px; }
  .nav { padding: 16px 26px; }
  .nav.scrolled { padding: 12px 26px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  body.drawer-open { overflow: hidden; }

  .head.with-num { grid-template-columns: 1fr; }
  .head .ghost-num { justify-self: start; font-size: clamp(92px, 28vw, 140px); }

  .theme { grid-template-columns: 1fr; gap: 6px; }
  .theme-num { font-size: clamp(52px, 15vw, 88px); }

  .pub-group { grid-template-columns: 1fr; }
  .pub-year { padding: 28px 0 6px; }
  .pub-group:first-child .pub-year { padding-top: 0; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .nav { padding: 13px 20px; }
  .hero { padding-top: 116px; }
}