/* ═══════════════════════════════════════════════════════════════════════
   Integral Studio — Internal surface (splash + 404)
   Terminal-grade / Mac-Classic system, ported from the Integral Tracker.
   Ink-black desktop, dotted wallpaper, neon-green accent, radius 0.
   Type: Roc Grotesk Wide (headings) + Circular Std (body).
   ═══════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Roc Grotesk Wide';
  src: url('/assets/fonts/RocGroteskWide-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Circular Std';
  src: url('/assets/fonts/CircularStd-Book.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Ink + paper primitives (tracker) */
  --ink-1000: #000000;
  --ink-900: #0A0A0A;
  --ink-850: #0F0F10;
  --ink-800: #14141A;
  --ink-700: #1C1C24;
  --ink-600: #262630;
  --ink-400: #565666;
  --ink-300: #7B7B8A;
  --ink-50: #E8E8EE;
  --paper-50: #FAFAFA;

  /* Accent (neon green) */
  --accent: #03FFAA;
  --accent-glow: rgba(3, 255, 170, 0.12);
  --accent-mute: rgba(3, 255, 170, 0.55);

  /* Roles */
  --bg: var(--ink-900);
  --chrome-line: var(--ink-600);
  --ink: var(--ink-50);
  --dim: var(--ink-300);
  --muted: var(--ink-400);

  --font-heading: 'Roc Grotesk Wide', -apple-system, 'Helvetica Neue', system-ui, sans-serif;
  --font-body: 'Circular Std', -apple-system, 'Helvetica Neue', system-ui, sans-serif;

  --menubar-h: 30px;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

/* ── Dotted desktop wallpaper (tracker .mac-desktop) ─────────────────────── */
.desktop {
  position: fixed;
  inset: 0;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 4px 4px;
  z-index: 0;
}

/* ── Reserved automation/AI art layer ────────────────────────────────────
   Holds the Higgsfield hero once generated:
   set  --hero: url('/assets/internal-hero.webp')  on .art to swap in.
   Until then the SVG agentic lattice below reads as an intentional motif. */
.art {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--hero, none);
  background-size: cover;
  background-position: center;
  opacity: var(--hero-opacity, 1);
}
.art svg { width: 100%; height: 100%; display: block; }
/* When a hero image is set, hide the placeholder lattice. */
.art[style*="--hero"] .lattice { display: none; }

/* soft green corner glow */
.glow {
  position: fixed;
  width: 720px; height: 720px;
  left: -220px; top: -240px;
  background: radial-gradient(circle, rgba(3, 255, 170, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Mac-classic menubar (top) ───────────────────────────────────────────── */
.menubar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--menubar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--ink-1000);
  border-bottom: 1px solid var(--chrome-line);
  z-index: 20;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.menubar .left { color: var(--ink-50); text-transform: uppercase; }
.menubar .right {
  color: var(--dim);
  display: flex; align-items: center; gap: 8px;
  text-transform: uppercase;
  font-feature-settings: 'tnum' 1;
  font-variant-numeric: tabular-nums;
}
.live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ── Center stage ────────────────────────────────────────────────────────── */
.stage {
  position: relative;
  z-index: 10;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.mark {
  width: 60px; height: auto;
  opacity: 0.9;
  margin-bottom: 40px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 22px;
}

.headline {
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
  font-size: clamp(52px, 8vw, 108px);
  color: var(--ink);
}
.headline .accent { color: var(--accent); }

.subline {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--dim);
  margin-top: 24px;
  max-width: 42ch;
}
.subline a { color: var(--accent); text-decoration: none; }
.subline a:hover { text-decoration: underline; }

/* thin green rule under the wordmark */
.rule {
  width: 64px; height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  margin: 28px 0 0;
}

/* ── Status bar (bottom) ─────────────────────────────────────────────────── */
.statusbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--menubar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--ink-1000);
  border-top: 1px solid var(--chrome-line);
  z-index: 20;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.statusbar .right { color: var(--dim); }
.statusbar .right span { color: var(--accent); }

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .live-dot, .lattice * { animation: none !important; }
}

/* ── Small screens ───────────────────────────────────────────────────────── */
@media (max-width: 520px) {
  .menubar, .statusbar { font-size: 10px; padding: 0 12px; }
  .mark { width: 48px; margin-bottom: 28px; }
}
