/* =========================================
   1. CSS VARIABLES & RESET
   ========================================= */
:root {
    --black: #050505;
    --white: #ffffff;
    --grey-light: #f4f4f4;
    --grey-dark: #333333;
    
    /* Bebas Neue: Tall, condensed streetwear staple */
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    --nav-height: 80px;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--black);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Preloader state */
body.loading {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* =========================================
   2. TEXTURES & CUSTOM CURSOR
   ========================================= */
.noise-overlay {
    position: fixed;
    inset: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    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");
}

/* Hide default cursor on desktop */
@media (hover: hover) and (pointer: fine) {
    body, a, button, input {
        cursor: none;
    }
}

.custom-cursor, .cursor-follower {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    mix-blend-mode: difference;
}

.custom-cursor {
    width: 6px; height: 6px;
    background-color: var(--white);
}

.cursor-follower {
    width: 40px; height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.cursor-follower.hover-active {
    width: 80px; height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

/* =========================================
   3. PRELOADER
   ========================================= */
.preloader {
    position: fixed;
    inset: 0;
    background-color: var(--black);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9000;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.preloader-logo {
  height: 65px;
  opacity: 0;
  transform: scale(0.8);
  animation: logoReveal 1s ease forwards;
}

@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.preloader.loaded {
    transform: translateY(-100%);
}

/* =========================================
   4. UTILITIES & TYPOGRAPHY
   ========================================= */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 8rem 0;
}

.bg-black { background-color: var(--black); }
.bg-light { background-color: var(--grey-light); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 400; /* Bebas requires 400 weight to look crisp */
    line-height: 1;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--white);
    color: var(--black);
}

.btn-secondary {
    background-color: var(--black);
    color: var(--white);
}

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

.btn-hover-invert:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.bg-black .btn-hover-invert:hover {
    background-color: var(--black);
    color: var(--white);
    border-color: var(--white);
}

.btn-hover-scale:hover {
    transform: scale(1.05);
}

/* =========================================
   5. NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    color: var(--white);
    transition: background-color var(--transition-fast), color var(--transition-fast), padding var(--transition-smooth);
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.98);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left, .nav-right {
    flex: 1;
    display: flex;
}

.nav-right {
    justify-content: flex-end;
    gap: 1.5rem;
    align-items: center;
}

.logo img {
  height: 35px;   /* adjust this */
  width: auto;
  object-fit: contain;
}
.nav-center {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-link::after, .hover-underline::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0%;
    height: 1px;
    background-color: currentColor;
    transition: width var(--transition-fast);
}

.nav-link:hover::after, .hover-underline:hover::after {
    width: 100%;
}

.icon-link, .icon-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
}

/* =========================================
   6. HERO SECTION (VIDEO)
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

/* Background Video Styling */
.hero-video {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.hero-content {
    color: var(--white);
    z-index: 1;
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Glowing Live Badge */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #ff2a2a;
    border-radius: 50%;
    box-shadow: 0 0 12px #ff2a2a;
    animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
    0% { box-shadow: 0 0 0 0 rgba(255, 42, 42, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(255, 42, 42, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 42, 42, 0); }
}

/* Middle Image Logo Container */
.hero-center-logo {
    width: clamp(200px, 45vw, 550px);
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Optional: adds a slight drop shadow so the logo stands out over the video */
    filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.4)); 
}

.hero-center-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.animated-text-wrapper {
    height: 60px;
    margin-top: 2rem;
}

/* Upgraded Changing Text (Outline/Solid effect) for Bebas */
.changing-text {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem); 
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1.2px var(--white);
    position: relative;
    display: inline-block;
}

.changing-text.solid-mode {
    color: var(--white);
    -webkit-text-stroke: 0px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--white);
    z-index: 1;
}

