/* HYPERHART. The Architecture of Curiosity
   Tokens follow HYPERHART_DESIGN_SPEC section 2. Fonts are self-hosted (SIL OFL). */

@font-face { font-family: 'Space Grotesk'; src: url('/assets/fonts/space-grotesk-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/assets/fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/assets/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bodoni Moda'; src: url('/assets/fonts/bodoni-moda-latin-500-italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Bodoni Moda'; src: url('/assets/fonts/bodoni-moda-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --void: #08070b;
  --obsidian: #15111d;
  --ultraviolet: #251438;
  --hyperviolet: #8528e8;
  --lavender: #c18aff;
  --neurohype-blue: #32c9e4;
  --ivory: #f1eee8;
  --muted: #918a9e;
  --pink: #e48bff;
  --signal: #bfff73;

  --accent-intelligence: var(--neurohype-blue);
  --accent-identity: var(--hyperviolet);
  --accent-expression: var(--pink);
  --accent-editorial: var(--lavender);
  --accent-signal: var(--signal);

  /* NeuroHype project palette, used only inside its own project panel */
  --nh-boost: #ef9e33;
  --nh-control: #32c9e4;
  --nh-restore: #7e58e3;

  --line: rgba(241, 238, 232, .15);
  --line-strong: rgba(241, 238, 232, .32);
  --font-display: 'Space Grotesk', Arial, sans-serif;
  --font-body: 'Space Grotesk', Arial, sans-serif;
  --font-editorial: 'Bodoni Moda', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --gutter: clamp(20px, 5vw, 88px);
  --section-space: clamp(84px, 12vw, 184px);
  --max-width: 1600px;
  --header-h: 68px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 180ms;
  --t-medium: 420ms;
  --t-slow: 760ms;
}

* { box-sizing: border-box; }
html { background: var(--void); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ivory); background: var(--void); font: 400 17px/1.65 var(--font-body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { color: var(--void); background: var(--lavender); }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 5px; }
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 700; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

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

.shell { max-width: var(--max-width); padding-inline: var(--gutter); margin-inline: auto; }
.editorial-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 2vw, 32px); }
.kicker { font: 500 11px/1.45 var(--font-mono); text-transform: uppercase; letter-spacing: .13em; color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.dot { color: var(--lavender); }
.accent-blue { color: var(--accent-intelligence); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ivory); color: var(--void); padding: 10px 16px; font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }

/* links and buttons */
.text-link { position: relative; text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: .35em; transition: color var(--t-fast) var(--ease-out), text-decoration-color var(--t-fast) var(--ease-out); }
.text-link:hover, .text-link:focus-visible { color: var(--lavender); text-decoration-color: var(--lavender); }
.cta {
  display: inline-flex; align-items: center; gap: .6em; min-height: 46px; padding: 0 20px;
  border: 1px solid var(--ivory); background: var(--ivory); color: var(--void);
  font: 500 13px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; cursor: pointer;
  border-radius: 2px; transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast);
}
.cta::after { content: '\2197'; font-family: var(--font-body); }
.cta[href^="#"]::after { content: '\2193'; }
.cta:hover, .cta:focus-visible { background: var(--lavender); border-color: var(--lavender); }

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--hyperviolet), var(--lavender) 60%, var(--neurohype-blue)); }
@supports (animation-timeline: scroll()) {
  .progress span { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h); transition: background var(--t-medium) var(--ease-out), border-color var(--t-medium); border-bottom: 1px solid transparent; }
.site-header.is-solid { background: rgba(8, 7, 11, .92); border-bottom-color: var(--line); backdrop-filter: blur(8px); }
.header-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font: 700 19px/1 var(--font-display); letter-spacing: -.04em; text-decoration: none; }
.header-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.header-index { display: flex; gap: clamp(14px, 2vw, 28px); }
.header-index a, .header-contact { font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; color: var(--ivory); padding: 14px 0; transition: color var(--t-fast); }
.header-index a .n { color: var(--muted); margin-right: 4px; }
.header-index a:hover, .header-index a:focus-visible, .header-contact:hover, .header-contact:focus-visible, .header-index a[aria-current='true'] { color: var(--lavender); }
.header-contact { border-bottom: 1px solid var(--lavender); padding-bottom: 4px; }
.index-button { display: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); background: transparent; font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; cursor: pointer; border-radius: 2px; }
.index-button:hover { border-color: var(--lavender); color: var(--lavender); }

