/* ═══════════════════════════════════════════════════════════════════════
   ESTEBAN LABASTIDAS · THE QUANT'S NOTEBOOK
   Vol. II · MMXXVI — iteration 02
   ═══════════════════════════════════════════════════════════════════════ */


/* ─── 01 · TOKENS ───────────────────────────────────────────────────── */
:root {

  /* Navy system — consultant / markets */
  --navy-deep:    #0a1628;
  --navy:         #0c1a2e;
  --navy-mid:     #15243d;
  --navy-tint:    #1e3150;
  --navy-soft:    rgba(10, 22, 40, 0.6);

  /* Paper system — academic / research */
  --paper:        #ede6d3;
  --paper-2:      #e4ddc7;
  --paper-3:      #d8cfb5;

  /* Ink (text on paper) */
  --ink:          #0a1628;
  --ink-2:        #3a4558;
  --ink-3:        #6a7485;
  --ink-4:        #9aa2b0;

  /* Cream (text on navy) */
  --cream:        #f2ebda;
  --cream-2:      rgba(242, 235, 218, 0.72);
  --cream-3:      rgba(242, 235, 218, 0.45);
  --cream-4:      rgba(242, 235, 218, 0.22);

  /* Accents */
  --gold:         #b8925a;
  --gold-soft:    rgba(184, 146, 90, 0.12);
  --gold-mid:     rgba(184, 146, 90, 0.35);
  --oxblood:      #8b2332;
  --signal:       #c97c3f;

  /* Rules */
  --rule-paper:   #c8c0ac;
  --rule-navy:    rgba(242, 235, 218, 0.12);

  /* Ticker semaphore */
  --tick-up:      #7fa87a;
  --tick-dn:      #b4645e;

  /* Typography */
  --sans:      "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif:     "Fraunces", "Iowan Old Style", "Georgia", serif;
  --display:   "Instrument Serif", "Fraunces", "Georgia", serif;
  --mono:      "JetBrains Mono", ui-monospace, "SF Mono", "Menlo", monospace;

  /* Layout */
  --masthead-h:  40px;
  --sidebar-w:   240px;
  --max-w:       1400px;
  --col-gap:     1.5rem;

  /* Motion */
  --ease:         cubic-bezier(.22, .61, .36, 1);
  --ease-in-out:  cubic-bezier(.65, .05, .36, 1);
}


/* ─── 02 · RESET ────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--masthead-h) + 24px);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--cream);
  background: var(--navy-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
ol, ul { list-style: none; }

button {
  font: inherit; color: inherit;
  background: none; border: none;
  cursor: pointer; text-align: left;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--navy-deep); }


/* ─── 03 · TYPOGRAPHY PRIMITIVES ────────────────────────────────────── */
.dateline {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75em;
  letter-spacing: 0.18em;
}
.dateline__sep { opacity: 0.5; }
.dateline__rule {
  display: inline-block;
  width: 160px;
  height: 1px;
  background: var(--signal);
  margin-left: 0.25em;
}

em { font-style: italic; }
.chapter--navy em, .chapter--navy-deep em { color: var(--gold); }


/* ─── 04 · MASTHEAD ─────────────────────────────────────────────────── */
.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--masthead-h);
  background: var(--navy-deep);
  color: var(--cream);
  border-bottom: 1px solid var(--rule-navy);
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}

body.is-paper .masthead {
  background: var(--paper);
  color: var(--ink);
  border-bottom-color: var(--rule-paper);
}

