/* sanjaydivakar.com v2: warm blacks, ivory type, his ember accent (the dot in the favicon).
   Same build as founderless.io landing v4: one fixed WebGL canvas, pinned captions, static fallback. */

:root {
  --bg: #0a0908;
  --bg-2: #0f0d0b;
  --panel: #14110f;
  --panel-2: #1a1714;
  --panel-3: #221e1a;
  --tx: #f2ece2;
  --tx-2: #ada396;
  --tx-3: #7a7166;
  --tx-4: #4d463f;
  --ember: #e0583d;
  --ember-btn: #c8412c;
  --ember-btn-2: #d64a33;
  --paper: #f2ece2;
  --ink: #0b0a09;
  --line: rgba(255, 240, 220, 0.07);
  --line-2: rgba(255, 240, 220, 0.11);
  --line-3: rgba(255, 240, 220, 0.18);
  --serif: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pad: clamp(20px, 5.6vw, 88px);
  --max: 1440px;
  --gap: clamp(120px, 14vw, 208px);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --in: cubic-bezier(0.7, 0, 0.84, 0);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; background: var(--bg); }
html.native-smooth { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--tx);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video, svg, canvas { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; color: var(--tx); }
em { font-style: italic; }
[hidden] { display: none !important; }
::selection { background: var(--ember); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 40; padding: 8px 12px; border-radius: 8px; background: var(--paper); color: var(--ink); font-weight: 500; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
.dim { color: var(--tx-3); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); flex: none; }

/* ---------- the WebGL layer ---------- */
#gl { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100vh; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; }
html:not(.gl) #gl { display: none; }
.gl-ready #gl { opacity: 1; }
.gl-ready.gl-off #gl { opacity: 0; }
/* hand-off: the canvas appears instantly under the poster (same pixels), then the poster fades out */
.gl-ready:not(.gl-live) #gl { transition: none; }

