/* =========================================================
   Atelier — katherineelkins.com redesign prototype A
   Warm paper, burgundy ink, Fraunces display + Libre Franklin
   ========================================================= */

:root {
  --paper: #FAF9F6;
  --paper-2: #F3EEE5;
  --paper-3: #EAE2D4;
  --ink: #1a1a1a;
  --ink-2: #45403b;          /* 9.6:1 on paper */
  --ink-3: #6a625a;          /* 5.6:1 on paper */
  --burgundy: #7B2D3B;       /* 9.0:1 on paper */
  --burgundy-deep: #4e1a24;
  --burgundy-tint: #f1e3e3;
  --rule: rgba(26, 26, 26, .14);
  --rule-strong: rgba(26, 26, 26, .32);
  --on-dark: #F6EFE6;
  --on-dark-2: #d9c9bd;      /* 8.3:1 on burgundy-deep */

  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* strict modular type scale (1.25) with fluid display steps */
  --step--1: .8rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.44rem);
  --step-4: clamp(2.2rem, 1.4rem + 3vw, 3.8rem);
  --step-5: clamp(2.8rem, 1.2rem + 6vw, 6rem);
  --step-display: clamp(3.4rem, .8rem + 12vw, 11.5rem);

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 1320px;
  --measure: 38rem;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -.015em; font-variation-settings: "opsz" 144, "SOFT" 30; }

::selection { background: var(--burgundy); color: var(--on-dark); }

:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 4px;
  border-radius: 2px;
}
.on-dark :focus-visible { outline-color: var(--on-dark); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: var(--paper); padding: .75rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- grain + progress ---------- */
.grain {
  pointer-events: none; position: fixed; inset: -50%; z-index: 90; opacity: .07;
  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='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .1  0 0 0 0 .08  0 0 0 0 .07  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.progress {
  position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 120;
  background: var(--burgundy); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- cursor (enabled by JS on fine pointers only) ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1px solid var(--burgundy); opacity: 0;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s var(--ease), opacity .3s;
  mix-blend-mode: multiply;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: rgba(123, 45, 59, .12); }
.cursor.is-dark { border-color: var(--on-dark); mix-blend-mode: normal; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(5rem, 12vw, 11rem); position: relative; }
.section--tight { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--warm { background: var(--paper-2); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

.eyebrow {
  font-family: var(--sans); font-size: var(--step--1); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--burgundy);
  display: inline-flex; align-items: center; gap: .75rem; margin: 0 0 1.5rem;
}
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: var(--on-dark-2); }

.h-section { font-size: var(--step-5); max-width: 16ch; }
.h-section em, .display em { font-style: italic; color: var(--burgundy); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.lede { font-family: var(--serif); font-size: var(--step-3); line-height: 1.25; color: var(--ink); max-width: 30ch; font-variation-settings: "opsz" 48; }
.body-lg { font-size: var(--step-1); line-height: 1.6; color: var(--ink-2); max-width: var(--measure); }
.muted { color: var(--ink-2); }

/* ---------- links & buttons ---------- */
.link {
  text-decoration: none; color: var(--burgundy); font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
  padding-bottom: 2px;
}
.link:hover, .link:focus-visible { background-size: 100% 1px; }
.link--quiet { color: inherit; }
.arrow { display: inline-block; transition: transform .4s var(--ease); }
a:hover .arrow, a:focus-visible .arrow { transform: translateX(.3em); }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.5rem; min-height: 48px;
  border: 1px solid var(--ink); border-radius: 999px;
  font: 500 .92rem/1 var(--sans); letter-spacing: .02em;
  text-decoration: none; color: var(--ink); background: transparent;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--burgundy); border-color: var(--burgundy); color: var(--on-dark); }