.masthead__inner {
  height: 100%;
  padding: 0 1.75rem 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.masthead__left { display: flex; align-items: center; gap: 0.85em; color: var(--cream-2); }
body.is-paper .masthead__left { color: var(--ink-2); }
.masthead__vol { color: var(--cream); font-weight: 500; }
body.is-paper .masthead__vol { color: var(--ink); }
.masthead__star { color: var(--gold); font-size: 0.85em; }
.masthead__disc { color: var(--cream-3); }
body.is-paper .masthead__disc { color: var(--ink-3); }
.masthead__sep { color: var(--cream-4); }
body.is-paper .masthead__sep { color: var(--ink-4); }

@media (max-width: 860px) {
  .masthead__disc, .masthead__sep:last-of-type, .masthead__star { display: none; }
}
@media (max-width: 600px) {
  .masthead__city, .masthead__sep { display: none; }
  .masthead__inner { padding: 0 1rem; font-size: 0.6rem; }
}

/* Ticker */
.ticker {
  position: relative;
  width: 240px;
  height: 20px;
  overflow: hidden;
}
.ticker-item {
  position: absolute;
  inset: 0;
  display: flex; align-items: center;
  gap: 0.7em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  white-space: nowrap;
  color: var(--cream-2);
  font-weight: 500;
}
body.is-paper .ticker-item { color: var(--ink-2); }
.ticker-item.is-active { opacity: 1; transform: translateY(0); }

.ticker-label { color: var(--gold); }
.ticker-val   { color: var(--cream); font-weight: 500; }
body.is-paper .ticker-val { color: var(--ink); }

.ticker-arrow--up   { color: var(--tick-up); }
.ticker-arrow--down { color: var(--tick-dn); }

@media (max-width: 600px) {
  .ticker { width: 160px; }
}

/* Reading progress */
.progress {
  position: absolute;
  bottom: -1px; left: 0;
  height: 1px;
  background: var(--signal);
  width: 0%;
  transition: width 0.12s linear;
}


/* ─── 05 · SIDEBAR ──────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: var(--masthead-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  z-index: 40;
  background: transparent;
  border-right: 1px solid var(--rule-navy);
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease);
}
body.is-paper .sidebar {
  border-right-color: var(--rule-paper);
}

.sidebar__inner {
  padding: 2.25rem 1.5rem 1.5rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar__mark {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  margin-bottom: 0.5rem;
}
.sidebar__mark-letter {
  font-family: var(--display);
  font-style: italic;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--gold);
}
.sidebar__mark-rule {
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.45;
}
.sidebar__mark-sub {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-3);
}
body.is-paper .sidebar__mark-sub { color: var(--ink-3); }

/* chapters */
.sidebar__nav { flex: 1; min-height: 0; overflow-y: auto; }
.sidebar__nav::-webkit-scrollbar { width: 0; background: transparent; }

.chapters { display: flex; flex-direction: column; }

.chapters li { position: relative; }
.chapters a {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.55rem 0 0.55rem 0.35rem;
  color: var(--cream-3);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease), padding-left 0.3s var(--ease);
  border-left: 2px solid transparent;
}
body.is-paper .chapters a { color: var(--ink-3); }

.chapters a:hover { color: var(--cream); }
body.is-paper .chapters a:hover { color: var(--ink); }

.chapters__num {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: inherit;
  opacity: 0.65;
}
.chapters__name {
  font-family: var(--display);
  font-size: 0.96rem;
  font-style: italic;
  font-weight: 400;
}

.chapters li.is-active a {
  color: var(--gold);
  border-left-color: var(--gold);
  padding-left: 0.8rem;
}
.chapters li.is-active .chapters__num { opacity: 1; }

.sidebar__foot {
  display: flex;
  gap: 0.9rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-navy);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--cream-3);
}
body.is-paper .sidebar__foot { border-top-color: var(--rule-paper); color: var(--ink-3); }
.sidebar__link { transition: color 0.25s var(--ease); }
.sidebar__link:hover { color: var(--gold); }


/* ─── 06 · DRAWER TOGGLE (mobile) ───────────────────────────────────── */
.drawer-toggle {
  position: fixed;
  top: calc(var(--masthead-h) + 10px);
  left: 1rem;
  z-index: 60;
  width: 38px; height: 38px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: var(--navy-mid);
  border: 1px solid var(--rule-navy);
  border-radius: 2px;
  transition: background 0.25s var(--ease);
}
.drawer-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--cream);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
body.is-paper .drawer-toggle {
  background: var(--paper-2);
  border-color: var(--rule-paper);
}
body.is-paper .drawer-toggle span { background: var(--ink); }

.drawer-toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.drawer-toggle.is-active span:nth-child(2) { opacity: 0; }
.drawer-toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ─── 07 · MAIN SHELL ───────────────────────────────────────────────── */
.main {
  margin-left: var(--sidebar-w);
  padding-top: var(--masthead-h);
  position: relative;
}

.chapter {
  position: relative;
  padding: 6.5rem clamp(2rem, 4vw, 4rem) 7rem;
  min-height: 60vh;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
.chapter--hero  { padding: 3rem clamp(2rem, 4vw, 4rem) 4rem; min-height: calc(100vh - var(--masthead-h)); }
.chapter--final { padding-bottom: 5rem; }

.chapter--navy,
.chapter--navy-deep { background: var(--navy);       color: var(--cream); }
.chapter--navy-deep { background: var(--navy-deep); }
.chapter--paper     { background: var(--paper);     color: var(--ink); }

/* 12-column grid ·········································· */
.chapter__inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap);
  row-gap: 2.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

/* chapter__row — nested 12-col grid for intro + marginalia pairs */
.chapter__row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap);
  row-gap: 1.5rem;
  align-items: start;
}


/* ─── 08 · CHAPTER HEADER ───────────────────────────────────────────── */
.chapter-head {
  grid-column: 1 / 11;
  display: grid;
  grid-template-columns: 100px 1fr;
  column-gap: var(--col-gap);
  align-items: start;
  padding-top: 0.5rem;
}

