/* ==========================================================================
   Sina Manavi — "The Record"
   Concept: the site is a canonical professional record. A navy masthead,
   an editorial serif with a true italic for voice, and a typewriter-style mono
   for the record's metadata (ISBNs, DOIs, dates, counts). One restrained brass
   accent marks what matters most: books, awards, today.
   Layout: wide editorial grid; masthead zone in navy, reading zone on cool paper.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-var.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-italic-var.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Colour */
  --navy: #0a1729;          /* masthead */
  --navy-2: #10233d;        /* deep bands */
  --navy-3: #1b3557;        /* plates, hovers */
  --paper: #f6f4ef;         /* warm white reading ground */
  --white: #ffffff;
  --ink: #141a24;
  --ink-soft: #424a57;
  --ink-muted: #646d7d;   /* 4.75:1 on paper: WCAG 2.2 AA */
  --blue: #2a5a8c;          /* links, quiet accent */
  --sky: #a9c3e2;           /* accent on navy */
  --teal: #3fd8c9;          /* signature accent on dark */
  --teal-ink: #0e7a73;      /* teal for text/lines on light (4.7:1 on paper: WCAG AA for small text) */
  --electric: #5b8dff;      /* secondary accent for graphics */
  --brass: var(--teal);     /* legacy alias */
  --line: #e4e0d8;
  --line-strong: #cbc5ba;
  --line-dark: rgba(255, 255, 255, 0.13);
  --on-dark: #e7ebf1;
  --on-dark-soft: rgba(231, 235, 241, 0.72);

  /* Type */
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.28rem + 0.8vw, 1.95rem);
  --step-3: clamp(1.95rem, 1.6rem + 1.5vw, 2.9rem);
  --step-4: clamp(2.6rem, 1.9rem + 3vw, 4.4rem);
  --step-5: clamp(3.4rem, 1.8rem + 7.2vw, 8.4rem);
  /* Type system: three families (serif display, sans text, mono labels), one scale.
     Every font-size in this file uses one of these tokens. Weights: 300, 400, 500. */
  --text-xs: 0.75rem;                                   /* mono labels, kickers, meta */
  --text-sm: 0.9375rem;                                 /* secondary text, buttons, notes */
  --display: clamp(2.8rem, 1.6rem + 4.6vw, 6rem);      /* page titles (h1) */
  --display-xl: clamp(3.8rem, 1.6rem + 8vw, 9.5rem);   /* home name only */
  --display-num: clamp(4rem, 2.5rem + 5vw, 7.5rem);    /* oversized italic numerals */
  --track-label: 0.12em;                                /* letter-spacing for uppercase mono labels */

  /* Layout */
  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --section: clamp(4.25rem, 9vw, 7.5rem);
  --radius: 2px;
  --header-h: 4.5rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  color: var(--navy);
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1 { font-size: var(--step-4); letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 500; line-height: 1.28; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 300; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
cite { font-style: italic; }
abbr[title] { text-decoration: none; cursor: help; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: #c9f1ec; color: var(--navy); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.75rem 1.1rem; background: var(--white); color: var(--navy); font-weight: 500; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }
.muted { color: var(--ink-muted); }
.lede { font-size: var(--step-1); color: var(--ink-soft); }

/* Kicker: the record's metadata voice */
.kicker, .eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1.1rem;
  line-height: 1.4;
}
.kicker--muted { color: var(--ink-muted); }
.kicker--light, .hero .kicker, .page-hero .eyebrow, .section--deep .kicker, .section--deep .eyebrow { color: var(--sky); }
.hero .kicker--muted { color: var(--on-dark-soft); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(44rem + 2 * var(--gutter)); }
.section { padding-block: var(--section); }
.section--white { background: var(--white); }
.section--deep, .section--dark { background: var(--navy-2); color: var(--on-dark); }
.section--deep h2, .section--deep h3, .section--dark h2 { color: var(--white); }
.section--deep a:not(.btn), .section--dark a:not(.btn) { color: var(--sky); }
.section--deep a:not(.btn):hover { color: var(--white); }

.section-label {
  font-family: var(--mono); font-size: var(--text-xs); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--ink-muted); padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head { display: grid; gap: 1rem 4rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head h2 { margin: 0; max-width: 17ch; }
.section-head > p { color: var(--ink-soft); max-width: 36rem; margin: 0; }
@media (min-width: 60rem) { .section-head { grid-template-columns: 6fr 5fr; align-items: end; } }
.more { margin-top: 2.25rem; }
.stack > * + * { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }

.split { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 60rem) {
  .split { grid-template-columns: 4fr 8fr; }
  .split__aside > :first-child { position: sticky; top: calc(var(--header-h) + 2rem); }
  .split--portrait { grid-template-columns: 5fr 7fr; align-items: start; }
}
.split__aside h2 { font-size: var(--step-2); }
.prose { max-width: 42rem; }
.prose p { color: var(--ink-soft); }
.prose h2 { font-size: var(--step-2); }

/* ---------- Header (navy masthead) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); border-bottom: 1px solid var(--line-dark); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.brand { position: relative; z-index: 2; font-family: var(--serif); font-size: var(--step-1); font-weight: 400; letter-spacing: -0.01em; color: var(--white); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--white); }
.site-nav ul { display: flex; gap: 0.1rem; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: block; padding: 0.5rem 0.75rem; font-size: var(--text-sm); color: var(--on-dark-soft); text-decoration: none;
  border-bottom: 1px solid transparent; transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--brass); }

.nav-toggle {
  display: none; align-items: center; gap: 0.6rem; padding: 0.55rem 0.8rem;
  font: 500 var(--text-xs)/1 var(--mono); letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--white); background: transparent; border: 1px solid var(--line-dark); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.nav-toggle__bars span { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 60rem) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); border-bottom: 1px solid var(--line-dark); display: none; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; padding: 0.25rem var(--gutter) 1.5rem; }
  .js .site-nav a { padding: 0.95rem 0; font-family: var(--serif); font-size: var(--step-1); color: var(--on-dark); border-bottom: 1px solid var(--line-dark); }
  .js .site-nav a[aria-current="page"] { color: var(--brass); border-bottom-color: var(--line-dark); }
  .no-js .site-header__inner { flex-wrap: wrap; padding-block: 0.75rem; }
  .no-js .site-nav ul { flex-wrap: wrap; }
  .no-js .site-nav a { padding: 0.35rem 0.9rem 0.35rem 0; }
}

/* ---------- Buttons & links ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.actions--flush { margin-top: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.4rem;
  font: 500 var(--text-sm)/1 var(--sans); letter-spacing: 0.02em; text-decoration: none;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-3); color: var(--white); }
.btn--outline { border-color: var(--line-strong); color: var(--navy); background: transparent; }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.btn--light { background: var(--paper); color: var(--navy); }
.btn--light:hover { background: var(--white); color: var(--navy); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.32); color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--white); color: var(--white); }
.section--deep .btn--outline { border-color: rgba(255, 255, 255, 0.32); color: var(--white); }
.section--deep .btn--outline:hover { border-color: var(--white); color: var(--white); }
.section--deep .btn--dark { background: var(--paper); color: var(--navy); }
.section--deep .btn--dark:hover { background: var(--white); color: var(--navy); }
.text-link { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 500; font-size: var(--text-sm); text-decoration: none; color: var(--blue); }
.text-link::after { content: "→"; transition: transform 0.15s ease; }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Home hero (masthead) ---------- */
.hero {
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(42, 90, 140, 0.32), transparent 62%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--on-dark);
  padding-block: clamp(3rem, 7vw, 5.5rem) 0;
  overflow: hidden;
}
.hero__grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: end; }
@media (min-width: 62rem) { .hero__grid { grid-template-columns: 7fr 4fr; } }
.hero__name { margin: 0 0 1.4rem; font-size: var(--step-5); line-height: 0.92; letter-spacing: -0.035em; color: var(--white); font-weight: 400; }
.hero__given, .hero__family { display: block; }
.hero__family { font-style: italic; font-weight: 300; color: var(--sky); padding-left: 0.04em; }
.hero__tagline { font-family: var(--serif); font-size: var(--step-2); line-height: 1.32; color: var(--on-dark); max-width: 30ch; margin-bottom: 1.4rem; }
.hero__bio { max-width: 36rem; color: var(--on-dark-soft); }
.hero__role { display: grid; gap: 0.15rem; margin-top: 1.8rem; padding-top: 1.3rem; border-top: 1px solid var(--line-dark); max-width: 36rem; font-size: var(--text-sm); color: var(--on-dark-soft); }
.hero__role .kicker { margin-bottom: 0.4rem; }
.hero__role strong { color: var(--white); font-weight: 500; font-size: var(--step-0); }

.hero__plate { position: relative; justify-self: center; width: 100%; max-width: 25rem; }
.hero__plate::before { content: ""; position: absolute; inset: -0.9rem 0.9rem 2.6rem -0.9rem; border: 1px solid rgba(184, 149, 90, 0.55); pointer-events: none; }
.portrait { margin: 0; width: 100%; position: relative; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--navy-3); border-radius: var(--radius); }
.plate-caption { display: flex; justify-content: space-between; gap: 1rem; margin: 0.8rem 0 0; font: 400 var(--text-xs)/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-soft); }
.portrait--about { max-width: 24rem; }

/* Record index (counts) */
.idx {
  list-style: none; margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  border-top: 1px solid var(--line-dark);
}
.idx li { display: grid; gap: 0.35rem; padding: 1.4rem 1rem 1.6rem 0; border-right: 1px solid var(--line-dark); }
.idx li:last-child { border-right: 0; }
.idx li + li { padding-left: 1.2rem; }
.idx__n { font-family: var(--serif); font-size: var(--step-3); line-height: 1; color: var(--white); font-variant-numeric: tabular-nums lining-nums; }
.idx__l { font: 400 var(--text-xs)/1.35 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-soft); }
@media (max-width: 40rem) {
  .idx { grid-template-columns: repeat(2, 1fr); }
  .idx li { border-right: 0; border-bottom: 1px solid var(--line-dark); padding-left: 0 !important; }
}

/* ---------- Credentials band ---------- */
.cred-band { background: var(--navy); color: var(--on-dark); border-top: 1px solid var(--line-dark); }
.cred-band__inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.5rem; padding-block: 1.1rem; }
.cred-band .kicker { margin: 0; color: var(--on-dark-soft); }
.cred-band__list { margin: 0; font: 500 var(--text-sm)/1.6 var(--mono); letter-spacing: 0.06em; color: var(--white); }
.cred-band__list abbr { white-space: nowrap; }
.cred-band__list [aria-hidden] { color: var(--brass); margin: 0 0.15rem; }

/* ---------- Statement ---------- */
.statement-band__grid { display: grid; gap: 1rem 4rem; }
@media (min-width: 60rem) { .statement-band__grid { grid-template-columns: 2fr 9fr; } .statement-band .kicker { padding-top: 0.9rem; } }
.statement { font-family: var(--serif); font-size: var(--step-2); line-height: 1.35; color: var(--navy); margin: 0; max-width: 34ch; font-weight: 300; }
.statement--xl { font-size: var(--step-3); line-height: 1.2; letter-spacing: -0.015em; max-width: 30ch; }

