/* =========================================
   Variables & Theme Defaults
========================================= */
:root {
    /* Color Palette */
    --clr-navy: #0A1128;
    --clr-navy-light: #1A2342;
    --clr-black: #050505;
    --clr-gold: #D4AF37;
    --clr-gold-light: #F3E5AB;
    --clr-ivory: #FFFFF0;
    --clr-amber: #FFBF00;
    --clr-white: #FFFFFF;

    /* Typography */
    --font-heading: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

    /* Spacing */
    --section-padding: 8rem 2rem;

    /* Effects */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-premium: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--clr-black);
    color: var(--clr-ivory);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    letter-spacing: 2px;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h3 {
    font-size: clamp(2rem, 4vw, 3rem);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   High-End Motion Elements
========================================= */

/* Ambient Canvas Background */
#ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2; /* Behind everything */
    pointer-events: none;
}

/* Custom Magnetic Cursor */
#custom-cursor {
    /*position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: var(--clr-ivory);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    will-change: transform, width, height;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.3s ease; */

    display: none; /* Hide by default, show on desktop via JS */    
}

html, body {
    /*cursor: none; */
    cursor: default;
}

/* Interactive elements default to no cursor (we handle it manually) */
a, button, .thumbnail-item, .glass-card {
    /*cursor: none;*/
    cursor: pointer;
}

/* Kinetic Typography Utility Wrappers */
.split-line {
    overflow: hidden;
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
}

.split-word {
    display: inline-block;
    will-change: transform, opacity;
}

.split-char {
    display: inline-block;
    will-change: transform, opacity;
}

/* =========================================
   Utility Classes
========================================= */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
}

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

.relative {
    position: relative;
}

.z-10 {
    position: relative;
    z-index: 10;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--clr-gold);
    color: var(--clr-black);
    border: 1px solid var(--clr-gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--clr-gold);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-ivory);
    border: 1px solid var(--clr-ivory);
}

.btn-outline:hover {
    background-color: var(--clr-white);
    color: var(--clr-black);
}

.divider {
    height: 2px;
    width: 60px;
    margin: 2rem auto;
}

.divider.gold {
    background-color: var(--clr-gold);
}

/* Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    box-shadow: var(--glass-shadow);
}

/* =========================================
   Premium Animation Utility Classes
========================================= */
.reveal-fade {
    opacity: 0;
    transition: var(--transition-premium);
}

.reveal-fade.active {
    opacity: 1;
}

.reveal-slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-premium);
}

.reveal-slide-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-slide-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: var(--transition-premium);
}

.reveal-slide-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: var(--transition-premium);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Creative Clip-Path Reveals */
.reveal-mask-circle {
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-mask-circle.active {
    clip-path: circle(100% at 50% 50%);
}

.reveal-mask-slant {
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-mask-slant.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

/* Parallax Container Utility */
.parallax-wrap {
    overflow: hidden;
}

.parallax-img {
    height: 120%;
    width: 120%;
    object-fit: cover;
    transform: translate(-5%, -5%);
    transition: transform 0.1s linear;
}

/* Stagger Helpers */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* =========================================
   Header Layout
========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.40625rem 0; /* Reduced height by 3px total (1.5px each side) */
    z-index: 1000;
    transition: background 0.4s ease, border 0.4s ease, padding 0.4s ease;
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Invisible catch zone for hover trigger at the top of screen */
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    /* Large catch zone over the header area */
    background: transparent;
    cursor: default;
    z-index: -1;
}

.site-header.scrolled {
    padding: 0.90625rem 0; /* Reduced proportional to original 1rem */
}

.header-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--font-heading);
    color: var(--clr-navy);
}

.logo-emblem {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    line-height: 1;
}

.logo-text span {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--clr-navy-light);
    display: block;
    margin-top: 2px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    transition: none; /* Persistent visibility */
}

/* Removed hover reveal logic for always-visible menu */

.nav-links li a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    position: relative;
    padding-bottom: 5px;
    color: var(--clr-navy);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--clr-gold);
    transition: var(--transition-smooth);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a.active {
    color: var(--clr-gold);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 1.5px;
    background-color: var(--clr-navy);
    margin: 6px 0;
    transition: 0.3s;
}

