/* ================================================================
   1. IMPORTS & RESET
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cormorant+Garamond:wght@300;400;600;700&family=Playfair+Display:wght@400;700;900&family=Special+Elite&display=swap');

/* ================================================================
   2. CSS VARIABLES
   ================================================================ */
:root {
    /* ---- Noir Colors ---- */
    --noir-black: #0a0505;
    --noir-dark: #1a0a0a;
    --noir-brown: #2c1810;
    --noir-wood: #3d2317;
    --noir-warm: #4a2a1a;
    
    /* ---- Gold Accents ---- */
    --gold-light: #e8d5b5;
    --gold-mid: #c9a84c;
    --gold-dark: #a8892e;
    --gold-shadow: rgba(201, 168, 76, 0.3);
    --gold-glow: rgba(201, 168, 76, 0.5);
    
    /* ---- Fire Elements ---- */
    --fire-red: #ff4500;
    --fire-orange: #ff6a00;
    --fire-yellow: #ffb300;
    --fire-glow: rgba(255, 69, 0, 0.4);
    
    /* ---- Text Colors ---- */
    --text-cream: #f5ede3;
    --text-warm: #e8d5b5;
    --text-muted: #a08070;
    
    /* ---- Shadows ---- */
    --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.8);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 0 40px rgba(201, 168, 76, 0.2);
    
    /* ---- Typography ---- */
    --font-cinzel: 'Cinzel Decorative', serif;
    --font-cormorant: 'Cormorant Garamond', serif;
    --font-playfair: 'Playfair Display', serif;
    --font-special: 'Special Elite', cursive;
    
    /* ---- Transitions ---- */
    --transition-smooth: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-bounce: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-cormorant);
    background: var(--noir-black);
    color: var(--text-cream);
    overflow-x: hidden;
    min-height: 100vh;
    cursor: default;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ================================================================
   3. SCROLLBAR STYLING
   ================================================================ */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--noir-black);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-mid);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* ================================================================
   4. PRELOADER
   ================================================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--noir-black);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-content {
    text-align: center;
}
.magnifying-glass {
    font-size: 4rem;
    color: var(--gold-mid);
    animation: magnifyPulse 1.5s ease-in-out infinite;
}
@keyframes magnifyPulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(15deg); opacity: 0.5; }
}
.preloader-text {
    font-family: var(--font-special);
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}
.preloader-bar {
    width: 200px;
    height: 2px;
    background: rgba(201, 168, 76, 0.2);
    margin: 1rem auto 0;
    border-radius: 2px;
    overflow: hidden;
}
.preloader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-mid), var(--gold-light));
    border-radius: 2px;
    /* Realistic asset-driven progress is set inline via JS (initPreloader),
       so we remove the fixed CSS keyframe animation to avoid fighting. */
    animation: none;
}
.preloader-percent {
    font-family: var(--font-special);
    color: var(--gold-mid);
    font-size: 1rem;
    margin-top: 0.75rem;
    letter-spacing: 3px;
    text-shadow: 0 0 18px rgba(201, 168, 76, 0.4);
}
@keyframes preloaderProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ================================================================
   5. SPLASH SCREEN
   ================================================================ */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    transition: opacity 1.5s ease, visibility 1.5s ease;
}
.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
/* ---- Ambient Backdrop (softened copy of the door photo, full-bleed) ---- */
.splash-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(0.35) saturate(0.85);
    transform: scale(1.1);
}

/* ---- Door Stage: the real photographic door, large & immersive ---- */
.splash-stage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-height: 100%;
    perspective: 2500px;
    cursor: pointer;
    z-index: 2;
    border-radius: 6px;
    overflow: hidden;
    box-shadow:
        0 40px 120px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(201, 168, 76, 0.25),
        0 0 60px rgba(201, 168, 76, 0.08);
    transform-style: preserve-3d;
}
.splash-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform-origin: left center;
    will-change: transform;
}
.splash-photo-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 45%, rgba(10, 5, 5, 0.55) 100%);
    pointer-events: none;
}
.splash-photo-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255,255,255,0.06) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.25) 100%);
    pointer-events: none;
}
.splash-caption {
    position: absolute;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-special);
    color: var(--gold-mid);
    font-size: 0.85rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    opacity: 0.85;
    z-index: 3;
}
@media (max-width: 768px) {
    .splash-stage { width: 92vw; height: 76vh; border-radius: 4px; }
    .splash-caption { font-size: 0.65rem; letter-spacing: 5px; bottom: 5%; }
}
@media (max-width: 480px) {
    .splash-stage { width: 94vw; height: 68vh; }
}

/* ---- Enter Prompt ---- */
.enter-prompt {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    cursor: pointer;
    animation: promptFloat 2s ease-in-out infinite;
}
.prompt-text {
    font-family: var(--font-special);
    color: var(--gold-mid);
    font-size: 1rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    display: block;
    text-shadow: 0 0 30px rgba(201, 168, 76, 0.3);
}
.prompt-icon {
    display: block;
    margin-top: 8px;
    color: var(--gold-mid);
    font-size: 1.5rem;
    animation: promptBounce 1.5s ease-in-out infinite;
}
@keyframes promptFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}
@keyframes promptBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.5; }
}

/* ---- Ambient Particles ---- */
.ambient-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.ambient-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(201, 168, 76, 0.3);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}
@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ================================================================
   6. LOGO REVEAL
   ================================================================ */