/* ---------- Book ---------- */
.book { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 52rem) { .book { grid-template-columns: 5fr 7fr; } }
.book-cover {
  aspect-ratio: 2 / 3; width: 100%; max-width: 17.5rem; justify-self: center;
  background: linear-gradient(155deg, #1d3d64 0%, var(--navy) 70%);
  color: var(--white); padding: 2.1rem 1.7rem;
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: 2px 5px 5px 2px;
  box-shadow: 0 34px 50px -30px rgba(10, 23, 41, 0.6), inset 7px 0 0 rgba(255, 255, 255, 0.07), inset 8px 0 0 rgba(0, 0, 0, 0.25);
  transform: perspective(1400px) rotateY(var(--ry, -14deg)) rotateX(var(--rx, 2deg));
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.section--deep .book-cover { background: linear-gradient(155deg, #26507f 0%, #0d1f37 75%); box-shadow: 0 40px 60px -28px rgba(0, 0, 0, 0.7), inset 7px 0 0 rgba(255, 255, 255, 0.08), inset 8px 0 0 rgba(0, 0, 0, 0.3); }
.book:hover .book-cover { --ry: -4deg; --rx: 0deg; }
.book-cover.is-tilting { transition: transform 0.12s linear; }
.book-cover--image { padding: 0; background: none; }
.book-cover--image img { width: 100%; height: 100%; object-fit: cover; }
.book-cover p { margin: 0; }
.book-cover__title { font-family: var(--serif); font-size: var(--step-2); line-height: 1.08; letter-spacing: -0.01em; }
.book-cover__sub { font-size: var(--text-xs); line-height: 1.45; color: var(--sky); margin-top: 0.9rem !important; }
.book-cover__authors { font: 400 var(--text-xs)/1.7 var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.book-cover__pub { font-family: var(--serif); font-style: italic; font-size: var(--step-1); margin-top: 0.7rem; color: var(--brass); }
.book__title { font-size: var(--step-4); font-weight: 400; margin-bottom: 0.3rem; line-height: 1.02; }
.book__title a { color: inherit; text-decoration: none; }
.book__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.book__subtitle { font-family: var(--serif); font-style: italic; font-size: var(--step-1); color: var(--ink-soft); margin-bottom: 1.4rem; }
.book__body > p { color: var(--ink-soft); max-width: 40rem; }
.section--deep .book__subtitle { color: var(--sky); }
.section--deep .book__body > p { color: var(--on-dark-soft); }
.section--deep .book .eyebrow { color: var(--brass); }

.meta-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.6rem; margin: 1.6rem 0 0; font-size: var(--text-sm); }
.meta-list dt { font: 400 var(--text-xs)/1.9 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.meta-list dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.meta-list--large { font-size: var(--step-0); gap: 0.9rem 2rem; margin: 0; }
.meta-list--large dd abbr { font-family: var(--mono); font-weight: 500; color: var(--navy); }
.meta-list--stacked { grid-template-columns: 1fr; gap: 0.1rem; margin: 0; }
.meta-list--stacked dt { margin-top: 1rem; line-height: 1.4; }
.meta-list--stacked dt:first-child { margin-top: 0; }
.meta-list--stacked dd { font-size: var(--text-sm); }

/* ---------- The Record (timeline) ---------- */
.record-wrap { overflow-x: auto; padding-bottom: 0.5rem; }
.record-wrap:focus-visible { outline-offset: 4px; }
.record { width: 100%; min-width: 860px; height: auto; overflow: visible; }
.record__grid { stroke: var(--line); stroke-width: 1; }
.record__rule { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 1 5; }
.record__label { font: 500 11px var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; fill: var(--ink-muted); }
.record__year { font: 400 11px var(--mono); fill: var(--ink-muted); }
.record__year--now { fill: var(--navy); font-weight: 500; }
.record__today { stroke: var(--teal-ink); stroke-width: 1.5; }
.record__today-label { font: 500 10px var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; fill: var(--teal-ink); }
.record__mark { fill: var(--navy); stroke: var(--white); stroke-width: 2; transition: fill 0.15s ease; }
.record__mark--key { fill: var(--teal-ink); }
.record__mark--future { fill: var(--white); stroke: var(--navy); stroke-width: 1.5; stroke-dasharray: 2 2; }
.record__mark--former { fill: var(--line-strong); }
.record a:hover .record__mark, .record a:focus-visible .record__mark { fill: var(--blue); }
.record a:focus-visible { outline: none; }
.record-legend { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; font: 400 var(--text-xs)/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.record-legend li { display: inline-flex; align-items: center; gap: 0.5rem; }
.lg { width: 11px; height: 11px; border-radius: 50%; background: var(--navy); }
.lg--key { background: var(--teal-ink); width: 14px; height: 14px; }
.lg--future { background: var(--white); border: 1.5px dashed var(--navy); }
.lg--former { background: var(--line-strong); }

/* ---------- Expertise list (home) ---------- */
.expertise-list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
@media (min-width: 48rem) { .expertise-list { grid-template-columns: repeat(2, 1fr); column-gap: 4rem; } }
@media (min-width: 72rem) { .expertise-list { grid-template-columns: repeat(3, 1fr); column-gap: 3rem; } }
.expertise-list li { padding: 1.6rem 0 1.8rem; border-bottom: 1px solid var(--line); }
.expertise-list h3 { margin: 0 0 0.45rem; font-size: var(--step-1); font-weight: 400; }
.expertise-list h3 a { color: var(--navy); text-decoration: none; }
.expertise-list h3 a:hover { color: var(--blue); }
.expertise-list p { margin: 0; color: var(--ink-soft); font-size: var(--text-sm); }

/* ---------- Entries ---------- */
.entries { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.entry { display: grid; gap: 0.35rem 3rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 52rem) { .entry { grid-template-columns: 11rem 1fr; } }
.entry__meta { font: 500 var(--text-xs)/1.5 var(--mono); letter-spacing: 0.04em; color: var(--ink); padding-top: 0.35rem; font-variant-numeric: tabular-nums; text-transform: uppercase; }
.entry__meta span { display: block; font-weight: 400; color: var(--ink-muted); margin-top: 0.15rem; text-transform: none; letter-spacing: 0.02em; }
.entry__title { margin: 0 0 0.35rem; font-size: var(--step-1); font-weight: 400; }
.entry__title a { color: var(--navy); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.25s ease; }
.entry__title a:hover { background-size: 100% 1px; }
.entry p { margin: 0; color: var(--ink-soft); font-size: var(--text-sm); max-width: 46rem; }
.entry .entry__extra { margin-top: 0.45rem; font: 400 var(--text-xs)/1.5 var(--mono); color: var(--ink-muted); }
.block + .block { margin-top: 3rem; }
.block__title { font: 500 var(--text-xs)/1.4 var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-muted); margin: 0 0 1rem; }
.block__title--spaced { margin-top: 2.5rem; }

/* Archive tools */
.archive-tools { display: grid; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 52rem) { .archive-tools { grid-template-columns: minmax(16rem, 22rem) 1fr; align-items: center; } }
.archive-tools input { width: 100%; padding: 0.85rem 1rem; font: inherit; font-size: var(--text-sm); color: var(--ink); background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.archive-tools input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { padding: 0.55rem 0.95rem; font: 500 var(--text-xs)/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.archive-status { font: 400 var(--text-xs)/1.4 var(--mono); color: var(--ink-muted); margin: 0 0 1rem; min-height: 1.2em; }
.year-group + .year-group { margin-top: 2.75rem; }
.year-group__title { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: var(--step-3); margin-bottom: 0.5rem; color: var(--ink-muted); }
.year-group[hidden] { display: none; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 44rem) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--navy); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); }
.section--white .card { background: var(--paper); }
.card__meta { font: 500 var(--text-xs)/1.5 var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--blue); margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.5rem; font-weight: 400; font-size: var(--step-1); }
.card p:not(.card__meta) { color: var(--ink-soft); font-size: var(--text-sm); }
.card--link { display: flex; flex-direction: column; position: relative; transition: border-color 0.15s ease; }
.card--link h3 a { color: var(--navy); text-decoration: none; }
.card--link h3 a::after { content: ""; position: absolute; inset: 0; }
.card--link:hover { border-color: var(--line-strong); }
.card--link:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.card--link h3 a:focus-visible { outline: none; }
.card__foot { margin-top: auto; padding-top: 1rem; }

/* ---------- Inner page hero (masthead) ---------- */
.page-hero {
  background: radial-gradient(800px 420px at 92% 0%, rgba(42, 90, 140, 0.28), transparent 62%), var(--navy);
  color: var(--on-dark);
  padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem);
}
.page-hero h1 { font-size: var(--display); max-width: 18ch; color: var(--white); font-weight: 400; letter-spacing: -0.03em; }
.page-hero h1 em, .page-hero h1 cite { color: var(--sky); font-weight: 300; }
.page-hero__intro { max-width: 42rem; color: var(--on-dark-soft); font-size: var(--step-1); line-height: 1.55; margin: 0; }
.page-hero__intro a { color: var(--sky); }
.breadcrumb { margin-bottom: 2.25rem; font: 400 var(--text-xs)/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: rgba(255, 255, 255, 0.3); }
.breadcrumb a { color: var(--on-dark-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current] { color: var(--brass); }

/* ---------- About ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-strong); }
.timeline li { position: relative; padding: 0 0 2.4rem 2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 0.55rem; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--navy); }
.timeline li.current::before { background: var(--teal-ink); border-color: var(--teal-ink); }
.timeline .when { font: 500 var(--text-xs)/1.4 var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-muted); }
.timeline h3 { margin: 0.25rem 0 0.2rem; font-size: var(--step-2); font-weight: 400; }
.timeline .org { color: var(--blue); font-weight: 500; font-size: var(--text-sm); margin-bottom: 0.5rem; }
.timeline p:not(.org) { color: var(--ink-soft); font-size: var(--text-sm); max-width: 40rem; }

.creds { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
@media (min-width: 44rem) { .creds:not(.creds--single) { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.creds li { display: flex; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.creds .abbr { flex: none; width: 7.5rem; font: 500 var(--text-sm)/1.4 var(--mono); letter-spacing: 0.04em; color: var(--navy); }
.creds span:not(.abbr) { color: var(--ink-soft); font-size: var(--text-sm); }

.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 2.25rem 3.5rem; }
@media (min-width: 48rem) { .principles { grid-template-columns: 1fr 1fr; } }
.principles li { padding-top: 1.3rem; border-top: 1px solid var(--navy); }
.principles h3 { font-size: var(--step-2); font-weight: 300; font-style: italic; margin-bottom: 0.5rem; }
.principles p { color: var(--ink-soft); font-size: var(--text-sm); }

/* ---------- Expertise page ---------- */
.toc { margin-top: 1rem; }
.toc__title { font: 500 var(--text-xs)/1.4 var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.6rem; }
.toc ol { margin: 0; padding-left: 0; list-style: none; }
.toc li { padding: 0.4rem 0; border-bottom: 1px solid var(--line); font-size: var(--text-sm); }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--navy); }
.domain { display: grid; gap: 1.5rem clamp(2rem, 5vw, 5rem); padding-block: clamp(2.75rem, 5vw, 4rem); border-top: 1px solid var(--line-strong); }
.domain:last-child { border-bottom: 1px solid var(--line-strong); }
@media (min-width: 60rem) { .domain { grid-template-columns: 5fr 7fr; } }
.domain h2 { font-size: var(--step-3); margin-bottom: 0.9rem; }
.domain__lead { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: var(--step-1); line-height: 1.45; color: var(--ink-soft); }
.domain h3 { font: 500 var(--text-xs)/1.4 var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-muted); margin: 1.9rem 0 0.75rem; }
.domain h3:first-child { margin-top: 0; }
.domain p { color: var(--ink-soft); }
.domain ul { margin: 0; padding: 0; list-style: none; }
.domain li { position: relative; padding: 0.5rem 0 0.5rem 1.4rem; color: var(--ink-soft); font-size: var(--text-sm); border-bottom: 1px solid var(--line); }
.domain li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 0.6rem; height: 1px; background: var(--teal-ink); }

