/* ============================================================
   Yohanes Eko Riyanto — Academic Website
   Design: Warm Editorial Academic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

/* ── Variables ────────────────────────────────────────────── */
:root {
  --navy:        #0C1A2E;
  --navy-mid:    #162840;
  --navy-soft:   #1E3856;
  --gold:        #B8882E;
  --gold-bright: #CFA24A;
  --gold-pale:   #F2E8D0;
  --ivory:       #F8F5EF;
  --cream:       #EDE8DF;
  --white:       #FEFCF8;
  --charcoal:    #242220;
  --warm-grey:   #5E5A54;
  --light-grey:  #9A9590;
  --border:      #DDD5C5;
  --border-light:#EDE8DF;

  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w:        1080px;
  --nav-h:        68px;
  --radius:       3px;
  --transition:   0.25s ease;

  /* ── Type scale ── */
  --text-xs:      0.72rem;   /* ≈ 9.7px  */
  --text-sm:      0.82rem;   /* ≈ 11px   */
  --text-base:    1rem;      /* = 13.5px */
  --text-md:      1.1rem;    /* ≈ 14.9px */
  --text-lg:      1.2rem;    /* ≈ 16.2px */
  --text-xl:      1.35rem;   /* ≈ 18.2px */
  --text-2xl:     1.65rem;   /* ≈ 22.3px */
  --text-3xl:     2rem;      /* = 27px   */
  --text-4xl:     2.6rem;    /* = 35px   */

  /* ── Weights ── */
  --fw-light:     300;
  --fw-normal:    400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;

  /* ── Line heights ── */
  --lh-tight:     1.1;
  --lh-snug:      1.3;
  --lh-normal:    1.55;
  --lh-relaxed:   1.75;

  /* ── Letter spacing ── */
  --ls-tight:     -0.01em;
  --ls-normal:    0em;
  --ls-wide:      0.04em;
  --ls-wider:     0.08em;
  --ls-widest:    0.18em;

  /* ── Measure (max line length) ── */
  --measure:      65ch;
  --measure-wide: 80ch;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 13.5px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-soft); text-decoration: underline; text-decoration-color: var(--border); transition: color var(--transition), text-decoration-color var(--transition); }
a:hover { color: var(--gold); text-decoration-color: var(--gold-bright); }

/* ── Typography ───────────────────────────────────────────── */

/* — H1–H6 (bare elements) — */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy);
  margin-bottom: 0.5em;
}
h1 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  font-weight: var(--fw-light);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
}
h2 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  font-weight: var(--fw-light);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
}
h3 {
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl));
  font-weight: var(--fw-normal);
  line-height: var(--lh-snug);
}
h4 {
  font-size: var(--text-xl);
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
}
h5 {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  line-height: var(--lh-normal);
}
h6 {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--warm-grey);
  line-height: var(--lh-normal);
}

/* — Heading utility classes (same scale; use when semantic tag differs) — */
.h1 { font-family: var(--font-display); font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl)); font-weight: var(--fw-light); letter-spacing: var(--ls-tight); line-height: var(--lh-tight); color: var(--navy); }
.h2 { font-family: var(--font-display); font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl)); font-weight: var(--fw-light); letter-spacing: var(--ls-tight); line-height: var(--lh-tight); color: var(--navy); }
.h3 { font-family: var(--font-display); font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl)); font-weight: var(--fw-normal); line-height: var(--lh-snug); color: var(--navy); }
.h4 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: var(--fw-medium); line-height: var(--lh-snug); color: var(--navy); }
.h5 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--fw-semibold); letter-spacing: var(--ls-wide); line-height: var(--lh-normal); color: var(--navy); }
.h6 { font-family: var(--font-display); font-size: var(--text-base); font-weight: var(--fw-semibold); letter-spacing: var(--ls-wider); text-transform: uppercase; line-height: var(--lh-normal); color: var(--warm-grey); }
.h-display { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: var(--fw-light); letter-spacing: var(--ls-tight); line-height: var(--lh-tight); color: var(--navy); }
.h-section  { font-family: var(--font-display); font-size: clamp(var(--text-lg), 1.8vw, var(--text-xl)); font-weight: var(--fw-semibold); line-height: var(--lh-normal); color: var(--navy); }
.h-sub      { font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--fw-medium); line-height: var(--lh-normal); color: var(--navy-soft); }

