/* ==========================================================================
   GLOBAL VARIABLES & RESET
   ========================================================================== */
:root {
    --color-bg: #050505;
    --color-text: #F0F0F0;
    --color-text-muted: #888888;
    --color-accent-orange: #FF5A1F;
    --color-accent-glow: rgba(255, 90, 31, 0.4);
    
    --font-ui: 'Inter', sans-serif;
    
    --grid-max-width: 1440px;
    --grid-gap: 20px;
    
    --nav-height: 80px;
}

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

html {
    scroll-behavior: auto; /* Handled by Lenis */
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
    cursor: none; /* Awwwards custom cursor */
}

a, button, .lightbox-img, .lightbox-close {
    cursor: none !important;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 6px; height: 6px;
    background-color: var(--color-accent-orange);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99999;
}

.cursor-follower {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99998;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}

.cursor-follower.hover-view {
    width: 80px; height: 80px;
    background-color: var(--color-accent-orange);
    border-color: var(--color-accent-orange);
    mix-blend-mode: difference;
}

.cursor-text {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
}

.cursor-follower.hover-view .cursor-text {
    opacity: 1;
}

@media (max-width: 1024px) {
    body {
        cursor: auto;
    }
    .custom-cursor, .cursor-follower {
        display: none;
    }
}

#smooth-wrapper {
    overflow-x: clip;
}

/* ==========================================================================
   UTILITIES & GLOBAL SYSTEM
   ========================================================================== */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.06;
    mix-blend-mode: overlay;
    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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Micro Typography Utilities */
.section-number {
    font-family: var(--font-ui);
    font-size: 14vw;
    font-weight: 300;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.05);
    letter-spacing: -0.05em;
    pointer-events: none;
    margin-bottom: -5vw; /* Pull up following content */
}

.fine-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
    position: relative;
}

.fine-divider::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 7px;
    height: 7px;
    background-color: var(--color-accent-orange);
}

.micro-caption {
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 15px;
}

.grid-container {
    max-width: var(--grid-max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--grid-gap);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-bottom 0.4s ease, transform 0.4s ease;
    border-bottom: 1px solid transparent;
}

.main-nav.scrolled {
    background-color: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-nav.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: var(--grid-max-width);
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-accent-orange);
    transform: translateX(-101%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after {
    transform: translateX(0);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Ambient Lighting */
.global-gradient-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -3;
    pointer-events: none;
    --bg-x1: 0%; --bg-y1: 0%;
    --bg-x2: 100%; --bg-y2: 100%;
    --bg-x3: 50%; --bg-y3: 50%;
    --bg-color1: #050505;
    --bg-color2: #050505;
    --bg-color3: #050505;
    background: 
        radial-gradient(circle at var(--bg-x1) var(--bg-y1), var(--bg-color1) 0%, transparent 70%),
        radial-gradient(circle at var(--bg-x2) var(--bg-y2), var(--bg-color2) 0%, transparent 70%),
        radial-gradient(circle at var(--bg-x3) var(--bg-y3), var(--bg-color3) 0%, transparent 80%);
    background-color: #050505;
}

.hero-ambient-light {
    position: fixed;
    width: 80vw;
    height: 80vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, rgba(5,5,5,0) 70%);
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    filter: blur(80px);
    opacity: 0; /* GSAP will fade this in */
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

.hero-ambient-light.light-2 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 140, 60, 0.2) 0%, rgba(5,5,5,0) 70%);
}

/* SVG Waves */
.hero-waves {
    position: absolute;
    bottom: -10%;
    left: 0;
    width: 100%;
    height: 50vh;
    z-index: 2;
    opacity: 0;
    mix-blend-mode: screen;
}

.hero-waves svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: rgba(255, 90, 31, 0.15);
    stroke-width: 0.5;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    padding-top: 35vh;
}