/* ---------- Provenance ---------- */
.evidence { display: inline-flex; align-items: center; gap: 0.45rem; font: 500 var(--text-xs)/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.4rem 0.62rem; border-radius: 999px; white-space: nowrap; }
.evidence::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.evidence--verified { color: #1d5c42; background: #e3f0e9; }
.evidence--self { color: var(--ink-soft); background: #e7eaef; }
.entry .evidence { margin-top: 0.75rem; }
.sources { display: grid; gap: 0.9rem; justify-items: start; }
.sources ul { margin: 0; padding-left: 1.1rem; }
.sources li { padding: 0.2rem 0; overflow-wrap: anywhere; }
.legend { display: grid; gap: 0.75rem; padding: 1.25rem 1.4rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--text-sm); color: var(--ink-soft); }
@media (min-width: 52rem) { .legend { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.legend p { margin: 0; display: grid; gap: 0.5rem; justify-items: start; }

/* ---------- Work ---------- */
.work-group + .work-group { margin-top: clamp(3rem, 6vw, 4.5rem); }
.work-group__head { margin-bottom: 1.5rem; }
.work-group__head .section-label { margin-bottom: 0.75rem; }
.work-group__head p { margin: 0; font-size: var(--text-sm); }
@media (min-width: 60rem) { .split--detail { grid-template-columns: 4fr 8fr; } }
.prose--detail h2 { font-size: var(--step-2); margin-top: 2.4rem; }
.prose--detail h2:first-child { margin-top: 0; }
.prose--detail ul { padding-left: 1.2rem; color: var(--ink-soft); }
.prose--detail li { padding: 0.25rem 0; }

/* ---------- Media resources ---------- */
.bio-stack { display: grid; gap: 1.25rem; }
.bio-block { background: var(--white); border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 2.4rem); border-radius: var(--radius); }
.bio-block__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.bio-block__head h3 { margin: 0; font-size: var(--step-1); font-weight: 400; }
.bio-block__head .muted { font: 400 var(--text-xs)/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.bio-block p { color: var(--ink-soft); }
.copy-btn { font: 500 var(--text-xs)/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.65rem 0.9rem; border: 1px solid var(--line-strong); background: var(--paper); color: var(--navy); border-radius: var(--radius); cursor: pointer; }
.copy-btn:hover { border-color: var(--navy); }
.copy-btn[hidden] { display: none; }
.headshots { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 64rem) { .headshots { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
.headshot figcaption { display: grid; gap: 0.15rem; }
.headshot__label { font: 400 var(--text-sm)/1.35 var(--serif); color: var(--ink); letter-spacing: 0; }
.headshot img { border-radius: 3px; background: var(--dark-1); }
.headshot { margin: 0; }
.headshot img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.headshot figcaption { font: 400 var(--text-xs)/1.5 var(--mono); color: var(--ink-muted); margin-top: 0.6rem; }
.refs-wrap { display: grid; gap: 2.25rem; }
.refs { margin: 0; padding-left: 1.6rem; display: grid; gap: 0.9rem; font-size: var(--text-sm); color: var(--ink); }
.refs li::marker { font-family: var(--mono); font-size: var(--text-xs); color: var(--ink-muted); }
.ref-url { font: 400 var(--text-xs)/1.5 var(--mono); color: var(--ink-muted); overflow-wrap: anywhere; }
.ref-url:hover { color: var(--blue); }

/* ---------- Contact ---------- */
.profiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 44rem) { .profiles { grid-template-columns: 1fr 1fr; } .profiles .primary { grid-column: 1 / -1; } }
.profiles a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color 0.15s ease; }
.profiles a:hover { border-color: var(--navy); color: var(--ink); }
.profiles strong { display: block; font-family: var(--serif); font-size: var(--step-1); font-weight: 400; color: var(--navy); }
.profiles a span span { font-size: var(--text-sm); color: var(--ink-muted); }
.profiles .arrow { font-size: var(--step-1); color: var(--blue); }
.profiles .primary a { background: var(--navy); border-color: var(--navy); }
.profiles .primary strong { color: var(--white); font-size: var(--step-2); }
.profiles .primary a span span { color: var(--on-dark-soft); }
.profiles .primary .arrow { color: var(--brass); }
.note { font-size: var(--text-sm); color: var(--ink-muted); border-left: 2px solid var(--teal-ink); padding-left: 1rem; margin-top: 2rem; }

/* ---------- CTA ---------- */
.cta { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 52rem) { .cta { grid-template-columns: 1fr auto; } }
.cta h2 { margin: 0 0 0.75rem; font-size: var(--step-3); max-width: 20ch; }
.cta h2 em { color: var(--sky); }
.cta p { margin: 0; color: var(--on-dark-soft); max-width: 40rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-soft); padding-block: 4rem 2.25rem; font-size: var(--text-sm); border-top: 1px solid var(--line-dark); }
.footer__grid { display: grid; gap: 2.25rem; }
@media (min-width: 52rem) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.brand--footer { font-size: var(--step-3); color: var(--white); display: inline-block; margin-bottom: 0.8rem; letter-spacing: -0.02em; }
.site-footer p { margin: 0; max-width: 26rem; }
.site-footer h2 { font: 500 var(--text-xs)/1.4 var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer__base { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font: 400 var(--text-xs)/1.5 var(--mono); letter-spacing: 0.04em; color: rgba(231, 235, 241, 0.5); }


@property --n { syntax: "<integer>"; initial-value: 0; inherits: false; }

/* ==========================================================================
   MOTION SYSTEM
   Rules: purposeful, slow-in/soft-out, never looping in the reading area.
   Content is fully visible at rest; every effect is skipped under
   prefers-reduced-motion and degrades to the static page without support.
   ========================================================================== */
:root { --ease-out: cubic-bezier(0.16, 0.84, 0.24, 1); --ease-soft: cubic-bezier(0.4, 0, 0.2, 1); }

/* Structural hooks used by motion (harmless when static) */
.hero { position: relative; isolation: isolate; }
.hero__family { position: relative; display: inline-block; }
.hero__family::after {
  content: ""; position: absolute; left: 0.06em; right: 0.1em; bottom: 0.02em; height: 2px;
  background: linear-gradient(90deg, var(--brass), rgba(184, 149, 90, 0.15));
  transform-origin: left center;
}
.hero__name .hero__family { display: block; width: fit-content; }
.site-header { transition: box-shadow 0.35s var(--ease-soft), background-color 0.35s var(--ease-soft); }
.site-header__inner { transition: min-height 0.35s var(--ease-soft); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6); }
.site-header.is-scrolled .site-header__inner { min-height: 3.75rem; }
.book-cover { position: relative; overflow: hidden; will-change: transform; }
.book-cover::after {
  content: ""; position: absolute; inset: -40% -60%; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.13) 50%, transparent 58%);
  transform: translateX(-60%);
}
.card, .profiles a, .bio-block { transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.2s ease; }

@media (prefers-reduced-motion: no-preference) {

  /* 1. Cross-page transitions (same-origin, no JS) */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: masthead; }
  ::view-transition-old(root) { animation: vt-out 0.28s var(--ease-soft) both; }
  ::view-transition-new(root) { animation: vt-in 0.45s var(--ease-out) both; }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

  /* 2. Hero: ambient light, name rise, brass rule, framed plate */
  .hero::before {
    content: ""; position: absolute; z-index: -1; width: 70vmax; height: 70vmax; right: -25vmax; top: -35vmax;
    background: radial-gradient(closest-side, rgba(70, 120, 180, 0.22), transparent 70%);
    animation: drift 26s ease-in-out infinite alternate;
  }
  @keyframes drift { to { transform: translate(-14vmax, 10vmax) scale(1.15); } }
  .hero__given, .hero__family { animation: rise 1.1s var(--ease-out) both; }
  .hero__family { animation-delay: 0.12s; }
  .hero__tagline { animation: rise 1.1s var(--ease-out) 0.22s both; }
  .hero__bio, .hero__role, .hero .actions { animation: rise 1s var(--ease-out) 0.32s both; }
  @keyframes rise { from { transform: translateY(0.45em); } }
  .hero__family::after { animation: rule 1.2s var(--ease-out) 0.7s both; }
  @keyframes rule { from { transform: scaleX(0); } }
  .hero__plate::before { animation: frame 1.4s var(--ease-out) 0.35s both; }
  @keyframes frame { from { transform: translate(1.2rem, -1.2rem); border-color: transparent; } }
  .hero__plate .portrait img { animation: plate 1.3s var(--ease-out) 0.15s both; }
  @keyframes plate { from { transform: scale(1.04); filter: saturate(0.6) brightness(0.85); } }

  /* 5. Scroll-driven reveals (progressive enhancement) */
  @supports (animation-timeline: view()) {
    .section-head, .entry, .card, .expertise-list li, .principles li, .domain, .statement,
    .timeline li, .bio-block, .creds li, .book__body, .idx li, .record-legend, .work-group__head, .profiles li {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    @keyframes reveal { from { opacity: 0.2; transform: translateY(28px); } }
    .statement--xl { animation-range: entry 0% cover 35%; }
  }


  /* 3. Count-up: the real number stays in the DOM text (for crawlers and screen
        readers); only a decorative CSS counter animates on top of it. */
  @supports (counter-reset: n calc(1)) {
    .idx__n.is-counting .idx__v { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .idx__n.is-counting::after {
      content: counter(n, decimal-leading-zero);
      counter-reset: n var(--n);
      --n: var(--to);
      animation: count 1.5s var(--ease-out) var(--d, 0.35s) backwards;
    }
  }
  @keyframes count { from { --n: 0; } to { --n: var(--to); } }

  /* 4. The record: marks appear left to right when the chart enters view */
  .js .record-wrap:not(.is-visible) .record__mark { transform: scale(0); }
  .js .record-wrap:not(.is-visible) .record__today { stroke-dashoffset: 400; }
  .record__mark { transform-box: fill-box; transform-origin: center; transition: transform 0.6s var(--ease-out), fill 0.15s ease; }
  .record__today { stroke-dasharray: 400; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-out) 0.9s; }
  .record .d1 { transition-delay: 0.08s; } .record .d2 { transition-delay: 0.16s; } .record .d3 { transition-delay: 0.24s; }
  .record .d4 { transition-delay: 0.32s; } .record .d5 { transition-delay: 0.40s; } .record .d6 { transition-delay: 0.48s; }
  .record .d7 { transition-delay: 0.56s; } .record .d8 { transition-delay: 0.64s; } .record .d9 { transition-delay: 0.72s; }
  .record a:hover .record__mark, .record a:focus-visible .record__mark { transform: scale(1.5); transition-delay: 0s; }

  /* 6. Book: sheen on hover (tilt driven by site.js) */
  .book:hover .book-cover::after { transform: translateX(60%); transition: transform 1.1s var(--ease-out); }

  /* 7. Lift */
  .card:hover, .bio-block:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(10, 23, 41, 0.35); }
  .profiles a:hover { transform: translateY(-2px); }
  .text-link:hover::after { transform: translateX(5px); }
}


/* ==========================================================================
   v3 — "Constellation of trust": immersive components
   ========================================================================== */

/* ---------- Ambient surfaces ---------- */
.section--warm { background: var(--paper); }
.section--deep { position: relative; isolation: isolate; overflow: hidden; }
.section--seam::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(89, 240, 223, 0.55) 30%, rgba(91, 141, 255, 0.55) 70%, transparent);
}
.dots-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(169, 195, 226, 0.13) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, #000 20%, transparent 75%);
}
.on-dark { color: var(--on-dark-soft) !important; }
.text-link--light { color: var(--teal); }
.text-link--light:hover { color: var(--white); }

