/* ==========================================================================
   SHARED CORE PARTS
   ========================================================================== */
:root {
    /* Colors */
    --maroon: #860404;
    --accent-maroon: #860404;
    --maroon-low: rgba(134, 4, 4, 0.08);
    --dark: #111;
    --light: #fff;
    --bg-soft: #f1eeed;
    --glass: rgba(255, 255, 255, 0.4);
}

/* Base Resets */
*, *::before, *::after { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
}

body { 
    font-family: 'Manrope', sans-serif; 
    background: var(--bg-soft); 
    color: var(--dark);
    overflow-x: hidden; 
}

/* Global Main Wrapper (The rounded bottom container) */
main {
    position: relative;
    z-index: 2;
    background-color: var(--bg-soft);
    width: 100%;
    min-height: 100vh;
    max-width: none;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    overflow: hidden; 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.04); 
}

/* --- REVEAL TEXT UTILITIES (GSAP PRESETS) --- */
.hero-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 0.3em; 
    overflow: hidden;
}

.word-map {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.1em; 
}

.word-inner {
    display: inline-block;
    transform: translateY(130%); 
    will-change: transform;
    transition: color 0.4s ease;
}

.tm { 
    color: var(--maroon) !important; 
    font-family: "playfair-display", serif; 
    font-style: italic !important; 
}
.tw { 
    color: #000000 !important; 
    font-family: "neue-haas-grotesk-display" !important; 
    font-style: normal !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}
.hero-title {
    font-family: "neue-haas-grotesk-display"; 
    font-weight: 400;
    font-size: clamp(2.5rem, 7.5vw, 9rem); 
    line-height: 1; 
    text-transform: uppercase; 
    margin-top: 5rem;
    margin-bottom: 5rem;
    text-align: center;
    
}
.hero-title span { 
    color: var(--maroon); 
    font-style: italic; 
    font-family: "playfair-display";
    align-items: baseline !important; 
}

/* --- AMBIENT VIDEO OVERLAY --- */
/* .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.99);
    pointer-events: none;
    z-index: 3;
} */
.overlay-img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(./5.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(15px);
    z-index: 3;
    pointer-events: none;
    opacity: 0.085;
}
/* video {
    object-fit: cover;
    height: 100vh;
    width: 100vw;
    opacity: 0.2;
} */









/* ==========================================================================
   FONT FACES
   ========================================================================== */
@font-face {
    font-family: "playfair-display";
    src: url("https://use.typekit.net/af/889857/00000000000000007735a126/30/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i4&v=3") format("woff2"),url("https://use.typekit.net/af/889857/00000000000000007735a126/30/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i4&v=3") format("woff"),url("https://use.typekit.net/af/889857/00000000000000007735a126/30/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i4&v=3") format("opentype");
    font-display: auto;
    font-style: italic;
    font-weight: 400;
    font-stretch: normal;
}

@font-face {
    font-family: "neue-haas-grotesk-display";
    src: url("https://use.typekit.net/af/2807c7/00000000000000007735bb48/30/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("woff2"),url("https://use.typekit.net/af/2807c7/00000000000000007735bb48/30/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("woff"),url("https://use.typekit.net/af/2807c7/00000000000000007735bb48/30/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("opentype");
    font-display: auto;
    font-style: normal;
    font-weight: 400;
    font-stretch: normal;
}










/* ==========================================================================
   CURSOR FOLLOW MARQUEE
   ========================================================================== */

.explore-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 120px;
    height: 25px;
    background-color: #000000;
    color: #ffffff;
    display: flex;
    align-items: center;
    overflow: hidden;
    pointer-events: none;
    z-index: 9999;
    border-radius: 2px;
    opacity: 0; 
    /* removed the old CSS transform string to let GSAP handle it perfectly */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.marquee-wrapper {
    display: flex;
    width: max-content;
    animation: cursor-marquee 10s linear infinite;
}

.marquee-text {
    font-family: "Manrope", sans-serif;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Infinite marquee horizontal movement */
@keyframes cursor-marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}










/* ==========================================================================
   CUSTOM SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar { display: none; }
html { -ms-overflow-style: none; scrollbar-width: none; }

.scroll-track {
    position: fixed;
    right: 30px;
    top: 45%;
    transform: translateY(-50%);
    width: 6px;         /* Slim track */
    height: 160px;      /* Total length of the track */
    background: rgba(202, 202, 202, 0.308); /* Low opacity track */
    border-radius: 20px;
    z-index: 10000;
    opacity: 0;         /* Hidden until scroll */
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.scroll-pill {
    width: 100%;
    height: 40px;       /* Fixed size of the moving indicator */
    background: maroon;
    border-radius: 20px;
    will-change: transform;
}

/* Visibility class */
.scroll-track.visible {
    opacity: 1;
}


@media (max-width: 768px) {
    .scroll-track {
        right: 20px !important; 
    }
}

@media (max-width: 425px) {
    .scroll-track {
        right: 12px !important; 
    }
}





/* ==========================================================================
   NAVBAR CORE STYLES
   ========================================================================== */

.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: auto;
    display: flex;
    justify-content: center;
    opacity: 0;
    white-space: nowrap;
}

