/* ==========================================================================
   AlonJFX · Nocturne
   Design layer loaded after styles/effects/features and before accessibility.
   Design v1 is tagged design-v1-2026-09-24.
   Accent variants: ?accent=ember (crimson) · ?accent=mono (black & white).
   ========================================================================== */
:root {
  --bg: #030304;
  --surface: #0a0a0c;
  --line: rgba(255,255,255,.07);
  --line-strong: rgba(255,255,255,.13);
  --text: #f5f5f7;
  --muted: #8e8e97;
  --faint: #56565e;
  --accent: #b4a5ff;
  --aura-1: #5b3df5;
  --aura-2: #a855f7;
  --aura-3: #3b82f6;
  --blue: var(--accent);
  --accent-12: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-30: color-mix(in srgb, var(--accent) 30%, transparent);
  --font: 'Inter Tight', 'Inter', Arial, sans-serif;
  --r-lg: 28px;
  --r-md: 20px;
  --ease-out: cubic-bezier(.16,1,.3,1);
  --gutter: 64px;
}
:root[data-accent="ember"] { --accent: #ff7a93; --aura-1: #b3163f; --aura-2: #ff5a3c; --aura-3: #7c1d6f; }
:root[data-accent="mono"] { --accent: #e4e4e7; --aura-1: #3f3f46; --aura-2: #27272a; --aura-3: #52525b; }

/* ---------- Base ---------- */
html { scroll-padding-top: 96px; overflow-x: clip; }
body { background: var(--bg); letter-spacing: -.006em; overflow-x: clip; }
::selection { background: var(--accent-30); color: #fff; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.048em; line-height: 1; }
h4 { font-weight: 500; }
h2 { font-size: clamp(38px, 5.4vw, 80px); }
p { color: var(--muted); }
.eyebrow { color: #6f6f78; letter-spacing: .18em; }
button:focus-visible, a:focus-visible, select:focus-visible { outline-color: var(--accent); }

/* Dimmed second lines: gradient text. Split headings put the gradient on each word. */
:is(h1, h2, blockquote) > span:not(.w):not(.line), .page-intro h1 span, .wd > span { background: linear-gradient(180deg, #a3a3ad 0%, #45454d 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-split-done] > span:not(.w) { background: none; color: inherit; }
.hero h1 .dim > span { background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.18)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Word-by-word rise for headings marked data-split. */
/* Clip vertically only: the rise-in needs a bottom edge, but tight letter-spacing lets the last glyph overhang sideways. */
[data-split] .w { display: inline-block; overflow-x: visible; overflow-y: clip; overflow-clip-margin: .02em; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
[data-split] .w > span { display: inline-block; }
.motion-ok [data-split] .w > span { transform: translateY(110%); transition: transform 1.1s var(--ease-out) calc(var(--wi) * 55ms); }
.motion-ok .in [data-split] .w > span, .motion-ok [data-split].in .w > span, .motion-ok .in[data-split] .w > span { transform: none; }

/* Pill labels */
:is(.hero, .page-intro, .section-head, .feature-copy, .closing, .manifesto, .journey-head) .eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 28px; padding: 7px 15px 7px 12px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255,255,255,.025);
  color: #c7c7cf; font-size: .625rem; letter-spacing: .18em; backdrop-filter: blur(12px);
}
:is(.hero, .page-intro, .section-head, .feature-copy, .closing, .manifesto, .journey-head) .eyebrow::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* ---------- Chrome: header, progress ---------- */
.site-header { position: sticky; top: 0; z-index: 30; height: 84px; border-bottom: 1px solid transparent; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); transition: background-color .4s ease, border-color .4s ease; }
.is-scrolled .site-header { background: rgba(3,3,4,.7); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line); }
.wordmark { font-weight: 600; letter-spacing: .2em; }
.brand-mark { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 12px var(--accent); }
.desktop-nav { align-self: center; height: auto; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.02); color: #8a8a93; backdrop-filter: blur(12px); }
.desktop-nav a { height: auto; padding: 8px 15px; border-radius: 999px; transition: color .2s, background-color .2s; }
.desktop-nav a::before, .desktop-nav a[aria-current]::after { display: none; }
.desktop-nav a:hover { color: #fff; }
.desktop-nav a[aria-current] { color: #fff; background: rgba(255,255,255,.08); }
.about-link { border-radius: 999px; border-color: #fff; background: #fff; color: #000; font-weight: 500; gap: 14px; padding: 9px 18px; transition: background .2s, translate .35s var(--ease-out); }
.about-link:hover { background: #e4e4e7; }
.menu-toggle { border-color: var(--line-strong); border-radius: 999px; }
.mobile-nav { background: rgba(10,10,12,.96); backdrop-filter: blur(16px); border-color: var(--line-strong); border-radius: var(--r-md); top: 84px; }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 50; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--aura-1), var(--accent)); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 12px var(--accent); }

/* ---------- Buttons ---------- */
.button { border-radius: 999px; padding: 15px 26px; gap: 14px; font-size: .9375rem; font-weight: 500; border-color: var(--line-strong); transition: background .2s, box-shadow .3s ease, translate .35s var(--ease-out), scale .3s var(--ease-out); }
.button:hover { transform: none; scale: 1.04; }
.primary { background: #fff; color: #000; border-color: #fff; }
.primary:hover { background: #fff; box-shadow: 0 0 50px 0 var(--accent-30); }
.secondary { background: rgba(255,255,255,.04); backdrop-filter: blur(10px); }
.secondary:hover { background: rgba(255,255,255,.09); }
.text-link { font-weight: 500; }
.text-link span { color: var(--muted); }
.text-link::after { background: var(--accent) !important; }
.circle-link { border-color: var(--line-strong); }

/* ---------- Hero ---------- */
.hero { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: min(calc(100svh - 84px), 1000px); padding: 20px 0 130px; isolation: isolate; overflow: visible clip; }
.hero-aura { position: absolute; z-index: -3; left: 50%; top: 46%; width: min(900px, 90vw); height: min(640px, 70vw); translate: -50% -50%; mix-blend-mode: screen; opacity: .55; pointer-events: none; }
.hero-aura i { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(45deg, color-mix(in srgb, var(--aura-1) 55%, transparent), color-mix(in srgb, var(--aura-2) 45%, transparent), color-mix(in srgb, var(--aura-3) 45%, transparent)); filter: blur(100px); animation: aura-spin 20s linear infinite; }
@keyframes aura-spin { to { rotate: 360deg; } }
.hero-field { position: absolute; z-index: -2; top: 0; bottom: 0; left: calc(var(--gutter) * -1); width: calc(100% + var(--gutter) * 2); height: 100%; mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000 30%, transparent 80%); opacity: .8; }
.hero-fade { position: absolute; z-index: -1; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); bottom: 0; height: 200px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-copy { width: auto; max-width: 1180px; display: flex; flex-direction: column; align-items: center; }
.hero-badge { position: relative; overflow: hidden; }
.hero-badge::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.22), transparent 70%); translate: -100% 0; animation: shimmer 5s ease-in-out 3s infinite; }
@keyframes shimmer { 0%, 70% { translate: -100% 0; } 100% { translate: 100% 0; } }
.hero h1 { font-size: clamp(56px, 11.2vw, 172px); line-height: .86; letter-spacing: -.06em; margin: 0 0 38px; }
.hero h1 > span { color: inherit; }
.hero h1 .line { display: block; overflow-x: visible; overflow-y: clip; padding: 0 .04em .1em; margin-bottom: -.1em; }
.hero h1 .line > span { display: inline-block; }
.hero-copy > p:not(.eyebrow) { max-width: 600px; font-size: clamp(1.0625rem, 1.5vw, 1.375rem); line-height: 1.5; color: #a1a1aa; font-weight: 450; letter-spacing: -.015em; }
.hero-actions { justify-content: center; margin-top: 44px; flex-wrap: wrap; gap: 12px; }
.scroll-cue { position: absolute; bottom: 36px; left: 50%; translate: -50% 0; margin: 0; flex-direction: column; gap: 12px; font-size: .5625rem; letter-spacing: .3em; color: var(--faint); }
.scroll-cue i { display: block; width: 1px; height: 44px; background: linear-gradient(var(--accent), transparent); animation: cue 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.flow-art, .art-caption, .art-index, .art-key { display: none; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; margin: 0 calc(var(--gutter) * -1); padding: 24px 0; border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 50s linear infinite; }
.marquee span { font-size: clamp(20px, 2.2vw, 30px); font-weight: 500; letter-spacing: -.035em; color: #d4d4d8; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--accent); font-size: .875rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto: words light up as you scroll ---------- */
.manifesto { padding: clamp(120px, 16vw, 220px) 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.manifesto-text { max-width: 1120px; font-size: clamp(32px, 4.8vw, 76px); font-weight: 500; line-height: 1.08; letter-spacing: -.045em; color: #fff; }
.manifesto-text .w { transition: color .5s ease, text-shadow .5s ease; }
.motion-ok .manifesto-text .w:not(.lit) { color: #26262c; }
.motion-ok .manifesto-text .w.lit { color: #fff; text-shadow: 0 0 40px var(--accent-30); }

/* ---------- Journey: horizontal timeline pinned while you scroll ---------- */
.journey { position: relative; margin: 0 calc(var(--gutter) * -1); }
.journey-sticky { padding: 40px var(--gutter) 90px; }
.journey-head { max-width: 760px; margin-bottom: 56px; }
.journey-head h2 { font-size: clamp(40px, 5.6vw, 86px); line-height: .92; letter-spacing: -.056em; margin-bottom: 22px; }
.journey-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.journey-step { position: relative; min-height: 340px; padding: 36px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, #0d0d10, #060607); display: flex; flex-direction: column; overflow: hidden; }
.journey-when { display: inline-flex; align-items: center; gap: 10px; font: .6875rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.journey-when::before { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--accent); box-shadow: 0 0 12px var(--accent-30); }
.journey-index { position: absolute; top: 18px; right: 26px; font-size: 96px; font-weight: 600; letter-spacing: -.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.08); }
.journey-step h3 { margin-top: auto; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; letter-spacing: -.045em; }
.journey-step p { margin-top: 14px; font-size: 1rem; line-height: 1.6; max-width: 34ch; }
.journey-progress { display: none; }
.journey.is-horizontal .journey-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 84px; padding-bottom: 40px; }
.journey.is-horizontal .journey-rail { display: flex; align-items: center; gap: 80px; width: max-content; will-change: transform; }
.journey.is-horizontal .journey-head { flex: 0 0 min(560px, 42vw); margin: 0; }
.journey.is-horizontal .journey-track { display: flex; gap: 20px; }
.journey.is-horizontal .journey-step { width: min(420px, 32vw); min-height: min(460px, 58vh); flex-shrink: 0; }
.journey.is-horizontal .journey-progress { display: block; height: 1px; margin-top: 44px; background: var(--line); }
.journey-progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 10px var(--accent); }
.motion-ok .journey-step { transition: border-color .4s ease, translate .6s var(--ease-out); }
.journey-step:hover { border-color: var(--line-strong); }

/* ---------- Lessons: cards stack as you scroll ---------- */
.lessons { padding: 150px 0 60px; }
.section-head { max-width: 860px; margin: 0 auto 80px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head h2 { font-size: clamp(44px, 6.4vw, 100px); line-height: .9; letter-spacing: -.058em; margin-bottom: 24px; }
.section-head > p:not(.eyebrow) { max-width: 520px; font-size: 1.0625rem; line-height: 1.7; }
.lesson-stack { list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; }
.lesson { position: sticky; top: calc(120px + var(--i) * 16px); min-height: 400px; margin-bottom: 16vh; padding: clamp(32px, 5vw, 64px); border: 1px solid var(--line-strong); border-radius: 36px; background: radial-gradient(ellipse 70% 80% at 100% 0%, color-mix(in srgb, var(--aura-1) 16%, transparent), transparent 60%), linear-gradient(180deg, #0f0f13, #08080a); display: flex; flex-direction: column; transform-origin: 50% 0; scale: calc(1 - var(--depth, 0) * .08); filter: brightness(calc(1 - var(--depth, 0) * .55)); box-shadow: 0 -20px 60px rgba(0,0,0,.5); }
.lesson:last-child { margin-bottom: 0; }
.lesson-number { font-size: clamp(56px, 7vw, 110px); font-weight: 600; letter-spacing: -.06em; line-height: .85; background: linear-gradient(180deg, var(--accent), transparent 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lesson blockquote { margin: auto 0 0; padding-top: 40px; font-size: clamp(26px, 3.2vw, 48px); font-weight: 500; line-height: 1.12; letter-spacing: -.04em; color: #f4f4f5; max-width: 26ch; }
.lesson-source { margin-top: 28px; font: .6875rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.motion-ok .lesson blockquote { opacity: 0; translate: 0 24px; transition: opacity 1s ease .15s, translate 1.1s var(--ease-out) .15s; }
.motion-ok .lesson.in blockquote { opacity: 1; translate: 0 0; }

/* ---------- Feature: centered copy + device-framed stage ---------- */
.feature { padding: 150px 0 40px; text-align: center; }
.feature-copy { max-width: 780px; margin: 0 auto 70px; display: flex; flex-direction: column; align-items: center; }
.feature-copy h2 { font-size: clamp(44px, 6.6vw, 100px); line-height: .9; letter-spacing: -.058em; margin-bottom: 26px; }
.feature-copy > p:not(.eyebrow) { max-width: 520px; font-size: 1.0625rem; line-height: 1.7; }
.feature-copy .text-link { margin-top: 26px; }
.stage { max-width: 1080px; margin: 0 auto; padding: 10px; border: 1px solid var(--line-strong); border-radius: 32px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.01)); text-align: left; box-shadow: 0 50px 140px -30px color-mix(in srgb, var(--aura-1) 45%, transparent), 0 0 0 1px rgba(0,0,0,.6); transform-origin: 50% 0; }
.stage > .panel { border-radius: 23px; }
.motion-ok .stage { transition: transform 1.5s var(--ease-out), opacity 1.2s ease; }
.motion-ok .stage:not(.in) { transform: perspective(1600px) rotateX(22deg) scale(.9) translateY(40px); opacity: .25; }
.motion-ok .stage .equity-chart polyline { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s cubic-bezier(.65,0,.35,1) .4s; }
.motion-ok .stage .equity-chart.draw polyline { stroke-dashoffset: 0; }
.motion-ok .stage .equity-chart path { opacity: 0; transition: opacity 1.4s ease 1.6s; }
.motion-ok .stage .equity-chart.draw path { opacity: 1; }

/* ---------- From the desk: bento ---------- */
.desk { padding: 170px 0 20px; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 18px; }
.tile { grid-column: span 6; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, #0d0d10, #060607); overflow: hidden; min-width: 0; transition: border-color .4s ease, translate .5s var(--ease-out); }
.tile:hover { border-color: var(--line-strong); translate: 0 -4px; }
.tile-research, .tile-projects { grid-column: span 7; }
.tile-books, .tile-videos { grid-column: span 5; }
.tile-visual { position: relative; flex: 1; min-height: 330px; display: grid; place-items: center; padding: 28px; overflow: hidden; }
.tile-visual > * { transition: scale .8s var(--ease-out); }
.tile:hover .tile-visual > * { scale: 1.03; }
.tile-copy { padding: 0 36px 36px; }
.tile h3 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.02; letter-spacing: -.045em; margin: 14px 0 14px; }
.tile-copy > p:not(.eyebrow) { font-size: .9375rem; line-height: 1.7; max-width: 440px; }
.tile-cta { display: inline-flex; gap: 14px; align-items: center; margin-top: 22px; font-size: .875rem; font-weight: 500; }
.tile-cta span { color: var(--accent); transition: translate .3s var(--ease-out); }
.tile:hover .tile-cta span { translate: 6px 0; }
.tile .research-art { width: 100%; margin: 0; }
.tile .book-stage { height: 330px; width: 100%; }
.tile .book-side-note { display: none; }
.tile .tools-panel { width: 100%; }
.video-thumb { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); background: #0a0a0c; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.85) contrast(1.05); }
.video-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85)); }
.video-thumb-play { position: absolute; z-index: 1; left: 50%; top: 45%; translate: -50% -50%; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #000; font-size: 1.125rem; padding-left: 4px; box-shadow: 0 0 40px var(--accent-30); transition: scale .4s var(--ease-out); }
.tile:hover .video-thumb-play { scale: 1.12; }
.video-thumb-title { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; font-size: 1rem; font-weight: 500; color: #fff; text-align: start; }

/* ---------- Spotlight surfaces ---------- */
.spot, .content-card, .about-destinations a, .journal-metric { position: relative; isolation: isolate; }
:is(.spot, .content-card, .about-destinations a, .journal-metric)::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s ease; background: radial-gradient(420px circle at var(--spot-x, 50%) var(--spot-y, 50%), var(--accent-12), transparent 65%); }
@media (hover: hover) and (pointer: fine) { :is(.spot, .content-card, .about-destinations a, .journal-metric):hover::after { opacity: 1; } }

/* ---------- Closing & footer ---------- */
.closing { padding: 200px 0 170px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.closing blockquote { margin: 0 0 34px; font-size: clamp(44px, 7.6vw, 120px); font-weight: 600; line-height: .9; letter-spacing: -.06em; }
.closing > p:not(.eyebrow) { max-width: 520px; font-size: 1.0625rem; line-height: 1.7; }
.closing .hero-actions { margin-top: 38px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-top { border-color: var(--line); }
.footer-motto, .footer-bottom { color: var(--faint); }

/* ---------- Panels, charts, code ---------- */
.panel, .playlist-queue, .content-card, .journal-performance { background: linear-gradient(180deg, #0c0c0f, #070708); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.panel-head { border-bottom-color: var(--line); }
.code-tabs button { color: #6b6b74; }
.code-tabs button[aria-selected=true] { color: #fff; }
.code-tabs button[aria-selected=true]:after { background: var(--accent); }
.code-lines code { color: #b8b8c1; }
.code-lines b { color: var(--accent); }
.code-lines .function { color: #e4e4e7; }
.code-lines .string { color: #a3a3ad; }
.code-lines i { color: #3a3a41; }
.tiny-dot { border-color: var(--accent); }
.demo-tag, .availability, .pill-row span { border-color: var(--line-strong); border-radius: 999px; color: #a1a1aa; }
.equity-chart polyline, .summary-sparkline polyline { stroke: var(--accent); }
.equity-chart circle, .summary-sparkline circle { fill: #fff; }
#chart-fill stop, #summary-fill stop { stop-color: var(--accent); }
.stats strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.stats > div { border-right-color: var(--line); }
.orbit { border-color: rgba(255,255,255,.07); }
.orbit-label { background: #0a0a0c; border-color: var(--line-strong); border-radius: 999px; padding: 5px 12px; }
.research-core { border-color: rgba(255,255,255,.2); background: radial-gradient(#1b1a24, #070708); box-shadow: 0 0 70px var(--accent-30); }
.research-core > span { color: #fff; }
.orbit-point { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.research-art::before { background: radial-gradient(220px circle at var(--light-x,50%) var(--light-y,50%), var(--accent-30), transparent 80%); }
.motion-ok .orbit-1 { animation: orbit-turn 40s linear infinite; }
.motion-ok .orbit-2 { animation: orbit-turn 60s linear infinite reverse; }
@keyframes orbit-turn { to { transform: translate(-50%,-50%) rotate(348deg); } }
.book-cover { background: linear-gradient(115deg, #2a2833, #121116 12%, #0d0d10 65%, #08080a); border-color: #3f3f46; border-left-color: #b4b4bd; }
.book-title em { color: #6f6f78; }
.book-spine { background: #0d0d10; border-color: #27272a; }
.motion-ok .tile-books .book-cover { animation: book-float 7s ease-in-out infinite; }
@keyframes book-float { 50% { translate: 0 -10px; } }
.tool-flow > div { border-bottom-color: var(--line); }
.tool-symbol { color: var(--accent); }

/* ---------- Forms, tables, dialogs ---------- */
select, .period-control, .table-footer button, .row-detail { background: #0c0c0f; border-color: var(--line-strong); border-radius: 999px; }
.period-control button { border-radius: 999px; color: #85858e; }
.period-control button[aria-pressed=true] { background: #fff; color: #000; }
th { background: #0c0c0f; border-bottom-color: var(--line); }
tbody tr:hover { background: rgba(255,255,255,.03); }
dialog { background: #0c0c0f; border-color: var(--line-strong); border-radius: var(--r-md); }
dialog::backdrop { background: rgba(0,0,0,.8); }
.demo-banner { background: #0c0c0f; border-color: var(--line); border-left-color: var(--accent); border-radius: 14px; }
.playlist-item[aria-current] { background: #18181c; border-color: #3f3f46; }
.playlist-item:hover { background: #121215; }
.chart-tooltip { background: rgba(10,10,12,.96); border-color: #3f3f46; }

/* ---------- Inner pages ---------- */
.page-intro { max-width: 1040px; margin: 0 auto; padding: 120px 0 100px; text-align: center; display: flex; flex-direction: column; align-items: center; position: relative; isolation: isolate; }
.page-intro::before { content: ''; position: absolute; z-index: -1; left: 50%; top: 40%; width: min(700px, 90vw); height: 380px; translate: -50% -50%; border-radius: 50%; background: linear-gradient(45deg, color-mix(in srgb, var(--aura-1) 40%, transparent), color-mix(in srgb, var(--aura-3) 30%, transparent)); filter: blur(110px); opacity: .45; pointer-events: none; }
.page-intro h1 { font-size: clamp(52px, 9vw, 144px); line-height: .88; letter-spacing: -.06em; margin-bottom: 32px; }
.page-intro > p:last-child { max-width: 580px; font-size: 1.1875rem; line-height: 1.6; color: #a1a1aa; }
.journal-overview .page-intro { padding-bottom: 70px; }
.journal-metric { background: linear-gradient(180deg, #0c0c0f, #070708); border-color: var(--line); border-radius: 18px; }
.journal-metric h3 { color: #85858e; }
.journal-metric h3 > span { color: var(--accent); }
.journal-metric > strong { color: #fff; }
.journal-metric p { color: #6f6f78; }
.journal-source-line, .summary-source, .data-footnote, .journal-demo-note { color: var(--muted); }
.journal-source-line b { color: #e4e4e7; }
.content-grid { gap: 18px; }
.content-card { padding: 32px; border-radius: var(--r-lg); }
.collection-empty { border: 1px solid var(--line); border-radius: 32px; padding: 56px; background: linear-gradient(180deg, #0b0b0e, #050506); }
.video-preview { border-color: var(--line); border-radius: var(--r-md); background: radial-gradient(ellipse at bottom right, color-mix(in srgb, var(--aura-1) 25%, transparent), transparent 70%), #0a0a0c; }
.video-preview-title em { color: #6f6f78; }
.approach-feature, .principles { border-bottom-color: var(--line); }
.story-chapter { border-top-color: var(--line); padding: 90px 0; }
.chapter-heading .micro { color: var(--accent); }
.chapter-heading h2 { font-size: clamp(34px, 4vw, 60px); line-height: .98; }
.chapter-copy p { color: #a9a9b2; font-size: 1.125rem; }
.closing-note h2 { font-size: clamp(40px, 5.6vw, 84px); line-height: .95; }
.about-portrait img { border-radius: var(--r-lg); filter: grayscale(.25) contrast(1.05); }
.about-portrait figcaption { color: #8e8e97; }
.about-portrait figcaption span { color: var(--faint); }
.about-destinations { gap: 18px; border-top: 0; }
.about-destinations a { padding: 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, #0c0c0f, #060607); transition: border-color .3s ease; }
.about-destinations a:hover { border-color: var(--line-strong); }
.about-destinations .micro { color: var(--accent); }
.a11y-launcher { background: #0c0c0f; border-color: var(--line-strong); color: #e4e4e7; }
.a11y-launcher:hover { background: #18181c; }

/* ---------- Motion ---------- */
@keyframes rd-rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes rd-fade-up { from { opacity: 0; translate: 0 40px; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes rd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rd-bloom { from { opacity: 0; scale: .7; } to { opacity: .55; scale: 1; } }
@keyframes rd-page { from { opacity: 0; translate: 0 16px; filter: blur(8px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes rd-section { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }

.hero-copy > :is(.eyebrow, p, .hero-actions), .page-intro > * { animation: rd-fade-up 1.2s var(--ease-out) backwards; }
.hero-copy > .eyebrow { animation-delay: .2s; }
.hero h1 .line > span { animation: rd-rise 1.2s var(--ease-out) backwards; }
.hero h1 .line:nth-child(1) > span { animation-delay: .3s; }
.hero h1 .line:nth-child(2) > span { animation-delay: .42s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .54s; }
.hero-copy > p:not(.eyebrow) { animation-delay: .65s; }
.hero-copy > .hero-actions { animation-delay: .8s; }
.page-intro > .eyebrow { animation-delay: .1s; }
.page-intro > h1 { animation-delay: .22s; }
.page-intro > p:last-child { animation-delay: .38s; }
.hero-aura { animation: rd-bloom 2s ease backwards; }
.hero-field { animation: rd-fade 2.4s ease .4s backwards; }
main.page-enter { animation: rd-page .8s var(--ease-out); }

/* First load: black, then the light, then the words. */
html.intro .site-header { animation: rd-fade 1.4s ease .6s backwards; }
html.intro .hero-aura { animation: rd-bloom 3s cubic-bezier(.3,.6,.2,1) .1s backwards; }
html.intro .hero-field { animation: rd-fade 3s ease 1s backwards; }
html.intro .hero-copy > .eyebrow { animation-delay: .9s; }
html.intro .hero h1 .line:nth-child(1) > span { animation-delay: 1.05s; }
html.intro .hero h1 .line:nth-child(2) > span { animation-delay: 1.2s; }
html.intro .hero h1 .line:nth-child(3) > span { animation-delay: 1.35s; }
html.intro .hero-copy > p:not(.eyebrow) { animation-delay: 1.6s; }
html.intro .hero-copy > .hero-actions { animation-delay: 1.8s; }
html.intro .scroll-cue { animation: rd-fade 1s ease 2.4s backwards; }
html.intro .marquee { animation: rd-fade 1.2s ease 2.1s backwards; }

.motion-ok [data-reveal]:not(.feature):not(.tile) { opacity: 0; translate: 0 40px; transition: opacity 1.1s ease, translate 1.2s var(--ease-out); }
.motion-ok [data-reveal].in:not(.feature):not(.tile) { opacity: 1; translate: 0 0; }
.motion-ok .tile { opacity: 0; translate: 0 50px; scale: .96; transition: opacity 1s ease, translate 1.2s var(--ease-out), scale 1.2s var(--ease-out), border-color .4s ease; }
.motion-ok .tile.in { opacity: 1; translate: 0 0; scale: 1; }
.motion-ok .tile.in:hover { translate: 0 -4px; }
.motion-ok .bento .tile:nth-child(even) { transition-delay: .12s, .12s, .12s, 0s; }
.reveal-in { animation: rd-section 1.1s var(--ease-out) backwards; }
/* Reduced motion: effects.css disables animation and transition inside .site-shell; motion.js adds .in immediately. */

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 38px; }
  .desktop-nav { gap: 0; }
  .desktop-nav a { padding: 8px 11px; }
}
@media (max-width: 900px) {
  .tile-research, .tile-books, .tile-videos, .tile-projects { grid-column: span 12; }
}
@media (max-width: 800px) {
  :root { --gutter: 25px; }
  .site-header { height: 72px; }
  .mobile-nav { top: 72px; }
  .hero { min-height: min(calc(100svh - 72px), 900px); padding: 20px 0 110px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(50px, 14vw, 110px); }
  .hero-aura { width: 110vw; height: 90vw; }
  .manifesto { padding: 110px 0; }
  .journey-step { min-height: 280px; padding: 28px; }
  .lessons, .desk { padding-top: 110px; }
  .lesson { min-height: 320px; top: calc(96px + var(--i) * 10px); border-radius: 28px; }
  .feature { padding: 110px 0 20px; }
  .feature-copy { margin-bottom: 48px; }
  .stage { padding: 6px; border-radius: 24px; }
  .stage > .panel { border-radius: 19px; }
  .closing { padding: 130px 0 110px; }
  .page-intro { padding: 80px 0 70px; }
  .page-intro h1 { font-size: clamp(46px, 13vw, 96px); }
  .collection-empty { padding: 32px; }
}
@media (max-width: 480px) {
  :root { --gutter: 22px; }
  .hero h1 { font-size: 13.6vw; }
  .hero-copy > p:not(.eyebrow) { font-size: 1.0625rem; }
  .hero .eyebrow { font-size: .5rem; letter-spacing: .12em; }
  .button { padding: 13px 20px; font-size: .875rem; }
  .tile-copy { padding: 0 24px 28px; }
  .tile-visual { padding: 18px; min-height: 260px; }
  .journey-index { font-size: 72px; }
  .about-destinations a { padding: 24px; border-bottom: 1px solid var(--line); }
}

/* ---------- Finishing light ---------- */
.journey-step { background: radial-gradient(ellipse 90% 60% at 0% 100%, color-mix(in srgb, var(--aura-1) 14%, transparent), transparent 70%), linear-gradient(180deg, #0d0d10, #060607); }
.journey-step:last-child { border-color: var(--accent-30); background: radial-gradient(ellipse 100% 70% at 100% 0%, color-mix(in srgb, var(--aura-2) 26%, transparent), transparent 70%), radial-gradient(ellipse 90% 60% at 0% 100%, color-mix(in srgb, var(--aura-1) 22%, transparent), transparent 70%), linear-gradient(180deg, #111016, #07070a); }
.journey-step:last-child .journey-index { -webkit-text-stroke-color: var(--accent-30); }
.closing { position: relative; isolation: isolate; }
.closing::before { content: ''; position: absolute; z-index: -1; left: 50%; top: 45%; width: min(820px, 92vw); height: 420px; translate: -50% -50%; border-radius: 50%; background: linear-gradient(45deg, color-mix(in srgb, var(--aura-1) 45%, transparent), color-mix(in srgb, var(--aura-2) 35%, transparent), color-mix(in srgb, var(--aura-3) 30%, transparent)); filter: blur(120px); opacity: .5; pointer-events: none; }
.motion-ok .closing::before { animation: aura-spin 26s linear infinite; }

/* Display headlines are artwork, not copy: no selection boxes on them. Body text stays selectable. */
.hero h1, .hero .eyebrow, .page-intro h1, .section-head h2, .feature-copy h2, .manifesto-text, .closing blockquote,
.tools-block-head h2, .analyzer-copy h2, .lg-subhead h2, .lg-kpi strong, .lab-read dd, .tl-hero strong {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* Controls are not text either. */
.button, .scroll-cue, .site-header, .mobile-nav, .eyebrow, .tools-tabs, .lg-seg, .lab-pick, .lab-resample, .tl-chips, .soon-badge, .lg-chip, .lab-chip, .text-link, .tile-cta {
  -webkit-user-select: none; user-select: none; }