/* — Body text — */
p {
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}
p:last-child { margin-bottom: 0; }
.lead {
  font-size: var(--text-md);
  line-height: var(--lh-relaxed);
  color: var(--charcoal);
}
small, .text-small {
  font-size: var(--text-sm);
  line-height: var(--lh-normal);
}
.caption {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--warm-grey);
  letter-spacing: var(--ls-wide);
  line-height: var(--lh-normal);
}
.date-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--light-grey);
  letter-spacing: var(--ls-wide);
}

/* — Blockquotes — */
blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1.5rem;
  border-left: 3px solid var(--gold);
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote p {
  font-size: var(--text-md);
  font-style: italic;
  color: var(--navy-soft);
  line-height: var(--lh-relaxed);
  margin-bottom: 0;
}
blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-style: normal;
  color: var(--warm-grey);
  letter-spacing: var(--ls-wide);
}

/* — Code — */
code {
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  font-size: 0.88em;
  background: var(--cream);
  color: var(--navy-soft);
  padding: 0.1em 0.35em;
  border-radius: 2px;
  border: 1px solid var(--border-light);
}
pre {
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  font-size: var(--text-sm);
  background: var(--cream);
  color: var(--charcoal);
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow-x: auto;
  line-height: 1.6;
  margin: 1rem 0;
}
pre code { background: none; border: none; padding: 0; font-size: inherit; color: inherit; }

/* — Tables (booktabs-style) — */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin: 1.5rem 0;
}
thead tr {
  border-top: 1.5px solid var(--charcoal);
  border-bottom: 0.75px solid var(--charcoal);
}
tbody tr { border-bottom: 0.5px solid var(--border); }
tbody tr:last-child { border-bottom: 1.5px solid var(--charcoal); }
th {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--navy);
  text-align: left;
  padding: 0.5rem 0.75rem;
}
td {
  font-size: var(--text-sm);
  color: var(--charcoal);
  padding: 0.45rem 0.75rem;
  vertical-align: top;
}

/* — Lists — */
ul, ol { padding-left: 1.5rem; margin: 0.5rem 0 0.75rem; }
li {
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}
li:last-child { margin-bottom: 0; }
ul li::marker { color: var(--gold); }
ol li::marker {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--warm-grey);
  font-weight: var(--fw-medium);
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(252, 250, 246, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 16px rgba(12, 26, 46, 0.07);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
}
.nav-monogram {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--navy);
  text-decoration: none;
}
.nav-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--warm-grey);
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
}
.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-grey);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0.9rem; right: 0.9rem;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--charcoal);
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Hero (Home only) ─────────────────────────────────────── */
.hero {
  background: #EAF0F6;
  padding: calc(var(--nav-h) + 1.2rem) 2rem 1.2rem;
  border-bottom: 1px solid #C9D8E8;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.6rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0;
  text-align: center;
}
.hero-name em {
  font-style: italic;
  font-weight: 300;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border: 1px solid var(--gold);
}
.btn-primary:hover {
  background: var(--gold-bright);
  color: var(--navy);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  text-decoration: none;
}

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
  background: #EAF0F6;
  padding: calc(var(--nav-h) + 1.2rem) 2rem 1.2rem;
  border-bottom: 1px solid #C9D8E8;
}
.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-hero-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6B8CAE;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}
.page-hero-label::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: #6B8CAE;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
}

/* ── Section Base ─────────────────────────────────────────── */
.section {
  padding: 2.5rem 2rem;
}
.section-alt {
  background: var(--cream);
}
.section-navy {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--gold);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.section-navy .section-title {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.15);
}

/* ── About / Bio ──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.about-photo {
  width: 200px;
  height: 240px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  filter: grayscale(15%);
  box-shadow: 0 8px 32px rgba(12,26,46,0.18);
}
.about-photo-placeholder {
  width: 200px;
  height: 240px;
  background: var(--navy-mid);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-display);
  font-size: 3rem;
  font-style: italic;
  box-shadow: 0 8px 32px rgba(12,26,46,0.18);
  flex-shrink: 0;
}
.about-text p {
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
  color: var(--charcoal);
}
.about-text p:last-child { margin-bottom: 0; }
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.tag-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--navy-soft);
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.3rem 0.75rem;
  text-decoration: none;
  transition: all var(--transition);
}
.tag-link:hover {
  background: var(--navy);
  color: var(--gold-bright);
  border-color: var(--navy);
  text-decoration: none;
}

/* ── Publications ─────────────────────────────────────────── */
.pub-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pub-item {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  transition: background var(--transition);
}
.pub-item:first-child { border-top: 1px solid var(--border-light); }
.pub-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}
.pub-item:hover::before { transform: scaleY(1); }