/* ---------- Hero (immersive) ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.hero__grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(169, 195, 226, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 195, 226, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 40%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 72% 40%, #000 10%, transparent 70%);
}
.hero__grid { align-items: center; }
@media (min-width: 62rem) { .hero__grid { grid-template-columns: 6fr 6fr; } }
.hero__kicker { display: inline-flex; align-items: center; gap: 0.65rem; }
.kicker__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(63, 216, 201, 0.18); }
.hero__name .line { display: block; }
.hero__family { color: transparent; background: linear-gradient(100deg, #cfe0f5 0%, var(--sky) 35%, var(--teal) 100%); -webkit-background-clip: text; background-clip: text; padding: 0.08em 0.14em 0.04em 0; margin: -0.08em -0.14em -0.04em 0; }
.hero__family::after { background: linear-gradient(90deg, var(--teal), rgba(91, 141, 255, 0.1)); }

.hero__art { position: relative; width: 100%; max-width: 40rem; justify-self: center; aspect-ratio: 640 / 720; }
.hero__net { position: absolute; inset: 0; }
.net { width: 100%; height: 100%; overflow: visible; }
.hero__plate {
  position: absolute; left: 27.3%; top: 24.7%; width: 45.4%;
  border-radius: 3px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(169, 195, 226, 0.18);
}
.hero__plate::before { content: none; }
.hero__plate .portrait img { border-radius: 3px; }
.hero__plate .portrait::after {
  content: ""; position: absolute; inset: 0; border-radius: 3px; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 23, 41, 0.55)), linear-gradient(135deg, rgba(63, 216, 201, 0.10), transparent 50%);
}
.plate__corner { position: absolute; width: 22px; height: 22px; border: 1.5px solid var(--teal); pointer-events: none; }
.plate__corner--tl { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.plate__corner--br { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }

/* network styling */
.net__ring { fill: none; stroke: rgba(169, 195, 226, 0.22); stroke-width: 1; stroke-dasharray: 0.004 0.008; }
.net__mesh line { stroke: rgba(169, 195, 226, 0.16); stroke-width: 1; }
.net__dots circle { fill: rgba(169, 195, 226, 0.55); }
.net__spokes use { fill: none; stroke: url(#netEdge); stroke-width: 1.4; }
.net__core { fill: var(--navy); stroke: var(--teal); stroke-width: 2; }
.net__labels text { font: 500 12px var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; fill: var(--on-dark); }

/* record index on dark */
.idx { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* buttons */
.btn--glow {
  background: linear-gradient(120deg, var(--teal) 0%, #5b8dff 100%); color: var(--navy); border: 0;
  box-shadow: 0 10px 30px -12px rgba(63, 216, 201, 0.55);
  background-size: 160% 100%; background-position: 0 0;
  transition: background-position 0.5s var(--ease-out), box-shadow 0.3s ease, transform 0.3s var(--ease-out);
}
.btn--glow:hover { color: var(--navy); background-position: 100% 0; box-shadow: 0 14px 36px -12px rgba(91, 141, 255, 0.65); transform: translateY(-1px); }

/* ---------- Nav: sliding underline ---------- */
@media (min-width: 60.01rem) {
  .site-nav a { position: relative; border-bottom: 0; }
  .site-nav a::after {
    content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.15rem; height: 1.5px;
    background: linear-gradient(90deg, var(--teal), #5b8dff); transform: scaleX(0); transform-origin: right;
    transition: transform 0.4s var(--ease-out);
  }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
}
/* Mobile: full-screen menu with staggered items */
@media (max-width: 60rem) {
  .js .nav-toggle { position: relative; z-index: 2; }
  .js .site-nav { position: fixed; inset: 0; padding-top: calc(var(--header-h) + 1rem); display: block; visibility: hidden; opacity: 0; z-index: 1;
    background: radial-gradient(600px 400px at 90% 0%, rgba(63, 216, 201, 0.12), transparent 60%), var(--navy);
    transition: opacity 0.3s ease, visibility 0s linear 0.3s; overflow-y: auto; }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transition: opacity 0.3s ease; }
  .js .site-nav a { font-size: var(--step-3); padding: 1rem 0; }
  .js .site-nav li { transform: translateY(14px); opacity: 0; transition: transform 0.5s var(--ease-out), opacity 0.5s ease; }
  .js .site-nav.is-open li { transform: none; opacity: 1; }
  .js .site-nav.is-open li:nth-child(2) { transition-delay: 0.04s; } .js .site-nav.is-open li:nth-child(3) { transition-delay: 0.08s; }
  .js .site-nav.is-open li:nth-child(4) { transition-delay: 0.12s; } .js .site-nav.is-open li:nth-child(5) { transition-delay: 0.16s; }
  .js .site-nav.is-open li:nth-child(6) { transition-delay: 0.2s; } .js .site-nav.is-open li:nth-child(7) { transition-delay: 0.24s; }
}

/* ---------- Intersection (expertise) ---------- */
.intersect__grid { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 62rem) { .intersect__grid { grid-template-columns: 6fr 5fr; } }
.intersect__intro h2 { max-width: 16ch; }
.intersect__intro .statement { font-size: var(--step-1); max-width: 40ch; color: var(--ink-soft); line-height: 1.5; }
.venn { width: 100%; max-width: 30rem; margin-inline: auto; overflow: visible; }
.venn__c { fill: var(--electric); fill-opacity: 0.045; stroke: var(--navy); stroke-opacity: 0.22; stroke-width: 1.2; transition: fill-opacity 0.45s var(--ease-out), stroke-opacity 0.45s ease, stroke 0.45s ease; }
.venn__c.is-active { fill-opacity: 0.2; stroke: var(--teal-ink); stroke-opacity: 1; }
.venn__t { font: 500 12px var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; fill: var(--ink-muted); transition: fill 0.3s ease; }
.venn__t.is-active { fill: var(--navy); }
.venn__trust { font: italic 300 26px var(--serif); fill: var(--navy); }
.venn__dot { fill: var(--navy); stroke: var(--teal); stroke-width: 2; }

.xcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
@media (min-width: 44rem) { .xcards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 70rem) { .xcards { grid-template-columns: repeat(3, 1fr); } }
.xcard { background: var(--white); position: relative; }
.xcard__link { display: grid; gap: 0.6rem; align-content: start; height: 100%; padding: clamp(1.6rem, 3vw, 2.2rem); color: inherit; text-decoration: none; position: relative; }
.xcard__link::before {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(63, 216, 201, 0.12), transparent 45%);
  transition: opacity 0.4s ease;
}
.xcard__link:hover::before, .xcard__link:focus-visible::before { opacity: 1; }
.xcard__link:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.xcard__icon { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); margin-bottom: 0.6rem; transition: background 0.3s ease, border-color 0.3s ease; }
.ill { width: 1.5rem; height: 1.5rem; fill: none; stroke: var(--navy); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.xcard__link:hover .xcard__icon { background: var(--navy); border-color: var(--navy); }
.xcard__link:hover .ill { stroke: var(--teal); }
.xcard__field { font: 500 var(--text-xs)/1.3 var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--teal-ink); }
.xcard__title { font-family: var(--serif); font-size: var(--step-2); line-height: 1.2; color: var(--navy); }
.xcard__text { color: var(--ink-soft); font-size: var(--text-sm); }
.xcard__more { margin-top: 0.6rem; font: 500 var(--text-xs)/1 var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--blue); opacity: 0; transform: translateX(-6px); transition: opacity 0.3s ease, transform 0.4s var(--ease-out); }
.xcard__more::after { content: " →"; }
.xcard__link:hover .xcard__more, .xcard__link:focus-visible .xcard__more { opacity: 1; transform: none; }

/* ---------- Book details (expandable) ---------- */
.more-details { margin-top: 1.4rem; border-top: 1px solid var(--line); }
.section--deep .more-details { border-top-color: var(--line-dark); }
.more-details summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0; font: 500 var(--text-xs)/1 var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--blue);
}
.section--deep .more-details summary { color: var(--teal); }
.more-details summary::-webkit-details-marker { display: none; }
.more-details summary::after { content: "+"; font: 300 var(--step-1)/1 var(--sans); transition: transform 0.35s var(--ease-out); }
.more-details[open] summary::after { transform: rotate(45deg); }
.more-details .meta-list { margin-top: 0.25rem; padding-bottom: 0.5rem; }
.section--deep .meta-list dt { color: var(--on-dark-soft); }
.section--deep .meta-list dd { color: var(--on-dark); }

