:root {
    --grid-margin: 80px;
    --yellow: #ffd800;
    --black: #090909;
    --gray: #cbcbcb;
    --gray-bg: #f2f1ef;
    --white: #ffffff;
    --font-family-base: 'Satoshi', sans-serif;
    --font-xs: 0.875rem;
    --text-h: 1rem;
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--gray-bg);
    color: var(--black);
    font-family: var(--font-family-base);
    font-weight: 500;
}

/* Header & Logo */
.intro-container {
    position: relative;
    min-height: 100svh; 
    width: 100vw;
    box-sizing: border-box;
    padding: var(--grid-margin);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.intro-header {
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 500;
}

.logo-text-container { 
    position: fixed;
    top: var(--grid-margin);
    left: 250px;
    z-index: 1;
    pointer-events: none;
    height: 1.05em;
    overflow: hidden;
    display: flex;
    align-items: center; 
}

.logo-descriptor {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
}

/* Main Heading */
.intro-main {
    position: absolute;
    bottom: var(--grid-margin);
    left: var(--grid-margin);
    right: var(--grid-margin);
    width: 50%;
}

.intro-main h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.5px;
    max-width: 23ch;
    margin: 0 0 48px 0;
}

/* Buttony z rolling text */
.intro-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 32px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    z-index: 10;
    gap: 12px;
    flex-shrink: 0; 
    white-space: nowrap;
}

.btn-showreel { background-color: var(--yellow); color: var(--black); }
.btn-contact { background-color: transparent; color: var(--black); border-color: var(--gray); }

.btn-text-mask {
    height: var(--text-h);
    overflow: hidden;
    position: relative;
}

.btn-rolling-text {
    display: flex;
    flex-direction: column; 
    transition: transform 0.4s cubic-bezier(0.6, 0.01, 0, 1);
}

.btn-line {
    height: var(--text-h);
    line-height: var(--text-h);
    display: flex;
    align-items: center;
}

.btn:hover .btn-rolling-text {
    transform: translateY(-50%);
}

.btn .icon-svg {
    height: 1.2em;
    width: auto;
    flex-shrink: 0;
}

/* Spawn Image Effect */
#image-spawn-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.spawned-image {
    position: fixed;
    width: 280px;
    height: 180px;
    object-fit: cover;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
}

/* Lightbox */
.showreel-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: #090909;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    cursor: pointer;
}

.showreel-lightbox-overlay.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
}

.showreel-lightbox-content {
    width: 80vw;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    position: relative;
    background-color: #000;
}

.showreel-lightbox-video {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

/* Progress Indicator */
.progress-indicator-container {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    height: 20px;
    pointer-events: none;
}

.progress-indicator {
    position: absolute;
    top: 0;
    left: 0;
    color: #ffffff;
    font-size: 0.75rem;
    white-space: nowrap;
    will-change: transform;
}

/* Custom Cursor */
.video-close-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
}

body.lightbox-is-open .video-close-cursor { opacity: 1; }

.close-text {
    color: #ffffff;
    font-family: var(--font-family-base);
    font-size: var(--font-xs);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    top: 20px;
    left: 20px;
    white-space: nowrap;
}

.close-icon-svg { height: 1.1em; width: auto; }

@media (max-width: 1224px) {
    .intro-header {
        position: relative;
        width: auto;
        display: block; 
    }

    .logo-text-container {
        position: relative; 
        top: 0;
        left: 0; 
        margin-top: 4px; 
        display: block;
        height: auto;
        pointer-events: auto;
    }

    .intro-main {
        position: relative;
        width: auto;
        left: 0;
        right: 0;
        bottom: 0;
        margin-top: auto; 
    }
}

@media (max-width: 768px) {
    :root { 
        --grid-margin: 24px;
    }

    body, html {
        overflow-y: auto; 
        height: auto;
    }

    .intro-container {
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        padding: var(--grid-margin);
    }

    .intro-main {
        position: relative;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin-top: auto;
        padding-top: 60px;
    }

    .intro-main h1 { 
        font-size: 1.85rem; 
        line-height: 1.2;
        max-width: 100%; 
        margin-bottom: 32px;
    }

    .intro-buttons {
        flex-direction: column; 
        align-items: stretch;
        gap: 12px;
    }

    .btn {
        width: 100%; 
        box-sizing: border-box; 
    }
}

@media (max-height: 700px) {
    :root { --grid-margin: 24px; }
    .intro-main h1 { font-size: 1.5rem; margin-bottom: 16px; max-width: 40ch; }
}