/* Journal cover layout */
.pub-with-cover {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.1rem;
  align-items: start;
}
.pub-cover {
  width: 48px;
  height: 64px;
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
  filter: grayscale(25%) opacity(0.85);
  box-shadow: 0 2px 8px rgba(12,26,46,0.18);
  transition: filter 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
  display: block;
}
.pub-item:hover .pub-cover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(12,26,46,0.22);
}
.pub-cover-placeholder {
  width: 48px;
  height: 64px;
  background: linear-gradient(160deg, var(--navy-mid), var(--navy-soft));
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 5px;
  line-height: 1.4;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(12,26,46,0.18);
}

@media (max-width: 480px) {
  .pub-with-cover { grid-template-columns: 40px 1fr; gap: 0.8rem; }
  .pub-cover, .pub-cover-placeholder { width: 40px; height: 54px; }
}
.pub-title {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.3rem;
  line-height: 1.55;
}
.pub-title a {
  color: inherit;
  text-decoration-color: transparent;
  transition: color var(--transition), text-decoration-color var(--transition);
}
.pub-title a:hover {
  color: var(--navy);
  text-decoration-color: var(--gold);
}
.pub-meta {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--warm-grey);
  font-style: italic;
}
.pub-meta .journal {
  color: var(--navy-soft);
  font-style: italic;
}
.pub-meta .coauthors {
  font-style: normal;
  color: var(--light-grey);
  font-size: 0.83rem;
}
.pub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  border: 1px solid rgba(184,136,46,0.25);
  border-radius: 2px;
  padding: 0.18rem 0.55rem;
  margin-top: 0.5rem;
}

/* Year headers in publications */
.year-header {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.year-header:first-of-type { margin-top: 0; }
.year-header span {
  font-size: 0.75rem;
  font-family: var(--font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-grey);
  vertical-align: middle;
  margin-left: 0.8rem;
  font-weight: 300;
}

/* ── Awards ───────────────────────────────────────────────── */
.awards-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.award-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.2rem;
  align-items: start;
}
.award-year {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.4;
  text-align: right;
  padding-top: 0.1rem;
}
.award-text h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.award-text p {
  font-size: 0.88rem;
  color: var(--warm-grey);
  line-height: 1.55;
}
.award-text .paper-ref {
  font-style: italic;
  color: var(--warm-grey);
  font-size: 0.85rem;
}

/* ── Media ────────────────────────────────────────────────── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}
.media-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
  min-height: 60px;
}
.media-item:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 12px rgba(184,136,46,0.12);
  text-decoration: none;
}
.media-item span {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--navy);
  text-align: center;
}
.media-appearances {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.media-appearance-item {
  padding: 1.2rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}
.media-appearance-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.media-appearance-item p {
  font-size: 0.875rem;
  color: var(--warm-grey);
  line-height: 1.55;
}

/* ── Research Areas ───────────────────────────────────────── */
.research-areas {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.research-area {
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}
.research-area:first-child { border-top: 1px solid var(--border-light); }
.research-area-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  cursor: pointer;
  gap: 1rem;
  -webkit-user-select: none;
  user-select: none;
}
.research-area-number {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  width: 28px;
}
.research-area-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--navy);
  flex: 1;
  line-height: 1.3;
}
.research-area-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--gold);
  transition: transform 0.3s ease;
}
.research-area.open .research-area-icon { transform: rotate(45deg); }
.research-area-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.research-area.open .research-area-body { max-height: 400px; }
.research-area-content {
  padding: 0 0 1.5rem 2rem;
  font-size: 0.96rem;
  color: var(--warm-grey);
  line-height: 1.75;
}

/* ── Research Thrust Layout ───────────────────────────────── */
.research-thrust {
  display: grid;
  grid-template-columns: 3fr 1.6fr;
  gap: 2rem;
  align-items: start;
  margin: 0 auto 5.5rem;
  max-width: 780px;
}
.research-thrust-fig {
  aspect-ratio: 3/2;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(12,26,46,0.15);
  border: 1px solid var(--border-light);
}
.research-thrust-fig svg {
  display: block;
  width: 100%;
  height: auto;
}
.research-thrust-fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 680px) {
  .research-thrust { grid-template-columns: 1fr; }
  .research-thrust-fig { display: none; }
}