/* index overlay */
.index-overlay { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--void); color: var(--ivory); }
.index-overlay::backdrop { background: var(--void); }
.index-overlay[open] { animation: overlay-in 360ms var(--ease-out); }
@keyframes overlay-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.overlay-inner { min-height: 100%; display: flex; flex-direction: column; padding-block: 22px 32px; }
.overlay-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4vh; }
.overlay-close { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); background: transparent; font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; cursor: pointer; border-radius: 2px; }
.overlay-list { border-top: 1px solid var(--line); }
.overlay-list a { display: grid; grid-template-columns: 3em 1fr; gap: 0 12px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.overlay-list .n { font: 500 12px/2.6 var(--font-mono); color: var(--muted); grid-row: span 2; }
.overlay-list .t { font: 700 clamp(30px, 8vw, 72px)/1 var(--font-display); letter-spacing: -.05em; }
.overlay-list .d { color: var(--muted); font-size: 15px; margin-top: 4px; }
.overlay-list a:hover .t, .overlay-list a:focus-visible .t { color: var(--lavender); }
.overlay-foot { margin-top: auto; padding-top: 24px; }
.overlay-foot a { color: var(--ivory); }

/* 00 hero */
.hero { position: relative; min-height: 92svh; padding-top: calc(var(--header-h) + clamp(32px, 7vh, 88px)); display: flex; flex-direction: column; justify-content: space-between; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(60% 55% at 78% 30%, rgba(133, 40, 232, .22), transparent 70%), radial-gradient(30% 30% at 92% 70%, rgba(50, 201, 228, .07), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 2vw, 32px); align-items: end; width: 100%; }
.hero-copy { grid-column: 1 / span 8; }
.hero-kicker { letter-spacing: .5em; margin-bottom: clamp(12px, 2vw, 22px); }
.masthead { display: block; font: 700 clamp(64px, 12.4vw, 200px)/.82 var(--font-display); letter-spacing: -.075em; margin-left: -.05em; white-space: nowrap; }
.hi-ai { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(16px, 2vw, 26px); padding-top: 12px; position: relative; max-width: min(100%, 64vw); font: 500 clamp(11px, 1vw, 14px)/1.3 var(--font-mono); letter-spacing: .32em; text-transform: uppercase; }
.hi-ai::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--hyperviolet), var(--lavender) 45%, var(--neurohype-blue)); }
.hi-ai .hi { color: var(--lavender); }
.hi-ai .ai { color: var(--neurohype-blue); text-align: right; }
.hero-headline { margin: clamp(36px, 6vh, 64px) 0 14px; font: italic 500 clamp(30px, 3.6vw, 58px)/1.08 var(--font-editorial); color: var(--ivory); max-width: 18ch; }
.hero-bio { max-width: 56ch; color: rgba(241, 238, 232, .82); font-size: clamp(16px, 1.25vw, 19px); }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 26px; }
.hero-links .text-link { font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; padding: 12px 0; }

.hero-plate { grid-column: 9 / span 4; position: relative; border: 1px solid var(--line); padding: 18px 18px 14px; background: rgba(21, 17, 29, .55); align-self: end; margin-bottom: 6px; }
.plate-head { display: flex; justify-content: space-between; font: 500 11px/1 var(--font-mono); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.plate-list a { display: grid; grid-template-columns: 2.4em 1fr auto; align-items: baseline; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: color var(--t-fast) var(--ease-out), padding var(--t-medium) var(--ease-out); }
.plate-list li:last-child a { border-bottom: 0; }
.plate-list .n { font: 500 11px/1 var(--font-mono); color: var(--muted); }
.plate-list .t { font: 500 clamp(17px, 1.4vw, 21px)/1.1 var(--font-display); letter-spacing: -.02em; }
.plate-list .tag { font: 400 11px/1 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.plate-list a:hover, .plate-list a:focus-visible { color: var(--lavender); padding-left: 6px; }
.plate-list a:hover .tag, .plate-list a:focus-visible .tag { color: var(--neurohype-blue); }
.plate-mark { position: absolute; width: 22px; height: 22px; top: -11px; right: -11px; stroke: var(--line-strong); fill: none; stroke-width: 1.2; }

.hero > .shell { width: 100%; }
.hero-strip { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; margin-top: clamp(40px, 8vh, 80px); border-top: 1px solid var(--line); }
.signal-dot::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); margin-right: 8px; vertical-align: 1px; }