/* ==========================================================================
   CONTAINER
   ========================================================================== */

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    gap: 2.5rem;
    padding: 0.4rem 2.5rem;

    background: rgba(73, 73, 73, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.02);

    white-space: nowrap;
}

/* ==========================================================================
   NAV GROUPS
   ========================================================================== */

.nav-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    white-space: nowrap;
}

.nav-group:first-child {
    justify-content: flex-end;
}

.nav-group:last-child {
    justify-content: flex-start;
}

/* ==========================================================================
   NAV LINKS
   ========================================================================== */

.nav-container a.nav-link {
    font-family: "Manrope", sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;

    color: #000;
    text-decoration: none;
    text-transform: uppercase;

    padding: 0.5rem .5rem;
    border-radius: 15px;

    position: relative;
    transition: all .3s ease;

    white-space: nowrap;
}

.nav-container a.nav-link:hover {
    background: rgba(0,0,0,.05);
    transform: translateY(-1px);
}

/* ==========================================================================
   LOGO
   ========================================================================== */

.nav-logo {
    display: flex;
    justify-content: center;
    align-items: center;

    /* padding: 0 .5rem; */
}

.nav-logo a {
    font-family: "Agdasima", sans-serif !important;

    /* Responsive logo size */
    font-size: clamp(1.5rem, 3vw, 2.5rem) !important;

    font-weight: 700 !important;
    letter-spacing: 1px !important;
    line-height: 1;

    color: #000;
    text-decoration: none;
    text-transform: uppercase;

    display: inline-block;
    transition: transform .3s ease;
}

.nav-logo a:hover {
    transform: scale(1.04);
}

/* ==========================================================================
   ACTIVE LINK
   ========================================================================== */

.nav-container a.nav-link.active {
    background: rgba(0, 0, 0, 0.04);
}

.nav-container a.nav-link.active::after {
    content: "";
    position: absolute;

    left: 50%;
    bottom: 0.1rem;

    transform: translateX(-50%);

    width: 20%;
    height: 2px;

    border-radius: 10px;
    background: #860404;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

.navbar,
.nav-container,
.nav-group,
.nav-logo {
    white-space: nowrap;
}

/* Tablets */

@media (max-width:1024px){

    .nav-container{
        gap:1.5rem;
        padding:.4rem 1.5rem;
    }

    .nav-group{
        gap:1rem;
    }

    .nav-container a.nav-link{
        font-size:.9rem !important;
    }

}

/* Mobile */

@media (max-width:768px){

    /* .navbar{
        width:95vw;
    } */

    .nav-container{

        width:100%;

        grid-template-columns:1fr auto 1fr;

        gap:.8rem;

        padding:.45rem .9rem;
    }

    .nav-group{
        gap:.4rem;
    }

    .nav-container a.nav-link{

        font-size:.7rem !important;
        padding:.4rem .45rem;
        letter-spacing:.02em;
    }

}

/* Small Mobile */

@media (max-width:480px){

    .nav-container{
        padding:.35rem .55rem;
        gap:.4rem;
    }

    .nav-group{
        gap:.15rem;
    }

    .nav-container a.nav-link{

        font-size:.585rem !important;
        padding:.35rem .5rem;
        letter-spacing:0;
    }

}

/* Very Small Devices */

@media (max-width:360px){

    .nav-container a.nav-link{

        font-size:.55rem !important;
        padding:.3rem .3rem;
    }

}








/* ==========================================================================
   FOOTER CORE STYLES & INTERACTION LAYERS
   ========================================================================== */
.footer-revealer {
    position: relative;
    width: 100%;
    height: 100svh;
    pointer-events: none; /* Let clicks pass through this empty scroll zone */
}

footer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100svh;
    background-color: #e9e9e9;
    overflow: hidden;
    z-index: 1; /* Positive index so links are clickable, but below main content (z-index: 2) */
    pointer-events: auto;
}

/* Central logo sizing */
.footer-logo {
    position: relative;
    width: 15%;
    min-width: 100px;
    opacity: 0; 
    z-index: 2;
    will-change: transform;
    pointer-events: none;
}

.footer-logo img {
    display: block;
    width: 100%;
    opacity: 0;
}

.footer-logo canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.footer-images {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
    pointer-events: none; /* Keep the decorative graphics from absorbing click events */
}

.footer-hand-img {
    position: relative;
    width: 40%;
    min-width: 200px;
    will-change: transform;
    pointer-events: none;
}