/* ---------- header ---------- */
.top {
  position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: 72px; padding: 0 var(--pad);
  display: flex; align-items: center; gap: 24px;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s; border-bottom: 1px solid transparent;
}
.top.solid { background: rgba(10, 9, 8, 0.74); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font: 500 19px/1 var(--serif); letter-spacing: -0.01em; }
.wordmark.small { font-size: 17px; gap: 10px; }
.mono-mark { position: relative; display: inline-flex; align-items: baseline; font: 600 22px/1 var(--serif); letter-spacing: -0.04em; padding-right: 9px; }
.mono-mark i { position: absolute; right: 0; bottom: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }
.small .mono-mark { font-size: 19px; }
.nav { display: flex; gap: 2px; margin: 0 auto; }
.nav a { padding: 8px 12px; border-radius: 8px; font: 400 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--tx-2); transition: color 0.2s, background-color 0.2s; }
.nav a:hover { color: var(--tx); background: rgba(255, 240, 220, 0.05); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px;
  border-radius: 12px; border: 1px solid var(--line-2); background: rgba(20, 17, 15, 0.6);
  font: 500 15px/1 var(--sans); color: var(--tx); white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--out), box-shadow 0.3s;
}
.btn:hover { border-color: var(--line-3); background: var(--panel-2); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--ember-btn); border-color: transparent; color: #fff; box-shadow: 0 10px 30px -12px rgba(224, 88, 61, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.btn.primary:hover { background: var(--ember-btn-2); box-shadow: 0 14px 40px -12px rgba(224, 88, 61, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn.big { height: 56px; padding: 0 28px; font-size: 16.5px; border-radius: 14px; }
.top-cta { height: 40px; padding: 0 16px; font-size: 14px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.text-link { font-size: 15px; color: var(--tx-2); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; transition: color 0.2s, text-decoration-color 0.2s; }
.text-link:hover { color: var(--tx); text-decoration-color: var(--tx-2); }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.ctas.center { justify-content: center; }

/* ---------- type ---------- */
.kicker { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 24px; font: 400 12px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--tx-3); }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.kicker.center { justify-content: center; }
.xxl, .xl, .l, h1, .cap-title { font-family: var(--serif); font-weight: 400; font-optical-sizing: auto; text-wrap: balance; }
.xxl { font-size: clamp(64px, 11vw, 188px); line-height: 0.9; letter-spacing: -0.035em; }
.xl { font-size: clamp(40px, 5.6vw, 92px); line-height: 0.98; letter-spacing: -0.03em; }
.l { font-size: clamp(34px, 3.9vw, 60px); line-height: 1.02; letter-spacing: -0.025em; }
.xxl em, .xl em, .l em, .cap-title em { color: var(--tx-2); }
.sec-sub { margin-top: 26px; max-width: 32em; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--tx-2); }
.ln { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.ln > span { display: inline-block; }

/* ---------- 1 · hero ---------- */
.hero { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--pad) clamp(40px, 7vh, 80px); }
.hero-visual { position: absolute; z-index: -1; pointer-events: none; right: calc(var(--pad) - 1.5vw); top: 50%; translate: 0 -54%; width: min(41vw, 80vh); aspect-ratio: 16 / 10; }
.hero-poster, .final-poster { width: 100%; height: 100%; object-fit: contain; /* fade only the outer edges (hides the image rectangle; the monogram itself stays fully opaque, matching the first WebGL frame) */ --edge: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent); -webkit-mask-image: var(--edge); -webkit-mask-composite: source-in; mask-image: var(--edge); mask-composite: intersect; }
picture { display: contents; }
.hero-poster, .final-poster { transition: opacity 0.3s ease; }
.gl-ready .hero-poster, .gl-ready .final-poster { opacity: 0; }
.gl-live .hero-visual, .gl-live .final-poster { visibility: hidden; }
.hero-copy { position: relative; width: min(680px, 50%); }
.status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 28px; font: 400 12px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--tx-2); }
.status .sep { color: var(--ember); }
h1 { font-size: clamp(56px, 7vw, 122px); line-height: 0.92; letter-spacing: -0.035em; }
h1 em { color: var(--ember); padding-right: 0.04em; }
.mission { margin-top: 30px; font-size: clamp(20px, 1.75vw, 26px); line-height: 1.3; letter-spacing: -0.015em; color: var(--tx); }
.hero .lede { margin-top: 8px; max-width: 30em; font-size: 17px; line-height: 1.5; color: var(--tx-2); }
.hero .ctas { margin-top: 32px; }
.book-chip { display: inline-flex; align-items: center; gap: 14px; margin-top: 34px; padding: 8px 16px 8px 8px; border-radius: 14px; border: 1px solid var(--line); background: rgba(20, 17, 15, 0.5); font-size: 14px; line-height: 1.4; color: var(--tx-2); transition: border-color 0.2s, background-color 0.2s; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.book-chip:hover { border-color: var(--line-3); background: rgba(26, 23, 20, 0.7); }
.book-chip img { width: 30px; height: auto; border-radius: 3px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); }
.book-chip b { font-weight: 500; color: var(--ember); margin-right: 4px; }
.book-chip u { color: var(--tx); text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.scroll-cue { position: absolute; right: var(--pad); bottom: clamp(40px, 7vh, 80px); display: flex; align-items: center; gap: 12px; font: 400 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--tx-3); }
.scroll-cue i { position: relative; width: 1px; height: 44px; background: var(--line-2); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--ember); animation: cue 2.2s var(--out) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* ---------- 2 · story ---------- */
.story { position: relative; z-index: 1; --beat: 115; }
.cap-n { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; font: 400 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--tx-2); }
.cap-n b { font-weight: 400; color: var(--ember); }
.cap-n::after { content: ""; width: 28px; height: 1px; background: var(--line-3); order: -1; align-self: center; }
.cap-title { font-size: clamp(46px, 6.8vw, 118px); line-height: 0.94; letter-spacing: -0.035em; }
.cap-sub { margin-top: 24px; max-width: 30em; font-size: clamp(16.5px, 1.35vw, 19px); line-height: 1.5; color: var(--tx-2); text-wrap: pretty; }
.cap-link { display: inline-flex; gap: 8px; margin-top: 22px; font: 400 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--tx); border-bottom: 1px solid var(--ember); padding-bottom: 6px; }
.cap-link:hover { color: var(--ember); }
.chapters, .skip-story { display: none; }