.chapter-head__numeral {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(4rem, 7vw, 6.5rem);
  line-height: 0.9;
  color: var(--gold);
  opacity: 0.92;
  user-select: none;
  grid-column: 1;
}

.chapter-head__text { grid-column: 2; padding-top: 0.6rem; }

.chapter-head__title {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-top: 0.55rem;
}
.chapter-head__title em { font-style: italic; color: var(--gold); }

/* Chapter intro · narrative prose, cols 1-7 */
.chapter-intro {
  grid-column: 1 / 8;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.62;
  font-weight: 400;
  max-width: 62ch;
}
.chapter--navy .chapter-intro,
.chapter--navy-deep .chapter-intro { color: var(--cream-2); }
.chapter--paper .chapter-intro     { color: var(--ink-2); }

/* When inside chapter__row, let the row own the column placement */
.chapter__row .chapter-intro { grid-column: 1 / 8; }

.chapter-intro--dropcap { overflow: visible; }
.dropcap {
  float: left;
  font-family: var(--display);
  font-style: italic;
  color: var(--gold);
  font-size: 4.5rem;
  line-height: 0.85;
  padding: 0.45rem 0.55rem 0 0;
  margin-top: 0.05em;
}


/* ─── 09 · MARGINALIA ───────────────────────────────────────────────── */
.marginalia {
  grid-column: 9 / 13;
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.55;
  border-left: 1px solid var(--gold-mid);
  padding: 0.1rem 0 0.1rem 1rem;
  margin-top: 0.35rem;
  align-self: start;
}

.marginalia__label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.marginalia__body { color: var(--ink-2); }
.chapter--navy .marginalia__body,
.chapter--navy-deep .marginalia__body { color: var(--cream-2); }

/* Stats-variant (research) */
.marginalia__stats { display: flex; flex-direction: column; gap: 0.45rem; }
.marginalia__stats > div {
  display: grid;
  grid-template-columns: 2rem 1fr;
  column-gap: 0.75rem;
  align-items: baseline;
}
.marginalia__stats dt {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
}
.marginalia__stats dd {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--cream-3);
  text-transform: uppercase;
}
.chapter--paper .marginalia__stats dd { color: var(--ink-3); }

/* Key-value variant (invitation) */
.marginalia__kv { display: flex; flex-direction: column; gap: 0.6rem; }
.marginalia__kv > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed var(--gold-mid);
}
.marginalia__kv > div:last-child { border-bottom: none; }
.marginalia__kv dt {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}
.marginalia__kv dd {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--cream);
}


/* ─── 10 · ASTERISM DIVIDERS ────────────────────────────────────────── */
.asterism {
  text-align: center;
  font-family: var(--display);
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.9em;
  padding: 3rem 0;
  background: var(--paper);
}
.asterism--navy-paper { background: var(--paper); }


/* ─── 11 · CHAPTER I · OPENING / HERO ───────────────────────────────────
   Reverted to iteration-01 layout: name left, portrait right,
   SVG curve behind name (shifted DOWN so x-axis ticks clear the letters).
─────────────────────────────────────────────────────────────────────── */

/* Override the 12-col chapter__inner grid just for the hero */
.chapter__inner.hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-template-rows: auto 1fr auto;
  column-gap: 3.5rem;
  row-gap: 0;
  align-items: start;
  position: relative;
  min-height: calc(100vh - var(--masthead-h) - 7rem);
  max-width: var(--max-w);
}

/* SVG curve — absolute, behind everything; shifted DOWN to clear the name.
   Fix 2 · Option A: top pushed down + loaded opacity 0.55 + faint labels. */
.hero__curve {
  position: absolute;
  top: 11rem;                 /* was ~6.5rem; +72px so ticks sit below name */
  left: 0;
  width: min(780px, 100%);
  max-width: 780px;
  height: auto;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.hero.is-loaded .hero__curve { opacity: 0.55; transform: translateY(0); }

/* Curve labels — faint, 10px, cream-3. Peak in gold as exception. */
.curve-grid line {
  stroke: var(--cream-4);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}
.curve-axis text {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--cream-3);
  letter-spacing: 0.1em;
}
.curve-ticks line { stroke: var(--cream-3); stroke-width: 1; opacity: 0.5; }
.curve-ticks text {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--cream-3);
  letter-spacing: 0.14em;
}

.curve-observed {
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 2.5s var(--ease);
}
.hero.is-loaded .curve-observed { stroke-dashoffset: 0; }

.curve-forecast {
  stroke: var(--oxblood);
  stroke-width: 1.4;
  stroke-dasharray: 4 4;
  opacity: 0;
  transition: opacity 0.6s var(--ease) 2.1s;
}
.hero.is-loaded .curve-forecast { opacity: 0.9; }