/* ---------- Milestones (interactive timeline) ---------- */
.ms__track { position: relative; display: flex; justify-content: space-between; gap: 0.25rem; overflow-x: auto; padding: 0.5rem 0 1rem; scrollbar-width: thin; }
.ms__rail { position: absolute; left: 0; right: 0; top: 1.55rem; height: 1px; background: var(--line-strong); }
.ms__fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--ms-progress, 100%); background: linear-gradient(90deg, var(--teal), #5b8dff); transition: width 0.7s var(--ease-out); }
.ms__tab {
  position: relative; z-index: 1; flex: 1 0 4.5rem; display: grid; justify-items: center; gap: 0.6rem;
  padding: 0.35rem 0.25rem; background: none; border: 0; cursor: pointer; color: var(--ink-muted);
  font: 500 var(--text-sm)/1 var(--mono); letter-spacing: 0.06em;
}
.ms__dot { width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--line-strong); transition: transform 0.35s var(--ease-out), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.ms__tab:hover .ms__dot { border-color: var(--navy); transform: scale(1.15); }
.ms__tab[aria-selected="true"] { color: var(--navy); }
.ms__tab[aria-selected="true"] .ms__dot { background: var(--navy); border-color: var(--teal); box-shadow: 0 0 0 6px rgba(63, 216, 201, 0.18); transform: scale(1.2); }
.ms__tab.is-future .ms__dot { border-style: dashed; }
.ms__tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.ms__panels { position: relative; margin-top: 1.5rem; }
.ms__panel { display: grid; gap: 1rem 3rem; align-items: center; padding: clamp(1.75rem, 4vw, 2.75rem); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
@media (min-width: 52rem) { .ms__panel { grid-template-columns: 4fr 7fr; } }
.js .ms__panel[data-hidden] { display: none; }
.no-js .ms__panel + .ms__panel { margin-top: 1rem; }
.ms__big { margin: 0; font-family: var(--serif); font-weight: 300; font-style: italic; font-size: var(--display-num); line-height: 0.9; letter-spacing: -0.04em;
  color: transparent; background: linear-gradient(120deg, var(--navy) 20%, var(--teal-ink) 100%); -webkit-background-clip: text; background-clip: text; }
.ms__copy h3 { font-size: var(--step-2); font-weight: 400; margin-bottom: 0.6rem; }
.ms__copy p:not(.kicker) { color: var(--ink-soft); max-width: 44rem; }
.ms__copy .text-link { margin-top: 0.9rem; }

/* ---------- Speaking showcase ---------- */
.showcase { display: grid; gap: 1.25rem; }
@media (min-width: 62rem) { .showcase { grid-template-columns: 5fr 7fr; } }
.award {
  position: relative; overflow: hidden; display: grid; align-content: space-between; gap: 2rem; min-height: 18rem;
  padding: clamp(1.75rem, 4vw, 2.5rem); border-radius: 4px; color: var(--on-dark);
  background: linear-gradient(160deg, rgba(63, 216, 201, 0.16), rgba(91, 141, 255, 0.08) 45%, rgba(255, 255, 255, 0.02)), var(--navy);
  border: 1px solid rgba(89, 240, 223, 0.35);
}
.award::after { content: ""; position: absolute; right: -30%; top: -40%; width: 80%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(89, 240, 223, 0.22); box-shadow: 0 0 0 40px rgba(89, 240, 223, 0.03), 0 0 0 90px rgba(89, 240, 223, 0.02); pointer-events: none; }
.award__year { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: var(--display-num); line-height: 0.85; color: var(--teal); letter-spacing: -0.04em; }
.award h3 { color: var(--white); font-size: var(--step-2); font-weight: 400; margin-bottom: 0.35rem; }
.award p:not(.kicker) { color: var(--on-dark-soft); margin-bottom: 0.9rem; }
.ecards { display: grid; gap: 1.25rem; }
.ecard {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start;
  padding: clamp(1.4rem, 3vw, 1.9rem); border-radius: 4px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line-dark);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.4s var(--ease-out);
}
.ecard:hover { border-color: rgba(89, 240, 223, 0.45); background: rgba(255, 255, 255, 0.055); transform: translateY(-3px); }
.ecard__date { display: grid; justify-items: center; min-width: 4.5rem; padding: 0.8rem 0.6rem; border-radius: 3px; border: 1px solid var(--line-dark); background: rgba(10, 23, 41, 0.6); font-family: var(--mono); color: var(--on-dark-soft); text-transform: uppercase; }
.ecard__day { font: 300 var(--step-3)/1 var(--serif); color: var(--white); min-height: 1em; }
.ecard__mon { font-size: var(--text-xs); letter-spacing: var(--track-label); margin-top: 0.35rem; color: var(--teal); }
.ecard__yr { font-size: var(--text-xs); letter-spacing: var(--track-label); }
.ecard__tag { display: inline-block; font: 500 var(--text-xs)/1 var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--sky); border: 1px solid var(--line-dark); padding: 0.4rem 0.55rem; border-radius: 999px; margin-bottom: 0.7rem; }
.ecard__tag--up { color: var(--navy); background: var(--teal); border-color: var(--teal); }
.ecard h3 { font-size: var(--step-1); font-weight: 400; margin-bottom: 0.35rem; color: var(--white); }
.ecard h3 a { color: inherit; text-decoration: none; }
.ecard h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.ecard p { color: var(--on-dark-soft); font-size: var(--text-sm); margin-bottom: 0.5rem; }
.ecard__meta { font: 400 var(--text-xs)/1.5 var(--mono); letter-spacing: 0.04em; }
.section--deep .evidence--verified { color: #8af0d7; background: rgba(63, 216, 201, 0.12); }
.section--deep .evidence--self { color: var(--on-dark-soft); background: rgba(255, 255, 255, 0.06); }

/* ---------- Achievement cards (work) ---------- */
.card--link { overflow: hidden; }
.card--link::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px;
  background: linear-gradient(90deg, var(--teal), #5b8dff); transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.card--link:hover::before, .card--link:focus-within::before { transform: scaleX(1); }

/* ==========================================================================
   v3 motion (all under no-preference)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* name: masked line reveal */
  .hero__given, .hero__family { animation: line-up 1.15s var(--ease-out) both; }
  .hero__family { animation-delay: 0.14s; }
  @keyframes line-up { from { transform: translateY(0.28em); } }
  .hero__kicker { animation: rise 0.9s var(--ease-out) 0.05s both; }

  /* network: draw, then breathe */
  .net__spokes use, .net__mesh line { stroke-dasharray: 1; animation: draw 1.8s var(--ease-out) both; }
  .net__spokes use { animation-delay: 0.5s; }
  .net__mesh line { animation-duration: 2.4s; animation-delay: 0.2s; }
  @keyframes draw { from { stroke-dashoffset: 0.35; } to { stroke-dashoffset: 0; } }
  .net__ring { animation: ring 60s linear infinite; }
  @keyframes ring { to { stroke-dashoffset: -1; } }
  .net__major { animation: pop 0.9s var(--ease-out) both; }
  .net__major:nth-child(1) { animation-delay: 0.9s; } .net__major:nth-child(2) { animation-delay: 1.0s; }
  .net__major:nth-child(3) { animation-delay: 1.1s; } .net__major:nth-child(4) { animation-delay: 1.2s; }
  .net__major:nth-child(5) { animation-delay: 1.3s; }
  @keyframes pop { from { opacity: 0.35; } }
  .net__halo { transform-box: fill-box; transform-origin: center; animation: breathe 5s ease-in-out infinite alternate; }
  .net__major:nth-child(2n) .net__halo { animation-delay: -2.5s; }
  @keyframes breathe { from { transform: scale(0.8); opacity: 0.6; } to { transform: scale(1.2); opacity: 1; } }
  .net__labels text { animation: rise 1s var(--ease-out) 1.3s both; }
  .net__dots circle { animation: pop 1.2s ease both 0.6s; }

  /* plate: settle, with corners closing in */
  .hero__plate { animation: plate-in 1.4s var(--ease-out) 0.3s both; }
  @keyframes plate-in { from { transform: translateY(24px) scale(0.97); } }
  .plate__corner--tl { animation: corner-tl 1.2s var(--ease-out) 0.9s both; }
  .plate__corner--br { animation: corner-br 1.2s var(--ease-out) 0.9s both; }
  @keyframes corner-tl { from { transform: translate(-14px, -14px); } }
  @keyframes corner-br { from { transform: translate(14px, 14px); } }

  /* pointer parallax (variables set by site.js) */
  .hero__net { transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -10px), 0); transition: transform 0.6s var(--ease-out); }
  .hero__plate { translate: calc(var(--px, 0) * 8px) calc(var(--py, 0) * 6px); transition: translate 0.6s var(--ease-out); }

  /* scroll parallax on hero art */
  @supports (animation-timeline: scroll()) {
    .hero__art { animation: hero-par linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    @keyframes hero-par { to { transform: translateY(70px); } }
    .hero__grid-bg { animation: grid-par linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    @keyframes grid-par { to { transform: translateY(-40px); opacity: 0.4; } }
  }

  /* intersection: circles drift into place when revealed */
  @supports (animation-timeline: view()) {
    .venn__c { animation: venn-in linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; transform-box: fill-box; transform-origin: center; }
    @keyframes venn-in { from { transform: scale(0.75); } }
    .xcard { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .ecard, .award, .ms { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
  .venn__core { transform-box: fill-box; transform-origin: center; animation: breathe 4s ease-in-out infinite alternate; }

  /* icons draw when their card comes into view */
  .ill * { stroke-dasharray: 80; stroke-dashoffset: 0; }
  .xcard__link:hover .ill * { animation: ill-draw 1.1s var(--ease-out); }
  @keyframes ill-draw { from { stroke-dashoffset: 80; } }

  /* milestone panel transition */
  .ms__panel:not([data-hidden]) { animation: panel-in 0.6s var(--ease-out); }
  @keyframes panel-in { from { transform: translateY(10px); } }
  .ms__panel:not([data-hidden]) .ms__big { animation: big-in 0.9s var(--ease-out); }
  @keyframes big-in { from { transform: translateX(-16px); } }
}


/* ==========================================================================
   v4 — Experience, Strategic Advisory, broadened identity
   ========================================================================== */

/* Expertise cards: lead area spans the full row (7 areas = 1 + 6) */
@media (min-width: 44rem) { .xcard:first-child { grid-column: 1 / -1; } .xcard:first-child .xcard__link { grid-template-columns: auto 1fr; column-gap: 1.5rem; } .xcard:first-child .xcard__icon { grid-row: span 4; margin: 0; width: 3.5rem; height: 3.5rem; } .xcard:first-child .xcard__title { font-size: var(--step-2); } }
.venn__c--lead { fill: var(--teal); }
.venn__c--tech { fill: #7a6cff; }
.ill--lg { width: 2rem; height: 2rem; }

/* ---------- Experience: roles ---------- */
.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.role { display: grid; gap: 0.5rem 2.5rem; padding: clamp(1.4rem, 3vw, 2rem); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; position: relative; overflow: hidden; transition: border-color 0.3s ease, transform 0.4s var(--ease-out); }
@media (min-width: 52rem) { .role { grid-template-columns: 11rem 1fr; } }
.role::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--line-strong); }
.role--current::before { background: linear-gradient(180deg, var(--teal), var(--electric)); }
.role:hover { border-color: var(--line-strong); transform: translateX(4px); }
.role__when { font: 500 var(--text-xs)/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); display: grid; gap: 0.5rem; align-content: start; justify-items: start; }
.role__badge { font-size: var(--text-xs); letter-spacing: var(--track-label); color: var(--navy); background: rgba(63, 216, 201, 0.25); padding: 0.3rem 0.55rem; border-radius: 999px; }
.role__org { margin: 0 0 0.2rem; font: 500 var(--text-sm)/1.4 var(--sans); color: var(--teal-ink); }
.role h3 { font-size: var(--step-2); font-weight: 400; margin-bottom: 0.5rem; }
.role p:not(.role__org) { color: var(--ink-soft); margin: 0; }
.sectors { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.sectors li { display: flex; align-items: center; gap: 0.7rem; font: 500 var(--text-xs)/1.4 var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--navy); }
.sectors__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal-ink); box-shadow: 0 0 0 4px rgba(63, 216, 201, 0.18); }

