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

html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
    height: 100%;
}

:root {
    --primary-color: #151415;
    --secondary-color: #fff;
    --accent-color: #333;
    --text-color: #e5e5e5;
    --text-color-dark: #1a1a1a;
    --light-gray: #1f1f1f;
    --border-color: #333;
    --background-color: #151415;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Osmo-inspired display font for nav */
@font-face {
    font-family: 'PP Neue Corp Tight';
    src: url('https://cdn.prod.website-files.com/673af51dea86ab95d124c3ee/673b0f5784f7060c0ac05534_PPNeueCorp-TightUltrabold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Header and Navigation Styles */
.header {
    background: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    padding: 20px 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: inline-block;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    overflow-y: scroll;
    background: #fdbb2b;
    font-size: 16px;
    position: relative;
    scroll-snap-type: y proximity;
    min-height: 100%;
    margin: 0;
}

/* Custom Scrollbar - Cross-browser compatible solution */
/* Hide default scrollbars */
html {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

html::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

body {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

body::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Custom scrollbar indicator - Text-based design */
.custom-scrollbar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    z-index: 150;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Ensure text stays fixed - no movement on scroll */
    will-change: opacity;
    cursor: pointer;
    user-select: none;
}

.custom-scrollbar:hover {
    opacity: 1 !important;
}

.custom-scrollbar.dragging {
    cursor: grabbing;
    opacity: 1 !important;
}

.custom-scrollbar.visible {
    opacity: 1;
}

.custom-scrollbar-track {
    display: none;
    /* Not needed for text version */
}

.custom-scrollbar-thumb {
    position: relative;
    width: auto;
    height: 100vh;
    background: transparent;
    border-radius: 0;
    min-height: auto;
    opacity: 1;
    overflow: visible;
    transform-origin: center center;
    will-change: transform, opacity;
    filter: none;
    display: block;
    cursor: pointer;
    user-select: none;
}

/* Text container with repeated "STEFAN DE ALWIS" as single vertical line */
.custom-scrollbar-text-container {
    display: block;
    height: 100vh;
    width: auto;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: "Teko", sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 3px;
    line-height: 1.8;
    padding: 0;
    margin: 0;
    white-space: normal;
    overflow: visible;
    text-align: center;
}

/* Each character flows vertically (inline in vertical writing mode) */
.custom-scrollbar-text-container span {
    display: inline;
    text-align: center;
}

/* Default character style - hidden/transparent */
.scrollbar-char-default {
    color: transparent;
    transition: color 0.2s ease;
}

/* Colored character style - orange */
.scrollbar-char-colored {
    color: #fdbb2b;
    transition: color 0.2s ease;
}

/* Separator style */
.scrollbar-char-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8em;
    margin: 0 0.3em;
    transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

/* Active separator when section is snapped */
.scrollbar-char-separator.scrollbar-separator-active {
    color: lab(79.95% 12.24 74.85);
    opacity: 1;
    transform: scale(1.2);
    text-shadow: 0 0 8px rgba(253, 187, 43, 0.6);
}

/* Scroll progress indicator - thin line (hidden, using text coloring instead) */
.custom-scrollbar-progress {
    position: absolute;
    right: -15px;
    top: 0;
    width: 2px;
    height: 100vh;
    background: transparent;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
}

.custom-scrollbar-progress-fill {
    position: absolute;
    right: 0;
    top: 0;
    width: 2px;
    background: transparent;
    opacity: 0;
    transition: height 0.1s ease;
    pointer-events: none;
}

/* Text-based scrollbar styling - text stays fixed, no movement */
.custom-scrollbar.scrolling-down .custom-scrollbar-text-container {
    /* No transform - text stays fixed */
}

.custom-scrollbar.scrolling-up .custom-scrollbar-text-container {
    /* No transform - text stays fixed */
}

/* Hover effect only when not actively scrolling */
.custom-scrollbar:not(.scrolling-down):not(.scrolling-up) .custom-scrollbar-thumb:hover {
    background: #e6a826;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/bg pattern.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    overflow: visible;
}

/* Material Design Navigation */
.main-nav {
    background: #fdbb2b;
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding: 120px 20px 60px;
    box-sizing: border-box;
    overflow: visible;
    /* Hidden by default */
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.5s, opacity 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    /* Prevent repainting on scroll - GPU acceleration */
    transform: translateZ(0);
    will-change: opacity, visibility;
    backface-visibility: hidden;
    isolation: isolate;
}

/* Show nav when menu is open */
body.navOpen .main-nav {
    visibility: visible;
    opacity: 1;
    /* Ensure menu stays stable during scroll */
    transform: translateZ(0);
    will-change: auto;
}

.main-nav ul {
    list-style: none;
    width: 320px;
    padding: 0;
    margin: 0;
    position: relative;
    overflow: visible;
    /* Prevent repainting on scroll */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.main-nav ul:hover li a {
    color: rgba(0, 0, 0, 0.5);
}

.main-nav ul li {
    display: block;
    position: relative;
    overflow: visible;
    margin: 0;
    padding: 0.1em 0;
    /* Prevent flickering during scroll */
    backface-visibility: hidden;
}

/* Black overlay background - Osmo style (edge-to-edge) - disabled for menu-link items */
.main-nav ul li::before {
    content: '';
    z-index: 5;
    background-color: #000;
    transform-origin: 50% 100%;
    transform-style: preserve-3d;
    transition: transform 0.55s cubic-bezier(0.65, 0.05, 0, 1);
    position: absolute;
    top: -0.5em;
    right: 0;
    bottom: -0.5em;
    left: calc(-100vw + 60px + 320px);
    width: 100vw;
    transform: scale3d(1, 0, 1);
    pointer-events: none;
}

/* Disable old ::before effect for items with menu-link */
.main-nav ul li:has(.menu-link)::before {
    display: none;
}

.main-nav ul li a {
    transition: all 0.25s ease;
    display: block;
    padding: 0.5em 0;
    padding-right: 0;
    color: #000;
    font-family: "PP Neue Corp Tight", "Teko", sans-serif;
    font-weight: 700;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    text-align: right;
    position: relative;
    z-index: 6;
    transition: transform 0.55s cubic-bezier(0.65, 0.05, 0, 1), color 0.55s cubic-bezier(0.65, 0.05, 0, 1), opacity 0.35s ease;
    pointer-events: auto;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Old hover effect - disabled for menu-link elements */
.main-nav ul li a:not(.menu-link)::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 0.5em 0;
    text-align: right;
    color: #fdbb2b;
    text-shadow: 0 0 6px rgba(0,0,0,0.4);
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.55s cubic-bezier(0.65, 0.05, 0, 1), opacity 0.35s ease;
    z-index: 7;
    pointer-events: none;
}

.main-nav ul li:hover a:not(.menu-link) {
    color: #fdbb2b !important;
    transform: translateY(-120%);
    opacity: 0;
    transition-delay: 0.1s;
}

.main-nav ul li:hover:not(:has(.menu-link))::before {
    transform: scale(1, 1);
}

.main-nav ul li:hover a:not(.menu-link)::after {
    transform: translateY(0);
    opacity: 1;
}

/* Nav Footer with social links */
.nav-footer {
    text-align: right;
    width: 320px;
}

.nav-footer-title {
    font-family: "Teko", sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
}

.nav-social-links {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.nav-social-links a {
    color: #000;
    font-size: 20px;
    transition: opacity 0.3s;
    position: relative;
    text-decoration: none;
}

.nav-social-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #000;
    transform-origin: right center;
    transform: scale(0, 1);
    transition: transform 0.4s cubic-bezier(0.65, 0.05, 0, 1);
}

.nav-social-links a:hover::after {
    transform-origin: left center;
    transform: scale(1, 1);
}

/* Open Nav Button */
.openNav {
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    width: 50px;
    height: 50px;
    background-color: transparent;
    position: fixed;
    top: 40px;
    right: 50px;
    z-index: 100;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.openNav .icon {
    transition: all 0.2s ease;
    position: relative;
    width: 30px;
    height: 2px;
    background-color: #fff;
}

.openNav .icon::before,
.openNav .icon::after {
    transition: all 0.5s ease, transform 0.4s cubic-bezier(0.65, 0.05, 0, 1);
    background-color: #fff;
    position: absolute;
    content: "";
    width: 30px;
    height: 2px;
    left: 0;
}

.openNav .icon::before {
    top: -8px;
}

.openNav .icon::after {
    top: 8px;
}

/* Open state for nav button - stays in same position */
.openNav.open {
    transform: none;
}

.openNav.open .icon {
    background-color: transparent;
}

.openNav.open .icon::before,
.openNav.open .icon::after {
    top: 0;
}

.openNav.open .icon::before {
    transform: rotate(-45deg);
}

.openNav.open .icon::after {
    transform: rotate(45deg);
}


/* 3D Navigation Effect */
.wrapper {
    position: relative;
    z-index: 60;
    background: var(--background-color);
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    transform-origin: center center;
    /* GPU acceleration and compositing to prevent body background showing through */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    isolation: isolate;
}


/* Nav open state - allow scrolling but hide scrollbar */
body.navOpen {
    overflow: auto;
}

/* Hide custom scrollbar when navigation menu is open */
body.navOpen .custom-scrollbar {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

body.navOpen .wrapper {
    transform: translateX(0px) translateY(520px) scale(0.78);
    transform-origin: top left;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    overflow: hidden;
    pointer-events: none;
}

/* Footer styling when nav is open */
body.navOpen footer,
body.navOpen .footer,
body.navOpen #footer-placeholder {
    background: #fdbb2b !important;
    pointer-events: none;
}

body.navOpen .footer .container,
body.navOpen .footer-content,
body.navOpen .footer-section,
body.navOpen .footer-bottom,
body.navOpen .footer-social-icons {
    background: transparent !important;
}

body.navOpen .footer h3,
body.navOpen .footer a,
body.navOpen .footer p,
body.navOpen .footer li {
    color: #000 !important;
}

body.navOpen .footer .social-icon {
    background: #000 !important;
    color: #fdbb2b !important;
}

body.navOpen .footer .social-icon .icon {
    color: #fdbb2b !important;
}


/* Subtle Glitch Animation - very minimal and infrequent */

/* Glitch Paths Animation */
@keyframes glitchPaths {
    0% {
        clip-path: polygon(
            0% 43%,
            83% 43%,
            83% 22%,
            23% 22%,
            23% 24%,
            91% 24%,
            91% 26%,
            18% 26%,
            18% 83%,
            29% 83%,
            29% 17%,
            41% 17%,
            41% 39%,
            18% 39%,
            18% 82%,
            54% 82%,
            54% 88%,
            19% 88%,
            19% 4%,
            39% 4%,
            39% 14%,
            76% 14%,
            76% 52%,
            23% 52%,
            23% 35%,
            19% 35%,
            19% 8%,
            36% 8%,
            36% 31%,
            73% 31%,
            73% 16%,
            1% 16%,
            1% 56%,
            50% 56%,
            50% 8%
        );
    }
    5% {
        clip-path: polygon(
            0% 29%,
            44% 29%,
            44% 83%,
            94% 83%,
            94% 56%,
            11% 56%,
            11% 64%,
            94% 64%,
            94% 70%,
            88% 70%,
            88% 32%,
            18% 32%,
            18% 96%,
            10% 96%,
            10% 62%,
            9% 62%,
            9% 84%,
            68% 84%,
            68% 50%,
            52% 50%,
            52% 55%,
            35% 55%,
            35% 87%,
            25% 87%,
            25% 39%,
            15% 39%,
            15% 88%,
            52% 88%
        );
    }
    30% {
        clip-path: polygon(
            0% 53%,
            93% 53%,
            93% 62%,
            68% 62%,
            68% 37%,
            97% 37%,
            97% 89%,
            13% 89%,
            13% 45%,
            51% 45%,
            51% 88%,
            17% 88%,
            17% 54%,
            81% 54%,
            81% 75%,
            79% 75%,
            79% 76%,
            38% 76%,
            38% 28%,
            61% 28%,
            61% 12%,
            55% 12%,
            55% 62%,
            68% 62%,
            68% 51%,
            0% 51%,
            0% 92%,
            63% 92%,
            63% 4%,
            65% 4%
        );
    }
    45% {
        clip-path: polygon(
            0% 33%,
            2% 33%,
            2% 69%,
            58% 69%,
            58% 94%,
            55% 94%,
            55% 25%,
            33% 25%,
            33% 85%,
            16% 85%,
            16% 19%,
            5% 19%,
            5% 20%,
            79% 20%,
            79% 96%,
            93% 96%,
            93% 50%,
            5% 50%,
            5% 74%,
            55% 74%,
            55% 57%,
            96% 57%,
            96% 59%,
            87% 59%,
            87% 65%,
            82% 65%,
            82% 39%,
            63% 39%,
            63% 92%,
            4% 92%,
            4% 36%,
            24% 36%,
            24% 70%,
            1% 70%,
            1% 43%,
            15% 43%,
            15% 28%,
            23% 28%,
            23% 71%,
            90% 71%,
            90% 86%,
            97% 86%,
            97% 1%,
            60% 1%,
            60% 67%,
            71% 67%,
            71% 91%,
            17% 91%,
            17% 14%,
            39% 14%,
            39% 30%,
            58% 30%,
            58% 11%,
            52% 11%,
            52% 83%,
            68% 83%
        );
    }
    76% {
        clip-path: polygon(
            0% 26%,
            15% 26%,
            15% 73%,
            72% 73%,
            72% 70%,
            77% 70%,
            77% 75%,
            8% 75%,
            8% 42%,
            4% 42%,
            4% 61%,
            17% 61%,
            17% 12%,
            26% 12%,
            26% 63%,
            73% 63%,
            73% 43%,
            90% 43%,
            90% 67%,
            50% 67%,
            50% 41%,
            42% 41%,
            42% 46%,
            50% 46%,
            50% 84%,
            96% 84%,
            96% 78%,
            49% 78%,
            49% 25%,
            63% 25%,
            63% 14%
        );
    }
    90% {
        clip-path: polygon(
            0% 41%,
            13% 41%,
            13% 6%,
            87% 6%,
            87% 93%,
            10% 93%,
            10% 13%,
            89% 13%,
            89% 6%,
            3% 6%,
            3% 8%,
            16% 8%,
            16% 79%,
            0% 79%,
            0% 99%,
            92% 99%,
            92% 90%,
            5% 90%,
            5% 60%,
            0% 60%,
            0% 48%,
            89% 48%,
            89% 13%,
            80% 13%,
            80% 43%,
            95% 43%,
            95% 19%,
            80% 19%,
            80% 85%,
            38% 85%,
            38% 62%
        );
    }
    1%,
    7%,
    33%,
    47%,
    78%,
    93% {
        clip-path: none;
    }
}

/* Glitch Movement Animation - moderate intensity movements */
@keyframes glitchMovement {
    0% {
        transform: translate(-4px, 1px);
    }
    15% {
        transform: translate(5px, 3px);
    }
    60% {
        transform: translate(-5px, 2px);
    }
    75% {
        transform: translate(6px, -3px);
    }
    100% {
        transform: translate(3px, 3px);
    }
}

/* Glitch Opacity Animation - moderate intensity */
@keyframes glitchOpacity {
    0% {
        opacity: 0.5;
    }
    5% {
        opacity: 0.85;
    }
    30% {
        opacity: 0.65;
    }
    45% {
        opacity: 0.75;
    }
    76% {
        opacity: 0.65;
    }
    90% {
        opacity: 0.9;
    }
    1%,
    7%,
    33%,
    47%,
    78%,
    93% {
        opacity: 0.3;
    }
}

/* Glitch Font Animation - only affects font-weight and blur, not color */
@keyframes glitchFont {
    0% {
        font-weight: 100;
        filter: blur(3px);
    }
    20% {
        font-weight: 500;
        filter: blur(0);
    }
    50% {
        font-weight: 300;
        filter: blur(2px);
    }
    60% {
        font-weight: 700;
        filter: blur(0);
    }
    90% {
        font-weight: 500;
        filter: blur(6px);
    }
}

/* Enhanced Glitch Opacity for Transitions - moderate intensity during title switches */
@keyframes glitchOpacityTransition {
    0% {
        opacity: 0.4;
    }
    45% {
        opacity: 0.6;
    }
    48% {
        opacity: 0.9;
    }
    50% {
        opacity: 0.5;
    }
    52% {
        opacity: 0.95;
    }
    55% {
        opacity: 0.7;
    }
    95% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.8;
    }
}


.about-content {
    padding: 100px 0;
    background: var(--background-color);
    overflow-x: hidden;
    overflow-y: visible;
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: -40px;
    padding-bottom: 40px;
    align-items: start;
    position: relative;
    z-index: 2;
}

.about-intro-left h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 400;
    font-family: "Teko", sans-serif;
    line-height: 1.2;
    letter-spacing: 1px;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.about-intro-right {
    padding-top: 20px;
}

.about-intro-right p {
    font-size: clamp(18px, 2.5vw, 22px);
    line-height: 1.7;
    color: var(--text-color);
    font-weight: 300;
}

/* About Video Section */
.about-video-section {
    padding: 80px 0;
    background: var(--background-color);
    position: relative;
    z-index: 1;
}

.about-video-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.video-placeholder {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    overflow: hidden;
}

.video-placeholder-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    font-weight: 300;
}

/* About Section 2 */
.about-section-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 80px 0;
    align-items: start;
}

.about-section-2-left h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: -1px;
    color: var(--secondary-color);
}

.about-section-2-left h2 span {
    font-weight: 400;
}

.about-section-2-right p {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 300;
}

/* About Intro Section */
.about-intro-section {
    padding: 100px 0;
    background: var(--light-gray);
    position: relative;
    margin: 80px 0;
    overflow: visible;
}

.about-intro-section-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: 0;
}

.about-intro-section-content h3 {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 40px;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
}

.about-intro-section-content h3 span {
    font-weight: 400;
}

.about-intro-section-content h3:last-child {
    margin-bottom: 0;
}

.about-cutout {
    position: absolute;
    left: -5%;
    bottom: 0;
    width: 50%;
    min-width: 500px;
    height: auto;
    object-fit: contain;
    object-position: bottom;
    z-index: 2;
    opacity: 1;
}

@media (max-width: 1024px) {
    .about-cutout {
        width: 45%;
        min-width: 400px;
        left: -3%;
        bottom: 0;
    }
}

@media (max-width: 768px) {
    .about-cutout {
        position: relative;
        width: 100%;
        min-width: unset;
        max-width: 100%;
        margin-top: 40px;
        margin-bottom: 40px;
        top: 0;
        left: 0;
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .about-intro {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-intro-right {
        padding-top: 0;
    }

    .about-section-2 {
        grid-template-columns: 1fr;
        gap: 40px;
        margin: 60px 0;
    }

    .about-intro-section {
        padding: 60px 0;
        margin: 60px 0;
    }

    .about-intro-section-content {
        margin-left: 0;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-fade-up {
    transform: translateY(40px);
}

.animate-fade-down {
    transform: translateY(-40px);
}

.animate-fade-left {
    transform: translateX(-40px);
}

.animate-fade-right {
    transform: translateX(40px);
}

.animate-scale {
    transform: scale(0.9);
}

.animate-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Intro Section */
.intro-section {
    padding: 120px 0 80px;
    background: var(--background-color);
    position: relative;
    overflow: visible;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.intro-content {
    animation: fadeInLeft 1s ease-out both;
}

.intro-image-wrapper {
    animation: fadeInRight 1s ease-out 0.2s both;
}

.intro-image {
    transition: transform 0.5s ease;
}

.intro-image:hover {
    transform: scale(1.05) translateY(-10px);
}

.intro-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.intro-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.intro-title-large {
    font-size: clamp(24px, 3.5vw, 48px);
    font-weight: 700;
    font-family: "Teko", sans-serif;
    line-height: 1.3;
    color: var(--secondary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    position: relative;
}

.intro-title-large::after {
    content: '|';
    display: inline-block;
    color: #fdbb2b;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.intro-title-large .highlight-yellow {
    color: #fdbb2b;
    font-weight: 700;
}

.intro-about-link {
    color: #fdbb2b;
    text-decoration: none;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    font-family: "Teko", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s;
    display: inline-block;
    align-self: flex-start;
}

.intro-about-link:hover {
    opacity: 0.7;
}

.intro-image-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-image {
    width: 100%;
    max-width: 700px;
    min-width: 400px;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: grayscale(100%);
    transform: scale(1.1);
}

.intro-decorative-bottom {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: transparent;
    overflow: visible;
    --scroll-progress: 0%;
    --stage: 1;
    --vertical-progress: 0%;
    z-index: 10;
    pointer-events: none;
}

.container {
    position: relative;
}

/* In stage 2, expand to full height to allow vertical line movement */
.intro-decorative-bottom[data-stage="2"] {
    height: 100%;
    min-height: 100vh;
    /* Stage 1 bars persist at 100% via background */
    background: linear-gradient(to right,
            #fdbb2b 0%,
            #fdbb2b 50%,
            #fdbb2b 50%,
            #fdbb2b 100%);
    background-size: 100% 6px;
    background-position: top;
    background-repeat: no-repeat;
}

/* In stage 3, same as stage 2 but with bottom bars */
.intro-decorative-bottom[data-stage="3"] {
    height: 100%;
    min-height: 100vh;
    /* Stage 1 bars at top + left bottom bar */
    background:
        /* Top bars (stage 1) */
        linear-gradient(to right,
            #fdbb2b 0%,
            #fdbb2b 50%,
            #fdbb2b 50%,
            #fdbb2b 100%),
        /* Left bottom bar splitting outward from center */
        /* Gradient is 50% wide (covers 0% to 50% of container) */
        /* 100% of gradient = 50% of container (center point) */
        /* To match right bar: when scroll-progress=100%, bar should be 50% of container wide */
        /* So yellow should extend from 100% of gradient to calc(100% - var(--scroll-progress)) of gradient */
        linear-gradient(to right,
            transparent 0%,
            transparent calc(100% - var(--scroll-progress)),
            #fdbb2b calc(100% - var(--scroll-progress)),
            #fdbb2b 100%);
    background-size:
        100% 6px,
        /* Top bars */
        50% 6px;
    /* Left bottom bar - covers left half */
    background-position:
        top,
        /* Top bars */
        bottom left;
    /* Left bottom bar - positioned at left, extends to center */
    background-repeat: no-repeat;
}

/* Left bar coming from the left (Stage 1 & 3) */
.intro-decorative-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 6px;
    background: #fdbb2b;
    transition: width 0.1s ease-out, left 0.1s ease-out, top 0.1s ease-out, height 0.1s ease-out;
    z-index: 1;
    will-change: width, left, top, height;
}

/* Right bar coming from the right (Stage 1 & 3) / Vertical line (Stage 2) */
.intro-decorative-bottom::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 6px;
    background: #fdbb2b;
    transition: width 0.1s ease-out, right 0.1s ease-out, top 0.1s ease-out, height 0.1s ease-out, left 0.1s ease-out;
    z-index: 1;
    will-change: width, right, left, top, height;
}

/* Stage 1: Bars meet horizontally at the top (0-33% progress) */
.intro-decorative-bottom[data-stage="1"]::before {
    width: calc(var(--scroll-progress) / 2);
    left: 0;
    top: 0;
    height: 6px;
    opacity: 1;
    /* Ensure it doesn't overlap - use max-width to cap at 50% */
    max-width: 50%;
    box-sizing: border-box;
    /* Only transition width, not height */
    transition: width 0.1s ease-out, left 0.1s ease-out, top 0.1s ease-out;
}

.intro-decorative-bottom[data-stage="1"]::after {
    width: calc(var(--scroll-progress) / 2);
    right: 0;
    top: 0;
    height: 6px;
    left: auto;
    opacity: 1;
    /* Ensure it doesn't overlap - use max-width to cap at 50% */
    max-width: 50%;
    box-sizing: border-box;
    /* Only transition width, not height */
    transition: width 0.1s ease-out, right 0.1s ease-out, top 0.1s ease-out, left 0.1s ease-out;
}


/* Stage 2: Vertical line moves down through the section (33-66% progress) */
.intro-decorative-bottom[data-stage="2"]::before {
    width: 6px;
    left: calc(50% - 3px);
    right: auto;
    top: 0;
    height: var(--vertical-progress);
    min-height: 6px;
    opacity: 1;
    z-index: 2;
    /* Above stage 1 bars */
    background: #fdbb2b;
    /* Remove transition on width and left to prevent glitches - position immediately, only animate height */
    transition: height 0.1s ease-out, top 0.1s ease-out;
    will-change: height, top;
}

.intro-decorative-bottom[data-stage="2"]::after {
    display: none;
    /* Not used in stage 2 */
    /* Ensure it's immediately hidden without transition */
    transition: none;
}


/* Stage 3: Use ::before for vertical line and left bottom bar, ::after for right bottom bar */
.intro-decorative-bottom[data-stage="3"]::before {
    /* Vertical line at full height */
    width: 6px;
    left: calc(50% - 3px);
    right: auto;
    top: 0;
    height: 100%;
    opacity: 1;
    z-index: 2;
    background: #fdbb2b;
    /* Remove transition to prevent overshooting - snap immediately to 100% */
    transition: none;
}

.intro-decorative-bottom[data-stage="3"]::after {
    /* Right bar splitting outward from center */
    width: calc(var(--scroll-progress) / 2);
    right: calc(50% - var(--scroll-progress) / 2);
    top: auto;
    bottom: 0;
    height: 6px;
    left: auto;
    opacity: 1;
    z-index: 3;
    /* Above stage 2 vertical line */
    background: #fdbb2b;
}


@media (max-width: 1024px) {
    .intro-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .intro-image-wrapper {
        order: -1;
        max-height: 600px;
    }

    .intro-image {
        max-width: 100%;
        min-width: unset;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .intro-section {
        padding: 80px 0 60px;
    }

    .intro-title-large {
        font-size: clamp(20px, 5vw, 32px);
        line-height: 1.4;
    }

    .intro-about-link {
        font-size: clamp(16px, 4vw, 20px);
    }
}

/* Episodes Section */
.episodes-section {
    padding: 120px 0;
    background: transparent;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.episodes-section-title {
    font-family: 'Teko', sans-serif;
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 300;
    letter-spacing: -2px;
    color: var(--secondary-color);
    text-align: center;
    margin: 0 0 80px 0;
    padding: 0;
}

.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 300;
    margin-bottom: 60px;
    letter-spacing: -2px;
    color: var(--secondary-color);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-title.animate-visible {
    opacity: 1;
    transform: translateY(0);
}


.episode-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
    isolation: isolate;
}

.episode-decorative-line {
    position: absolute;
    top: 0;
    left: -50px;
    right: -50px;
    bottom: 0;
    height: 100%;
    width: calc(100% + 100px);
    z-index: -1;
    pointer-events: none;
    --episode-progress: 0%;
    overflow: visible;
}

.episode-decorative-line::before,
.episode-decorative-line::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    height: 100%;
    background: #fdbb2b;
    transition: width 0.3s ease-out, left 0.3s ease-out, right 0.3s ease-out;
    z-index: -1;
    opacity: 1;
}

.episode-decorative-line::before {
    /* Phase 1 (0-15%): Thin line enters from outside */
    /* Position: starts at -50px, reaches 0 at 15% progress */
    left: clamp(-50px, calc(-50px + (var(--episode-progress) * 50px / 15)), 0px);
    /* Width: Always visible at 6px minimum, expands after 15% */
    /* When progress < 15: width = 6px (clamp ensures minimum) */
    /* When progress >= 15: width expands from 6px to 50% */
    width: clamp(6px, calc(6px + ((var(--episode-progress) - 15) * 694px / 85)), 1000px);
    max-width: 50%;
}

.episode-decorative-line::after {
    /* Phase 1 (0-15%): Thin line enters from outside */
    /* Position: starts at -50px, reaches 0 at 15% progress */
    right: clamp(-50px, calc(-50px + (var(--episode-progress) * 50px / 15)), 0px);
    /* Width: Always visible at 6px minimum, expands after 15% */
    /* When progress < 15: width = 6px (clamp ensures minimum) */
    /* When progress >= 15: width expands from 6px to 50% */
    width: clamp(6px, calc(6px + ((var(--episode-progress) - 15) * 694px / 85)), 1000px);
    max-width: 50%;
}

/* Animation classes removed - using Motion.dev scroll pinning instead */

.episode-image {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.episode-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.episode-img {
    transition: transform 0.5s ease;
}

.episode-image:hover .episode-img {
    transform: scale(1.1);
}

.episode-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 aspect ratio for YouTube thumbnails */
    overflow: hidden;
    border-radius: 4px;
    align-self: center;
    flex-shrink: 0;
    max-width: 100%;
    z-index: 1;
}

.episode-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
}

.episode-img-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

.episode-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
    padding-right: 10px;
    flex: 1;
    min-width: 0;
    max-height: 85vh;
    z-index: 1;
    position: relative;
}

.episode-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1.3;
    letter-spacing: -0.5px;
    color: var(--secondary-color);
}

.episode-text {
    margin-bottom: 30px;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

.episode-text p {
    font-size: clamp(15px, 1.8vw, 17px);
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.8;
    font-weight: 300;
}

.episode-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
    flex-shrink: 0;
}

.btn-episode {
    padding: 12px 30px;
    background: #fdbb2b;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn-episode::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-episode:hover::before {
    left: 100%;
}

.btn-episode:hover {
    background: #e6a826;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(253, 187, 43, 0.4);
}

.episode-platforms {
    display: flex;
    gap: 15px;
    align-items: center;
}

.platform-icon {
    font-size: 12px;
    color: #999;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.platform-icon:hover {
    color: #fdbb2b;
}

/* Subscribe Section */
.subscribe-section {
    padding: 120px 0;
    background: var(--background-color);
    text-align: center;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#subscribe-text {
    font-size: 16vw;
    font-family: "Teko", sans-serif;
    color: #fff;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg) skew(25deg);
    z-index: 0;
    user-select: none;
    pointer-events: none;
    opacity: 0.1;
}

#subscribe-text::before {
    --offset: 32px;
    content: attr(data-text);
    position: absolute;
    left: calc(var(--offset) * -1);
    top: var(--offset);
    color: rgba(0, 0, 0, 0.3);
    filter: blur(5px);
    text-shadow: none;
    z-index: -1;
}

.subscribe-section .container {
    position: relative;
    z-index: 1;
}

.subscribe-section .section-title {
    margin-bottom: 60px;
    line-height: 1.2;
}

.platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.platform-link {
    padding: 12px 24px;
    background: transparent;
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 0;
    font-weight: 400;
    transition: all 0.3s;
    border: 1px solid var(--secondary-color);
    font-size: 15px;
    letter-spacing: 0.5px;
}

.platform-link:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* News Preview Section */
.news-preview-section {
    padding: 120px 0;
    background: var(--light-gray);
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-preview-card {
    padding: 0;
    background: transparent;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.news-preview-card.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

.news-preview-card:nth-child(1) {
    transition-delay: 0.1s;
}

.news-preview-card:nth-child(2) {
    transition-delay: 0.2s;
}

.news-preview-card:nth-child(3) {
    transition-delay: 0.3s;
}

.news-preview-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.news-preview-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-preview-title {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.4;
    letter-spacing: -0.5px;
    color: var(--secondary-color);
}

.news-preview-link {
    display: inline-block;
    color: #fdbb2b;
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    transition: opacity 0.3s;
    letter-spacing: 0.5px;
}

.news-preview-link:hover {
    opacity: 0.6;
}

/* Carousel Section */
.carousel-section {
    padding: 60px 0;
    background: var(--background-color);
    overflow: hidden;
    position: relative;
}

.carousel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg,
            transparent 0%,
            rgba(253, 187, 43, 0.05) 25%,
            rgba(253, 187, 43, 0.08) 50%,
            rgba(253, 187, 43, 0.05) 75%,
            transparent 100%);
    background-size: 200% 100%;
    animation: wave-flow 12s ease-in-out infinite;
    z-index: 0;
    opacity: 0.6;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

@keyframes wave-flow {

    0%,
    100% {
        background-position: -200% 0;
    }

    50% {
        background-position: 200% 0;
    }
}

.carousel-track {
    display: flex;
    white-space: nowrap;
    animation: scroll-left 20s linear infinite;
    will-change: transform;
}

.carousel-text {
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 700;
    font-family: "Teko", sans-serif;
    color: #fdbb2b;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 60px;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Wrapper for tight mode effect */
.wrapper {
    transform-origin: center bottom 0px;
    transition: all 0.5s ease 0s;
    box-shadow: 0px 22px 54px rgba(0, 0, 0, 0.5);
    background: var(--background-color);
    min-height: 100vh;
    /* GPU acceleration and compositing to prevent body background showing through */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    isolation: isolate;
}

body.tight .wrapper {
    transform: translateY(-60px) scale(0.9);
    cursor: pointer;
}

/* Footer visibility - hidden until bottom is reached */
#footer-placeholder {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s ease, opacity 0.6s ease;
    margin-top: 0;
    position: relative;
    width: 100%;
}

/* Start revealing footer when near bottom (500px threshold) */
body.footer-visible #footer-placeholder {
    max-height: 2000px;
    /* Large enough to accommodate footer */
    opacity: 1;
}

/* Ensure footer is fully visible in tight mode */
body.tight #footer-placeholder {
    max-height: 2000px;
    opacity: 1;
}

/* Ensure footer appears right below wrapper when visible */
body.tight #footer-placeholder .footer {
    margin-top: 0;
}

/* Arrow button for scroll to bottom */
.arrow {
    position: fixed;
    bottom: 50px;
    left: 50%;
    cursor: pointer;
    margin-left: -20px;
    width: 60px;
    height: 60px;
    z-index: 99;
    background-color: #fdbb2b;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(253, 187, 43, 0.4);
}

.arrow.visible {
    opacity: 1;
}

.arrow.animated.bounce {
    animation: bounce-arrow 2s infinite;
}

.arrow::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid var(--primary-color);
    margin-top: 4px;
}

.arrow:hover {
    background-color: #e6a826;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(253, 187, 43, 0.6);
}

@keyframes bounce-arrow {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-15px);
    }
}

