/* ============================================================
   Minimal — typographic / academic theme for atnafuatx.github.io
   Single self-contained stylesheet. No vendor dependencies.
   ============================================================ */

:root {
  --ink: #1a1a1a;
  --ink-soft: #333;
  --muted: #6b6b6b;
  --rule: #e5e5e5;
  --rule-soft: #efece8;
  --bg: #fdfdfc;
  --bg-tint: #f7f5f1;
  --accent: #8b1a1a;
  --accent-2: #c2410c;          /* warmer secondary, used in viz */
  --accent-3: #1f4d4f;          /* deep teal, used in viz */
  --accent-soft: rgba(139,26,26,0.08);

  /* Per-block tonal palette (used by .block--* on the home page) */
  --c-bio:        #8b1a1a;       /* crimson */
  --c-bio-soft:   rgba(139,26,26,0.08);
  --c-bio-tint:   rgba(139,26,26,0.04);
  --c-int:        #1f6e44;       /* deep forest */
  --c-int-soft:   rgba(31,110,68,0.08);
  --c-int-tint:   rgba(31,110,68,0.04);
  --c-spot:       #b45309;       /* deep amber */
  --c-spot-soft:  rgba(180,83,9,0.10);
  --c-spot-tint:  rgba(180,83,9,0.05);
  --c-news:       #1e4d6e;       /* deep blue */
  --c-news-soft:  rgba(30,77,110,0.10);
  --c-news-tint:  rgba(30,77,110,0.04);

  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 38rem;
  --measure-wide: 46rem;
  --ease: cubic-bezier(.2,.7,.2,1);
  --mx: 50vw;
  --my: 30vh;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ----- ambient layers ----- */
.grain, .spotlight, .ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.grain {
  opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
.spotlight {
  background:
    radial-gradient(620px circle at var(--mx) var(--my),
      rgba(139,26,26,0.055),
      rgba(139,26,26,0.020) 35%,
      transparent 60%);
  transition: background 0.25s ease-out;
}
.ambient {
  inset: -20vmax;
  background:
    radial-gradient(40vmax 40vmax at 20% 15%, rgba(218,165,32,0.06), transparent 60%),
    radial-gradient(35vmax 35vmax at 85% 80%, rgba(139,26,26,0.05), transparent 60%);
  filter: blur(20px);
  animation: drift 28s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) rotate(0deg); }
  100% { transform: translate3d(-4vmax,3vmax,0) rotate(6deg); }
}

/* reading-progress */
.progress {
  position: fixed; left: 0; top: 0; height: 2px;
  width: var(--p, 0%);
  background: linear-gradient(90deg, transparent, var(--accent));
  z-index: 60;
  transition: width 0.08s linear;
}

/* ----- container ----- */
.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}
.wrap.wide { max-width: var(--measure-wide); }

/* ----- masthead / nav ----- */
header.site {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.6rem;
  margin-bottom: 2.8rem;
  border-bottom: 1px solid var(--rule);
}
header.site .brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--ink);
}
header.site .brand .mark { width: 22px; height: 22px; display: inline-block; }
header.site .brand .name {
  font-family: var(--serif);
  font-size: 1.02rem; font-weight: 600; letter-spacing: 0.01em;
  position: relative;
}
header.site .brand .name::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
header.site .brand:hover .name::after { transform: scaleX(1); }

header.site nav {
  font-family: var(--sans);
  font-size: 0.85rem;
  display: flex; gap: 1.25rem; flex-wrap: wrap;
}
header.site nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  transition: color .2s var(--ease);
}
header.site nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
header.site nav a:hover { color: var(--ink); }
header.site nav a:hover::after { transform: scaleX(1); transform-origin: left; }
header.site nav a.current { color: var(--ink); }
header.site nav a.current::after { transform: scaleX(1); }

/* ----- typography ----- */
h1.page-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.95rem;
  line-height: 1.18;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}
.page-sub {
  font-family: var(--sans);
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 2.5rem;
}
h2 {
  position: relative;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  margin: 3rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}
h2::before {
  content: "§";
  position: absolute;
  left: -1.25rem; top: -0.1rem;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
h2:hover::before { opacity: 1; transform: translateX(0); }
h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}
p { margin: 0 0 1.1rem; }

/* in-content links — animated underline (excludes nav/brand) */
.content a, .lede a, .pub .title a, .news .body a, footer.site a.inline {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent)),
                    linear-gradient(#c9c4bd, #c9c4bd);
  background-size: 0% 1px, 100% 1px;
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size .4s var(--ease), color .25s var(--ease);
}
.content a:hover, .lede a:hover, .pub .title a:hover, .news .body a:hover, footer.site a.inline:hover {
  color: var(--accent);
  background-size: 100% 1px, 100% 1px;
}

