/* ============================================
   ARCANDEL — Home Page
   Warmer dark palette, CSS-only animations
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    color-scheme: dark;

    /* Backgrounds — GitHub dark family */
    --bg-deep: #0d1117;
    --bg-surface: #161b22;
    --bg-elevated: #21262d;

    /* Text */
    --text-primary: #f0f6fc;
    --text-secondary: #c9d1d9;
    --text-tertiary: #8b949e;

    /* Accent — Arcandel purple */
    --accent: #7C36EF;
    --accent-light: #a78bfa;
    --accent-glow: rgba(124, 54, 239, 0.4);
    --accent-dim: rgba(124, 54, 239, 0.12);

    /* Borders */
    --border: rgba(255, 255, 255, 0.12);
    --border-light: rgba(255, 255, 255, 0.06);

    /* Hover */
    --hover: rgba(255, 255, 255, 0.04);

    /* Semantics */
    --success: #22C55E;
    --warning: #EAB308;

    /* Typography */
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

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

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 600ms;
    --duration-slower: 1000ms;
}

@property --border-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-deep);
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 0.6s ease, color 0.4s ease;
}

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

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

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


/* ============================================
   REVEAL SYSTEM (scroll animations)
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* ============================================
   NAVIGATION
   ============================================ */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) var(--space-md);
    transition:
        background 0.3s ease,
        backdrop-filter 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    border-bottom: 1px solid transparent;
}

#nav.scrolled {
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--border-light);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-logo img {
    height: 32px;
    width: auto;
    transition: opacity var(--duration-fast) ease;
}

.nav-logo:hover img {
    opacity: 0.8;
}

/* Hamburger Menu Button */
.nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

.nav-hamburger:hover .hamburger-line {
    background: var(--accent-light);
}

.nav-hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ============================================
   NAVIGATION DRAWER
   ============================================ */
.nav-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease-out);
}

.nav-drawer.active {
    transform: translateX(0);
}

.nav-drawer-header {
    display: flex;
    justify-content: flex-end;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.nav-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-drawer-close:hover {
    background: var(--hover);
    color: var(--text-primary);
}

.nav-drawer-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-xs);
}

.nav-drawer-link {
    display: flex;
    align-items: center;
    padding: var(--space-md) var(--space-md);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-drawer-link:hover {
    background: var(--hover);
    color: var(--text-primary);
}

.nav-drawer-link.active {
    background: var(--accent-dim);
    color: var(--accent-light);
}

.nav-drawer-divider {
    height: 1px;
    background: var(--border-light);
    margin: var(--space-md) 0;
}

.nav-drawer-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--border-light);
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

body.drawer-open {
    overflow: hidden;
}

/* ============================================
   SECTION LABEL (shared)
   ============================================ */
.section-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-lg);
    z-index: 1;
    background: var(--bg-deep);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 60% 50% at 50% 50%,
        rgba(124, 54, 239, 0.08) 0%,
        rgba(124, 54, 239, 0.03) 40%,
        transparent 70%
    );
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
}

