:root {
    --color-bg: #F5F3EF;
    --color-bg-warm: #EDE8E0;
    --color-text: #2C2824;
    --color-text-light: #6B6560;
    --color-accent: #8B7355;
    --color-accent-dark: #5C4D3D;
    --color-cream: #FAF8F5;
    --color-charcoal: #1A1816;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Orbit configuration - controls bubble positioning around center text */
    --bubble-orbit-multiplier: 0.42;
    --bubble-min-orbit-radius: 180px;

    /* Backdrop width - scales proportionally with bubble size */
    --bubble-backdrop-width: 6px;

    /* Portrait bubble size multiplier (larger than project bubbles) */
    --portrait-bubble-scale: 1.25;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    mix-blend-mode: difference;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    color: var(--color-cream);
}

.nav-logo-img {
    height: 2rem;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-cream);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 0.3s var(--transition-smooth);
}

.nav-links a:hover {
    opacity: 0.6;
}

/* Homepage - Bubble Navigation */
.homepage {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-warm) 100%);
    /* Desktop top spacing for generous breathing room from navigation */
    padding-top: clamp(6rem, 12vh, 8rem);
    /* Reserve space for scroll indicator to prevent overlap with hero-intro text */
    padding-bottom: clamp(6rem, 12vh, 9rem);
}

.homepage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(139, 115, 85, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 115, 85, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Hero Layout */
.hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1600px;
    padding: 0 clamp(3rem, 6vw, 8rem);
    position: relative;
}

.hero-left {
    position: absolute;
    top: 0; /* Align with top of bubble container */
    left: 3rem; /* Align with nav logo padding */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: clamp(220px, 28vw, 380px);
}

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center the bubble arrangement on the page */
    margin-left: 0;
}

.hero-text {
    z-index: 1;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s var(--transition-smooth);
}

.hero-text.hidden {
    opacity: 0;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.title-line {
    display: block;
}

.title-sans {
    font-family: var(--font-body);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--color-text);
    white-space: nowrap;
}

.title-serif {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.02em;
    color: var(--color-text);
    margin-top: -0.1em;
}

/* Intro text below bubbles */
.hero-intro {
    text-align: center;
    margin-top: 2.5rem;
    /* Responsive margin to adapt to different viewport heights */
    margin-bottom: clamp(2rem, 5vh, 4rem);
    opacity: 1;
    transition: opacity 0.5s var(--transition-smooth);
}

.hero-intro.hidden {
    opacity: 0;
}

