:root {
  --bg: #0a0f1c;
  --ink: #f5f5f4;
  --muted: #8b93a7;
  --line: rgba(255,255,255,.08);
  --c1: #ffffff;
  --c2: #93c5fd;
  --c3: #93c5fd;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --neon: #22d3ee;
  --hot: #f472b6;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* Background, kept quiet: one soft breathing glow, a faint dot grid that fades out, and a pointer spotlight */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60vmax 40vmax at 50% -10%, color-mix(in srgb, var(--c2) 14%, transparent), transparent 70%);
  animation: breathe 9s ease-in-out infinite alternate; }
.aurora span { display: none; }
@keyframes breathe { from { opacity: .6; } to { opacity: 1; } }
.spot { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 40%), rgba(255,255,255,.045), transparent 60%); }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); }

/* Header */
.bar, .hero, .foot, .doc { position: relative; z-index: 2; }
.bar { display: flex; justify-content: space-between; align-items: center; padding: 24px clamp(16px, 5vw, 56px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; font-size: 18px; text-decoration: none; }
.mark { display: grid; gap: 3px; width: 22px; }
.mark i { display: block; height: 4px; border-radius: 2px; }
.mark i:nth-child(1) { background: var(--c1); }
.mark i:nth-child(2) { background: var(--c2); width: 80%; }
.mark i:nth-child(3) { background: var(--c3); width: 60%; }
.home .mark i { animation: stack 4s ease-in-out infinite; transform-origin: left; }
.home .mark i:nth-child(2) { animation-delay: .15s; }
.home .mark i:nth-child(3) { animation-delay: .3s; }
@keyframes stack { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.55); } }

/* Sci-fi layer: faint scanlines and a HUD frame with mono read-outs */
.scan { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 4px); }
.hud { position: fixed; inset: 14px; z-index: 1; pointer-events: none; font: 11px/1 var(--mono); letter-spacing: .12em; color: var(--muted); }
.hud i { position: absolute; width: 18px; height: 18px; border-color: color-mix(in srgb, var(--neon) 55%, transparent); border-style: solid; }
.hud i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.hud i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.hud i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.hud i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.hud .read { position: absolute; right: 28px; top: 50%; writing-mode: vertical-rl; opacity: .7; }

/* Hero */
.hero { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 6vh clamp(16px, 5vw, 56px) 10vh; max-width: 1200px; }
.term { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 14px/1.7 var(--mono); letter-spacing: .06em; color: var(--ink); margin: 0 0 28px; }
.term .prompt { color: var(--neon); }
/* While the next file is being opened, the previous line fades back */
.headline { transition: opacity .4s; max-width: 22ch; white-space: pre-line; }
.headline.thinking { opacity: .18; }
/* Size follows length, so a long quotation still fits the screen */
.headline.mid { font-size: clamp(34px, 6vw, 84px); max-width: 20ch; letter-spacing: -.035em; }
.headline.long { font-size: clamp(26px, 4.2vw, 60px); max-width: 26ch; line-height: 1.05; letter-spacing: -.025em; }
.cite { font: 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 28px 0 0; min-height: 1.4em; }
.cursor { display: inline-block; width: .6em; height: 1.1em; background: var(--neon); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.headline { margin: 0; font-size: clamp(48px, 10vw, 140px); line-height: .95; letter-spacing: -.05em; font-weight: 900; text-transform: uppercase; }
.accent { color: var(--neon); text-shadow: 0 0 24px color-mix(in srgb, var(--neon) 45%, transparent); }

/* Glitch: an RGB split that sits idle and flickers for a moment every few seconds */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.glitch::before { color: var(--hot); animation: g1 6s infinite steps(1); }
.glitch::after { color: var(--neon); animation: g2 6s infinite steps(1); }
@keyframes g1 {
  0%, 91%, 100% { opacity: 0; transform: none; clip-path: none; }
  92% { opacity: .9; transform: translate(-6px, 2px); clip-path: inset(10% 0 55% 0); }
  94% { opacity: .9; transform: translate(5px, -2px); clip-path: inset(60% 0 8% 0); }
  96% { opacity: .9; transform: translate(-3px, 0); clip-path: inset(35% 0 40% 0); }
}
@keyframes g2 {
  0%, 91%, 100% { opacity: 0; transform: none; clip-path: none; }
  93% { opacity: .9; transform: translate(6px, -1px); clip-path: inset(45% 0 30% 0); }
  95% { opacity: .9; transform: translate(-5px, 2px); clip-path: inset(5% 0 70% 0); }
}


/* Footer */
.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding: 24px clamp(16px, 5vw, 56px);
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot a { color: var(--muted); }

/* Text pages */
.doc { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 4vh 16px 10vh; line-height: 1.7; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); letter-spacing: -.035em; line-height: 1.05; margin: 0 0 8px; }
.doc .meta { color: var(--muted); margin: 0 0 40px; }
.doc h2 { font-size: 20px; margin: 40px 0 8px; letter-spacing: -.01em; }
.doc p, .doc li { color: #cfcfdc; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Way back home from the text pages */
.back { color: var(--muted); text-decoration: none; font-size: 14px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; transition: color .2s, border-color .2s; }
.back:hover { color: var(--ink); border-color: rgba(255,255,255,.25); }

/* Phones: the HUD read-out and frame crowd the content, so only the scanlines stay */
@media (max-width: 640px) { .hud { display: none; } }

/* What the company does, said once and plainly, in the HUD's voice */
.tag { margin: 0; font: 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tag span { color: var(--neon); margin-right: 6px; }
.tag b { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .bar { flex-wrap: wrap; gap: 10px; } .tag { flex-basis: 100%; font-size: 11px; } }