.curve-band {
  opacity: 0;
  transition: opacity 0.6s var(--ease) 2.1s;
}
.hero.is-loaded .curve-band { opacity: 1; }

/* Peak marker — label removed in iteration 04, only a tiny dot remains */
.curve-peak {
  opacity: 0;
  transition: opacity 0.6s var(--ease) 1.8s;
}
.hero.is-loaded .curve-peak { opacity: 1; }
.curve-peak circle { fill: var(--gold); }

.curve-forecast-label {
  opacity: 0;
  transition: opacity 0.6s var(--ease) 2.6s;
}
.hero.is-loaded .curve-forecast-label { opacity: 1; }
.curve-forecast-label text {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--cream-3);
  letter-spacing: 0.14em;
  text-anchor: end;
}

/* ─── 11A · BODY (left column) ──────────────────────────────────────── */
.hero__body {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  z-index: 2;
  position: relative;
  padding-top: 1.5rem;
  max-width: 680px;
}

.dateline--hero { margin-bottom: 2rem; display: inline-flex; }

.hero__name {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-size: clamp(4rem, 11vw, 9.5rem);
  color: var(--cream);
  margin-bottom: 1.6rem;
  display: block;
}
.hero__name-first { display: block; }
.hero__name-last  { display: block; }
.hero__name-last em { font-style: italic; color: var(--gold); }

.hero__thesis {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.4;
  color: var(--cream);
  max-width: 620px;
  margin-bottom: 2.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--gold-mid);
}
.hero__thesis .qm { color: var(--gold); font-style: normal; padding: 0 0.05em; }

/* Meta · 2×2 grid (iteration-01 layout) */
.hero__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2rem;
  row-gap: 1rem;
  max-width: 640px;
}
.hero__meta > div {
  padding-top: 0.7rem;
  border-top: 1px solid var(--gold-mid);
}
.hero__meta dt {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.hero__meta dd {
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--cream-2);
}

/* ─── 11A-bis · HERO BIO NOTE ───────────────────────────────────────── */
.hero__bio {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--gold-mid);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--cream-2);
  max-width: 620px;
  letter-spacing: -0.003em;
}
.hero__bio em {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0;
}

/* ─── 11B · PORTRAIT (right column) ─────────────────────────────────── */
/* Fix 1: photo shown natural — no grayscale/sepia/contrast beyond 1.02.
   Kept: 1px gold border + offset frame (the cuadrito desplazado). */
.hero__portrait {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  z-index: 2;
  position: relative;
  align-self: start;
  margin-top: 4rem;
  width: 280px;
  justify-self: end;
}
.hero__portrait-caption {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  text-align: right;
}
.hero__portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
}
/* Offset frame — kept from iteration 01 */
.hero__portrait-frame::before {
  content: "";
  position: absolute;
  inset: 10px -10px -10px 10px;
  border: 1px solid var(--gold-mid);
  z-index: 0;
}
.hero__portrait-frame img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 15%;
  /* natural colors · fix 1 */
  filter: contrast(1.02);
}

/* Research interests — compact list below the portrait */
.hero__interests {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gold-mid);
}
.hero__interests-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  text-align: right;
}
.hero__interests ul {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.hero__interests li {
  font-family: var(--serif);
  font-variation-settings: "opsz" 14, "SOFT" 40;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--cream-2);
  letter-spacing: 0;
  text-align: right;
  padding-right: 0.15rem;
}
.hero__interests li::before {
  content: "— ";
  color: var(--gold);
  margin-right: 0.25em;
}
.hero__interests-rule {
  height: 1px;
  background: var(--cream-4);
  margin: 0.4rem 0 0.4rem auto;
  width: 80px;
}
.hero__interests-rule::before { content: none; }

/* ─── 11C · SCROLL INDICATOR ────────────────────────────────────────── */
.hero__scroll {
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: end;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  padding-top: 2rem;
  margin-top: 2rem;
}
.hero__scroll-line {
  position: relative;
  width: 1px; height: 40px;
  background: var(--gold-mid);
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(-100%);
  animation: scroll-pulse 1.8s infinite var(--ease);
}
@keyframes scroll-pulse {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}


/* ─── 12 · CHAPTER II · THE METHOD · PILLARS ────────────────────────── */
.pillars {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.pillar {
  position: relative;
  padding: 1.75rem 1.6rem 1.4rem;
  background: var(--paper-2);
  border: 1px solid var(--rule-paper);
  border-bottom: 3px solid transparent;
  transition: transform 0.35s var(--ease), border-bottom-color 0.35s var(--ease), background 0.35s var(--ease);
}
.pillar:hover {
  transform: translateY(-3px);
  border-bottom-color: var(--gold);
  background: var(--paper);
}

.pillar__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.pillar__letter {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--gold);
}
.pillar__icon {
  width: 44px; height: 44px;
  stroke: var(--ink-3);
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
  transition: transform 0.5s var(--ease), stroke 0.35s var(--ease);
}
.pillar__icon circle { fill: var(--ink-3); stroke: none; }
.pillar:hover .pillar__icon { transform: rotate(15deg); stroke: var(--gold); }
.pillar:hover .pillar__icon circle { fill: var(--gold); }