/* chapters */
.chapter { padding-block: var(--section-space); border-bottom: 1px solid var(--line); position: relative; }
.section-head { max-width: 980px; margin-bottom: clamp(40px, 6vw, 88px); }
.section-head .kicker { display: block; margin-bottom: 18px; }
.section-head .num { color: var(--lavender); margin-right: 10px; }
.section-title { font: 700 clamp(40px, 7vw, 104px)/.95 var(--font-display); letter-spacing: -.065em; }
.section-lede { margin-top: 28px; max-width: 62ch; font-size: clamp(17px, 1.3vw, 20px); color: rgba(241, 238, 232, .85); }

/* 01 human */
.human-spread { align-items: start; row-gap: 48px; }
.human-quote { grid-column: 1 / span 6; margin: 0; padding-right: 2vw; }
.human-quote p { font: italic 500 clamp(30px, 3.9vw, 64px)/1.1 var(--font-editorial); color: var(--lavender); margin: 0; }
.human-quote::before { content: '\201C'; display: block; font: 500 clamp(64px, 7vw, 120px)/.6 var(--font-editorial); color: var(--hyperviolet); margin-bottom: 10px; }
.human-text { grid-column: 8 / span 5; max-width: 62ch; }
.human-text p { color: rgba(241, 238, 232, .86); }
.human-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }
.human-links .text-link { font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; padding: 12px 0; }
.human-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); margin: 0; }
.human-facts div { padding: 16px 16px 0 0; border-right: 1px solid var(--line); margin-right: 16px; }
.human-facts div:last-child { border-right: 0; }
.human-facts dt { font: 500 11px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .13em; color: var(--muted); }
.human-facts dd { margin: 6px 0 0; font-size: 16px; line-height: 1.35; }

