/* ──────────────────────────────────────────────
   Tokens
   ────────────────────────────────────────────── */
:root {
  --bg: #f4f2ed;
  --bg-2: #ebe8e1;
  --surface: #fbfaf7;
  --ink: #121614;
  --ink-2: #3b403d;
  --muted: #636863; /* 4.5:1 or better on every light background (WCAG AA) */
  --line: rgba(18, 22, 20, 0.12);
  --accent: #2e5e55;
  --accent-2: #8fb3a7;
  --accent-soft: #d6e2dc;
  --dark: #0e1311;
  --dark-ink: #ecebe5;
  --dark-muted: #8d948f;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --radius: 22px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.noscript { padding: 40px; text-align: center; }

/* ──────────────────────────────────────────────
   Accessibility
   ────────────────────────────────────────────── */
/* Read by screen readers, not shown on screen */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Appears only when reached with the keyboard */
.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 400;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

/* Keyboard focus ring (mouse clicks don't show it) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.contact :focus-visible,
.diss :focus-visible,
.skip-link:focus-visible { outline-color: var(--accent-2); }
[tabindex="-1"]:focus { outline: none; }

/* Subtle film grain for depth */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 200;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ──────────────────────────────────────────────
   Shared
   ────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--light { color: var(--dark-muted); }

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* Buttons */
.btn {
  --h: 54px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: var(--h);
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}
.btn:hover::before,
.btn:focus-visible::before { transform: translateY(0); }
.btn__arrow {
  font-style: normal;
  display: inline-block;
  transition: transform 0.5s var(--ease);
}
.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover,
.btn--ghost:focus-visible { color: var(--bg); }
.btn--ghost:hover .btn__arrow { transform: translateY(3px); }
.btn--small { --h: 42px; padding: 0 20px; font-size: 14px; }

/* ──────────────────────────────────────────────
   Preloader
   ────────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--gutter);
  background: var(--dark);
  color: var(--dark-ink);
  transition: clip-path 1.1s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); }
.preloader__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.preloader__name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 3vw, 34px);
}
.preloader__count {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(64px, 14vw, 200px);
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
}
.preloader__bar {
  height: 1px;
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.12);
}
.preloader__bar span {
  display: block;
  height: 100%;
  background: var(--dark-ink);
  transform-origin: left;
  transform: scaleX(0);
}

/* ──────────────────────────────────────────────
   Cursor (fine pointers only)
   ────────────────────────────────────────────── */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 250;
    pointer-events: none;
    mix-blend-mode: difference;
  }
  .cursor__dot,
  .cursor__ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    background: #fff;
    will-change: transform;
  }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
  .cursor__ring {
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    background: transparent;
    border: 1px solid #fff;
    transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), background 0.45s var(--ease), opacity 0.3s;
  }
  .cursor.is-hover .cursor__ring {
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    background: #fff;
  }
  .cursor.is-hidden { opacity: 0; }
}

/* ──────────────────────────────────────────────
   Progress
   ────────────────────────────────────────────── */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}