.hero-text-mask {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    overflow: hidden;
    padding-bottom: 20px;
    z-index: 0;
    pointer-events: none;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(60px, 15vw, 240px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
    transform: translateY(120%);
}

.hero-editorial {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-editorial-mask {
    overflow: hidden;
}

.hero-subtitle, .hero-role, .hero-location {
    font-family: var(--font-ui);
    font-weight: 300;
    letter-spacing: 0.05em;
    transform: translateY(100%);
    color: var(--color-text-muted);
}

.hero-subtitle {
    color: var(--color-text);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.hero-role, .hero-location {
    font-size: 14px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 10;
    overflow: hidden;
    opacity: 0;
}

.scroll-line {
    width: 100%;
    height: 100%;
    background-color: var(--color-accent-orange);
    transform: translateY(-100%);
}

/* ==========================================================================
   RESPONSIVE (Max 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Can implement mobile menu later if needed */
    }
    .grid-container {
        padding: 0 20px;
    }
    .hero-title {
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
    }
    .about-grid {
        display: flex;
        flex-direction: column;
        gap: 60px;
    }
    .about-large-text {
        grid-column: span 12;
    }
    .about-editorial-text {
        grid-column: span 12;
        padding-left: 0;
    }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about {
    padding: 150px 0 150px 0;
    position: relative;
    z-index: 10;
}

.about-grid {
    align-items: flex-end;
}

.about-large-text {
    grid-column: 1 / 9;
}

.line-mask {
    overflow: hidden;
}

.about-line {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(40px, 6vw, 90px);
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-text);
    transform: translateY(120%);
}

.about-editorial-text {
    grid-column: 9 / 13;
    padding-bottom: 10px;
}

.about-p {
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text-muted);
    transform: translateY(120%);
}

/* ==========================================================================
   PROJECT GLOBAL STYLES
   ========================================================================== */
.section-anchor {
    padding-top: var(--nav-height);
    margin-top: -var(--nav-height);
}

.project {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.project-header {
    margin-bottom: 80px;
    position: relative;
    z-index: 10;
}

.project-title-wrap {
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-title {
    font-size: 9vw;
    line-height: 0.9;
    letter-spacing: -0.03em;
    font-weight: 400;
}

.project-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255,255,255,0.1);
    margin: 40px 0;
}

.project-meta {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 500;
}

.img-wrapper {
    width: 100%;
    position: relative;
    background-color: rgba(255,255,255,0.02);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.8s ease, filter 0.8s ease;
    cursor: zoom-in;
    z-index: 1;
    overflow: hidden; /* Fix image parallax overlap */
}

.img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.8s ease;
}

.img-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    filter: brightness(1.03);
    z-index: 2;
}

.col-12 { grid-column: span 12; }
.col-10 { grid-column: span 10; }
.col-8 { grid-column: span 8; }
.col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }
.offset-1 { grid-column-start: 2; }
.offset-2 { grid-column-start: 3; }
.offset-3 { grid-column-start: 4; }

.project-hero-artwork {
    margin-bottom: 120px;
}

.project-story {
    margin-bottom: 120px;
}

.story-col {
    grid-column: 4 / 10;
    padding: 100px 0;
}

