/* Attention economics: one scene for the page and the video (assets/attention/attention.js). */
.ae {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
	color: #e6e6e6;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
.ae *, .ae *::before, .ae *::after { box-sizing: border-box; }
.ae-canvas {
	position: absolute;
	left: 0;
	top: 0;
	width: 1920px;
	height: 1080px;
	transform-origin: 0 0;
	overflow: hidden;
	background: #000;
}
.ae-mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; }

/* Room */
.ae-room {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 900px 520px at 1010px 420px, rgba(70, 110, 190, .32), transparent 70%),
		radial-gradient(ellipse 1400px 900px at 960px 300px, #0c111c, #020305 75%);
}
.ae-world { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; }
.ae-desk {
	position: absolute;
	left: 0;
	right: 0;
	top: 760px;
	height: 400px;
	background: linear-gradient(#0a0d14, #040508);
	border-top: 1px solid rgba(120, 150, 210, .12);
}
.ae-lid {
	position: absolute;
	left: 610px;
	top: 188px;
	width: 800px;
	height: 464px;
	border-radius: 22px;
	background: #111317;
	box-shadow: 0 0 0 2px #23262c, 0 0 160px 30px rgba(90, 130, 220, .25);
}
.ae-base {
	position: absolute;
	left: 560px;
	top: 652px;
	width: 900px;
	height: 26px;
	border-radius: 0 0 26px 26px;
	background: linear-gradient(#2a2d33, #121418);
}
.ae-screen {
	position: absolute;
	left: 0;
	top: 0;
	width: 1920px;
	height: 1080px;
	transform-origin: 0 0;
	overflow: hidden;
	background: linear-gradient(135deg, #1b2a4a, #3b2350 55%, #0f1b33);
}
.ae-person { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 960px 1080px; }
.ae-fade { position: absolute; inset: 0; background: #000; pointer-events: none; }

/* Desktop */
.ae-menubar {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	height: 32px;
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 0 18px;
	background: rgba(20, 20, 26, .72);
	font-size: 14px;
	color: #e9e9ee;
}
.ae-menubar b { font-weight: 700; }
.ae-menubar .ae-right { margin-left: auto; display: flex; gap: 18px; opacity: .9; }
.ae-dock {
	position: absolute;
	left: 50%;
	bottom: 8px;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	padding: 8px 12px;
	border-radius: 20px;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .18);
}
.ae-dock i { width: 46px; height: 46px; border-radius: 12px; display: block; }

.ae-win {
	position: absolute;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08);
}
.ae-bar {
	height: 36px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 14px;
	font-size: 13px;
}
.ae-dots { display: flex; gap: 8px; margin-right: 10px; }
.ae-dots i { width: 12px; height: 12px; border-radius: 50%; display: block; background: #ff5f57; }
.ae-dots i:nth-child(2) { background: #febc2e; }
.ae-dots i:nth-child(3) { background: #28c840; }
.ae-bar .ae-title { flex: 1; text-align: center; margin-right: 70px; opacity: .75; }

/* IDE */
.ae-ide { left: 36px; top: 50px; width: 1848px; height: 950px; background: #1e1f24; color: #c9ccd3; }
.ae-ide .ae-bar { background: #18191d; border-bottom: 1px solid #2b2d33; }
.ae-ide-body { position: absolute; top: 36px; bottom: 24px; left: 0; right: 0; display: flex; }
.ae-acts { width: 48px; background: #18191d; border-right: 1px solid #2b2d33; padding-top: 14px; }
.ae-acts i { display: block; width: 22px; height: 22px; margin: 0 auto 22px; border: 2px solid #6d717c; border-radius: 5px; }
.ae-acts i:first-child { border-color: #e6e6e6; }
.ae-tree { width: 300px; background: #1a1b20; border-right: 1px solid #2b2d33; font-size: 13.5px; padding: 8px 0; overflow: hidden; }
.ae-tree h6 { margin: 4px 16px 8px; font-size: 11px; letter-spacing: .08em; color: #8b8f99; font-weight: 600; }
.ae-row { height: 24px; line-height: 24px; white-space: nowrap; color: #b9bdc6; }
.ae-row.is-dir::before { content: "›"; display: inline-block; width: 14px; color: #7d818b; }
.ae-row.is-open::before { content: "⌄"; }
.ae-row.is-file::before { content: ""; display: inline-block; width: 14px; }
.ae-row.is-php { color: #a5b4fc; }
.ae-row.is-active { background: #2c3446; color: #fff; }
.ae-row.is-plugin { color: #fff; font-weight: 600; }
.ae-row .ae-glow { border-radius: 4px; padding: 1px 4px; margin-left: -4px; }

.ae-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ae-tabs { height: 36px; display: flex; background: #18191d; border-bottom: 1px solid #2b2d33; font-size: 13px; }
.ae-tabs span { padding: 0 18px; line-height: 36px; border-right: 1px solid #2b2d33; color: #8b8f99; }
.ae-tabs span.is-on { background: #1e1f24; color: #e6e6e6; border-top: 2px solid #6ea8ff; line-height: 32px; }
.ae-crumbs { height: 26px; line-height: 26px; padding: 0 16px; font-size: 12.5px; color: #8b8f99; }
.ae-editor { position: relative; flex: 1; overflow: hidden; font-size: 15px; line-height: 23px; }
.ae-code { position: absolute; left: 0; right: 0; top: 0; tab-size: 4; -moz-tab-size: 4; }
.ae-ln { display: flex; white-space: pre; }
.ae-ln > b { width: 58px; padding-right: 18px; text-align: right; color: #565a64; font-weight: 400; flex: none; }
.ae-ln.is-hl { background: rgba(110, 168, 255, .08); }
.ae-mark { border-radius: 3px; }
.t-k { color: #c792ea; }
.t-s { color: #c3e88d; }
.t-v { color: #f78c6c; }
.t-c { color: #676e7b; font-style: italic; }
.t-f { color: #82aaff; }

.ae-term { height: 330px; border-top: 1px solid #2b2d33; background: #17181c; display: flex; flex-direction: column; }
.ae-term-tabs { height: 32px; display: flex; gap: 24px; padding: 0 16px; font-size: 12px; letter-spacing: .05em; color: #8b8f99; align-items: center; }
.ae-term-tabs .is-on { color: #e6e6e6; border-bottom: 1px solid #e6e6e6; padding-bottom: 4px; }
.ae-term-out { flex: 1; padding: 6px 18px; font-size: 14.5px; line-height: 22px; white-space: pre; overflow: hidden; color: #d4d4d8; }
.ae-term-out .c-dim { color: #7c818c; }
.ae-term-out .c-ok { color: #4ade80; }
.ae-term-out .c-tool { color: #e6e6e6; }
.ae-term-out .c-tool::first-letter { color: #4ade80; }
.ae-term-out .c-think { color: #e08a5c; }
.ae-term-out .c-box { color: #e6e6e6; border: 1px solid #5c606b; border-radius: 6px; padding: 2px 10px; display: inline-block; margin: 4px 0; min-width: 900px; }

.ae-agent { width: 430px; background: #1a1b20; border-left: 1px solid #2b2d33; display: flex; flex-direction: column; font-size: 14px; }
.ae-agent-head { height: 36px; display: flex; align-items: center; gap: 16px; padding: 0 16px; border-bottom: 1px solid #2b2d33; font-size: 13px; color: #8b8f99; }
.ae-agent-head .is-on { color: #e6e6e6; }
.ae-agent-log { flex: 1; padding: 14px 16px; overflow: hidden; line-height: 21px; }
.ae-agent-log .ae-msg { background: #262832; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; color: #e6e6e6; }
.ae-agent-log .ae-step { color: #8b8f99; margin: 0 0 8px; font-size: 13px; }
.ae-agent-log .ae-step b { color: #c9ccd3; font-weight: 500; }
.ae-agent-input { margin: 12px; border: 1px solid #3a3d46; border-radius: 10px; padding: 12px; min-height: 118px; background: #20222a; color: #e6e6e6; line-height: 21px; }
.ae-agent-input small { display: block; margin-top: 10px; color: #6d717c; font-size: 12px; }
.ae-status { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; line-height: 24px; background: #2c3446; font-size: 12px; padding: 0 12px; display: flex; gap: 22px; color: #dfe6f5; }
.ae-caret { display: inline-block; width: 2px; height: 1.1em; vertical-align: -0.18em; background: currentColor; margin-left: 1px; }

/* Chat app */
.ae-chat { left: 330px; top: 110px; width: 1000px; height: 760px; background: #262624; color: #e8e6dc; display: flex; flex-direction: column; }
.ae-chat .ae-bar { background: #1f1e1d; }
.ae-chat-body { flex: 1; display: flex; min-height: 0; }
.ae-chat-side { width: 220px; background: #1f1e1d; padding: 16px 12px; font-size: 13px; color: #a8a596; }
.ae-chat-side p { margin: 0 0 10px; padding: 6px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ae-chat-side p.is-on { background: #353431; color: #e8e6dc; }
.ae-chat-side .ae-new { color: #e8e6dc; font-weight: 600; }
.ae-chat-main { flex: 1; display: flex; flex-direction: column; padding: 22px 40px 18px; min-width: 0; }
.ae-chat-log { flex: 1; overflow: hidden; font-size: 15.5px; line-height: 25px; }
.ae-chat-user { margin-left: auto; max-width: 70%; background: #141413; border-radius: 14px; padding: 10px 16px; margin-bottom: 18px; width: fit-content; }
.ae-chat-ans { font-family: Georgia, "Times New Roman", serif; font-size: 16.5px; white-space: pre-wrap; }
.ae-chat-ans strong { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.ae-chat-input { border: 1px solid #45443f; border-radius: 16px; background: #30302e; padding: 14px 16px; display: flex; align-items: center; color: #8f8c80; font-size: 15px; }
.ae-chat-input i { margin-left: auto; width: 32px; height: 32px; border-radius: 8px; background: #c96442; display: block; }

/* Image app */
.ae-img { left: 1190px; top: 330px; width: 680px; height: 640px; background: #212121; color: #ececec; display: flex; flex-direction: column; }
.ae-img .ae-bar { background: #181818; }
.ae-img-main { flex: 1; padding: 20px 28px; display: flex; flex-direction: column; min-height: 0; }
.ae-img-user { margin-left: auto; background: #303030; border-radius: 18px; padding: 10px 16px; max-width: 80%; font-size: 15px; line-height: 22px; margin-bottom: 14px; }
.ae-img-label { font-size: 14px; color: #b4b4b4; margin-bottom: 10px; }
.ae-img-frame { position: relative; width: 400px; height: 300px; border-radius: 16px; overflow: hidden; background: #2a2a2a; }
.ae-img-pic { position: absolute; inset: -20px; }
.ae-img-veil { position: absolute; left: 0; right: 0; bottom: 0; background: #2a2a2a; }
.ae-img-input { margin-top: auto; border-radius: 26px; background: #303030; padding: 14px 20px; font-size: 15px; color: #9b9b9b; display: flex; align-items: center; }
.ae-img-input i { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: #ececec; display: block; }

/* Notifications and pointer */
.ae-notes { position: absolute; right: 22px; top: 44px; width: 380px; }
.ae-note {
	position: absolute;
	left: 0;
	width: 380px;
	padding: 12px 14px;
	border-radius: 16px;
	background: rgba(42, 42, 48, .92);
	border: 1px solid rgba(255, 255, 255, .1);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
	display: flex;
	gap: 12px;
	font-size: 13.5px;
	line-height: 19px;
}
.ae-note i { width: 38px; height: 38px; border-radius: 9px; flex: none; display: block; }
.ae-note b { display: block; color: #fff; }
.ae-note span { color: #c8c8cf; }
.ae-pointer { position: absolute; left: 0; top: 0; width: 26px; height: 34px; }

/* Crash: grey curtain over the frozen desktop */
.ae-crash { position: absolute; left: 0; top: 0; width: 1920px; height: 0; overflow: hidden; background: rgba(28, 28, 30, .88); }
.ae-crash-box {
	position: absolute;
	left: 50%;
	top: 540px;
	transform: translate(-50%, -50%);
	width: 760px;
	padding: 34px 44px;
	border-radius: 18px;
	background: rgba(10, 10, 12, .82);
	color: #f2f2f4;
	text-align: center;
	font-size: 19px;
	line-height: 28px;
}
.ae-crash-box svg { display: block; margin: 0 auto 22px; }
.ae-crash-box p { margin: 0 0 16px; }
.ae-crash-box p:last-child { margin: 0; }
.ae-black { position: absolute; inset: 0; background: #000; opacity: 0; }

/* Neon finale */
.ae-final { position: absolute; inset: 0; opacity: 0; text-align: center; background: radial-gradient(ellipse 1100px 500px at 50% 42%, rgba(255, 0, 170, .16), transparent 70%), #000; }
.ae-neon {
	position: absolute;
	left: 0;
	right: 0;
	top: 300px;
	font-size: 156px;
	line-height: 1;
	font-weight: 800;
	letter-spacing: -.02em;
	color: #fff4fd;
	text-shadow: 0 0 6px #fff, 0 0 18px #ff4fd8, 0 0 42px #ff1ec8, 0 0 90px #ff00aa, 0 0 160px #ff00aa;
}
.ae-neon .ae-caret { width: 8px; background: #ff4fd8; box-shadow: 0 0 20px #ff1ec8; }
.ae-danger {
	position: absolute;
	left: 0;
	right: 0;
	top: 500px;
	font-size: 42px;
	font-weight: 600;
	color: #ffd9dc;
	text-shadow: 0 0 6px #ff4757, 0 0 18px #ff1f35, 0 0 44px #ff0022;
}
.ae-cta { position: absolute; left: 0; right: 0; top: 690px; }
.ae-cta-title { font-size: 34px; font-weight: 700; color: #eaffff; text-shadow: 0 0 10px #00f0ff, 0 0 30px #00c8ff; }
.ae-cta-sub { margin-top: 10px; font-size: 22px; color: #9fb4c8; }
.ae-arrow { display: block; margin: 26px auto 0; filter: drop-shadow(0 0 10px #00f0ff) drop-shadow(0 0 28px #00c8ff); }
.ae-url { margin-top: 8px; font-size: 26px; color: #eaffff; letter-spacing: .02em; text-shadow: 0 0 12px #00f0ff; }
.ae-neon--intro { top: 462px; }

/* Final scene: the arrow is a real button. Layers above it let clicks through. */
.ae-black, .ae-final { pointer-events: none; }
.ae-down { display: block; margin: 26px auto 0; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; border-radius: 12px; }
.ae-down .ae-arrow { margin: 0; }
.ae-down:hover .ae-arrow, .ae-down:focus-visible .ae-arrow { filter: drop-shadow(0 0 16px #00f0ff) drop-shadow(0 0 44px #00f0ff); }
.ae-down:focus-visible { outline: 4px solid #eaffff; outline-offset: 8px; }

/* Page: dark, content 2/3, sidebar 1/3. */
body:has(.ae-page) { background: #000; }
.ae-page { background: #000; color: #e6e6e6; }
.ae-page a { color: #7fe9ff; }
.ae-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); max-width: 1360px; margin: 0 auto; padding: clamp(32px, 5vw, 72px) clamp(16px, 4vw, 48px) clamp(48px, 6vw, 96px); scroll-margin-top: 60px; }
.ae-main :is(h1, h2, h3, h4, p, li, blockquote) { color: inherit; }
.ae-main h1 { margin-top: 0; }
.ae-main h2 { margin-top: 2.2em; }
.ae-side { position: sticky; top: 72px; align-self: start; display: flex; flex-direction: column; gap: 20px; max-height: calc(100svh - 88px); overflow-y: auto; }
.ae-short { display: block; width: 100%; max-width: 300px; aspect-ratio: 9 / 16; margin: 0 auto; border: 0; border-radius: 12px; background: #111; }
.ae-page .ae-yt { display: block; padding: 18px 20px; border-radius: 12px; background: #e5484d; color: #fff; font-weight: 700; font-size: 1.125rem; line-height: 1.3; text-align: center; text-decoration: none; }
.ae-page .ae-yt:hover, .ae-page .ae-yt:focus-visible { background: #c93a3f; }
.ae-toc { display: flex; flex-direction: column; border-left: 2px solid #2b303a; }
.ae-page .ae-toc a { padding: 6px 0 6px 16px; color: #9fb4c8; text-decoration: none; }
.ae-page .ae-toc a:hover, .ae-page .ae-toc a:focus-visible { color: #fff; }
.ae-page .ae-toc .is-top { font-weight: 700; color: #fff; }

/* Related: looping carousel, moved by attention.js; swipe and drag work in both directions. Without JS or with reduced motion it is a plain horizontal scroll. */
.ae-rel { padding: 0 0 clamp(48px, 6vw, 96px); }
.ae-page .ae-rel-title { max-width: 1360px; margin: 0 auto 24px; padding: 0 clamp(16px, 4vw, 48px); color: #fff; }
.ae-rel-view { overflow-x: auto; }
.ae-rel-view.is-loop { scrollbar-width: none; cursor: grab; }
.ae-rel-view.is-loop::-webkit-scrollbar { display: none; }
.ae-rel-view.is-drag { cursor: grabbing; user-select: none; }
.ae-rel-view.is-drag a { pointer-events: none; }
.ae-rel-track { display: flex; gap: 20px; width: max-content; padding: 4px clamp(16px, 4vw, 48px); }
.ae-rel-view.is-loop .ae-rel-track { padding: 4px 0; }
.ae-page .ae-rel-card { display: flex; flex-direction: column; gap: 10px; flex: none; width: clamp(220px, 24vw, 320px); min-height: 150px; padding: 24px; border: 1px solid #2b303a; border-radius: 12px; background: #0f1115; color: #9fb4c8; text-decoration: none; }
.ae-rel-card b { font-size: 2rem; line-height: 1; color: #fff; }
.ae-page .ae-rel-card:hover, .ae-page .ae-rel-card:focus-visible { border-color: #00f0ff; color: #fff; }

/* Mobile version: vertical scene (buildMobile in attention.js). The stage already is the short, so the sidebar drops its player. */
.ae--mobile { aspect-ratio: 9 / 16; max-height: calc(100svh - 50px); }
.aem { position: absolute; left: 0; top: 0; width: 1080px; height: 1920px; transform-origin: 0 0; overflow: hidden; background: #000; color: #fff; }
.aem-view { position: absolute; left: 0; top: 400px; width: 1080px; height: 1160px; overflow: hidden; background: #000; }
.aem-cap { position: absolute; left: 40px; right: 40px; top: 120px; text-align: center; }
.aem-capk { font: 700 26px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 6px; color: #ff4fd8; text-shadow: 0 0 14px #ff1ec8; }
.aem-capt { margin-top: 14px; font-size: 66px; font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; }
.aem-capt em { font-style: normal; color: #ffd9dc; text-shadow: 0 0 8px #ff4757, 0 0 24px #ff1f35, 0 0 50px #ff0022; }
.aem-capt b { color: #eaffff; text-shadow: 0 0 10px #00f0ff, 0 0 30px #00c8ff; }
.aem-brand { position: absolute; left: 0; right: 0; top: 1630px; display: flex; justify-content: center; }
.aem-layer { position: absolute; inset: 0; background: #000; pointer-events: none; }
.aem-out { opacity: 0; }
.aem-neon { position: absolute; left: 0; width: 1080px; text-align: center; font-size: 190px; font-weight: 800; line-height: 1.02; letter-spacing: -2px; color: #fff4fd; text-shadow: 0 0 6px #fff, 0 0 18px #ff4fd8, 0 0 42px #ff1ec8, 0 0 90px #ff00aa, 0 0 160px #ff00aa; }
.aem-neon .ae-caret { width: 9px; background: #ff4fd8; box-shadow: 0 0 20px #ff1ec8; }
.aem-neon--intro { top: 760px; }
.aem-neon--fin { top: 470px; }
.aem-line { position: absolute; left: 90px; top: 900px; width: 900px; text-align: center; font-size: 60px; font-weight: 700; line-height: 1.2; color: #ffd9dc; text-shadow: 0 0 6px #ff4757, 0 0 18px #ff1f35, 0 0 44px #ff0022; }
.aem-cta { position: absolute; left: 0; width: 1080px; top: 1230px; text-align: center; }
.aem-cta-t { font-size: 58px; font-weight: 800; color: #eaffff; text-shadow: 0 0 10px #00f0ff, 0 0 30px #00c8ff; }
.aem-cta-s { margin-top: 12px; font-size: 32px; color: #9fb4c8; }
.aem-arrow { display: block; filter: drop-shadow(0 0 10px #00f0ff) drop-shadow(0 0 28px #00c8ff); }
.aem-down { margin-top: 30px; padding: 24px 48px; }

@media (max-width: 782px) {
	.ae-layout { grid-template-columns: minmax(0, 1fr); }
	.ae-side { position: static; order: -1; max-height: none; }
	.ae-short { display: none; }
	.ae-main h1 { font-size: clamp(2rem, 9vw, 2.75rem); line-height: 1.1; }
}