/* ----- home: hero (portrait + name + role + socials) ----- */
.hero {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.75rem;
  align-items: center;
  margin: 0 0 2.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}
.portrait {
  position: relative;
  width: 130px;
  height: 130px;
}
.portrait::after {
  /* soft halo behind the portrait */
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  z-index: -1;
  opacity: 0; transition: opacity .4s var(--ease);
}
.portrait:hover::after { opacity: 1; }
.portrait img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 0 0 1px var(--rule);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.portrait:hover img {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.10), 0 0 0 1px var(--accent);
}
.hero-text { min-width: 0; }
.hero-title {
  font-size: 2.05rem !important;
  margin: 0 0 0.5rem !important;
}
.role { margin: 0 0 0.35rem; line-height: 1; }
.role-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(139,26,26,0.18);
  letter-spacing: 0.01em;
}
.affiliation {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0.5rem 0 1rem;
}
.affiliation a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.affiliation a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.affiliation .dot { color: var(--rule); margin: 0 0.35rem; }

/* ----- social chip strip (used in hero) ----- */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.socials li a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--rule);
  background: var(--bg);
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  transition: color .2s var(--ease), border-color .2s var(--ease),
              background-color .2s var(--ease), transform .2s var(--ease),
              box-shadow .2s var(--ease);
}
.socials li a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(139,26,26,0.08);
}
.socials li a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.socials li a svg {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}

/* ----- footer: compact social row ----- */
footer.site {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}
footer.site .foot-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
}
footer.site .foot-socials a {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
footer.site .foot-socials a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
footer.site .foot-socials .sep { color: var(--rule); }
footer.site .foot-meta {
  display: flex;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.76rem;
}

/* ----- home: lede + drop cap ----- */
.lede { font-size: 1.08rem; line-height: 1.65; }
.lede.has-drop::first-letter {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 3.2rem;
  line-height: 0.9;
  float: left;
  padding: 0.35rem 0.6rem 0 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--ink), #4a1a1a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   Blocks — each section on Home is its own visual "block" with
   a distinct treatment. They share .block base + .block-label
   uppercase tag, but differ in colour, background, and layout.
   Each block exposes --block-c (its accent) so child rules use
   the right colour without copy-pasting selectors.
   ============================================================ */
.block {
  position: relative;
  margin: 2.5rem 0;
  scroll-margin-top: 5rem;
  --block-c:       var(--accent);
  --block-c-soft:  var(--accent-soft);
  --block-c-tint:  rgba(139,26,26,0.04);
}
.block--bio       { --block-c: var(--c-bio);  --block-c-soft: var(--c-bio-soft);  --block-c-tint: var(--c-bio-tint); }
.block--interests { --block-c: var(--c-int);  --block-c-soft: var(--c-int-soft);  --block-c-tint: var(--c-int-tint); }
.block--spotlight { --block-c: var(--c-spot); --block-c-soft: var(--c-spot-soft); --block-c-tint: var(--c-spot-tint); }
.block--timeline  { --block-c: var(--c-news); --block-c-soft: var(--c-news-soft); --block-c-tint: var(--c-news-tint); }

.block-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--block-c);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.block-label::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--block-c);
  display: inline-block;
}

/* ----- Block 1: Bio card — crimson rail + warm tint ----- */
.block--bio {
  background: linear-gradient(180deg, var(--block-c-tint), transparent 80%), var(--bg-tint);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--block-c);
  border-radius: 6px;
  padding: 1.75rem 1.75rem 1.25rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  transition: box-shadow .4s var(--ease);
}
.block--bio:hover {
  box-shadow: 0 8px 22px var(--block-c-soft);
}
.block--bio .lede {
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 0 1.1rem;
}
.block--bio .bio-secondary {
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
}