.btn--solid:hover, .btn--solid:focus-visible { background: var(--burgundy-deep); border-color: var(--burgundy-deep); color: var(--on-dark); }
.on-dark .btn { border-color: var(--on-dark); color: var(--on-dark); }
.on-dark .btn:hover, .on-dark .btn:focus-visible { background: var(--on-dark); color: var(--burgundy-deep); }
.magnetic { will-change: transform; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .4s, box-shadow .4s, transform .5s var(--ease);
}
.nav.is-scrolled { background: rgba(250, 249, 246, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--rule); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; letter-spacing: -.01em; font-variation-settings: "opsz" 36; }
.brand span { color: var(--burgundy); }
.nav__list { display: none; list-style: none; margin: 0; padding: 0; gap: clamp(1rem, 2.2vw, 2.2rem); }
.nav__list a {
  text-decoration: none; font-size: .88rem; font-weight: 500; letter-spacing: .01em; color: var(--ink-2);
  background: linear-gradient(var(--burgundy), var(--burgundy)) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease), color .3s; padding-block: .35rem;
}
.nav__list a:hover, .nav__list a:focus-visible, .nav__list a[aria-current="page"] { color: var(--ink); background-size: 100% 1px; }
.nav__toggle {
  appearance: none; background: none; border: 1px solid var(--rule-strong); border-radius: 999px;
  min-height: 44px; padding: 0 1.1rem; font: 500 .85rem var(--sans); color: var(--ink); cursor: pointer;
}
.menu {
  position: fixed; inset: 0; z-index: 99; background: var(--burgundy-deep); color: var(--on-dark);
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2rem; display: none; flex-direction: column; justify-content: space-between;
}
.menu.is-open { display: flex; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li a { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 10vw, 3.4rem); line-height: 1.15; text-decoration: none; padding-block: .2rem; }
.menu li a[aria-current="page"] { font-style: italic; }
.menu p { color: var(--on-dark-2); font-size: .9rem; }
body.menu-open .nav { background: transparent; box-shadow: none; }
body.menu-open .brand, body.menu-open .nav__toggle { color: var(--on-dark); border-color: rgba(246, 239, 230, .4); }
@media (min-width: 960px) {
  .nav__list { display: flex; }
  .nav__toggle, .menu { display: none !important; }
}

