/* ===== Theme tokens — change look here ===== */
:root {
  --bg: #0f0e0c;          /* warm near-black */
  --ink: #ece6da;         /* paper white */
  --muted: #8a8478;
  --line: rgba(236, 230, 218, .07);
  --wire: rgba(236, 230, 218, .32);
  --accent: #ff5b1f;      /* signal orange */
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --mx: 50vw; --my: 40vh; /* pointer position, set by main.js */
}

* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  overflow: hidden; /* single full-screen page, never scrolls */
  background: var(--bg); color: var(--ink);
  font-family: var(--mono); font-size: 12px; letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--bg); }

/* ===== Background ===== */
.bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }

.grid {
  position: absolute; inset: -2px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(rgba(236,230,218,.025) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(236,230,218,.025) 1px, transparent 1px) 0 0 / 16px 16px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 85%);
}
/* soft light that follows the pointer */
.glow {
  position: absolute; inset: 0;
  background: radial-gradient(500px circle at var(--mx) var(--my), rgba(255, 91, 31, .09), transparent 60%);
}

.art {
  position: absolute; color: var(--wire);
  transition: translate .6s cubic-bezier(.2,.7,.2,1);
  animation: bob 12s ease-in-out infinite;
}
.art svg { width: 100%; height: auto; display: block; overflow: visible; stroke-width: 1; vector-effect: non-scaling-stroke; }
.art figcaption {
  margin-top: .6rem; font-size: 10px; color: var(--muted); white-space: nowrap;
  padding-left: .8rem; border-left: 1px solid var(--accent);
}
.dash { stroke-dasharray: 3 5; opacity: .6; }
.spin { transform-origin: 100px 100px; animation: spinY 9s linear infinite; }
.spin-slow { transform-origin: 100px 100px; animation: spin 60s linear infinite; }

.a-sphere { width: clamp(140px, 17vw, 260px); top: 9%;  left: 6%; }
.a-cube   { width: clamp(90px, 10vw, 150px); top: 12%; right: 11%; animation-delay: -3s; }
.a-torus  { width: clamp(150px, 18vw, 270px); bottom: 12%; left: 12%; animation-delay: -6s; }
.a-cone   { width: clamp(70px, 8vw, 120px);  bottom: 14%; right: 24%; animation-delay: -9s; }
.a-ico    { width: clamp(100px, 12vw, 180px); top: 44%; right: 4%; animation-delay: -4s; }

.mark { position: absolute; color: var(--accent); font-size: 16px; opacity: .7; }
.m1 { top: 22%; left: 38%; } .m2 { top: 68%; left: 6%; } .m3 { top: 30%; right: 30%; } .m4 { bottom: 26%; left: 58%; }

.grain {
  position: absolute; inset: 0; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes bob   { 50% { transform: translateY(-14px); } }
@keyframes spin  { to { rotate: 360deg; } }
@keyframes spinY { from { transform: scaleX(1); } 50% { transform: scaleX(-1); } to { transform: scaleX(1); } }

/* ===== HUD corners ===== */
.hud {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: clamp(.8rem, 3vh, 1.5rem) clamp(1rem, 3vw, 2.5rem);
  color: var(--muted); text-transform: uppercase;
}
.logo { font-family: var(--serif); font-size: 26px; text-transform: none; color: var(--ink); letter-spacing: -.01em; }
.logo::after { content: "."; color: var(--accent); }
time { color: var(--ink); font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } }
.company { text-transform: none; }

/* ===== Hero ===== */
.hero {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1rem; gap: clamp(.8rem, 2.5vh, 1.6rem); min-height: 0;
}
.kicker { display: flex; align-items: center; gap: .8rem; color: var(--accent); text-transform: uppercase; letter-spacing: .2em; animation: rise 1s ease-out both; }
.kicker .line { width: 40px; height: 1px; background: var(--accent); }
.headline {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, min(8.5vw, 11vh), 7.5rem); line-height: .95; letter-spacing: -.025em;
  max-width: 12ch; text-wrap: balance;
  animation: rise 1s .1s ease-out both;
}
.headline em { color: var(--accent); }
.message {
  max-width: 34rem; color: var(--muted); line-height: 1.8; font-size: 13px;
  animation: rise 1s .25s ease-out both;
}
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; animation: rise 1s .4s ease-out both; }
.links a {
  color: var(--ink); text-decoration: none; text-transform: uppercase;
  padding: .7rem 1.1rem; border: 1px solid rgba(236,230,218,.2);
  transition: background .2s, color .2s, border-color .2s;
}
.links a::after { content: " ↗"; color: var(--accent); }
.links a:hover, .links a:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.links a:hover::after { color: var(--bg); }

.copy { opacity: .6; font-size: 10px; text-transform: none; }
.company::before { content: " · "; }

@keyframes rise { from { opacity: 0; transform: translateY(20px); filter: blur(6px); } }

@media (max-width: 640px) {
  .art figcaption { display: none; }
  .a-ico, .a-cone { opacity: .5; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
