/* ════════════════════════════════════════════════════════════════
   MAIN.CSS - GLOBAL VARIABLES, RESET & SYSTEM DESIGN TOKENS
   ════════════════════════════════════════════════════════════════ */

:root {
  /* Fluid Scaling Token based on Viewport Height */
  --u: clamp(0.7px, 0.0925vh, 1.4px);
  --h: clamp(0.7px, 0.0925vh, 1.4px);

  /* Color Palette */
  --ink: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.62);
  --accent-green: #22c55e;
  --accent-blue: #3b82f6;
  --bg-dark: #050505;
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  background-color: var(--bg-dark);
  color: var(--ink);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-dark);
  color: var(--ink);
  overflow-x: hidden;
}

/* Stage Layout & Viewport Shell */
.stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background Plate Video */
.plate {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.plate-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: contrast(1.15) brightness(0.85);
}

.plate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(5, 5, 5, 0.4) 0%, rgba(5, 5, 5, 0.88) 100%);
}

/* Smooth Reveal On Scroll Utility Classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(calc(28 * var(--u)));
  will-change: opacity, transform;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.96) translateY(calc(18 * var(--u)));
  will-change: opacity, transform;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.is-revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Stagger Delays for Cards & Grid Elements */
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