/* ----- Block 2: Research interests — green-themed 2x2 grid ----- */
.block--interests .interest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.interest-card {
  position: relative;
  padding: 1.1rem 1.1rem 1rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-top: 2px solid transparent;
  border-radius: 4px;
  transition: transform .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease), background-color .35s var(--ease);
  cursor: default;
}
.interest-card::after {
  content: "";
  position: absolute;
  right: 12px; top: 12px;
  width: 8px; height: 8px;
  border-top: 1px solid var(--block-c);
  border-right: 1px solid var(--block-c);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.interest-card:hover {
  transform: translateY(-3px);
  border-color: var(--rule);
  border-top-color: var(--block-c);
  box-shadow: 0 10px 24px var(--block-c-soft);
  background: linear-gradient(180deg, var(--block-c-tint), transparent 60%);
}
.interest-card:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}
.interest-num {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--block-c);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}
.interest-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--ink);
}
.interest-body {
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* ----- Block 3: Featured spotlight — amber-themed ----- */
.spotlight-card + .spotlight-card {
  margin-top: 1rem;
}
.spotlight-card {
  position: relative;
  padding: 1.5rem 1.6rem 1.4rem;
  background: linear-gradient(135deg, var(--block-c-tint), transparent 60%), var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.spotlight-card::before {
  content: "★";
  position: absolute;
  right: -10px; top: -22px;
  font-family: var(--serif);
  font-size: 7rem;
  color: var(--block-c);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.spotlight-card:hover {
  transform: translateY(-2px);
  border-color: var(--block-c);
  box-shadow: 0 14px 28px var(--block-c-soft);
}
.spotlight-card:hover::before {
  transform: rotate(12deg) scale(1.08);
  opacity: 0.11;
}
.spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}
.badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}
.badge--award {
  background: var(--block-c-soft);
  color: var(--block-c);
  border: 1px solid var(--block-c-soft);
}
.badge--venue {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--rule);
}
.spotlight-title {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}
.spotlight-title a {
  color: var(--ink) !important;
  background-image: none !important;
  padding-bottom: 0 !important;
}
.spotlight-title a:hover {
  color: var(--block-c) !important;
}
.spotlight-authors {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.6rem;
}
.spotlight-authors .me { color: var(--ink); font-weight: 500; }
.spotlight-blurb {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.spotlight-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--block-c);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.spotlight-cta:hover {
  border-bottom-color: var(--block-c);
  transform: translateX(3px);
}

/* ----- Block 4: News timeline — blue-themed ----- */
.block--timeline .timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.2rem;
  position: relative;
}
.block--timeline .timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: linear-gradient(180deg, var(--block-c) 0%, var(--rule) 100%);
}
.t-item {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.75rem 0 0.75rem 1.1rem;
  margin-left: -1.2rem;
  border-bottom: 1px dotted var(--rule);
  transition: padding-left .3s var(--ease), background-color .3s var(--ease);
}
.t-item:hover {
  padding-left: 1.5rem;
  background-color: var(--block-c-tint);
}
.t-item:last-child { border-bottom: 0; }
.t-dot {
  position: absolute;
  left: -5px;
  top: 1.05rem;
  width: 10px;
  height: 10px;
  background: var(--bg);
  border: 1.5px solid var(--block-c);
  border-radius: 50%;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.t-item:hover .t-dot {
  background: var(--block-c);
  transform: scale(1.2);
}
.t-date {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color .25s var(--ease);
}
.t-item:hover .t-date { color: var(--block-c); }
.t-body {
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ============================================================
   Award badge on publication entries
   ============================================================ */
.pub--award {
  background: linear-gradient(90deg, var(--accent-soft) 0%, transparent 40%);
  padding-left: 0.7rem !important;
}
.pub--award::before { width: 0.5rem !important; }
.award-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 7px;
  border-radius: 3px;
  margin-left: 0.3rem;
}

/* ============================================================
   Chart meta (data source label)
   ============================================================ */
.viz-meta {
  font-family: var(--sans);
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* ----- tag chips ----- */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; margin: 0.4rem 0 0; padding: 0; list-style: none; }
.tags li {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 3px 10px;
  border-radius: 2px;
  background: transparent;
  cursor: default;
  transition: color .25s var(--ease), border-color .25s var(--ease),
              background-color .25s var(--ease), transform .25s var(--ease);
}
.tags li:hover {
  color: var(--accent);
  border-color: var(--accent);
  background-color: var(--accent-soft);
  transform: translateY(-2px);
}

/* ----- news ----- */
ul.bare { list-style: none; padding: 0; margin: 0; }
ul.bare li { margin-bottom: 0.55rem; }
.news li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px dotted var(--rule);
  transition: padding-left .3s var(--ease);
}
.news li:hover { padding-left: 0.35rem; }
.news li:last-child { border-bottom: 0; }
.news .date {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color .25s var(--ease);
}
.news li:hover .date { color: var(--accent); }
.news .body { font-size: 0.98rem; line-height: 1.55; }

/* ----- publications ----- */
.pubs h3.year {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin: 2.2rem 0 0.8rem;
  position: relative;
}
.pubs h3.year::before {
  content: ""; position: absolute; left: -1rem; top: 0.55rem;
  width: 0.5rem; height: 1px; background: var(--accent);
}
.pub {
  position: relative;
  padding: 0.85rem 0;
  border-bottom: 1px dotted var(--rule);
  transition: padding-left .35s var(--ease), background-color .35s var(--ease);
}
.pub::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 0; height: 1px; background: var(--accent);
  transform: translateY(-50%);
  transition: width .4s var(--ease);
}
.pub:hover {
  padding-left: 1.1rem;
  background-color: var(--accent-soft);
}
.pub:hover::before { width: 0.7rem; }
.pub:last-child { border-bottom: 0; }
.pub .title {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.35;
  margin: 0 0 0.25rem;
}
.pub .authors {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}
.pub .authors .me { color: var(--ink); font-weight: 500; }
.pub .venue {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.15rem;
  letter-spacing: 0.01em;
}