.gl .story { height: calc(100vh + 2.6 * var(--beat) * 1vh); }
.gl .story-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.gl .still { display: none; }
.gl .cap { position: absolute; left: var(--pad); bottom: clamp(48px, 10vh, 112px); width: min(1000px, 60vw); pointer-events: none; }
.gl .cap.on .cap-link { pointer-events: auto; }
.gl .cap .ln > span { transform: translateY(135%); opacity: 0; transition: transform 0.55s var(--in), opacity 0.3s 0.1s; }
.gl .cap .ln + .ln > span { transition-delay: 0.03s; }
.gl .cap .cap-n, .gl .cap .cap-sub, .gl .cap .cap-link { opacity: 0; transform: translateY(16px); transition: opacity 0.35s, transform 0.5s var(--in); }
.gl .cap.on .ln > span { transform: none; opacity: 1; transition: transform 1.15s var(--out) 0.08s, opacity 0.2s 0.08s; }
.gl .cap.on .ln + .ln > span { transition-delay: 0.18s; }
.gl .cap.on .cap-n { opacity: 1; transform: none; transition: opacity 0.8s 0.05s, transform 1s var(--out) 0.05s; }
.gl .cap.on .cap-sub { opacity: 1; transform: none; transition: opacity 0.9s 0.35s, transform 1.1s var(--out) 0.35s; }
.gl .cap.on .cap-link { opacity: 1; transform: none; transition: opacity 0.9s 0.5s, transform 1.1s var(--out) 0.5s; }
.gl .chapters { display: block; position: absolute; right: var(--pad); top: 50%; translate: 0 -50%; width: 1px; height: 34vh; background: var(--line-2); }
.gl .chapters i { position: absolute; inset: 0; background: var(--ember); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
.gl .chapters span { position: absolute; right: 14px; font: 400 11px/1 var(--mono); letter-spacing: 0.1em; color: var(--tx-3); }
.gl .chapters span:first-of-type { top: -4px; }
.gl .chapters span:last-of-type { bottom: -4px; }
.gl .skip-story {
  display: inline-flex; align-items: center; gap: 8px; position: fixed; z-index: 20; right: var(--pad); bottom: 28px;
  height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(20, 17, 15, 0.6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font: 400 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--tx-2);
  opacity: 0; translate: 0 10px; pointer-events: none; transition: opacity 0.4s, translate 0.5s var(--out), color 0.2s;
}
.gl .skip-story.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.gl .skip-story:hover { color: var(--tx); }

/* without WebGL (reduced motion, no WebGL, or it failed): a plain list with rendered stills */
html:not(.gl) .story { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: var(--gap) var(--pad) 0; }
html:not(.gl) .caps { display: grid; gap: clamp(64px, 9vw, 128px); }
html:not(.gl) .cap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px clamp(40px, 6vw, 96px); align-items: center; }
html:not(.gl) .cap:nth-child(even) .still { order: 2; }
html:not(.gl) .still { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; border: 1px solid var(--line-2); background: var(--panel); }
html:not(.gl) .cap-title { font-size: clamp(38px, 4.6vw, 72px); }

/* ---------- content ---------- */
.content { position: relative; z-index: 2; background: var(--bg); padding-bottom: var(--gap); }
.gl .content::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 36vh; pointer-events: none; background: linear-gradient(to bottom, rgba(10, 9, 8, 0), var(--bg)); }
.gl .content::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 30vh; pointer-events: none; background: linear-gradient(to top, rgba(10, 9, 8, 0), var(--bg)); }
.content > section { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: var(--gap) var(--pad) 0; }
.content > section:first-child { padding-top: clamp(64px, 8vw, 120px); }
.sec-head { margin-bottom: clamp(48px, 6vw, 88px); max-width: 1100px; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 112px); align-items: center; }
.portrait { position: relative; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; border: 1px solid var(--line-2); filter: saturate(0.92) contrast(1.02); }
.portrait::after { content: ""; position: absolute; inset: 0; border-radius: 22px; pointer-events: none; background: linear-gradient(to top, rgba(10, 9, 8, 0.35), transparent 40%); }
.about .body { margin-top: 22px; max-width: 34em; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--tx-2); text-wrap: pretty; }
.about .l + .body { margin-top: 34px; }
.principles { margin-top: 44px; border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; line-height: 1.5; color: var(--tx-2); }
.principles b { font: 400 13px/1.9 var(--mono); color: var(--ember); }
.principles strong { font-weight: 500; }