.logo-reveal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9997;
    background: rgba(10, 5, 5, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(20px);
    /* Fade/visibility are controlled by the .active toggle so the overlay
       exits smoothly (like .splash-screen) instead of cutting out. Keep
       display:flex at all times; only opacity/visibility flip. */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.logo-reveal.active {
    opacity: 1;
    visibility: visible;
}
.logo-reveal-content {
    text-align: center;
    max-width: 800px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 40px;
    scrollbar-width: none;
    will-change: transform, opacity;
}
.logo-reveal-content::-webkit-scrollbar { display: none; }
/* Entrance / exit of the inner logo content. Entry is keyed to .active;
   the exit keyframe (logoRevealOut) plays when .active is removed. GSAP
   (main.js) coordinates these precisely — the keyframes are the declarative
   fallback for smooth fade/scale control. */
.logo-reveal.active .logo-reveal-content {
    animation: logoRevealIn 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.logo-reveal:not(.active) .logo-reveal-content {
    animation: logoRevealOut 0.7s ease-in forwards;
}
@keyframes logoRevealIn {
    0% { opacity: 0; transform: scale(0.5) rotate(-5deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes logoRevealOut {
    0% { opacity: 1; transform: scale(1) rotate(0deg); }
    100% { opacity: 0; transform: scale(0.9) rotate(3deg); }
}
.logo-image-container {
    margin-bottom: 20px;
    position: relative;
}
.logo-main {
    width: clamp(180px, 32vw, 340px);
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 50px rgba(201, 168, 76, 0.35));
    animation: logoGlow 3s ease-in-out infinite;
}
@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(201, 168, 76, 0.2)); }
    50% { filter: drop-shadow(0 0 60px rgba(201, 168, 76, 0.5)); }
}
.logo-title {
    font-size: clamp(1.9rem, 6vw, 4.5rem);
    color: var(--gold-mid);
    text-shadow: 0 0 40px rgba(201, 168, 76, 0.3);
    letter-spacing: clamp(2px, 1vw, 8px);
}
.logo-subtitle {
    font-size: clamp(1.1rem, 3vw, 2rem);
    color: var(--text-cream);
    font-style: italic;
    letter-spacing: 3px;
    margin-top: 10px;
    opacity: 0.8;
}
.logo-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    gap: 15px;
}
.divider-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-mid), transparent);
}
.logo-divider i {
    color: var(--gold-mid);
    font-size: 1.2rem;
    opacity: 0.5;
}
.logo-tagline {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 2px;
}
@media (max-width: 768px) {
    .logo-tagline { font-size: 1rem; }
}

/* ================================================================
   7. MAIN WEBSITE
   ================================================================ */
.main-website {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: var(--noir-black);
}

/* ---- Office Background ---- */
.office-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.office-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}
.office-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(10, 5, 5, 0.7) 100%);
    pointer-events: none;
}
.film-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}
.office-shadow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(0deg, rgba(10, 5, 5, 0.8) 0%, transparent 100%);
    pointer-events: none;
}

/* ---- Particles Container (2D canvas fallback) ---- */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ---- WebGL Ambient Embers Layer ----
   Fixed full-screen. z-index 1 keeps it ABOVE the opaque office photo (like
   the 2D canvas fallback) so the embers are actually visible, yet it stays
   BELOW the interactive layers (content-area z5, hotspots/nav z10+). It never
   captures pointer events, so it can't block clicks on hotspots / links. */
.webgl-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.webgl-layer canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ================================================================
   8. NAVIGATION
   ================================================================ */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 15px 0;
    background: rgba(10, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    transition: var(--transition-smooth);
    transform: translateY(-100%);
}
.main-nav.visible {
    transform: translateY(0);
}
.main-nav.scrolled {
    background: rgba(10, 5, 5, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ---- Nav Logo ---- */
.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.nav-logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    margin: 0;
    filter: drop-shadow(0 0 16px rgba(201, 168, 76, 0.25));
    transition: var(--transition-smooth);
}
.nav-logo:hover .nav-logo-img {
    filter: drop-shadow(0 0 26px rgba(201, 168, 76, 0.45));
    transform: scale(1.04);
}
@media (max-width: 576px) {
    .nav-logo-img { height: 44px; }
}

/* ---- Nav Menu ---- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}
.nav-item {
    position: relative;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: var(--font-cormorant);
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    border-radius: 4px;
    position: relative;
}
.nav-link i {
    font-size: 0.9rem;
    opacity: 0.6;
}
.nav-link:hover,
.nav-link.active {
    color: var(--gold-mid);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-mid), transparent);
    transition: var(--transition-smooth);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}
@media (max-width: 992px) {
    .nav-link span { display: none; }
    .nav-link i { font-size: 1.2rem; opacity: 1; }
    .nav-link { padding: 10px 14px; }
}

/* ---- Nav Cart ---- */
.nav-cart {
    position: relative;
    cursor: pointer;
    padding: 10px 15px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.nav-cart:hover {
    color: var(--gold-mid);
}
.nav-cart i {
    font-size: 1.3rem;
}
.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--fire-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-cinzel);
}

/* ---- Mobile Toggle ---- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}
.nav-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text-cream);
    transition: var(--transition-smooth);
    transform-origin: center;
}
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
@media (max-width: 768px) {
    /* Mobile layout: toggler on the LEFT, logo CENTRE, cart on the RIGHT.
       The logo is absolutely centred so it stays perfectly middle regardless
       of the side items' widths; the fixed-dropdown menu is pulled out of
       flow. The cart keeps its natural width so its count badge stays pinned
       to the cart icon. */
    .nav-container {
        position: relative;
        justify-content: flex-start;
    }
    .nav-toggle {
        display: flex;
        order: 1;
        justify-content: flex-start;
    }
    .nav-logo {
        order: 2;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        justify-content: center;
    }
    .nav-cart {
        order: 3;
        margin-left: auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    .nav-menu {
        order: 4;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 5px;
        transform: translateY(-120%);
        transition: var(--transition-smooth);
        border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    }
    .nav-menu.active {
        transform: translateY(0);
    }
    .nav-link {
        width: 100%;
        padding: 15px 20px;
        justify-content: center;
    }
    .nav-link span { display: inline; }
    .nav-link i { display: none; }
}

