/* ─── CSS Custom Properties ─────────────────────────────── */
:root {
    /* Colors */
    --color-bg: #0A0A0A;
    --color-bg-elevated: #141414;
    --color-bg-surface: #1A1A1A;
    --color-text: #F0F0EC;
    --color-text-muted: #8A8A85;
    --color-accent: #2563EB;
    --color-accent-hover: #3B82F6;
    --color-border: #2A2A2A;
    --color-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
    --font-mono: 'DM Mono', 'Courier New', monospace;

    /* Fluid Type Scale */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
    --text-xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    --text-2xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
    --text-3xl: clamp(2.5rem, 2rem + 3vw, 5.5rem);
    --text-hero: clamp(3rem, 2rem + 5vw, 8rem);
    --text-display: clamp(5rem, 24vw, 28rem);
    --text-tagline: clamp(0.875rem, 1.5vw + 0.25rem, 1.75rem);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-2xl: 12rem;

    /* Layout */
    --container-max: 1400px;
    --container-pad: clamp(1.5rem, 3vw, 4rem);

    /* Animation */
    --ease-default: cubic-bezier(0.65, 0.05, 0, 1);
    --duration-fast: 0.3s;
    --duration-base: 0.6s;
    --duration-slow: 1s;

    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

/* Smooth scroll handled by Lenis — disable native */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--duration-fast) ease;
}

a:hover {
    color: var(--color-accent-hover);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* ─── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin-bottom: 1.5em;
    color: var(--color-text-muted);
}

p:last-child {
    margin-bottom: 0;
}

/* ─── Layout Utilities ──────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

.section {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.section--large {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

/* ─── Visibility ────────────────────────────────────────── */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─── Reduced Motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ─── Selection ─────────────────────────────────────────── */
::selection {
    background: var(--color-accent);
    color: var(--color-white);
}