/* book */
.book { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 128px); align-items: center; }
.book-art { position: relative; display: grid; place-items: center; padding: clamp(24px, 4vw, 64px); border-radius: 28px; background: radial-gradient(70% 60% at 50% 45%, rgba(224, 88, 61, 0.14), transparent 70%), var(--panel); border: 1px solid var(--line); }
.cover { width: min(100%, 420px); border-radius: 6px 10px 10px 6px; box-shadow: -1px 0 0 rgba(255, 255, 255, 0.08) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 20px 40px -20px rgba(0, 0, 0, 0.7); }
.motion .cover[data-tilt] { transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(-8deg) scale(var(--ts, 1)); transform-origin: 50% 60%; will-change: transform; }
.subtitle { margin-top: 14px; font: 400 12px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--tx-3); }
.blurb { margin-top: 34px; padding-left: 22px; border-left: 2px solid var(--ember); }
.blurb p { font: 400 clamp(19px, 1.55vw, 23px)/1.5 var(--serif); color: var(--tx); text-wrap: pretty; }
.blurb footer { margin-top: 14px; font-size: 13.5px; color: var(--tx-3); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-top: 36px; border-top: 1px solid var(--line); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 400 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--tx-3); }
.facts dd { margin-top: 8px; font-size: 15px; color: var(--tx); }
.book .ctas { margin-top: 36px; }

/* speaking */
.talks { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.talk { display: flex; flex-direction: column; gap: 0; }
.thumb { position: relative; display: block; overflow: hidden; border-radius: 18px; border: 1px solid var(--line-2); background: var(--panel); }
.thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s var(--out), filter 0.6s; filter: saturate(0.95); }
.talk:hover .thumb img { transform: scale(1.035); filter: saturate(1.05); }
.play { position: absolute; left: 20px; bottom: 20px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(10, 9, 8, 0.62); border: 1px solid rgba(255, 255, 255, 0.18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color 0.3s, transform 0.4s var(--out); }
.play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.talk:hover .play { background: var(--ember-btn); transform: scale(1.06); }
.talk-meta { margin-top: 22px; font: 400 12px/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--tx-3); }
.talk-title { margin-top: 10px; font: 400 clamp(24px, 2.3vw, 36px)/1.12 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }
.talk-go { margin-top: 14px; font-size: 14.5px; color: var(--tx-2); transition: color 0.2s; }
.talk:hover .talk-go { color: var(--ember); }
.invite { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: clamp(72px, 8vw, 128px); padding: clamp(20px, 2.4vw, 32px); border-radius: 26px; border: 1px solid var(--line); background: var(--bg-2); }
.invite img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 16px; }
.invite h3 { font: 400 clamp(30px, 3vw, 46px)/1.05 var(--serif); letter-spacing: -0.025em; }
.invite p { margin-top: 18px; max-width: 34em; font-size: 17px; line-height: 1.6; color: var(--tx-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; }
.tags li { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--tx-2); }