/* career: the one ivory editorial panel */
.human { padding-bottom: 0; }
.career { margin-top: var(--section-space); background: var(--ivory); color: var(--void); padding-block: clamp(64px, 9vw, 128px); }
.career .kicker { color: #4a4553; }
.career-head { max-width: 900px; margin-bottom: clamp(36px, 5vw, 64px); }
.career-title { font: 700 clamp(36px, 5.6vw, 84px)/.95 var(--font-display); letter-spacing: -.06em; margin-top: 14px; }
.career-lede { margin-top: 22px; max-width: 58ch; font-size: clamp(16px, 1.25vw, 19px); color: #2c2833; }
.career-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 2vw, 32px); }
.career-rail { grid-column: 1 / span 3; }
.career-rail ol { position: sticky; top: calc(var(--header-h) + 32px); border-left: 1px solid rgba(8, 7, 11, .2); }
.career-rail a { display: block; padding: 10px 0 10px 18px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; font: 500 14px/1.3 var(--font-display); color: #4a4553; transition: color var(--t-fast), border-color var(--t-fast); }
.career-rail a .n { font: 500 11px/1 var(--font-mono); margin-right: 8px; }
.career-rail a:hover, .career-rail a:focus-visible { color: var(--void); }
.career-rail a[aria-current='true'] { color: var(--void); border-left-color: var(--hyperviolet); }
.chapters { grid-column: 4 / span 9; border-top: 1px solid rgba(8, 7, 11, .2); }
.chapter-item { border-bottom: 1px solid rgba(8, 7, 11, .2); }
.chapter-item summary { display: grid; grid-template-columns: 3em minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 22px 0; cursor: pointer; list-style: none; }
.chapter-item summary::-webkit-details-marker { display: none; }
.chapter-item summary .n { font: 500 12px/1 var(--font-mono); color: #4a4553; }
.chapter-item summary .t { font: 700 clamp(26px, 3vw, 44px)/1 var(--font-display); letter-spacing: -.05em; }
.chapter-item summary .s { font: italic 500 clamp(15px, 1.3vw, 19px)/1.2 var(--font-editorial); color: #4a4553; text-align: right; }
.chapter-item summary::after { content: '+'; grid-column: 3; grid-row: 1; justify-self: end; font: 400 22px/1 var(--font-mono); display: none; }
.chapter-item summary:hover .t { color: var(--hyperviolet); }
.roles { padding: 0 0 26px 3em; display: grid; gap: 4px; }
.roles li { display: grid; grid-template-columns: minmax(120px, 2fr) minmax(140px, 3fr) minmax(0, 7fr); gap: 4px 20px; padding: 14px 0; border-top: 1px dashed rgba(8, 7, 11, .18); }
.roles .when { font: 500 12px/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: #5d4a75; }
.roles .what { font-weight: 500; }
.roles .lesson { color: #2c2833; max-width: 60ch; }

/* 02 mind atlas */
.mind { background: linear-gradient(180deg, var(--void), var(--obsidian) 50%, var(--void)); }
.atlas { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 2vw, 32px); align-items: start; }
.atlas-map { grid-column: 1 / span 7; grid-row: 1; position: relative; aspect-ratio: 1; max-width: 680px; width: 100%; }
.atlas-svg { width: 100%; height: 100%; overflow: visible; }
.atlas-svg .orbit { fill: none; stroke: var(--line); stroke-width: 1; }
.atlas-svg .orbit.faint { stroke-dasharray: 2 6; }
.atlas-svg .spokes line { stroke: var(--line); stroke-width: 1; transition: stroke var(--t-medium) var(--ease-out); }
.atlas-svg .spokes line.is-active { stroke: var(--neurohype-blue); stroke-width: 1.5; stroke-dasharray: 220; stroke-dashoffset: 0; animation: trace 700ms var(--ease-out); }
@keyframes trace { from { stroke-dashoffset: 220; } to { stroke-dashoffset: 0; } }
.atlas-svg .ticks path { stroke: var(--line-strong); }
.atlas-svg .core { fill: var(--ultraviolet); stroke: var(--lavender); stroke-width: 1; }
.atlas-svg .core-label { fill: var(--ivory); font: 700 13px var(--font-display); letter-spacing: .14em; }
.atlas-svg .core-sub { fill: var(--lavender); font: italic 500 11px var(--font-editorial); }
.atlas-svg .fig { fill: var(--muted); font: 500 11px var(--font-mono); letter-spacing: .12em; }
.atlas-ui { display: contents; }
.atlas-nodes { grid-column: 1 / span 7; grid-row: 1; position: relative; aspect-ratio: 1; max-width: 680px; width: 100%; }
.atlas-nodes li { position: static; }
.node {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 10px; min-height: 44px; max-width: 220px; padding: 6px 14px 6px 6px;
  background: var(--void); border: 1px solid var(--line-strong); border-radius: 2px; cursor: pointer;
  font: 500 13px/1.2 var(--font-display); text-align: left; transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.node .n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); font: 500 11px/1 var(--font-mono); transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.node:hover { border-color: var(--lavender); }
.node[aria-pressed='true'] { border-color: var(--neurohype-blue); color: var(--ivory); background: var(--obsidian); }
.node[aria-pressed='true'] .n { background: var(--neurohype-blue); border-color: var(--neurohype-blue); color: var(--void); }
.atlas-detail { grid-column: 8 / span 5; grid-row: 1; align-self: center; min-height: 360px; border-top: 1px solid var(--neurohype-blue); padding-top: 22px; }
.domain h3 { font: 700 clamp(26px, 2.6vw, 40px)/1.05 var(--font-display); letter-spacing: -.045em; margin: 10px 0 18px; }
.domain p { color: rgba(241, 238, 232, .86); max-width: 52ch; }
.domain ul { margin-top: 18px; border-top: 1px solid var(--line); }
.domain li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; }
.domain li::before { content: ''; position: absolute; left: 0; top: 21px; width: 10px; height: 1px; background: var(--neurohype-blue); }
.domain li a { color: var(--neurohype-blue); }
.js .domain[hidden] { display: none; }
.js .domain:not([hidden]) { animation: fade var(--t-medium) var(--ease-out); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* without JS every domain is shown as a readable list */
html:not(.js) .atlas-nodes { display: none; }
html:not(.js) .atlas-detail { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; border: 0; }

/* 03 work */
.directory { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 2vw, 32px); align-items: start; }
.dir-list { grid-column: 1 / span 5; border-top: 1px solid var(--line); }
.dir-item { width: 100%; display: grid; grid-template-columns: 2.6em 1fr auto; align-items: baseline; gap: 10px; padding: 22px 0; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; transition: color var(--t-fast), padding var(--t-medium) var(--ease-out); }
.dir-item .n { font: 500 12px/1 var(--font-mono); color: var(--muted); }
.dir-item .t { font: 700 clamp(24px, 2.6vw, 40px)/1.02 var(--font-display); letter-spacing: -.05em; }
.dir-item .r { font: 400 11px/1 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.dir-item:hover, .dir-item:focus-visible { color: var(--lavender); }
.dir-item[aria-pressed='true'] { padding-left: 14px; color: var(--ivory); box-shadow: inset 2px 0 0 var(--hyperviolet); }
.dir-item[aria-pressed='true'] .n { color: var(--lavender); }
.dir-stage { grid-column: 7 / span 6; position: sticky; top: calc(var(--header-h) + 24px); }
.project { border: 1px solid var(--line); background: var(--obsidian); }
.js .project[hidden] { display: none; }
.js .project:not([hidden]) { animation: fade 320ms var(--ease-out); }
.project-visual { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(18px, 2.4vw, 32px); border-bottom: 1px solid var(--line); background: var(--void); }
.pv-name { font: 700 clamp(40px, 5vw, 92px)/.86 var(--font-display); letter-spacing: -.07em; }
.pv-line { font: italic 500 clamp(18px, 1.6vw, 26px)/1.2 var(--font-editorial); color: var(--pink); margin-top: 14px; }
.pv-modes { display: flex; gap: 8px; margin-top: 18px; }
.pv-modes i { font: 500 11px/1 var(--font-mono); font-style: normal; text-transform: uppercase; letter-spacing: .14em; padding: 8px 10px; border: 1px solid currentColor; }
.pv-modes .b { color: var(--nh-boost); }
.pv-modes .c { color: var(--nh-control); }
.pv-modes .r { color: #a98bff; }
.p-neurohype .project-visual { background: radial-gradient(70% 90% at 85% 10%, rgba(50, 201, 228, .18), transparent 60%), var(--void); }
.p-hlm .project-visual { background: radial-gradient(70% 90% at 15% 0%, rgba(228, 139, 255, .2), transparent 60%), var(--void); }
.p-ymmn .project-visual { background: repeating-linear-gradient(0deg, transparent 0 22px, rgba(241, 238, 232, .05) 22px 23px), var(--void); }
.p-ymmn .pv-name { font-size: clamp(30px, 3.6vw, 62px); }
.p-asymmetry .pv-name { font-family: var(--font-editorial); font-style: italic; font-weight: 500; letter-spacing: -.03em; color: var(--lavender); }
.p-equal .project-visual { justify-content: center; align-items: center; }
.p-equal .pv-name { letter-spacing: .4em; font-size: clamp(32px, 4vw, 64px); }
.project-body { padding: clamp(20px, 2.6vw, 36px); }
.project-body h3 { font: 700 clamp(28px, 2.8vw, 44px)/1 var(--font-display); letter-spacing: -.05em; margin: 12px 0 10px; }
.project-line { font: italic 500 clamp(20px, 1.7vw, 26px)/1.2 var(--font-editorial); color: var(--lavender); }
.project-body p { max-width: 58ch; }
.status { font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 18px 0 22px; }
.status .signal-dot { color: var(--ivory); margin-right: 10px; }
html:not(.js) .dir-list { display: none; }
html:not(.js) .dir-stage { grid-column: 1 / -1; position: static; display: grid; gap: 32px; }

/* 04 frequency */
.talk { align-items: center; row-gap: 32px; }
.talk-media { grid-column: 1 / span 7; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--obsidian); border: 1px solid var(--line); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(18px, 2.6vw, 36px); text-decoration: none;
  background: radial-gradient(80% 90% at 80% 20%, rgba(133, 40, 232, .35), transparent 60%), linear-gradient(135deg, var(--ultraviolet), var(--void) 70%); }
.vp-kicker { font: 500 11px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--lavender); }
.vp-title { font: 700 clamp(30px, 4.4vw, 72px)/.95 var(--font-display); letter-spacing: -.06em; max-width: 12ch; }
.vp-play { display: inline-flex; align-items: center; gap: 12px; font: 500 13px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; }
.vp-play svg { width: 48px; height: 48px; padding: 13px; border-radius: 50%; background: var(--ivory); fill: var(--void); transition: background var(--t-fast); }
.vp-len { color: var(--muted); }
.video-poster:hover .vp-play svg, .video-poster:focus-visible .vp-play svg { background: var(--lavender); }
.fig-caption { margin-top: 12px; }
.talk-text { grid-column: 9 / span 4; }
.talk-title { font: 700 clamp(28px, 2.8vw, 44px)/1.02 var(--font-display); letter-spacing: -.05em; margin: 12px 0 18px; }
.talk-text p { color: rgba(241, 238, 232, .86); }
.pull { font: italic 500 clamp(26px, 2.4vw, 38px)/1.15 var(--font-editorial); color: var(--lavender) !important; margin: 24px 0; }
.speaking { margin-top: clamp(64px, 8vw, 120px); row-gap: 48px; }
.topics { grid-column: 1 / span 7; }
.topics ol { counter-reset: t; border-top: 1px solid var(--line); margin-top: 14px; }
.topics li { counter-increment: t; display: grid; grid-template-columns: 3em 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); color: rgba(241, 238, 232, .78); }
.topics li::before { content: '0' counter(t); font: 500 12px/1.9 var(--font-mono); color: var(--muted); grid-row: span 2; }
.topics li span { display: block; font: 700 clamp(20px, 1.8vw, 26px)/1.2 var(--font-display); letter-spacing: -.03em; color: var(--ivory); margin-bottom: 4px; }
.topic-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }
.topic-links .text-link { font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; padding: 12px 0; }
.receipts { grid-column: 9 / span 4; }
.receipts ul { border-top: 1px solid var(--line); margin-top: 14px; }
.receipts li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.receipts strong { display: block; font-weight: 500; }
.receipts span { font-size: 15px; color: var(--muted); }

/* 05 archive */
.journal { border-top: 1px solid var(--line-strong); }
.entry { display: grid; grid-template-columns: 4em 9em minmax(0, 4fr) minmax(0, 5fr) 9em; align-items: baseline; gap: 12px 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.e-n { font: 500 12px/1 var(--font-mono); color: var(--lavender); }
.e-title { font: 700 clamp(24px, 2.6vw, 40px)/1.05 var(--font-display); letter-spacing: -.05em; text-decoration: none; }
a.e-title { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a.e-title:hover, a.e-title:focus-visible { color: var(--lavender); }
.e-desc { color: rgba(241, 238, 232, .78); }
.e-date { text-align: right; }

/* 06 connection */
.connection { border-bottom: 0; background: radial-gradient(60% 60% at 10% 100%, rgba(133, 40, 232, .18), transparent 70%); }
.connect-grid { align-items: start; row-gap: 56px; }
.connect-head { grid-column: 1 / span 6; }
.connect-title { font: 700 clamp(56px, 9.6vw, 160px)/.86 var(--font-display); letter-spacing: -.075em; margin-top: 18px; }
.connect-title em { font: italic 500 1em/1 var(--font-editorial); letter-spacing: -.04em; color: var(--lavender); }
.connect-lede { margin-top: 28px; max-width: 46ch; color: rgba(241, 238, 232, .86); }
.channels { margin-top: 28px; border-top: 1px solid var(--line); }
.channels a { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.channels a span { font: 400 13px/1.8 var(--font-mono); color: var(--muted); }
.channels a:hover, .channels a:focus-visible { color: var(--lavender); }
.contact-form { grid-column: 8 / span 5; display: grid; gap: 22px; }
.hp { position: absolute; left: -9999px; }
.reason { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.reason legend { margin-bottom: 12px; padding: 0; }
.reason label { position: relative; cursor: pointer; }
.reason input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.reason label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 2px; font-size: 14px; transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast); }
.reason label:has(input:checked) { border-color: var(--lavender); background: rgba(193, 138, 255, .12); color: var(--ivory); }
.reason label:has(input:focus-visible) { outline: 2px solid var(--lavender); outline-offset: 3px; }
.field { display: grid; gap: 8px; }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); color: var(--ivory); font: 400 17px/1.5 var(--font-body); padding: 10px 0; border-radius: 0; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--lavender); }
.field textarea { resize: vertical; }
.contact-form .cta { justify-self: start; border: 1px solid var(--ivory); }
.contact-form .cta::after { content: '\2192'; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(12px, 2vw, 32px); }
.footer-mark { grid-column: 1 / -1; font: 700 clamp(56px, 15vw, 260px)/.8 var(--font-display); letter-spacing: -.08em; margin: 0 0 24px -.04em; color: var(--obsidian); -webkit-text-stroke: 1px rgba(241, 238, 232, .14); }
.footer-mark .dot { color: var(--hyperviolet); -webkit-text-stroke: 0; }
.footer-nav { grid-column: 1 / span 4; display: grid; gap: 4px; }
.footer-links { grid-column: 5 / span 3; display: grid; gap: 4px; align-content: start; }
.footer-nav a, .footer-links a { white-space: nowrap; display: inline-block; padding: 6px 0; text-decoration: none; color: rgba(241, 238, 232, .8); }
.footer-nav a:hover, .footer-links a:hover, .footer-nav a:focus-visible, .footer-links a:focus-visible { color: var(--lavender); }
.signature { grid-column: 9 / span 4; font: italic 500 20px/1.35 var(--font-editorial); color: var(--lavender); }
.copyright { grid-column: 1 / -1; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }

