/* =============================================================
   Dr. Rezwana Karim Snigdha — Design System
   "Beyond Binaries" — feminist anthropology, dark academia
   Palette: deep navy, gold, off-white (+ optional warm light mode)
   ============================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Color — dark navy + gold (default) */
  --paper:        #0E1422;   /* page background (deep navy) */
  --paper-2:      #121A2B;   /* alt section */
  --paper-3:      #1B2538;   /* cards / icon wells */
  --ink:          #ECEFF6;   /* primary text */
  --ink-soft:     #BDC5D4;   /* secondary text */
  --ink-mute:     #8893A6;   /* muted captions */
  --line:         #283350;   /* hairlines / borders */

  --plum:         #CBA75A;   /* PRIMARY ACCENT — gold (name kept for components) */
  --plum-deep:    #090E18;   /* deepest panel (contact) */
  --terracotta:   #D7A94E;   /* warm gold accent (eyebrows, years, dots) */
  --terracotta-2: #E7C375;   /* light gold */
  --teal:         #6E93C4;   /* cool blue accent (map variety) */
  --gold:         #CBA75A;
  --on-accent:    #0E1422;   /* text on gold fills */

  --white:        #ffffff;

  /* Typography */
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-body:    "Hanken Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-bn:      "Tiro Bangla", "Noto Serif Bengali", serif;

  /* Scale (fluid) */
  --step--1: clamp(0.92rem, 0.86rem + 0.25vw, 1.05rem);
  --step-0:  clamp(1.1rem, 1.02rem + 0.35vw, 1.25rem);
  --step-1:  clamp(1.4rem, 1.25rem + 0.6vw, 1.7rem);
  --step-2:  clamp(1.85rem, 1.55rem + 1.2vw, 2.5rem);
  --step-3:  clamp(2.3rem, 1.85rem + 2.1vw, 3.5rem);
  --step-4:  clamp(3rem, 2.2rem + 3.4vw, 5rem);
  --step-5:  clamp(3.6rem, 2.4rem + 5.4vw, 7rem);

  /* Spacing / layout */
  --container: 1600px;
  --container-narrow: 880px;
  --gutter: clamp(1.2rem, 3vw, 3rem);
  --radius: 14px;
  --radius-lg: 24px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.25);
  --shadow-md: 0 10px 34px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.3);
  --shadow-lg: 0 28px 70px rgba(0,0,0,.6);
  --glow: 0 0 0 1px rgba(203,167,90,.25), 0 8px 30px rgba(203,167,90,.12);
  --ease: cubic-bezier(.22,.61,.36,1);

  --header-h: 72px;
}

/* Optional warm light mode (toggle) */
[data-theme="light"] {
  --paper:        #FBF7F0;
  --paper-2:      #F4ECE0;
  --paper-3:      #EEE3D3;
  --ink:          #221A22;
  --ink-soft:     #4A3F49;
  --ink-mute:     #7A6E78;
  --line:         #E0D3C2;
  --plum:         #9A7A23;
  --plum-deep:    #2E2410;
  --terracotta:   #B07A20;
  --terracotta-2: #C99A3A;
  --teal:         #2F6F6A;
  --gold:         #9A7A23;
  --on-accent:    #ffffff;
  --white:        #ffffff;
  --shadow-sm: 0 1px 2px rgba(34,26,34,.06), 0 2px 8px rgba(34,26,34,.05);
  --shadow-md: 0 8px 30px rgba(62,27,54,.10), 0 2px 8px rgba(34,26,34,.06);
  --shadow-lg: 0 24px 60px rgba(62,27,54,.18);
  --glow: 0 0 0 1px rgba(154,122,35,.25), 0 8px 30px rgba(154,122,35,.1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

/* Accessibility helpers (WordPress conventions) */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 200; width: auto; height: auto;
  clip: auto; background: var(--plum); color: #fff; padding: .7rem 1.2rem; border-radius: 999px; font-weight: 600;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); font-optical-sizing: auto; }
.hero-name, .serif { font-optical-sizing: auto; }
h1 { font-size: var(--step-5); font-weight: 600; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
.serif { font-family: var(--font-display); }
.bn { font-family: var(--font-bn); }
p { max-width: 68ch; }
.lead { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; font-weight: 400; }
.eyebrow {
  font-family: var(--font-body); font-size: var(--step--1); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--terracotta);
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--terracotta); display: inline-block; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(3.5rem, 6vw, 6rem); position: relative; }
.section--alt { background: var(--paper-2); }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { margin-top: .6rem; }
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.8rem); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: baseline; gap: .55rem; font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -.01em; }
.brand .dot { color: var(--terracotta); }
.brand small { font-family: var(--font-body); font-weight: 500; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav-links a { font-size: 1rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: .3rem 0; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--terracotta); transition: width .28s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-tools { display: flex; align-items: center; gap: .6rem; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink-soft); transition: all .25s var(--ease);
}
.icon-btn:hover { color: var(--plum); border-color: var(--plum); transform: translateY(-2px); }
.nav-toggle { display: none; }

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--plum), var(--terracotta)); z-index: 101; transition: width .1s linear; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.6rem;
  border-radius: 999px; font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: linear-gradient(135deg, var(--gold), var(--terracotta-2)); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: var(--glow); filter: brightness(1.06); }