/* Footer */
.footer {
    background: #fdbb2b;
    color: #000;
    padding: 60px 0 30px;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0 0 60px 0;
    gap: 0;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.footer-social-icons li {
    list-style: none;
}

.footer-social-icons .social-icon {
    width: 80px;
    height: 80px;
    background-color: #000;
    text-align: center;
    line-height: 80px;
    font-size: 35px;
    margin: 0 10px;
    display: block;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 3px solid #000;
    z-index: 1;
    text-decoration: none;
}

.footer-social-icons .social-icon .icon {
    position: relative;
    color: #fdbb2b;
    transition: .5s;
    z-index: 3;
}

.footer-social-icons .social-icon:hover .icon {
    color: #fff;
    transform: rotateY(360deg);
}

.footer-social-icons .social-icon:before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f00;
    transition: .5s;
    z-index: 2;
}

.footer-social-icons .social-icon:hover:before {
    top: 0;
}

.footer-social-icons li:nth-child(1) .social-icon:before {
    background: #3b5999;
}

.footer-social-icons li:nth-child(2) .social-icon:before {
    background: #55acee;
}

.footer-social-icons li:nth-child(3) .social-icon:before {
    background: #0077b5;
}

.footer-social-icons li:nth-child(4) .social-icon:before {
    background: #e4405f;
}

