@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');



:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --gold: #D4AF37;
    --gold-bright: #FADB5F;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    cursor: none; 
}

.main-content {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #000; /* Start black */
    transition: background-color 1.5s cubic-bezier(0.23, 1, 0.32, 1); /* Smooth global color transition */
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}
.cursor-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
}
.cursor-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

/* Typography */
h1, h2, h3, .logo, .loading-text {
    font-family: 'Syne', sans-serif;
    text-transform: uppercase;
    font-weight: 800;
}
.gold-text {
    color: var(--gold-bright);
    animation: goldPulse 3s ease-in-out infinite;
}

/* Nav */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}
.logo {
    font-size: 2rem;
    letter-spacing: 4px;
}
.menu-btn {
    font-size: 1rem;
    letter-spacing: 2px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
}
.loading-text {
    font-size: 6vw;
    letter-spacing: 2vw;
    color: var(--gold-bright);
}

/* Interactive Hero Elements */
.floating-node {
    position: absolute;
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    cursor: default;
}
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    font-size: 0.9rem;
    letter-spacing: 4px;
    opacity: 0.5;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Hero Text Elements */
.hero-main {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hero-tag {
    position: absolute;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    opacity: 0.7;
    color: #fff;
}
.top-left {
    top: 40px;
    left: 40px;
}
.top-right {
    top: 40px;
    right: 40px;
    text-align: right;
}
.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-top: 1rem;
    font-weight: 300;
    opacity: 0.8;
}

/* Unified Horizontal Experience */
.horizontal-experience {
    height: 100vh; /* Controlled by ScrollTrigger pin distance */
    background: #000;
    position: relative;
}
.horizontal-sticky {
    position: sticky;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    perspective: 2000px;
    background-color: #000; /* Solid black start */
    opacity: 1; /* Guaranteed 100% opacity */
}
.horizontal-track {
    display: flex;
    height: 100%;
    width: fit-content;
    will-change: transform;
}
.slide {
    position: relative;
    flex-shrink: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Slide 1: Hero Specifics */
.hero-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-bg, .hero-darkness {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.hero-bg { z-index: 5; }
.hero-darkness { z-index: 10; }
.hero-vid {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 30; /* Above darkness and bg */
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    mix-blend-mode: difference;
    color: #fff;
    font-family: 'Inter', sans-serif;
    perspective: 1000px;
    opacity: 0;
    visibility: hidden;
}

/* Scrapbook Track */
.scrapbook-track {
    position: relative;
    width: 750vw; /* Reduced from 1000vw to squash the layout */
    height: 100vh;
    background-color: transparent;
    flex-shrink: 0;
    overflow: hidden;
}

/* Background SVG Lines */
.scrapbook-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0; /* Starts hidden to prevent abrupt start */
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 100px 100px; /* Technical Grid Pattern */
}

/* Scrapbook Items */
.scrapbook-item {
    position: absolute;
    z-index: 50;
    will-change: transform;
    border-radius: 8px;
    overflow: hidden;
}

/* Image aspect ratios & sizes */
.scrapbook-item img {
    object-fit: cover;
}
.size-hero img { width: 65vh; height: 65vh; }
.size-standard img { width: 40vh; height: 40vh; }
.size-detail img { width: 25vh; height: 25vh; }

/* Vertical Staggering */
.y-top { top: 10%; }
.y-mid { top: 50%; transform: translateY(-50%); }
.y-bot { bottom: 10%; }

/* Text Holders */
.text-holder {
    position: absolute;
    width: 22vw;
    color: rgba(255, 255, 255, 0.8);
    z-index: 40;
}
.text-holder h2 {
    font-family: 'Syne', sans-serif;
    font-size: 3vw;
    line-height: 0.85;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
    -webkit-text-stroke: 1px var(--gold);
    letter-spacing: -2px;
}
.text-holder p {
    font-family: 'Inter', sans-serif;
    font-size: 0.8vw;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Text Styling */
.scrapbook-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.6vw;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4); /* Muted small text */
    text-transform: uppercase;
    margin-bottom: 10px; /* Placed directly above the image */
}




/* 3. The Core Section (Modern White Editorial) */
.chyk-core {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff;
    padding: 15vh 8vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
}

.core-bg-text {
    position: absolute;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 45vw;
    color: rgba(0, 0, 0, 0.03);
    top: 50%;
    left: -10vw;
    transform-style: preserve-3d; /* For parallax */
    user-select: none;
    pointer-events: none;
}

.core-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10vw;
    width: 100%;
    max-width: 1600px;
    position: relative;
    z-index: 10;
    align-items: center;
}

.core-content {
    display: flex;
    flex-direction: column;
    gap: 4vh;
}