/* ──────────────────────────────────────────────
   Navigation
   ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 110;
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--max) - 2 * var(--gutter));
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: rgba(244, 242, 237, 0.6);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(18, 22, 20, 0.06), 0 10px 30px -18px rgba(18, 22, 20, 0.25);
  transform: translate(-50%, -140%);
  transition: transform 0.8s var(--ease), background 0.4s;
}
.is-ready .nav { transform: translate(-50%, 0); }
.is-ready .nav.is-hidden { transform: translate(-50%, -140%); }

.nav__logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav__links a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color 0.3s, background 0.3s;
}
.nav__links a:hover { color: var(--ink); background: rgba(18, 22, 20, 0.05); }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
}
.nav__toggle { display: none; }

.menu { display: none; }

@media (max-width: 900px) {
  .nav { padding: 8px 8px 8px 18px; }
  .nav__links,
  .nav__cta { display: none; }
  .nav__toggle {
    display: grid;
    place-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--ink);
  }
  .nav__toggle span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--bg);
    transition: transform 0.5s var(--ease);
  }
  .menu-open .nav__toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-open .nav__toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .menu {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 105;
    align-items: flex-start;
    padding: 112px var(--gutter) 48px;
    overflow-y: auto;
    background: var(--bg);
    clip-path: circle(0% at calc(100% - 40px) 36px);
    transition: clip-path 0.9s var(--ease-in-out);
    pointer-events: none;
  }
  .menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 36px); pointer-events: auto; }
  .menu__links { display: flex; flex-direction: column; gap: 4px; }
  .menu__links a {
    font-family: var(--serif);
    font-size: clamp(40px, 11vw, 64px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
  }
  .menu-open .menu__links a { opacity: 1; transform: none; }
  .menu-open .menu__links a:nth-child(1) { transition-delay: 0.15s; }
  .menu-open .menu__links a:nth-child(2) { transition-delay: 0.2s; }
  .menu-open .menu__links a:nth-child(3) { transition-delay: 0.25s; }
  .menu-open .menu__links a:nth-child(4) { transition-delay: 0.3s; }
  .menu-open .menu__links a:nth-child(5) { transition-delay: 0.35s; }
  .menu-open .menu__links a:nth-child(6) { transition-delay: 0.4s; color: var(--accent); font-style: italic; }
}

/* ──────────────────────────────────────────────
   Hero
   ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 110px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.blob--a { width: 46vw; height: 46vw; top: -12vw; right: -8vw; background: var(--accent-soft); animation: drift-a 22s ease-in-out infinite alternate; }
.blob--b { width: 30vw; height: 30vw; bottom: -10vw; left: -6vw; background: #e7dccb; animation: drift-b 26s ease-in-out infinite alternate; }
.blob--c { width: 18vw; height: 18vw; top: 40%; left: 42%; background: var(--accent-2); opacity: 0.25; animation: drift-c 18s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(-8vw, 6vw) scale(1.1); } }
@keyframes drift-b { to { transform: translate(10vw, -4vw) scale(1.15); } }
@keyframes drift-c { to { transform: translate(-6vw, -8vw) scale(0.9); } }

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.hero__eyebrow { margin-bottom: 28px; }

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 10.5vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-variation-settings: "opsz" 144;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__line--prefix {
  font-size: 0.24em;
  letter-spacing: 0;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 0.3em;
}
.hero__line--last { font-style: italic; padding-left: 0.6em; }
.char {
  display: inline-block;
  transform: translateY(110%) rotate(6deg);
  transform-origin: left bottom;
  transition: transform 1.2s var(--ease);
  transition-delay: calc(var(--i, 0) * 45ms + var(--base, 0ms));
}
.is-ready .char { transform: none; }

.hero__tagline {
  max-width: 460px;
  margin-top: 36px;
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--ink-2);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--base, 0ms);
}
.is-ready .fade-up { opacity: 1; transform: none; }

.hero__portrait { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 440px; }
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  clip-path: inset(100% 0 0 0 round 999px 999px var(--radius) var(--radius));
  transition: clip-path 1.6s var(--ease-in-out) 0.35s;
}
.is-ready .portrait { clip-path: inset(0 0 0 0 round 999px 999px var(--radius) var(--radius)); }
.portrait__media {
  position: absolute;
  inset: 0;
  transform: scale(1.18);
  transform-origin: 50% 30%;
  transition: transform 2.2s var(--ease) 0.35s;
}
.is-ready .portrait__media { transform: scale(1); }
/* The photo is shown almost whole (top of the head included) and nudged left so
   her face sits on the arch's centre line. */
