:root {
	--bg: #050506;
	--ink: #f2f4f7;
	--dim: #a9b0ba;
	--line: rgba(255, 255, 255, 0.1);
	--glow: #cfe3ff;
	--sans: "Inter Tight", system-ui, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, monospace;
	--serif: "Bodoni Moda", Didot, serif;
	--sym: "Noto Sans Symbols 2", "JetBrains Mono", sans-serif;
	--title: clamp(40px, 5.3vw, 76px);
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }

/* The und wordmark, sized to sit in a line of text like a word. */
.wm {
	display: inline-block;
	width: 1.6em;
	height: 0.733em;
	vertical-align: -0.012em;
	fill: currentColor;
}
.wm-full { width: 2.08em; }

/* Hand-drawn lettering: the letter shapes are a mask, and und's own code
   scrolls behind them. */
.lt {
	--h: 1.3em;
	position: relative;
	display: inline-block;
	height: var(--h);
	width: min(calc(var(--h) * var(--ar, 4)), 92vw);
	max-height: calc(92vw / var(--ar, 4));
	vertical-align: baseline;
}
.lt-code {
	position: absolute;
	inset: 0 0 auto 0;
	white-space: normal;
	word-break: break-all;
	letter-spacing: 0;
	text-align: left;
	animation: code-up 90s linear infinite;
	user-select: none;
}
.lt canvas { position: absolute; inset: 0; width: 100%; height: 100%; letter-spacing: 0; word-spacing: 0; }
.lt::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at var(--mx, -50%) var(--my, -50%), rgba(255, 255, 255, 0.85), transparent 28%);
	mix-blend-mode: overlay;
	pointer-events: none;
}
@keyframes code-up { to { transform: translateY(-50%); } }
.lt::after { border-radius: 8px; }

/* Shared section type */
section { position: relative; scroll-margin-top: 80px; }
.title { margin: 0; font-weight: 500; font-size: var(--title); letter-spacing: -0.035em; line-height: 1.02; }
.title-stack { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.06em; }
.title-left { display: flex; flex-direction: column; align-items: flex-start; gap: 0.06em; }
.title-small { font-size: clamp(36px, 3.9vw, 56px); }
.t-sans { display: block; white-space: nowrap; }
.sub { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; color: var(--dim); text-align: center; }
.sub-wide { max-width: 640px; margin: 0 auto; }
.sub-left { text-align: left; }

