:root {
  --canvas: #0b0d10;
  --surface: #14171c;
  --elevated: #1b1f26;
  --border: #262b33;
  --border-strong: #343b46;
  --primary: #7c5cff;
  --primary-soft: rgba(124, 92, 255, 0.14);
  --secondary: #3ecf8e;
  --secondary-soft: rgba(62, 207, 142, 0.14);
  --warn: #ffb35c;
  --warn-soft: rgba(255, 179, 92, 0.14);
  --muted: #9aa4b2;
  --bright: #f3f4f6;
  --shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 24px 60px -24px rgba(0,0,0,0.7);
  --glow: 0 0 0 1px var(--primary-soft), 0 30px 80px -30px rgba(124,92,255,0.45);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, "Menlo", monospace;
}
[data-theme="light"] {
  --canvas: #f7f8fa;
  --surface: #ffffff;
  --elevated: #ffffff;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --primary: #6b45ff;
  --primary-soft: rgba(107, 69, 255, 0.10);
  --secondary: #16935f;
  --secondary-soft: rgba(26, 157, 103, 0.12);
  --warn: #c76a00;
  --warn-soft: rgba(199, 106, 0, 0.10);
  --muted: #5b6472;
  --bright: #0b0d10;
  --shadow: 0 1px 2px rgba(16,24,40,0.04), 0 16px 40px -20px rgba(16,24,40,0.2);
  --glow: 0 0 0 1px var(--primary-soft), 0 30px 70px -30px rgba(107,69,255,0.3);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font); background: var(--canvas); color: var(--bright);
  line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
img { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--bright); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--primary-soft); color: var(--bright); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 12px var(--primary); }
.mono { font-family: var(--mono); }

/* ---------- nav ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; transform-origin: 0 50%; transform: scaleX(var(--scroll, 0)); background: linear-gradient(90deg, var(--primary), var(--secondary)); }
nav { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); background: color-mix(in srgb, var(--canvas) 72%, transparent); border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease); }
nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18.5px; letter-spacing: -0.02em; color: var(--bright); }
.wordmark .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 14px var(--primary); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--bright); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-signin { font-size: 14px; color: var(--muted); font-weight: 600; }
.theme-toggle { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: all 0.2s var(--ease); }
.theme-toggle:hover { color: var(--bright); border-color: var(--muted); }
.theme-toggle svg { width: 16px; height: 16px; }
.sun { display: none; } .moon { display: block; }
[data-theme="light"] .sun { display: block; } [data-theme="light"] .moon { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font); font-weight: 600; font-size: 14.5px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; padding: 10px 18px; transition: all 0.2s var(--ease); white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 24px -8px rgba(124,92,255,0.6), 0 0 0 1px rgba(255,255,255,0.06) inset; }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 32px -8px rgba(124,92,255,0.75); }
.btn-ghost { background: transparent; color: var(--bright); border-color: var(--border); }
.btn-ghost:hover { color: var(--bright); border-color: var(--muted); background: var(--surface); }
.btn-lg { padding: 13px 24px; font-size: 15.5px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 96px 0 40px; overflow: hidden; }
.hero-glow { position: absolute; top: -200px; left: 50%; width: 1000px; height: 680px; margin-left: -500px; pointer-events: none; background: radial-gradient(closest-side, rgba(124,92,255,0.30), transparent 72%); filter: blur(24px); transform: translate3d(0, calc(var(--y, 0) * 0.35px), 0); }
.hero-glow.two { left: 80%; top: 140px; width: 560px; height: 520px; margin-left: -280px; background: radial-gradient(closest-side, rgba(62,207,142,0.16), transparent 70%); transform: translate3d(0, calc(var(--y, 0) * 0.15px), 0); }
.hero-grid-bg { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 64px 64px; opacity: 0.22; mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%); }
.hero-copy { position: relative; z-index: 1; text-align: center; max-width: 860px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 80%, transparent); font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 28px; }
.hero-badge .pill { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--secondary); background: var(--secondary-soft); padding: 3px 8px; border-radius: 999px; text-transform: uppercase; }
.hero-title { font-size: clamp(38px, 6.2vw, 76px); line-height: 1; letter-spacing: -0.045em; font-weight: 750; margin-bottom: 24px; text-wrap: balance; }
.hero-title .w { display: inline-block; opacity: 0; transform: translateY(0.4em); filter: blur(8px); animation: word-in 0.9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 80ms); }
.hero-title .accent { background: linear-gradient(120deg, var(--primary), #a689ff 55%, var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes word-in { to { opacity: 1; transform: none; filter: none; } }
.hero-sub { font-size: clamp(16.5px, 1.9vw, 19.5px); color: var(--muted); max-width: 640px; margin: 0 auto 34px; text-wrap: pretty; line-height: 1.6; }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; justify-content: center; }
.hero-meta { margin-top: 24px; font-size: 13.5px; color: var(--muted); display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong); }
.fade-up { opacity: 0; transform: translateY(16px); animation: fade-up 0.9s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* ---------- video wall ---------- */
.wall { position: relative; z-index: 1; margin-top: 72px; perspective: 1600px; }
.wall-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.wall-title { font-size: 15px; font-weight: 650; display: inline-flex; align-items: center; gap: 10px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 10px var(--secondary); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.wall-note { font-size: 12.5px; color: var(--muted); }
.wall-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; transform-origin: 50% 0; transform: rotateX(calc(var(--tilt, 1) * 14deg)) scale(calc(1 - var(--tilt, 1) * 0.06)); }
.wall-grid.n-1, .wall-grid.n-2, .wall-grid.n-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin: 0 auto; }
.vcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); color: var(--bright); transition: border-color 0.3s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.vcard:hover { color: var(--bright); border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); transform: translateY(-4px); box-shadow: var(--glow); }
.vthumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.vthumb > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), opacity 0.4s var(--ease); }
.vcard:hover .vthumb > img { transform: scale(1.04); }
/* Rendered at 2x so YouTube's fixed-size overlays shrink relative to the video, then cropped
 * (0.72 of 2x = 1.44x zoom) so the title bar and logo fall outside the frame. */