.btn--ghost { border: 1.5px solid color-mix(in srgb, var(--gold) 55%, var(--line)); color: var(--ink); }
.btn--ghost:hover { background: color-mix(in srgb, var(--gold) 12%, transparent); border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }

/* ---------- Hero (dark academia + constellation) ---------- */
.hero { position: relative; min-height: 90svh; display: flex; align-items: center; padding: calc(var(--header-h) + 2.5rem) 0 3rem; overflow: hidden;
  background: radial-gradient(130% 100% at 82% -10%, #18243f 0%, var(--paper) 58%); }
#constellation { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; }
.hero-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(70% 60% at 22% 38%, transparent, color-mix(in srgb, var(--paper) 80%, transparent) 96%); }
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(2rem, 3vw, 3rem); align-items: center; }

.hero-eyebrow { display: inline-flex; align-items: center; gap: .75rem; font-size: var(--step--1); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: clamp(1rem, 2.4vw, 1.6rem); }
.hero-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.hero-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.4rem, 1.4rem + 8vw, 7.6rem); line-height: .98; letter-spacing: -.005em; }
.hero-name .ln2 { display: block; font-style: italic; font-weight: 600; color: var(--gold); }
.hero-rule { width: 74px; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); margin: clamp(1.1rem, 2.4vw, 1.6rem) 0; border-radius: 2px; }
.hero-role { font-family: var(--font-display); font-style: italic; font-size: clamp(1.05rem, .95rem + .5vw, 1.32rem); color: var(--ink-soft); line-height: 1.5; max-width: 40ch; }
.hero-grant { display: inline-flex; align-items: center; gap: .7rem; margin: clamp(1.3rem, 3vw, 1.9rem) 0 1.2rem; padding: .7rem 1.1rem; border-radius: 12px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 13%, var(--paper-2)), var(--paper-2)); border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line));
  font-size: .85rem; color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.hero-grant .star { color: var(--gold); font-size: 1rem; }
.hero-grant b { color: var(--ink); font-weight: 600; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.hero-chips span { font-size: .92rem; padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); background: color-mix(in srgb, var(--paper-2) 55%, transparent); transition: all .25s var(--ease); }
.hero-chips span:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; }

/* Portrait */
.hero-portrait { position: relative; display: flex; justify-content: center; }
.portrait-wrap { position: relative; width: min(100%, 510px); margin-left: auto; }
.portrait-wrap::before { content: ""; position: absolute; z-index: 0; inset: -7% -7% auto auto; width: 60%; aspect-ratio: 1; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.portrait-wrap::after { content: ""; position: absolute; z-index: 0; inset: auto auto -7% -7%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 20%, transparent), transparent 70%); }
.portrait-card { position: relative; z-index: 1; aspect-ratio: 4/5; border-radius: 210px 210px 16px 16px; overflow: hidden; border: 1.5px solid color-mix(in srgb, var(--gold) 50%, var(--line)); box-shadow: var(--shadow-lg); transition: transform .5s var(--ease); }
.portrait-card:hover { transform: translateY(-6px); }
.portrait-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 10%; }
.portrait-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--paper) 80%, transparent), transparent 40%); }
.portrait-badge { position: absolute; z-index: 3; bottom: 5%; left: -6%; background: var(--paper-2); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
  border-radius: var(--radius); padding: .75rem 1rem; box-shadow: var(--shadow-md); max-width: 220px; }