.pillar__name {
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 0.55rem;
  font-weight: 400;
}

.pillar__body {
  font-family: var(--sans);
  font-size: 0.9375rem;       /* 15px */
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 1rem;
}

.pillar__tags {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule-paper);
}


/* ─── 13 · CHAPTER III · THE WORK · PAPERS ──────────────────────────── */
.papers {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
}

.paper {
  border-top: 1px solid var(--rule-navy);
}
.paper:last-child { border-bottom: 1px solid var(--rule-navy); }

.paper__row {
  width: 100%;
  display: block;
  padding: 2rem 0 2.25rem;
  position: relative;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}
.paper__row:hover { background: rgba(242, 235, 218, 0.02); padding-left: 0.5rem; }
.paper__row:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.paper__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.paper__num {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--cream-3);
  text-transform: uppercase;
}

.paper__status {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  padding: 0.3em 0.7em;
  border: 1px solid;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.paper__status--review    { color: var(--oxblood); border-color: var(--oxblood); background: rgba(139, 35, 50, 0.08); }
.paper__status--prep      { color: var(--gold);    border-color: var(--gold);    background: var(--gold-soft); }
.paper__status--progress  { color: var(--signal);  border-color: var(--signal);  background: rgba(201, 124, 63, 0.08); }
.paper__status--published { color: var(--cream);   border-color: var(--cream-3); background: transparent; }
.paper__status--working   { color: var(--cream-3); border-color: var(--cream-4); background: transparent; }

.pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(139, 35, 50, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(139, 35, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 35, 50, 0); }
}

.paper__title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.18;
  color: var(--cream);
  margin-bottom: 0.35rem;
  font-weight: 400;
  max-width: 42ch;
}
.paper__row:hover .paper__title { color: var(--gold); }

.paper__subtitle {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--cream-2);
  margin-bottom: 0.75rem;
  max-width: 50ch;
}

.paper__venue {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--cream-3);
  margin-bottom: 1rem;
}
.paper__venue em { color: var(--cream); font-style: italic; }

/* Abstracts stay in Fraunces — genuine academic voice */
.paper__peek {
  font-family: var(--serif);
  font-variation-settings: "opsz" 18, "SOFT" 40;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--cream-2);
  max-width: 60ch;
  margin-bottom: 1rem;
  letter-spacing: 0;
}

.paper__tags {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.paper__action {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--signal);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.paper__row:hover .paper__action { color: var(--gold); transform: translateX(4px); }


/* ─── 14 · PAPER SIDE PANEL ─────────────────────────────────────────── */
.panel-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 22, 40, 0.55);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.panel-overlay.is-open { opacity: 1; visibility: visible; }

.panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(520px, 92vw);
  z-index: 110;
  background: var(--navy-mid);
  color: var(--cream);
  border-left: 1px solid var(--gold-mid);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-in-out);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.panel.is-open { transform: translateX(0); }

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid var(--rule-navy);
}
.panel__num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.panel__close {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--cream-2);
  transition: color 0.25s var(--ease);
}
.panel__close:hover { color: var(--gold); }

.panel__body { padding: 1.75rem; overflow-y: auto; }

.panel__status {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  padding: 0.3em 0.7em;
  border: 1px solid currentColor;
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--oxblood);
}
.panel__status[data-class="prep"]      { color: var(--gold); }
.panel__status[data-class="progress"]  { color: var(--signal); }
.panel__status[data-class="published"] { color: var(--cream);   border-color: var(--cream-3); }
.panel__status[data-class="working"]   { color: var(--cream-3); border-color: var(--cream-4); }

.panel__title {
  font-family: var(--display);
  font-size: 1.85rem;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 0.4rem;
  font-weight: 400;
}
.panel__subtitle {
  font-family: var(--display);
  font-style: italic;
  font-size: 1rem;
  color: var(--cream-2);
  margin-bottom: 1rem;
  line-height: 1.35;
}
.panel__subtitle:empty { display: none; }

.panel__venue {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--cream-3);
  margin-bottom: 1.5rem;
}

.panel__rule { height: 1px; background: var(--gold-mid); margin: 1rem 0 1.5rem; }

