* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "neue-haas-grotesk-text", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

.page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(16px, calc(16px + (32 - 16) * ((100vw - 768px) / (1920 - 768))), 32px);
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 clamp(20px, calc(20px + (40 - 20) * ((100vw - 768px) / (1920 - 768))), 40px);
}

/* Tablet and Desktop: 4 columns */
@media (min-width: 768px) {
    .page-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.navbar {
    background: #fff;
    height: 60px;
}

@media (min-width: 768px) {
    .navbar {
        height: 70px;
    }
}

@media (min-width: 1024px) {
    .navbar {
        height: 80px;
    }
}

.navbar .page-grid {
    padding-top: 15px;
    padding-bottom: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    color: #231F20;
    text-decoration: none;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.25rem);
    width: 100%;
    position: relative;
    padding-bottom: 3px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: radial-gradient(circle, #231F20 60%, transparent 0%);
    background-size: 6px 6px;
    background-repeat: repeat-x;
    opacity: 0;
    transition: opacity 0.1s;
}

.nav-link:hover::after {
    opacity: 1;
}

.nav-link:first-of-type {
    grid-column: 3;
}

.nav-link:last-of-type {
    grid-column: 4;
}

.logo {
    grid-column: 1;
    display: flex;
    align-items: center;
}

.logo img {
    height: 25px;
    width: auto;
}

@media (min-width: 768px) {
    .logo img {
        height: 35px;
    }
}

@media (min-width: 1024px) {
    .logo img {
        height: 45px;
    }
}

.hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 70vh;
    overflow: hidden;
    background: #1a1a1a;
}

.hero::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 100%;
    height: 10px;
    background: radial-gradient(circle, white 70%, transparent 0%);
    background-size: 10px 10px;
    background-repeat: repeat-x;
    z-index: 20;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 10px;
    background: radial-gradient(circle, #231F20 70%, transparent 0%);
    background-size: 10px 10px;
    background-repeat: repeat-x;
    z-index: 20;
}

.hero-overlay {
    position: absolute;
    top: clamp(2rem, 3vw, 3rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #fff;
    pointer-events: none;
}

.hero-static-image {
    display: none; /* Hidden by default */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    #p5-container {
        display: none;
    }
    
    .hero-static-image {
        display: block;
    }
}

.hero-title {
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
    text-align: center;
}

#p5-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

#p5-container canvas {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: auto;
}

.content-section {
    background: #231F20;
    padding-top: clamp(30px, calc(30px + (60 - 30) * ((100vw - 768px) / (1920 - 768))), 60px);
    padding-bottom: clamp(40px, calc(40px + (80 - 40) * ((100vw - 768px) / (1920 - 768))), 80px);
    position: relative;
}

.content-section::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: radial-gradient(circle, white 70%, transparent 0%);
    background-size: 10px 10px;
    background-repeat: repeat-x;
}

.content-section .section-title {
    font-family: "neue-haas-grotesk-display", sans-serif;
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    margin: 0 0 30px 0;
    text-align: left;
    text-transform: uppercase;
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .content-section .section-title {
        grid-column: 1;
        margin: 0;
    }
}

.section-text {
    color: #fff;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
    text-align: left;
    grid-column: 1 / -1;
}

.section-text a {
    color: #fff;
}

@media (min-width: 768px) {
    .section-text {
        grid-column: 2 / -1;
    }
}

.content-logos {
    grid-column: 1 / -1;
    display: flex;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .content-logos {
        grid-column: 2 / -1;
    }
}

.content-logos img {
    max-height: 50px;
    width: auto;
}

.content-logos img:nth-child(3) {
    max-height: 90px;
    margin-top: 15px;
}

@media (max-width: 640px) {
    .content-logos img:nth-child(3) {
        max-height: 50px;
        margin-top: 30px;
    }
    
    .content-logos {
        gap: 35px;
    }
    
    .content-logos img {
        max-height: 35px;
    }
}

.content-logos img:nth-child(2) {
    margin-top: 60px;
}

.content-logos img:first-child {
    margin-top: 50px;
}

.video-section {
    background: #fff;
    padding-top: clamp(30px, calc(30px + (60 - 30) * ((100vw - 768px) / (1920 - 768))), 60px);
    padding-bottom: clamp(40px, calc(40px + (40 - 20) * ((50vw - 768px) / (1920 - 768))), 40px);
    position: relative;
}

.video-section::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: radial-gradient(circle, white 70%, transparent 0%);
    background-size: 10px 10px;
    background-repeat: repeat-x;
}

.video-section .section-title {
    font-family: "neue-haas-grotesk-display", sans-serif;
    color: #231F20;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    margin: 0 0 0 0;
    text-transform: uppercase;
}

.video-section .section-text {
    color: #231F20;
    grid-column: 1 / -1;
    margin-bottom: 30px;
    margin-top: -10px;
}


.section-header {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.video-item {
    grid-column: span 2;
    margin-bottom: 30px;
    padding: 15px;
    transition: background-color 0.1s;
}

.video-item:hover {
    background-color: #231F20;
}


.video-title {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 15px 0;
    text-align: left;
    color: #231F20;
    transition: color 0.1s;
}

.video-item:hover .video-title {
    color: #fff;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
}

.video-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.footer {
    width: 100%;
    background-color: #231F20;
    color: #fff;
}

.footer .page-grid {
    position: relative;
    min-height: 200px;
    display: grid;
    grid-template-rows: auto 1fr;
    padding-top: 40px;
    padding-bottom: 40px;
    row-gap: 0px;
}

.footer-top-logo {
    grid-column: 1;
    grid-row: 1;
}

.footer-bottom-logos {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    justify-self: start;
    display: flex;
    gap: 50px;
    align-items: center;
}

.footer-bottom-logos img:nth-child(3) {
    max-height: 90px;
    margin-top: 15px; 
}

@media (max-width: 640px) {
    .footer-bottom-logos img:nth-child(3) {
        max-height: 50px;
        margin-top: 30px; 
    }
}

.footer-bottom-logos img:nth-child(2) {
    margin-top: 60px;
}

.footer-bottom-logos img:first-child {
    margin-top: 50px;
}

.footer img {
    max-height: 50px;
    width: auto;
}

.footer-legal {
    color: #777777;
    font-size: clamp(0.5rem, 0.75vw, 0.75rem);
    font-weight: 400;
    line-height: 1.4;
    grid-row: 1;
    align-self: start;
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
}

.footer-legal a:hover {
    text-decoration: underline;
}

.footer-legal:first-of-type {
    grid-column: 3;
}

.footer-legal:last-of-type {
    grid-column: 4;
}

/* Tablet */
@media (max-width: 767px) {
    .footer .page-grid {
        padding-top: 30px;
        padding-bottom: 30px;
        row-gap: 60px;
        min-height: 180px;
    }
    
    .footer-legal {
        grid-column: 1 / -1;
        grid-row: auto;
    }


    .footer-bottom-logos {
        grid-row: auto;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .footer .page-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
        min-height: auto;
        padding-top: 30px;
        padding-bottom: 30px;
    }
    
    .footer-top-logo,
    .footer-bottom-logos,
    .footer-legal {
        align-self: flex-start;
    }
    
    .footer img {
        max-height: 35px;
    }
    
    .footer-bottom-logos {
        gap: 35px;
    }
}