.core-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8vw;
    letter-spacing: 0.4vw;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #888;
    text-transform: uppercase;
}

.core-title {
    font-family: 'Syne', sans-serif;
    font-size: 5.5vw;
    line-height: 0.9;
    font-weight: 800;
    text-transform: uppercase;
    color: #111;
    letter-spacing: -2px;
}

.core-line {
    width: 60px;
    height: 4px;
    background: var(--gold);
    margin-top: 2rem;
}

.core-text-wrapper {
    margin-top: 1rem;
}

.core-paragraph {
    font-family: 'Inter', sans-serif;
    font-size: 1.1vw;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1.5rem;
    max-width: 90%;
}

.core-paragraph.secondary {
    font-size: 1vw;
    color: #777;
}

.btn-core {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2vw 2.5vw;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    font-size: 0.85vw;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    border-radius: 40px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    margin-top: 1rem;
}
.btn-core:hover {
    background: var(--gold);
    color: #111;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3)}

/* Horizontal Layout Wrapper */
.chyk-core {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden; /* Hide overflow for horizontal scrolling */
    background: #fdfdfd; /* Solid background prevents black screen glitch */
    z-index: 100; /* Ensure it stays above other sections when pinned */
    perspective: 2000px; /* Move perspective here to the 100vw container safely! */
    display: block; /* Override legacy flex */
    padding: 0; /* Override legacy padding */
}

.carousel-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    z-index: 50; /* Bring it to the absolute front! */
}

.deck-card {
    position: absolute;
    width: 16vw;
    height: 24vw;
    background: #F1B500; 
    border-radius: 20px;
    overflow: hidden;
    box-shadow: -15px 15px 40px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    user-select: none;
    will-change: transform;
    
    /* Hardware acceleration & 3D Prep */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}

.deck-card {
    position: absolute;
    width: 14vw;
    height: 20vw;
    top: calc(50vh - 10vw);
    background: #F1B500; 
    border-radius: 20px;
    overflow: hidden;
    box-shadow: -15px 15px 40px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    user-select: none;
    will-change: transform;
    
    /* Hardware acceleration & 3D Prep */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}

.deck-card:nth-child(even) {
    background: #C4A47C; /* Tan */
}
.deck-card:nth-child(3n) {
    background: #00A676; /* Teal */
}

.deck-card:hover {
    box-shadow: -15px 15px 50px rgba(0,0,0,0.25);
}

.deck-img-wrapper {
    width: 100%;
    flex: 1;
    background: #111;
    overflow: hidden;
}

.deck-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deck-content {
    padding: 1.5vw;
    background: #fff;
    color: var(--obsidian);
    text-align: left;
}

.deck-content h4 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.1vw;
    color: #111;
    margin-bottom: 0.5vw;
}

.deck-content p {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.8vw;
    color: #D4AF37;
}

/* 3.5 HORIZONTAL SPLIT GATE (VOID CONTENT) */
.void-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1; /* Beneath the white gates */
    overflow: hidden;
    opacity: 0; /* Hidden initially so it doesn't cover the milestone text */
}

.chyk-gate-top, .chyk-gate-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    background: #fdfdfd; /* Matches the white page */
    z-index: 2; /* Above the void, below the horizontal wrapper initially */
    opacity: 0; /* Hidden during scroll */
}

.chyk-gate-top {
    top: 0;
    height: 50vh;
    border-bottom: 2px solid var(--gold);
    transform-origin: top;
}

.chyk-gate-bottom {
    bottom: 0;
    height: 50vh;
    transform-origin: bottom;
}



.void-center-text {
    text-align: center;
    z-index: 1; /* Behind panels */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    opacity: 1; /* Already there */
    transform: perspective(1000px);
}

.void-label, .rift-title, .void-manifesto {
    overflow: visible;
    clip-path: none;
}

.void-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9vw;
    color: var(--gold);
    letter-spacing: 0.8vw;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 400;
}

.rift-title {
    font-family: 'Inter', sans-serif;
    font-size: 5vw;
    font-weight: 300;
    line-height: 1.1;
    color: #fff;
    letter-spacing: 0.2em;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(255,255,255,0.1);
}

.void-manifesto {
    font-family: 'Inter', sans-serif;
    font-size: 1vw;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.2vw;
    font-weight: 300;
    margin-top: 2rem;
    text-transform: uppercase;
}

.rift-energy-bar {
    width: 0;
    height: 2px;
    background: #D4AF37;
    margin: 2rem auto;
    box-shadow: 0 0 20px #D4AF37;
}

@keyframes goldPulse {
    0%, 100% { text-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }
    50% { text-shadow: 0 0 40px rgba(212, 175, 55, 0.8), 0 0 80px rgba(212, 175, 55, 0.4); }
}

