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

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

body {
    overflow-x: hidden;
}

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

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

/* Navbar */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: rgba(255,255,255,0.3);
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::after {
    width: 100%;
}

/* Section Styles */
.section-eyebrow {
    letter-spacing: 0.3em;
}

.section-title {
    line-height: 1.1;
}

/* Reveal Animations */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Hero Animations */
.hero-eyebrow {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-headline {
    transition: opacity 0.8s ease 0.15s, transform 0.8s ease 0.15s;
}

.hero-sub {
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.hero-cta {
    transition: opacity 0.8s ease 0.45s, transform 0.8s ease 0.45s;
}

.hero-scroll {
    transition: opacity 0.8s ease 0.6s;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        transition: none;
    }
    
    .hero-eyebrow,
    .hero-headline,
    .hero-sub,
    .hero-cta,
    .hero-scroll {
        transition: none;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .aspect-square img,
    .aspect-\[3\/4\] img,
    .aspect-\[4\/5\] img,
    .aspect-\[4\/3\] img {
        transition: none;
    }
    
    .aspect-square img:hover,
    .aspect-\[3\/4\] img:hover,
    .aspect-\[4\/5\] img:hover,
    .aspect-\[4\/3\] img:hover {
        transform: none;
    }
}

/* Scroll Reveal Initial States (progressive enhancement via JS) */
@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal[data-reveal].revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Selection Color */
::selection {
    background: rgba(20, 184, 166, 0.2);
    color: inherit;
}