.portrait__media img {
  position: absolute;
  top: 0;
  left: -8%;
  width: 108%;
  height: auto;
  max-width: none;
}
.monogram {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(255, 255, 255, 0.6), transparent 60%),
    linear-gradient(160deg, var(--accent-soft), #c4d3cb 50%, var(--accent-2));
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(90px, 12vw, 180px);
  letter-spacing: -0.05em;
  color: rgba(18, 22, 20, 0.82);
}
.portrait__tag {
  position: absolute;
  left: -28px;
  bottom: 48px;
  padding: 14px 20px;
  border-radius: 16px;
  background: rgba(251, 250, 247, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -24px rgba(18, 22, 20, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease) 1.4s, transform 1.2s var(--ease) 1.4s;
  animation: float 6s ease-in-out 2.6s infinite;
}
.portrait__tag strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 17px; }
.portrait__tag span { color: var(--muted); }
.is-ready .portrait__tag { opacity: 1; transform: none; }
@keyframes float { 50% { translate: 0 -8px; } }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue i {
  position: relative;
  width: 1px;
  height: 46px;
  background: var(--line);
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

@media (max-width: 900px) {
  .hero { padding-top: 120px; align-items: flex-start; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(56px, 17vw, 128px); }
  .hero__portrait { justify-self: end; max-width: 300px; width: 78%; margin-top: 8px; }
  .portrait__tag { left: auto; right: -12px; bottom: 24px; }
  .hero__line--last { padding-left: 0.3em; }
  .scroll-cue { display: none; }
}

/* ──────────────────────────────────────────────
   Marquee
   ────────────────────────────────────────────── */
.marquee {
  position: relative;
  padding: 28px 0;
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg);
}
.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  padding-right: clamp(24px, 3vw, 48px);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.marquee__item:nth-child(even) { font-style: italic; color: var(--accent); }
/* Pause / play for all ongoing animation */
.motion-toggle {
  position: absolute;
  top: 50%;
  right: var(--gutter);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.3s, color 0.3s;
}
/* The words fade out just before the control */
.marquee:has(.motion-toggle)::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: calc(var(--gutter) + 140px);
  background: linear-gradient(90deg, rgba(244, 242, 237, 0), var(--bg) 60%);
  pointer-events: none;
}
.motion-toggle:hover { background: var(--ink); color: var(--bg); }
.motion-toggle__play,
.motion-toggle[aria-pressed="true"] .motion-toggle__pause { display: none; }
.motion-toggle[aria-pressed="true"] .motion-toggle__play { display: block; margin-left: 2px; }
.motion-paused *,
.motion-paused *::before,
.motion-paused *::after { animation-play-state: paused !important; }
.motion-paused .about__statement .w { opacity: 1; }

.marquee__item::after {
  content: "✳";
  font-size: 0.5em;
  color: var(--accent-2);
  font-style: normal;
}

/* ──────────────────────────────────────────────
   Sections
   ────────────────────────────────────────────── */
.section { position: relative; padding: clamp(96px, 14vw, 180px) 0; }
.section__head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.section__index {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.section__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.section__title em { font-style: italic; color: var(--accent); }

/* Word-mask reveal for headings */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.word > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.is-in .word > span,
.word.is-in > span { transform: none; }

/* Generic reveal */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal="left"] { transform: translate3d(-40px, 0, 0); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ──────────────────────────────────────────────
   About
   ────────────────────────────────────────────── */
.about__statement {
  max-width: 1100px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.8vw, 58px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
/* Unlit words stay readable: 3:1 or better, the WCAG minimum for large text */
.about__statement .w {
  opacity: 0.5;
  transition: opacity 0.4s linear;
}
.about__statement .w.on { opacity: 1; }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  margin-top: clamp(64px, 9vw, 128px);
}
.about__body p { color: var(--ink-2); font-size: 17px; }
.about__body p + p { margin-top: 1.2em; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.stat {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.stat:nth-child(odd) { padding-right: 24px; }
.stat:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__num {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 5.4vw, 80px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat__num sup { font-size: 0.45em; color: var(--accent); vertical-align: top; margin-left: 2px; }
.stat__label { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────
   Experience timeline
   ────────────────────────────────────────────── */
.timeline { position: relative; }
.timeline__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(26% + 2px);
  width: 1px;
  background: var(--line);
}
.timeline__rail span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(0);
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 26% 1fr;
  gap: 0 56px;
  padding: 0 0 clamp(56px, 7vw, 96px);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  top: 10px;
  left: calc(26% - 3px);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.6s var(--ease), box-shadow 0.6s var(--ease), transform 0.6s var(--ease);
}
.timeline__item.is-in::before {
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}
.timeline__period {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-top: 4px;
  padding-right: 32px;
}
.timeline__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.timeline__place { margin-top: 6px; color: var(--accent); font-size: 15px; }
.timeline__points { margin-top: 18px; display: grid; gap: 8px; }
.timeline__points li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
}
.timeline__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 10px;
  height: 1px;
  background: var(--muted);
}

@media (max-width: 700px) {
  .timeline__rail { left: 5px; }
  .timeline__item { grid-template-columns: 1fr; padding-left: 36px; }
  .timeline__item::before { left: 0; top: 4px; }
  .timeline__period { padding: 0 0 8px; }
}

/* ──────────────────────────────────────────────
   Expertise cards
   ────────────────────────────────────────────── */
.expertise { background: var(--bg-2); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  perspective: 1200px;
}
.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(18, 22, 20, 0.05);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), opacity 1s var(--ease);
  will-change: transform;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(143, 179, 167, 0.32), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}