@media (max-width: 1024px) {
    .site-header {
        mix-blend-mode: normal !important;
        background: rgba(10, 17, 42, 0.98) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .mobile-menu-btn {
        display: block !important;
        position: relative;
        z-index: 10001 !important;
    }

    .main-nav {
        display: block !important;
    }

    .nav-links {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: var(--clr-navy) !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 3rem !important;
        transform: translateX(100%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.4s ease !important;
        z-index: 10000 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .nav-links.active {
        transform: translateX(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .nav-links li {
        width: auto !important;
        text-align: center !important;
    }

    .nav-links li a {
        font-size: 1.8rem !important;
        letter-spacing: 6px !important;
        color: var(--clr-white) !important;
        display: block !important;
    }

    .site-header:hover .nav-links {
        /* Kill any desktop hover behavior on mobile */
        transform: inherit !important;
        opacity: inherit !important;
        pointer-events: inherit !important;
    }
}

/* =========================================
   1. Hero Section
========================================= */
.fullscreen-hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Removed background image fallback */
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 17, 40, 0.4) 0%, rgba(5, 5, 5, 0.9) 100%);
    z-index: 1;
}

.particles-container {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--clr-white);
    margin-bottom: 1rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.hero-content .subtitle {
    font-family: var(--font-heading);
    color: var(--clr-gold);
    font-size: 2rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.hero-content .tagline {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    transition: opacity 0.5s ease;
}

.sound-toggle {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 4;
    background: rgba(10, 17, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.sound-toggle:hover {
    background: rgba(212, 175, 35, 0.3);
    border-color: var(--clr-gold);
    transform: scale(1.1);
}

.content-hidden {
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.hero-content {
    transition: opacity 0.8s ease;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.wheel {
    width: 4px;
    height: 10px;
    background-color: var(--clr-gold);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

/* =========================================
   2. Welcome Section
========================================= */
.welcome-section {
    padding: var(--section-padding);
    background-color: var(--clr-white);
    position: relative;
    overflow: hidden;
}

/* Subtle glow blob */
.welcome-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(10, 17, 40, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

.welcome-section .content h2 {
    color: var(--clr-navy);
}

.welcome-section .content p {
    font-size: 1.1rem;
    color: rgba(10, 17, 40, 0.8);
    margin-bottom: 1.5rem;
}

.welcome-section .image-wrapper {
    padding: 1rem;
    transform: rotate(2deg);
    transition: transform 0.5s ease;
}

.welcome-section .image-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
}

.welcome-section .image-wrapper img {
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* =========================================
   3. About Us Section
========================================= */
.about-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10; /* Sits above horizontal section for curtain-peel wipe */
}

.section-overlay.dark {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.85);
    z-index: 1;
}

.about-container {
    padding: 6rem 0;
    width: 100%;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.serif-heading {
    font-family: var(--font-heading);
    color: var(--clr-gold);
    font-size: clamp(3rem, 7vw, 5rem);
    margin-bottom: 0;
    will-change: transform, opacity;
}

.about-reveal-content {
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.about-content .lead-text {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--clr-gold-light);
    margin-bottom: 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem; 
    /*display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center; */
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.value-item {
    text-align: left;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background 0.3s ease, border-color 0.3s ease;
    will-change: transform, opacity;
}

.value-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
}

.value-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--clr-gold);
    opacity: 0.5;
    display: block;
    margin-bottom: 1rem;
}

.value-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.value-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

/* =========================================
   4. Horizontal Scroll Container
========================================= */
.horizontal-scroll-wrapper {
    overflow: hidden;
    margin-top: -2px; /* Close any fractional subpixel hairline gaps from GSAP pin spacers */
    background: var(--clr-white);
    width: 100%;
    position: relative;
    z-index: 10;
}

.pin-wrap {
    display: flex;
    width: fit-content;
    height: 100vh;
    background: var(--clr-white); /* Consistent background */
}

.horizontal-panel {
    min-width: 100vw !important;
    width: 100vw !important;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--clr-white);
    padding: 0 4rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .horizontal-panel {
        padding: 0 1.5rem;
    }
}

.horizontal-panel .container {
    padding: 0 2rem;
}

.horizontal-panel .split-layout {
    align-items: flex-start; /* Move wordings to top */
    text-align: left;
}

.horizontal-panel .content {
    padding-top: 5vh; /* Slight breathing room from top */
}

.horizontal-panel h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    color: var(--clr-navy);
    text-shadow: none; /* Remove shadow for white theme */
}

.panel-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    border: 1px solid var(--clr-gold);
    color: var(--clr-gold);
    border-radius: 30px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.panel-desc {
    font-size: 1.3rem;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--clr-navy-light);
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-size: 1rem;
    font-weight: 400;
    color: var(--clr-navy);
}

.feature-list span {
    color: var(--clr-gold);
    font-weight: 600;
}

/* Schedule Grid for Light Theme */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.schedule-card {
    padding: 1.5rem;
    background: rgba(10, 17, 40, 0.03);
    border: 1px solid rgba(10, 17, 40, 0.1);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.schedule-card:hover {
    background: var(--clr-white);
    border-color: var(--clr-gold);
    box-shadow: 0 10px 20px rgba(10, 17, 40, 0.05);
}

.schedule-card h4 {
    color: var(--clr-navy);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.schedule-card p {
    color: var(--clr-gold);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Glass Card & Image Parallax */
.horizontal-panel .image-wrapper.glass-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.horizontal-panel .image-wrapper.glass-card img {
    width: 115%; /* Extra width for parallax bleed */
    height: 100%;
    object-fit: cover;
    transform: translateX(-7.5%); /* Initial center for parallax */
    will-change: transform;
}

/* =========================================
   9.2 Statement of Faith Section
========================================= */
.faith-section {
    padding: 10rem 2rem;
    position: relative;
    background: url('../images/faith_bg.png') center/cover no-repeat;
    background-color: var(--clr-navy);
    background-attachment: fixed;
    overflow: hidden;
}

.faith-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 5rem;
}

.faith-card {
    padding: 3rem 2rem;
    text-align: center;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.faith-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--clr-gold);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.faith-card h4 {
    font-size: 1.4rem;
    color: var(--clr-gold);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.faith-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .faith-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .faith-section {
        padding: 6rem 1.5rem;
    }
    .faith-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .faith-card {
        padding: 2.5rem 1.5rem;
    }
}

/* =========================================
   9.5 Recent Sermons & Media
========================================= */
.media-section {
    padding: var(--section-padding);
    background-color: var(--clr-white);
    color: var(--clr-navy);
}

.video-gallery-container {
    max-width: 1000px;
    margin: 0 auto;
}

.main-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(10, 17, 40, 0.15);
    background: #000;
}

.main-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.thumbnail-item {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.thumbnail-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.thumbnail-item:hover img {
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: var(--clr-gold);
}

.thumbnail-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 17, 40, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail-item:hover .thumbnail-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 2rem;
    color: white;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.video-fallback-container {
    background: rgba(10, 17, 40, 0.03);
    padding: 1rem;
    border-radius: 8px;
    border: 1px dashed rgba(10, 17, 40, 0.1);
}

.btn-fallback {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background-color: var(--clr-gold);
    color: var(--clr-white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-fallback:hover {
    background-color: var(--clr-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 17, 40, 0.15);
}

.btn-fallback .icon {
    font-style: normal;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 768px) {
    .horizontal-panel .content {
        padding-top: 12vh;
        width: 100%;
    }

    .horizontal-panel .visual {
        width: 100%;
        margin-top: 2rem;
    }

    .horizontal-panel .image-wrapper.glass-card {
        max-width: 90%;
        margin: 0 auto;
    }

    .video-thumbnails-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .site-footer .footer-top .container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}
/* =========================================
   10. Contact Us (Bento Style)
========================================= */
.contact-section {
    padding: var(--section-padding);
    background-color: var(--clr-white);
    color: var(--clr-navy);
}

.contact-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 1.5rem;
    margin-top: 4rem;
}

.bento-tile {
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: var(--transition-premium);
    z-index: 1;
    border-radius: 12px;
}

.bento-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(10, 17, 42, 0.15);
    border-color: var(--clr-gold);
}

.location-tile {
    grid-column: span 2;
    grid-row: span 2;
}

/* The invisible placeholder to keep the Grid geometry */
.location-tile-placeholder {
    opacity: 0;
    pointer-events: none;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* =========================================
   Cinematic Contact Hero Overlay
========================================= */
.contact-hero-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    border-radius: 0;
    z-index: 100; /* Stays above the grid initially */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: url('../images/welcome_bg_1773447535747.png') center/cover no-repeat;
    z-index: -2;
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 17, 40, 0.95) 0%, rgba(10, 17, 40, 0.4) 100%);
    z-index: -1;
}

.hero-large-text {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--clr-white);
    letter-spacing: 2px;
    z-index: 2;
}

/* The small location content inside the animated card */
.hero-small-content {
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
    text-align: left;
    opacity: 0; /* Hidden when fullscreen */
    color: white;
    z-index: 2;
    pointer-events: none; /* Avoid clicking while invisible */
}

.hero-small-content.active {
    pointer-events: auto;
}

.hero-small-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--clr-gold);
    font-family: var(--font-heading);
}