/* ---------- hero ---------- */
.hero { min-height: 100svh; padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 3rem; position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero__motif { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero__motif path { fill: none; stroke: var(--burgundy); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .35; }
.hero__motif path.faint { opacity: .16; }
.hero__grid { position: relative; z-index: 1; display: grid; gap: 2rem; align-items: end; }
.hero__name {
  font-size: var(--step-display); line-height: .86; letter-spacing: -.045em;
  font-weight: 300; font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0; margin-bottom: .1em;
}
.hero__name .line2 { display: block; padding-left: .55em; font-style: italic; color: var(--burgundy); font-weight: 300; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.hero__meta { display: grid; gap: 1.75rem; }
.hero__lede { font-family: var(--serif); font-size: var(--step-2); line-height: 1.35; max-width: 34ch; font-variation-settings: "opsz" 24; }
.hero__portrait { position: relative; width: min(62vw, 300px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: var(--paper-3); justify-self: end; }
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: saturate(.9) contrast(1.02); }
.hero__caption { position: absolute; left: .75rem; bottom: .6rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.scroll-cue { display: flex; align-items: center; gap: .75rem; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-top: 2.5rem; }
.scroll-cue i { width: 1px; height: 42px; background: var(--rule-strong); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--burgundy); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1fr auto; column-gap: 4rem; }
  .hero__name { grid-column: 1 / -1; }
  .hero__meta { grid-template-columns: 1fr auto; align-items: end; }
  .hero__portrait { width: clamp(240px, 22vw, 340px); grid-row: 1; grid-column: 2; align-self: start; margin-top: -1rem; }
  .hero__name { grid-row: 2; }
  .hero__meta { grid-row: 3; grid-column: 1 / -1; }
}

/* ---------- statement ---------- */
.statement__text { font-family: var(--serif); font-size: var(--step-4); line-height: 1.12; letter-spacing: -.02em; max-width: 24ch; font-variation-settings: "opsz" 96; }
.statement__text .word { display: inline-block; }
.statement__aside { margin-top: 3rem; display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .statement__aside { grid-template-columns: 1fr 1fr; max-width: 60rem; margin-left: auto; } }

/* ---------- horizontal research areas ---------- */
.areas__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 3rem; }
.areas__track { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.panel {
  position: relative; background: var(--paper); border: 1px solid var(--rule);
  padding: clamp(1.5rem, 3vw, 2.75rem); display: flex; flex-direction: column; min-height: 22rem;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s;
}
.panel__num { font-family: var(--serif); font-size: clamp(4.5rem, 9vw, 8rem); line-height: .8; color: var(--burgundy); font-weight: 300; font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.panel h3 { font-size: var(--step-3); margin-top: auto; padding-top: 2.5rem; max-width: 14ch; }
.panel p { color: var(--ink-2); margin: 1rem 0 1.5rem; max-width: 34ch; }
.panel a { position: absolute; inset: 0; z-index: 1; }
.panel .more { font-size: .85rem; font-weight: 600; letter-spacing: .04em; color: var(--burgundy); }
.panel:hover, .panel:focus-within { background: var(--burgundy-deep); color: var(--on-dark); border-color: var(--burgundy-deep); }
.panel:hover p, .panel:focus-within p, .panel:hover .more, .panel:focus-within .more, .panel:hover .panel__num, .panel:focus-within .panel__num { color: var(--on-dark-2); }
.panel:focus-within { outline: 2px solid var(--burgundy); outline-offset: 4px; }
.panel a:focus-visible { outline: none; }
@media (min-width: 640px) { .areas__track { grid-template-columns: 1fr 1fr; } }
/* Horizontal mode is opted into by JS (motion allowed + wide screen) */
.is-horizontal .areas__pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.is-horizontal .areas__track { display: flex; gap: 1.5rem; width: max-content; padding-inline: max(var(--gutter), (100vw - var(--max)) / 2); }
.is-horizontal .panel { width: clamp(340px, 30vw, 460px); min-height: 62vh; }
.areas__meter { display: none; height: 1px; background: var(--rule); margin-top: 2.5rem; position: relative; }
.areas__meter span { position: absolute; inset: 0; background: var(--burgundy); transform-origin: 0 50%; transform: scaleX(0); }
.is-horizontal .areas__meter { display: block; }

/* ---------- archival spotlight (pinned scene) ---------- */
.spot { background: var(--burgundy-deep); color: var(--on-dark); position: relative; overflow: hidden; }
.spot__stage { position: relative; min-height: 100svh; display: flex; align-items: center; padding-block: clamp(5rem, 10vw, 8rem); }
.spot__layer { position: absolute; pointer-events: none; }
.spot__word {
  font-family: var(--serif); font-weight: 300; font-style: italic; line-height: .8; white-space: nowrap;
  font-size: clamp(7rem, 26vw, 26rem); color: transparent; -webkit-text-stroke: 1px rgba(246, 239, 230, .16);
  left: -2vw; top: 6%; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.spot__cards { right: -4vw; bottom: -6%; width: min(70vw, 620px); opacity: .5; }
.spot__cards rect { fill: none; stroke: rgba(246, 239, 230, .28); }
.spot__cards line { stroke: rgba(246, 239, 230, .18); }
.spot__lines { inset: 0; width: 100%; height: 100%; }
.spot__lines path { fill: none; stroke: rgba(246, 239, 230, .14); stroke-width: 1; vector-effect: non-scaling-stroke; }
.spot__content { position: relative; z-index: 2; display: grid; gap: 2.5rem; }
.spot h2 { font-size: var(--step-5); max-width: 12ch; }
.spot h2 em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.spot__lede { font-family: var(--serif); font-size: var(--step-3); line-height: 1.25; max-width: 26ch; color: var(--on-dark); }
.spot__body { color: var(--on-dark-2); max-width: 36rem; font-size: 1.05rem; }
.spot__tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 2rem; }
.spot__tags li { border: 1px solid rgba(246, 239, 230, .35); border-radius: 999px; padding: .35rem .85rem; font-size: .78rem; letter-spacing: .06em; color: var(--on-dark); }
@media (min-width: 900px) { .spot__content { grid-template-columns: 1.1fr 1fr; align-items: end; column-gap: 5rem; } }

/* ---------- leadership rows ---------- */
.rows { list-style: none; padding: 0; margin: 3rem 0 0; border-top: 1px solid var(--rule-strong); }
.row { display: grid; gap: .75rem 3rem; padding-block: clamp(1.75rem, 3.5vw, 2.75rem); border-bottom: 1px solid var(--rule); }
.row__kicker { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); }
.row h3 { font-size: var(--step-3); }
.row p { color: var(--ink-2); max-width: 40rem; }
.row .links { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .92rem; }
@media (min-width: 900px) { .row { grid-template-columns: 14rem 1fr 1.3fr; align-items: baseline; } }

/* ---------- foundations ---------- */
.found { display: grid; gap: 3rem; margin-top: 4rem; }
.found__book { display: grid; gap: 2rem; align-items: center; }
.found__cover { width: min(70%, 300px); box-shadow: 0 30px 60px -30px rgba(40, 20, 20, .5); transform: rotate(-2deg); }
.found__list { display: grid; gap: 2.5rem; }
.found__item h3 { font-size: var(--step-2); margin-bottom: .6rem; }
.found__item .kicker { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); display: block; margin-bottom: .6rem; }
.found__item p { color: var(--ink-2); }
@media (min-width: 900px) {
  .found { grid-template-columns: 1fr 1fr; column-gap: 6rem; }
  .found__book { grid-template-columns: auto; }
}

/* ---------- firsts timeline ---------- */
.timeline-wrap { position: relative; margin-top: 4rem; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline__rail { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.timeline__rail span { position: absolute; inset: 0; background: var(--burgundy); transform-origin: 50% 0; }
.tl { position: relative; padding: 0 0 2.75rem 2rem; }
.tl::before { content: ""; position: absolute; left: -4px; top: .7rem; width: 9px; height: 9px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--burgundy); }
.tl__year { font-family: var(--serif); font-size: var(--step-3); color: var(--burgundy); font-style: italic; font-variation-settings: "opsz" 96, "SOFT" 100, "WONK" 1; }
.tl h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; margin: .25rem 0 .35rem; line-height: 1.35; }
.tl p { color: var(--ink-2); margin: 0; max-width: 38ch; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(3, 1fr); column-gap: 3rem; }
  .timeline__rail { display: none; }
  .tl { padding: 1.75rem 0 2.5rem; border-top: 1px solid var(--rule-strong); }
  .tl::before { top: -5px; left: 0; }
}

