:root {
    --void: #000000;
    --light: #FFFFFF;
    --font-heading: 'Cinzel', serif;
    --font-body: 'EB Garamond', serif;
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Global Cursor Reset - Hide system cursor only when NOT on touch */
html,
body,
* {
    cursor: none;
}

/* Fallback for touch devices or if the system cursor is explicitly requested */
body.has-touch,
body.has-touch * {
    cursor: auto !important;
}

/* If you need to force show cursor for debugging or specific elements */
.show-cursor {
    cursor: auto !important;
}

@media (hover: hover) and (pointer: fine) {
    /* desktop specific hover adjustments can stay here if needed */
}

html,
body {
    width: 100%;
    background-color: var(--void);
    color: var(--light);
    font-family: var(--font-body);
    overflow-x: hidden;
    letter-spacing: 0.05em;
}

/* Momentum Scroll Setup */
#smooth-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#smooth-content {
    width: 100%;
    will-change: transform;
    /* transition: transform 0.1s linear; */
    /* We handle interpolation in JS for true inertia */
}

/* Shake Effect for Impact */
.shake-trigger {
    animation: screen-shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes screen-shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Custom Cursor - Glowing Orb */
.custom-cursor {
    display: none;
    /* Hidden by default on all devices */
    position: fixed;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 100%;
    pointer-events: none;
    z-index: 1000000;
    will-change: transform;
    mix-blend-mode: exclusion;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    /* Transition only for scale, not position */
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

/* Cursor visibility is now mostly handled via body classes and JS for dynamic response */
.custom-cursor {
    display: block;
}

body.has-touch .custom-cursor {
    display: none !important;
}

.custom-cursor.cursor-hover {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
}

/* Utility to hide standard scrollbar */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

section {
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

p {
    font-size: 1.5rem;
    line-height: 1.6;
    letter-spacing: 0.05em;
}

.verse-reference {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.4;
    margin-top: 1rem;
    transition: opacity 1s ease;
}

.visible .verse-reference,
.revealed .verse-reference {
    opacity: 0.6;
}

/* INTRO SECTION */
.intro-section {
    height: 100vh;
}

.main-title {
    font-size: clamp(3rem, 7vw, 9rem);
    text-align: left;
    max-width: 80vw;
    margin: 0 auto;
}

/* Character for "written" effect */
.char-span {
    display: inline-block;
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-10px);
    transition: opacity 0.1s ease, transform 0.1s ease, filter 0.1s ease;
}

.char-span.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

/* The WORD emphasis */
.the-word {
    display: inline-block;
    font-size: 1.5em;
    /* Massive relative to rest */
    font-weight: 700;
    letter-spacing: 0.05em;
    opacity: 0;
    /* Starts hidden, distinct reveal */
    filter: blur(20px);
    transform: scale(0.8);
    transition: all 2s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: -webkit-linear-gradient(top, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 50px rgba(255, 255, 255, 0.5);
    margin-left: 0.2em;
}

.the-word.visible {
    opacity: 1;
    filter: blur(0);
    transform: scale(1.1);
    -webkit-text-fill-color: #fff;
    text-shadow: 0 0 80px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 255, 255, 0.6), 0 0 10px rgba(255, 255, 255, 0.8);
    animation: word-impact 1s var(--ease-out) forwards;
}

@keyframes word-impact {
    0% {
        opacity: 0;
        transform: scale(3);
        filter: blur(40px);
    }

    10% {
        opacity: 1;
        transform: scale(0.9);
        filter: blur(0);
    }

    100% {
        transform: scale(1.1);
        filter: blur(0);
    }
}

/* SCRIPTURE SECTION */
.scripture-section {
    perspective: 1000px;
}

.verse-container {
    width: 100%;
    max-width: 80vw;
    margin: 0 auto;
    text-align: left;
}

.verse-text {
    font-size: clamp(2rem, 5vw, 6rem);
    text-align: left;
    margin: 0;
    margin-bottom: 10vh;
}

/* Remove margin from last child to avoid empty scroll space at end */
.verse-text:last-child {
    margin-bottom: 10vh;
}

.word-span {
    display: inline-block;
    opacity: 0;
    /* Fully hidden until scroll reveals */
    transform: translateY(10px);
    filter: blur(5px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out, filter 0.2s ease-out;
    will-change: opacity, transform, filter;
}

.word-span.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.cross-icon {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    transition: all 0.5s ease-out;
    -webkit-text-stroke: 1px var(--light);
    color: transparent;
    /* Outline initially */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* When the word becomes visible, the cross lights up immediately following the scrub */
.word-span.visible .cross-icon {
    color: var(--light);
    position: relative;
    transform: scale(1.1);
    animation: cross-pulse 2s ease-in-out infinite;
}

/* The SVG cross itself */
.word-span.visible .cross-icon .cross-svg {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 1)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.5));
}

/* Pulsating glow behind the cross using a pseudo-element */
.word-span.visible .cross-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 30%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: glow-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

/* Pulsating glow animation */
@keyframes cross-pulse {

    0%,
    100% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1.15);
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

/* GENESIS SECTION */
.genesis-section {
    background: var(--void);
    overflow: hidden;
}

canvas#genesis-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#walker-canvas {
    width: 100%;
    height: 100%;
}