.footer-social-icons li:nth-child(5) .social-icon:before {
    background: #ff0000;
}

.footer-social-icons li:nth-child(6) .social-icon:before {
    background: #000000;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 14px;
    margin-bottom: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #000;
    text-decoration: none;
    font-size: 13px;
    transition: opacity 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.footer-section a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    color: #000;
    font-size: 14px;
    opacity: 0.7;
}

/* Page Content Styles */
.page-content {
    padding: 120px 20px 80px;
    min-height: 80vh;
    overflow: visible;
}

.page-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: -2px;
    color: var(--secondary-color);
}

.page-subtitle {
    font-size: clamp(20px, 3vw, 28px);
    color: var(--text-color);
    margin-bottom: 40px;
    font-weight: 400;
}

.content-section {
    max-width: 800px;
    margin: 0 auto 60px;
}

.content-section p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
}

.content-section h2 {
    font-size: 32px;
    font-weight: 400;
    margin: 40px 0 20px;
    letter-spacing: -1px;
    color: var(--secondary-color);
}

.content-section h3 {
    font-size: 24px;
    font-weight: 500;
    margin: 30px 0 15px;
    color: var(--secondary-color);
}

/* About Content Section with Video Background */
.about-content-section {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 80px;
    margin-bottom: 80px;
    padding: 80px 0;
    overflow: hidden;
    min-height: 600px;
    max-width: none;
}