/* ================================================================
   9. OFFICE SCENE
   ================================================================ */
.office-scene {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    padding-top: 80px;
}

/* ---- Hotspots Layer ----
   Fixed to the viewport (not the office-scene flow) so hotspot position
   never drifts when content-area grows taller, and so the whole layer
   can be hidden as one unit whenever a content page is open. */
.hotspots-layer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.main-website.is-page .hotspots-layer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
/* ---- Floating "Back to Office" button ----
   Fixed to the bottom-right of the viewport. Hidden on the home/office
   page and revealed whenever any other section page is open. */
.back-to-office {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: rgba(26, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 40px;
    color: var(--gold-mid);
    font-family: var(--font-cormorant);
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(201, 168, 76, 0.15);
    transition: var(--transition-smooth);
}
.back-to-office i {
    font-size: 1.15rem;
}
.back-to-office:hover,
.back-to-office:focus-visible {
    background: rgba(58, 35, 23, 0.95);
    color: #fff;
    border-color: var(--gold-light);
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.35);
    transform: translateY(-3px);
}
@keyframes backToOfficePulse {
    0%, 100% { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(201, 168, 76, 0.15); }
    50%      { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 40px rgba(201, 168, 76, 0.35); }
}
.main-website.is-page .back-to-office {
    display: flex;
    animation: backToOfficePulse 2.5s ease-in-out infinite;
}
@media (max-width: 600px) {
    .back-to-office { right: 16px; bottom: 16px; padding: 12px 16px; }
    .back-to-office span { display: none; }
}
.hotspot {
    position: absolute;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    user-select: none;
    pointer-events: auto;
}
.hotspot:focus-visible .hotspot-image {
    border-color: var(--gold-mid);
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.3);
}
.hotspot::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
    transition: var(--transition-smooth);
    pointer-events: none;
}
.hotspot:hover::before {
    background: radial-gradient(circle, rgba(201, 168, 76, 0.15) 0%, transparent 70%);
}
.hotspot-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(201, 168, 76, 0.3);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}
.hotspot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.hotspot:hover .hotspot-image {
    border-color: var(--gold-mid);
    box-shadow: 0 0 50px rgba(201, 168, 76, 0.3);
}
.hotspot:hover .hotspot-image img {
    transform: scale(1.05);
}

/* ---- Hotspot Glow ---- */
.hotspot-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 2s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* ---- Hotspot Ring ---- */
.hotspot-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.1);
    pointer-events: none;
    animation: ringRotate 10s linear infinite;
}
@keyframes ringRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
.hotspot-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.2);
    animation: pulseExpand 2s ease-out infinite;
}
@keyframes pulseExpand {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* ---- Hotspot Label ---- */
.hotspot-label {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-family: var(--font-cinzel);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    transition: var(--transition-smooth);
}
.hotspot-label i {
    display: block;
    font-size: 1.2rem;
    color: var(--gold-mid);
    margin-bottom: 4px;
    opacity: 0.6;
}
.hotspot-hint {
    display: block;
    font-family: var(--font-special);
    font-size: 0.6rem;
    color: var(--gold-mid);
    letter-spacing: 1px;
    margin-top: 2px;
    opacity: 0.5;
}
.hotspot:hover .hotspot-label {
    color: var(--gold-mid);
}
.hotspot:hover .hotspot-label i {
    opacity: 1;
}

/* ---- Hotspot Tooltip ---- */
.hotspot-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(10, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 4px;
    font-family: var(--font-special);
    font-size: 0.8rem;
    color: var(--gold-mid);
    border: 1px solid rgba(201, 168, 76, 0.2);
    white-space: nowrap;
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}
.hotspot-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(201, 168, 76, 0.2);
}
.hotspot:hover .hotspot-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-15px);
}

/* ---- Hotspot Positions ---- */
.hotspot-coatrack {
    top: 35%;
    left: 10%;
}
.hotspot-desk {
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
}
.hotspot-bookshelf {
    top: 35%;
    right: 10%;
}

/* ---- Hotspot Mobile Adjustments ---- */
@media (max-width: 992px) {
    .hotspot-image { width: 90px; height: 90px; }
    .hotspot-glow { width: 140px; height: 140px; }
    .hotspot-ring { width: 120px; height: 120px; }
    .hotspot-label { font-size: 0.6rem; bottom: -38px; }
    .hotspot-coatrack { top: 30%; left: 5%; }
    .hotspot-bookshelf { top: 30%; right: 5%; }
    .hotspot-desk { bottom: 25%; }
}
@media (max-width: 768px) {
    .hotspot-image { width: 70px; height: 70px; }
    .hotspot-glow { width: 100px; height: 100px; }
    .hotspot-ring { width: 90px; height: 90px; }
    .hotspot-label { font-size: 0.5rem; bottom: -32px; }
    .hotspot-label i { font-size: 0.9rem; }
    .hotspot-coatrack { top: 25%; left: 3%; }
    .hotspot-bookshelf { top: 25%; right: 3%; }
    .hotspot-desk { bottom: 20%; }
    .hotspot-tooltip { display: none; }
}
@media (max-width: 480px) {
    .hotspot-image { width: 55px; height: 55px; border-width: 2px; }
    .hotspot-glow { width: 80px; height: 80px; }
    .hotspot-ring { width: 70px; height: 70px; }
    .hotspot-label { font-size: 0.4rem; bottom: -28px; }
    .hotspot-label i { font-size: 0.7rem; }
    .hotspot-coatrack { top: 20%; left: 2%; }
    .hotspot-bookshelf { top: 20%; right: 2%; }
    .hotspot-desk { bottom: 15%; }
}