.panel__abstract-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.65rem;
}
/* panel abstract stays in Fraunces (it's an academic abstract) */
.panel__abstract {
  font-family: var(--serif);
  font-variation-settings: "opsz" 18;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--cream-2);
  margin-bottom: 1.75rem;
  letter-spacing: 0;
}
.panel__tags {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-navy);
}
.panel__link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid currentColor;
  transition: background 0.2s ease, color 0.2s ease;
}
.panel__link:hover {
  background: var(--ink);
  color: var(--paper);
}


/* ─── 15 · CHAPTER IV · THE VOICE ───────────────────────────────────── */
.essays {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.essay-card {
  background: var(--paper-2);
  border: 1px solid var(--rule-paper);
  padding: 1.75rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.essay-card:hover {
  transform: translateY(-3px);
  background: var(--paper);
  box-shadow: 0 20px 45px rgba(10, 22, 40, 0.08);
}

.essay-card__meta {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.essay-card__title {
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 400;
  color: var(--ink);
}
.essay-card__title em { color: var(--gold); font-style: italic; }

.essay-card__excerpt {
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-2);
  flex: 1;
}

.essay-card__stats {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.essay-card__tags {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.essay-card__link {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  padding-top: 0.65rem;
  border-top: 1px solid var(--rule-paper);
  transition: letter-spacing 0.3s var(--ease);
}
.essay-card:hover .essay-card__link { letter-spacing: 0.22em; }

.voice__cta {
  grid-column: 1 / 10;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-paper);
}
.voice__cta a {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  position: relative;
  padding: 0.3em 0;
}
.voice__cta a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.voice__cta a:hover::after { transform: scaleX(1); }


/* ─── 16 · CHAPTER V · THE CRAFT · PROJECTS ─────────────────────────── */
.projects {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.project {
  position: relative;
  background: var(--navy-mid);
  border: 1px solid var(--rule-navy);
  padding: 1.85rem 1.75rem 1.65rem;
  border-bottom: 3px solid transparent;
  transition: transform 0.3s var(--ease), border-bottom-color 0.3s var(--ease), background 0.3s var(--ease);
}
.project:hover {
  transform: translateY(-3px);
  border-bottom-color: var(--gold);
  background: var(--navy-tint);
}

.project__no {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.project__title {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--cream);
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.project__tags {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--cream-3);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule-navy);
}
.project__body {
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.58;
  color: var(--cream-2);
}
.project__link {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.project__link:hover {
  text-decoration-thickness: 2px;
}


/* ─── 17 · CHAPTER VI · THE PATH ────────────────────────────────────── */
.path-block {
  grid-column: 1 / -1;
  margin-bottom: 2.5rem;
}
.path-block:last-child { margin-bottom: 0; }

.path-block__label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule-paper);
}

/* Experience sub-row: trajectory + marginalia */
.path-block__inner { grid-column: 1 / 11; }
.marginalia--path { grid-column: 11 / 13; }

.trajectory {
  position: relative;
  padding-left: 2rem;
}
.trajectory::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), var(--rule-paper));
}
.trajectory__entry {
  position: relative;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule-paper);
}
.trajectory__entry:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.trajectory__entry::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-3.5px);
  box-shadow: 0 0 0 3px var(--paper);
}

.trajectory__date {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.trajectory__role {
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.15;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 0.2rem;
}
.trajectory__org {
  font-family: var(--sans);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--ink-2);
  margin-bottom: 0.85rem;
}
.trajectory__body {
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}

/* VI.B · Formation */
.formation {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.formation__item {
  padding: 1.25rem 1.5rem;
  background: var(--paper-2);
  border: 1px solid var(--rule-paper);
  border-left: 3px solid var(--gold);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 1.5rem;
  align-items: baseline;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.formation__item:hover { transform: translateX(2px); background: var(--paper); }
.formation__degree {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.2;
  grid-column: 1;
}
.formation__org {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  grid-column: 1;
}
.formation__meta {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  white-space: nowrap;
  text-transform: uppercase;
}
.formation__meta em { color: var(--gold); font-style: italic; text-transform: none; letter-spacing: 0.05em; }

/* VI.C · Credentials */
.credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.credential-item {
  padding: 1.35rem 1.5rem 1.1rem;
  background: var(--paper-2);
  border: 1px solid var(--rule-paper);
  border-top: 2px solid var(--gold);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.credential-item:hover { transform: translateY(-2px); background: var(--paper); }

.credential-item__label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.credential-item__name {
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--ink);
  font-weight: 400;
}
.credential-item__org {
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--ink-3);
  letter-spacing: 0;
  text-transform: none;
}
.credential-item__status {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--rule-paper);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.credential-item__status--done   { color: var(--ink-3); }
.credential-item__status--active { color: var(--gold); font-weight: 500; }


/* ─── 18 · CHAPTER VII · THE EYE · PLATES ───────────────────────────── */
.plates {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.plate {
  background: var(--navy-mid);
  border: 1px solid var(--rule-navy);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.plate:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
}

.plate__link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy);
}
.plate__link img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.plate:hover .plate__link img { transform: scale(1.04); }