.portrait-badge .bn { font-size: 1.1rem; color: var(--gold); line-height: 1.3; display: block; }
.portrait-badge small { color: var(--ink-mute); font-size: .72rem; }
.portrait-pill { position: absolute; z-index: 3; top: 6%; right: -4%; background: var(--paper-2); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
  border-radius: 999px; padding: .45rem .9rem; box-shadow: var(--shadow-md); font-size: .76rem; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: .4rem; }
.portrait-pill b { color: var(--gold); font-family: var(--font-display); font-size: .98rem; }

@keyframes drift { to { transform: translate(40px, 30px) scale(1.1); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes revealIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.about-quote { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.3; font-style: italic; color: var(--gold); }
.about-quote::before { content: "“"; font-size: 3em; line-height: 0; vertical-align: -.4em; color: var(--terracotta); opacity: .5; }
.about-body p + p { margin-top: 1.2rem; }
.about-aside { display: grid; gap: 1.6rem; }
.about-photo { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 1/1; object-fit: cover; box-shadow: var(--shadow-md); border: 1px solid var(--line); }

/* Speaking gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.gallery-item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; transition: transform .6s var(--ease); display: block; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 1rem .9rem; font-size: .8rem; color: #fff; font-weight: 500;
  background: linear-gradient(transparent, rgba(34,26,34,.82)); opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.gallery-item:hover figcaption, .gallery-item:focus-within figcaption { opacity: 1; transform: none; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } .about-aside { position: static; } }

/* ---------- Research areas ---------- */
.research-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (min-width: 1100px) { .research-grid { grid-template-columns: repeat(4, 1fr); } }
.research-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  position: relative; overflow: hidden;
}
.section--alt .research-card { background: var(--paper); }
.research-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--terracotta); transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease); }
.research-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.research-card:hover::before { transform: scaleY(1); }
.research-card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--paper-3); display: grid; place-items: center; margin-bottom: 1rem; color: var(--plum); }
.research-card .ic svg { width: 24px; height: 24px; }
.research-card h3 { font-size: 1.34rem; margin-bottom: .4rem; }
.research-card p { font-size: var(--step--1); color: var(--ink-mute); }

/* ---------- Publications ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.2rem; }
.chip {
  padding: .55rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); font-size: .95rem; font-weight: 500;
  color: var(--ink-soft); transition: all .22s var(--ease);
}
.chip:hover { border-color: var(--plum); color: var(--plum); }
.chip.active { background: var(--plum); color: #fff; border-color: var(--plum); }
[data-theme="dark"] .chip.active { color: var(--paper); }
.pub-list { display: grid; gap: 1rem; }
.pub {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: start;
  padding: 1.4rem 1.6rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.section--alt .pub { background: var(--paper); }
.pub:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.pub .year { font-family: var(--font-display); font-weight: 600; color: var(--terracotta); font-size: 1.1rem; min-width: 3ch; }
.pub h3 { font-size: 1.34rem; line-height: 1.3; margin-bottom: .3rem; }
.pub .venue { font-size: var(--step--1); color: var(--ink-mute); }
.pub .tag { align-self: center; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; white-space: nowrap; }
.tag--book { background: color-mix(in srgb, var(--plum) 14%, transparent); color: var(--plum); }
.tag--article { background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); }
.tag--chapter { background: color-mix(in srgb, var(--terracotta) 16%, transparent); color: var(--terracotta); }
.pub[hidden] { display: none; }
.pub.cite { box-shadow: inset 0 0 0 1.5px var(--terracotta); }

/* ---------- Timeline (talks / projects) ---------- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: .5rem; bottom: .5rem; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 2rem; }
.tl-item::before { content: ""; position: absolute; left: -2rem; top: .4rem; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--terracotta); transition: transform .3s var(--ease), background .3s; }
.tl-item:hover::before { background: var(--terracotta); transform: scale(1.2); }
.tl-item .when { font-size: var(--step--1); font-weight: 600; color: var(--terracotta); letter-spacing: .04em; }
.tl-item h3 { font-size: 1.3rem; margin: .25rem 0; }
.tl-item .where { color: var(--ink-mute); font-size: var(--step--1); }

/* ---------- Projects ---------- */
.project-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.project-card {
  background: var(--paper); border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--line);
  position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project-card .meta { font-size: var(--step--1); color: var(--terracotta); font-weight: 600; letter-spacing: .04em; margin-bottom: .8rem; }