/* reveals: progressive enhancement only */
[data-enhanced='true'] .reveal-pending { opacity: 0; transform: translateY(18px); }
[data-enhanced='true'] .reveal-in { opacity: 1; transform: none; transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out); }
[data-enhanced='true'] .rise { animation: rise 720ms var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* tablet */
@media (max-width: 1100px) {
  .header-index { display: none; }
  .index-button { display: inline-flex; align-items: center; }
  .hero-copy { grid-column: 1 / -1; }
  .hero-plate { grid-column: 1 / span 8; margin-top: 32px; }
  .hi-ai { max-width: 100%; }
  .human-quote { grid-column: 1 / -1; }
  .human-text { grid-column: 2 / -1; }
  .human-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .human-facts div:nth-child(3) { border-right: 0; }
  .career-rail { display: none; }
  .chapters { grid-column: 1 / -1; }
  .atlas-map, .atlas-nodes { grid-column: 1 / -1; grid-row: 1; margin-inline: auto; }
  .atlas-detail { grid-column: 1 / -1; grid-row: 2; min-height: 0; }
  .dir-list, .dir-stage { grid-column: 1 / -1; }
  .dir-stage { position: static; }
  .talk-media, .talk-text, .topics, .receipts { grid-column: 1 / -1; }
  .entry { grid-template-columns: 3.4em minmax(0, 1fr) auto; }
  .entry .e-cat { grid-column: 2; grid-row: 1; }
  .entry .e-title { grid-column: 2 / -1; }
  .entry .e-desc { grid-column: 2 / -1; }
  .entry .e-date { grid-column: 3; grid-row: 1; }
  .connect-head, .contact-form { grid-column: 1 / -1; }
  .footer-nav { grid-column: 1 / span 6; }
  .footer-links { grid-column: 7 / span 6; }
  .signature { grid-column: 1 / -1; }
}

/* mobile */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .editorial-grid, .hero-grid, .career-layout, .atlas, .directory, .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .header-contact { display: none; }
  .hero { min-height: auto; }
  .masthead { font-size: clamp(46px, 15.4vw, 100px); }
  .hero-kicker { letter-spacing: .3em; }
  .hi-ai { letter-spacing: .14em; font-size: 10.5px; }
  .hero-plate { grid-column: 1 / -1; }
  .hero-strip { flex-direction: column; gap: 6px; }
  .human-text { grid-column: 1 / -1; }
  .human-facts { grid-template-columns: 1fr 1fr; }
  .human-facts div { border-right: 0; margin-right: 0; padding-right: 12px; }
  .chapter-item summary { grid-template-columns: 2.4em minmax(0, 1fr) 1.4em; }
  .chapter-item summary .s { grid-column: 2 / -1; grid-row: 2; text-align: left; }
  .chapter-item summary::after { display: block; }
  .chapter-item[open] summary::after { content: '\2212'; }
  .roles { padding-left: 0; }
  .roles li { grid-template-columns: 1fr; }
  .atlas-map { display: none; }
  .video { aspect-ratio: 4 / 3; }
  .vp-title { font-size: clamp(28px, 8.6vw, 40px); }
  .atlas-nodes { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .node { position: static; transform: none; max-width: none; width: 100%; }
  .atlas-detail { grid-row: 2; }
  .dir-item { grid-template-columns: 2.2em 1fr; }
  .dir-item .r { grid-column: 2; }
  .entry { grid-template-columns: 2.8em minmax(0, 1fr); }
  .entry .e-date { grid-column: 2; grid-row: auto; text-align: left; }
  .footer-nav, .footer-links { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  [data-enhanced='true'] .reveal-pending, [data-enhanced='true'] .reveal-in { opacity: 1; transform: none; transition: none; }
  .progress span { animation: none; }
}

/* =========================================================
   v2: photography. Cover portrait, human spread, TEDx poster.
   Violet light over real skin tones; the face stays clear.
   ========================================================= */

/* hero cover */
.hero-copy { grid-column: 1 / span 7; }
.hero-copy > :not(.hero-figure) { position: relative; z-index: 2; }
.masthead { font-size: clamp(56px, 10.4vw, 176px); }
.hi-ai { max-width: min(100%, 54vw); }
.hero-figure { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: min(40vw, 720px); margin: 0; }
.hero-portrait { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: contrast(1.06) saturate(.92) brightness(.92); }
.hero-figure::before { /* violet key light + fade into the void */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--void) 0%, rgba(8, 7, 11, .55) 14%, transparent 38%),
    linear-gradient(0deg, var(--void) 0%, rgba(8, 7, 11, .35) 22%, transparent 45%),
    linear-gradient(180deg, rgba(8, 7, 11, .7) 0%, transparent 16%);
}
.hero-figure::after { /* colour grade: violet in the shadows, a narrow blue edge */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(70% 60% at 30% 35%, rgba(133, 40, 232, .55), transparent 70%), linear-gradient(270deg, rgba(50, 201, 228, .35) 0, transparent 9%);
}
.fig-tag { position: absolute; z-index: 2; top: calc(var(--header-h) + 18px); right: var(--gutter); display: flex; gap: 14px; color: rgba(241, 238, 232, .78); }
.fig-tag span:first-child { color: var(--lavender); }
.reg { position: absolute; z-index: 2; width: 22px; height: 22px; stroke: var(--line-strong); fill: none; stroke-width: 1.2; }
.reg-tl { top: calc(var(--header-h) + 10px); left: 14%; }
.reg-br { bottom: 84px; right: calc(var(--gutter) - 11px); }
.hero-figure .hero-plate { position: absolute; z-index: 3; left: -11%; bottom: 96px; width: min(330px, 78%); margin: 0; background: rgba(8, 7, 11, .86); border-color: var(--line-strong); }
.hero-strip { position: relative; z-index: 2; }