.light-people {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100vw;
    height: 60vh;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease;
}

.light-section.visible .light-people {
    opacity: 0.7;
}

@keyframes people-walk {
    0% {
        transform: scale(0.9) translateX(-10%) translateY(0);
        filter: blur(5px) brightness(0.8);
    }

    50% {
        transform: scale(1.0) translateX(0) translateY(-2%);
        filter: blur(0px) brightness(1.2);
    }

    100% {
        transform: scale(0.9) translateX(10%) translateY(0);
        filter: blur(5px) brightness(0.8);
    }
}

.genesis-text-overlay {
    position: relative;
    z-index: 3;
    /* Layer 3 - Top */
    text-align: left;
    max-width: 80vw;
    margin: 0 auto;
    pointer-events: none;
}

.creation-text {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.verse-reference {
    margin-top: 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.2rem;
}

.creation-text.delayed {
    transition-delay: 0.5s;
}

/* LIGHT SECTION */
.light-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 80vw;
    margin: 0 auto;
    text-align: left;
}

/* PRODUCT SECTION */
.product-section {
    padding-top: 10vh;
}

.product-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    width: 100%;
}

.product-card {
    width: 300px;
    opacity: 0;
    /* Reveal on scroll */
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    text-align: center;
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
    /* Subtle border */
    animation: pulse-border 4s infinite alternate;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
    }

    100% {
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.1);
    }
}

.product-image-wrapper {
    width: 100%;
    height: 400px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    background: #000;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) grayscale(0.2);
    transition: transform 1s ease, filter 0.5s ease;
}

/* Add a light leak effect to image */
.product-image-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.product-card:hover .product-image-wrapper::after {
    opacity: 1;
}

.product-card:hover .product-image {
    transform: scale(1.05);
    filter: brightness(1) grayscale(0);
}