/* ================================================================
   10. CONTENT AREA
   ================================================================ */
.content-area {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    padding: 120px 30px 80px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}
@media (max-width: 768px) {
    .content-area { padding: 100px 20px 60px; }
}
.content-section {
    display: none;
    /* Cinematic section switching is driven by GSAP (main.js) with an
       isAnimating lock; the legacy CSS animation is disabled so the two
       never fight over opacity/transform. */
    animation: none;
}
.content-section.active {
    display: block;
}
@keyframes sectionFadeIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ---- Page Panel ----
   Every section except Home gets its own solid "page" card so it never
   visually blends or overlaps with the office photo behind it. */
.page-panel {
    background: rgba(10, 5, 5, 0.86);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(201, 168, 76, 0.14);
    border-radius: 16px;
    padding: 60px 50px;
    box-shadow: var(--shadow-deep);
}
@media (max-width: 768px) {
    .page-panel { padding: 40px 22px; border-radius: 10px; }
}

/* When any content page (not Home) is open: dim the office photo further
   and lock scroll to the content panel so it reads as a dedicated page. */
.main-website.is-page .office-image {
    opacity: 0.2;
    transition: opacity 0.6s ease;
}
.main-website.is-page .office-vignette {
    background: rgba(10, 5, 5, 0.9);
}
.main-website.is-home .office-image {
    opacity: 1;
    transition: opacity 0.6s ease;
}

/* ---- Section Header ---- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-title {
    font-size: 3.5rem;
    color: var(--gold-mid);
    text-shadow: 0 0 40px rgba(201, 168, 76, 0.2);
    letter-spacing: 3px;
}
.section-title i {
    font-size: 2.5rem;
    margin-right: 15px;
    opacity: 0.6;
}
@media (max-width: 768px) {
    .section-title { font-size: 2.5rem; }
    .section-title i { font-size: 1.8rem; }
}
.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 10px;
    letter-spacing: 1px;
}
@media (max-width: 768px) {
    .section-subtitle { font-size: 1rem; }
}

/* ---- Home Content ---- */
.home-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: auto;
    text-align: center;
}
.home-welcome {
    max-width: 680px;
    background: rgba(10, 5, 5, 0.5);
    backdrop-filter: blur(10px);
    padding: 30px 40px 34px;
    border-radius: 16px;
    border: 1px solid rgba(201, 168, 76, 0.12);
}
@media (max-width: 768px) {
    .home-welcome { padding: 22px 20px 26px; }
}
.home-welcome .section-title {
    font-size: 4rem;
}
.home-welcome .section-subtitle {
    font-size: 1.6rem;
    margin-top: 15px;
}
.home-instructions {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.instruction-item {
    font-family: var(--font-special);
    color: var(--text-muted);
    font-size: 1.1rem;
    letter-spacing: 1px;
}
.instruction-item i {
    color: var(--gold-mid);
    margin-right: 12px;
    width: 25px;
    text-align: center;
    opacity: 0.6;
}
@media (max-width: 768px) {
    .home-welcome .section-title { font-size: 2.8rem; }
    .home-welcome .section-subtitle { font-size: 1.2rem; }
    .instruction-item { font-size: 0.9rem; }
}

/* ---- Home 2-Column Row (text left, hotspot list right) ---- */
.home-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
}
.home-col { min-width: 0; }
.home-col-text { text-align: center; }
.home-col-list { text-align: left; }
@media (max-width: 992px) {
    .home-row { grid-template-columns: 1fr; gap: 34px; }
}

/* ---- Hotspot converted into a boxed list ---- */
.hotspot-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.list-box {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    background: rgba(10, 5, 5, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 14px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition-smooth);
}
.list-box-image {
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(201, 168, 76, 0.25);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}
.list-box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.list-box-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.list-box-label {
    font-family: var(--font-cinzel);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-warm);
}
.list-box-label i {
    color: var(--gold-mid);
    margin-right: 10px;
    opacity: 0.6;
}
.list-box-hint {
    font-family: var(--font-special);
    font-size: 0.85rem;
    color: var(--gold-mid);
    letter-spacing: 1px;
    opacity: 0.75;
}
.list-box:hover {
    border-color: var(--gold-mid);
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.25);
    transform: translateY(-2px);
}
.list-box:hover .list-box-image { border-color: var(--gold-mid); }
.list-box:hover .list-box-image img { transform: scale(1.06); }
.list-box:hover .list-box-label { color: var(--gold-mid); }
.list-box:hover .list-box-label i { opacity: 1; }
.list-box:focus-visible .list-box-image {
    border-color: var(--gold-mid);
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.3);
}
@media (max-width: 768px) {
    .list-box-image { width: 64px; height: 64px; flex-basis: 64px; }
    .list-box-label { font-size: 0.95rem; }
    .list-box-hint { font-size: 0.75rem; }
}