.scroll-text {
    font-family: var(--font-body);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 50%;
    background-color: var(--white);
    animation: scrollDown 2s infinite ease-in-out;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* =========================================
   7. BRAND STATEMENT
   ========================================= */
/* --- LUXURY BRAND STATEMENT UPGRADE --- */

.statement-container {
    padding: 2rem 0;
}

.mask-line {
    overflow: hidden; /* This creates the 'window' the text slides out of */
    margin-bottom: 0.5rem;
}

.statement-text.luxury-reveal {
    font-size: clamp(2.5rem, 8vw, 6rem); /* Larger and more responsive */
    line-height: 1.1;
    letter-spacing: -1px; /* Tighter spacing looks more high-fashion */
    margin: 0;
    transform: translateY(110%); /* Start hidden below the mask */
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Specific styling for the second line to make it "Stand Out" */
.highlight-text {
    background: linear-gradient(
        to right, 
        #ffffff 20%, 
        #666666 40%, 
        #666666 60%, 
        #ffffff 80%
    );
    background-size: 200% auto;
    color: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

/* Stagger the second line reveal */
.active .mask-line:nth-child(2) .luxury-reveal {
    transition-delay: 0.2s;
}

/* The trigger class (handled by your existing JS) */
.statement-section.active .luxury-reveal {
    transform: translateY(0);
}

/* Subtle metallic shimmer animation */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .statement-text.luxury-reveal {
        letter-spacing: 0;
        line-height: 1.2;
    }
}
/* --- KINETIC BRAND STATEMENT --- */
#brand-statement {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

/* Huge background outlined text */
.ghost-text-wrapper {
    position: absolute;
    white-space: nowrap;
    z-index: 1;
    opacity: 0.1; /* Very subtle */
    pointer-events: none;
}

.ghost-text {
    font-family: var(--font-heading);
    font-size: 25vw;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255,255,255,0.4);
    text-transform: uppercase;
    display: inline-block;
    transition: transform 0.1s linear; /* Smooth parallax */
}

/* Foreground Text Styling */
.statement-main {
    position: relative;
    z-index: 2;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 1.1;
    text-align: center;
    font-family: var(--font-heading);
    perspective: 1000px;
}

.s-line {
    display: block;
    overflow: hidden;
    margin-bottom: 10px;
}

.s-word {
    display: inline-block;
    transform: translateY(110%) rotateX(-90deg); /* 3D "Unfolding" effect */
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s;
    opacity: 0;
    margin: 0 5px;
}

/* State when active (scrolled into view) */
#brand-statement.active .s-word {
    transform: translateY(0) rotateX(0deg);
    opacity: 1;
}

/* Spotlight Overlay Effect */
.statement-spotlight {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle 300px at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.15) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 3;
}

/* High-end metallic color for specific words */
.s-word.highlight {
    color: #888; /* Dimmed initially */
    transition: color 0.4s ease;
}

/* This is the "WOW" hover effect: text brightens when cursor is nearby */
#brand-statement:hover .s-word.highlight {
    color: #fff;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}
/* =========================================
   8. PRODUCT SHOWCASE (COLLECTION)
   ========================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 2rem;
}

.product-card {
    display: flex;
    flex-direction: column;
}

/* FIX: Image cutoff issue solved by using object-fit: contain */
.product-img-wrapper {
    position: relative;
    aspect-ratio: 3 / 4; /* Made taller to fit models better */
    background-color: #f4f4f4; /* Matches the white studio background */
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.product-img-wrapper img {
    width: 100%; 
    height: 100%;
    object-fit: contain; /* Forces the entire image to stay visible */
    object-position: center;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-img-wrapper:hover img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 1.5rem; left: 1.5rem;
    background-color: var(--black);
    color: var(--white);
    padding: 0.4rem 1rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
}

/* --- INFINITE RUNWAY SLIDER --- */
.collection-slider-section {
    padding: 100px 0;
    overflow: hidden;
}

.slider-header {
    text-align: center;
    margin-bottom: 50px;
}

.drop-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 5px;
    color: #555;
    border: 1px solid #333;
    padding: 8px 15px;
}

.infinite-slider-container {
    width: 100%;
    display: flex;
}

.slider-track {
    display: flex;
    width: calc(280px * 8 + 40px * 8); /* Card width + gap multiplied by total cards */
    gap: 40px;
    animation: scrollSlide 30s linear infinite; /* The Auto-Scroll */
}

/* Pause animation on hover */
.slider-track:hover {
    animation-play-state: paused;
}