.product-card:hover .product-image-wrapper {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.acquire-btn {
    background: transparent;
    border: 1px solid var(--light);
    color: var(--light);
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
    opacity: 0;
}

.product-card:hover .acquire-btn {
    opacity: 1;
}

.acquire-btn:hover {
    background: var(--light);
    color: var(--void);
    box-shadow: 0 0 20px var(--light);
}

/* ETERNITY SECTION */
.product-page .eternity-section {
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center !important;
    /* Force horizontal centering */
    padding-top: 0;
    text-align: center;
    width: 100%;
}

.fade-out-text {
    opacity: 0.5;
    font-style: italic;
    text-align: center;
    margin: 0 auto;
}

/* Audio Control */
.audio-control {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.audio-control:hover {
    opacity: 1;
}

button#mute-toggle {
    background: none;
    border: none;
    fill: var(--light);
}

/* --- PRODUCT PAGE STYLES --- */

/* No override here, global cursor: none on body handles it */

.product-page .section {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    /* Changed from center to push content from top */
    justify-content: center;
    padding-top: 15vh;
    /* Ample space to clear the 'Return' link */
}

.product-nav {
    position: fixed;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    /* High enough to stay above overlay */
    pointer-events: auto;
}

.back-link,
.journal-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-link:hover,
.journal-link:hover {
    opacity: 1;
}

.back-link:hover {
    transform: translateX(-5px);
}

.journal-link:hover {
    transform: translateX(5px);
}

.index-nav {
    opacity: 0;
    pointer-events: none;
    animation: fadeInIntro 1s forwards;
    animation-delay: 5s;
    /* Appear after intro */
}

@keyframes fadeInIntro {
    to {
        opacity: 1;
        pointer-events: auto;
    }
}

.index-nav {
    opacity: 0;
    pointer-events: none;
    animation: fadeInIntro 1s forwards;
    animation-delay: 2s;
    /* Faster appearance */
}

/* --- BURGER MENU & NAV OVERLAY --- */
/* --- CONTINUOUS SEQUENCE: Heartbeat -> Swivel --- */
@keyframes pulsate-swivel-sequence {

    /* First Heartbeat (0-25%) */
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    5% {
        transform: scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
    }

    10% {
        transform: scale(1);
        opacity: 0.8;
    }

    15% {
        transform: scale(1.05);
        opacity: 0.9;
        filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
    }

    20% {
        transform: scale(1);
        opacity: 0.8;
    }

    25% {
        transform: scale(1);
        opacity: 0.8;
    }

    /* Swivel (Tilted Wobble) (30-50%) */
    30% {
        transform: rotate(0);
    }

    34% {
        transform: rotate(-8deg);
    }

    38% {
        transform: rotate(8deg);
    }

    42% {
        transform: rotate(-6deg);
    }

    46% {
        transform: rotate(6deg);
    }

    50% {
        transform: rotate(0);
    }

    /* Second Heartbeat (55-80%) */
    55% {
        transform: scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
    }

    60% {
        transform: scale(1);
        opacity: 0.8;
    }

    65% {
        transform: scale(1.05);
        opacity: 0.9;
        filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
    }

    70% {
        transform: scale(1);
        opacity: 0.8;
    }

    80% {
        transform: scale(1);
        opacity: 0.8;
    }

    /* Second Swivel (Short & Sharp) (85-95%) */
    85% {
        transform: rotate(0);
    }

    88% {
        transform: rotate(-4deg);
    }

    91% {
        transform: rotate(4deg);
    }

    95% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(0);
        scale: 1;
    }
}

.burger-menu {
    background: none;
    border: none;
    padding: 10px;
    z-index: 2100;
    /* Ensure it stays above everything */
    pointer-events: auto;
    transition: transform 0.3s var(--ease-out);
    animation: pulsate-swivel-sequence 6s ease-in-out infinite;
}

.burger-menu:hover {
    transform: scale(1.1);
    animation-play-state: paused;
}

.burger-menu svg {
    display: block;
    overflow: visible;
}

.cross-line {
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s ease;
    transform-origin: 12px 12px;
    stroke: white;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
}

/* Transformation to X */
body.menu-active .line-1 {
    /* rotate 45 + translate to center + scale to match length 14 */
    transform: rotate(45deg) translateY(-2.33px) scaleY(0.777);
}

body.menu-active .line-2 {
    transform: rotate(45deg);
}

body.menu-active .burger-menu {
    animation: none;
    transform: scale(1.1);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

body.menu-active .menu-overlay {
    opacity: 1;
    pointer-events: auto;
}

.menu-links {
    list-style: none;
    text-align: center;
}

.menu-links li {
    margin: 2rem 0;
    overflow: hidden;
}

.menu-link {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--light);
    text-decoration: none;
    text-transform: uppercase;
    display: block;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

body.menu-active .menu-link {
    opacity: 0.6;
    transform: translateY(0);
}

/* Staggered link entry */
body.menu-active li:nth-child(1) .menu-link {
    transition-delay: 0.1s;
}

body.menu-active li:nth-child(2) .menu-link {
    transition-delay: 0.2s;
}

body.menu-active li:nth-child(3) .menu-link {
    transition-delay: 0.3s;
}

body.menu-active li:nth-child(4) .menu-link {
    transition-delay: 0.4s;
}

body.menu-active li:nth-child(5) .menu-link {
    transition-delay: 0.5s;
}

.menu-link:hover {
    opacity: 1 !important;
    letter-spacing: 0.2em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* --- MENU PRODUCT CARDS (Visual Navigation) --- */
.menu-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 3rem;
    text-align: center;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

body.menu-active .menu-title {
    opacity: 1;
    transform: translateY(0);
}

.menu-product-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

.menu-product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

body.menu-active .menu-product-card {
    opacity: 1;
    transform: translateY(0);
}

body.menu-active .menu-product-card:nth-child(1) {
    transition-delay: 0.1s;
}

body.menu-active .menu-product-card:nth-child(2) {
    transition-delay: 0.2s;
}

body.menu-active .menu-product-card:nth-child(3) {
    transition-delay: 0.3s;
}

body.menu-active .menu-product-card:nth-child(4) {
    transition-delay: 0.4s;
}

.menu-product-card:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.menu-product-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.menu-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) grayscale(0.3);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.menu-product-card:hover .menu-product-image {
    transform: scale(1.1);
    filter: brightness(1) grayscale(0);
}

.menu-product-info {
    padding: 1.5rem;
    text-align: center;
}

.menu-product-info h3 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    line-height: 1.4;
    margin: 0;
}

