:root {
	--bg: #030102;
	--red: #bf0010;
	--hot: #ff303b;
	--pale: #ffe1df;
	--text: #d2a9ac;
	--dim: #82464c;
	--line: #4a0a12;
	--panel: rgba(8, 2, 3, 0.86);
	--pixel: "Tiny5", ui-monospace, "SF Mono", Menlo, monospace;
	--mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--gutter: clamp(16px, 5vw, 48px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--mono);
	font-size: 15px;
	line-height: 1.7;
	overflow-x: hidden;
}

::selection { color: var(--pale); background: #791421; }

canvas { image-rendering: pixelated; display: block; }

#storm {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	height: 100lvh;
	z-index: 0;
	pointer-events: none;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

a { color: var(--red); text-decoration: none; }
a:hover, a:focus-visible { color: var(--hot); }
a:focus-visible { outline: 1px dashed var(--hot); outline-offset: 4px; }

.hero {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	min-height: 100svh;
	display: grid;
	grid-template-rows: auto 1fr auto;
	justify-items: center;
	padding: clamp(12px, 3vh, 32px) var(--gutter) 28px;
}

nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px clamp(12px, 6vw, 96px);
	font-family: var(--pixel);
	font-size: 27px;
	line-height: 1;
}

nav a {
	display: grid;
	place-items: center;
	min-height: 44px;
	padding: 0 8px;
}

nav svg { display: block; fill: currentColor; visibility: hidden; }

.hero-center {
	align-self: center;
	display: grid;
	justify-items: center;
	gap: clamp(20px, 4vh, 40px);
	width: 100%;
}

h1 { margin: 0; width: min(88vw, 968px); }

.tagline {
	margin: 0;
	font-family: var(--pixel);
	font-size: clamp(20px, 3.2vw, 34px);
	line-height: 1.15;
	color: var(--pale);
	text-align: center;
}

.scroll-hint {
	font-family: var(--pixel);
	font-size: 18px;
	color: var(--dim);
	padding: 12px 16px;
}

.scroll-hint::after {
	content: "v";
	display: block;
	text-align: center;
	animation: nudge 1.2s steps(2) infinite;
}

@keyframes nudge { 50% { transform: translateY(4px); } }

main {
	position: relative;
	z-index: 1;
	display: grid;
	gap: clamp(72px, 14vh, 160px);
	padding: clamp(48px, 10vh, 120px) var(--gutter);
}

section {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	scroll-margin-top: 48px;
}

.label {
	margin: 0 0 14px;
	font-family: var(--pixel);
	font-size: 18px;
	line-height: 1;
	color: var(--dim);
}

h2 {
	margin: 0 0 20px;
	font-family: var(--pixel);
	font-weight: 400;
	font-size: clamp(30px, 4.6vw, 54px);
	line-height: 1.02;
	color: var(--hot);
	text-wrap: balance;
}

h3 {
	margin: 0 0 8px;
	font-family: var(--pixel);
	font-weight: 400;
	font-size: 24px;
	line-height: 1.1;
	color: var(--pale);
}

p { margin: 0 0 14px; max-width: 58ch; }
p:last-child { margin-bottom: 0; }

.split {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(24px, 5vw, 64px);
	align-items: center;
}

.copy {
	background: var(--panel);
	border-left: 3px solid var(--red);
	padding: 24px clamp(18px, 3vw, 32px);
}

.room-frame {
	margin: 0;
	background: var(--bg);
	border: 3px solid var(--line);
	box-shadow: 9px 9px 0 #1a0508;
}

#roomCanvas {
	width: 100%;
	height: auto;
	cursor: pointer;
}

figcaption {
	border-top: 3px solid var(--line);
	padding: 8px 12px;
	font-family: var(--pixel);
	font-size: 16px;
	line-height: 1.2;
	color: var(--dim);
}

.build-intro { margin-bottom: 36px; }

.build {
	background: var(--bg);
	border: 3px solid var(--line);
	box-shadow: 9px 9px 0 #1a0508;
}

.build-cmd {
	margin: 0;
	max-width: none;
	padding: 10px 14px;
	border-bottom: 3px solid var(--line);
	font-size: 14px;
	line-height: 1.5;
	color: var(--pale);
	overflow-wrap: anywhere;
}

.build-cmd span { color: var(--red); margin-right: 6px; }

.build-body {
	display: grid;
	grid-template-columns: minmax(0, 530px) minmax(0, 1fr);
}

.build-stage {
	position: relative;
	margin: 0;
	border-right: 3px solid var(--line);
}

.build-stage img, .world-shot img {
	display: block;
	width: 100%;
	height: auto;
}