.hero-statement {
    text-align: center;
    width: 100%;
    max-width: 100vw;
    padding: 0 var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-label-container {
    margin-bottom: var(--space-md);
}

.hero-label {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    font-family: var(--font-mono);
    font-weight: 400;
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-answer {
    position: relative;
    font-size: clamp(1.5rem, 8vw, 8rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    white-space: nowrap;
    max-width: 100%;
    overflow: visible;
    display: flex;
    justify-content: center;
}

/* Typewriter */
.typewriter-container {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.typewriter-text {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--text-primary);
    text-shadow: 0 0 20px var(--accent-glow);
    white-space: nowrap;
}

.typewriter-text.finale {
    color: var(--text-primary);
    text-shadow: 0 0 20px var(--accent-glow);
}

.typewriter-text.logo-finale {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 40px var(--accent-glow));
    transition: opacity 1.5s var(--ease-out);
}

.typewriter-text.logo-finale.fading {
    opacity: 0;
}

.hero-logo-finale {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 0.9em;
    width: auto;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 40px var(--accent-glow)) drop-shadow(0 0 80px var(--accent-glow));
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 1s var(--ease-out);
}

.hero-logo-finale.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.hero-logo-finale.glowing {
    filter: drop-shadow(0 0 60px var(--accent-glow)) drop-shadow(0 0 120px var(--accent)) drop-shadow(0 0 200px var(--accent-light));
}

.hero-logo-finale.fading {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 0.75em;
    background: var(--accent);
    margin-left: 8px;
    vertical-align: baseline;
    transform: translateY(0.03em);
    animation: cursorBlink 1s steps(1) infinite;
    transition: opacity 0.5s ease;
}

.typewriter-cursor.fade-out {
    opacity: 0 !important;
    animation: none;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Redaction overlay */
.redaction-overlay {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 1.2em;
    width: 0;
    background: var(--text-primary);
    pointer-events: none;
    opacity: 0;
}

.typewriter-container.redacting .redaction-overlay {
    opacity: 1;
    width: 100%;
    transition: width 0.4s var(--ease-in-out);
}

.typewriter-container.redacted .typewriter-text {
    opacity: 0;
}

.typewriter-container.unredacting .redaction-overlay {
    width: 0;
    left: auto;
    right: 0;
    transition: width 0.6s var(--ease-out);
}

/* Glitch layer */
.glitch-layer {
    position: absolute;
    inset: 0;
    color: var(--accent-light);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    text-shadow:
        2px 0 #ff0040,
        -2px 0 #00ff88;
}

.glitch-layer.active {
    opacity: 1;
    animation: glitchText 0.25s ease-out forwards;
}

@keyframes glitchText {
    0% { transform: translateX(0); opacity: 0; }
    15% { transform: translateX(-2px); opacity: 0.7; }
    30% { transform: translateX(2px); opacity: 0.5; }
    50% { transform: translateX(-1px); opacity: 0.6; }
    70% { transform: translateX(1px); opacity: 0.3; }
    100% { transform: translateX(0); opacity: 0; }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s var(--ease-out);
    z-index: 1;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-indicator-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-light), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ============================================
   ETHOS SECTION
   ============================================ */
.ethos {
    position: relative;
    z-index: 1;
    padding: var(--space-2xl) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
}

.ethos-inner {
    max-width: 700px;
    width: 100%;
}

.ethos-stack {
    display: flex;
    flex-direction: column;
}

.ethos-item {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border-light);
}

.ethos-item:last-child {
    border-bottom: 1px solid var(--border-light);
}

.ethos-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.2;
    transition: color 0.3s var(--ease-out);
}

.ethos-item:hover .ethos-title {
    color: var(--accent-light);
}

.ethos-desc {
    font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 540px;
}

/* ============================================
   SHOWCASE (Product Feature)
   ============================================ */
.showcase {
    position: relative;
    z-index: 1;
    padding: var(--space-2xl) var(--space-lg);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-deep);
}

.showcase-inner {
    max-width: 800px;
    width: 100%;
    position: relative;
    border-radius: 16px;
}

.showcase-inner::before {
    content: '';
    position: absolute;
    inset: -40px;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(124, 54, 239, 0.04),
        transparent 40%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
    z-index: 0;
}

.showcase-inner:hover::before {
    opacity: 1;
}

.showcase-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

.showcase-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-dot.live {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: statusPulse 2s ease-in-out infinite;
}

.status-dot.dev {
    background: var(--warning);
    box-shadow: 0 0 8px var(--warning);
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.showcase-status-text {
    color: var(--text-tertiary);
}

.showcase-name {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
}

.showcase-tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    color: var(--accent-light);
}

.showcase-desc {
    font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 650px;
}

.showcase-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-light);
    transition: color var(--duration-fast) ease, gap var(--duration-fast) ease, transform 0.3s var(--ease-out);
}

.showcase-cta:hover {
    color: var(--text-primary);
    gap: var(--space-md);
}

.showcase-cta svg {
    transition: transform var(--duration-fast) ease;
}