/* ---- Characters Section ---- */
.characters-container {
    max-width: 1200px;
    margin: 0 auto;
}
.characters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 0 40px;
}
.character-card {
    text-align: center;
    padding: 20px;
    background: rgba(26, 10, 10, 0.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: 16px;
    transition: var(--transition-smooth);
}
.character-card:hover {
    border-color: rgba(201, 168, 76, 0.35);
    transform: translateY(-6px);
}
.character-card-image {
    width: 250px;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid rgba(201, 168, 76, 0.3);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}
.character-card-image:hover {
    border-color: var(--gold-mid);
    box-shadow: 0 0 60px rgba(201, 168, 76, 0.3);
}
.character-card-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
.character-card-name {
    font-family: var(--font-cinzel);
    font-size: 1.5rem;
    color: var(--gold-mid);
    letter-spacing: 2px;
}
.character-card-description {
    font-family: var(--font-cormorant);
    color: var(--text-muted);
    font-size: 1.02rem;
    margin: 10px auto 0;
    font-style: italic;
}
@media (max-width: 992px) {
    .characters-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .characters-grid { grid-template-columns: 1fr; gap: 28px; }
    .character-card-image { width: 180px; }
    .character-card-name { font-size: 1.2rem; }
    .character-card-description { font-size: 0.9rem; }
}

/* ---- Book Grid ---- */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .book-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 25px; }
}
@media (max-width: 480px) {
    .book-grid { grid-template-columns: 1fr; }
}

.book-card {
    background: rgba(26, 10, 10, 0.8);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}
.book-card:hover {
    transform: translateY(-10px);
    border-color: rgba(201, 168, 76, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(201, 168, 76, 0.05);
}
.book-card-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
}
.book-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.book-card:hover .book-card-image img {
    transform: scale(1.05);
}
.book-card-image .book-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold-mid);
    color: var(--noir-black);
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-cinzel);
    font-size: 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}
.book-card-content {
    padding: 20px 25px 25px;
}
.book-card-title {
    font-family: var(--font-playfair);
    font-size: 1.3rem;
    color: var(--text-cream);
    letter-spacing: 0.5px;
}
.book-card-excerpt {
    font-family: var(--font-cormorant);
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 8px 0 15px;
    line-height: 1.6;
}
.book-card-price {
    font-family: var(--font-cinzel);
    color: var(--gold-mid);
    font-size: 1.2rem;
    letter-spacing: 1px;
}
.book-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.book-card-actions .btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-cinzel);
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}
.btn-read {
    background: transparent;
    color: var(--text-cream);
    border: 1px solid rgba(201, 168, 76, 0.3);
}
.btn-read:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--gold-mid);
}
.btn-buy {
    background: var(--gold-mid);
    color: var(--noir-black);
    border: 1px solid var(--gold-mid);
}
.btn-buy:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.3);
}

/* ---- Shop Grid ---- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .shop-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 480px) {
    .shop-grid { grid-template-columns: 1fr; }
}

/* ---- About Section ---- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}
@media (max-width: 768px) {
    .about-content { grid-template-columns: 1fr; gap: 30px; text-align: center; }
}
.about-image {
    position: relative;
}
.about-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 8px;
    border: 3px solid rgba(201, 168, 76, 0.2);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
}
.about-name {
    font-size: 2.5rem;
    color: var(--gold-mid);
    letter-spacing: 3px;
}
.about-bio {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 15px 0;
}
.about-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-start;
}
@media (max-width: 768px) {
    .about-social { justify-content: center; }
}
.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}
.social-link:hover {
    border-color: var(--gold-mid);
    color: var(--gold-mid);
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.2);
    transform: translateY(-3px);
}

/* ---- Contact Section ---- */
.contact-content {
    max-width: 700px;
    margin: 0 auto;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-family: var(--font-special);
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.form-group input,
.form-group textarea {
    padding: 14px 18px;
    background: rgba(26, 10, 10, 0.8);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 4px;
    color: var(--text-cream);
    font-family: var(--font-cormorant);
    font-size: 1.05rem;
    transition: var(--transition-smooth);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-mid);
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.05);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.btn-submit {
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-mid));
    border: none;
    border-radius: 4px;
    color: var(--noir-black);
    font-family: var(--font-cinzel);
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(201, 168, 76, 0.3);
}
.btn-submit i {
    font-size: 1.1rem;
}

/* ================================================================
   11. FIRE ANIMATION OVERLAY
   ================================================================ */
.fire-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    pointer-events: none;
    display: none;
    background: radial-gradient(ellipse at 50% 108%, rgba(110, 25, 0, 0.6) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.8) 100%);
}
.fire-overlay.active {
    display: block;
    pointer-events: auto;
}
/* Full-width ASCII fire stage pinned to the bottom of the viewport */
.fire-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 44vh;
    min-height: 300px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

/* ---- Realistic ASCII fire canvas ---- */
.fire-ascii {
    position: relative;
    display: block;
    white-space: pre;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Courier New', Consolas, 'Courier', monospace;
    font-size: 15px;
    line-height: 0.82;
    font-weight: bold;
    letter-spacing: 0;
    color: #ff4500;
    text-shadow: 0 0 7px rgba(255, 68, 0, 0.6);
    mix-blend-mode: screen;
    animation: asciiFlicker 2s ease-in-out infinite;
}
@keyframes asciiFlicker {
    0%, 100% { opacity: 0.92; }
    50%      { opacity: 1; }
}