.plate__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1rem;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.75), transparent 60%);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.plate:hover .plate__overlay { opacity: 1; }

.plate__cap { padding: 1.25rem 1.4rem 1.35rem; }
.plate__no {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.plate__title {
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 0.4rem;
  font-weight: 400;
}
.plate__method {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--signal);
  margin-bottom: 0.55rem;
}
.plate__desc {
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--cream-2);
}


/* ─── 19 · CHAPTER VIII · THE CHRONICLE ─────────────────────────────── */
.chronicle {
  grid-column: 1 / 11;
  display: flex;
  flex-direction: column;
}
.chronicle__item {
  display: grid;
  grid-template-columns: 120px 1px 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule-paper);
  align-items: start;
}
.chronicle__item:last-child { border-bottom: 1px solid var(--rule-paper); }

.chronicle__date {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  padding-top: 0.15rem;
  grid-column: 1;
}
.chronicle__item::before {
  content: "";
  display: block;
  width: 1px;
  background: var(--gold);
  opacity: 0.45;
  align-self: stretch;
  grid-column: 2;
}
.chronicle__body {
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--ink-2);
  grid-column: 3;
}
.chronicle__body a {
  color: var(--ink);
  border-bottom: 1px solid var(--gold-mid);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.chronicle__body a:hover { color: var(--gold); border-color: var(--gold); }


/* ─── 20 · CHAPTER IX · THE INVITATION ──────────────────────────────── */
.invitation-quote {
  grid-column: 1 / 9;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.75rem, 3.3vw, 2.65rem);
  line-height: 1.3;
  color: var(--cream);
  max-width: 680px;
  padding-left: 1.5rem;
  border-left: 1px solid var(--gold-mid);
}

.marginalia--contact { grid-column: 10 / 13; }

.contacts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-top: 2rem;
}

.contact-card {
  padding: 1.5rem 1.25rem;
  background: var(--navy-mid);
  border: 1px solid var(--rule-navy);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact-card:hover {
  transform: translateY(-2px);
  background: var(--navy-tint);
  border-color: var(--gold-mid);
}
.contact-card__label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.contact-card__value {
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--cream);
}
.contact-card__arrow {
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: var(--mono);
  color: var(--cream-3);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.contact-card:hover .contact-card__arrow {
  color: var(--gold);
  transform: translate(2px, -2px);
}

.invitation-cta {
  grid-column: 1 / 10;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-navy);
  margin-top: 0.5rem;
}
.invitation-cta a {
  font-family: var(--mono);
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
}
.invitation-cta__arrow { display: inline-block; transition: transform 0.35s var(--ease); }
.invitation-cta a:hover .invitation-cta__arrow { transform: translateX(8px); }