.pill {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 20px; border-radius: 999px;
	font-size: 15px; font-weight: 500;
	transition: transform 0.2s ease, background 0.2s ease;
}
.pill-light { background: var(--ink); color: #060709; }
.pill-light:hover { background: #fff; transform: translateY(-1px); }
.pill-big { padding: 15px 24px; font-size: 16px; }

/* Hero */
.nav {
	position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
	display: flex; align-items: center; gap: 2px; padding: 5px;
	border-radius: 999px;
	background: rgba(16, 18, 22, 0.58);
	backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 12px 34px rgba(0, 0, 0, 0.5);
}
.nav-logo {
	display: flex; align-items: center; overflow: hidden;
	width: 0; opacity: 0; padding: 0; font-size: 22px; line-height: 1;
	transition: width 0.45s cubic-bezier(0.65, 0, 0.35, 1), padding 0.45s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s;
}
.nav-logo .wm { flex: none; vertical-align: 0; }
.nav.docked .nav-logo { width: 74px; padding: 0 4px 0 14px; opacity: 1; }
.nav-right { display: flex; gap: 2px; align-items: center; }
.nav-sections { position: relative; display: flex; align-items: center; }
.nav-sections a { position: relative; z-index: 1; padding: 9px 13px; font-size: 15px; color: var(--dim); border-radius: 999px; transition: color 0.25s; }
.nav-sections a:hover, .nav-sections a.on { color: #fff; }
.nav-glow {
	position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 999px; opacity: 0;
	background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
	transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1), width 0.45s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s;
}
.nav-div { width: 1px; height: 20px; margin: 0 6px; background: rgba(255, 255, 255, 0.12); }
@media (max-width: 900px) { .nav-sections, .nav-div { display: none; } }
.nav-link { display: inline-flex; gap: 8px; align-items: center; padding: 9px 15px; font-size: 15px; color: var(--dim); border-radius: 999px; transition: color 0.2s, background 0.2s; }
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav .pill { padding: 9px 17px; }
.hero { position: relative; min-height: 100svh; padding: 74px 0 5vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }








@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }



@keyframes sweep { 0%, 15% { background-position: 0 0, 160% 0; } 70%, 100% { background-position: 0 0, -60% 0; } }






@keyframes march { to { stroke-dashoffset: -9; } }
.spark { fill: #fff; filter: drop-shadow(0 0 6px var(--glow)) drop-shadow(0 0 14px var(--glow)); }




@keyframes fire { 0% { background: #e8edf3; color: #050506; box-shadow: 0 0 24px rgba(207, 227, 255, 0.6); } 20%, 100% { background: #0b0d11; color: #e8edf3; box-shadow: none; } }
@keyframes hit { 0%, 2% { background: #0b0d11; } 4% { background: var(--glow); color: #050506; box-shadow: 0 0 26px rgba(207, 227, 255, 0.55); } 30%, 100% { background: #0b0d11; color: #e8edf3; box-shadow: none; } }








.hero::before {
	content: ""; position: absolute; left: 50%; top: 68%; width: 1300px; height: 700px; transform: translate(-50%, -50%);
	background: radial-gradient(closest-side, rgba(207, 227, 255, 0.08), transparent);
	pointer-events: none;
}








.cta-row { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 48px; flex-wrap: wrap; }

.cmd {
	display: inline-flex; align-items: center; gap: 12px;
	padding: 15px 22px; border-radius: 999px;
	background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
	font-family: var(--mono); font-size: 16px;
	transition: background 0.2s;
}
.cmd:hover { background: rgba(255, 255, 255, 0.1); }
.cmd-prompt { color: var(--dim); }
.cmd svg { color: var(--dim); }
.cmd.copied::after { content: "copied"; font-family: var(--sans); font-size: 13px; color: var(--glow); }

/* Crash-out */
.crash { padding: 0 0 140px; }
.crash-scroll { height: 400vh; }
.crash-sticky { position: sticky; top: 0; height: 100svh; overflow-x: clip; padding-top: 64px; display: grid; place-items: center; perspective: 1400px; }
.crash-title { position: absolute; left: 0; right: 0; top: 40%; transform: translateY(-50%); z-index: 2; will-change: transform, opacity; }
.drag { position: relative; will-change: transform; transform-origin: 34% 0; }
.grab { position: absolute; left: 34%; top: 20px; width: 0; height: 0; z-index: 3; pointer-events: none; will-change: transform, opacity; }
.grab svg { position: absolute; left: -7px; top: -4px; width: 54px; height: 54px; overflow: visible; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55)); }
.grab svg { transition: transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 1), opacity 0.2s; transform-origin: 9px 6px; }
.grab.gone svg { animation: fold 0.26s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
@keyframes fold { to { transform: scale(0.35) rotate(-12deg); opacity: 0; } }
.morph {
	position: absolute; left: 0; top: 0; width: 9px; height: 18px; border-radius: 1.5px;
	background: #fff; box-shadow: 0 0 14px rgba(207, 227, 255, 0.7); opacity: 0; transform-origin: 0 0;
}
.grab.gone .morph { animation: become 0.62s cubic-bezier(0.65, 0, 0.3, 1) 0.08s forwards; }
@keyframes become {
	0% { opacity: 0; transform: translate(2px, 2px) scale(2.2, 1.7) rotate(-14deg); border-radius: 6px; }
	18% { opacity: 1; }
	88% { opacity: 1; transform: translate(var(--tx), var(--ty)) scale(1) rotate(0); border-radius: 1.5px; }
	100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(1); }
}
#tui .cursor.waiting { visibility: hidden; }
#tui .cursor.caught { animation: caught 0.7s ease-out; }
@keyframes caught {
	0% { background: var(--glow); box-shadow: 0 0 0 0 rgba(207, 227, 255, 0.9), 0 0 22px rgba(207, 227, 255, 0.9); }
	100% { background: #fff; box-shadow: 0 0 0 12px rgba(207, 227, 255, 0), 0 0 0 rgba(207, 227, 255, 0); }
}
.grab path { fill: #0b0c0e; stroke: #fff; stroke-width: 1.7; stroke-linejoin: round; }
.ripple { position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(207, 227, 255, 0.85); box-shadow: 0 0 18px rgba(207, 227, 255, 0.5); opacity: 0; }
.ghostty {
	width: min(860px, 94vw, max(620px, 100vw - 560px));
	border-radius: 12px; overflow: hidden;
	background: #282c34; border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 40px 120px rgba(0, 0, 0, 0.85);
}
.ghostty-bar { position: relative; height: 38px; display: flex; align-items: center; justify-content: center; }
.lights { position: absolute; left: 14px; top: 13px; display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.ghostty-title { font: 13px/1 -apple-system, BlinkMacSystemFont, var(--sans); color: #c5c8c6; }
.tui {
	padding: 14px 22px 20px;
	font: clamp(10px, 1.45vh, 14.5px) / 1.52 var(--mono); color: #fff;
	display: flex; flex-direction: column;
}
.tui .row { display: grid; grid-template-columns: 20px 1fr; white-space: pre-wrap; }
.tui .row.you { background: #373737; margin: 0 -6px; padding: 0 6px; }
.tui .sym, .sym { font-family: var(--sym); font-size: 0.9em; }
.tui .gap { height: 1.52em; }
.tui .res { color: #999; }
.tui .res b, .tui b { font-weight: 700; }
.tui .corner { display: inline-block; width: 8px; height: 10px; border-left: 1.2px solid #999; border-bottom: 1.2px solid #999; margin: 0 10px 2px 2px; }
.tui .spin { color: #d77757; }
.tui .rule { border-top: 1px solid #888; margin: 9px 0; }
.tui .meta { color: #999; padding-left: 20px; }
.tui .amber { color: #ffc107; }
.tui .hidden { visibility: hidden; }
.tui .rest { visibility: hidden; }
.cursor { display: inline-block; width: 9px; height: 18px; background: #fff; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.pop {
	position: absolute; margin: 0;
	font: italic 400 clamp(36px, 3.6vw, 60px) / 1.05 var(--serif);
	color: var(--glow); text-shadow: 0 0 30px rgba(207, 227, 255, 0.35);
	opacity: 0; transform: translateY(14px) rotate(var(--r)); transition: opacity 0.5s, transform 0.5s;
	pointer-events: none;
}
.pop.on { opacity: 1; transform: rotate(var(--r)); }
.pop-1 { --r: -5deg; left: max(2vw, calc(50% - 700px)); top: 30%; max-width: 240px; }
.pop-2 { --r: 5deg; right: max(2vw, calc(50% - 700px)); top: 50%; }
.pop-3 { --r: -4deg; right: max(3vw, calc(50% - 670px)); top: 74%; }

.answer {
	width: min(900px, 94vw); margin: 40px auto 0;
	display: flex; gap: 40px; align-items: center;
	padding: 34px 40px; border-radius: 24px;
	background: #0b0d11; border: 1px solid rgba(255, 255, 255, 0.12);
	opacity: 0; transform: translateY(40px); transition: opacity 0.7s, transform 0.7s;
}
.answer.on { opacity: 1; transform: none; }
.answer-text { flex: 0 0 290px; display: flex; flex-direction: column; gap: 16px; }
.answer-from { font-size: 15px; font-weight: 500; color: var(--dim); }
.answer-body { font-size: 27px; font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; }
.links-fig { position: relative; flex: 0 0 450px; height: 230px; }
.links-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.links-svg path { fill: none; stroke: rgba(207, 227, 255, 0.55); stroke-width: 1.5; stroke-dasharray: 140; stroke-dashoffset: 140; transition: stroke-dashoffset 0.9s ease; }
.answer.on .links-svg path { stroke-dashoffset: 0; }
.answer.on .links-svg path:nth-child(1) { transition-delay: 0.5s; }
.answer.on .links-svg path:nth-child(2) { transition-delay: 0.8s; }
.answer.on .links-svg path:nth-child(3) { transition-delay: 1.1s; }
.fchip {
	position: absolute; padding: 7px 12px; border-radius: 10px;
	font: 14px var(--mono); color: #c9ced6;
	background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.14);
	transition: background 0.4s, border-color 0.4s, color 0.4s;
}
.fchip-hot { padding: 10px 16px; font-size: 17px; font-weight: 600; color: #050506; background: var(--glow); border: 0; box-shadow: 0 0 28px rgba(207, 227, 255, 0.4); }
.answer.on .fchip:not(.fchip-hot) { border-color: rgba(207, 227, 255, 0.5); color: #fff; }
.answer.on .fchip:nth-of-type(2) { transition-delay: 1.2s; }
.answer.on .fchip:nth-of-type(3) { transition-delay: 1.5s; }
.answer.on .fchip:nth-of-type(4) { transition-delay: 1.8s; }

/* Questions */
.questions { padding: 120px 0 150px; display: flex; flex-direction: column; gap: 22px; align-items: center; }
.questions .title { margin-bottom: 40px; }
.marquee { width: 100%; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: slide var(--dur) linear infinite; }
.marquee[data-dir="right"] .marquee-track { animation-direction: reverse; }
@keyframes slide { to { transform: translateX(-50%); } }
.q { padding: 16px 24px; border-radius: 24px 24px 6px 24px; font-size: 21px; white-space: nowrap; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.marquee[data-dir="right"] .q { border-radius: 24px 24px 24px 6px; }
.q-hot { background: var(--ink); color: #050506; }
.questions .sub { margin-top: 34px; }

/* Stack */
.stack { padding: 60px 0 160px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.stack .title { margin-bottom: 6px; }
.stack-stage { position: relative; width: min(1120px, 88vw); margin-top: 50px; }
.app-window { width: 100%; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8); position: relative; }
.stack-glow { position: absolute; left: 15%; right: 15%; top: 20%; bottom: -10%; background: radial-gradient(closest-side, rgba(207, 227, 255, 0.16), transparent); filter: blur(40px); }
.tag {
	position: absolute; display: inline-flex; gap: 10px; align-items: center;
	padding: 12px 18px; border-radius: 999px; font-size: 17px; white-space: nowrap;
	background: rgba(11, 13, 18, 0.9); border: 1px solid rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.tag-floor { left: max(-7%, calc(16px + (100% - 100vw) / 2)); top: 37%; }
.tag-block { left: 50%; top: 14%; }
.tag-steps { right: max(-7%, calc(16px + (100% - 100vw) / 2)); bottom: -3%; }

/* Story and quiz */
.learn { width: min(1200px, 90vw); margin: 0 auto; padding: 80px 0 160px; }
.learn-cols { display: flex; gap: 60px; align-items: flex-start; margin-top: 72px; }
.quiz {
	flex: 0 0 560px; display: flex; flex-direction: column; gap: 14px;
	padding: 40px; border-radius: 28px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
	transform: rotate(1.2deg);
}
.quiz-top { display: flex; justify-content: space-between; align-items: center; font-size: 16px; color: var(--dim); }
.quiz-score { font: italic 22px var(--serif); color: var(--glow); }
.quiz-q { font-size: 36px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; margin: 10px 0 12px; }
.opt {
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	padding: 18px 22px; border-radius: 16px; text-align: left;
	background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
	transition: background 0.2s, border-color 0.2s;
}
.opt:hover { background: rgba(255, 255, 255, 0.07); }
.opt code { font: 18px var(--mono); }
.opt-note { font-size: 15px; color: var(--dim); }
.opt.right { background: var(--ink); color: #050506; }
.opt.right .opt-note { color: #050506; }
.opt.wrong { border-style: dashed; border-color: rgba(255, 255, 255, 0.3); }
.opt.wrong code { text-decoration: line-through; }
.opt:not(.right) .opt-note:empty { display: none; }
.learn-side { flex: 1; display: flex; flex-direction: column; gap: 28px; padding-top: 30px; }

.prompter { display: flex; flex-direction: column; gap: 22px; padding: 26px 30px 28px; border-radius: 22px; background: #0b0d11; border: 1px solid rgba(255, 255, 255, 0.12); }
.prompter-top { display: flex; justify-content: space-between; align-items: center; }
.prompter-title { font-size: 16px; font-weight: 500; }
.live { display: inline-block; margin-right: 10px; vertical-align: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.timer { display: inline-flex; gap: 10px; align-items: center; font: 14px var(--mono); color: var(--dim); }
.timer svg { transform: rotate(-90deg); }
.ring-track, .ring-fill { fill: none; stroke-width: 2.4; }
.ring-track { stroke: rgba(255, 255, 255, 0.12); }
.ring-fill { stroke: var(--glow); stroke-dasharray: 59.7; stroke-dashoffset: 59.7; }
.script { font-size: 25px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.5; }
.script .w { color: rgba(242, 244, 247, 0.28); transition: color 0.25s; border-radius: 6px; }
.script .w.read { color: var(--ink); }
.script .w.now { background: rgba(207, 227, 255, 0.15); box-shadow: 0 0 0 4px rgba(207, 227, 255, 0.15); }
.script .chip { font: 17px var(--mono); padding: 3px 9px; border-radius: 7px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12); }
.script .chip.read { color: var(--glow); background: rgba(207, 227, 255, 0.12); border-color: rgba(207, 227, 255, 0.4); }
.progress { height: 2px; background: rgba(255, 255, 255, 0.1); border-radius: 1px; position: relative; }
.progress-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--glow); }
.progress-fill::after { content: ""; position: absolute; right: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px var(--glow); }

/* Engine room */
.engine { width: min(1200px, 90vw); margin: 0 auto; padding: 60px 0 160px; display: flex; flex-direction: column; gap: 110px; }
.numbers { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.num { width: 560px; display: flex; flex-direction: column; gap: 14px; }
.num-2 { width: 420px; }
.fig { display: flex; align-items: flex-end; gap: 10px; }
.fig-v { font: italic 400 clamp(120px, 14vw, 200px) / 0.9 var(--serif); letter-spacing: -0.03em; }
.fig-u { font-size: 40px; font-weight: 500; color: var(--glow); padding-bottom: 0.2em; }
.agent-block { display: flex; flex-direction: column; gap: 40px; }
.agent-row { display: flex; gap: 72px; align-items: center; }
.agent-text { flex: 0 0 430px; display: flex; flex-direction: column; gap: 22px; }
.term { flex: 1; min-width: 0; border-radius: 18px; overflow: hidden; background: #0b0d11; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); }
.term-bar { position: relative; height: 40px; background: rgba(255, 255, 255, 0.03); }
.term-body { margin: 0; padding: 22px 28px 28px; font: 15px/1.6 var(--mono); white-space: pre-wrap; overflow-x: auto; }
.c-w { color: #f2f4f7; } .c-g { color: #999; } .c-b { color: var(--glow); } .c-d { color: #6f7782; }
.c-cyan { color: #00cccc; } .c-amber { color: #ffc107; }

/* Lobby */
.lobby { padding: 40px 0 0; overflow-x: clip; display: flex; flex-direction: column; align-items: center; }
.note {
	position: relative;
	width: min(720px, 90vw); padding: 60px 64px 52px; border-radius: 3px;
	color: #1a1c20; transform: rotate(-1.2deg);
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"),
		linear-gradient(170deg, #f7f6f2, #ecebe5);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 2px 4px rgba(0, 0, 0, 0.35), 0 30px 60px -10px rgba(0, 0, 0, 0.75), 0 60px 120px -30px rgba(207, 227, 255, 0.12);
	display: flex; flex-direction: column; gap: 20px;
	font-size: 21px; line-height: 1.55; letter-spacing: -0.005em; text-wrap: pretty;
}
.note::before, .note::after {
	content: ""; position: absolute; top: -8px; width: 118px; height: 30px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.05)),
		rgba(243, 240, 230, 0.9);
	backdrop-filter: blur(1.5px) saturate(0.9); -webkit-backdrop-filter: blur(1.5px) saturate(0.9);
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.22));
	clip-path: polygon(0% 0.0%, 3% 6.2%, 0% 12.5%, 3% 18.8%, 0% 25.0%, 3% 31.2%, 0% 37.5%, 3% 43.8%, 0% 50.0%, 3% 56.2%, 0% 62.5%, 3% 68.8%, 0% 75.0%, 3% 81.2%, 0% 87.5%, 3% 93.8%, 0% 100.0%, 100% 100.0%, 97% 93.8%, 100% 87.5%, 97% 81.2%, 100% 75.0%, 97% 68.8%, 100% 62.5%, 97% 56.2%, 100% 50.0%, 97% 43.8%, 100% 37.5%, 97% 31.2%, 100% 25.0%, 97% 18.8%, 100% 12.5%, 97% 6.2%, 100% 0.0%);
}
.note::before { left: -34px; transform: rotate(-38deg); }
.note::after { right: -34px; transform: rotate(36deg); }
.note-hl {
	color: inherit; font-weight: 500; font-size: 26px; letter-spacing: -0.015em; line-height: 1.55;
	padding: 0.02em 0.22em; margin: 0 -0.22em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cpath fill='%23ffe14d' fill-opacity='.62' d='M7 9C58 5 131 8 214 5S356 4 393 8C399 15 398 27 393 33C301 36 205 32 112 35S24 37 5 33C1 25 2 15 7 9Z'/%3E%3Cpath fill='%23ffe14d' fill-opacity='.35' d='M12 13C90 10 170 14 260 11S370 12 390 14L389 20C300 18 200 21 110 19S30 21 11 20Z'/%3E%3Cpath fill='%23ffffff' fill-opacity='.18' d='M20 26C120 24 220 27 330 25L360 27C250 29 140 30 22 29Z'/%3E%3C/svg%3E") no-repeat 0 58% / 0% 92%;
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
	transition: background-size 1.5s cubic-bezier(0.55, 0, 0.25, 1) 0.3s;
}
.note.on .note-hl { background-size: 100% 92%; }
.note-head { display: inline-flex; align-self: flex-start; align-items: center; gap: 12px; color: inherit; margin-bottom: -2px; }
.note-head img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); }
.note-head span { display: flex; flex-direction: column; line-height: 1.25; }
.note-head b { font-size: 18px; font-weight: 600; }
.note-head small { font-size: 15px; color: #6a6e76; }
.note-head:hover b { text-decoration: underline; }
.note-time { font-size: 15px; color: #6a6e76; padding-top: 16px; border-top: 1px solid rgba(0, 0, 0, 0.1); }
.exit { width: 100%; margin-top: 80px; min-height: max(440px, calc(100svh - 280px)); padding: 48px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; background: radial-gradient(48% 38% at 50% 42%, rgba(207, 227, 255, 0.09), transparent 100%); }
.exit-mark { width: 190px; height: 207px; color: var(--ink); }

/* Footer */
.footer { padding: 44px 40px 52px; border-top: 1px solid var(--line); font: 16px var(--mono); display: flex; flex-direction: column; gap: 6px; }
.f-spin { color: #d77757; padding-bottom: 14px; }
.f-spin .sym { font-size: 15px; }
.f-rule { border-top: 1px solid #888; margin: 6px 0; }
.f-input { font-size: 18px; padding: 6px 0; }
.f-input .sym { margin-right: 10px; }
.f-status { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-left: 16px; }
.f-right { font-size: 14px; }
.f-links { padding-left: 16px; color: #ffc107; }
.f-links a { color: #ffc107; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.f-links a:hover { color: #ffe08a; }

/* Smaller screens */
@media (max-width: 1100px) {
	.learn-cols, .agent-row { flex-direction: column; }
	.agent-row { align-items: stretch; gap: 40px; }
	.quiz, .agent-text { flex: none; width: 100%; }
	.numbers { flex-direction: column; align-items: flex-start; }
	.num, .num-2 { width: 100%; }
	.answer { flex-direction: column; align-items: flex-start; }
	.answer-text { flex: none; }
	.links-fig { flex: none; width: 450px; }
	.pop { display: none; }
	.tag-floor { left: 2%; } .tag-steps { right: 2%; }
}
@media (max-width: 720px) {
	.nav { padding: 18px 20px; }
	.tui { font-size: 10.5px; padding: 12px; }
	.links-fig { flex: none; width: 450px; transform: scale(0.7); transform-origin: left top; height: 165px; }
	.tag { font-size: 13px; padding: 8px 12px; }
	.tag-block { display: none; }
	.quiz { padding: 24px; transform: none; }
	.quiz-q { font-size: 26px; }
	.script { font-size: 19px; }
	.note { padding: 40px 26px 36px; font-size: 18px; }
	.note-hl { font-size: 20px; }
	.footer { padding: 32px 18px 40px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.pop, .answer { opacity: 1; transform: none; }
}

/* Paused while off screen (set by main.js). */
.paused, .paused *, .paused::before, .paused::after { animation-play-state: paused !important; }



/* ---------- Monolith hero ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero { height: 100svh; min-height: 560px; padding: 0; display: block; }
.hero::before { display: none; }
.ml {
	--hz: 60%;          /* the horizon */
	--lh: min(25svh, 15vw); /* letter height */
	--p: 0; --px: 0;
	position: absolute; inset: 0; overflow: hidden;
	transform-origin: var(--lx, 60%) var(--hz);
	transform: scale(calc(1 + var(--p) * 0.55)) translateY(calc(var(--p) * 6svh));
}
.ml-sky {
	position: absolute; inset: 0;
	background:
		radial-gradient(42% 34% at var(--lx, 60%) var(--hz), rgba(156, 200, 255, 0.20), transparent 70%),
		linear-gradient(to bottom, #040405 0%, #0b0e14 calc(var(--hz) - 1px), #050506 var(--hz));
	animation: ml-sky 2.6s ease-out both;
}
@keyframes ml-sky { from { opacity: 0.2; } }

/* The floor: a plane of und's source, hinged at the horizon */
.ml-floor {
	position: absolute; left: 0; right: 0; top: var(--hz); bottom: 0; overflow: hidden;
	perspective: 420px; perspective-origin: calc(50% + var(--px) * 12%) 0;
	/* Far rows near the horizon shrink below a pixel and flicker as the code
	   moves, so the floor fades out into the distance before they show. */
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 6%, rgba(0, 0, 0, 0.12) 16%, rgba(0, 0, 0, 0.55) 28%, #000 42%);
	mask-image: linear-gradient(to bottom, transparent 0, transparent 6%, rgba(0, 0, 0, 0.12) 16%, rgba(0, 0, 0, 0.55) 28%, #000 42%);
}
.ml-plane {
	position: absolute; left: -160%; width: 420%; top: 0; height: 900%;
	transform-origin: 50% 0; transform: rotateX(82deg);
	overflow: hidden;
}
.ml-code {
	margin: 0; font: 500 12px / 1.75 var(--mono); color: #d4e4ff; white-space: pre;
	/* Half a million characters: skipping ligatures and kerning makes laying
	   them out about 6 times faster, with no visible difference at this size. */
	font-variant-ligatures: none; font-kerning: none; text-rendering: optimizeSpeed;
	animation: ml-roll 70s linear infinite;
}
@keyframes ml-roll { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.ml-shade {
	position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(to bottom, #050506 0%, rgba(5, 5, 6, 0.7) 4%, transparent 14%),
		radial-gradient(58% 75% at var(--lx, 60%) 0%, transparent 0%, rgba(5, 5, 6, 0.55) 30%, rgba(5, 5, 6, 0.93) 70%, #050506 100%);
	animation: ml-lightson 2.6s ease-out both;
}
@keyframes ml-lightson { 0% { background-color: #050506; } 30% { background-color: rgba(5, 5, 6, 0.9); } 34% { background-color: rgba(5, 5, 6, 0.3); } 40% { background-color: rgba(5, 5, 6, 0.8); } 100% { background-color: transparent; } }

/* The logo, standing on the horizon */
.ml-mark {
	position: absolute; left: 50%; top: calc(var(--hz) - var(--lh));
	height: var(--lh); aspect-ratio: 256.2 / 90.2344;
	transform: translateX(calc(-50% - var(--px) * 1.2%));
}
.ml-letters { position: absolute; left: 0; top: 0; width: 76.9%; height: 100%; overflow: visible; }
.ml-letters path { fill: #090b0f; stroke: rgba(205, 218, 236, 0.7); stroke-width: 0.45; }
.ml-block {
	position: absolute; left: 79.32%; top: 0; width: 20.69%; height: 98.4%;
	background: #e4efff; border-radius: 1px;
	box-shadow: 0 0 30px rgba(156, 200, 255, 0.9), 0 0 110px rgba(156, 200, 255, 0.55), 0 0 260px rgba(156, 200, 255, 0.3);
	animation: ml-ignite 2.6s steps(1, end) both, ml-breathe 6s ease-in-out 2.6s infinite;
}
@keyframes ml-ignite { 0% { opacity: 0; } 20% { opacity: 0.85; } 24% { opacity: 0.1; } 30% { opacity: 1; } 34% { opacity: 0.35; } 40%, 100% { opacity: 1; } }
@keyframes ml-breathe { 50% { box-shadow: 0 0 34px rgba(156, 200, 255, 0.95), 0 0 140px rgba(156, 200, 255, 0.6), 0 0 320px rgba(156, 200, 255, 0.34); } }
.ml-main .ml-letters { filter: drop-shadow(18px 0 50px rgba(156, 200, 255, 0.12)); }
/* The block's light falling forward across the floor, like light from a door */
.ml-spill {
	position: absolute; top: 100%; left: calc(79.32% - 60%); width: calc(20.69% + 120%); height: 260%;
	clip-path: polygon(42.65% 0, 57.35% 0, 100% 100%, 0 100%);
	background: linear-gradient(to bottom, rgba(214, 230, 255, 0.34), rgba(156, 200, 255, 0.1) 35%, transparent 75%);
	filter: blur(3px); pointer-events: none;
}
/* Its reflection on the floor */
.ml-reflect {
	transform: translateX(calc(-50% - var(--px) * 1.2%)) scaleY(-1); transform-origin: 50% 100%;
	opacity: 0.4; filter: blur(2px);
	-webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%); mask-image: linear-gradient(to top, #000 0%, transparent 85%);
}
.ml-reflect .ml-block { box-shadow: none; animation: ml-ignite 2.6s steps(1, end) both; }

/* Command and download, typed on the floor */
.run-line {
	position: absolute; left: 0; right: 0; bottom: max(6svh, 28px); z-index: 2;
	display: flex; justify-content: center; align-items: center; gap: 26px;
	font: 500 16px var(--mono); color: #e8eef6;
	opacity: 0; animation: ml-up 0.6s ease 0.3s forwards;
}
@keyframes ml-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.run-cmd { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 9px; position: relative; }
.run-dollar { color: #9cc8ff; }
.run-caret { width: 9px; height: 19px; background: #9cc8ff; animation: blink 1.1s steps(1) infinite; }
.run-copied { position: absolute; left: 50%; top: -28px; transform: translateX(-50%); font-size: 12px; color: #9cc8ff; opacity: 0; transition: opacity 0.2s; }
.run-cmd.copied .run-copied { opacity: 1; }
.run-div { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.2); }
.run-dl { color: inherit; text-decoration: underline; text-decoration-color: rgba(156, 200, 255, 0.5); text-underline-offset: 5px; }
.run-dl:hover, .run-cmd:hover { color: #fff; }
.run-cmd:focus-visible, .run-dl:focus-visible { outline: 1px solid #9cc8ff; outline-offset: 6px; }
/* Opening: main.js plays it (see "Opening" there). Until it starts, the
   scene is dark. The load animations above are replaced by the opening. */
html.intro:not(.intro-go) :is(.ml-sky, .ml-floor, .ml-letters, .ml-block, .ml-spill, .nav, .run-line) { opacity: 0; }
html.intro :is(.ml-sky, .ml-shade, .ml-reflect .ml-block) { animation: none; }
html.intro .ml-main .ml-block { animation: ml-breathe 6s ease-in-out 3.5s infinite; }
html.intro .run-line { animation: none; opacity: 1; }
/* Blend into the page below */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24svh; background: linear-gradient(transparent, rgba(5, 5, 6, 0.8) 50%, var(--bg)); pointer-events: none; z-index: 1; }
@media (max-width: 720px) { .ml { --hz: 56%; --lh: 27vw; } .run-line { flex-direction: column; gap: 14px; font-size: 15px; } .run-div { display: none; } }
@media (prefers-reduced-motion: reduce) { .ml-code, .ml-block, .ml-shade, .ml-sky { animation: none; } .run-line { animation: none; opacity: 1; } }