.vthumb iframe { position: absolute; top: 50%; left: 50%; width: 200%; height: 200%; border: 0; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(0.72); transition: opacity 0.6s var(--ease); }
.vthumb.playing iframe { opacity: 1; }
.vthumb::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55)); }
.vdur, .vlive { position: absolute; z-index: 2; bottom: 10px; font-family: var(--mono); font-size: 11px; color: #fff; padding: 2px 6px; border-radius: 5px; background: rgba(0,0,0,0.72); }
.vdur { right: 10px; }
.vlive { left: 10px; display: none; align-items: center; gap: 6px; }
.vthumb.loading .vlive, .vthumb.playing .vlive { display: inline-flex; }
.vthumb.loading .vlive::before, .vthumb.playing .vlive::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff4d4d; }
.vthumb.loading .vlive::before { animation: pulse 1s infinite; }
.vplay { position: absolute; z-index: 2; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; display: none; place-items: center; background: rgba(0,0,0,0.6); color: #fff; cursor: pointer; backdrop-filter: blur(6px); }
.vplay svg { width: 14px; height: 14px; }
@media (hover: none) { .vplay { display: grid; } }
.vbody { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.vchan { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 550; min-width: 0; }
.vchan img, .avatar { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background: var(--elevated); }
.avatar { display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--primary), #a689ff); }
.vchan span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vtitle { font-size: 15px; font-weight: 650; line-height: 1.35; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vstats { font-size: 12px; color: var(--muted); }
.vinsight { margin-top: auto; display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--bright); line-height: 1.45; padding: 10px 11px; border-radius: 10px; background: var(--secondary-soft); border: 1px solid color-mix(in srgb, var(--secondary) 22%, transparent); }
.vinsight .ts { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--secondary); flex-shrink: 0; padding-top: 1px; }
.vinsight .tx { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- sections ---------- */
section { position: relative; }
.section-pad { padding: 112px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(30px, 4vw, 48px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 720; margin: 16px 0 14px; text-wrap: balance; }
.section-lead { font-size: 17.5px; color: var(--muted); text-wrap: pretty; line-height: 1.6; }

/* ---------- backlog stats ---------- */
.backlog { padding: 84px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.stat { text-align: center; }
.stat .big { font-size: clamp(48px, 6.5vw, 76px); font-weight: 750; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, var(--bright), var(--muted)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .big.accent { background: linear-gradient(180deg, #a689ff, var(--primary)); -webkit-background-clip: text; background-clip: text; }
.stat .lbl { margin-top: 12px; font-size: 15px; color: var(--muted); text-wrap: pretty; max-width: 260px; margin-left: auto; margin-right: auto; }
.backlog-line { text-align: center; margin-top: 50px; font-size: clamp(20px, 2.5vw, 28px); font-weight: 650; letter-spacing: -0.02em; text-wrap: balance; }
.backlog-line .g { color: var(--secondary); } .backlog-line .p { color: var(--primary); }

/* ---------- story (sticky scroll) ---------- */
.story { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: start; }
.story-steps { display: grid; gap: 0; }
.story-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: 0.35; transition: opacity 0.5s var(--ease); }
.story-step.active { opacity: 1; }
.story-step:first-child { min-height: 56vh; }
.step-k { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.step-k b { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); }
.story-step h3 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 720; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 14px; text-wrap: balance; }
.story-step p { font-size: 16.5px; color: var(--muted); line-height: 1.65; text-wrap: pretty; max-width: 460px; }
.story-step ul { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.story-step li { display: flex; gap: 10px; font-size: 14.5px; color: var(--muted); }
.story-step li::before { content: ""; flex-shrink: 0; width: 17px; height: 17px; margin-top: 2px; border-radius: 5px; background: var(--secondary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ecf8e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.story-step li strong { color: var(--bright); font-weight: 600; }
.story-stage { position: sticky; top: calc(50vh - 235px); height: 470px; }
.stage-frame { position: relative; height: 100%; border-radius: 22px; background: linear-gradient(180deg, var(--elevated), var(--surface)); border: 1px solid var(--border); box-shadow: var(--glow); overflow: hidden; }
.stage-frame::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 240px at 80% -10%, var(--primary-soft), transparent 60%); }
.stage-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.stage-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.stage-bar span { margin-left: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.stage-dots { position: absolute; z-index: 3; right: 18px; top: 16px; display: flex; gap: 6px; }
.stage-dots b { width: 18px; height: 4px; border-radius: 4px; background: var(--border-strong); transition: background 0.4s var(--ease), width 0.4s var(--ease); }
.stage-dots b.on { background: var(--primary); width: 28px; }
.layer { position: absolute; inset: 52px 0 0; padding: 22px; opacity: 0; transform: translateY(18px) scale(0.985); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); pointer-events: none; overflow: hidden; }
.layer.on { opacity: 1; transform: none; pointer-events: auto; }
.inline-visual { display: none; }

.track-list { display: grid; gap: 10px; }
.track-row { display: flex; align-items: center; gap: 13px; background: var(--canvas); border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; opacity: 0; transform: translateX(-12px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.on .track-row, .inline-visual .track-row { opacity: 1; transform: none; }
[data-theme="light"] .track-row, [data-theme="light"] .distill, [data-theme="light"] .mini-pb { background: #fafbfc; }
.track-row .avatar, .track-row img { width: 36px; height: 36px; border-radius: 50%; }
.track-row .info { flex: 1; min-width: 0; }
.track-row .nm { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-row .sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { font-size: 11px; font-weight: 650; padding: 4px 9px; border-radius: 999px; white-space: nowrap; color: var(--secondary); background: var(--secondary-soft); }

.distill { background: var(--canvas); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.distill-head { display: flex; gap: 13px; align-items: center; margin-bottom: 14px; }
.distill-head img { width: 104px; aspect-ratio: 16/9; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.distill-head .ti { font-size: 14px; font-weight: 650; line-height: 1.3; margin-bottom: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.distill-head .ch { font-size: 12px; color: var(--muted); }
.distill-sum { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.distill-k { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--secondary); margin-bottom: 8px; }
.tk-list { list-style: none; display: grid; gap: 8px; }
.tk-list a { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--bright); padding: 8px 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); transition: border-color 0.2s var(--ease); opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.2s; transition-delay: calc(var(--i) * 120ms + 200ms); }
.on .tk-list a, .inline-visual .tk-list a { opacity: 1; transform: none; }
.tk-list a:hover { border-color: var(--secondary); color: var(--bright); }
.tk-list .ts { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--secondary); background: var(--secondary-soft); padding: 1px 6px; border-radius: 5px; flex-shrink: 0; }
.read-time { position: absolute; top: 22px; right: 22px; font-size: 11px; color: var(--secondary); font-weight: 650; }

.mini-pb { background: var(--canvas); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.pb-tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); padding: 4px 9px; border-radius: 6px; display: inline-block; }
.mini-pb .t { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; margin: 12px 0 4px; }
.mini-pb .s { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.mini-step { display: flex; gap: 11px; margin-bottom: 11px; opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); transition-delay: calc(var(--i) * 110ms + 150ms); }
.on .mini-step, .inline-visual .mini-step { opacity: 1; transform: none; }
.mini-step .n { flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; font-family: var(--mono); }
.mini-step .b { font-size: 13px; color: var(--muted); line-height: 1.5; }
.mini-step .b strong { color: var(--bright); font-weight: 600; }
.cite { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 4px; font-family: var(--mono); font-size: 9.5px; font-weight: 700; vertical-align: middle; background: var(--secondary-soft); color: var(--secondary); margin: 0 1px; transform: translateY(-1px); }

/* ---------- playbook showcase ---------- */
.pb-shell { background: linear-gradient(180deg, var(--elevated), var(--surface)); border: 1px solid var(--border); border-radius: 26px; padding: 6px; box-shadow: var(--glow); }
.pb-doc { background: var(--canvas); border: 1px solid var(--border); border-radius: 21px; padding: 44px; display: grid; grid-template-columns: 1.35fr 0.9fr; gap: 48px; }
[data-theme="light"] .pb-doc { background: #fafbfc; }
.pb-kicker { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.pb-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--secondary); font-weight: 600; background: var(--secondary-soft); padding: 4px 11px; border-radius: 999px; }
.pb-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.08; margin-bottom: 10px; }
.pb-meta { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.pb-thesis { font-size: 18px; line-height: 1.5; font-weight: 550; letter-spacing: -0.01em; padding-left: 16px; border-left: 3px solid var(--primary); margin-bottom: 30px; text-wrap: pretty; }
.tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 26px; }
.tag { font-size: 11.5px; font-family: var(--mono); color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 3px 9px; border-radius: 6px; }
.pb-steps { position: relative; display: grid; gap: 22px; }
.pb-steps::before { content: ""; position: absolute; left: 16px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.pb-steps::after { content: ""; position: absolute; left: 16px; top: 8px; width: 2px; height: calc((100% - 16px) * var(--fill, 0)); background: linear-gradient(var(--primary), var(--secondary)); transition: height 0.2s linear; }
.pb-step { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 16px; }
.pb-step .n { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--muted); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 14px; transition: all 0.4s var(--ease); }
.pb-step.lit .n { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 18px -6px rgba(124,92,255,0.7); }
.pb-step h4 { font-size: 16.5px; font-weight: 650; margin: 5px 0 5px; letter-spacing: -0.01em; }
.pb-step p { font-size: 14.5px; color: var(--muted); line-height: 1.6; text-wrap: pretty; }
.cite-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 19px; padding: 0 5px; border: 0; border-radius: 5px; font-family: var(--mono); font-size: 10.5px; font-weight: 700; background: var(--secondary-soft); color: var(--secondary); margin: 0 1.5px; vertical-align: middle; cursor: pointer; transition: all 0.2s var(--ease); }
.cite-btn:hover, .cite-btn:focus-visible { background: var(--secondary); color: #08130d; }
.cite-pop { position: absolute; z-index: 20; bottom: calc(100% + 10px); left: 50%; width: 260px; transform: translate(-50%, 6px); opacity: 0; pointer-events: none; transition: all 0.25s var(--ease); background: var(--elevated); border: 1px solid var(--border-strong); border-radius: 12px; padding: 8px; box-shadow: var(--shadow); text-align: left; font-family: var(--font); }
.cite-btn:hover .cite-pop, .cite-btn:focus-visible .cite-pop { opacity: 1; transform: translate(-50%, 0); }
.cite-pop img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 7px; margin-bottom: 8px; }
.cite-pop b { display: block; font-size: 12.5px; color: var(--bright); line-height: 1.35; font-weight: 600; }
.cite-pop span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; font-weight: 500; }
.pb-side { display: grid; gap: 16px; align-content: start; }
.side-card { border: 1px solid var(--border); border-radius: 16px; padding: 18px; background: var(--surface); }
.side-k { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.split-topic { font-size: 15px; font-weight: 650; margin-bottom: 12px; }
.split-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 13.5px; line-height: 1.5; color: var(--muted); margin-top: 10px; }
.split-row .lbl { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; }
.split-row .works { color: var(--secondary); background: var(--secondary-soft); }
.split-row .breaks { color: var(--warn); background: var(--warn-soft); }
.action-card { background: linear-gradient(135deg, var(--primary-soft), transparent 70%), var(--surface); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.action-card p { font-size: 15px; font-weight: 600; line-height: 1.5; }
.src-faces { display: flex; align-items: center; margin-bottom: 12px; }
.src-faces img { width: 54px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; border: 2px solid var(--surface); margin-left: -12px; box-shadow: 0 4px 10px -4px rgba(0,0,0,0.5); }
.src-faces img:first-child { margin-left: 0; }
.src-faces .more { margin-left: 8px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.src-names { font-size: 13px; color: var(--muted); line-height: 1.55; }
.src-names b { color: var(--bright); font-weight: 600; }
.pb-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pb-cta .note { font-size: 12.5px; color: var(--muted); }

/* ---------- features ---------- */
/* ---------- method ---------- */
.method { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.method-item { background: var(--surface); padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.method-item::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) calc(var(--d, 0ms) + 200ms); }
.method-item.in::before { transform: scaleX(1); }
.method-k { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; align-items: baseline; }
.method-k b { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--primary); letter-spacing: 0; }
.method-item h3 { font-size: 18px; font-weight: 680; letter-spacing: -0.015em; }
.method-item p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.method-more { text-align: center; margin-top: 26px; font-weight: 600; }
.method-more a { color: var(--primary); }
@media (max-width: 980px) { .method { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .method { grid-template-columns: 1fr; } .method-item { padding: 22px 20px; } }
@media (prefers-reduced-motion: reduce) { .method-item::before { transform: scaleX(1); transition: none; } }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 14px; transition: border-color 0.3s var(--ease), transform 0.4s var(--ease); }
.feature:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); transform: translateY(-4px); }
.feature h3 { font-size: 19px; font-weight: 680; letter-spacing: -0.015em; }
.feature > p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.f-visual { margin-top: auto; background: var(--canvas); border: 1px solid var(--border); border-radius: 12px; padding: 14px; font-size: 12.5px; }
[data-theme="light"] .f-visual { background: #fafbfc; }
.f-row { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); align-items: flex-start; }
.f-row:first-of-type { border-top: 0; }
.f-row .i { font-family: var(--mono); color: var(--muted); font-weight: 700; font-size: 11px; padding-top: 1px; }
.f-row .h { font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.f-row .m { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.f-sub { font-size: 11px; color: var(--muted); font-family: var(--mono); margin-bottom: 6px; }
.focus-input { border: 1px solid var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); border-radius: 9px; padding: 10px 12px; font-size: 13px; font-weight: 550; margin-bottom: 12px; }
.focus-input .cursor { display: inline-block; width: 1.5px; height: 14px; background: var(--primary); margin-left: 1px; vertical-align: middle; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.chip.on { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 50%, transparent); background: var(--primary-soft); }
.quote-mini { font-size: 13px; line-height: 1.5; margin-bottom: 10px; }
.quote-mini .cite { margin-left: 3px; }
.jump { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--bright); }
.jump img { width: 64px; aspect-ratio: 16/9; border-radius: 5px; object-fit: cover; }
.jump .ts { font-family: var(--mono); color: var(--secondary); font-weight: 700; font-size: 11px; }
.jump .ttl { font-size: 12px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- homage / waitlist / footer ---------- */
.homage { padding: 40px 0 100px; }
.homage-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.homage-quote { font-size: clamp(30px, 5vw, 56px); font-weight: 720; letter-spacing: -0.04em; line-height: 1.08; margin-bottom: 18px; text-wrap: balance; }
.homage-quote span { color: var(--muted); transition: color 0.6s var(--ease); }
.homage-quote span.lit { color: var(--bright); }
.homage-attr { font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.homage-attr b { color: var(--bright); font-weight: 600; }
.homage-note { font-size: 15px; color: var(--muted); max-width: 480px; margin: 0 auto; line-height: 1.6; text-wrap: pretty; }
.homage-note .p { color: var(--primary); font-weight: 600; }
.waitlist { padding: 110px 0; overflow: hidden; border-top: 1px solid var(--border); }
.waitlist-glow { position: absolute; bottom: -240px; left: 50%; width: 1000px; height: 560px; margin-left: -500px; background: radial-gradient(closest-side, rgba(124,92,255,0.24), transparent 72%); filter: blur(20px); pointer-events: none; }
.waitlist-inner { max-width: 640px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.waitlist h2 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.04em; font-weight: 750; line-height: 1.02; margin: 16px 0; text-wrap: balance; }
.waitlist p.lead { font-size: 17px; color: var(--muted); margin-bottom: 34px; text-wrap: pretty; }
.waitlist-form { display: flex; gap: 10px; max-width: 470px; margin: 0 auto 18px; }
.waitlist-form input { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 14px 16px; font-size: 15px; color: var(--bright); font-family: var(--font); transition: all 0.2s var(--ease); }
.waitlist-form input::placeholder { color: var(--muted); }
.waitlist-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.waitlist-success { display: none; align-items: center; justify-content: center; gap: 9px; font-size: 15px; color: var(--secondary); font-weight: 600; padding: 8px 0; }
.waitlist-success.show { display: flex; }
.waitlist-note { font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.waitlist-note .pill { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--secondary); background: var(--secondary-soft); padding: 3px 9px; border-radius: 999px; }
footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-left { display: flex; flex-direction: column; gap: 6px; }
.footer-tag { font-size: 13.5px; color: var(--muted); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.footer-links a:hover { color: var(--bright); }
.footer-copy { font-size: 12.5px; color: var(--muted); width: 100%; margin-top: 8px; line-height: 1.6; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-stage { display: none; }
  .story-step, .story-step:first-child { min-height: 0; opacity: 1; padding: 36px 0; }
  .inline-visual { display: block; position: relative; margin-top: 26px; }
  .pb-doc { grid-template-columns: 1fr; gap: 32px; padding: 30px; }
  .features { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-inner { padding: 12px 16px; }
  .nav-links, .nav-signin { display: none; }
  .hero { padding-top: 64px; }
  .hero-cta .btn { flex: 1; }
  .wall { margin-top: 52px; }
  .wall-grid, .wall-grid.n-1, .wall-grid.n-2, .wall-grid.n-4 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 4px 16px 14px; transform: none; scrollbar-width: none; }
  .wall-grid::-webkit-scrollbar { display: none; }
  .wall-grid .vcard { flex: 0 0 82%; scroll-snap-align: center; }
  .section-pad { padding: 76px 0; }
  .stat-grid { grid-template-columns: 1fr; gap: 34px; }
  .pb-doc { padding: 20px; }
  .cite-pop { display: none; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .fade-up, .hero-title .w, .track-row, .tk-list a, .mini-step { opacity: 1 !important; transform: none !important; filter: none !important; }
  .wall-grid { transform: none !important; }
  .hero-glow { transform: none; }
}
/* The title link covers the whole card; the preview button sits above it. */
.vcard .vtitle { color: var(--bright); }
.vcard .vtitle::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.vcard .vplay { z-index: 3; }
.vcard:focus-within { border-color: var(--primary); }
.vcard .vtitle:focus-visible { outline: none; }
.on-touch { display: none; }
@media (hover: none) { .on-hover { display: none; } .on-touch { display: inline; } }
.hero-badge .pill { white-space: nowrap; }
.src-faces { flex-wrap: wrap; row-gap: 6px; }
@media (max-width: 640px) {
  .src-faces img:nth-of-type(n+5) { display: none; }
  .hero-badge { font-size: 12px; }
}
