/* ---------- Tokens ---------- */
:root {
  --c-text: #111;
  --c-muted: #555;
  --c-soft: #8a8a8a;
  --c-line: #dcdcdc;
  --c-bg: #fff;
  --c-grey: #f0f0f0;
  --c-dark: #2b2b2b;

  --f-serif: "Tinos", "Times New Roman", Times, serif;
  --f-sans: "Fira Sans", system-ui, -apple-system, sans-serif;
  --f-script: "Ephesis", cursive;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(72px, 9vw, 140px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container {
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Image placeholder: grey until a real file is dropped into /images */
.ph {
  background-color: #d4d4d4;
  background-size: cover;
  background-position: center;
}

/* ---------- Typography ---------- */
.label, .eyebrow {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 18px;
}
.h2 {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.18;
  margin-bottom: 22px;
}
.h3 {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
  margin-bottom: 16px;
}
.lead { font-size: clamp(16px, 1.25vw, 19px); color: var(--c-muted); line-height: 1.65; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { font-family: var(--f-script); font-size: 46px; line-height: 1; padding-top: 4px; }
.nav { display: flex; gap: clamp(20px, 3.4vw, 52px); }
.nav a {
  font-size: 13px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase;
  position: relative; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: currentColor; transition: right .25s ease;
}
.nav a:hover::after, .nav a.is-active::after { right: 0; }
.nav-toggle { display: none; width: 32px; height: 32px; position: relative; }
.nav-toggle span {
  position: absolute; left: 4px; right: 4px; height: 1.5px; background: var(--c-text);
  transition: transform .25s ease, top .25s ease;
}
.nav-toggle span:first-child { top: 12px; }
.nav-toggle span:last-child { top: 19px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 15.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 15.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 82vh, 860px);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; background-color: #cfcfcf; background-position: 70% center; filter: grayscale(1); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.75) 35%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 30%);
}
.hero__content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(64px, 9vw, 120px); }
.hero .eyebrow { color: var(--c-text); font-size: 12px; margin-bottom: 26px; }
.hero__title {
  font-family: var(--f-script); font-weight: 400;
  font-size: clamp(72px, 9vw, 132px); line-height: 1.1;
  margin-bottom: 34px;
}
.hero__lead { max-width: 520px; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.6; color: #333; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--grey { background: var(--c-grey); }
.section--dark { background: var(--c-dark); color: #fff; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto clamp(48px, 5vw, 72px); }
.section-head > p:not(.label) { color: var(--c-muted); font-size: 15px; }

/* ---------- Biography ---------- */
.bio { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.bio__photo { aspect-ratio: 4 / 5; width: 100%; }
.timeline { margin-top: 36px; border-top: 1px solid var(--c-line); }
.timeline > div {
  display: grid; grid-template-columns: 150px 1fr; gap: 20px;
  padding: 16px 0; border-bottom: 1px solid var(--c-line);
}
.timeline dt { font-family: var(--f-serif); font-weight: 700; font-size: 17px; }
.timeline dd { font-size: 14px; color: #333; line-height: 1.55; padding-top: 2px; }

/* ---------- Stats + Research ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-bottom: clamp(48px, 6vw, 80px); margin-bottom: clamp(64px, 8vw, 110px);
  border-bottom: 1px solid var(--c-line);
}
.stat { display: flex; flex-direction: column; gap: 10px; padding: 0 28px; border-left: 1px solid var(--c-line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat__num { font-family: var(--f-serif); font-size: clamp(36px, 4vw, 60px); line-height: 1; }
.stat__label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-soft); }
.research .h2 { max-width: 920px; }
.research .lead { max-width: 960px; font-size: 16px; }
.points { margin-top: 36px; }
.points li { padding: 24px 0; border-top: 1px solid var(--c-line); }
.points h3 { font-family: var(--f-serif); font-size: 18px; margin-bottom: 6px; }
.points p { font-size: 14px; color: #333; }

/* ---------- Books ---------- */
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); max-width: 1000px; margin: 0 auto; }
.book h3 { font-family: var(--f-serif); font-size: 19px; line-height: 1.3; margin: 28px 0 14px; }
.book__pub { font-size: 13px; color: #333; }
.book__meta { font-size: 13px; color: var(--c-soft); margin-top: 8px; }
.cover {
  aspect-ratio: 747 / 1024; width: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 14% 10% 10%; color: #f3e9c8;
  box-shadow: 0 18px 30px -18px rgba(0,0,0,.55);
  transition: transform .35s ease, box-shadow .35s ease;
}
.book:hover .cover { transform: translateY(-6px); box-shadow: 0 26px 40px -20px rgba(0,0,0,.6); }
.cover--brown { background-color: #3a1f1c; }
.cover--navy  { background-color: #1a2a8c; color: #f2c94c; }
.cover--blue  { background-color: #1c3c78; color: #f2c94c; }
.cover__title { font-family: var(--f-serif); font-weight: 700; text-transform: uppercase; font-size: clamp(14px, 1.4vw, 19px); line-height: 1.3; }
.cover__sub { font-family: var(--f-serif); font-weight: 700; text-transform: uppercase; font-size: 10px; letter-spacing: .04em; margin-top: 14px; }
.cover__author { font-family: var(--f-serif); font-weight: 700; text-transform: uppercase; font-size: 9px; letter-spacing: .1em; margin-top: auto; }

.feature {
  display: grid; grid-template-columns: 280px 1fr; gap: clamp(32px, 5vw, 64px); align-items: center;
  background: #fff; margin-top: clamp(64px, 7vw, 100px); padding: clamp(24px, 3vw, 48px);
}
.feature__photo { aspect-ratio: 3 / 4; width: 100%; }
.feature__text p:not(.label) { color: var(--c-muted); max-width: 460px; }

/* ---------- Bibliography ---------- */
.biblio { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.biblio__title { font-family: var(--f-serif); font-size: 22px; margin-bottom: 18px; }
.biblio__title--upcoming { margin-top: clamp(56px, 6vw, 80px); }
.biblio__list li {
  display: grid; grid-template-columns: 80px 1fr; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--c-line);
}
.biblio__year { font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.biblio__list p { font-size: 14px; line-height: 1.5; }
.biblio__list small { display: block; font-size: 12px; color: var(--c-soft); margin-top: 4px; }

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 6vw, 96px); }
.section--dark .label { color: #9a9a9a; }
.quotes__note { font-size: 13px; color: #9a9a9a; margin-bottom: 40px; }
.quotes__tabs { border-left: 1px solid #555; }
.quotes__tabs button {
  display: block; width: 100%; text-align: left;
  font-size: 13px; color: #8f8f8f; padding: 9px 0 9px 16px;
  border-left: 2px solid transparent; margin-left: -1px;
  transition: color .2s ease;
}
.quotes__tabs button:hover { color: #ddd; }
.quotes__tabs button[aria-selected="true"] { color: #fff; font-weight: 600; border-left-color: #fff; }
.quotes__main { padding-top: 32px; }
.quotes__book { font-size: 13px; font-weight: 600; color: #9a9a9a; margin-bottom: 22px; }
.quote__text {
  font-family: var(--f-serif); font-style: italic;
  font-size: clamp(26px, 2.8vw, 40px); line-height: 1.3; margin-bottom: 30px;
}
.quote__source { font-size: 13px; font-weight: 600; }
.quote__author { font-size: 13px; color: #9a9a9a; margin-top: 6px; }
.quotes__nav { display: flex; align-items: center; gap: 20px; margin-top: 36px; font-size: 13px; color: #bbb; }
.quotes__nav button { font-size: 18px; padding: 4px; transition: opacity .2s; }
.quotes__nav button:disabled { opacity: .3; cursor: default; }
.quote { transition: opacity .25s ease; }
.quote.is-fading { opacity: 0; }

/* ---------- Recognition ---------- */
.recognition { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.recognition__photo { aspect-ratio: 3 / 2; width: 100%; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.g { position: relative; overflow: hidden; min-height: 200px; }
.g--a { grid-column: span 7; aspect-ratio: 7 / 4.6; }
.g--b { grid-column: span 5; }
.g--c { grid-column: span 3; aspect-ratio: 3 / 4.2; }
.g--d { grid-column: span 6; }
.g--e { grid-column: span 3; }
.g--f { grid-column: span 6; aspect-ratio: 6 / 4; }
.g--g { grid-column: span 6; }
.g figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px;
  font-size: 12px; line-height: 1.5; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.65));
}

/* ---------- Footer ---------- */
.footer { background: var(--c-dark); color: #ccc; text-align: center; padding: 28px var(--gutter); font-size: 12px; font-weight: 400; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 84px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px;
    background: #fff; border-bottom: 1px solid var(--c-line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--c-grey); }
  .nav a::after { display: none; }

  .bio, .quotes, .recognition { grid-template-columns: 1fr; }
  .bio__photo { max-width: 480px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .books { grid-template-columns: repeat(2, 1fr); }
  .biblio { grid-template-columns: 1fr; gap: 0; }
  .biblio > div + div { margin-top: 48px; }
  .quotes__main { padding-top: 0; }
  .g--a, .g--b, .g--d, .g--f, .g--g { grid-column: span 12; aspect-ratio: 3 / 2; }
  .g--c, .g--e { grid-column: span 6; aspect-ratio: 3 / 4; }
}

@media (max-width: 600px) {
  .header__inner { height: 68px; }
  .nav { top: 68px; }
  .logo { font-size: 32px; }
  .hero__title { font-size: 60px; white-space: nowrap; }
  .hero__lead { max-width: none; }
  .hero::before {
    background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.92) 60%, #fff 100%);
  }
  .timeline > div { grid-template-columns: 1fr; gap: 4px; }
  .books { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .feature { grid-template-columns: 1fr; }
  .feature__photo { max-width: 280px; }
  .biblio__list li { grid-template-columns: 1fr; gap: 4px; }
  .g--c, .g--e { grid-column: span 12; }
}
