/* ─────────────────────────────────────────────────────────────
   Pure white until the waves arrive.
   Every visible thing on the page is a reveal unit (.w) whose
   opacity and lift are driven by /js/ripple.js. Nothing else
   (borders, backgrounds, underlines) may paint at rest.
   ───────────────────────────────────────────────────────────── */

:root {
  --paper: #ffffff;
  --ink: #0e0e12;
  --ink-2: #5b5b66;
  --ink-3: #8a8a96;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(20px, 6vw, 96px);
  --section: clamp(120px, 22vh, 240px);
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  scrollbar-width: none;
  -webkit-text-size-adjust: 100%;
}
html::-webkit-scrollbar { display: none; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(124, 108, 255, 0.16); }

#mesh {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
  pointer-events: none;
  background: var(--paper);
}

main {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ───── Reveal units ───── */
.js .w {
  display: inline-block;
  opacity: 0;
  transform-origin: 50% 60%;
}
.js .wd { display: inline-block; white-space: nowrap; }
/* Until ripple.js has split the text, hide it outright so nothing flashes. */
.js [data-reveal], .js .photo { visibility: hidden; }
.js.ready [data-reveal], .js.ready .photo { visibility: visible; }
.js.still .w { opacity: 1; transition: opacity 0.9s ease; }

/* Links never paint their own underline (it would show at rest);
   the words inside them carry it instead. */
a { color: inherit; text-decoration: none; }
.no-js a, .js a .w {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
}
a:hover .w, a:focus-visible .w { text-decoration-color: currentColor; }
a:focus-visible { outline: none; }

/* ───── Type ───── */
.label, .mono {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.mono { letter-spacing: 0.04em; text-transform: none; font-size: 0.86em; }
.small { font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.018em;
  margin: 0;
}
h1 {
  font-size: clamp(64px, 12.5vw, 196px);
  line-height: 0.9;
  margin: 28px 0 40px;
  margin-left: -0.04em;
}
h2 {
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 0.98;
  margin: 18px 0 44px;
  max-width: 14ch;
}
h2.title { max-width: 22ch; font-size: clamp(36px, 4.6vw, 68px); line-height: 1.04; }
h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 14px;
}
em { font-family: var(--serif); font-style: italic; font-size: 1.14em; letter-spacing: 0; }
p { margin: 0 0 1.1em; }

/* ───── Hero ───── */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12vh 0 10vh;
}
.lede {
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.42;
  max-width: 30em;
  color: var(--ink);
  margin-bottom: 44px;
}
.meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

/* ───── Sections ───── */
section, footer { padding: var(--section) 0 0; }
footer { padding-bottom: 28vh; }

.intro { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; max-width: 38em; margin-bottom: 72px; }

.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
}
.cols p { color: var(--ink-2); }
.note { margin-top: 56px; color: var(--ink-2); max-width: 46em; }
.note .mono { color: var(--ink); margin-right: 12px; text-transform: uppercase; letter-spacing: 0.12em; font-size: 11.5px; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 150px minmax(180px, 1fr) minmax(0, 2.1fr);
  gap: 8px 40px;
  padding: 26px 0;
}
.timeline .when { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--ink-3); padding-top: 3px; }
.timeline .who { color: var(--ink-2); font-size: 15px; }
.timeline .who strong { display: block; color: var(--ink); font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; margin-bottom: 4px; letter-spacing: -0.01em; }
.timeline .what { color: var(--ink-2); }

/* Beliefs */
.beliefs h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: -0.01em; margin-bottom: 22px; }
.beliefs ol { list-style: none; padding: 0; margin: 0; counter-reset: b; }
.beliefs li { counter-increment: b; position: relative; padding-left: 38px; margin-bottom: 20px; color: var(--ink-2); }
.beliefs li .n {
  position: absolute;
  left: 0;
  top: 0.32em;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-3);
}

/* Medusa + PhD */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.split.phd { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
figure { margin: 0; }
.photo {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 422 / 420;
  display: grid;
  gap: 1px;
}
.photo img { width: 100%; height: auto; display: block; }
.js .photo img { display: none; }
.photo .tile {
  display: block;
  background-repeat: no-repeat;
  border-radius: 1px;
}
figcaption { margin-top: 16px; }
.aside { color: var(--ink-2); font-size: 15.5px; max-width: 34em; }
.links { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.pubs { list-style: none; padding: 0; margin: 0 0 44px; }
.pubs li { margin-bottom: 22px; }
.pubs a, .pubs .pub-title { display: block; font-size: 16.5px; line-height: 1.45; margin-bottom: 6px; }

/* Contact */
.sign { display: flex; flex-wrap: wrap; gap: 12px 44px; font-family: var(--serif); font-size: clamp(40px, 5.6vw, 84px); line-height: 1.05; margin: 20px 0 48px; }

/* ───── Small screens ───── */
@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; gap: 44px; }
  .split, .split.phd { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .photo { max-width: min(100%, 460px); }
}

/* ───── Accessibility & print ───── */
@media (prefers-reduced-motion: reduce) {
  .js .w { transform: none !important; }
}
@media print {
  #mesh { display: none; }
  .js .w { opacity: 1 !important; transform: none !important; color: var(--ink) !important; }
}