.project-card h3 { font-size: var(--step-1); margin-bottom: .7rem; }
.project-card p { font-size: var(--step--1); color: var(--ink-soft); }
.project-card .role { margin-top: 1rem; display: inline-block; font-size: .78rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; background: var(--paper-3); color: var(--ink-soft); }

/* ---------- Map ---------- */
.map-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; align-items: center; }
#fieldmap { height: 460px; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-md); z-index: 1; background: var(--paper-2); }
.map-legend li { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.map-legend .pin { width: 12px; height: 12px; border-radius: 50%; margin-top: .45rem; flex: none; background: var(--terracotta); }
.map-legend .pin.plum { background: var(--plum); }
.map-legend .pin.teal { background: var(--teal); }
.map-legend strong { display: block; font-size: .98rem; }
.map-legend span { font-size: var(--step--1); color: var(--ink-mute); }
.leaflet-popup-content-wrapper { border-radius: 10px; }
.leaflet-popup-content { font-family: var(--font-body); }

/* ---------- Contact ---------- */
.contact { background: var(--plum-deep); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 5rem); position: relative; overflow: hidden; }
.contact h2 { color: #fff; }
.contact .lead { color: rgba(255,255,255,.8); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; position: relative; z-index: 2; }
.contact a.mail { font-family: var(--font-display); font-size: var(--step-2); color: #fff; border-bottom: 2px solid var(--terracotta-2); transition: color .25s; display: inline-block; margin: 1rem 0; }
.contact a.mail:hover { color: var(--terracotta-2); }
.contact-info li { padding: .5rem 0; color: rgba(255,255,255,.85); display: flex; gap: .7rem; }
.contact .socials { display: flex; gap: .8rem; margin-top: 1.5rem; }
.contact .socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; color: #fff; transition: all .25s var(--ease); }
.contact .socials a:hover { background: var(--terracotta); border-color: var(--terracotta); transform: translateY(-3px); }
.contact .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); }
.contact .ring.r1 { width: 380px; height: 380px; bottom: -180px; right: -120px; }
.contact .ring.r2 { width: 540px; height: 540px; bottom: -240px; right: -180px; }

/* ---------- Footer ---------- */
.site-footer { padding: 3rem 0; border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.site-footer small { color: var(--ink-mute); }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a { font-size: .9rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--terracotta); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { padding: calc(var(--header-h) + 4rem) 0 3rem; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: var(--step-4); }
.breadcrumb { font-size: var(--step--1); color: var(--ink-mute); margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--terracotta); }