.intro-greeting {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.intro-tagline {
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
}

.bubble-container {
    position: relative;
    /* Use vh to ensure vertical fit within viewport, accounting for nav and scroll indicator */
    width: min(60vh, 60vw, 520px);
    height: min(60vh, 60vw, 520px);
}

.project-bubble {
    position: absolute;
    width: clamp(80px, 13vw, 115px);
    height: clamp(80px, 13vw, 115px);
    border-radius: 50%;
    background: var(--color-cream);
    border: 1px solid rgba(139, 115, 85, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* Smooth hover transition */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow:
        0 0 0 var(--bubble-backdrop-width) rgba(180, 175, 168, 0.6),
        0 4px 20px rgba(44, 40, 36, 0.08),
        0 1px 3px rgba(44, 40, 36, 0.05);
    overflow: hidden;
}

.project-bubble::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(139, 115, 85, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s var(--transition-smooth);
}

.project-bubble:hover {
    transform: scale(1.1);
    /* Backdrop scales proportionally with 1.1x expansion */
    box-shadow:
        0 0 0 calc(var(--bubble-backdrop-width) * 1.1) rgba(180, 175, 168, 0.7),
        0 8px 40px rgba(44, 40, 36, 0.12),
        0 2px 6px rgba(44, 40, 36, 0.08);
}

.project-bubble:hover::before {
    opacity: 1;
}

.bubble-content {
    text-align: center;
    padding: 0.75rem;
    z-index: 1;
}

.bubble-number {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.bubble-title {
    font-size: clamp(0.5rem, 1vw, 0.7rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    white-space: nowrap;
}

/* Image-based project bubbles */
.project-bubble-image {
    padding: 0;
    overflow: hidden;
}

.bubble-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.5s var(--transition-smooth);
}

.project-bubble-image:hover .bubble-thumbnail {
    transform: scale(1.1);
}

/* Portrait bubble in center - larger than project bubbles */
.portrait-bubble {
    z-index: 2;
    padding: 0;
    overflow: hidden;
    border: 2px solid rgba(139, 115, 85, 0.3);
    /* Portrait bubble is 25% larger than project bubbles */
    width: clamp(100px, 16.25vw, 144px);
    height: clamp(100px, 16.25vw, 144px);
    box-shadow:
        0 0 0 calc(var(--bubble-backdrop-width) * 1.2) rgba(180, 175, 168, 0.6),
        0 8px 30px rgba(44, 40, 36, 0.15),
        0 2px 8px rgba(44, 40, 36, 0.1);
}

.portrait-bubble:hover {
    transform: scale(1.1);
    border-color: var(--color-accent);
    /* Backdrop scales proportionally with 1.1x expansion */
    box-shadow:
        0 0 0 calc(var(--bubble-backdrop-width) * 1.32) rgba(180, 175, 168, 0.7),
        0 12px 40px rgba(44, 40, 36, 0.2),
        0 4px 12px rgba(44, 40, 36, 0.12);
}

.portrait-thumbnail {
    object-position: center center;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 1;
    transition: opacity 0.5s var(--transition-smooth);
}

.scroll-indicator.hidden {
    opacity: 0;
}

.scroll-text {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

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

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* Project Sections */
.project-section {
    min-height: 100vh;
    position: relative;
}

/* Frame Animation Container */
.frame-animation-container {
    height: 300vh;
    position: relative;
}

.frame-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    overflow: hidden;
}

.frame-display {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #000000;
}

.frame-image {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    opacity: 0;
    position: absolute;
    transition: opacity 0.1s linear;
}

.frame-image.active {
    opacity: 1;
}

.project-video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
    display: block;
    background: #000000;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.frame-counter {
    position: absolute;
    bottom: 2rem;
    right: 3rem;
    font-family: var(--font-display);
    font-size: 1rem;
    color: rgba(250, 248, 245, 0.5);
    letter-spacing: 0.1em;
    display: none;
}

.project-title-overlay {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    z-index: 10;
}

.project-title-overlay h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--color-cream);
    letter-spacing: 0.02em;
}

.project-title-overlay span {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(250, 248, 245, 0.6);
}

/* Project Content */
.project-content {
    padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 5vw, 6rem);
    background: var(--color-bg);
}

.project-header {
    max-width: 800px;
    margin-bottom: clamp(3rem, 8vw, 6rem);
}

.project-header h3 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(139, 115, 85, 0.2);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.meta-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-text);
}

.project-description {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.8;
    color: var(--color-text);
    max-width: 65ch;
}

.project-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Container for the bottom 4 images in 2x2 grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: var(--color-bg-warm);
    transition: transform 0.3s var(--transition-smooth);
    aspect-ratio: 5 / 3;
}

.gallery-item.hero {
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
}

.gallery-item:hover {
    transform: translateY(-4px);
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.gallery-placeholder {
    width: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-warm) 0%, var(--color-cream) 100%);
    color: var(--color-text-light);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    aspect-ratio: 5/3;
}

/* About Section */
.about-section {
    min-height: 100vh;
    padding: clamp(6rem, 12vw, 10rem) clamp(1.5rem, 5vw, 6rem);
    background: var(--color-cream);
    display: flex;
    align-items: center;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(3rem, 8vw, 6rem);
    align-items: center;
}

.about-image {
    position: relative;
    aspect-ratio: 3/4;
    background: var(--color-bg-warm);
    border-radius: 4px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(139, 115, 85, 0.1);
    border-radius: 4px;
    pointer-events: none;
}