/* ---------- reception / counters ---------- */
.recep { display: grid; gap: 3rem; align-items: end; }
.stats { display: flex; gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap; }
.stat__n { font-family: var(--serif); font-size: clamp(5rem, 14vw, 11rem); line-height: .85; font-weight: 300; color: var(--burgundy); font-variant-numeric: lining-nums tabular-nums; font-variation-settings: "opsz" 144; }
.stat__l { display: block; margin-top: .75rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
@media (min-width: 900px) { .recep { grid-template-columns: 1fr 1fr; column-gap: 6rem; } }

/* ---------- contact CTA ---------- */
.cta { background: var(--ink); color: var(--on-dark); text-align: left; }
.cta h2 { font-size: var(--step-5); max-width: 18ch; margin-bottom: 2.5rem; }
.cta h2 em { color: #e3b6bd; font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.cta .btn--solid { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.cta .btn--solid:hover, .cta .btn--solid:focus-visible { background: #e3b6bd; border-color: #e3b6bd; color: var(--ink); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--on-dark-2); padding-block: 3rem 2.5rem; font-size: .9rem; border-top: 1px solid rgba(246, 239, 230, .12); }
.footer__grid { display: grid; gap: 2rem; }
.footer h2 { font-family: var(--sans); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark); font-weight: 600; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer a { color: var(--on-dark-2); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease), color .3s; }
.footer a:hover, .footer a:focus-visible { color: var(--on-dark); background-size: 100% 1px; }
.footer .brand { color: var(--on-dark); font-size: 1.6rem; display: inline-block; margin-bottom: .75rem; }
.footer .brand span { color: #e3b6bd; }
.footer__base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(246, 239, 230, .12); font-size: .8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- page header (inner pages) ---------- */
.phead { padding-top: calc(var(--nav-h) + clamp(4rem, 10vw, 8rem)); padding-bottom: clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.phead h1 { font-size: var(--step-display); line-height: .9; letter-spacing: -.045em; font-weight: 300; }
.phead h1 em { font-style: italic; color: var(--burgundy); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.phead__intro { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 900px) { .phead__intro { grid-template-columns: 1.2fr 1fr; column-gap: 5rem; } }

/* ---------- topic cards (research hub) ---------- */
.topics { list-style: none; padding: 0; margin: 3.5rem 0 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.topic { background: var(--paper); padding: clamp(1.75rem, 3vw, 2.75rem); position: relative; display: flex; flex-direction: column; gap: 1rem; transition: background-color .5s var(--ease); }
.topic__num { font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--burgundy); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.topic h3 { font-size: var(--step-3); }
.topic p { color: var(--ink-2); margin: 0; }
.topic .more { margin-top: auto; padding-top: .5rem; }
.topic:hover { background: var(--paper-2); }
@media (min-width: 720px) { .topics { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .topics { grid-template-columns: repeat(3, 1fr); } }

/* ---------- works list ---------- */
.works { list-style: none; margin: 3rem 0 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.work { border-bottom: 1px solid var(--rule); }
.work a { display: grid; gap: .35rem 2rem; padding-block: 1.6rem; text-decoration: none; position: relative; }
.work .k { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--burgundy); }
.work .t { font-family: var(--serif); font-size: var(--step-2); line-height: 1.15; transition: color .3s, transform .5s var(--ease); font-variation-settings: "opsz" 48; }
.work .d { color: var(--ink-2); }
.work a:hover .t, .work a:focus-visible .t { color: var(--burgundy); transform: translateX(.4rem); }
@media (min-width: 900px) { .work a { grid-template-columns: 16rem 1.4fr 1fr; align-items: baseline; } }

/* ---------- books ---------- */
.book { display: grid; gap: 2.5rem; align-items: start; padding-block: clamp(4rem, 9vw, 8rem); border-top: 1px solid var(--rule-strong); }
.book__cover-wrap { position: relative; }
.book__cover { width: min(78%, 300px); margin-inline: auto; box-shadow: 0 40px 80px -40px rgba(40, 20, 20, .55); }
.book__pub { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); margin-bottom: 1rem; display: block; }
.book h2 { font-size: var(--step-4); max-width: 18ch; margin-bottom: 1.5rem; }
.book h2 em { font-style: italic; }
.book__body p { color: var(--ink-2); max-width: var(--measure); }
.book__body .first { font-family: var(--serif); font-size: var(--step-2); line-height: 1.35; color: var(--ink); font-variation-settings: "opsz" 36; }
.related { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.related h3 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink-3); margin-bottom: 1rem; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.related li { font-size: .95rem; color: var(--ink-2); }
.related li b { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; color: var(--ink); font-variation-settings: "opsz" 24; }
@media (min-width: 900px) {
  .book { grid-template-columns: 5fr 7fr; column-gap: 6rem; }
  .book--flip .book__cover-wrap { order: 2; }
  .book__cover-wrap { position: sticky; top: calc(var(--nav-h) + 2rem); }
}
.lectures { display: grid; gap: 2rem; margin-top: 3rem; }
.lecture { display: grid; grid-template-columns: 96px 1fr; gap: 1.25rem; align-items: start; }
.lecture img { width: 96px; box-shadow: 0 16px 30px -18px rgba(40, 20, 20, .5); }
.lecture .noimg { width: 96px; aspect-ratio: 1; background: var(--paper-3); display: grid; place-items: center; font-family: var(--serif); font-style: italic; color: var(--burgundy); font-size: 1.6rem; }
.lecture .k { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.lecture h3 { font-size: var(--step-2); margin: .3rem 0 .5rem; }
.lecture p { color: var(--ink-2); margin-bottom: .6rem; }
@media (min-width: 900px) { .lectures { grid-template-columns: repeat(3, 1fr); column-gap: 3rem; } .lecture { grid-template-columns: 1fr; } .lecture img, .lecture .noimg { width: 140px; } }

/* ---------- stub ---------- */
.stub { min-height: 70vh; }
.stub__note { margin-top: 2rem; border-left: 2px solid var(--burgundy); padding: .25rem 0 .25rem 1.25rem; color: var(--ink-2); max-width: 40rem; }

/* ---------- speaking and media ---------- */
.talk-list { margin-top: 3.5rem; border-top: 1px solid var(--rule-strong); }
.talk { padding-block: clamp(2rem, 4vw, 3.5rem); border-bottom: 1px solid var(--rule); display: grid; gap: 2rem; }
.talk h3, .media-card h3 { font-size: var(--step-3); max-width: 22ch; margin: .6rem 0 1rem; }
.talk p:not(.kicker), .media-card p:not(.kicker), .topic-lines p { color: var(--ink-2); max-width: var(--measure); }
.talk .kicker, .media-card .kicker { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--burgundy); }
.talk img { width: 100%; max-height: 34rem; object-fit: cover; filter: saturate(.88) contrast(1.03); }
@media (min-width: 850px) {
  .talk--image { grid-template-columns: 1fr 1.15fr; align-items: center; column-gap: 5rem; }
  .talk--image-left img { order: -1; }
}
.split-heading { display: grid; gap: 4rem; }
.topic-lines { border-top: 1px solid var(--rule-strong); }
.topic-lines article { padding-block: 1.7rem; border-bottom: 1px solid var(--rule); }
.topic-lines h3 { font-size: var(--step-2); margin-bottom: .7rem; }
@media (min-width: 900px) { .split-heading { grid-template-columns: .8fr 1.2fr; column-gap: 6rem; align-items: start; } }
.history { margin-top: 3rem; border-top: 1px solid var(--rule-strong); }
.history article { display: grid; gap: .75rem 2rem; padding-block: 1.5rem; border-bottom: 1px solid var(--rule); }
.history span { font-family: var(--serif); font-size: var(--step-3); font-style: italic; color: var(--burgundy); }
.history p { color: var(--ink-2); }
@media (min-width: 760px) { .history article { grid-template-columns: 12rem 1fr; align-items: baseline; } }
.media-grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 3.5rem; }
.media-card { background: var(--paper); padding: clamp(1.75rem, 3vw, 2.75rem); }
.media-card--lead { background: var(--paper-2); }
.media-card h3 a { text-decoration: none; }
.media-card h3 a:hover, .media-card h3 a:focus-visible { color: var(--burgundy); }
@media (min-width: 800px) { .media-grid { grid-template-columns: 1fr 1fr; } }
.press-kit { display: grid; gap: 2rem; margin-top: 3rem; }
.press-kit article { border-top: 1px solid var(--rule-strong); padding-top: 1.5rem; }
.press-kit h3 { font-size: var(--step-2); margin-bottom: .6rem; }
@media (min-width: 800px) { .press-kit { grid-template-columns: 1fr 1fr 2fr; } }
.education-feature { position: relative; overflow: hidden; }
.education-feature__grid { display: grid; gap: 3rem; align-items: end; }
.education-feature__index { font-family: var(--serif); font-size: clamp(7rem, 20vw, 16rem); line-height: .75; color: var(--paper-3); font-style: italic; position: absolute; right: 2vw; top: 1rem; z-index: 0; }
.education-feature__grid > * { position: relative; z-index: 1; }
@media (min-width: 900px) { .education-feature__grid { grid-template-columns: 1fr 1fr; column-gap: 6rem; } }

/* ---------- reveal helpers ---------- */
.line-mask { overflow: hidden; }

/* JS-pending state: hide only what the intro animation will reveal.
   Removed by JS, or by a 2.5s inline safety timer if scripts fail. */
.motion-pending .hero__name, .motion-pending .phead h1 { visibility: hidden; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .grain { display: none; }
}

/* horizontal track: full-bleed in pinned mode */
.is-horizontal .areas__track.wrap { width: max-content; margin: 0; }