.card:hover { box-shadow: 0 30px 60px -30px rgba(18, 22, 20, 0.3), inset 0 0 0 1px rgba(18, 22, 20, 0.06); }
.card:hover::before { opacity: 1; }
.card__num {
  position: relative;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.card__icon {
  position: relative;
  width: 44px;
  height: 44px;
  margin-top: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  transition: transform 0.6s var(--ease), background 0.4s, color 0.4s;
}
.card:hover .card__icon { transform: rotate(90deg) scale(1.08); background: var(--accent); color: var(--bg); }
.card__title {
  position: relative;
  margin-top: 40px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.card__text { position: relative; margin-top: 10px; color: var(--ink-2); font-size: 15px; }

@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .card { min-height: 240px; } }

/* ──────────────────────────────────────────────
   Publications
   ────────────────────────────────────────────── */
.rows { border-top: 1px solid var(--line); }
.row {
  position: relative;
  border-bottom: 1px solid var(--line);
}
.row__link {
  position: relative;
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: start;
  gap: 24px;
  padding: 32px 8px;
  overflow: hidden;
  isolation: isolate;
}
.row__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
}
.row__year { padding-top: 8px; font-size: 14px; color: var(--muted); transition: color 0.4s; }
.row__year small { display: block; margin-top: 2px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.row__venue {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.4s;
}
.row__link:hover .row__venue,
.row__link:focus-visible .row__venue { color: var(--accent-2); }
.row__meta { max-width: 760px; line-height: 1.6; }
.row__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  transition: transform 0.6s var(--ease), color 0.4s;
}
.row__meta { display: block; margin-top: 6px; font-family: var(--sans); font-size: 14px; color: var(--muted); letter-spacing: 0; transition: color 0.4s; }
.row__meta em { color: var(--accent); transition: color 0.4s; }
.row__arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.6s var(--ease), background 0.4s, color 0.4s, box-shadow 0.4s;
}
.row__link:hover::before,
.row__link:focus-visible::before { transform: scaleY(1); transform-origin: top; }
.row__link:hover .row__title,
.row__link:focus-visible .row__title { color: var(--bg); transform: translateX(12px); }
.row__link:hover .row__year,
.row__link:hover .row__meta,
.row__link:focus-visible .row__year,
.row__link:focus-visible .row__meta { color: var(--dark-muted); }
.row__link:hover .row__meta em,
.row__link:focus-visible .row__meta em { color: var(--accent-2); }
.row__link:hover .row__arrow,
.row__link:focus-visible .row__arrow { background: var(--bg); color: var(--ink); box-shadow: none; transform: rotate(-45deg); }

@media (max-width: 640px) {
  .row__link { grid-template-columns: 1fr auto; padding: 24px 4px; gap: 6px 16px; }
  .row__year { grid-column: 1 / -1; padding-top: 0; }
  .row__arrow { width: 40px; height: 40px; }
}

/* ──────────────────────────────────────────────
   Video row (Media & Appearances)
   ────────────────────────────────────────────── */
/* Same dark hover fill as the other rows (not while the video is open) */
.row__inner { position: relative; overflow: hidden; isolation: isolate; }
.row__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
}
.row--video:not(.is-playing) .row__inner:hover::before { transform: scaleY(1); transform-origin: top; }
.row--video:not(.is-playing) .row__inner:hover .row__title { color: var(--bg); transform: translateX(12px); }
.row--video:not(.is-playing) .row__inner:hover .row__year,
.row--video:not(.is-playing) .row__inner:hover .row__meta { color: var(--dark-muted); }
.row--video:not(.is-playing) .row__inner:hover .row__venue { color: var(--accent-2); }