.showcase-cta:hover svg {
    transform: translate(2px, -2px);
}

/* ============================================
   SCROLL QUOTE
   ============================================ */
.scroll-quote {
    position: relative;
    z-index: 1;
    min-height: 200vh;
    background: var(--bg-surface);
}

.scroll-quote-sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-lg);
}

.scroll-quote-text {
    font-size: clamp(1.75rem, 5vw, 4rem);
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    max-width: 900px;
}

.q-word {
    color: var(--text-tertiary);
    opacity: 0.12;
    transition: color 0.5s var(--ease-out), opacity 0.5s var(--ease-out), text-shadow 0.5s var(--ease-out);
    display: inline-block;
    margin-right: 0.2em;
}

.q-word.active {
    color: var(--text-primary);
    opacity: 1;
}

.q-word.past {
    color: var(--text-secondary);
    opacity: 0.5;
}

.q-word.q-emphasis {
    font-style: italic;
}

.q-word.q-emphasis.active {
    color: var(--accent-light);
    text-shadow: 0 0 40px var(--accent-glow);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    position: relative;
    z-index: 1;
    padding: var(--space-2xl) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    background: var(--bg-deep);
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 600px;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.4;
}

.cta-heading {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.cta-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-dim), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.cta-button:hover {
    border-color: var(--accent);
    box-shadow: 0 0 40px -10px var(--accent-glow);
    transform: translateY(-2px);
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button-text {
    position: relative;
    z-index: 1;
}

.cta-button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1px;
    background: conic-gradient(from var(--border-angle), transparent 60%, var(--accent-light) 80%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    animation: rotateBorder 3s linear infinite;
    pointer-events: none;
    z-index: 2;
}

.cta-button:hover::after {
    opacity: 1;
}

@keyframes rotateBorder {
    from { --border-angle: 0deg; }
    to { --border-angle: 360deg; }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    position: relative;
    z-index: 1;
    padding: var(--space-xl) var(--space-lg);
    border-top: 1px solid var(--border-light);
    background: var(--bg-deep);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 28px;
    width: auto;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    transition: color var(--duration-normal) var(--ease-out);
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-light);
}

.footer-tagline {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    font-style: italic;
    font-family: var(--font-serif);
}

.footer-legal {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* ============================================
   GLITCH OVERLAY (Screen Effects)
   ============================================ */
.glitch-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
}

.glitch-overlay.active {
    animation: screenGlitch 0.15s ease-out;
}

@keyframes screenGlitch {
    0% { opacity: 0; background: transparent; }
    10% { opacity: 1; background: rgba(124, 54, 239, 0.03); transform: translateX(-2px); }
    20% { background: rgba(255, 0, 64, 0.02); transform: translateX(2px); }
    30% { background: rgba(0, 255, 136, 0.02); transform: translateX(-1px); }
    40% { opacity: 0.5; background: transparent; transform: translateX(1px); }
    100% { opacity: 0; background: transparent; transform: translateX(0); }
}

/* ============================================
   PARALLAX ELEMENTS
   ============================================ */
.parallax-slow { will-change: transform; }
.parallax-medium { will-change: transform; }
.parallax-fast { will-change: transform; }


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 3rem;
        --space-2xl: 5rem;
    }

    nav {
        padding: var(--space-md);
    }

    .hero {
        padding: var(--space-xl) var(--space-md);
    }

    .hero-answer {
        font-size: clamp(1.25rem, 7vw, 4rem);
    }

    .scroll-quote {
        min-height: 150vh;
    }

    .scroll-quote-text {
        font-size: clamp(1.25rem, 5vw, 2.5rem);
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: var(--space-lg);
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
        text-align: center;
    }

    .site-footer {
        padding: var(--space-lg) var(--space-md);
    }
}

@media (max-width: 480px) {
    .hero-label {
        font-size: 0.75rem;
    }

    .showcase-name {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .scroll-quote-text {
        font-size: clamp(1.125rem, 5vw, 1.75rem);
    }

}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--text-primary);
}
