/* ==========================================================================
   VARIABLES — All CSS custom properties from the design system
   ========================================================================== */

:root {
  /* Backgrounds — alternating depth system */
  --bg-0: #0a0a0a;
  --bg-1: #0f0f0f;
  --bg-2: #141414;
  --surface: #1a1a1a;
  --surface-hover: #1f1f1f;

  /* Primary — Orange (from logo) */
  --primary: #FF4D00;
  --primary-hover: #FF6A2A;
  --primary-subtle: rgba(255, 77, 0, 0.08);
  --primary-border: rgba(255, 77, 0, 0.15);
  --primary-glow: rgba(255, 77, 0, 0.25);

  /* Text */
  --text-primary: #F2F2F2;
  --text-secondary: #A0A0A0;
  --text-muted: #666666;

  /* Borders & Dividers */
  --border: #1e1e1e;
  --border-light: #2a2a2a;
  --border-accent: var(--primary-border);

  /* Utility */
  --white: #FFFFFF;
  --black: #000000;
  --overlay: rgba(0, 0, 0, 0.65);
  --grain-opacity: 0.03;

  /* Typography — Font Families */
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Typography — Type Scale */
  --text-hero: clamp(3rem, 6vw, 5rem);
  --text-section: clamp(2rem, 3.5vw, 2.75rem);
  --text-subsection: clamp(1.25rem, 2vw, 1.5rem);
  --text-body: 1.0625rem;
  --text-small: 0.875rem;
  --text-micro: 0.75rem;

  /* Typography — Line Heights */
  --leading-tight: 1.15;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;

  /* Spacing — 8px base grid */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-section: 7rem;

  /* Animation — Tier A: Hero entrance (used ONCE on page load) */
  --duration-hero: 1200ms;
  --ease-hero: cubic-bezier(0.16, 1, 0.3, 1);

  /* Animation — Tier B: Section scroll reveals */
  --duration-reveal: 550ms;
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
  --stagger-delay: 100ms;

  /* Animation — Tier C: Micro-interactions */
  --duration-micro: 180ms;
  --ease-micro: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESPONSIVE — Reduce spacing on smaller screens
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --space-section: 4.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
  }
}

@media (max-width: 480px) {
  :root {
    --space-section: 3.5rem;
  }
}