.hero-small-content p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 400px;
    margin-bottom: 0.5rem;
}

.location-tile h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--clr-gold);
    font-family: var(--font-heading);
}

.location-tile p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 400px;
    margin-bottom: 0.5rem;
}

.address-text {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1rem;
    color: var(--clr-white) !important;
}

.info-tile {
    grid-column: span 2;
    background: rgba(10, 17, 40, 0.02);
    border: 1px solid rgba(10, 17, 40, 0.08);
    text-align: left;
    align-items: flex-start;
}

.info-tile .tile-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.info-tile h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--clr-navy);
}

.info-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--clr-navy-light) !important;
    margin-bottom: 1rem;
}

.tile-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition-smooth);
}

.tile-link:hover {
    letter-spacing: 2.5px;
}

.social-tile {
    grid-column: span 2;
    background: var(--clr-navy);
    color: white;
    text-align: center;
    align-items: center;
}

.social-tile h4 {
    margin-bottom: 2rem;
    color: var(--clr-gold);
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.social-icons-grid {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
}

.social-icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.social-icon-box .icon {
    font-size: 1.8rem;
}

.social-icon-box .label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.6;
}

.social-icon-box:hover {
    transform: scale(1.15);
    color: var(--clr-gold);
}

.social-icon-box:hover .label {
    opacity: 1;
}