/* ================================================================
   12. MODAL OVERLAY
   ================================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    background: rgba(10, 5, 5, 0.92);
    /* Blur the office/content behind the modal */
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 30px;
    /* opacity/transform handled by GSAP on open/close */
    visibility: hidden;
    opacity: 0;
}
.modal-overlay.active {
    display: flex;
    visibility: visible;
}
.modal-container {
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    background: rgba(26, 10, 10, 0.97);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), 0 0 60px rgba(201, 168, 76, 0.06);
    visibility: hidden;
    opacity: 0;
}
.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-title {
    font-size: 1.8rem;
    color: var(--gold-mid);
    letter-spacing: 2px;
}
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 5px 10px;
}
.modal-close:hover {
    color: var(--gold-mid);
    transform: rotate(90deg);
}
.modal-body {
    padding: 30px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* ---- Modal gallery (swipe/drag) ---- */
.modal-gallery {
    position: relative;
    margin-bottom: 26px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(201, 168, 76, 0.14);
    background: rgba(0, 0, 0, 0.4);
    user-select: none;
    touch-action: pan-y;
}
.gallery-track {
    display: flex;
    will-change: transform;
    cursor: grab;
}
.gallery-track:active {
    cursor: grabbing;
}
.gallery-slide {
    flex: 0 0 100%;
}
.gallery-slide img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.gallery-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    pointer-events: none;
}
.gallery-arrow {
    pointer-events: auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.4);
    background: rgba(10, 5, 5, 0.55);
    color: var(--gold-light);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    opacity: 0.85;
}
.gallery-arrow:hover {
    background: var(--gold-mid);
    color: var(--noir-black);
    opacity: 1;
}
.gallery-dots {
    display: flex;
    gap: 8px;
    pointer-events: auto;
}
.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(201, 168, 76, 0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
}
.gallery-dot.active {
    background: var(--gold-mid);
    box-shadow: 0 0 10px rgba(201, 168, 76, 0.6);
    transform: scale(1.25);
}
.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 16px 12px;
    background: linear-gradient(to top, rgba(10,5,5,0.85), transparent);
    color: var(--text-cream);
    font-family: var(--font-playfair);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-align: center;
    pointer-events: none;
}

/* ---- Modal details ---- */
.modal-details {
    text-align: center;
}
.modal-details-title {
    font-family: var(--font-playfair);
    color: var(--gold-mid);
    font-size: 1.5rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}
.modal-details-excerpt {
    font-family: var(--font-cormorant);
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}
.modal-details-price {
    font-family: var(--font-cinzel);
    color: var(--gold-mid);
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.modal-details-type {
    font-family: var(--font-special);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ================================================================
   13. FOOTER
   ================================================================ */
.main-footer {
    position: relative;
    z-index: 10;
    background: rgba(10, 5, 5, 0.95);
    border-top: 1px solid rgba(201, 168, 76, 0.05);
    padding: 30px 0;
    margin-top: 60px;
}
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
@media (max-width: 768px) {
    .footer-content { flex-direction: column; text-align: center; }
}
.footer-copyright {
    font-family: var(--font-special);
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 1px;
}
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    font-family: var(--font-special);
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}
.footer-links a:hover {
    color: var(--gold-mid);
}
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}
.footer-social-link:hover {
    border-color: var(--gold-mid);
    color: var(--gold-mid);
    transform: translateY(-3px);
}

/* ================================================================
   14. SWIPER OVERRIDES
   ================================================================ */
.swiper-button-next,
.swiper-button-prev {
    color: var(--gold-mid) !important;
    opacity: 0.5;
    transition: var(--transition-smooth);
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1;
}
.swiper-pagination-bullet {
    background: var(--text-muted) !important;
    opacity: 0.3;
}
.swiper-pagination-bullet-active {
    background: var(--gold-mid) !important;
    opacity: 1;
}

/* ================================================================
   15. UTILITY CLASSES
   ================================================================ */
.cinzel-decorative {
    font-family: var(--font-cinzel);
}
.cormorant-garamond {
    font-family: var(--font-cormorant);
}
.playfair-display {
    font-family: var(--font-playfair);
}
.special-elite {
    font-family: var(--font-special);
}

.text-gold {
    color: var(--gold-mid);
}
.text-muted {
    color: var(--text-muted);
}
.text-cream {
    color: var(--text-cream);
}

/* ================================================================
   16. RESPONSIVE - LARGE SCREENS
   ================================================================ */
@media (min-width: 1400px) {
    .hotspot-image { width: 150px; height: 150px; }
    .hotspot-glow { width: 220px; height: 220px; }
    .hotspot-ring { width: 200px; height: 200px; }
}

/* ================================================================
   17. SELECTION STYLING
   ================================================================ */
::selection {
    background: var(--gold-mid);
    color: var(--noir-black);
}

/* ================================================================
   18. PRINT STYLES
   ================================================================ */
@media print {
    .splash-screen,
    .logo-reveal,
    .fire-overlay,
    .modal-overlay,
    .preloader {
        display: none !important;
    }
    .main-website {
        display: block !important;
    }
    .office-background {
        position: relative !important;
    }
}
/* ================================================================
   28. CUSTOM CURSOR (dot + ring)
   Replaces the native cursor on fine-pointer (mouse) devices only.
   On touch / mobile the elements stay `display:none` and the native
   cursor is untouched — the .has-custom-cursor flag is added by JS.
   ================================================================ */
#custom-cursor-dot,
#custom-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    will-change: transform;
    user-select: none;
    display: none; /* hidden on mobile/touch by default */
}

/* Only shown + activated once JS flags a capable device */
html.has-custom-cursor #custom-cursor-dot,
html.has-custom-cursor #custom-cursor-ring {
    display: block;
    opacity: 0;
    visibility: visible;
}

/* The little quick dot */
#custom-cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--gold-mid);
    box-shadow: 0 0 12px rgba(201, 168, 76, 0.85);
}

/* The trailing outline ring */
#custom-cursor-ring {
    width: 40px;
    height: 40px;
    background: rgba(201, 168, 76, 0.06);
    border: 1.5px solid rgba(201, 168, 76, 0.55);
    transition: width 0.35s ease, height 0.35s ease,
                background-color 0.35s ease, border-color 0.35s ease,
                opacity 0.3s ease;
}