.role__sector { font-size: var(--text-xs); letter-spacing: var(--track-label); color: var(--teal-ink); }
.role__hl { margin: 0.9rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.role__hl li { position: relative; padding-left: 1.3rem; color: var(--ink-soft); font-size: var(--text-sm); }
.role__hl li::before { content: ""; position: absolute; left: 0; top: 0.62rem; width: 0.65rem; height: 1px; background: var(--teal-ink); }
.training { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
@media (min-width: 44rem) { .training { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.training li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-size: var(--text-sm); color: var(--ink-soft); }
.training em { font: 400 var(--text-xs)/1.6 var(--mono); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }

/* ---------- About: interests ---------- */
.interests { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 44rem) { .interests { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.interests li { position: relative; padding: 1.1rem 0 1.1rem 2rem; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: var(--step-1); color: var(--navy); }
.interests li::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: 1rem; height: 1px; background: var(--teal-ink); }

/* ---------- Advisory hero ---------- */
.adv-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark);
  background: radial-gradient(900px 520px at 85% 10%, rgba(42, 90, 140, 0.35), transparent 62%), linear-gradient(180deg, var(--navy), var(--navy-2));
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); }
.adv-hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 62rem) { .adv-hero__grid { grid-template-columns: 6fr 6fr; } }
.adv-hero__title { font-size: var(--display); color: var(--white); font-weight: 400; letter-spacing: -0.03em; max-width: 16ch; margin-bottom: 1.2rem; }
.adv-hero__title em { font-weight: 300; color: transparent; background: linear-gradient(100deg, var(--sky), var(--teal)); -webkit-background-clip: text; background-clip: text; padding-right: 0.1em; }
.adv-hero__art { width: 100%; max-width: 42rem; justify-self: center; }
.orb { width: 100%; height: auto; overflow: visible; }
.orb__rings circle { fill: none; stroke: rgba(169, 195, 226, 0.16); stroke-width: 1; }
.orb__rings circle:first-child { stroke: rgba(89, 240, 223, 0.35); stroke-dasharray: 0.004 0.01; }
.orb__spokes line { stroke: url(#netEdge); stroke: rgba(89, 240, 223, 0.25); stroke-width: 1; }
.orb__halo { fill: rgba(63, 216, 201, 0.12); }
.orb__core { fill: var(--navy); stroke: var(--teal); stroke-width: 1.5; }
.orb__icon { fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.orb__center { fill: var(--white); }
.orb__center-t { font: italic 300 22px var(--serif); fill: var(--on-dark); }
.orb__labels text { font: 500 15px var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; fill: var(--on-dark); }

/* ---------- Advisory panels (tabs) ---------- */
.adv { display: grid; gap: 1.5rem; }
@media (min-width: 64rem) { .adv { grid-template-columns: 4fr 8fr; align-items: start; gap: 2.5rem; } .adv__tabs { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.adv__tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; scrollbar-width: thin; }
@media (min-width: 64rem) { .adv__tabs { flex-direction: column; overflow: visible; } }
.adv__tab {
  flex: 0 0 auto; display: flex; align-items: center; gap: 0.9rem; text-align: left; cursor: pointer;
  padding: 0.85rem 1rem; background: transparent; border: 1px solid var(--line); border-radius: 4px;
  font: 500 var(--text-sm)/1.3 var(--sans); color: var(--ink-soft);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.35s var(--ease-out);
}
@media (max-width: 63.99rem) { .adv__tab { max-width: 16rem; } }
.adv__tab:hover { border-color: var(--line-strong); color: var(--navy); transform: translateX(3px); }
.adv__tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.adv__tab[aria-selected="true"] .ill { stroke: var(--teal); }
.adv__tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.adv__num { flex: none; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); }
.adv__tab[aria-selected="true"] .adv__num { border-color: rgba(89, 240, 223, 0.4); }
.adv__num .ill { width: 1.15rem; height: 1.15rem; }
.adv__panel {
  position: relative; overflow: hidden; padding: clamp(1.75rem, 4vw, 3rem); border-radius: 6px;
  background: linear-gradient(160deg, rgba(63, 216, 201, 0.07), transparent 40%), var(--paper); border: 1px solid var(--line);
}
.adv__panel::after { content: ""; position: absolute; right: -6rem; top: -6rem; width: 18rem; height: 18rem; border-radius: 50%; border: 1px solid rgba(15, 127, 120, 0.15); box-shadow: 0 0 0 36px rgba(15, 127, 120, 0.03), 0 0 0 80px rgba(15, 127, 120, 0.02); pointer-events: none; }
.js .adv__panel[data-hidden] { display: none; }
.no-js .adv__panel + .adv__panel { margin-top: 1rem; }
.adv__head { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1.25rem; }
.adv__icon { flex: none; width: 4rem; height: 4rem; display: grid; place-items: center; border-radius: 50%; background: var(--navy); }
.adv__icon .ill { stroke: var(--teal); }
.adv__head .kicker { margin-bottom: 0.35rem; color: var(--teal-ink); }
.adv__head h3 { margin: 0; font-size: var(--step-2); font-weight: 400; max-width: 24ch; }
.adv__summary { font-family: var(--serif); font-size: var(--step-1); line-height: 1.45; color: var(--navy); max-width: 46rem; }
.adv__perspective { color: var(--ink-soft); max-width: 46rem; }
.adv__cols { display: grid; gap: 2rem; margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
@media (min-width: 52rem) { .adv__cols { grid-template-columns: 7fr 5fr; } }
.adv__cols h4 { font: 500 var(--text-xs)/1.4 var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-muted); margin: 0 0 0.9rem; }
.chips-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chips-list li { font-size: var(--text-sm); color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.8rem; transition: border-color 0.2s ease, background 0.2s ease; }
.chips-list li:hover { border-color: var(--teal-ink); background: rgba(63, 216, 201, 0.08); }
.grounded { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.grounded li { position: relative; padding-left: 1.4rem; font-size: var(--text-sm); }
.grounded li::before { content: ""; position: absolute; left: 0; top: 0.5rem; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--teal-ink); }
.grounded a { color: var(--navy); text-decoration-color: rgba(15, 127, 120, 0.4); }
.grounded a:hover { color: var(--teal-ink); }
.adv__note { margin-top: 1.1rem; font-size: var(--text-sm); color: var(--ink-muted); padding: 0.8rem 1rem; border-left: 2px solid var(--teal-ink); background: rgba(255, 255, 255, 0.6); }

/* ---------- Foundations ---------- */
.fnd-wrap { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 62rem) { .fnd-wrap { grid-template-columns: 5fr 7fr; } }
.fnd-art { width: 100%; max-width: 30rem; margin-inline: auto; overflow: visible; }
.fnd-art__c { fill-opacity: 0.08; stroke-width: 1.2; }
.fnd-art__c--a { fill: var(--teal); stroke: rgba(89, 240, 223, 0.55); }
.fnd-art__c--b { fill: var(--electric); stroke: rgba(91, 141, 255, 0.55); }
.fnd-art__c--c { fill: #a9c3e2; stroke: rgba(169, 195, 226, 0.5); }
.fnd-art__dot { fill: var(--white); }
.fnd-art__t { font: 500 12px var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; fill: var(--on-dark-soft); }
.fnd-art__p { font: italic 300 22px var(--serif); fill: var(--white); }
.fnds { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: f; }
.fnd { position: relative; padding: 1.5rem 1.6rem 1.5rem 3.5rem; border: 1px solid var(--line-dark); border-radius: 4px; background: rgba(255, 255, 255, 0.03); transition: border-color 0.3s ease, background 0.3s ease, transform 0.4s var(--ease-out); }
.fnd:hover { border-color: rgba(89, 240, 223, 0.45); background: rgba(255, 255, 255, 0.05); transform: translateX(4px); }
.fnd__mark { position: absolute; left: 1.4rem; top: 1.85rem; width: 12px; height: 12px; border-radius: 50%; }
.fnd--enterprise .fnd__mark { background: var(--teal); box-shadow: 0 0 0 5px rgba(63, 216, 201, 0.15); }
.fnd--independent .fnd__mark { background: var(--electric); box-shadow: 0 0 0 5px rgba(91, 141, 255, 0.15); }
.fnd--knowledge .fnd__mark { background: var(--sky); box-shadow: 0 0 0 5px rgba(169, 195, 226, 0.15); }
.fnd h3 { color: var(--white); font-size: var(--step-1); font-weight: 400; margin-bottom: 0.4rem; }
.fnd p { color: var(--on-dark-soft); font-size: var(--text-sm); margin-bottom: 0.6rem; }
.fnd .text-link { color: var(--teal); }
.fineprint { margin-top: 1.25rem !important; font-size: var(--text-xs); color: rgba(231, 235, 241, 0.55) !important; max-width: 44rem; }

/* ---------- Home: advisory teaser ---------- */
.tz { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 62rem) { .tz { grid-template-columns: 5fr 7fr; } }
.tz h2 { max-width: 18ch; }
.tz__text { color: var(--ink-soft); font-size: var(--step-1); font-family: var(--serif); line-height: 1.45; max-width: 36rem; }
.tz__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.tz__list a { display: flex; align-items: center; gap: 0.8rem; height: 100%; padding: 1rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: 4px; color: var(--navy); text-decoration: none; font-weight: 500; font-size: var(--text-sm); transition: border-color 0.3s ease, transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out); }
.tz__list a:hover { border-color: var(--teal-ink); transform: translateY(-3px); box-shadow: 0 14px 30px -20px rgba(10, 23, 41, 0.4); }
.tz__icon { flex: none; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); transition: background 0.3s ease; }
.tz__list a:hover .tz__icon { background: var(--navy); }
.tz__list a:hover .ill { stroke: var(--teal); }
.tz__icon .ill { width: 1.15rem; height: 1.15rem; }

/* ---------- Navigation: 8 items need more room ---------- */
.site-nav a { padding-inline: 0.6rem; font-size: var(--text-sm); }
@media (min-width: 60.01rem) and (max-width: 72rem) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav-toggle { position: relative; z-index: 2; }
  .js .site-nav { position: fixed; inset: 0; padding-top: calc(var(--header-h) + 1rem); visibility: hidden; opacity: 0; z-index: 1; overflow-y: auto;
    background: radial-gradient(600px 400px at 90% 0%, rgba(63, 216, 201, 0.12), transparent 60%), var(--navy); transition: opacity 0.3s ease, visibility 0s linear 0.3s; }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transition: opacity 0.3s ease; }
  .js .site-nav ul { flex-direction: column; padding: 0.25rem var(--gutter) 1.5rem; }
  .js .site-nav a { font-family: var(--serif); font-size: var(--step-3); padding: 1rem 0; color: var(--on-dark); border-bottom: 1px solid var(--line-dark); }
  .js .site-nav a::after { display: none; }
}

/* ---------- v4 motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .orb__spin { animation: orb-in 1.4s var(--ease-out) 0.2s both; transform-origin: 320px 320px; }
  @keyframes orb-in { from { transform: rotate(-24deg) scale(0.92); } }
  .orb__rings circle:first-child { animation: ring 80s linear infinite; }
  .orb__spokes line { stroke-dasharray: 1; animation: draw 1.6s var(--ease-out) 0.6s both; }
  .orb__halo { transform-box: fill-box; transform-origin: center; animation: breathe 4.5s ease-in-out infinite alternate; }
  .orb__node:nth-child(odd) .orb__halo { animation-delay: -2.2s; }
  .orb__glow { transform-box: fill-box; transform-origin: center; animation: breathe 5s ease-in-out infinite alternate; }
  .orb__labels text { animation: rise 1s var(--ease-out) 1s both; }
  .adv-hero__art { transform: translate3d(calc(var(--px, 0) * -12px), calc(var(--py, 0) * -8px), 0); transition: transform 0.6s var(--ease-out); }
  .adv__panel:not([data-hidden]) { animation: panel-in 0.55s var(--ease-out); }
  .adv__panel:not([data-hidden]) .chips-list li { animation: chip-in 0.5s var(--ease-out) both; }
  .adv__panel:not([data-hidden]) .chips-list li:nth-child(n+2) { animation-delay: 0.03s; } .adv__panel:not([data-hidden]) .chips-list li:nth-child(n+4) { animation-delay: 0.08s; }
  .adv__panel:not([data-hidden]) .chips-list li:nth-child(n+6) { animation-delay: 0.13s; } .adv__panel:not([data-hidden]) .chips-list li:nth-child(n+8) { animation-delay: 0.18s; }
  @keyframes chip-in { from { transform: translateY(8px); } }
  .adv__panel:not([data-hidden]) .adv__icon { animation: pop-ring 0.8s var(--ease-out); }
  @keyframes pop-ring { from { transform: scale(0.85) rotate(-20deg); } }
  .fnd-art__c { transform-box: fill-box; transform-origin: center; }
  @supports (animation-timeline: view()) {
    .fnd-art__c--a { animation: fnd-a linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    .fnd-art__c--b { animation: fnd-b linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    .fnd-art__c--c { animation: fnd-c linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes fnd-a { from { transform: translate(-50px, -30px); } }
    @keyframes fnd-b { from { transform: translate(50px, -30px); } }
    @keyframes fnd-c { from { transform: translate(0, 50px); } }
    .fnd, .role, .tz__list li, .interests li, .adv { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
  .fnd-art__core { transform-box: fill-box; transform-origin: center; animation: breathe 4s ease-in-out infinite alternate; }
}


/* ==========================================================================
   v6 — Cinematic moments + editorial reading (approved combination)
   ========================================================================== */