@keyframes scrollSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-280px * 4 - 40px * 4)); } /* Move exactly half the track */
}

/* Small Premium Card Design */
.product-card-mini {
    width: 280px; /* Small and elegant */
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    background: #111;
    overflow: hidden;
    border-radius: 2px;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mini-overlay span {
    color: #fff;
    font-size: 2rem;
    font-weight: 200;
}

/* Hover effects */
.product-card-mini:hover img {
    transform: scale(1.05);
}

.product-card-mini:hover .mini-overlay {
    opacity: 1;
}

/* Meta Data Typography */
.mini-meta {
    margin-top: 15px;
    text-align: left;
}

.mini-meta h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    color: #eee;
}

.mini-meta p {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #777;
    margin-top: 5px;
}

/* --- PERSPECTIVE SECTION REFINED --- */
.perspective-section {
    height: 200vh; /* Scroll distance */
    background: #000;
    position: relative;
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center; /* Vertical Center */
    justify-content: center; /* Horizontal Center */
    overflow: hidden;
}

/* Background Outline Text */
.bg-scroll-text {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 30vw;
    color: rgba(255,255,255,0.04);
    z-index: 1;
    white-space: nowrap;
    text-transform: uppercase;
    pointer-events: none;
    line-height: 1;
}

/* The Frame */
.perspective-frame-wrap {
    position: absolute; /* Stacked */
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.perspective-frame {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    will-change: width, height, border-radius; /* Performance boost */
}

.frame-img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
}

.frame-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent, rgba(0,0,0,0.8));
}

/* Foreground Text Alignment */
.perspective-content {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Forces everything to center */
    pointer-events: none;
    padding: 0 20px;
}

.text-layer {
    text-align: center;
    color: #fff;
    max-width: 100%;
}

.top-sub {
    font-family: var(--font-body);
    font-size: clamp(0.6rem, 2vw, 0.8rem);
    letter-spacing: 6px;
    opacity: 0.7;
    margin-bottom: 15px;
    display: block;
}

.main-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 12vw, 8rem); /* Responsive scaling */
    line-height: 0.95;
    margin-bottom: 30px;
}

.outline-text {
    color: transparent;
    -webkit-text-stroke: 1px #fff;
}

.bottom-cta {
    pointer-events: all;
}

/* --- MOBILE SPECIFIC FIXES --- */
@media (max-width: 768px) {
    .perspective-section { height: 160vh; } /* Faster scroll for mobile */

    .main-title {
        font-size: 3.8rem; /* Prevents text overflow */
        letter-spacing: -0.5px;
    }

    .bg-scroll-text {
        font-size: 60vw; /* Massive abstract text for mobile */
    }

    .perspective-frame {
        width: 100vw;
        height: 100vh;
    }
}
/* =========================================
   10. EXPERIENCE & BRAND STORY
   ========================================= */
/* --- 3D KINETIC SCENE ($5K+ CALIBER) --- */
.experience-3d-scene {
    height: 150vh; /* Long scroll for the rotation */
    background: #000;
    overflow: clip; /* Clean 3D bounds */
}

.scene-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column; /* Stack header and stage */
    align-items: center;
    justify-content: center;
    perspective: 2000px; /* The "Wow" depth */
    overflow: hidden;
}

/* Integrated Header */
.integrated-header {
    text-align: center;
    margin-bottom: -50px; /* Pulls the 3D wheel closer to the title */
    z-index: 10;
}


.v-3d-stage {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh; 
}

.v-3d-spinner {
    position: relative;
    width: 300px;
    height: 400px;
    transform-style: preserve-3d;
    /* Rotation handled by JS */
    will-change: transform;
}

.v-3d-item {
    position: absolute;
    inset: 0;
    /* Math: 360 degrees / 6 items = 60 degrees each */
    transform: rotateY(calc(var(--i) * 60deg)) translateZ(600px); 
    transform-style: preserve-3d;
}

.item-inner {
    width: 100%;
    height: 100%;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-box-reflect: bottom 15px linear-gradient(transparent, rgba(0,0,0,0.2));
}

.item-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.7);
    transition: 0.8s ease;
}