.story-heading {
    font-size: 14px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.story-text {
    font-size: 22px;
    line-height: 1.6;
    color: var(--color-text);
    font-weight: 300;
}

.project-featured {
    row-gap: var(--grid-gap);
    margin-bottom: 120px;
}

/* Horizontal gallery removed as per new vertical grid architecture */

/* ==========================================================================
   MEGSAN SPECIFIC
   ========================================================================== */
.megsan-font {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.lightbox-top-bar {
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: space-between;
    z-index: 10010;
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    pointer-events: none;
}

.lightbox-close {
    cursor: pointer;
    transition: color 0.3s;
    pointer-events: auto;
    padding: 10px; /* larger hit area */
    margin: -10px;
}

.lightbox-close:hover {
    color: var(--color-text);
}

.lightbox-content {
    position: relative;
    z-index: 10000;
    width: 80%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Let clicks pass through to overlay */
}

.lightbox-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
    pointer-events: auto; /* Catch clicks so they don't hit overlay */
}

.lightbox-main-img.loaded {
    transform: scale(1);
    opacity: 1;
}

.lightbox-bottom-bar {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 10010;
    font-family: var(--font-ui);
    pointer-events: none;
}

.lightbox-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.lightbox-project {
    font-size: 12px;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lightbox-nav-area {
    position: absolute;
    top: 0;
    height: 100%;
    width: 25%;
    z-index: 10005;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.prev-area { left: 0; justify-content: flex-start; padding-left: 40px; }
.next-area { right: 0; justify-content: flex-end; padding-right: 40px; }

.nav-arrow {
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--color-text);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.prev-area:hover .nav-arrow {
    opacity: 1;
    transform: translateX(-10px);
}
.next-area:hover .nav-arrow {
    opacity: 1;
    transform: translateX(10px);
}

/* Animations Helpers */
.reveal-fade { opacity: 0; transform: translateY(40px); }
.reveal-slide { opacity: 0; transform: translateY(60px); }

/* ==========================================================================
   ZENORA SPECIFIC
   ========================================================================== */
.zenora {
    padding-top: 140px;
    padding-bottom: 140px;
}

.zenora .project-title {
    color: #fdfaf6; /* Warm off-white */
}

.zenora .project-meta {
    color: #bfa58a; /* Warm muted accent */
}

.zenora .img-wrapper {
    background-color: rgba(255, 235, 215, 0.02); /* Warmer empty state */
}

/* ==========================================================================
   PORSCHE 911 SPECIFIC
   ========================================================================== */
.porsche {
    padding-top: 160px;
    padding-bottom: 160px;
}

.porsche .project-title {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.porsche .project-meta {
    color: #dd2a20; /* Porsche Red accent */
    font-weight: 700;
    letter-spacing: 0.25em;
}

.porsche .story-heading {
    color: #dd2a20;
}

.porsche .img-wrapper img {
    filter: grayscale(100%);
    transition: filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.porsche .img-wrapper:hover img {
    filter: grayscale(0%);
}

/* ==========================================================================
   LAYOUT MODIFIERS
   ========================================================================== */
.grid-container.wide {
    max-width: 1920px;
}

/* ==========================================================================
   GOBOULT SPECIFIC
   ========================================================================== */
.goboult {
    padding-top: 160px;
    padding-bottom: 160px;
}

.goboult .project-title {
    background: linear-gradient(90deg, #ffffff, #666666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 300;
}

.goboult .project-meta {
    color: #4a90e2; /* Tech Blue accent */
}

.goboult .img-wrapper {
    position: relative;
    overflow: hidden; /* Contain ripples */
    transition: box-shadow 0.8s ease, filter 0.8s ease;
}

.goboult .img-wrapper:hover {
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.15); /* Tech blue glow */
    z-index: 2;
}

/* Cursor Trail Ripple Effect */
.ripple-clone {
    position: absolute;
    width: 150px;
    height: 150px;
    margin-top: -75px;
    margin-left: -75px;
    border-radius: 50%;
    overflow: hidden;
    transform: scale(0);
    opacity: 0.6;
    animation: rippleTrail 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: none;
    z-index: 10;
}

@keyframes rippleTrail {
    0% { transform: scale(0); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

.ripple-clone img {
    position: absolute;
    top: calc(75px - var(--y));
    left: calc(75px - var(--x));
    width: var(--w);
    height: var(--h);
    transform: scale(1.05); /* Distorts/Refracts the image */
    filter: brightness(1.1) contrast(1.05);
    max-width: none; /* Prevent interference */
}

/* ==========================================================================
   AIR JORDAN SPECIFIC
   ========================================================================== */
.jordan {
    padding-top: 200px;
    padding-bottom: 240px;
}

.jordan .project-title {
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #ffffff;
    font-size: 8vw;
    line-height: 0.9;
    margin-bottom: 20px;
}

.jordan .project-meta {
    color: #ff3300; /* Iconic Orange/Red */
    font-weight: 800;
    letter-spacing: 0.3em;
}

.jordan-statement {
    font-size: 7vw;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: #ffffff;
    margin: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    padding: 200px 0 100px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-title {
    font-size: 10vw;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: 40px;
}

.footer-email {
    font-size: 32px;
    font-weight: 400;
    color: var(--color-accent-orange);
    text-decoration: none;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 150px;
    transition: color 0.3s ease;
}

.footer-email::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent-orange);
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-email:hover::after {
    transform: scaleX(0);
    transform-origin: left;
}

.footer-bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-text);
}

.footer-copy {
    color: var(--color-text-muted);
    font-size: 14px;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 900px) {
    .grid-container {
        display: flex;
        flex-direction: column;
        padding: 0 20px;
        gap: 30px;
    }

    [class*="col-"] {
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    .story-col {
        padding: 60px 0 !important;
    }
    
    .hero-title {
        font-size: 18vw;
    }
    
    .project {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    .project-header {
        margin-bottom: 40px;
    }

    .footer {
        padding: 100px 0 60px 0;
    }
    
    .footer-title {
        font-size: 15vw;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
    
    body, a, button, .lightbox-img, .lightbox-close {
        cursor: auto !important;
    }
    
    .custom-cursor, .cursor-follower {
        display: none !important;
    }
    
    .ripple-clone {
        display: none !important; /* Disable ripples on mobile touch devices */
    }
    
    .lightbox-nav-area {
        display: none; /* Hide hover arrows on mobile, use swiping or UI */
    }
}