.row__inner {
  display: grid;
  grid-template-columns: 170px 1fr minmax(240px, 380px);
  align-items: start;
  gap: 24px 40px;
  padding: 32px 8px;
}
.vplayer { position: relative; width: 100%; }
.vplayer__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 48px -28px rgba(18, 22, 20, 0.55);
  isolation: isolate;
}
.vthumb {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  cursor: pointer;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.vthumb__media { position: absolute; inset: 0; overflow: hidden; }
.vthumb__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.1s var(--ease), filter 0.6s;
}
.vthumb__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55));
  transition: background 0.5s;
}
.vthumb__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  padding-left: 3px;
  border-radius: 50%;
  background: rgba(251, 250, 247, 0.92);
  color: var(--ink);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.5);
  transition: transform 0.6s var(--ease), background 0.4s, color 0.4s;
}
.vthumb__play::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(251, 250, 247, 0.8);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}
.vthumb__meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.vthumb__dur {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.vthumb:hover .vthumb__media img { transform: scale(1.08); }
.vthumb:hover .vthumb__shade { background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 0.6)); }
.vthumb:hover .vthumb__play { transform: scale(1.12); background: var(--accent); color: #fff; }
.vthumb:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.vplayer__iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
}
.vplayer__frame.is-loaded .vthumb { opacity: 0; visibility: hidden; }
.vplayer__close {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.3s, color 0.3s;
}
.vplayer__close i { font-style: normal; font-size: 18px; line-height: 1; }
.vplayer__close:hover,
.vplayer__close:focus-visible { background: var(--ink); color: var(--bg); }

/* Playing: the player moves under the text and takes the full width */
.row--video.is-playing .vplayer { grid-column: 2 / -1; }
.row--video.is-playing .vplayer__close { display: flex; }

@media (max-width: 900px) {
  .row__inner { grid-template-columns: 1fr; gap: 6px; padding: 24px 4px; }
  .row__inner .vplayer { margin-top: 18px; }
  .row--video.is-playing .vplayer { grid-column: 1 / -1; }
}

/* ──────────────────────────────────────────────
   Research
   ────────────────────────────────────────────── */
.diss {
  position: relative;
  padding: clamp(32px, 5vw, 72px);
  border-radius: calc(var(--radius) + 6px);
  background: var(--dark);
  color: var(--dark-ink);
  overflow: hidden;
  isolation: isolate;
}
.diss::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 60%;
  aspect-ratio: 1;
  right: -15%;
  top: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 179, 167, 0.35), transparent 65%);
  animation: drift-a 18s ease-in-out infinite alternate;
}
.diss__label { color: var(--accent-2); }
.diss__title {
  max-width: 980px;
  margin-top: 20px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 4.2vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.diss__text { max-width: 640px; margin-top: 28px; color: var(--dark-muted); font-size: 17px; }
.diss__title { padding-right: 190px; }

.diss__badge {
  position: absolute;
  top: clamp(32px, 4vw, 56px);
  right: clamp(32px, 4vw, 56px);
  width: 156px;
  height: 156px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--dark-ink);
}
.diss__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: spin 22s linear infinite;
}
.diss__ring text {
  fill: currentColor;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.diss__core {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--accent-2);
  color: var(--dark);
  transition: transform 0.6s var(--ease), background 0.4s, color 0.4s;
}
.diss__core::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(236, 235, 229, 0.18);
  transition: inset 0.6s var(--ease), border-color 0.4s;
}
.diss__core svg { transition: transform 0.6s var(--ease); }
.diss__badge:hover .diss__core,
.diss__badge:focus-visible .diss__core { transform: scale(1.12); background: var(--dark-ink); }
.diss__badge:hover .diss__core::before { inset: -18px; border-color: rgba(236, 235, 229, 0.35); }
.diss__badge:hover .diss__core svg { transform: rotate(45deg); }
.diss__badge:hover .diss__ring { animation-duration: 8s; }
.diss__badge:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .diss__title { padding-right: 0; }
  .diss__badge { position: relative; top: auto; right: auto; margin-top: 36px; width: 132px; height: 132px; }
  .diss__core { width: 64px; height: 64px; }
}

