/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #000000;
    background-color: #C9302C;
    overflow-x: hidden;
}

/* Lenis Smooth Scroll */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

/* Container */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 48px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

p {
    font-weight: 400;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease-in-out;
}

/* Hero Navigation Styles */
.hero-nav {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 48px;
    z-index: 100;
    opacity: 0;
    transform: translateY(-30px);
    pointer-events: none;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.hero-nav > * {
    pointer-events: auto;
}

.company-descriptor {
    max-width: 420px;
    flex-shrink: 0;
}

.company-descriptor p {
    font-size: clamp(18px, 1.8vw, 22px);
    font-weight: 400;
    color: #000000;
    line-height: 1.4;
}

.main-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-end;
    flex-shrink: 0;
}

.main-nav a {
    font-size: clamp(16px, 1.4vw, 20px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000000;
    border-bottom: 2px solid transparent;
    text-align: right;
}

.main-nav a:hover {
    border-bottom-color: #000000;
}

/* Brand Section Styles */
.brand-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: clamp(60px, 10vw, 120px) 0;
    position: relative;
    will-change: auto;
}

.hone-text {
    font-size: clamp(9.5rem, 24vw, 28rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.06em;
    color: #000000;
    line-height: 0.75;
    margin-bottom: 0;
    opacity: 0;
    position: relative;
    will-change: transform, opacity;
    transform: translate3d(0, 100px, 0);
    backface-visibility: hidden;
}

.brand-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    opacity: 0;
    transform: translateY(50px);
    margin-top: clamp(20px, 4vw, 40px);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.brand-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-location {
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 500;
    color: #000000;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.studio-note {
    font-size: 12px;
    font-weight: 500;
    color: #000000;
    opacity: 0.8;
}

/* Hide mobile navigation on desktop */
.mobile-nav {
    display: none;
}

/* Transitions - DO NOT apply to scroll-animated elements */
.hero-section,
.studio-section,
.video-wrapper,
.hone-text,
.mobile-nav,
.studio-headline .line,
.studio-description,
.about-link,
.hero-nav,
.brand-footer {
    transition: none !important;
}

/* Selective transitions for interactive elements only */
a:not(.studio-headline .line):not(.studio-description):not(.about-link) {
    transition: all 0.3s ease-in-out;
}

.service-card,
.project-card {
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

/* Section 1: Hero Section - COMPLETELY FIXED TO VIEWPORT */
.hero-section {
    height: 100vh;
    width: 100vw;
    background-color: #C9302C;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    will-change: transform, opacity, z-index;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(40px, 8vw, 120px) 0;
    will-change: auto;
}

/* Section 2: Studio Message + Video - BLACK OVERLAY SECTION */
.studio-section {
    min-height: 100vh;
    background-color: #000000;
    color: #C9302C;
    padding: clamp(60px, 10vw, 120px) 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    will-change: transform;
    transform: translate3d(0, 100vh, 0);
    backface-visibility: hidden;
    border-radius: 24px 24px 0 0;
    overflow: visible;
}

.studio-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 8vw, 120px);
    margin-bottom: clamp(60px, 10vw, 120px);
    align-items: start;
}

.studio-headline {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 0.9;
    color: #C9302C;
}

.studio-headline .line {
    display: block;
    transform: translateY(50px);
    opacity: 0;
}

.studio-description {
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.6;
    color: #FFFFFF;
    opacity: 0;
    transform: translateY(50px);
}

.studio-description p {
    margin-bottom: 32px;
}

.about-link {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #C9302C;
    border-bottom: 2px solid #C9302C;
    padding-bottom: 4px;
    opacity: 0;
    transform: translateY(30px);
}

.about-link:hover {
    color: #FFFFFF;
    border-bottom-color: #FFFFFF;
}

.video-wrapper {
    position: relative;
    width: 70vw;
    height: calc(70vw * 9 / 16);
    margin: 0 auto;
    border-radius: 32px 32px 0 0;
    overflow: hidden;
    background-color: #000;
    transform-origin: center center;
    will-change: transform, width, height, border-radius;
    opacity: 0;
    z-index: 5;
}

.studio-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    outline: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
        max-width: 100%;
    }
    
    /* Intro Text - Top Left */
    .hero-nav {
        position: relative;
        top: 0;
        left: 0;
        right: auto;
        display: block;
        padding: 15px 0 0 0;
        margin-bottom: 1rem;
    }
    
    .company-descriptor {
        max-width: 85%;
        text-align: left;
    }
    
    .company-descriptor p {
        font-size: clamp(13px, 3.8vw, 16px);
        line-height: 1.3;
        font-weight: 400;
    }
    
    /* Hide desktop navigation completely on mobile */
    .main-nav {
        display: none !important;
    }
    
        /* Brand Section - Restructured */
    .brand-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 0 1rem 0;
        flex: 1;
        justify-content: space-evenly;
        min-height: calc(100vh - 120px);
    }
    
    /* HØNE Logo - Large and Centered */
    .hone-text {
        font-size: clamp(7rem, 28vw, 12rem);
        margin: 1rem 0;
        order: 1;
        line-height: 0.8;
    }
    
    /* Mobile Navigation - Below HØNE, Stacked Vertically */
    .mobile-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        margin: 1.5rem 0;
        order: 2;
    }
    
    .mobile-nav a {
        font-size: clamp(16px, 4vw, 20px);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #000000;
        text-decoration: none;
        line-height: 1;
    }
    
    /* Footer - Bottom Split Layout */
    .brand-footer {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        width: 100%;
        order: 3;
        margin-top: auto;
        padding-top: 2rem;
    }
    
    .brand-location {
        font-size: 12px;
        font-weight: 500;
        opacity: 0.8;
    }
    
    .studio-note {
        font-size: 11px;
        font-weight: 400;
        opacity: 0.8;
    }
    
    .brand-info {
        align-items: flex-start;
        text-align: left;
        flex-shrink: 0;
    }
    
    .hero-actions {
        align-items: flex-end;
        text-align: right;
        flex-shrink: 0;
    }
    
    .studio-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-content {
        padding: 40px 0;
    }
}

/* Scroll-triggered bold effect */
.scroll-bold {
    font-weight: 400 !important;
    transition: font-weight 0.8s ease-out;
}

.scroll-bold.bold-active {
    font-weight: 700 !important;
}

/* Animation Classes */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.animate-scale {
    opacity: 1 !important;
    transform: scale(1) !important;
}