/* ventures */
.venture-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 920px; }
.venture { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 3.4vw, 52px); border-radius: 26px; border: 1px solid var(--line-2); background: var(--panel); }
.venture.now { background: radial-gradient(90% 80% at 100% 0%, rgba(228, 228, 232, 0.07), transparent 60%), var(--panel); }
.v-when { display: inline-flex; align-items: center; gap: 10px; font: 400 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--tx-2); }
.venture.now .dot { background: #4cc38a; }
.venture h3 { display: flex; align-items: center; gap: 14px; margin-top: 40px; font: 600 clamp(32px, 3.2vw, 48px)/1 var(--sans); letter-spacing: -0.045em; }
.v-line { margin-top: 14px; font: 400 clamp(20px, 1.7vw, 25px)/1.3 var(--serif); color: var(--tx); }
.v-before { margin-top: 4px; font-size: 15px; color: var(--tx-3); }
.v-body { margin: 18px 0 34px; max-width: 34em; font-size: 16.5px; line-height: 1.6; color: var(--tx-2); flex: 1; }

/* ---------- /book/ ---------- */
.bk-hero { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; min-height: 100vh; min-height: 100svh; padding: 120px var(--pad) 80px; }
.bk-cover { display: grid; place-items: center; padding: clamp(24px, 4vw, 64px); border-radius: 28px; background: radial-gradient(70% 60% at 50% 45%, rgba(224, 88, 61, 0.16), transparent 70%), var(--panel); border: 1px solid var(--line); }
.bk-hero h1 { font-size: clamp(52px, 6.4vw, 108px); }
.bk-hero .facts { max-width: 560px; }
.bk-hero .ctas { margin-top: 36px; }
.bk-blurb { max-width: 760px; display: grid; gap: 22px; }
.bk-blurb p { font: 400 clamp(19px, 1.6vw, 24px)/1.55 var(--serif); color: var(--tx); text-wrap: pretty; }
.bk-blurb .src { font: 400 13.5px/1.4 var(--sans); color: var(--tx-3); }
.takeaways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.takeaways li { padding: 28px 26px 30px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--panel); }
.takeaways b { font: 400 12px/1 var(--mono); letter-spacing: 0.12em; color: var(--ember); }
.takeaways h3 { margin-top: 40px; font: 400 26px/1.1 var(--serif); letter-spacing: -0.015em; }
.takeaways p { margin-top: 14px; font-size: 15.5px; line-height: 1.55; color: var(--tx-2); }
.bk-author { display: grid; grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.bk-author .portrait img { aspect-ratio: 1; }
.bk-author .body { margin: 24px 0 26px; max-width: 34em; font-size: 18px; line-height: 1.6; color: var(--tx-2); }
.facts.wide { grid-template-columns: 1fr 1fr; margin-top: 0; }
.facts.wide dd .text-link { font-size: inherit; }
.bk-final { min-height: 70vh; justify-content: center; border-top: 1px solid var(--line); }
@media (max-width: 1100px) { .takeaways { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .bk-hero, .bk-author { grid-template-columns: 1fr; }
  .bk-hero { padding-top: 96px; min-height: 0; }
  .bk-cover { max-width: 460px; }
  .bk-author .portrait { max-width: 320px; }
}
@media (max-width: 520px) {
  .takeaways, .facts.wide { grid-template-columns: 1fr; }
  .bk-hero .ctas .btn { width: 100%; }
}

/* ---------- 7 · final ---------- */
.final { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 96px var(--pad) clamp(64px, 10vh, 120px); text-align: center; }
.final-poster { width: min(40vw, 46vh); height: auto; aspect-ratio: 16 / 10; margin-bottom: clamp(8px, 2vh, 28px); }
.final .kicker { margin-bottom: 20px; }
.final .xl { max-width: 12em; font-size: clamp(42px, 5.4vw, 88px); }
.final .lede { margin-top: 22px; max-width: 32em; font-size: clamp(17px, 1.4vw, 20px); color: var(--tx-2); }
.final .ctas { margin-top: 36px; }

/* ---------- 8 · contact ---------- */
.contact { position: relative; z-index: 2; background: var(--bg); border-top: 1px solid var(--line); }
.contact-inner { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: clamp(96px, 11vw, 168px) var(--pad); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 56px clamp(48px, 7vw, 128px); align-items: end; }
.links { border-top: 1px solid var(--line-2); }
.links a { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 16px; padding: 22px 4px; border-bottom: 1px solid var(--line-2); transition: padding 0.4s var(--out), color 0.2s; }
.links span { font: 400 11.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--tx-3); }
.links b { font: 400 clamp(19px, 1.6vw, 24px)/1.2 var(--serif); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.links i { font-style: normal; color: var(--tx-3); transition: color 0.2s, transform 0.4s var(--out); }
.links a:hover { padding-left: 14px; }
.links a:hover i { color: var(--ember); transform: translateX(3px); }

/* ---------- footer, dock ---------- */
.foot { position: relative; z-index: 2; background: var(--bg); display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; padding: 32px var(--pad) 40px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--tx-3); }
.foot .copy { margin-left: auto; }
.dock { position: fixed; z-index: 25; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(20, 17, 15, 0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }
.dock-copy { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; line-height: 1.25; }
.dock .btn.primary { height: 44px; padding: 0 16px; font-size: 14.5px; }
@media (min-width: 721px) { .dock { display: none !important; } }

/* ---------- motion (html.motion only) ---------- */
@keyframes lineup { from { transform: translateY(110%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade-in { from { opacity: 0; } }
.motion h1 .ln > span { animation: lineup 1.3s var(--out) 0.1s backwards; }
.motion h1 .ln + .ln > span { animation-delay: 0.22s; }
.motion .hero .status, .motion .hero .mission, .motion .hero .lede, .motion .hero .ctas, .motion .book-chip, .motion .scroll-cue { animation: rise 1.1s var(--out) backwards; }
.motion .top { animation: fade-in 1s var(--out) backwards; }
.motion .hero .mission { animation-delay: 0.38s; }
.motion .hero .lede { animation-delay: 0.46s; }
.motion .hero .ctas { animation-delay: 0.54s; }
.motion .book-chip { animation-delay: 0.78s; }
.motion .scroll-cue { animation-delay: 1.1s; }
.motion [data-rv] [data-rv-i] { opacity: 0; transform: translateY(26px); }
.motion [data-rv].in [data-rv-i] { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 1s var(--out); transition-delay: calc(var(--i, 0) * 70ms); }
.motion [data-rv].in .cover[data-rv-i] { transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(-8deg) scale(var(--ts, 1)); transition: opacity 0.9s ease, transform 0.2s linear; }
.motion .dock:not([hidden]) { animation: rise 0.45s var(--out); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .top-cta { margin-left: auto; }
}
@media (max-width: 900px) {
  .about, .book, .talks, .invite, .venture-grid, .contact-inner { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .book-art { max-width: 520px; }
  .invite img { max-width: 320px; aspect-ratio: 1; }
  .foot .copy { margin-left: 0; }
  html:not(.gl) .cap { grid-template-columns: 1fr; }
  html:not(.gl) .cap:nth-child(even) .still { order: 0; }

  /* hero: the monogram on top, copy below */
  .hero { justify-content: flex-start; padding-top: calc(80px + min(56vw, 30vh) + 24px); }
  .hero-visual { right: auto; left: 50%; top: 80px; translate: -50% 0; width: min(90vw, 48vh); }
  .hero-copy { width: 100%; max-width: 640px; }
  .scroll-cue { display: none; }

  .gl .cap { left: var(--pad); right: var(--pad); width: auto; bottom: calc(28px + env(safe-area-inset-bottom)); }
  body:has(.dock:not([hidden])) .cap { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .gl .story-pin::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 60%; pointer-events: none; background: linear-gradient(to top, rgba(10, 9, 8, 0.95) 32%, rgba(10, 9, 8, 0)); }
  .gl .story-pin { isolation: isolate; }
  .gl .chapters { display: none; }
  .gl .skip-story { top: 84px; bottom: auto; right: var(--pad); }
}
@media (max-width: 720px) { .foot { padding-bottom: 100px; } }
@media (max-width: 520px) {
  .top { height: 64px; gap: 12px; }
  .wm-name { display: none; }
  .top-cta { height: 36px; padding: 0 12px; font-size: 13.5px; }
  .hero { padding-top: calc(64px + 56vw + 8px); padding-bottom: 32px; }
  .hero-visual { top: 64px; width: 92vw; }
  h1 { font-size: clamp(46px, 13.4vw, 64px); }
  .status { margin-bottom: 16px; font-size: 10.5px; letter-spacing: 0.12em; }
  .mission { margin-top: 18px; font-size: 19px; }
  .hero .lede { font-size: 15.5px; }
  .hero .ctas { margin-top: 22px; }
  .hero .ctas .btn { flex: 1; }
  .book-chip { margin-top: 22px; font-size: 13px; }
  .cap-title { font-size: clamp(40px, 11.6vw, 54px); }
  .cap-n { margin-bottom: 14px; }
  .cap-sub { margin-top: 14px; font-size: 15.5px; }
  .cap-link { margin-top: 16px; }
  .facts { grid-template-columns: 1fr; }
  .book .ctas .btn { width: 100%; }
  .play { width: 46px; height: 46px; left: 14px; bottom: 14px; }
  .links a { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 18px 2px; }
  .links span { grid-column: 1 / -1; }
  .links i { grid-row: 2; grid-column: 2; }
  .final { padding-top: 72px; padding-bottom: 48px; }
  .final-poster { width: 84vw; margin-bottom: 6px; }
  .final .xl { font-size: clamp(38px, 10.6vw, 48px); }
  .final .lede { margin-top: 14px; font-size: 16px; }
  .final .ctas { margin-top: 26px; width: 100%; }
  .final .btn.big { width: 100%; }
  .foot { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