.research__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  margin-top: clamp(64px, 8vw, 112px);
}
.research__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.research__note {
  margin-top: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.research__text { margin-top: 16px; color: var(--ink-2); font-size: 16px; }
.research__other { display: grid; gap: 0; border-top: 1px solid var(--line); }
.research__item { padding: 28px 0; border-bottom: 1px solid var(--line); }
.research__item .research__text { margin-top: 10px; }

.citations { margin-top: clamp(64px, 8vw, 112px); }
.citations__title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.citations__list { margin-top: 20px; display: grid; gap: 16px; }
.citations__list li {
  position: relative;
  padding: 32px 32px 32px 96px;
  border-radius: var(--radius);
  background: var(--bg-2);
}
.citations__quote {
  position: absolute;
  left: 28px;
  top: 14px;
  font-family: var(--serif);
  font-size: 88px;
  line-height: 1;
  color: var(--accent-2);
}
.citations__ref { font-family: var(--serif); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; }
.citations__note { margin-top: 12px; font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .research__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .citations__list li { padding: 64px 22px 24px; }
  .citations__quote { left: 20px; top: 8px; font-size: 72px; }
}

/* ──────────────────────────────────────────────
   Education & awards
   ────────────────────────────────────────────── */
.edu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(64px, 8vw, 120px);
}
.edu__grid .section__title { font-size: clamp(36px, 4.4vw, 64px); }
.edu__list li {
  position: relative;
  padding: 26px 0;
}
.edu__list li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.4s var(--ease);
  transition-delay: var(--d, 0ms);
}
.edu__list li.is-in::after { transform: scaleX(1); }
.edu__period { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.edu__title {
  margin-top: 6px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.edu__place { margin-top: 4px; color: var(--accent); font-size: 15px; }
.edu__note { margin-top: 10px; font-size: 14px; font-style: italic; color: var(--ink-2); max-width: 520px; }

.langs { margin-top: 64px; }
.langs__title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.langs__list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.lang {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.4s, color 0.4s, box-shadow 0.4s;
}
.lang strong { font-weight: 500; }
.lang span { font-size: 13px; color: var(--muted); transition: color 0.4s; }
.lang:hover { background: var(--ink); color: var(--bg); box-shadow: none; }
.lang:hover span { color: var(--dark-muted); }

@media (max-width: 900px) { .edu__grid { grid-template-columns: 1fr; } }

/* ──────────────────────────────────────────────
   Contact / footer
   ────────────────────────────────────────────── */
main {
  position: relative;
  z-index: 1;
  background: var(--bg);
}
.contact {
  position: relative;
  z-index: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: clamp(120px, 14vw, 180px) 0 40px;
  background: var(--dark);
  color: var(--dark-ink);
  overflow: hidden;
}
/* Curtain reveal: footer sits underneath and main scrolls off it */
.contact.is-curtain { position: sticky; bottom: 0; }
.contact__inner { position: relative; }
.contact__title {
  margin-top: 28px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.contact__title em { font-style: italic; color: var(--accent-2); }
.contact__text { max-width: 520px; margin-top: 32px; color: var(--dark-muted); font-size: 17px; }
.contact__address { margin-top: 20px; font-size: 15px; color: var(--dark-muted); line-height: 1.7; }
.contact__email {
  position: relative;
  display: inline-block;
  margin-top: 48px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 3.6vw, 52px);
  letter-spacing: -0.02em;
  word-break: break-word;
}
.contact__email::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(0.2);
  transition: transform 0.8s var(--ease);
}
.contact__email:hover::after,
.contact__email:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.contact__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: clamp(80px, 12vw, 160px);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.contact__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.contact__links a {
  position: relative;
  font-size: 14px;
  color: var(--dark-muted);
  transition: color 0.3s;
}
.contact__links a:hover,
.contact__links a:focus-visible { color: var(--dark-ink); }
.contact__copy { font-size: 13px; color: var(--dark-muted); }

.to-top {
  position: absolute;
  right: var(--gutter);
  top: clamp(40px, 6vw, 80px);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-size: 20px;
  transition: background 0.4s, color 0.4s;
}
.to-top:hover,
.to-top:focus-visible { background: var(--dark-ink); color: var(--dark); }

@media (max-width: 700px) {
  .contact { min-height: 0; padding-top: 120px; }
  .contact__meta { margin-top: 64px; }
  .to-top { top: 36px; width: 56px; height: 56px; }
}

/* ──────────────────────────────────────────────
   Reduced motion
   ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .about__statement .w { opacity: 1; }
  .cursor { display: none !important; }
}
