/* ========================================
   CONTINUUM STUDIO — BASE STYLES
   Variables, Reset, Typography
   ======================================== */

/* CSS Custom Properties */
:root {
    /* Colors */
    --obsidian: #0B0F14;
    --surface: #0F1620;
    --surface-elevated: #151C28;
    --ivory: #EDE9E2;
    --ivory-soft: rgba(237, 233, 226, 0.85);
    --muted: #A7B0BC;
    --muted-dark: #6B7280;
    --gold: #C8A96A;
    --gold-dim: rgba(200, 169, 106, 0.15);
    --gold-glow: rgba(200, 169, 106, 0.3);
    --danger: #ef4444;
    --warning: #fbbf24;
    --success: #28c840;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    /* Layout */
    --container-max: 1200px;
    --nav-height: 72px;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Lenis smooth scroll will handle this */
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;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    color: var(--ivory);
    background-color: var(--obsidian);
    overflow-x: hidden;
}

::selection {
    background: var(--gold);
    color: var(--obsidian);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

/* Typography Base */
.kicker {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: var(--space-lg);
}

.section-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: var(--space-xl);
}

.section-headline .line {
    display: block;
}

.section-headline .accent {
    color: var(--gold);
}

/* Split text animation targets */
.section-headline .char {
    display: inline-block;
    opacity: 0;
}

.section-body {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 640px;
    line-height: 1.7;
}

.section-body.large {
    font-size: 1.25rem;
    max-width: 720px;
}

.micro-line {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted-dark);
    letter-spacing: 0.02em;
    margin-top: var(--space-xl);
}

/* Sections */
.section {
    padding: var(--space-5xl) 0;
    position: relative;
}

.section-divider {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--muted-dark), transparent);
    opacity: 0.3;
}

.section-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.5;
}

/* Spec chips */
.chip {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    padding: 0.375rem 0.75rem;
    background: var(--surface);
    border: 1px solid rgba(167, 176, 188, 0.1);
    border-radius: 4px;
    color: var(--muted);
    letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 640px) {
    .section {
        padding: var(--space-4xl) 0;
    }

    .section-headline {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}