/* ==========================================================================
   THE MISCREANT STUDIOS - DESIGN SYSTEM & CORE CSS
   Full-Size Integrated Hero Stage Image & Deep Obsidian Palette
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #070512;
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.4);
  --accent-purple-bright: #a78bfa;
  --accent-neon-violet: #c084fc;
  --accent-cyan: #06b6d4;

  /* Typography Colors */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Fonts */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Sizing - Extended Width for Left Alignment */
  --container-max: 1680px;
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: #070512;
  line-height: 1.5;
}

/* Interactive Reticle Cursor (desktop only) */
@media (pointer: fine) {
  body, button, a, input {
    cursor: none !important;
  }
}

/* Three.js Background Canvas (Subtle Floating Embers - Landing Page Hero Only) */
#webgl-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

/* Main Container Shell - Expanded to Left Margin */
.app-container {
  position: relative;
  z-index: 10;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 48px;
}

/* Global Selection */
::selection {
  background: var(--accent-purple);
  color: #ffffff;
}

/* Typography Helpers */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  font-weight: 700;
}

.font-mono {
  font-family: var(--font-mono);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   MASTERPIECE EDITION: 2026 AWWWARDS-CALIBER AMBIENCE & STYLING
   ========================================================================== */

/* 1. Ultra-Fine Analog Film Grain Texture Overlay */
.film-grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* 2. Global Ambient Cursor Spotlight */
.ambient-spotlight-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(
    650px circle at var(--spot-x, 50vw) var(--spot-y, 50vh),
    rgba(168, 85, 247, 0.07),
    rgba(6, 182, 212, 0.03) 40%,
    transparent 75%
  );
  transition: opacity 0.4s ease;
  will-change: background;
}

/* 3. Giant Ghost Background Numerals (Editorial Parallax Trackers) */
.ghost-giant-numeral {
  position: absolute;
  top: 40px;
  right: clamp(20px, 5vw, 80px);
  font-family: var(--font-mono);
  font-size: clamp(120px, 16vw, 260px);
  font-weight: 800;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
  z-index: 1;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  letter-spacing: -0.05em;
}

/* 4. Velocity-Based Kinetic Typography Skew Hook */
.skew-on-scroll {
  display: inline-block;
  will-change: transform;
  transform-origin: center center;
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 5. Continuous Running Studio Telemetry Marquee Rail */
.studio-marquee-rail {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: rgba(10, 8, 20, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 15;
  display: flex;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marqueeScroll 28s linear infinite;
  gap: 36px;
  will-change: transform;
}

.studio-marquee-rail:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.marquee-item .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  display: inline-block;
}

.marquee-item .highlight-accent {
  color: #ffffff;
  font-weight: 600;
}

.marquee-separator {
  color: rgba(168, 85, 247, 0.5);
  font-size: 10px;
}