.footer-hand-img img {
    display: block;
    width: 100%;
    opacity: 0;
}

.footer-hand-img canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* FOOTER TOP BAR CONTENT (FLUID GRID) */

.footer-content {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding: 3rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 10; /* Raises content layer to guarantee link interactions */
    pointer-events: auto;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-info p {
    font-size: 1rem;
    font-weight: 500;
    color: #0000008e;
    margin: 0;
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
}

.footer-info a {
    color: #0000008e;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: var(--maroon, #860404);
}

.footer-nav-wrapper {
    display: flex;
    gap: 6rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #000000;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--maroon, #860404);
}

/* FOOTER HEADER (DESKTOP BASE) */

.footer-header {
    position: absolute; 
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex !important;
    flex-direction: row !important;       /* FORCES items to stay side-by-side */
    justify-content: space-between !important; /* One left, one right */
    align-items: flex-end !important;
    color: #000000;
    z-index: 3;
    pointer-events: none;
    box-sizing: border-box;
    flex-wrap: nowrap !important;          /* PREVENTS vertical wrapping completely */
}

.footer-header h1 {
    font-size: clamp(2.5rem, 12vw, 8rem);
    padding-bottom: 0.15em;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -2%;
    overflow: hidden;
    white-space: nowrap !important;        /* FORCES text to stay on one line */
}

/* ENHANCED RESPONSIVE BREAKPOINTS */

/* Tablets & Small Laptops (1024px and down) */
@media (max-width: 1024px) {
    .footer-nav-wrapper {
        gap: 4rem;
    }
    .footer-logo {
        width: 18%;
    }

    .footer-header {
        padding: 1.5rem 6%;
        flex-direction: row !important; 
        justify-content: space-between !important;
    }    

    .footer-header h1 {
        /* Scaled down dynamically to guarantee side-by-side fit */
        font-size: clamp(2rem, 5.5vw, 4.5rem);
    }
}

/* Mobile Landscapes & Portrait Tablets (768px and down) */
@media (max-width: 768px) {
    .footer-logo {
        width: 18%;
    }

    .footer-header {
        padding: 1.5rem 6%;
        flex-direction: row !important; 
        justify-content: space-between !important;
        gap: 1rem;
    }    

    .footer-header h1 {
        /* Bringing the font size down so "Culture" and "Reimagined" don't collide */
        font-size: clamp(1.4rem, 5vw, 2.8rem);
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        padding: 2.5rem 6%;
    }
    
    .footer-nav-wrapper {
        width: 100%;
        justify-content: space-between;
        gap: 2rem;
    }
}

/* Standard Smartphone Displays (480px and down) */
@media (max-width: 480px) {
    .footer-images {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        position: absolute !important;
        inset: 0 !important;
        height: auto !important;
        width: 100% !important;
        pointer-events: none !important;
        top: 10% !important;
    }

    .footer-hand-img {
        width: 32% !important;
        max-width: 110px !important;
    }

    .footer-logo {
        width: 20% !important;
        max-width: 70px !important;
        margin: 0 3% !important;
    }

    .footer-content {
        padding: 2rem 5%;
        gap: 1.5rem;
    }

    .footer-info p {
        font-size: 0.9rem;
    }

    .footer-nav-wrapper {
        flex-direction: row; 
        gap: 1rem;
    }

    .footer-links a {
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }

    .footer-header {
        padding: 1rem 5%;
        flex-direction: row !important;
        justify-content: space-between !important;
    }

    .footer-header h1 {
        /* Tiny screens mean tighter text. This prevents physical screen clipping */
        font-size: clamp(1.1rem, 4.8vw, 1.8rem); 
    }
}

/* Extremely Small or Narrow Devices (360px and down) */
@media (max-width: 360px) {
    .footer-hand-img {
        max-width: 95px !important;
    }

    .footer-logo {
        max-width: 60px !important;
    }

    .footer-content {
        padding: 1.5rem 5%;
        gap: 1.25rem;
    }

    .footer-nav-wrapper {
        flex-direction: row;
        gap: 1rem;
    }

    .footer-info p, 
    .footer-links a {
        font-size: 0.8rem;
    }

    .footer-header h1 {
        font-size: clamp(0.95rem, 4.5vw, 1.4rem);
    }
}

/* Landscape Viewport Safeguard */
@media (max-height: 620px) {
    .footer-images {
        top: 38% !important;
    }
    
    .footer-content {
        padding: 1rem 5%;
        gap: 1rem;
    }
    
    .footer-nav-wrapper {
        gap: 2rem;
    }

    .footer-header {
        padding: 0.5rem 5%;
        flex-direction: row !important;
        justify-content: space-between !important;
    }

    .footer-header h1 {
        font-size: clamp(1.2rem, 5vw, 2.2rem);
    }
}