.about-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    min-width: 100%;
}

.about-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.about-content-text {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0;
    padding: 0 40px;
    text-align: left;
}

.about-content-text h2 {
    font-size: 32px;
    font-weight: 400;
    margin: 40px 0 20px;
    letter-spacing: -1px;
    color: var(--secondary-color);
}

.about-content-text h2:first-child {
    margin-top: 0;
}

.about-content-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

/* Shop Grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.product-price {
    font-size: 18px;
    font-weight: 600;
    color: #fdbb2b;
    margin-bottom: 15px;
}

.product-description {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: #fdbb2b;
    color: var(--primary-color);
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: #e6a826;
}

/* News Grid */
.news-grid {
    display: grid;
    gap: 40px;
    margin-top: 40px;
}

.news-card {
    padding: 30px;
    background: var(--light-gray);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.news-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.news-excerpt {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.7;
}

.news-link {
    display: inline-block;
    margin-top: 15px;
    color: #fdbb2b;
    text-decoration: none;
    font-weight: 500;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: var(--font-primary);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    padding: 15px 40px;
    background: #fdbb2b;
    color: var(--primary-color);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #e6a826;
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Mobile Navigation */
    .openNav {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .openNav .icon {
        width: 24px;
    }

    .openNav .icon::before,
    .openNav .icon::after {
        width: 24px;
    }

    .openNav .icon::before {
        top: -6px;
    }

    .openNav .icon::after {
        top: 6px;
    }

    .main-nav {
        padding: 100px 20px 40px;
    }

    .main-nav ul {
        width: 100%;
    }

    .main-nav ul li a {
        font-size: clamp(20px, 5vw, 26px);
        padding: 8px 0;
    }

    .nav-footer {
        width: 100%;
    }

    body.navOpen .wrapper {
        transform: translateX(-200px) translateY(40px) scale(0.88);
    }

    .openNav.open {
        transform: translateX(-200px) translateY(40px);
    }

    .episode-row {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0;
    }

    .episode-image {
        padding-top: 75%;
    }

    .episode-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-social-icons {
        gap: 0;
        margin-bottom: 40px;
        padding-bottom: 30px;
        flex-wrap: wrap;
    }

    .footer-social-icons .social-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
        line-height: 60px;
        margin: 0 8px;
    }

    .episodes-section {
        padding: 80px 0;
    }

    .episodes-list {
        gap: 60px;
    }
}

/* Award Card Styles with Hover Effect */
.award-card {
    position: relative;
    height: 650px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: #000;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.award-card__video {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: none;
    z-index: 1;
    object-fit: cover;
}

.award-card__content {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    top: calc(100% - 100px);
    left: 0;
    opacity: 1;
    transition: all 0.75s ease-in-out;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 2;
    padding: 30px;
}

.award-card__content::after {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-color: #fdbb2b;
    border-style: solid;
    border-width: 2px 0 0 2px;
    content: "";
    opacity: 0;
    transition: opacity 0.5s ease-in-out 0.2s;
}

.award-card::after {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-color: #fdbb2b;
    border-style: solid;
    border-width: 0 2px 2px 0;
    content: "";
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease-in-out 0.2s;
}

.award-card:hover::after {
    opacity: 1;
}

.award-card:hover .award-card__content::after {
    opacity: 1;
}

.award-card__content-inner {
    position: relative;
    display: block;
    height: 100px;
    display: flex;
    flex-flow: column nowrap;
    text-align: center;
    justify-content: center;
    transition: all 0.75s ease-in-out;
    max-width: 900px;
    width: 100%;
}

.award-card__title {
    font-weight: 700;
    text-transform: uppercase;
    color: #fdbb2b;
    letter-spacing: 2px;
    font-size: clamp(20px, 3vw, 32px);
    font-family: 'Teko', sans-serif;
    margin: 0;
}

.award-card__award-name {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 600;
    color: #fff;
    margin: 15px 0;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out 0.3s, transform 0.5s ease-in-out 0.3s;
}

.award-card__description {
    color: #e5e5e5;
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.7;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out 0.4s, transform 0.5s ease-in-out 0.4s;
}

.award-card__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(253, 187, 43, 0.3);
    font-size: clamp(13px, 1.6vw, 15px);
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out 0.5s, transform 0.5s ease-in-out 0.5s;
}