.gold-text {
    color: #D4AF37;
    animation: goldPulse 3s ease-in-out infinite;
}

@keyframes textGlowPulse {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.2); }
    50% { text-shadow: 0 0 30px rgba(255, 255, 255, 0.5); }
}

/* 4. THE INFINITY TUNNEL — VIDEO-DRIVEN VORTEX */
.tunnel-finale {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #000;
    overflow: hidden;
    z-index: 110;
    margin-top: -2px;
}

#tunnel-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; /* Above video, below text */
}

.distal-light {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    z-index: 10;
    pointer-events: none;
    opacity: 0;
}

.tunnel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.tunnel-walls {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: translateZ(-5000px);
    will-change: transform;
}

.wall {
    position: absolute;
    display: flex;
    gap: 2500px; /* Massive gap for spacious feel */
    transform-style: preserve-3d;
}

.wall-item {
    width: 460px;
    height: 660px;
    border: 3px solid #D4AF37; /* Thick Neon Gold Border */
    background: #000;
    flex-shrink: 0;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.5), 
                inset 0 0 30px rgba(212, 175, 55, 0.3);
    will-change: transform;
}

/* Floating Stagger Effect */
.wall-item:nth-child(even) { transform: translateY(-70px); }
.wall-item:nth-child(odd) { transform: translateY(70px); }

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

.wall-left {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(65deg) translateZ(-800px); /* Wide and natural angle */
    flex-direction: row-reverse;
}

.wall-right {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(-65deg) translateZ(-800px);
}

.tunnel-end {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: -1;
    transform: translateZ(-8000px);
    opacity: 0;
    will-change: transform, opacity;
}

.end-video {
    position: absolute;
    width: 70vw;
    height: 70vh;
    overflow: hidden;
    /* Frame removed as requested */
}

.tunnel-text-holder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    pointer-events: none;
    perspective: 1000px; /* Added for 3D rotation */
    opacity: 1; /* Container visible, we animate the text child */
    will-change: transform, opacity;
}

.journey-text {
    font-family: 'Anton', sans-serif;
    font-size: 4vw; /* Reduced for cinematic scale */
    color: #fff;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -2px;
    line-height: 1;
    white-space: nowrap; /* Prevent two-layer wrapping */
    /* Massive shadow to pop against tunnel frames */
    text-shadow: 0 0 30px rgba(0,0,0,0.8), 
                 0 0 60px rgba(0,0,0,0.5);
}

.journey-text .gold-text {
    display: inline-block;
}

.end-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.end-title {
    font-family: 'Anton', sans-serif;
    font-size: 10vw;
    line-height: 0.8;
    color: #fff;
    text-transform: uppercase;
    font-style: italic;
    text-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.end-date {
    font-family: 'Inter', sans-serif;
    font-size: 1vw;
    color: #D4AF37;
    letter-spacing: 1.5vw;
    margin-top: 3rem;
    display: block;
    font-weight: 700;
}


/* 5. FINAL REVEAL — MAIN HOVER */
.final-experience {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 110; /* Above the canvas once revealed */
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
}

.final-hover-vid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1; /* Full brightness */
}

.final-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 100%;
}

.final-title {
    font-family: 'Syne', sans-serif;
    font-size: 8vw;
    font-weight: 800;
    letter-spacing: 2vw;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(255,255,255,0.3);
}

.final-tag {
    font-size: 1vw;
    letter-spacing: 0.5vw;
    color: var(--gold);
    margin-top: 2vh;
}

/* =========================================
   INTERACTIVE CARD DETAIL OVERLAY
========================================= */

#card-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: none; /* Handled by GSAP now */
    justify-content: center;
    align-items: center;
    opacity: 0;
}

#card-detail-overlay * {
    cursor: default; /* Ensure cursor is visible inside the modal */
}

.overlay-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.overlay-content {
    position: relative;
    width: 80vw;
    max-width: 1200px;
    height: 70vh;
    background: #fff;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

@media (min-width: 768px) {
    .overlay-content {
        flex-direction: row;
    }
}

#detail-close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    font-size: 3rem;
    color: #111;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.3s;
}

#detail-close-btn:hover {
    color: var(--gold);
}

.detail-split {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

@media (min-width: 768px) {
    .detail-split {
        flex-direction: row;
    }
}

.detail-left {
    width: 100%;
    height: 50%;
    overflow: hidden;
    background: #111;
}

@media (min-width: 768px) {
    .detail-left {
        width: 50%;
        height: 100%;
    }
}

.detail-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-right {
    width: 100%;
    height: 50%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fdfdfd;
}

@media (min-width: 768px) {
    .detail-right {
        width: 50%;
        height: 100%;
        padding: 4rem;

    }
}

#detail-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

#detail-title {
    font-family: 'Anton', sans-serif;
    font-size: 3rem;
    line-height: 1;
    color: #111;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    #detail-title {
        font-size: 4rem;
    }
}