/* Responsive: Stack on smaller screens */
@media (max-width: 900px) {
    .menu-product-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 500px) {
    .menu-product-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-height: 70vh;
        overflow-y: auto;
    }

    .menu-product-image-wrapper {
        height: 150px;
    }

    .menu-product-info {
        padding: 1rem;
    }
}

.product-showcase {
    display: flex;
    gap: 4rem;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    align-items: flex-start;
}

.carousel-container {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.05);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: auto;
    object-fit: cover;
    filter: brightness(0.9);
    transition: filter 0.5s ease;
}

.carousel-nav-btn,
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 10px;
    z-index: 10;
    transition: background 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.bloom-text {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0), 0 0 20px rgba(255, 255, 255, 0);
    animation: light-pulse 4s infinite ease-in-out;
    font-weight: 500;
}

@keyframes light-pulse {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0), 0 0 20px rgba(255, 255, 255, 0);
        opacity: 0.8;
    }

    50% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.4);
        opacity: 1;
    }
}

.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-title {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    margin: 0;
    line-height: 1;
}

.product-description {
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.whitelist-section {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.whitelist-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.whitelist-form {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.waitlist-disclaimer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
    font-style: italic;
    line-height: 1.4;
    text-align: center;
}

.hidden {
    display: none !important;
}

.whitelist-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    color: white;
    font-family: 'EB Garamond', serif;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.whitelist-input:focus {
    border-color: var(--light);
}

.whitelist-btn {
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0 2rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    transition: all 0.3s ease;
}

.whitelist-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.form-success {
    margin-top: 1.5rem;
    color: var(--light);
    font-style: italic;
    animation: fadeIn 0.5s ease forwards;
}

/* Language Selection */
.language-selection {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.lang-option {
    position: relative;
    cursor: pointer;
}

.lang-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.lang-label {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    /* Explicit fallback since var not found in chunk */
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    letter-spacing: 0.1em;
    border-bottom: 1px solid transparent;
}

.lang-option input:checked+.lang-label {
    color: #fff;
    border-bottom: 1px solid #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.lang-option:hover .lang-label {
    color: #fff;
}

/* English Sub-selection (WEB / KJV) */
.version-sub-selection {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: -1.5rem;
    /* Pull closer to main options */
    margin-bottom: 2rem;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease;
}

.version-sub-selection.visible {
    height: auto;
    opacity: 1;
    margin-top: -1rem;
}

.sub-option {
    position: relative;
    cursor: pointer;
}

.sub-option input {
    position: absolute;
    opacity: 0;
}

.sub-label {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
}

.sub-option input:checked+.sub-label {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.sub-option:hover .sub-label {
    color: rgba(255, 255, 255, 0.8);
}

.version-sub-selection .divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

/* Purchase Section for e-Book */
.purchase-section {
    margin-top: 2rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.purchase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--light), transparent);
    opacity: 0.3;
}

.price-container {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.price-label {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.5;
}

.price-value {
    font-family: 'EB Garamond', serif;
    font-size: 2.5rem;
    font-weight: 500;
}

.acquire-btn-large {
    background: var(--light);
    color: var(--void);
    border: none;
    padding: 1.2rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.acquire-btn-large:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.2);
    letter-spacing: 0.4em;
}

.license-note {
    font-size: 0.9rem !important;
    text-align: center;
    opacity: 0.4;
    font-style: italic;
    margin: 0;
}

.subtitle-line {
    display: block;
    font-size: 0.8em;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

.edition-type {
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    font-size: 2rem;
    opacity: 0.6;
    display: block;
    margin-top: 0.5rem;
}

/* --- LIGHTBOX STYLES --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.lightbox.visible {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    font-family: 'Cinzel', serif;
    line-height: 1;
    z-index: 10002;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 2rem;
    z-index: 10001;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

.lightbox-prev {
    left: 0;
}

.lightbox-next {
    right: 0;
}

.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE DESIGN --- */

/* Tablets & Small Laptops */
@media (max-width: 1024px) {
    .main-title {
        font-size: clamp(2rem, 6vw, 7rem);
    }

    .product-gallery {
        gap: 2rem;
    }

    .verse-text {
        font-size: clamp(1.5rem, 4vw, 4rem);
    }
}

/* Mobile Devices */
@media (max-width: 768px) {

    /* Hide custom cursor on touch devices completely */
    .custom-cursor {
        display: none !important;
    }


    /* Adjust typography */
    p {
        font-size: 1.1rem;
    }

    .main-title {
        font-size: 12vw;
        /* Ensure it fits width */
        white-space: normal;
        /* Allow wrap */
        line-height: 1.2;
    }

    /* Ensure "The Word" breaks nicely if needed */
    .the-word {
        display: inline-block;
        font-size: 1.2em;
    }

    .intro-section {
        padding: 1rem;
    }

    .scripture-section {
        padding: 1rem;
    }

    .verse-container {
        padding: 0 1rem;
    }

    /* Stack products vertically with safe breathing room */
    .product-gallery {
        flex-direction: column;
        align-items: center;
        margin-top: 2rem;
        gap: 3rem;
    }

    .product-card {
        width: 100%;
        max-width: 320px;
        padding: 1rem;
    }

    /* Adjust interactive text size */
    .interactive-phrase {
        font-size: 1.5rem;
        margin: 2rem 0;
    }

    /* Disable complex shake animations on mobile if they cause performance issues, 
       but keeping them for now as they are CSS transform based */
}

/* Purchase Section Responsiveness */
@media (max-width: 768px) {
    .product-showcase {
        flex-direction: column !important;
        gap: 2rem !important;
    }

    .product-image-container,
    .product-details {
        width: 100%;
        max-width: 100%;
    }

    .purchase-section {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .language-selection {
        gap: 1rem;
    }

    .lang-label,
    .sub-label {
        font-size: 0.9rem;
        /* Slightly smaller for tight spaces */
    }

    .cover-selection {
        flex-direction: column;
        /* Stack cover options on very small screens? No, Row is usually fine but let's be safe */
        gap: 1rem;
    }

    /* Actually let's keep cover selection row-based but wrap if needed */
    .cover-selection {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .price-value {
        font-size: 2rem;
    }

    .acquire-btn-large {
        font-size: 0.9rem;
        padding: 1rem;
    }

    .carousel-container {
        pointer-events: auto;
        /* Ensure touch works */
    }

    .product-title {
        font-size: 2rem;
        line-height: 1.2;
        text-align: center;
    }

    .edition-type {
        display: block;
        margin-left: 0;
        margin-top: 0.5rem;
        font-size: 1.5rem;
    }

    /* Ensure carousel arrows are always visible on mobile */
    .carousel-prev,
    .carousel-next {
        opacity: 1 !important;
        background: rgba(0, 0, 0, 0.3);
        /* Subtle backdrop for visibility */
    }

    /* Tactile feedback for mobile (replace hover) */
    .acquire-btn-large:active,
    .acquire-btn-large:hover,
    .acquire-btn-large:focus {
        background: #fff;
        color: #000 !important;
        transform: scale(0.98);
        box-shadow: 0 5px 15px rgba(255, 255, 255, 0.15);
    }

    /* Fix Product Cards: Maintain visibility of button without hover */
    .product-card .acquire-btn {
        opacity: 1 !important;
        margin-top: 1rem;
        background: rgba(0, 0, 0, 0.5);
        /* Darker background for better white text contrast */
        border-color: rgba(255, 255, 255, 0.6);
        color: #fff !important;
        transition: all 0.2s ease;
    }

    /* Ensure text turns BLACK if the button enters a hover/active state (White BG) */
    .product-card .acquire-btn:hover,
    .product-card .acquire-btn:active,
    .product-card .acquire-btn:focus {
        background: #fff !important;
        color: #000 !important;
        border-color: #fff !important;
        opacity: 1 !important;
    }

    .product-info {
        opacity: 1 !important;
        transform: none !important;
    }

    .product-image {
        transform: scale(1.05);
        filter: grayscale(0%) brightness(0.6);
    }
}

/* GLOBAL TOUCH/TABLET FIXES (Up to 1024px) */
@media (max-width: 1024px) {

    /* Hide custom cursor on tablet devices */
    .custom-cursor {
        display: none !important;
    }

    /* 1. Ensure Acquire Buttons have High Contrast on Interaction */
    .acquire-btn-large:active,
    .acquire-btn-large:hover,
    .acquire-btn-large:focus {
        background: #fff !important;
        color: #000 !important;
        /* Force Black Text */
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    }

    /* 2. Fix Product Card Buttons (Landing Page) */
    .product-card .acquire-btn {
        opacity: 1 !important;
        /* Always visible */
        background: rgba(0, 0, 0, 0.6) !important;
        /* Dark background for contrast */
        color: #fff !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
    }

    .product-card .acquire-btn:active,
    .product-card .acquire-btn:hover,
    .product-card .acquire-btn:focus {
        background: #fff !important;
        color: #000 !important;
        /* Force Black Text */
        border-color: #fff !important;
    }

    /* 3. Ensure Product Info is Visible */
    .product-info {
        opacity: 1 !important;
        transform: none !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4));
    }
}

/* ========================================
   LET THERE BE LIGHT - INTRO ANIMATION
   ======================================== */

#light-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    pointer-events: none;
    background: #000;
    animation: fadeOverlay 3.5s ease-out forwards;
}

#light-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.9) 20%,
            rgba(255, 255, 255, 0.6) 40%,
            rgba(255, 255, 255, 0.3) 70%,
            rgba(255, 255, 255, 0) 100%);
    animation: lightBlast 3.5s ease-out forwards;
}