/* ---------- Cinematic home hero ---------- */
.hero--cine {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 980px); display: grid; grid-template-rows: 1fr auto;
  padding-block: clamp(2.5rem, 6vw, 4rem) 0;
  background: radial-gradient(1100px 700px at 75% 35%, rgba(46, 92, 170, 0.28), transparent 60%),
              radial-gradient(800px 600px at 12% 95%, rgba(79, 227, 210, 0.07), transparent 60%), #070d19;
}
.hero--cine .hero__grid-bg, .hero--cine::before { display: none; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__veil { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 13, 25, 0.94) 0%, rgba(7, 13, 25, 0.6) 40%, transparent 66%); }
.hero--cine .hero__grid { align-items: center; }
@media (min-width: 62rem) { .hero--cine .hero__grid { grid-template-columns: 7fr 5fr; } }
.hero--cine .hero__name { font-size: var(--display-xl); line-height: 0.88; letter-spacing: -0.045em; }
.hero--cine .hero__family { display: block; width: auto; padding-left: 0.45em; color: #9fd3e8; background: none; -webkit-background-clip: border-box; background-clip: border-box; text-shadow: 0 0 60px rgba(79, 227, 210, 0.25); }
.hero--cine .hero__family::after { display: none; }
.hero--cine .hero__plate { position: relative; left: auto; top: auto; width: min(100%, 22rem); justify-self: end; align-self: start; margin-top: clamp(1rem, 4vw, 4.5rem); animation: none; translate: none; }
.hero--cine .hero__plate .portrait img { aspect-ratio: 4 / 5; }
@media (max-width: 61.99rem) {
  .hero--cine .hero__plate { justify-self: start; width: 14rem; }
  .hero__veil { background: linear-gradient(180deg, rgba(7, 13, 25, 0.88), rgba(7, 13, 25, 0.62)); }
}

/* ---------- Pinned story: three layers ---------- */
.layers { position: relative; background: linear-gradient(180deg, #070d19, #10151d); color: var(--on-dark); }
.layers__sticky { padding-block: var(--section); }
.layers__grid { display: grid; gap: 2rem 4vw; align-items: center; }
@media (min-width: 62rem) { .layers__grid { grid-template-columns: 5fr 7fr; } }
.layers h2 { color: var(--white); font-size: var(--step-4); line-height: 1; letter-spacing: -0.03em; margin-bottom: 2rem; }
.layers h2 em { color: var(--teal); font-weight: 300; }
.layers__canvas { width: 100%; height: clamp(320px, 60vh, 640px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.step__n { font: 500 var(--text-xs)/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); }
.step h3 { color: var(--white); font-size: var(--step-2); font-weight: 400; margin: 0.4rem 0 0.5rem; }
.step p { color: var(--on-dark-soft); max-width: 30rem; margin: 0; }
/* Motion on: the section pins and steps replace one another */
.motion .layers { height: 380vh; }
.motion .layers__sticky { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; padding-block: 0; overflow: hidden; }
.motion .steps { display: block; position: relative; min-height: 12rem; }
.motion .step { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.6s var(--ease-out); pointer-events: none; }
.motion .step.is-on { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 61.99rem) { .motion .layers__canvas { height: 42svh; order: -1; } .motion .layers { height: 320vh; } }

/* ---------- Horizontal career (Experience) ---------- */
.hcareer { position: relative; background: #10151d; color: var(--on-dark); }
.hcareer__sticky { padding-block: var(--section); }
.hcareer__head h2 { color: var(--white); font-size: var(--step-4); margin-bottom: 2.5rem; max-width: 18ch; }
.hcareer__head em { color: var(--teal); font-weight: 300; }
.hcareer__rail { height: 1px; margin: 0 var(--gutter) 2rem; background: var(--line-dark); position: relative; }
.hcareer__fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--teal), var(--electric)); transform-origin: left center; transform: scaleX(1); }
.hcareer__viewport { overflow-x: auto; scroll-snap-type: x proximity; padding: 0 var(--gutter) 1.5rem; scrollbar-width: thin; }
.hcareer__viewport:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.hcareer__track { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; width: max-content; }
.hcard { scroll-snap-align: start; width: min(78vw, 21rem); flex: none; padding: 1.75rem; border: 1px solid var(--line-dark); border-radius: 4px; position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), transparent); transition: border-color 0.3s ease, background 0.3s ease; }
.hcard::before { content: ""; position: absolute; left: 1.75rem; right: 1.75rem; top: 0; height: 1px; background: linear-gradient(90deg, var(--teal), transparent); }
.hcard:hover { border-color: rgba(89, 240, 223, 0.4); background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), transparent); }
.hcard__yr { margin: 0 0 1rem; font: 300 var(--step-4)/1 var(--serif); letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px rgba(232, 237, 244, 0.5); }
.hcard--key .hcard__yr { color: var(--teal); -webkit-text-stroke: 0; }
.hcard--future .hcard__yr { -webkit-text-stroke: 1px rgba(79, 227, 210, 0.6); }
.hcard .kicker { margin-bottom: 0.5rem; color: var(--sky); }
.hcard h3 { color: var(--white); font-size: var(--step-1); font-weight: 400; margin-bottom: 0.5rem; }
.hcard p:not(.kicker):not(.hcard__yr) { color: var(--on-dark-soft); font-size: var(--text-sm); margin-bottom: 0.8rem; }
.hcard .text-link { color: var(--teal); }
/* Motion on: pinned, vertical scroll drives the track */
.motion .hcareer { height: 340vh; }
.motion .hcareer__sticky { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; padding-block: 0; overflow: hidden; }
.motion .hcareer__viewport { overflow: visible; scroll-snap-type: none; }

/* ---------- Editorial page heroes (light) ---------- */
.ed-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4rem); overflow: hidden; }
.ed-hero__grid { display: grid; gap: 2rem 4vw; align-items: center; }
@media (min-width: 56rem) { .ed-hero__grid { grid-template-columns: 7fr 4fr; } }
.ed-hero h1 { font-size: var(--display); line-height: 0.98; letter-spacing: -0.04em; color: var(--navy); max-width: 16ch; font-weight: 400; }
.ed-hero h1 em, .ed-hero h1 cite { color: var(--teal-ink); font-weight: 300; }
.ed-hero__intro { max-width: 40rem; font: 300 var(--step-1)/1.5 var(--serif); color: var(--ink-soft); margin: 0; }
.ed-hero__intro a { color: var(--teal-ink); }
.ed-hero .eyebrow { color: var(--teal-ink); }
.ed-hero .breadcrumb a { color: var(--ink-muted); }
.ed-hero .breadcrumb a:hover { color: var(--navy); }
.ed-hero .breadcrumb li + li::before { color: var(--line-strong); }
.ed-hero .breadcrumb [aria-current] { color: var(--navy); }
.ed-hero__art { justify-self: center; width: 100%; max-width: 22rem; }
@media (max-width: 55.99rem) { .ed-hero__art { max-width: 15rem; justify-self: start; } }

/* Illustration system: shared vocabulary of line, soft line, teal, navy, electric */
.ed-ill, .toc-ed__ill { width: 100%; height: auto; overflow: visible; }
.i-line { fill: none; stroke: var(--navy); stroke-width: 1.6; }
.i-soft { fill: none; stroke: var(--navy); stroke-opacity: 0.32; stroke-width: 1.4; }
.i-blue { fill: none; stroke: var(--electric); stroke-width: 2.4; stroke-linecap: round; }
.i-dash { stroke-dasharray: 4 7; stroke-width: 1.6; }
.i-teal { fill: var(--teal); stroke: none; }
.i-navy { fill: var(--navy); stroke: none; }

/* ---------- Home contents (editorial, illustrated) ---------- */
.contents-ed { display: grid; gap: 2rem 6vw; align-items: center; }
@media (min-width: 56rem) { .contents-ed { grid-template-columns: 7fr 5fr; } }
.toc-ed { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy); }
.toc-ed a { display: grid; grid-template-columns: 3rem 1fr auto; align-items: baseline; gap: 1rem; padding: 1.3rem 0.25rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--navy); position: relative; overflow: hidden; isolation: isolate; }
.toc-ed a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease-out); }
.toc-ed a > * { transition: color 0.35s ease, transform 0.5s var(--ease-out); }
.toc-ed__n { font: italic 300 var(--step-2) var(--serif); color: var(--teal-ink); }
.toc-ed__t { font: 400 var(--step-3)/1.05 var(--serif); letter-spacing: -0.02em; }
.toc-ed__d { font: 500 var(--text-xs)/1.3 var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-muted); text-align: right; }
.toc-ed a:hover::before, .toc-ed a:focus-visible::before { transform: scaleY(1); }
.toc-ed a:hover > *, .toc-ed a:focus-visible > * { color: var(--paper); }
.toc-ed a:hover .toc-ed__n, .toc-ed a:focus-visible .toc-ed__n { color: var(--teal); }
.toc-ed a:hover .toc-ed__t, .toc-ed a:focus-visible .toc-ed__t { transform: translateX(12px); }
.toc-ed a:focus-visible { outline: 2px solid var(--electric); outline-offset: 2px; }
@media (max-width: 40rem) { .toc-ed__d { display: none; } .toc-ed a { grid-template-columns: 2.4rem 1fr; } }
.toc-ed__stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 26rem; justify-self: center; }
.toc-ed__ill { position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s ease; }
.toc-ed__ill.is-on { opacity: 1; }
@media (max-width: 55.99rem) { .toc-ed__stage { display: none; } }

/* With GSAP active, CSS-only scroll reveals step aside to avoid double motion */
.motion .section-head, .motion .entry, .motion .card, .motion .xcard, .motion .role, .motion .fnd,
.motion .ecard, .motion .award, .motion .ms, .motion .principles li, .motion .interests li, .motion .domain,
.motion .bio-block, .motion .tz__list li, .motion .adv, .motion .book__body, .motion .idx li, .motion .record-legend,
.motion .work-group__head, .motion .profiles li, .motion .statement, .motion .timeline li, .motion .creds li, .motion .chap { animation: none; }


/* ==========================================================================
   v7 — Consistency layer: one dark family, one light family, one accent rule.
   (Last in the cascade on purpose: it normalises earlier layers.)
   ========================================================================== */