.detail-divider {
    width: 60px;
    height: 4px;
    background: var(--gold);
    margin-bottom: 1.5rem;
}

#detail-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* ── Homepage grain overlay (matches base.css .grain-overlay) ── */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 192px 192px;
  animation: grainShift 0.14s steps(1) infinite;
  will-change: background-position;
}
@keyframes grainShift {
  0%   { background-position:   0px   0px; }
  14%  { background-position: -16px  -8px; }
  28%  { background-position:   8px -16px; }
  43%  { background-position: -24px   4px; }
  57%  { background-position:  12px  12px; }
  71%  { background-position:  -8px -20px; }
  85%  { background-position:  20px  -4px; }
  100% { background-position:   4px  16px; }
}
@media (prefers-reduced-motion: reduce) {
  .grain-overlay { display: none; }
}

/* ==========================================================
   HOMEPAGE — Mobile & Tablet Responsive
   ========================================================== */

/* ─── Hero text ─── */
@media (max-width: 767px) {
  .hero-title {
    font-size: clamp(2rem, 9vw, 4rem) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.5px !important;
  }
  .hero-subtitle {
    font-size: 0.88rem !important;
    letter-spacing: 1.5px !important;
  }
  /* Floating nodes too large on mobile - hide */
  .floating-node { display: none; }
  /* Hero tag too small and cramped */
  .hero-tag { display: none; }
  /* Scroll indicator */
  .scroll-indicator { font-size: 0.6rem; bottom: 28px; letter-spacing: 3px; }
  /* Logo top-left on homepage */
  .logo.top-left { left: 14px !important; top: -6px !important; }
  .logo.top-left img { height: 88px !important; }
}

/* ─── Loading screen ─── */
@media (max-width: 767px) {
  .loading-text { font-size: 10vw !important; }
}

/* ─── Scrapbook/horizontal: improve readability on mobile ─── */
@media (max-width: 767px) {
  .text-holder h2 {
    font-size: 7vw !important;
    letter-spacing: -1px !important;
  }
  .text-holder p {
    font-size: 2.5vw !important;
  }
  .text-holder { width: 35vw !important; }
  .scrapbook-text { font-size: 1.8vw !important; }
  /* Smaller scrapbook images on mobile */
  .size-hero img  { width: 50vw; height: 50vw; }
  .size-standard img { width: 32vw; height: 32vw; }
  .size-detail img { width: 22vw; height: 22vw; }
}

/* ─── Core / Milestones Section ─── */
@media (max-width: 767px) {
  .chyk-core { padding: 4rem 1.5rem !important; }
  .core-title {
    font-size: clamp(2.2rem, 9vw, 4rem) !important;
    letter-spacing: -1px !important;
    line-height: 1 !important;
  }
  .core-desc p, .core-text-vertical p {
    font-size: 0.92rem !important;
    line-height: 1.7 !important;
  }
  .core-label { font-size: 0.68rem !important; letter-spacing: 3px !important; }
  .core-bg-text { font-size: 70vw !important; }
  .btn-core {
    padding: 0.9rem 1.5rem !important;
    font-size: 0.78rem !important;
  }
}

/* ─── Carousel cards ─── */
@media (max-width: 767px) {
  .deck-card {
    width: 42vw !important;
    height: 58vw !important;
    top: calc(50vh - 29vw) !important;
    border-radius: 14px !important;
  }
  .deck-content { padding: 3vw !important; }
  .deck-content h4 { font-size: 3vw !important; }
  .deck-content p  { font-size: 2.5vw !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .deck-card {
    width: 22vw !important;
    height: 32vw !important;
    top: calc(50vh - 16vw) !important;
  }
  .deck-content { padding: 1.5vw !important; }
}

/* ─── Tunnel/canvas section ─── */
@media (max-width: 767px) {
  .journey-text {
    font-size: clamp(1.6rem, 7vw, 3.5rem) !important;
    letter-spacing: -0.5px !important;
  }
}

/* ─── Void / background section ─── */
@media (max-width: 767px) {
  .rift-title {
    font-size: clamp(1.8rem, 8vw, 3rem) !important;
    letter-spacing: -0.5px !important;
  }
  .void-label { font-size: 0.65rem !important; }
  .void-manifesto { font-size: 0.88rem !important; }
}

/* ─── Tablet adjustments ─── */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-title { font-size: clamp(3rem, 6vw, 5rem) !important; }
  .logo.top-left img { height: 110px !important; }
  .floating-node { font-size: 0.72rem; padding: 8px 12px; }
  .core-title { font-size: clamp(3rem, 6vw, 5vw) !important; }
}