/* ── Working Papers ───────────────────────────────────────── */
.wp-category {
  margin-bottom: 3rem;
}
.wp-category-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--navy);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.2rem;
}
.wp-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.wp-item {
  padding: 0.5rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.wp-item:hover {
  border-color: var(--border);
  box-shadow: 0 2px 10px rgba(12,26,46,0.05);
}
.wp-item p {
  font-size: 0.93rem;
  color: var(--charcoal);
  line-height: 1.6;
}
.wp-item .status {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-soft);
  background: var(--gold-pale);
  border: 1px solid rgba(184,136,46,0.2);
  border-radius: 2px;
  padding: 0.15rem 0.5rem;
  margin-top: 0.4rem;
}

/* ── Contact / Footer ─────────────────────────────────────── */
.contact-section {
  background: var(--navy);
  padding: 4rem 2rem;
}
.contact-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.contact-label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--gold);
}
.contact-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.contact-details {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-details li {
  font-family: var(--font-ui);
  font-size: 0.87rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
}
.contact-details li svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--gold);
}
.contact-details a {
  color: var(--gold-bright);
  text-decoration: none;
}
.contact-details a:hover { color: #fff; text-decoration: none; }

.contact-affiliations h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.aff-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.aff-list li {
  font-family: var(--font-ui);
  font-size: 0.83rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  padding-left: 1rem;
  border-left: 2px solid rgba(184,136,46,0.3);
  line-height: 1.5;
}
.aff-list a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.aff-list a:hover {
  color: var(--gold-bright);
  text-decoration: none;
}

.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.4rem 2rem;
  text-align: center;
}
.site-footer p {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.04em;
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.gold-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0;
  color: var(--light-grey);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}
.gold-rule::before, .gold-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  html { font-size: 15px; }
  :root { --nav-h: 60px; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(252, 250, 246, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 0.7rem 2rem;
  }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: calc(var(--nav-h) + 0.9rem) 1.2rem 1rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo, .about-photo-placeholder { width: 140px; height: 170px; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .section { padding: 1.8rem 1.2rem; }
  .page-hero { padding: calc(var(--nav-h) + 0.9rem) 1.2rem 1rem; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .nav-name { display: none; }
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp 0.6s ease both;
}
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }
.fade-up-5 { animation-delay: 0.5s; }

/* ── Utility ──────────────────────────────────────────────── */

/* Colour */
.text-gold      { color: var(--gold); }
.text-navy      { color: var(--navy); }
.text-grey      { color: var(--warm-grey); }
.text-light     { color: var(--light-grey); }

/* Font family */
.font-display   { font-family: var(--font-display) !important; }
.font-body      { font-family: var(--font-body)    !important; }
.font-ui        { font-family: var(--font-ui)       !important; }

/* Style combos */
.italic              { font-style: italic; }
.italic-display      { font-family: var(--font-display); font-style: italic; font-weight: var(--fw-light); }
.overline            { font-family: var(--font-ui); font-size: var(--text-xs); letter-spacing: var(--ls-widest); text-transform: uppercase; color: var(--warm-grey); }
.small-caps          { font-variant: small-caps; letter-spacing: var(--ls-wide); }

/* Weight */
.fw-light    { font-weight: var(--fw-light)    !important; }
.fw-normal   { font-weight: var(--fw-normal)   !important; }
.fw-medium   { font-weight: var(--fw-medium)   !important; }
.fw-semibold { font-weight: var(--fw-semibold) !important; }
.fw-bold     { font-weight: var(--fw-bold)     !important; }

/* Line height */
.lh-tight    { line-height: var(--lh-tight)   !important; }
.lh-normal   { line-height: var(--lh-normal)  !important; }
.lh-relaxed  { line-height: var(--lh-relaxed) !important; }

/* Alignment */
.text-left   { text-align: left;   }
.text-center { text-align: center; }
.text-right  { text-align: right;  }
.text-balance { text-wrap: balance; }

/* Measure (max line length) */
.measure-normal { max-width: var(--measure); }
.measure-wide   { max-width: var(--measure-wide); }

/* Spacing */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
