:root {
  --red: #fb2c36;
  --ink: #fafafa;
  --ink-dim: #a6a6a6;
  --ink-faint: #4a4a4a;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', system-ui, sans-serif;
  --serif: 'Fraunces', serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: #000; color: var(--ink); font-family: var(--sans);
  min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 28px; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-dim);
  letter-spacing: 0.08em; text-transform: uppercase;
  background: linear-gradient(180deg, rgba(0,0,0,0.6), transparent);
  backdrop-filter: blur(6px);
}
nav a { color: var(--ink-dim); text-decoration: none; }
nav a:hover { color: var(--red); }
nav .brand { color: var(--ink); font-weight: 500; }
nav .brand em { color: var(--red); font-style: normal; }

.scene {
  position: relative; width: 100%; height: 100vh; min-height: 600px;
  overflow: hidden;
}

.sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(251,44,54,0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 75% 0%, rgba(120,100,255,0.05) 0%, transparent 50%),
    linear-gradient(180deg, #0a1628 0%, #12182c 30%, #1c1323 60%, #2a0f15 85%, #3a1013 100%);
}

.stars { position: absolute; inset: 0; overflow: hidden; }
.star {
  position: absolute; width: 2px; height: 2px;
  background: #fff; border-radius: 50%;
  animation: twinkle 4s infinite;
}
@keyframes twinkle { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

.moon {
  position: absolute; top: 12%; right: 14%; width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f7f2e0, #b8ac8a 70%, #8a7f5e);
  box-shadow: 0 0 40px rgba(247,242,224,0.25), inset -8px -10px 20px rgba(0,0,0,0.3);
}
.moon::before {
  content: ''; position: absolute; top: 20%; left: 55%; width: 14px; height: 14px;
  border-radius: 50%; background: rgba(0,0,0,0.15);
}
.moon::after {
  content: ''; position: absolute; top: 55%; left: 25%; width: 8px; height: 8px;
  border-radius: 50%; background: rgba(0,0,0,0.1);
}

.cloud {
  position: absolute;
  background: rgba(40,20,30,0.5); border-radius: 50px;
  filter: blur(14px);
  animation: drift linear infinite;
}
.cloud.c1 { top: 20%; width: 320px; height: 30px; animation-duration: 80s; }
.cloud.c2 { top: 26%; width: 240px; height: 22px; animation-duration: 110s; animation-delay: -30s; background: rgba(60,30,40,0.4); }
.cloud.c3 { top: 15%; width: 400px; height: 26px; animation-duration: 140s; animation-delay: -60s; background: rgba(30,20,40,0.45); }
@keyframes drift { from { left: -420px; } to { left: 100vw; } }

.plane {
  position: absolute; top: 18%; width: 3px; height: 3px;
  background: #ff4956; border-radius: 50%;
  box-shadow: 0 0 6px #ff4956, -6px 0 0 -0.5px rgba(255,255,255,0.8);
  animation: fly 22s linear infinite;
}
@keyframes fly {
  0% { left: -10%; top: 22%; opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { left: 110%; top: 16%; opacity: 0; }
}
.plane::after {
  content: ''; position: absolute; left: -30px; top: 1px; width: 30px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
}

.layer {
  position: absolute; left: 0; right: 0;
  display: flex; align-items: flex-end;
  gap: 4px; padding: 0 2vw;
  pointer-events: none;
}
.layer-back { opacity: 0.4; filter: blur(1px); bottom: 28%; }
.layer-mid { opacity: 0.75; bottom: 14%; }
.layer-front { opacity: 1; bottom: 0; }

.building {
  position: relative;
  background: #08080a;
  border-top-left-radius: 2px; border-top-right-radius: 2px;
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.03);
}
.layer-back .building { background: #0f0a12; }
.layer-mid .building { background: #08060a; }
.layer-front .building { background: #030304; border-top: 1px solid #101010; }

.layer-front .building.w {
  background-image:
    radial-gradient(circle at center, rgba(255,200,80,0.9) 0.5px, transparent 1px),
    radial-gradient(circle at center, rgba(255,180,60,0.7) 0.5px, transparent 1px);
  background-size: 14px 18px, 14px 18px;
  background-position: 0 0, 7px 9px;
}
.layer-front .building.w.a { animation: flicker 6s infinite; }
.layer-front .building.w.b {
  animation: flicker 8s infinite 2s;
  background-image:
    radial-gradient(circle at center, rgba(255,160,50,0.85) 0.5px, transparent 1px),
    radial-gradient(circle at center, rgba(255,210,100,0.6) 0.5px, transparent 1px);
}
.layer-front .building.w.c { animation: flicker 10s infinite 4s; }
@keyframes flicker {
  0%,100% { opacity: 1; }
  45% { opacity: 1; } 50% { opacity: 0.5; } 55% { opacity: 1; }
}

.layer-mid .building.w {
  background-image: radial-gradient(circle at center, rgba(255,200,80,0.5) 0.5px, transparent 1px);
  background-size: 10px 14px;
}
.layer-back .building.w {
  background-image: radial-gradient(circle at center, rgba(255,200,80,0.3) 0.5px, transparent 1px);
  background-size: 8px 12px;
}

.building.ant::before {
  content: ''; position: absolute; top: -28px; left: 50%; width: 1px; height: 28px;
  background: #08080a; transform: translateX(-50%);
}
.building.ant::after {
  content: ''; position: absolute; top: -28px; left: 50%; width: 3px; height: 3px;
  background: #ff4956; border-radius: 50%; transform: translateX(-50%);
  box-shadow: 0 0 4px #ff4956;
  animation: blink 1.5s infinite;
}
@keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0.3; } }

.ground-glow {
  position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(180deg, transparent, rgba(251,44,54,0.06));
  pointer-events: none;
}

.caption {
  position: absolute; bottom: 40px; left: 40px; z-index: 10;
  max-width: 400px;
  color: var(--ink);
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
}
.caption .label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--red); margin-bottom: 10px;
}
.caption h1 {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(28px, 4vw, 48px); letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.caption p { font-size: 13px; color: var(--ink-dim); line-height: 1.5; }

.about {
  padding: 80px 32px 80px;
  background: #050505;
  position: relative; z-index: 2;
}
.about-inner { max-width: 720px; margin: 0 auto; }
.about h2 {
  font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 36px;
  letter-spacing: -0.02em; margin-bottom: 20px;
}
.about h2 em { color: var(--red); font-style: italic; }
.about p { font-size: 15px; color: var(--ink-dim); line-height: 1.75; margin-bottom: 14px; }
.about code {
  font-family: var(--mono); font-size: 13px; color: var(--ink);
  background: #121212; padding: 2px 7px; border-radius: 3px;
}

.next {
  max-width: 720px; margin: 40px auto 0; padding: 24px 0 0;
  border-top: 1px solid #1f1f1f;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-faint);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.next a { color: var(--ink-dim); text-decoration: none; }
.next a:hover { color: var(--red); }

@media (max-width: 640px) {
  .caption { left: 24px; bottom: 28px; right: 24px; }
  .about { padding: 60px 24px; }
  .about h2 { font-size: 28px; }
}