/* ----- CV rows ----- */
.cv-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px dotted var(--rule);
  align-items: baseline;
  transition: padding-left .3s var(--ease);
}
.cv-row:hover { padding-left: 0.35rem; }
.cv-row:last-child { border-bottom: 0; }
.cv-row .when { font-family: var(--sans); font-size: 0.78rem; color: var(--muted); transition: color .25s var(--ease); }
.cv-row:hover .when { color: var(--accent); }
.cv-row .what { font-size: 0.98rem; }
.cv-row .what em { color: var(--muted); font-style: italic; font-size: 0.88rem; display: block; margin-top: 2px; }

/* ----- talks / blog entries ----- */
.entry {
  padding: 0.9rem 0;
  border-bottom: 1px dotted var(--rule);
  transition: padding-left .35s var(--ease);
}
.entry:hover { padding-left: 0.35rem; }
.entry:last-child { border-bottom: 0; }
.entry .meta {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}
.entry h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
  transition: color .25s var(--ease);
}
.entry:hover h3 { color: var(--accent); }
.entry p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.entry a { color: var(--ink); text-decoration: none; }
.entry a:hover h3 { color: var(--accent); }

/* ----- footer ----- */
footer.site {
  margin-top: 5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}
footer.site a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted #d8d4cc; }
footer.site a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ----- viz: stats strip ----- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem 1.25rem;
  padding: 1.25rem 1.25rem;
  margin: 1rem 0 2rem;
  background: var(--bg-tint);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.stats .stat .n {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
}
.stats .stat .l {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ----- viz: publications-by-year chart ----- */
.viz {
  margin: 0.5rem 0 2.5rem;
}
.viz .viz-title {
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.viz svg { display: block; width: 100%; height: auto; overflow: visible; }
.pubs-chart .bar {
  fill: var(--accent);
  fill-opacity: 0.78;
  transform-origin: bottom;
  transition: fill-opacity .25s var(--ease), transform .25s var(--ease);
}
.pubs-chart .bar:hover { fill-opacity: 1; }
.pubs-chart .label-y { font-family: var(--serif); font-size: 12px; fill: var(--ink); font-weight: 600; }
.pubs-chart .label-x { font-family: var(--sans); font-size: 11px; fill: var(--muted); letter-spacing: 0.04em; }
.pubs-chart .axis { stroke: var(--rule); stroke-width: 1; }

/* ----- viz: career path / journey ribbon ----- */
.career-path .path-line {
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawPath 2.6s var(--ease) 0.3s forwards;
}
@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}
.career-path .stop circle.outer { fill: var(--bg); stroke: var(--accent); stroke-width: 1.5; }
.career-path .stop circle.inner { fill: var(--accent); }
.career-path .stop:hover circle.outer { stroke-width: 2.5; }
.career-path .stop:hover circle.inner { r: 4.5; }
.career-path .stop text.year { font-family: var(--sans); font-size: 10px; font-weight: 600; fill: var(--accent); letter-spacing: 0.04em; }
.career-path .stop text.place { font-family: var(--serif); font-size: 13px; fill: var(--ink); }
.career-path .stop text.role { font-family: var(--sans); font-size: 10px; fill: var(--muted); }

/* ----- scroll-reveal ----- */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--rd, 0ms);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

/* ----- prefers-reduced-motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .ambient { display: none; }
  .career-path .path-line { stroke-dashoffset: 0; }
}

/* ----- small screens ----- */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap { padding: 2.5rem 1.25rem 4rem; }
  header.site { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
  .news li, .cv-row { grid-template-columns: 4.2rem 1fr; gap: 0.75rem; }
  h1.page-title { font-size: 1.55rem; }
  .hero { grid-template-columns: 1fr; gap: 1.1rem; text-align: left; }
  .portrait { width: 96px; height: 96px; }
  .hero-title { font-size: 1.6rem !important; }
  .lede.has-drop::first-letter { font-size: 2.6rem; }
  .spotlight { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .block--interests .interest-grid { grid-template-columns: 1fr; }
  .block--bio { padding: 1.25rem 1.25rem 1rem; }
  .spotlight-card { padding: 1.25rem 1.25rem 1.2rem; }
  .spotlight-card::before { font-size: 5rem; right: -4px; top: -12px; }
  .t-item { grid-template-columns: 3.5rem 1fr; gap: 0.6rem; }
}

/* ----- print ----- */
@media print {
  .ambient, .grain, .spotlight, .progress { display: none; }
  header.site nav { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .wrap { max-width: none; padding: 0; }
}