.v-3d-item:hover .item-inner {
    transform: scale(1.1);
    border-color: #fff;
    z-index: 100;
}

.v-3d-item:hover img {
    filter: grayscale(0%) brightness(1);
}

.item-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
}

.item-info span { font-family: var(--font-body); font-size: 10px; opacity: 0.5; }
.item-info h3 { font-size: 1.2rem; margin-top: 5px; }

/* The Ghost Text in the Middle */
.ghost-center-logo {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 20vw;
    color: rgba(255, 255, 255, 0.02);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.583);
    z-index: 0;
    pointer-events: none;
}

/* Header Text */
.scene-header {
    position: absolute;
    top: 60px;
    left: 60px;
    z-index: 10;
    margin-top: -50px;
}

@media (max-width: 768px) {
    .scene-header {
        text-align: center;
        margin: 0 auto;
    }

    .scene-title,
    .scene-coord {
        text-align: center;
    }
}
.scene-title {
    font-size: 4rem;
    color: #fff;
    line-height: 1;
}

.scene-coord {
    font-family: var(--font-body);
    font-size: 10px;
    color: #555;
    letter-spacing: 3px;
    margin-top: 10px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .v-3d-spinner { width: 180px; height: 260px; }
    .v-3d-item { transform: rotateY(calc(var(--i) * 60deg)) translateZ(300px); }
    .scene-title { font-size: 2.5rem; }
}
/* --- EDITORIAL SCANNER CSS --- */
.editorial-story {
    background: #000;
    padding: 180px 0;
    overflow: hidden;
    position: relative;
}

.editorial-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 100px;
}

/* 1. The Visual Fix (Head preservation) */
.visual-scanner-wrap {
    position: relative;
    padding: 20px; /* Space for brackets */
}

.visual-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 3.5 / 4.5; /* Premium portrait ratio */
    background: #111;
    overflow: hidden;
    /* Slit Reveal: Starts at center */
    clip-path: inset(0 50% 0 50%); 
    transition: clip-path 1.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.story-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* --- THE FIX: Prioritize the top of the image (The Head) --- */
    object-position: top center; 
    filter: grayscale(1);
    transform: scale(1.15);
    transition: transform 2s ease, filter 1.2s ease;
}

/* Bracket Animation */
.scanner-bracket {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,0.2);
    opacity: 0;
    transform: scaleX(0);
    transition: all 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

/* ACTIVE STATES (Triggered by Scroll) */
.editorial-story.active .visual-frame { clip-path: inset(0 0% 0 0%); }
.editorial-story.active .scanner-bracket { opacity: 1; transform: scaleX(1); }
.editorial-story.active .story-img { transform: scale(1); filter: grayscale(0); }