/* Ring grows when hovering an interactive element */
html.has-custom-cursor #custom-cursor-ring.grow {
    width: 62px;
    height: 62px;
    background: rgba(201, 168, 76, 0.16);
    border-color: var(--gold-light);
}

/* Fade in after the first mouse move */
html.has-custom-cursor.is-cursor-visible #custom-cursor-dot,
html.has-custom-cursor.is-cursor-visible #custom-cursor-ring {
    opacity: 1;
}

/* Hide the native cursor ONLY on fine-pointer (non-touch) devices.
   Touch/coarse pointers keep their native cursor. */
@media (hover: hover) and (pointer: fine) {
    html.has-custom-cursor,
    html.has-custom-cursor * {
        cursor: none !important;
    }

    /* While GSAP drives the magnetic pull, disable the element's own
       transform transition so the two never fight / lag. */
    html.has-custom-cursor .cursor-dragging {
        transition: none !important;
    }

    /* Pre-optimise the elements we magnetically translate */
    .book-card,
    .character-card,
    .list-box,
    .hotspot,
    .nav-link,
    .nav-cart,
    .back-to-office,
    .enter-prompt,
    .btn,
    .hotspot-image {
        will-change: transform;
    }
}

/* ================================================================
   29. CINEMATIC SECTION TRANSITION (page-turn wipe)
   A fixed overlay used by main.js GSAP timelines when switching between
   content sections. The dark veil sweeps like a turning page while a thin
   gold bookmark line animates across the middle of the screen.
   ================================================================ */
.cinematic-wipe {
    position: fixed;
    inset: 0;
    z-index: 65;
    pointer-events: none;
    display: none;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}

/* Dark page-turn veil: hidden by default, then swept across via clip-path.
   inset(0 100% 0 0) → covers nothing; inset(0 0% 0 0) → covers everything. */
.cinematic-wipe-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,
        rgba(10, 5, 5, 0.97) 0%,
        rgba(26, 10, 10, 0.93) 45%,
        #0a0505 100%);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.9);
    clip-path: inset(0 100% 0 0);
    will-change: clip-path, opacity;
}

/* Thin animated gold "bookmark" line animating across the middle. */
.cinematic-wipe-line {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0%;
    height: 2px;
    transform: translate(-50%, -50%);
    background: linear-gradient(90deg,
        transparent,
        #c9a84c 25%,
        #e8d5b5 50%,
        #c9a84c 75%,
        transparent);
    box-shadow: 0 0 22px 3px rgba(201, 168, 76, 0.45);
    opacity: 0;
    will-change: width, opacity;
}

@media (max-width: 768px) {
    .cinematic-wipe-line { height: 1.5px; }
}
/* ================================================================
   30. PREMIUM CARD HOVER — BOOK COVERS & CHARACTER CARDS
   ----------------------------------------------------------------
   - 3D perspective tilt is applied to the CARD by card-tilt.js (GSAP,
     max 8deg, transformPerspective). Only the co-opting transform is
     animated by JS; the overlay/label/glow reveals below are pure CSS.
   - A warm amber/gold gradient fades in over the image from the bottom
     while the title/description slide up.
   - A soft gold/amber glow pulses gently on hover.
   ================================================================ */

/* --- Shared: give cards a minimal 3D context so children pop --- */
.card-hover {
    transform-style: preserve-3d;
}

/* --- Book Card overlay + reveal --- */
/* 3D perspective is applied by card-tilt.js via transformPerspective, so we
   do NOT set `perspective` on .book-card here (avoids double perspective). */
/* Warm amber gradient rising from the bottom of the cover */
.book-card-image::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top,
        rgba(255, 106, 0, 0.42) 0%,
        rgba(201, 168, 76, 0.22) 45%,
        rgba(255, 120, 40, 0) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease-out;
    z-index: 2;
}
.book-card.card-hover .book-card-image::after {
    opacity: 1;
}

/* Title slides up over the image on hover */
.book-card-image .book-card-tilt-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    padding: 0 16px;
    color: var(--text-cream);
    font-family: var(--font-playfair);
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
    text-align: left;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.35s ease-out, transform 0.35s ease-out;
    z-index: 3;
    pointer-events: none;
}
.book-card.card-hover .book-card-image .book-card-tilt-title {
    opacity: 1;
    transform: translateY(0);
}

/* Warm gold glow pulsing on the whole card */
.book-card,
.character-card {
    will-change: transform;
}
.book-card.card-hover,
.character-card.card-hover {
    animation: cardGoldPulse 1.8s ease-in-out infinite;
    border-color: rgba(201, 168, 76, 0.55);
}
.book-card.card-hover {
    animation-name: cardGoldPulseBook;
}
.character-card.card-hover {
    animation-name: cardGoldPulseCharacter;
}

@keyframes cardGoldPulseBook {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
                     0 0 26px rgba(255, 106, 0, 0.20),
                     0 0 55px rgba(201, 168, 76, 0.18);
    }
    50% {
        box-shadow: 0 20px 70px rgba(0, 0, 0, 0.65),
                     0 0 40px rgba(255, 138, 30, 0.40),
                     0 0 85px rgba(201, 168, 76, 0.35);
    }
}
@keyframes cardGoldPulseCharacter {
    0%, 100% {
        box-shadow: 0 0 26px rgba(255, 106, 0, 0.18),
                     0 0 50px rgba(201, 168, 76, 0.15);
    }
    50% {
        box-shadow: 0 0 44px rgba(255, 138, 30, 0.40),
                     0 0 80px rgba(201, 168, 76, 0.32);
    }
}

/* --- Character card image glow ring --- */
.character-card.card-hover .character-card-image {
    border-color: var(--gold-light);
    box-shadow: 0 0 60px rgba(201, 168, 76, 0.35);
}