:root {
  --dark-1: #070d19;            /* cinematic opening (home hero) */
  --dark-2: #0b1528;            /* every other dark band */
  --dark-grad: radial-gradient(900px 520px at 85% 0%, rgba(46, 92, 170, 0.22), transparent 62%), linear-gradient(180deg, #0b1528, #0a1322);
}

/* One dark family */
.section--deep, .section--dark, .layers, .hcareer { background: var(--dark-grad); }
.cred-band { background: var(--dark-1); }
.site-header, .site-footer { background: var(--dark-1); }
.js .site-nav { background-color: var(--dark-1); }

/* One accent rule: teal-ink on light, teal on dark — kickers, italics, numerals */
.kicker, .eyebrow { color: var(--teal-ink); }
.kicker--muted { color: var(--ink-muted); }
.section--deep .kicker, .section--deep .eyebrow, .layers .kicker, .hcareer .kicker, .hero .kicker,
.cred-band .kicker, .kicker--light { color: var(--teal); }
.hero .kicker--muted, .cred-band .kicker { color: var(--on-dark-soft); }
h1 em, h2 em, h3 em { color: var(--teal-ink); }
.section--deep h1 em, .section--deep h2 em, .layers h2 em, .hcareer h2 em, .cta h2 em, .hero h1 em { color: var(--teal); }
.section--white h2 em, .section--warm h2 em, .section:not(.section--deep) h2 em { color: var(--teal-ink); }

/* Advisory hero joins the editorial (light) hero family; the orbit is redrawn in ink */
.adv-hero { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.adv-hero .hero__grid-bg { display: none; }
.adv-hero__title { color: var(--navy); }
.adv-hero__title em { color: var(--teal-ink); background: none; -webkit-background-clip: border-box; background-clip: border-box; }
.adv-hero .page-hero__intro { color: var(--ink-soft); font: 300 var(--step-1)/1.5 var(--serif); }
.adv-hero .breadcrumb a { color: var(--ink-muted); }
.adv-hero .breadcrumb [aria-current] { color: var(--navy); }
.adv-hero .breadcrumb li + li::before { color: var(--line-strong); }
.adv-hero .btn--ghost { color: var(--navy); border-color: var(--line-strong); }
.adv-hero .btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.adv-hero .hero__kicker { color: var(--teal-ink); }
.orb__rings circle { stroke: rgba(10, 23, 41, 0.14); }
.orb__rings circle:first-child { stroke: rgba(15, 127, 120, 0.45); }
.orb__spokes line { stroke: rgba(15, 127, 120, 0.3); }
.orb__halo { fill: rgba(63, 216, 201, 0.16); }
.orb__core { fill: var(--navy); stroke: var(--teal); }
.orb__center { fill: var(--navy); }
.orb__center-t { fill: var(--navy); }
.orb__labels text { fill: var(--navy); }

/* Buttons: primary action is always the glow button on dark, the ink button on light */
.ed-hero .btn--glow, .section--white .btn--glow, .section--warm .btn--glow { box-shadow: 0 10px 26px -14px rgba(15, 127, 120, 0.55); }

.showcase--cards { grid-template-columns: 1fr; }
@media (min-width: 62rem) { .showcase--cards .ecards { grid-template-columns: 1fr 1fr; } }

.hero__role--light { margin-top: 2rem; border-top-color: var(--line); color: var(--ink-muted); }
.hero__role--light strong { color: var(--navy); }
div.xcard__link { cursor: default; }

/* ---------- Speaking: event photographs ---------- */
.shots { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .shots { grid-template-columns: 1fr 1fr; } }
.shot { position: relative; margin: 0; overflow: hidden; border-radius: 4px; background: var(--dark-1); isolation: isolate; }
.shot img { display: block; width: 100%; height: auto; object-fit: cover; aspect-ratio: 3 / 2; transition: transform 1.2s var(--ease-out); }
.shot:hover img { transform: scale(1.035); }
.shot figcaption { position: absolute; inset: auto 0 0 0; display: grid; gap: 0.2rem; padding: 3rem 1.25rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(7, 13, 25, 0.88) 55%); color: var(--on-dark); }
.shot__event { font: 400 var(--step-1)/1.2 var(--serif); color: var(--white); }
.shot__session { font-size: var(--text-sm); color: var(--on-dark-soft); }
.shot__date { font: 400 var(--text-xs)/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.award--wide { margin-bottom: 2rem; }
@media (min-width: 52rem) {
  .award--wide { grid-template-columns: 7fr 5fr; align-items: center; }
  .award--wide .award__photo { height: 100%; aspect-ratio: auto; min-height: 22rem; }
  .award--wide .award__year { left: 1.25rem; right: auto; }
}
.award__text { color: var(--on-dark-soft); font-size: var(--text-sm); }
.award__src a { color: var(--teal); }
@media (max-width: 39.99rem) {
  .shot figcaption { position: static; padding: 1rem 1.1rem 1.15rem; background: var(--dark-1); }
  .shot:hover img { transform: none; }
}
.award--photo { padding: 0; min-height: 0; align-content: start; gap: 0; }
.award__photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.award--photo .award__year { position: absolute; top: 1rem; right: 1.25rem; font-size: var(--step-4); text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.award--photo .award__body { padding: 1.5rem clamp(1.4rem, 3vw, 2rem) 1.75rem; }
.award--photo::after { display: none; }

/* ---------- Contact: follow channels ---------- */
.follow { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy); }
.follow a { display: grid; grid-template-columns: 9rem 1fr auto; align-items: baseline; gap: 1rem; padding: 1.15rem 0.25rem; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--navy); transition: padding 0.35s var(--ease-out), background 0.3s ease; }
.follow a:hover, .follow a:focus-visible { padding-left: 0.9rem; background: rgba(63, 216, 201, 0.08); }
.follow__name { font: 400 var(--step-2)/1.1 var(--serif); }
.follow__desc { font-size: var(--text-sm); color: var(--ink-muted); }
.follow .arrow { color: var(--teal-ink); }
@media (max-width: 40rem) { .follow a { grid-template-columns: 1fr auto; } .follow__desc { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- Career chapters (story, not CV) ---------- */
.chaps { display: grid; gap: 0; border-top: 1px solid var(--navy); }
.chap { display: grid; gap: 1.5rem 4vw; padding-block: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
@media (min-width: 56rem) { .chap { grid-template-columns: 3fr 9fr; } }
.chap__mark { position: relative; }
.chap__num { display: block; font: italic 300 var(--display-num)/0.85 var(--serif); letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px var(--teal-ink); }
.chap:last-child .chap__num { color: var(--teal-ink); -webkit-text-stroke: 0; }
@media (min-width: 56rem) { .chap__mark .chap__num { position: sticky; top: calc(var(--header-h) + 2rem); } }
.chap__title { font-size: var(--step-3); font-weight: 400; margin-bottom: 1rem; max-width: 20ch; }
.chap__story { font: 300 var(--step-1)/1.55 var(--serif); color: var(--ink-soft); max-width: 44rem; margin-bottom: 1.75rem; }
.chap__roles { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 46rem; }
.chap__roles li { display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1.5rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 44rem) { .chap__roles li { grid-template-columns: 1.4fr 1fr auto; align-items: baseline; } }
.chap__role { font-weight: 500; color: var(--navy); font-size: var(--text-sm); }
.chap__org { color: var(--teal-ink); font-size: var(--text-sm); }
.chap__when { font: 400 var(--text-xs)/1.5 var(--mono); letter-spacing: 0.04em; color: var(--ink-muted); text-align: right; white-space: nowrap; }
@media (max-width: 43.99rem) { .chap__when { grid-column: 2; grid-row: 1; } .chap__org { grid-column: 1 / -1; } }
.chap__links-t { font: 500 var(--text-xs)/1.4 var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-muted); margin: 0 0 0.6rem; }
.chap__links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.cta--light h2 { color: var(--navy); }
.cta--light p { color: var(--ink-soft); }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .book-cover { transform: none; }
}
@media print {
  .site-header, .site-footer, .skip-link, .nav-toggle, .actions, .copy-btn, .archive-tools, .section--deep, .record-wrap, .record-legend { display: none !important; }
  body, .section--white, .hero, .page-hero { background: #fff !important; color: #000 !important; font-size: 11pt; }
  .hero h1, .page-hero h1, .hero__family { color: #000 !important; }
  .section { padding-block: 1.5rem; }
  a { color: #000; }
}

/* ---------- Instruments: signature hero graphics (build.py, "Instruments") ----------
   Precision-instrument line art. Complete and static by default; motion is layered on
   only when the visitor has not asked for reduced motion. */
.ins { overflow: visible; }
.ins-line { fill: none; stroke: var(--navy); stroke-width: 1.4; }
.ins-soft { fill: none; stroke: var(--navy); stroke-opacity: 0.26; stroke-width: 1.1; }
.ins-rule { fill: none; stroke: var(--navy); stroke-opacity: 0.18; stroke-width: 1; stroke-dasharray: 1 5; stroke-linecap: round; }
.ins-tick { fill: none; stroke: var(--navy); stroke-opacity: 0.45; stroke-width: 0.9; }
.ins-tick--major { stroke-opacity: 0.9; stroke-width: 1.3; }
.ins-node { fill: var(--navy); }
.ins-navy { fill: var(--navy); }
.ins-teal { fill: var(--teal); }
.ins-hub { fill: var(--paper); stroke: var(--navy); stroke-width: 1.4; }
.ins-mark { fill: var(--teal); stroke: var(--paper); stroke-width: 2; }
.ins-target { fill: var(--teal); stroke: var(--navy); stroke-width: 1.4; }
.ins-out { fill: none; stroke: var(--teal-ink); stroke-width: 2.6; stroke-linecap: round; }
.ins-progress { fill: none; stroke: var(--teal); stroke-width: 4; stroke-linecap: round; }
.ins-hand { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; }
.ins-hand--fine { stroke: var(--teal-ink); stroke-width: 1.4; }
.ins-flow { fill: none; stroke: var(--electric); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0.1 18; opacity: 0; }
.ins-flow--out { stroke: var(--teal); stroke-width: 3; }
.ins-wave, .ins-ripple { fill: none; stroke: var(--teal-ink); stroke-width: 1; opacity: 0; }
.ins-blade { fill: var(--navy); fill-opacity: 0.025; stroke: var(--navy); stroke-opacity: 0.42; stroke-width: 1; }
.ins-label { font: 500 11px var(--mono); letter-spacing: var(--track-label); fill: var(--ink-muted); }
.ins-label--strong { fill: var(--teal-ink); }
/* Rotating parts turn about their own centre (or pivot) whatever group they sit in. */
.ins-spin, .ins-sweep, .ins-turn, .ins-blade, .ins-wave, .ins-ripple, .ins-iris, .ins-glint { transform-box: fill-box; transform-origin: 50% 50%; }
.ins-sweep { transform-origin: 50% 100%; }
.ins-turn { transform-origin: 50% 100%; }
.ins-blade { transform-origin: 0% 0%; }

@media (prefers-reduced-motion: no-preference) {
  .ins-draw { animation: ins-draw 1.9s var(--ease-out) 0.15s backwards; }
  .ins-draw--slow { animation-duration: 2.8s; animation-delay: 0.6s; }
  .ins-spin { animation: ins-rot 120s linear infinite; }
  .ins-spin--slow { animation-duration: 240s; }
  .ins-spin--rev { animation-direction: reverse; }
  .ins-sweep { animation: ins-rot 14s linear infinite; }
  .ins-turn { animation: ins-turn 9s var(--ease-soft) infinite alternate; }
  .ins-flow { opacity: 1; animation: ins-flow 2.6s linear infinite, ins-fade 1.2s ease 1.4s backwards; }
  .ins-flow--out { animation-duration: 1.6s, 1.2s; }
  .ins-wave { animation: ins-wave 4.2s var(--ease-out) infinite; }
  .ins-wave--2 { animation-delay: 1.4s; }
  .ins-wave--3 { animation-delay: 2.8s; }
  .ins-ripple { animation: ins-ripple 3s var(--ease-out) 2s infinite; }
  .ins-ripple--2 { animation-delay: 3.5s; }
  .ins-blade { animation: ins-iris 7s var(--ease-soft) infinite alternate; }
  .ins-glint { animation: ins-breathe 7s var(--ease-soft) infinite alternate; }
}
@keyframes ins-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes ins-rot { to { transform: rotate(360deg); } }
@keyframes ins-turn { from { transform: rotate(-56deg); } to { transform: rotate(56deg); } }
@keyframes ins-flow { to { stroke-dashoffset: -36.2; } }
@keyframes ins-fade { from { opacity: 0; } }
@keyframes ins-wave { 0% { transform: scale(0.16); opacity: 0.9; } 100% { transform: scale(1); opacity: 0; } }
@keyframes ins-ripple { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes ins-iris { from { transform: rotate(-6deg); } to { transform: rotate(10deg); } }
@keyframes ins-breathe { from { transform: scale(0.75); } to { transform: scale(1.25); } }

/* ---------- Contact: one preferred channel ---------- */
.btn--lg { padding: 1.15rem 1.8rem; font-size: var(--step-0); }
.contact-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.contact-cta__note { margin: 0; display: grid; gap: 0.3rem; font: 500 var(--text-xs)/1.4 var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-muted); }
.contact-cta__note .kicker { margin: 0; color: var(--teal-ink); }

.channel__grid { display: grid; gap: 3rem 6vw; align-items: center; }
@media (min-width: 56rem) { .channel__grid { grid-template-columns: 5fr 7fr; } }
/* Portrait composed like a print campaign: tall frame, hairline corners, caption below. */
.channel__portrait { position: relative; margin: 0; max-width: 26rem; justify-self: center; width: 100%; }
.channel__portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; filter: saturate(0.92) contrast(1.04); }
.channel__frame { position: relative; }
.channel__frame::before, .channel__frame::after { content: ""; position: absolute; width: 2.4rem; height: 2.4rem; border: 1px solid var(--teal); pointer-events: none; }
.channel__frame::before { top: -0.9rem; left: -0.9rem; border-right: 0; border-bottom: 0; }
.channel__frame::after { bottom: -0.9rem; right: -0.9rem; border-left: 0; border-top: 0; }
.channel__portrait figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line-dark); margin-top: 1.6rem;
  font: 500 var(--text-xs)/1.4 var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--on-dark-soft); }
.channel__portrait figcaption span:last-child { text-align: right; max-width: 60%; }
.channel h2 { font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.03em; font-weight: 400; margin-bottom: 1rem; }
.channel h2 em { color: var(--teal); font-weight: 300; }
.channel__lead { color: var(--on-dark-soft); font: 300 var(--step-1)/1.5 var(--serif); max-width: 34rem; margin-bottom: 2rem; }
.routes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); counter-reset: none; }
.route { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line-dark); }
.route__n { font: 300 var(--step-2)/1 var(--serif); font-style: italic; color: var(--teal); }
.route h3 { font-size: var(--step-1); font-weight: 400; margin: 0 0 0.35rem; color: var(--white); }
.route p { margin: 0 0 0.5rem; color: var(--on-dark-soft); font-size: var(--text-sm); }
.route__inc { font: 400 var(--text-xs)/1.5 var(--mono); letter-spacing: 0.04em; color: var(--on-dark) !important; }
.route__inc span { display: inline-block; margin-right: 0.6rem; padding: 0.15rem 0.45rem; border: 1px solid rgba(63, 216, 201, 0.45); color: var(--teal); letter-spacing: var(--track-label); text-transform: uppercase; }
.section--deep .route .text-link { color: var(--sky); font-size: var(--text-sm); }
.section--deep .route .text-link:hover { color: var(--white); }
.channel__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2.2rem; }
.channel__fine { margin: 0; font-size: var(--text-sm); color: var(--on-dark-soft); }
@media (prefers-reduced-motion: no-preference) {
  .route { transition: background-color 0.3s ease; }
  .route:hover { background: linear-gradient(90deg, rgba(63, 216, 201, 0.06), transparent 70%); }
  .route__n { transition: transform 0.4s var(--ease-out); }
  .route:hover .route__n { transform: translateX(4px); }
}