.about-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.about-content p {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.9;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.about-details {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.detail-block h4 {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.detail-block p {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0;
    color: var(--color-text);
}

/* Contact Section */
.contact-section {
    min-height: 100vh;
    padding: clamp(6rem, 12vw, 10rem) clamp(1.5rem, 5vw, 6rem);
    background: var(--color-charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-container {
    text-align: center;
    max-width: 800px;
}

.contact-container h2 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    color: var(--color-cream);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.contact-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: rgba(250, 248, 245, 0.6);
    margin-bottom: 4rem;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--color-cream);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    transition: all 0.3s var(--transition-smooth);
    padding: 0.5rem 1rem;
    border-radius: 2px;
}

.contact-link:hover {
    background: rgba(250, 248, 245, 0.05);
    transform: translateX(4px);
}

.contact-link svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-accent);
}

.contact-divider {
    width: 60px;
    height: 1px;
    background: rgba(250, 248, 245, 0.2);
    margin: 3rem 0;
}

.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(250, 248, 245, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-cream);
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
}

.social-link:hover {
    background: rgba(250, 248, 245, 0.1);
    border-color: rgba(250, 248, 245, 0.4);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Footer */
.footer {
    padding: 2rem;
    background: var(--color-charcoal);
    border-top: 1px solid rgba(250, 248, 245, 0.1);
    text-align: center;
}

.footer p {
    font-size: 0.75rem;
    color: rgba(250, 248, 245, 0.4);
    letter-spacing: 0.1em;
}

/* Mobile Menu Button - Hidden by default on desktop */
.mobile-menu-btn {
    display: none;
}

/* Responsive orbit adjustments for different viewport sizes */

/* Large desktop (1440px and above uses root defaults) */

/* Desktop 1440px breakpoint */
@media (max-width: 1440px) {
    :root {
        --bubble-orbit-multiplier: 0.41;
        --bubble-min-orbit-radius: 175px;
        --bubble-backdrop-width: 6px;
    }

    .bubble-container {
        width: min(58vh, 58vw, 500px);
        height: min(58vh, 58vw, 500px);
    }

    .hero-left {
        top: 0; /* Align with top of bubble container */
        left: 3rem; /* Align with nav logo padding */
    }
}

/* Desktop 1280px breakpoint */
@media (max-width: 1280px) {
    :root {
        --bubble-orbit-multiplier: 0.40;
        --bubble-min-orbit-radius: 165px;
        --bubble-backdrop-width: 5px;
    }

    .bubble-container {
        width: min(55vh, 55vw, 480px);
        height: min(55vh, 55vw, 480px);
    }

    .project-bubble {
        width: clamp(75px, 12vw, 105px);
        height: clamp(75px, 12vw, 105px);
    }

    .portrait-bubble {
        width: clamp(94px, 15vw, 131px);
        height: clamp(94px, 15vw, 131px);
    }

    .hero-left {
        top: 0; /* Align with top of bubble container */
        left: 3rem; /* Align with nav logo padding */
    }
}

/* Tablet landscape / small desktop 1024px breakpoint */
@media (max-width: 1024px) {
    :root {
        --bubble-orbit-multiplier: 0.39;
        --bubble-min-orbit-radius: 150px;
        --bubble-backdrop-width: 5px;
    }

    .bubble-container {
        width: min(52vh, 52vw, 440px);
        height: min(52vh, 52vw, 440px);
    }

    .project-bubble {
        width: clamp(70px, 11vw, 95px);
        height: clamp(70px, 11vw, 95px);
    }

    .portrait-bubble {
        width: clamp(88px, 14vw, 119px);
        height: clamp(88px, 14vw, 119px);
    }

    .hero-left {
        top: 0; /* Align with top of bubble container */
        left: 3rem; /* Align with nav logo padding */
    }

    .title-sans,
    .title-serif {
        font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    }
}

/* Small tablet / large mobile 900px breakpoint */
@media (max-width: 900px) {
    :root {
        --bubble-orbit-multiplier: 0.38;
        --bubble-min-orbit-radius: 135px;
        --bubble-backdrop-width: 4px;
    }

    .bubble-container {
        width: min(50vh, 50vw, 400px);
        height: min(50vh, 50vw, 400px);
    }

    .project-bubble {
        width: clamp(65px, 10vw, 85px);
        height: clamp(65px, 10vw, 85px);
    }

    .portrait-bubble {
        width: clamp(82px, 12.5vw, 106px);
        height: clamp(82px, 12.5vw, 106px);
    }

    .hero-left {
        top: 0; /* Align with top of bubble container */
        left: 3rem; /* Align with nav logo padding */
    }

    .title-sans,
    .title-serif {
        font-size: clamp(2rem, 4.5vw, 3.5rem);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        --bubble-orbit-multiplier: 0.38;
        --bubble-min-orbit-radius: 100px;
        --bubble-backdrop-width: 3px;
    }

    .homepage {
        padding-top: 3rem;
        /* Reserve space for scroll indicator on mobile */
        padding-bottom: clamp(5rem, 10vh, 7rem);
    }

    .hero-wrapper {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1.5rem;
    }

    .hero-left {
        position: static;
        align-items: center;
        text-align: center;
    }

    .hero-title {
        align-items: center;
    }

    .title-sans,
    .title-serif {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }

    .bubble-container {
        width: min(65vmin, 320px);
        height: min(65vmin, 320px);
    }

    .project-bubble {
        width: clamp(55px, 16vw, 70px);
        height: clamp(55px, 16vw, 70px);
    }

    .portrait-bubble {
        border-width: 2px;
        /* Portrait still larger than project bubbles on mobile */
        width: clamp(69px, 20vw, 88px);
        height: clamp(69px, 20vw, 88px);
    }

    .hero-intro {
        margin-top: 2rem;
        /* Responsive margin for mobile viewports */
        margin-bottom: clamp(1.5rem, 4vh, 3rem);
    }

    .intro-greeting {
        font-size: clamp(1rem, 4vw, 1.2rem);
        font-weight: 400;
    }

    .intro-tagline {
        font-size: clamp(0.65rem, 2.5vw, 0.8rem);
    }

    .nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
    }

    .mobile-menu-btn span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--color-cream);
        margin: 5px 0;
        transition: all 0.3s var(--transition-smooth);
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .about-details {
        grid-template-columns: 1fr;
    }

    .project-gallery {
        gap: 0.75rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .project-title-overlay {
        left: 1.5rem;
        bottom: 2rem;
    }

    .frame-counter {
        right: 1.5rem;
        bottom: 1.5rem;
    }

    .frame-animation-container {
        height: 200vh; /* Shorter scroll distance on mobile */
    }

    .project-video {
        object-fit: contain; /* Show full video without cropping */
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-charcoal);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--transition-smooth);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-links {
    list-style: none;
    text-align: center;
}

.mobile-menu-links li {
    margin: 1.5rem 0;
}

.mobile-menu-links a {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-cream);
    text-decoration: none;
    transition: opacity 0.3s var(--transition-smooth);
}

.mobile-menu-links a:hover {
    opacity: 0.6;
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close::before,
.mobile-menu-close::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-cream);
}

.mobile-menu-close::before {
    transform: rotate(45deg);
}

.mobile-menu-close::after {
    transform: rotate(-45deg);
}

/* Smooth scrolling overlay */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-charcoal);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--transition-smooth);
}

.transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Loading state for frames */
.frame-loading {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: rgba(250, 248, 245, 0.5);
    z-index: 5;
}

.frame-loading-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(250, 248, 245, 0.1);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error state for video loading */
.frame-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: rgba(250, 248, 245, 0.6);
    text-align: center;
}

.frame-error svg {
    opacity: 0.5;
}

.frame-error span {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}