.award-card:hover {
    cursor: pointer;
}

.award-card:hover .award-card__content {
    top: 0;
    background: rgba(0, 0, 0, 0.97);
    transition: all 1s ease-in-out;
}

.award-card:hover .award-card__content-inner {
    height: 100%;
    align-items: center;
    justify-content: center;
    transition: all 1s ease-in-out;
}

.award-card:hover .award-card__award-name,
.award-card:hover .award-card__description,
.award-card:hover .award-card__footer {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .award-card {
        height: 550px;
        max-width: 100%;
    }

    .award-card__content {
        top: calc(100% - 80px);
        padding: 20px;
    }

    .award-card__content-inner {
        height: 80px;
    }

    .award-card__footer {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
}

/* Sticky Stacked Cards Styles for Impact Section */
.scroll-cards {
    counter-reset: card;
    position: relative;
    display: block;
    padding-bottom: 120vh;
}

.scroll-cards>.scroll-cards__item+.scroll-cards__item {
    margin-top: 40vh;
}

.scroll-cards .section-title {
    position: sticky;
    top: 2rem;
    z-index: 1;
}

.scroll-cards__intro {
    position: relative;
    z-index: 1;
}

.scroll-cards__item {
    --offset: 0.75em;
    color: #e5e5e5;
    position: sticky;
    top: max(16vh, 10em);
    min-height: 16em;
    background: #1e1e1e;
    /* Material Dark Surface */
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Subtle border for dark mode */
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    /* Elevation 2 */
    width: calc(100% - 5 * var(--offset));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Material Standard Easing */
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.scroll-cards__item:hover {
    transform: translateY(-4px);
    /* Lift effect */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    /* Elevation 10 */
    border-color: rgba(253, 187, 43, 0.4);
    /* Subtle golden highlight on hover */
}

/* Number Badge - Top Right of Content Area */
.scroll-cards__item-number {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(253, 187, 43, 0.1);
    color: #fdbb2b;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.25em;
    font-family: 'Teko', sans-serif;
    border: 1px solid rgba(253, 187, 43, 0.3);
    z-index: 10;
}

/* Image Wrapper - Left Side */
.scroll-cards__item-image-wrapper {
    flex-shrink: 0;
    width: 280px;
    background: #121212;
    /* Slightly darker background for image area */
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.scroll-cards__item-image-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(253, 187, 43, 0.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.scroll-cards__item-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.scroll-cards__item:hover .scroll-cards__item-image-placeholder img {
    transform: scale(1.05);
}

/* Content Area - Right Side */
.scroll-cards__item-content {
    flex: 1;
    padding: 3em 3.5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: linear-gradient(to right, #1e1e1e, #252525);
}

.scroll-cards__item-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 0.5em 0;
    letter-spacing: 1px;
}

.scroll-cards__item-description {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    margin: 0;
    max-width: 90%;
}

/* Stacking offset for each card */
.scroll-cards__item:nth-of-type(1) {
    transform: translate(calc((1 - 1) * var(--offset)), calc((1 - 1) * var(--offset)));
}

.scroll-cards__item:nth-of-type(2) {
    transform: translate(calc((2 - 1) * var(--offset)), calc((2 - 1) * var(--offset)));
}

.scroll-cards__item:nth-of-type(3) {
    transform: translate(calc((3 - 1) * var(--offset)), calc((3 - 1) * var(--offset)));
}

.scroll-cards__item:nth-of-type(4) {
    transform: translate(calc((4 - 1) * var(--offset)), calc((4 - 1) * var(--offset)));
}

.scroll-cards__item:nth-of-type(5) {
    transform: translate(calc((5 - 1) * var(--offset)), calc((5 - 1) * var(--offset)));
}

/* Medium screens */
@media screen and (min-width: 37em) {
    .scroll-cards__item {
        --offset: 1em;
    }

    /* Remove old :before pseudo element */
    .scroll-cards__item:before {
        display: none;
    }
}

/* Large screens */
@media screen and (min-width: 62em) {
    .scroll-cards__item {
        --offset: 1.5em;
        max-width: 60em;
        /* Slightly wider for better proportion */
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile adjustments */
@media screen and (max-width: 36.99em) {
    .scroll-cards {
        padding-bottom: 80vh;
    }

    .scroll-cards__item {
        --offset: 0.5em;
        min-height: auto;
        flex-direction: column;
    }

    .scroll-cards__item-image-wrapper {
        width: 100%;
        padding: 2em;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        background: #181818;
    }

    .scroll-cards__item-image-placeholder {
        width: 140px;
        height: 140px;
    }

    .scroll-cards__item-content {
        padding: 2em 1.5em;
    }

    .scroll-cards__item-number {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 1.1em;
    }

    .scroll-cards>.scroll-cards__item+.scroll-cards__item {
        margin-top: 30vh;
    }
}

/* Osmo-style menu hover effect */
.main-nav .menu-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.1em 0;
    text-decoration: none;
    overflow: hidden;
}

.main-nav .menu-link-heading {
    position: relative;
    z-index: 1;
    color: #000;
    font-family: "PP Neue Corp Tight", "Teko", sans-serif;
    font-weight: 700;
    font-size: 1.8em;
    line-height: 0.75;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: right;
    margin: 0;
    transition: transform 0.55s cubic-bezier(0.65, 0.05, 0, 1), color 0.55s cubic-bezier(0.65, 0.05, 0, 1);
    /* Text shadow creates the "replacement" text effect - matches background color */
    text-shadow: 0 1em 0 #fdbb2b;
}

.main-nav .menu-link:hover .menu-link-heading {
    transform: translateY(-1em);
    color: #fdbb2b;
    transition-delay: 0.1s;
}

/* Black background bar that scales up on hover */
.main-nav .menu-link-bg {
    position: absolute;
    inset: 0;
    background-color: #000;
    transform-origin: 50% 100%;
    transform-style: preserve-3d;
    transition: transform 0.55s cubic-bezier(0.65, 0.05, 0, 1);
    z-index: 0;
    transform: scale3d(1, 0, 1);
}

.main-nav .menu-link:hover .menu-link-bg {
    transform: scale3d(1, 1, 1);
}

/* Override old styles for menu-link elements */
.main-nav .menu-link::before,
.main-nav .menu-link::after {
    display: none;
}

@media (hover: hover) {
    .main-nav .menu-link:hover .menu-link-heading {
        transform: translateY(-1em);
        color: #fdbb2b;
    }
    
    .main-nav .menu-link:hover .menu-link-bg {
        transform: scale3d(1, 1, 1);
    }
}

/* Timeline Styles */
img {
    vertical-align: middle;
    max-width: 100%;
    display: inline-block;
}

.inline-block {
    max-width: 100%;
    display: inline-block;
}

.page-wrapper {
    z-index: 0;
    position: relative;
}

.section-timeline-heading {
    background-color: #0a0a0a;
}

.padding-vertical-xlarge {
    padding-top: 120px;
    padding-bottom: 120px;
}

.timeline-main_heading-wrapper {
    color: #fff;
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.timeline-main_heading-wrapper h2 {
    font-size: 50px;
    background: #ff6a00;
    background: -webkit-linear-gradient(to right, #ff6a00, #ee0979);
    background: linear-gradient(to right, #ff6a00, #ee0979);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timeline_component {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    position: relative;
}

.timeline_item {
    z-index: 2;
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    height: 100vh;
    flex: 0 0 100vw;
    position: relative;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    grid-template-rows: auto;
    grid-template-columns: 1fr 180px 1fr;
    grid-auto-columns: 1fr;
    padding-top: 80px;
    padding-bottom: 80px;
    display: grid;
    align-items: center;
    box-sizing: border-box;
}

.timeline_left {
    text-align: right;
    justify-content: flex-end;
    align-items: stretch;
    display: flex;
}

.timeline_centre {
    justify-content: center;
    display: flex;
}

.timeline_date-text {
    color: #fff;
    letter-spacing: -0.03em;
    font-size: 48px;
    font-weight: 500;
    line-height: 1.2;
    position: sticky;
    top: 50vh;
}

.timeline_text {
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
}

.timeline_circle {
    background-color: #fff;
    border-radius: 100%;
    width: 15px;
    min-width: 15px;
    max-width: 15px;
    height: 15px;
    min-height: 15px;
    max-height: 15px;
    position: sticky;
    top: 50vh;
    box-shadow: 0 0 0 8px #0a0a0a;
}

.timeline-progress-bar {
    position: fixed;
    left: 0;
    right: 0;
    height: 5px;
    background: #ff6a00;
    background: -webkit-linear-gradient(to right, #ff6a00, #ee0979);
    background: linear-gradient(to right, #ff6a00, #ee0979);
    bottom: 50px;
    transform: scaleX(0);
    transform-origin: left;
    z-index: 100;
}

.section-timeline {
    z-index: 1;
    background-color: #0a0a0a;
    position: relative;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: visible;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Ensure timeline pinning works when menu is open */
body.navOpen .section-timeline {
    position: relative;
    z-index: 1;
    /* Ensure timeline is not affected by wrapper transform */
    transform: none;
}

/* Ensure timeline horizontal section works when menu is open */
body.navOpen .timeline-horizontal-section {
    position: relative;
    /* Maintain pinning context */
    transform: translateZ(0);
}

.timeline-horizontal-section {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* GSAP will handle the pinning and scroll space */
}

/* Fade overlay on the right to prevent text overlap with scrollbar */
.timeline-horizontal-section::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 150px;
    background: linear-gradient(to left, #0a0a0a 0%, #0a0a0a 30%, rgba(10, 10, 10, 0.8) 50%, rgba(10, 10, 10, 0.4) 70%, transparent 100%);
    pointer-events: none;
    z-index: 50;
}

.timeline-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: fit-content;
    height: 100vh;
    will-change: transform;
}

.timeline-track > .timeline_item {
    display: grid !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    flex-basis: 100vw !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
}

/* For duplicate years, keep the year visible in the same position */
.timeline-item-duplicate-year .timeline-left-duplicate-year {
    position: relative;
}

.timeline-item-duplicate-year .timeline_date-text {
    position: sticky;
    left: 0;
    z-index: 10;
    background-color: #0a0a0a;
    padding-right: 20px;
    margin-right: -20px;
}

.margin-bottom-xlarge {
    margin-bottom: 56px;
}

.margin-bottom-medium {
    margin-bottom: 32px;
}

.timeline_link {
    opacity: 0.6;
    color: #fff;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: 8px;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    transition: opacity 0.3s;
    display: flex;
}

.timeline_link:hover {
    opacity: 1;
}

.text-colour-lightgrey {
    color: #ffffffa6;
}

.timeline_image-wrapper {
    margin-top: 24px;
}

.timeline_image-wrapper img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 8px;
    opacity: 0.9;
}


.paragraph-large {
    letter-spacing: -0.02em;
    font-size: 20px;
}

@media screen and (max-width: 767px) {
    .timeline-main_heading-wrapper h2 {
        font-size: 40px;
    }

    .paragraph-large {
        font-size: 18px;
    }

    .padding-vertical-xlarge {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .timeline_item {
        grid-template-columns: 64px 1fr;
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
        flex: 0 0 100vw;
    }

    .timeline_left {
        text-align: left;
        grid-area: 1 / 2 / 2 / 3;
    }

    .timeline_centre {
        justify-content: flex-start;
        grid-area: 1 / 1 / 3 / 2;
    }

    .timeline_right {
        grid-area: span 1 / span 1 / span 1 / span 1;
    }

    .timeline_date-text {
        margin-bottom: 24px;
        font-size: 36px;
    }

    .timeline_text {
        font-size: 20px;
    }


    .margin-bottom-xlarge {
        margin-bottom: 48px;
    }
}

/* Page Loading Indicator */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #151415;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

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

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(253, 187, 43, 0.2);
    border-top-color: #fdbb2b;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    color: #fdbb2b;
    font-family: 'Teko', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

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