/* ============================================================
   hyper — cinematic studio prototype
   Pure black canvas. Display sans + mono captions.
   ============================================================ */

:root {
  --bg: #000000;
  --fg: #ffffff;
  --fg-dim: #c8c8c8;
  --mute: #6a6a6a;
  --line: #1f1f1f;
  --line-2: #2a2a2a;
  --panel: #0a0a0a;
  --accent: #ffffff; /* overridden via tweak */
  --accent-ink: #000000;
  --grain-opacity: 0.06;

  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --pad-x: clamp(20px, 3.5vw, 56px);
  --pad-y: clamp(20px, 2.2vw, 32px);

  --ease: cubic-bezier(.6,.02,.18,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

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

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  cursor: none;
}

@media (hover: none) {
  body { cursor: auto; }
  .cursor { display: none !important; }
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---- global grain overlay ---- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---- cursor ---- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border: 1px solid var(--fg);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease-out), height .35s var(--ease-out),
              background-color .25s var(--ease), border-color .25s var(--ease),
              opacity .2s linear;
  mix-blend-mode: difference;
  background: transparent;
}
.cursor.hover {
  width: 80px; height: 80px;
  background: var(--fg);
  border-color: var(--fg);
}
.cursor.view {
  width: 110px; height: 110px;
  background: var(--accent);
  border-color: var(--accent);
  mix-blend-mode: normal;
}
.cursor .label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  opacity: 0;
  text-transform: uppercase;
}
.cursor.view .label { opacity: 1; }

/* ---- typography ---- */
.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.86;
  text-wrap: balance;
}
.h-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.h-mono.dim { color: var(--mute); }
.h-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---- chrome / nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--pad-y) var(--pad-x);
  pointer-events: none;
  mix-blend-mode: difference;
}
.nav > * { pointer-events: auto; }
.nav .brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.05em;
  display: flex; align-items: center; gap: 8px;
  color: #fff;
}
.nav .brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.85); }
}
.nav .links {
  display: flex; gap: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav .links button {
  position: relative;
  padding: 4px 0;
  color: #fff;
  opacity: .7;
  transition: opacity .25s var(--ease);
}
.nav .links button:hover { opacity: 1; }
.nav .links button.active { opacity: 1; }
.nav .links button.active::before {
  content: "";
  position: absolute; left: -14px; top: 50%;
  width: 6px; height: 6px;
  background: var(--accent);
  transform: translateY(-50%);
  border-radius: 50%;
}

/* ---- status bar (bottom) ---- */
.status {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--pad-x);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cfcfcf;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}
.status .blink {
  display: inline-block; width: 6px; height: 6px;
  background: var(--accent); margin-right: 8px;
  animation: blink 1.4s steps(2, end) infinite;
  vertical-align: middle;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---- page transitions ---- */
.page { animation: pageIn .7s var(--ease-out) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