@keyframes lightBlast {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1);
    }

    15% {
        width: 300vmax;
        height: 300vmax;
        opacity: 1;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1);
    }

    45% {
        width: 300vmax;
        height: 300vmax;
        opacity: 1;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1);
    }

    85% {
        width: 40px;
        height: 40px;
        opacity: 0.8;
        top: var(--target-y, 50%);
        left: var(--target-x, 50%);
        transform: translate(-50%, -50%) scale(1);
    }

    96% {
        width: 10px;
        height: 10px;
        opacity: 0.4;
        top: var(--target-y, 50%);
        left: var(--target-x, 50%);
        transform: translate(-50%, -50%) scale(0.5);
    }

    100% {
        width: 0;
        height: 0;
        opacity: 0;
        top: var(--target-y, 50%);
        left: var(--target-x, 50%);
        transform: translate(-50%, -50%) scale(0);
    }
}

@keyframes fadeOverlay {

    0%,
    45% {
        background: #000;
    }

    85% {
        background: rgba(0, 0, 0, 0.3);
    }

    100% {
        background: transparent;
    }
}

/* --- APPAREL DESIGN GALLERY --- */
.apparel-gallery-section {
    padding: 8rem 2rem;
    background: linear-gradient(to bottom, #000, #050505);
    position: relative;
}

.gallery-header {
    text-align: center;
    margin-bottom: 5rem;
}

.gallery-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.design-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.design-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.design-card:hover {
    transform: translateY(-15px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.04);
}

.design-card:hover::before {
    opacity: 1;
}

.design-card img {
    width: 100%;
    height: auto;
    filter: brightness(0.7) grayscale(20%);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-bottom: 2rem;
    transform: scale(2.2) translateY(5%);
    transform-origin: center center;
}

.design-card:hover img {
    filter: brightness(1) grayscale(0%);
    transform: scale(2.5) translateY(5%);
}

.design-info {
    position: relative;
    z-index: 1;
}

.design-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.design-info p {
    font-family: 'EB Garamond', serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin: 0;
}

.design-card.active {
    border-color: var(--light);
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .gallery-header h2 {
        font-size: 2rem;
    }
}

/* --- SITE FOOTER --- */
.site-footer {
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 1rem;
}

.footer-contact,
.footer-address {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0.5rem 0;
}

.footer-copyright {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 1.5rem;
}

/* Sleek Selector Styles */
.sleek-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    margin-top: 1.5rem;
    justify-content: flex-start;
}

.selector-option {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    position: relative;
    transition: all 0.4s ease;
}

.selector-option:hover {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.selector-option.active {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.selector-option::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0.8;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.selector-option.active::after {
    width: 100%;
}

@media (max-width: 480px) {
    .sleek-selector {
        gap: 1.5rem 1.5rem;
    }

    .selector-option {
        font-size: 0.8rem;
    }
}