/* ---------- WordPress editor content (prose) ---------- */
.page-content { font-size: var(--step-0); color: var(--ink-soft); }
.page-content > * + * { margin-top: 1.2rem; }
.page-content h2 { font-size: var(--step-2); margin-top: 2.4rem; }
.page-content h3 { font-size: var(--step-1); margin-top: 2rem; }
.page-content a { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }
.page-content a:hover { color: var(--terracotta); }
.page-content ul, .page-content ol { padding-left: 1.4rem; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li + li { margin-top: .5rem; }
.page-content blockquote { border-left: 3px solid var(--terracotta); padding-left: 1.2rem; font-family: var(--font-display); font-style: italic; color: var(--plum); font-size: var(--step-1); }
.page-content img, .page-content .featured { border-radius: var(--radius); margin-block: 1.6rem; }
.page-content figure.featured img { width: 100%; box-shadow: var(--shadow-md); }
.page-content code { background: var(--paper-3); padding: .15em .4em; border-radius: 6px; font-size: .9em; }
.page-content pre { background: var(--paper-3); padding: 1.2rem; border-radius: var(--radius); overflow:auto; }
.page-links { margin-top: 1.6rem; font-weight: 600; }
.pagination, .nav-links.posts-nav { display: flex; gap: .6rem; flex-wrap: wrap; }
.pagination .page-numbers { padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; }
.pagination .page-numbers.current { background: var(--plum); color: #fff; border-color: var(--plum); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- About facts ---------- */
.about-facts { margin-top: 1.9rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.facts-title { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.fact-list { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.6rem; }
.fact-list li { position: relative; padding-left: 1.1rem; line-height: 1.3; }
.fact-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.fact-list b { display: block; color: var(--ink); font-weight: 600; font-size: 1.02rem; }
.fact-list span { color: var(--ink-mute); font-size: .9rem; }

/* ---------- Info cards (Recognition & Service) ---------- */
.info-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 980px) { .info-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 540px) { .info-grid { grid-template-columns: 1fr; } }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.6rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--gold) 35%, var(--line)); }
.info-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--paper-3); display: grid; place-items: center; color: var(--gold); margin-bottom: 1.1rem; }
.info-ic svg { width: 22px; height: 22px; }
.info-card h3 { font-size: 1.36rem; margin-bottom: 1rem; }
.lined li { padding: .65rem 0; border-top: 1px solid var(--line); }
.lined li:first-child { border-top: none; padding-top: 0; }
.lined b { display: block; color: var(--ink); font-weight: 600; font-family: var(--font-body); font-size: 1.02rem; line-height: 1.35; }
.lined span { color: var(--ink-mute); font-size: .9rem; }

.sticky-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
@media (max-width: 920px) { .sticky-head { position: static; } }

/* ---------- Teaching ---------- */
.teach-list { display: grid; gap: 0; }
.teach-item { padding: 1.3rem 0; border-top: 1px solid var(--line); }
.teach-item:first-child { border-top: none; padding-top: 0; }
.teach-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.teach-item h3 { font-size: 1.34rem; }
.teach-level { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--gold); white-space: nowrap; }
.teach-item p { font-size: var(--step--1); color: var(--ink-mute); margin-top: .35rem; }

/* ---------- Media & Public Engagement ---------- */
.media-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.media-item { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
a.media-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--gold) 35%, var(--line)); }
.media-meta { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.media-outlet { font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); }
.media-year { font-size: .82rem; color: var(--ink-mute); white-space: nowrap; }
.media-item h3 { font-size: 1.26rem; line-height: 1.3; margin-bottom: .6rem; }
.media-type { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- Biography (CV) ---------- */
.bio { max-width: 74ch; }
.bio p { font-size: var(--step-0); color: var(--ink-soft); line-height: 1.7; }
.bio p + p { margin-top: 1.1rem; }

/* Gallery: 3–4 across, balanced */
.gallery { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
/* Projects: 3 across on desktop (avoids a lone card) */
@media (min-width: 860px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-portrait { margin-top: 2.5rem; }
  .portrait-wrap { width: min(78%, 320px); }
  .about-grid { grid-template-columns: 1fr; }
  .about-quote { position: static; }
  .map-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: flex-start;
    background: var(--paper); padding: 1.5rem var(--gutter); gap: 1.1rem; box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform .35s var(--ease); border-bottom: 1px solid var(--line); }
  .nav-links.open { transform: none; }
  .nav-toggle { display: grid; }
  .hero { padding-bottom: 2.5rem; }
  .hero-name { font-size: clamp(2.7rem, 13vw, 3.6rem); }
  .portrait-badge { left: -2%; }
  .pub { grid-template-columns: auto 1fr; }
  .pub .tag { grid-column: 2; justify-self: start; margin-top: .4rem; }
}