/* the human: photo spread */
.human-photo { grid-column: 1 / span 5; grid-row: 1 / span 2; margin: 0; position: relative; }
.human-photo img { width: 100%; height: auto; aspect-ratio: 900 / 1347; object-fit: cover; filter: contrast(1.04) saturate(.95); border: 1px solid var(--line); }
.human-photo::after { content: ''; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 900 / 1347; pointer-events: none; mix-blend-mode: soft-light; background: linear-gradient(200deg, rgba(133, 40, 232, .45), transparent 55%); }
.human-photo figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.human-photo figcaption span:first-child { color: var(--lavender); }
.human-quote { grid-column: 7 / span 6; grid-row: 1; padding-right: 0; }
.human-text { grid-column: 7 / span 6; grid-row: 2; }
.human-facts { grid-row: 3; }

/* TEDx poster with the real stage photo */
.video-poster.has-image { background: var(--void); justify-content: space-between; }
.vp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out), filter var(--t-medium) var(--ease-out); filter: brightness(.82) saturate(.95); }
.video-poster.has-image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 7, 11, .75) 0%, transparent 28%, transparent 62%, rgba(8, 7, 11, .85) 100%); }
.video-poster.has-image > span { position: relative; z-index: 1; }
.video-poster.has-image:hover .vp-img, .video-poster.has-image:focus-visible .vp-img { transform: scale(1.025); filter: brightness(.9) saturate(1); }