.build-stage figcaption {
	position: absolute;
	left: 0;
	top: 0;
	border: 0;
	border-right: 3px solid var(--line);
	border-bottom: 3px solid var(--line);
	background: var(--bg);
	color: var(--hot);
	font-variant-numeric: tabular-nums;
}

.build-log {
	list-style: none;
	margin: 0;
	padding: 18px 16px;
	display: grid;
	align-content: start;
	gap: 18px;
	font-size: 13px;
	line-height: 1.6;
}

.build-log li { display: flex; gap: 12px; color: var(--text); transition: color 0.12s steps(2); }
.build-log time { flex-shrink: 0; width: 5ch; color: var(--red); }
.build-log b { color: var(--hot); font-weight: 400; }
.build-log code { font-family: var(--mono); color: var(--pale); }
.build-log li.waiting, .build-log li.waiting :is(time, b, code) { color: var(--dim); }

.build-foot {
	margin: 0;
	max-width: none;
	padding: 8px 12px;
	border-top: 3px solid var(--line);
	font-family: var(--pixel);
	font-size: 16px;
	line-height: 1.2;
	color: var(--text);
}

.build-foot span { color: var(--line); margin: 0 6px; }

.world-shot {
	margin: 48px 0 0;
	border: 3px solid var(--line);
	background: #000;
	box-shadow: 9px 9px 0 #1a0508;
}

.cards {
	list-style: none;
	margin: 36px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 3px;
	background: var(--line);
	border: 3px solid var(--line);
}

.cards li {
	background: var(--bg);
	padding: 24px 20px 26px;
	transition: background-color 0.12s steps(2);
}

.cards li:hover { background: #120305; }

.cards p { font-size: 14px; line-height: 1.6; }

.icon { display: block; width: 54px; height: 54px; margin-bottom: 20px; color: var(--red); }
.cards li:hover .icon { color: var(--hot); }
.icon svg { display: block; width: 100%; height: 100%; fill: currentColor; }

.feed {
	background: var(--bg);
	border: 3px solid var(--line);
	box-shadow: 9px 9px 0 #1a0508;
	min-width: 0;
}

.feed-head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 12px;
	border-bottom: 3px solid var(--line);
	font-family: var(--pixel);
	font-size: 16px;
	line-height: 1.2;
	color: var(--dim);
}

#feed {
	list-style: none;
	margin: 0;
	padding: 14px 12px;
	height: 262px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 6px;
	font-size: 13px;
	line-height: 1.5;
}

#feed li { display: flex; gap: 10px; color: var(--dim); }
#feed li:last-child { color: var(--text); }
#feed time { color: var(--line); flex-shrink: 0; }
#feed li:last-child time { color: var(--red); }
#feed b { color: var(--hot); font-weight: 400; }

.vision { text-align: center; display: grid; justify-items: center; }

.vision .not {
	font-family: var(--pixel);
	font-size: clamp(20px, 2.8vw, 30px);
	line-height: 1.15;
	color: var(--dim);
	text-decoration: line-through;
	text-decoration-thickness: 3px;
	max-width: none;
}

.vision h2 { font-size: clamp(38px, 7vw, 88px); max-width: 14ch; }

.vision .long {
	background: var(--panel);
	padding: 16px 20px;
	max-width: 62ch;
}

.creed { display: grid; gap: 4px; }

.creed p {
	margin: 0;
	max-width: none;
	font-family: var(--pixel);
	font-size: clamp(36px, 8.6vw, 112px);
	line-height: 0.95;
	color: var(--line);
	transition: color 0.12s steps(2);
	cursor: default;
}

.creed p:hover, .creed p.lit { color: var(--hot); }

footer {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 32px;
	padding: 48px 16px max(14px, env(safe-area-inset-bottom));
	font-family: var(--pixel);
	font-size: 16px;
	line-height: 20px;
	color: #b96c72;
	text-align: center;
}

footer p { margin: 0; max-width: none; }
footer span { color: var(--dim); }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s steps(5), transform 0.5s steps(5); }
.js .reveal.in { opacity: 1; transform: none; }
.measuring .reveal { transform: none !important; transition: none !important; }

@media (max-width: 860px) {
	.split { grid-template-columns: minmax(0, 1fr); }
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	nav { font-size: 22px; }
	.room-frame, .feed, .build, .world-shot { box-shadow: 6px 6px 0 #1a0508; }
	.build-body { grid-template-columns: minmax(0, 1fr); }
	.build-stage { border-right: 0; border-bottom: 3px solid var(--line); }
}

@media (max-width: 460px) {
	.cards { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.scroll-hint::after { animation: none; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
}