@media (max-width: 1024px) {
    .contact-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .location-tile, .info-tile, .social-tile {
        grid-column: span 1;
        grid-row: span 1;
        padding: 2.5rem 1.5rem;
    }
    
    .location-tile h3 {
        font-size: 2rem;
    }
}

.contact-form-wrapper {
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: url('../images/upcoming_bg_1773447584646.png') center/cover no-repeat;
    /* Fallback visually */
    background-color: var(--clr-navy-light);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-overlay-text {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(10, 17, 40, 0.1);
    color: var(--clr-navy);
}

.map-overlay-text h3 {
    margin-bottom: 1.5rem;
}

/* =========================================
   3.5 Sequence Scrollytelling Section
   A sticky canvas area that plays an image sequence on scroll
========================================= */
.sequence-section {
    height: 400vh; /* Control the length of the scroll */
    background-color: var(--clr-black);
    position: relative;
    z-index: 5;
}

.sequence-sticky-container {
    height: 100vh;
    width: 100%;
    position: sticky;
    top: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--clr-black);
}

#sequence-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Responsive centering */
    display: block;
}

.sequence-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 2;
}

/* Cinematic Grain Effect to mask pixelation */
.sequence-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.04; /* Extremely subtle */
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 3;
}

/* =========================================
   4. About Us
========================================= */
/* =========================================
   11. Footer (Sleek Multi-column)
========================================= */
.site-footer {
    background-color: var(--clr-navy);
    color: var(--clr-white);
    padding-top: 6rem;
}

.footer-top {
    padding-bottom: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 4rem;
}

.footer-col h4 {
    color: var(--clr-gold);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    font-family: var(--font-body);
}

.footer-logo h3 {
    color: var(--clr-white);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.footer-logo h3 span {
    font-family: var(--font-body);
    font-weight: 300;
    opacity: 0.6;
}

.footer-mission {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    max-width: 320px;
}

.footer-links-list,
.footer-social-list {
    list-style: none;
    padding: 0;
}

.footer-links-list li,
.footer-social-list li {
    margin-bottom: 0.8rem;
}

.footer-links-list a,
.social-footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-links-list a:hover,
.social-footer-link:hover {
    color: var(--clr-gold);
    transform: translateX(5px);
}

.footer-info-item h5 {
    color: var(--clr-white);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.footer-info-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
}

.text-link {
    color: var(--clr-gold);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
}

.social-footer-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.social-footer-link .icon {
    font-size: 1.1rem;
}

.footer-phone-cta {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--clr-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-premium);
}

.footer-phone-cta:hover {
    background: var(--clr-gold);
    color: var(--clr-navy);
    border-color: var(--clr-gold);
    transform: scale(1.05);
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(0, 0, 0, 0.15);
}

.split-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--clr-white);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding-top: 4rem;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-mission {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .social-footer-link {
        justify-content: center;
    }
    
    .split-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* =========================================
   Animations & Base utilities
========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

/* =========================================
   Responsive Adjustments
========================================= */
@media (max-width: 1024px) {

    .split-layout {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    /* Maintain horizontal scroll on smaller screens */
    .pin-wrap {
        width: 500vw;
        height: 100vh;
        display: flex;
        flex-direction: row;
    }

    .horizontal-panel {
        width: 100vw;
        max-width: 100%;
        height: 100vh;
        min-height: 500px;
        padding: 4rem 2rem;
    }

    .panel-content {
        max-width: 100%;
        text-align: center;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* simple mobile hide for now, could add full mobile menu via JS */
    }

    .mobile-menu-btn {
        display: block;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content .subtitle {
        font-size: 1.5rem;
    }
}