/* contact channel list gets the email first */
.channels a span { overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .hero-copy { grid-column: 1 / -1; }
  .masthead { font-size: clamp(46px, 13vw, 150px); }
  .hi-ai { max-width: 100%; }
  .hero-figure { position: relative; inset: auto; width: auto; margin: 28px calc(var(--gutter) * -1) 8px; aspect-ratio: 4 / 5; max-height: 86svh; }
  .hero-figure::before { background: linear-gradient(0deg, var(--void) 0%, rgba(8, 7, 11, .3) 20%, transparent 42%), linear-gradient(180deg, rgba(8, 7, 11, .45) 0%, transparent 14%); }
  .fig-tag { top: 16px; right: var(--gutter); }
  .reg-tl { top: 14px; left: var(--gutter); }
  .reg-br { bottom: 14px; }
  .hero-figure .hero-plate { left: var(--gutter); right: var(--gutter); bottom: 24px; width: auto; max-width: 420px; }
  .human-photo { grid-column: 1 / span 6; grid-row: auto; }
  .human-quote { grid-column: 7 / -1; grid-row: auto; align-self: end; }
  .human-text { grid-column: 1 / -1; grid-row: auto; }
  .human-facts { grid-row: auto; }
}
@media (max-width: 767px) {
  .hero-figure { aspect-ratio: 4 / 5; }
  .hero-figure .hero-plate { display: none; }
  .human-photo, .human-quote { grid-column: 1 / -1; }
}

/* v2.1: the TEDx poster keeps its real 16:9 frame on phones, so nothing gets cropped */
@media (max-width: 767px) {
  .video { aspect-ratio: 16 / 9; }
  .video-poster { padding: 12px 14px; }
  .vp-kicker { font-size: 10.5px; letter-spacing: .1em; }
  .vp-play { font-size: 11px; gap: 10px; }
  .vp-play svg { width: 38px; height: 38px; padding: 10px; }
  .vp-img { object-position: 50% 40%; }
}