/* ─── 21 · COLOPHON ─────────────────────────────────────────────────── */
.colophon {
  background: #07101c;
  color: var(--cream-3);
  padding: 1.75rem clamp(2rem, 4vw, 4rem);
  border-top: 1px solid var(--rule-navy);
}
.colophon__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}
.colophon__note em {
  font-family: var(--display);
  font-style: italic;
  color: var(--cream-2);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.colophon__nav { display: flex; gap: 1.25rem; }
.colophon__nav a { transition: color 0.25s var(--ease); }
.colophon__nav a:hover { color: var(--gold); }


/* ─── 22 · REVEALS ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 1ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }


/* ─── 23 · RESPONSIVE ───────────────────────────────────────────────── */

/* ≤ 1200px — tighten sidebar, keep 12-col grid */
@media (max-width: 1200px) {
  :root { --sidebar-w: 210px; --col-gap: 1.25rem; }
  .chapter-head { grid-template-columns: 84px 1fr; }
}

/* ≤ 1024px — collapse to 6-col logical */
@media (max-width: 1024px) {
  .chapter-intro,
  .chapter__row .chapter-intro { grid-column: 1 / 9; }
  .marginalia                   { grid-column: 9 / 13; font-size: 0.82rem; }
  .chronicle                    { grid-column: 1 / -1; }
  .path-block__inner            { grid-column: 1 / 13; }
  .marginalia--path             { grid-column: 1 / 13; margin-top: 1.5rem; }
  .marginalia--contact          { grid-column: 1 / -1; margin-top: 1.5rem; }
  .invitation-quote             { grid-column: 1 / -1; }

  .chapter__inner.hero {
    grid-template-columns: 1fr 240px;
    column-gap: 2.5rem;
  }
  .hero__curve { top: 9rem; }
  .hero__portrait { width: 240px; margin-top: 3.5rem; }
}

/* ≤ 960px — drawer + single-column grids */
@media (max-width: 960px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease);
    background: var(--navy-deep);
    border-right: 1px solid var(--rule-navy);
  }
  body.is-paper .sidebar { background: var(--paper); }
  .sidebar.is-open { transform: translateX(0); box-shadow: 0 0 60px rgba(0,0,0,0.3); }
  .drawer-toggle { display: flex; }
  .main { margin-left: 0; }

  .chapter { padding: 5rem 2rem 5.5rem; }
  .chapter--hero { padding: 2.5rem 2rem 3rem; }
  .colophon { padding: 1.75rem 2rem; }

  /* header becomes stacked */
  .chapter-head {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    row-gap: 0.35rem;
  }
  .chapter-head__numeral { font-size: 3.75rem; }
  .chapter-head__text    { padding-top: 0; }

  /* stack intro + marginalia */
  .chapter-intro,
  .chapter__row .chapter-intro,
  .marginalia,
  .voice__cta,
  .invitation-quote,
  .invitation-cta { grid-column: 1 / -1; }
  .marginalia { margin-top: 1.25rem; }

  /* Hero: stack portrait below body */
  .chapter__inner.hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 0;
    row-gap: 2rem;
    min-height: auto;
  }
  .hero__body     { grid-column: 1; grid-row: 1; }
  .hero__portrait {
    grid-column: 1; grid-row: 2;
    width: 100%;
    max-width: 420px;
    justify-self: start;
    margin-top: 0.5rem;
  }
  .hero__portrait-frame { max-width: 240px; }
  .hero__portrait-caption { text-align: left; }
  .hero__curve { top: 8rem; opacity: 0.35; }
  .hero.is-loaded .hero__curve { opacity: 0.35; }
  .hero__meta { grid-template-columns: repeat(2, 1fr); }
  .hero__scroll { display: none; }

  /* Interests list: left-align on mobile */
  .hero__interests-label,
  .hero__interests li { text-align: left; }
  .hero__interests-rule { margin-left: 0; }

  .pillars   { grid-template-columns: 1fr; }
  .projects  { grid-template-columns: 1fr; }
  .essays    { grid-template-columns: 1fr; }
  .plates    { grid-template-columns: 1fr; }
  .contacts  { grid-template-columns: repeat(2, 1fr); }
  .credentials { grid-template-columns: 1fr; }
}

/* ≤ 720px */
@media (max-width: 720px) {
  .chapter { padding: 4.5rem 1.5rem 4.75rem; }
  .chapter--hero { padding: 2rem 1.5rem 3rem; }
  .colophon { padding: 1.5rem; }

  .hero__name { font-size: clamp(3rem, 14vw, 5.5rem); }
  .hero__thesis { font-size: 1.1rem; padding-left: 0.85rem; }
  .hero__portrait-frame { max-width: 200px; }
  .hero__meta { grid-template-columns: 1fr; }
  .hero__bio { font-size: 0.9rem; }

  .chronicle__item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.2rem 0;
  }
  .chronicle__item::before { display: none; }

  .paper__head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  .formation__item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .formation__meta { grid-column: 1; grid-row: auto; }

  .panel { width: 100vw; border-left: none; }
}

/* ≤ 480px */
@media (max-width: 480px) {
  :root { --masthead-h: 36px; }
  .chapter { padding: 4rem 1.15rem 4rem; }
  .chapter--hero { padding: 1.75rem 1.15rem 2.5rem; }
  .asterism { padding: 2rem 0; font-size: 0.95rem; letter-spacing: 0.7em; }

  .contacts { grid-template-columns: 1fr; }
  .invitation-quote { font-size: 1.45rem; padding-left: 1rem; }
  .invitation-cta a { font-size: 0.95rem; }

  .hero__portrait-frame { max-width: 170px; }
  .hero__portrait-frame::before { inset: 7px -7px -7px 7px; }

  .chapter-head__numeral { font-size: 3rem; }
  .chapter-head__title { font-size: 2rem; }
}


/* ─── 24 · REDUCED MOTION ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero.is-loaded .curve-observed { stroke-dashoffset: 0 !important; }
  .hero.is-loaded .hero__curve,
  .hero.is-loaded .curve-forecast,
  .hero.is-loaded .curve-band,
  .hero.is-loaded .curve-peak,
  .hero.is-loaded .curve-forecast-label { opacity: 1 !important; transform: none !important; }
  .hero.is-loaded .hero__curve { opacity: 0.55 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .pulse { animation: none; }
  .hero__scroll-line::after { animation: none; }
}


/* ─── 25 · FOCUS STATES ─────────────────────────────────────────────── */
a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}
.chapters a:focus-visible { outline-offset: 2px; }