/* 2. Atomic Typography (Right Side) */
.editorial-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.assembly-paragraph {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.a-word {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem); /* BOLD & IMPACTFUL */
    color: #fff;
    line-height: 0.9;
    text-transform: uppercase;
    display: inline-block;
    opacity: 0;
    will-change: transform, opacity;
    /* Start scattered slightly to the right */
    transform: translateX(60px); 
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.a-word.snapped {
    opacity: 1;
    transform: translateX(0);
}

/* Technical HUD Details */
.scanner-metadata, .story-hud-line, .story-hud-footer {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 4px;
    color: #444;
}

.scanner-metadata {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.status-dot {
    display: inline-block;
    width: 6px; height: 6px;
    background: #ff0000;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
}

.editorial-story.active .status-dot { 
    background: #00ff41; 
    box-shadow: 0 0 10px #00ff41; 
}

@media (max-width: 991px) {
    .editorial-container { grid-template-columns: 1fr; gap: 60px; }
    .visual-frame { width: 90%; margin: 0 auto; }
}

/* =========================================
   11. FEATURES & COMMUNITY
   ========================================= */
/* --- THE NEURAL CIRCUIT ($5K PEAK) --- */
.tech-circuit-section {
    background: #000;
    padding: 180px 0;
    overflow: hidden;
    position: relative;
}

.circuit-wrapper {
    position: relative;
    max-width: 1000px;
    height: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG Wiring */
.circuit-svg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}

.circuit-path {
    fill: none;
    stroke: rgba(255,255,255,0.08);
    stroke-width: 1;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s ease-in-out;
}

.tech-circuit-section.active .circuit-path { stroke-dashoffset: 0; }

.data-particle {
    fill: #fff;
    filter: blur(2px) drop-shadow(0 0 5px #fff);
    opacity: 0;
}

.tech-circuit-section.active .data-particle { opacity: 1; transition: opacity 1s; }

/* Nucleus Engine */
.nucleus {
    position: relative;
    z-index: 10;
}

.nucleus-core {
    width: 180px; height: 180px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.nucleus-logo {
    width: 100%;
    filter: brightness(0) invert(1);
}

.pulse-ring {
    position: absolute;
    inset: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    animation: nucleusPulse 3s infinite;
}

@keyframes nucleusPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Floating Spec Nodes */
.spec-node {
    position: absolute;
    width: 280px;
    z-index: 5;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-circuit-section.active .spec-node { opacity: 1; transform: translateY(0); }

.node-box {
    padding: 25px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Stagger floating for realism */
.tr .node-box { animation-delay: 1s; }
.bl .node-box { animation-delay: 2s; }
.br .node-box { animation-delay: 3s; }

.node-header {
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.node-header span { font-family: 'Courier New', monospace; font-size: 10px; opacity: 0.4; letter-spacing: 3px; }

.decode-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.node-box p { font-family: var(--font-body); font-size: 0.7rem; color: #666; letter-spacing: 1px; }

/* Positioning Nodes */
.tl { top: 0; left: 0; }
.tr { top: 0; right: 0; }
.bl { bottom: 0; left: 0; }
.br { bottom: 0; right: 0; }

/* Mobile Adjustments */
@media (max-width: 991px) {
    .circuit-wrapper { height: auto; flex-direction: column; gap: 40px; }
    .spec-node { position: relative !important; width: 100%; transform: none !important; opacity: 1; }
    .circuit-svg, .pulse-ring { display: none; }
}

/* --- THE GLOWING KINETIC MARQUEE --- */
.community-premium-fixed {
    background: #000;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 75vh;
}

.marquee-spacer {
    width: 100%;
    background: #050505;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.border-top { border-top: 1px solid rgba(255,255,255,0.1); border-bottom: none; }

.marquee-wrapper {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    min-width: 100%;
    justify-content: space-around;
    align-items: center;
}

/* --- THE FIX: TIGHT GAPS --- */
.logo-item {
    flex-shrink: 0;
    width: 100px; /* Reduced from 150px to make them closer */
    display: flex;
    justify-content: center;
    padding: 0; /* Removed padding for tighter alignment */
}



.logo-item:hover img {
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(255,255,255,1));
}

/* BUTTERY SMOOTH ANIMATION */
.marquee-left { animation: scrollLeft 20s linear infinite; }
.marquee-right { animation: scrollRight 20s linear infinite; }

@keyframes scrollLeft {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-100%, 0, 0); }
}

@keyframes scrollRight {
    from { transform: translate3d(-100%, 0, 0); }
    to { transform: translate3d(0, 0, 0); }
}

/* --- FORM CENTER (PREMIUM EDITORIAL) --- */
.community-form-center {
    padding: 80px 5%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.brand-code { font-family: var(--font-body); font-size: 10px; letter-spacing: 5px; color: #666; display: block; margin-bottom: 20px; }
.brand-headline { font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 4rem); color: #fff; line-height: 1; margin-bottom: 40px; }

.premium-input-wrap {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 12px;
}

.premium-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    letter-spacing: 2px;
}

.submit-arrow {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.submit-arrow:hover { transform: translateX(10px); color: #fff; text-shadow: 0 0 10px #fff; }

/* Mobile Tuning */
@media (max-width: 768px) {
    .logo-item { width: 70px; }
    .logo-item img { height: 16px; }
    .brand-headline { font-size: 2.5rem; }
}
/* =========================================
   12. FINAL STATEMENT & FOOTER
   ========================================= */
/* --- THE DIGITAL VAULT ($5K CALIBER) --- */
.vault-section {
    position: relative;
    height: 110vh;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2000px; /* Essential for 3D */
}

/* 1. Background Kinetic Data columns */
.vault-data-bg {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-around;
    opacity: 0.05;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #fff;
    pointer-events: none;
    z-index: 1;
}

.data-column {
    writing-mode: vertical-rl;
    animation: dataFlow 20s linear infinite;
}

@keyframes dataFlow {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

/* 2. The 3D Access Card */
.access-card-wrap {
    position: relative;
    width: 380px;
    height: 220px;
    margin: 0 auto 60px;
    z-index: 10;
    transition: transform 0.1s ease-out;
}

.access-card {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 25px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.card-shine {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}

/* Card Content Details */
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.card-logo { font-family: var(--font-heading); font-size: 1.2rem; color: #fff; }
.card-status { font-family: 'Courier New', monospace; font-size: 8px; color: #ffae00; border: 1px solid #ffae00; padding: 2px 6px; }

.card-title { font-family: var(--font-heading); font-size: 2.2rem; color: #fff; line-height: 1; }
.card-msg { font-size: 9px; letter-spacing: 3px; color: #888; margin-top: 5px; text-transform: uppercase; }

.card-footer { position: absolute; bottom: 25px; left: 25px; right: 25px; display: flex; justify-content: space-between; align-items: flex-end; }
.serial { font-family: 'Courier New', monospace; font-size: 8px; color: #444; }
.barcode { width: 45px; height: 20px; background: repeating-linear-gradient(90deg, #fff, #fff 1px, transparent 1px, transparent 4px); opacity: 0.5; }

/* 3. Vault Text Content */
.vault-container { position: relative; z-index: 5; text-align: center; }
.vault-headline { font-family: var(--font-heading); font-size: clamp(3rem, 7vw, 6rem); color: #fff; line-height: 0.9; margin-bottom: 20px; }
.vault-sub { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 4px; color: #666; max-width: 500px; margin: 0 auto 40px; }
.vault-sub .highlight { color: #fff; text-decoration: underline; }

.vault-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: #000;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-decoration: none;
    transition: 0.4s;
}

.vault-btn:hover { background: transparent; color: #fff; border: 1px solid #fff; transform: scale(1.05); }

/* 4. The Auto-Scanner */
.vault-scanner {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    box-shadow: 0 0 20px #fff;
    z-index: 20;
    pointer-events: none;
    animation: scanMove 4s ease-in-out infinite;
}

@keyframes scanMove {
    0%, 100% { top: 0%; opacity: 0; }
    50% { top: 100%; opacity: 0.5; }
}

@media (max-width: 768px) {
    .access-card-wrap { width: 300px; height: 180px; }
    .vault-headline { font-size: 2.8rem; }
}

/* --- FOOTER: SYMMETRICAL SIGNATURE --- */
.footer-final {
    background: #000;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.f-final-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center; /* FORCE HORIZONTAL CENTER */
    text-align: center;   /* FORCE TEXT CENTER */
    gap: 80px;           /* Consistent vertical spacing */
}

/* 1. Background SVG Fix */
.f-bg-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

.kaiku-outline-logo {
    width: 120%;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 200px;
    fill: none;
    stroke: #fff;
    stroke-width: 1px;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 3s ease-in-out;
}

.footer-final.active .kaiku-outline-logo { stroke-dashoffset: 0; }

/* 2. Technical Status Block */
.f-status-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.f-terminal {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 3px;
    color: #fff;
}

.t-prefix { color: #555; margin-right: 5px; }
.t-cursor { animation: blink 1s infinite; }

.f-system-info {
    font-family: var(--font-body);
    font-size: 9px;
    letter-spacing: 5px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 3. Main Title Block */
.f-main-block { width: 100%; }

.f-final-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    letter-spacing: -1px;
    margin-bottom: 25px;
}

.f-indicator {
    width: 60px;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0 auto;
    position: relative;
}

.f-progress-bar {
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: #fff;
    transition: width 1.5s ease 0.5s;
}

.footer-final.active .f-progress-bar { width: 100%; }

/* 4. Agency Block (Leadstera) */
.f-agency-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.d-label {
    font-family: var(--font-body);
    font-size: 8px;
    letter-spacing: 4px;
    color: #555;
}

.leadstera-signature {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #fff;
    text-decoration: none;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 2px;
}

.f-copyright {
    margin-top: 20px;
    font-family: var(--font-body);
    font-size: 9px;
    letter-spacing: 2px;
    color: #222;
}

@keyframes blink { 50% { opacity: 0; } }

/* Mobile Alignment Fix */
@media (max-width: 768px) {
    .footer-final { padding: 80px 0 40px; }
    .f-final-wrapper { gap: 60px; }
    .f-final-title { font-size: 2.5rem; }
    .leadstera-signature { font-size: 1.8rem; }
}
/* =========================================
   13. ANIMATIONS & MICRO-INTERACTIONS
   ========================================= */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-text {
    opacity: 0;
    transform: scale(0.95);
    filter: blur(5px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

/* =========================================
   14. RESPONSIVE DESIGN (MOBILE)
   ========================================= */
@media screen and (max-width: 1024px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .story-text {
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .nav-center { display: none; }
    
    .product-grid, .features-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-layout {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .section-padding { padding: 5rem 0; }
    
    .hero-center-logo {
        width: 60vw; /* Make logo take up slightly more room on tiny screens */
    }
}

/* --- PRELOADER: THE STICKY OVERLAY --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000 !important; /* Keep it black */
    z-index: 999999999 !important; /* ABOVE EVERYTHING */
    display: flex !important; /* FORCE VISIBILITY */
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
}

/* This class is added by JS after exactly 5 seconds */
.preloader.exit {
    transform: translateY(-100%) !important;
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Animations aligned to a 5-second window */
.pre-status { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; opacity: 0; animation: fadeIn 0.5s forwards 0.2s; }
.dot { width: 8px; height: 8px; background: #00ff41; border-radius: 50%; box-shadow: 0 0 12px #00ff41; animation: pulseStatus 1s infinite; }
.status-text { color: #fff; font-size: 10px; letter-spacing: 5px; font-family: var(--font-body); }

.pre-logo { height: 70px; margin-bottom: 40px; filter: brightness(0) invert(1); opacity: 0; animation: logoPop 0.8s forwards 0.8s; }

.pre-arrival {
    display: flex;
    flex-direction: row; /* Side by side on Desktop */
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
}
.word-mask {
    overflow: hidden;
    height: 80px; /* Desktop height */
    display: flex;
    align-items: center;
}
.word {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Responsive font sizing */
    color: #fff;
    line-height: 1;
    text-transform: uppercase;
    transform: translateY(110%); /* Start hidden */
}


/* Word reveals timed across the 5 seconds */
.word-mask:nth-child(1) .word { animation: wordUp 0.8s forwards 1.8s; } /* WE (1.8s) */
.word-mask:nth-child(2) .word { animation: wordUp 0.8s forwards 2.6s; } /* HAVE (2.6s) */
.word-mask:nth-child(3) .word { animation: wordUp 0.8s forwards 3.4s; } /* ARRIVED. (3.4s) */

/* Progress Bar takes exactly 5 seconds */
.pre-loader-bar { width: 200px; height: 1px; background: rgba(255,255,255,0.1); margin-top: 50px; }
.bar-progress { width: 0%; height: 100%; background: #fff; animation: fillBar 5s linear forwards; }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes logoPop { to { opacity: 1; transform: scale(1); } }
@keyframes wordUp { to { transform: translateY(0); } }
@keyframes fillBar { from { width: 0%; } to { width: 100%; } }
@keyframes pulseStatus { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.4); } }

/* --- MOBILE ADJUSTMENTS (Phone) --- */
@media screen and (max-width: 768px) {
    .pre-arrival {
        flex-direction: column; /* STACK VERTICALLY ON MOBILE */
        gap: 0; /* Tighten gap for stacked look */
    }

    .word-mask {
        height: 55px; /* Smaller height for smaller mobile font */
    }

    .word {
        font-size: 2.5rem; /* Force a size that fits all phones */
        letter-spacing: 2px;
    }
}

