/* ==========================================================================
   STELLER ARTWORKS — DESIGN SYSTEM
   Gallery-grade aesthetic. The art is the design.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

:root {
    /* Palette — Clean, restrained, gallery-white */
    --color-bg: #ffffff;
    --color-bg-dark: #0c0c0c;
    --color-bg-warm: #f7f5f2;
    --color-text: #333333;
    --color-text-muted: #888888;
    --color-text-light: #aaaaaa;
    --color-white: #ffffff;
    --color-accent: #78BCA1;
    --color-border: #e5e2de;

    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Layout */
    --container-width: 1200px;
    --gutter: 24px;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition: 0.4s var(--ease);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--color-accent);
    color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.text-center { text-align: center; }

/* ==========================================================================
   BUTTONS — Quiet, refined
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 14px 40px;
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-text);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.65rem;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--color-text);
    color: var(--color-white);
}

.btn-solid {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    border-color: var(--color-bg-dark);
}

.btn-solid:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

/* Light-on-dark button variant */
.btn-light {
    color: var(--color-white);
    border-color: rgba(255,255,255,0.4);
}

.btn-light:hover {
    background-color: var(--color-white);
    color: var(--color-bg-dark);
    border-color: var(--color-white);
}

/* ==========================================================================
   NAVIGATION — Minimal, stays out of the way
   ========================================================================== */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all var(--transition);
}

.site-header.scrolled {
    padding: 16px 0;
}

.site-header .main-nav a,
.site-header .mobile-menu-toggle {
    color: var(--color-white);
}

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

.logo img {
    height: 50px;
    transition: var(--transition);
}

.site-header.scrolled .logo img {
    height: 38px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 36px;
}

.main-nav a {
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 2.5px;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    transition: var(--transition);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}

/* ==========================================================================
   HERO — Full-bleed, cinematic, art-first
   ========================================================================== */
.hero {
    height: 100vh;
    height: 100dvh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--color-bg-dark);
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.05) 40%,
        rgba(0,0,0,0.05) 60%,
        rgba(0,0,0,0.5) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 var(--gutter);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.2s var(--ease) 0.5s forwards;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    color: var(--color-white);
    font-weight: 300;
    letter-spacing: 3px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero h3 {
    font-family: var(--font-body);
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 1.4rem;
    animation: scrollPulse 2.5s ease-in-out infinite;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

.scroll-indicator:hover {
    color: var(--color-white);
}

/* ==========================================================================
   SECTIONS — Generous breathing room, quiet typography
   ========================================================================== */
section {
    padding: 120px var(--gutter);
}

.section-light {
    background-color: var(--color-bg-warm);
}

.section-dark {
    background-color: var(--color-bg-dark);
    color: rgba(255,255,255,0.75);
}

.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark h4, .section-dark h5 {
    color: var(--color-white);
}

.section-title {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.section-dark .section-title {
    color: var(--color-text-light);
}

/* Welcome — Big italic statement */
.welcome-section {
    padding: 140px var(--gutter);
    background-color: var(--color-bg);
}

.welcome-section h4 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
    font-weight: 300;
    font-style: italic;
    color: var(--color-text);
}

/* About / Influence — Clean body text */
.about-content, .influence-content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.about-content p, .influence-content p {
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.9;
    font-weight: 300;
    color: var(--color-text-muted);
}

.section-light .about-content p {
    color: #555;
}

.btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* ==========================================================================
   FEATURED GRID — Large, art-forward cards
   ========================================================================== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.featured-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/4;
    background-color: var(--color-bg-warm);
}

.featured-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s var(--ease);
}

.featured-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.5s var(--ease);
}

.featured-item:hover img {
    transform: scale(1.04);
}

.featured-item:hover .featured-item-overlay {
    background: rgba(0,0,0,0.3);
}

.featured-item .btn {
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.4s var(--ease);
    border-color: rgba(255,255,255,0.6);
    color: var(--color-white);
}

.featured-item:hover .btn {
    opacity: 1;
    transform: translateY(0);
}

.featured-item .btn:hover {
    background-color: var(--color-white);
    color: var(--color-bg-dark);
    border-color: var(--color-white);
}

/* ==========================================================================
   FOOTER — Clean, informational
   ========================================================================== */
.site-footer {
    background-color: var(--color-bg-dark);
    padding: 80px var(--gutter) 40px;
    text-align: center;
}

.site-footer .section-title {
    color: rgba(255,255,255,0.4);
}

.footer-cta {
    margin-bottom: 50px;
}

.footer-phone {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-family: var(--font-heading);
    color: var(--color-white);
    margin: 16px 0 28px;
    font-weight: 300;
    letter-spacing: 1px;
}

.footer-phone a {
    color: inherit;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 1px;
}

/* ==========================================================================
   ANIMATIONS — Subtle, not theatrical
   ========================================================================== */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollPulse {
    0%, 100% {
        transform: translateY(0) translateX(-50%);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-8px) translateX(-50%);
        opacity: 0.8;
    }
}

/* Scroll reveal — gentle, understated */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Staggered children */
.fade-in-section.is-visible .featured-item {
    animation: staggerFade 0.7s var(--ease) both;
}

.fade-in-section.is-visible .featured-item:nth-child(1) { animation-delay: 0.1s; }
.fade-in-section.is-visible .featured-item:nth-child(2) { animation-delay: 0.2s; }
.fade-in-section.is-visible .featured-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes staggerFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 20px;
    }

    .nav-container {
        padding: 0 20px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 340px;
        height: 100vh;
        height: 100dvh;
        background-color: var(--color-white);
        padding: 100px 40px;
        transition: right var(--transition);
        z-index: -1;
        border-left: 1px solid var(--color-border);
    }

    .main-nav.open {
        right: 0;
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    }

    .main-nav a {
        color: var(--color-text) !important;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .featured-item {
        aspect-ratio: 4/3;
    }

    .welcome-section {
        padding: 80px 20px;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }
}
