:root {
  --bg: #0B0F14;
  --surface: #11171F;
  --border: #202A34;
  --text: #E7ECF1;
  --text-muted: #7C8896;
  --accent: #E0A458;
  --scan: #6FE2D0;
}

*{ margin:0; padding:0; box-sizing:border-box; }

html, body {
  height:100%;
  background:var(--bg);
  color:var(--text);
  font-family:'IBM Plex Sans', sans-serif;
  overflow-x:hidden;
}

/* subtle dot grid backdrop */
body {
  background-image: radial-gradient(circle, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 28px 28px;
}

.page {
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  position:relative;
}

header {
  padding: 32px clamp(24px, 6vw, 64px) 0;
  font-family:'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

header span { color: var(--accent); }

main {
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding: 0 clamp(24px, 6vw, 64px);
  max-width: 760px;
}

.eyebrow {
  font-family:'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--scan);
  margin-bottom: 20px;
  opacity: 0.9;
}

h1 {
  font-family:'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

h1 .fade { color: var(--text-muted); }

p.lede {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 26px;
}

.quote {
  font-family:'IBM Plex Mono', monospace;
  font-size: 13.5px;
  line-height: 1.6;
  color: #8290A0;
  border-left: 2px solid var(--border);
  padding-left: 16px;
  font-style: normal;
  max-width: 50ch;
}

.quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.comment {
  font-family:'IBM Plex Mono', monospace;
  font-size: 13.5px;
  color: #556270;
  border-left: 2px solid var(--border);
  padding-left: 14px;
}

footer {
  padding: 28px clamp(24px, 6vw, 64px) 32px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-family:'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--text-muted);
  text-decoration:none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

footer a:hover, footer a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--scan);
  outline-offset: 3px;
}

/* signature: a scanline sweeps down once on load, revealing the page */
.scanline {
  position:fixed;
  left:0; right:0;
  top:0;
  height:2px;
  background: linear-gradient(90deg, transparent, var(--scan), transparent);
  box-shadow: 0 0 18px 2px var(--scan);
  animation: sweep 1.6s cubic-bezier(.65,0,.35,1) forwards;
  z-index: 5;
  pointer-events:none;
}

.reveal {
  opacity:0;
  animation: appear 0.6s ease forwards;
}
.reveal.h1 { animation-delay: 0.65s; }
.reveal.lede { animation-delay: 0.95s; }
.reveal.quote, .reveal.comment { animation-delay: 1.2s; }
.reveal.eyebrow { animation-delay: 0.4s; }

@keyframes sweep {
  0%{ top:0; opacity:1; }
  85%{ opacity:1; }
  100%{ top:100vh; opacity:0; }
}

@keyframes appear {
  from{ opacity:0; transform: translateY(6px); }
  to{ opacity:1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .scanline{ display:none; }
  .reveal{ animation:none; opacity:1; }
}