/* --- Character card name highlight --- */
.character-card.card-hover .character-card-name {
    color: var(--gold-light);
    text-shadow: 0 0 18px rgba(201, 168, 76, 0.5);
}

/* --- Character description gently slides up on hover --- */
.character-card .character-card-description {
    transform: translateY(6px);
    opacity: 0.92;
    transition: transform 0.35s ease-out, opacity 0.35s ease-out;
}
.character-card.card-hover .character-card-description {
    transform: translateY(0);
    opacity: 1;
    color: var(--text-cream);
}

@media (hover: none), (pointer: coarse) {
    .book-card.card-hover .book-card-image::after,
    .book-card.card-hover .book-card-image .book-card-tilt-title {
        opacity: 1;
        transform: none;
    }
    .character-card.card-hover .character-card-image {
        border-color: rgba(201, 168, 76, 0.3);
    }
}
/* ================================================================
   31. ANIMATED HEADINGS (SplitType chars)
   SplitType wraps each character in <span class="char">. Making them
   inline-block is what lets GSAP translate them for the staggered
   "ink writing" reveal. Words get .word wrappers too (kept, but only
   chars are animated).
   ================================================================ */
.section-title .char,
.logo-title .char,
.logo-subtitle .char {
    display: inline-block;
    will-change: transform, opacity;
    transform-origin: 50% 100%; /* rise from the baseline like ink */
    backface-visibility: hidden;
}

/* Preserve natural word spacing while letters are inline-blocks. */
.section-title .word,
.logo-title .word,
.logo-subtitle .word {
    display: inline-block;
    white-space: nowrap;
}
/* ================================================================
   32. CANDLE LIGHT FLICKER (logo reveal)
   Animated SVG flame + halo used on the logo reveal overlay. The
   .lit class is added by main.js when the logo reveal fires.
   ================================================================ */
.candle-flicker {
    display: inline-block;
    margin: 16px auto 6px;
    position: relative;
    opacity: 0.85;
}
.candle-flicker .candle-glow {
    opacity: 0.35;
    transform-origin: 50% 50%;
    animation: candleGlowPulse 2.4s ease-in-out infinite;
}
.candle-flicker .candle-flame {
    transform-origin: 60px 40px;
    animation: candleFlicker 0.9s ease-in-out infinite alternate;
}
.candle-flicker .candle-flame path {
    animation: candleHue 2.1s ease-in-out infinite alternate;
}
.candle-flicker .candle-wax-drip {
    stroke-dasharray: 12;
    stroke-dashoffset: 12;
}
.candle-flicker.lit .candle-wax-drip {
    animation: waxDrip 1.6s ease-in-out infinite;
}

@keyframes candleFlicker {
    0%   { transform: scaleY(1) scaleX(1) translateY(0); }
    25%  { transform: scaleY(1.06) scaleX(0.96) translateY(-1px); }
    50%  { transform: scaleY(0.94) scaleX(1.02) translateY(1px); }
    75%  { transform: scaleY(1.04) scaleX(0.97) translateY(0); }
    100% { transform: scaleY(0.97) scaleX(1.01) translateY(1px); }
}
@keyframes candleHue {
    0%   { fill: #ffd35c; }
    100% { fill: #ffb300; }
}
@keyframes candleGlowPulse {
    0%, 100% { opacity: 0.25; }
    50%      { opacity: 0.55; }
}
@keyframes waxDrip {
    0%   { stroke-dashoffset: 12; }
    60%  { stroke-dashoffset: 4; }
    100% { stroke-dashoffset: 12; }
}

/* ================================================================
   33. TRANSITION WIPE (office door opening)
   Full-screen curtain used when the logo reveal hands off to the
   main office scene. Left/right panels sweep in, a door photograph
   frames the "open doorway", then the panels part to reveal the
   office. Driven by GSAP (main.js playDoorWipe); .active provides a
   no-GSAP fallback state.
   ================================================================ */
.transition-wipe {
    position: fixed;
    inset: 0;
    /* Above the logo reveal (9997) but below the preloader (99999), so the
       wipe can layer over the logo hand-off while nothing opaque blocks it. */
    z-index: 9998;
    display: none;
    pointer-events: none;
    overflow: hidden;
}
.transition-wipe .wipe-left,
.transition-wipe .wipe-right {
    position: absolute;
    top: 0;
    height: 100%;
    width: 55%;
    background: linear-gradient(90deg, #0a0505 0%, #1a0a0a 100%);
}
.transition-wipe .wipe-left {
    left: 0;
    border-right: 1px solid rgba(201, 168, 76, 0.18);
}
.transition-wipe .wipe-right {
    right: 0;
    border-left: 1px solid rgba(201, 168, 76, 0.18);
}
.transition-wipe .wipe-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 2px;
    transform: translate(-50%, -50%) scaleX(0);
    background: linear-gradient(90deg, transparent, #c9a84c, #e8d5b5, #c9a84c, transparent);
    box-shadow: 0 0 30px 4px rgba(201, 168, 76, 0.5);
    z-index: 4;
    opacity: 0;
}
/* No-GSAP fallback: show everything, then hide. */
.transition-wipe.active .wipe-left { transform: translateX(-55%); }
.transition-wipe.active .wipe-right { transform: translateX(55%); }
.transition-wipe.active .wipe-line { transform: translate(-50%, -50%) scaleX(1); opacity: 1; }

@media print {
    .transition-wipe,
    .candle-flicker { display: none !important; }
}

/* The icon inside a section title stays put while its letters animate. */
.section-title i {
    display: inline-block;
    vertical-align: middle;
}