/* Default Variables (Paper/Standard) */
:root {
    --lux-gold: #ceb086;
    --lux-paper: #edede8;
    --lux-ink: #1d2a25;
    --lux-forest: #31443c;
    --lux-burgundy: #481e28;
    --lux-burgundy-light: #895866;
    --lux-sage: #afcec0;

    --bg-paper: var(--lux-paper);
    --bg-paper-dark: #e4e4df;
    --text-ink: var(--lux-ink);
    --text-muted: #6b7280;
    --accent-gold: var(--lux-gold);
    --bg-contrast: var(--lux-ink);
    --transition-lux: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Dynamic Nav Variables */
    --nav-link-color: var(--lux-burgundy);
    --nav-bg: transparent;
    --nav-backdrop: blur(10px);

    /* Luxury Spacing Utilities */
    --lux-spacing-lg: 7rem;
}

@media (max-width: 991px) {
    :root {
        --lux-spacing-lg: 2.5rem;
    }
}

.mb-lux-lg {
    margin-bottom: var(--lux-spacing-lg) !important;
}

.mt-lux-lg {
    margin-top: var(--lux-spacing-lg) !important;
}

/* Contrast & Legibility Refinements */
.text-refined-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.manifesto-section p {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Ensure mobile list is hidden on desktop */
.mobile-nav-list {
    display: none !important;
}

@media (max-width: 991px) {
    .mobile-nav-list {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .offcanvas {
        display: none !important;
    }
}

/* Refinement for site-title-mask */
.site-title-mask {
    background: linear-gradient(90deg, #fff, var(--lux-gold), #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Imperial Sovereign Theme Scoping */
[data-theme="imperial"] {
    --bg-body: var(--lux-ink);
    --text-main: white;
    --accent-main: var(--lux-gold);
    --muted-main: rgba(255, 255, 255, 0.6);
    --border-main: rgba(206, 176, 134, 0.2);

    /* Imperial Nav */
    --nav-link-color: rgba(255, 255, 255, 0.9);
}

.bg-imperial {
    background-color: var(--lux-ink) !important;
    color: white !important;
}

.bg-burgundy {
    background-color: var(--lux-burgundy) !important;
    color: white !important;
}

.bg-forest {
    background-color: var(--lux-forest) !important;
    color: white !important;
}

.text-gold {
    color: var(--lux-gold) !important;
}

.text-burgundy {
    color: var(--lux-burgundy) !important;
}

[data-theme="imperial"] body {
    background-color: var(--lux-ink);
    color: white;
}

body {
    background-color: var(--lux-paper);
    color: var(--lux-ink);
    font-family: 'Outfit', 'Manrope', sans-serif;
}

/* --- Navigation --- */
.main-navbar {
    background-color: var(--nav-bg);
    backdrop-filter: var(--nav-backdrop);
    -webkit-backdrop-filter: var(--nav-backdrop);
    transition: var(--transition-lux);
    border-bottom: 1px solid rgba(29, 42, 37, 0.05);
}

.main-navbar.scrolled {
    --nav-bg: var(--lux-ink);
    --nav-link-color: var(--lux-paper);
    --nav-backdrop: none;
    border-bottom: 1px solid rgba(206, 176, 134, 0.2);
}

.main-navbar.nav-transparent-light:not(.scrolled) {
    --nav-link-color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    /* Ensure visibility on mixed backgrounds */
}

.main-navbar.nav-transparent-light:not(.scrolled) .navbar-toggler {
    color: #ffffff !important;
}

[data-theme="imperial"] .main-navbar.nav-transparent-light:not(.scrolled) {
    --nav-link-color: rgba(255, 255, 255, 0.9);
}

[data-theme="imperial"] .main-navbar.nav-transparent-light:not(.scrolled) .navbar-toggler {
    color: white !important;
}

.nav-link {
    color: var(--nav-link-color) !important;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition-lux);
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--lux-gold) !important;
    transform: translateY(-2px);
}

/* --- Royal Buttons --- */
.btn-luxury {
    background: linear-gradient(135deg, var(--lux-burgundy), var(--lux-burgundy-light));
    color: white !important;
    border: none;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 1rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-lux);
    box-shadow: 0 10px 20px rgba(72, 30, 40, 0.15);
}

.btn-luxury:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(72, 30, 40, 0.25);
    background: linear-gradient(135deg, var(--lux-gold), #b39366);
}

.btn-luxury-outline {
    background: transparent;
    color: var(--lux-ink);
    border: 1px solid var(--lux-ink);
    padding: 1rem 2.5rem;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    transition: var(--transition-lux);
}

.btn-luxury-outline:hover {
    background: var(--lux-gold);
    color: white !important;
    border-color: var(--lux-gold);
}

/* --- Imperial Cards --- */
.luxury-card {
    background: var(--lux-paper);
    border: 1px solid rgba(29, 42, 37, 0.05);
    transition: var(--transition-lux);
    position: relative;
    z-index: 1;
}

.luxury-card:hover {
    transform: translateY(-10px);
    border-color: var(--lux-gold);
    box-shadow: 0 30px 60px rgba(29, 42, 37, 0.08);
    /* Deep forest shadow */
}

.luxury-card img {
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.luxury-card:hover img {
    transform: scale(1.1);
}

/* Custom Utilities */
.text-gold {
    color: var(--lux-gold) !important;
}

.bg-paper {
    background-color: var(--lux-paper) !important;
}

.italic {
    font-style: italic;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

/* Grid Cards */
.luxury-card {
    transition: var(--transition-lux);
    overflow: hidden;
    border: none;
    background: transparent;
}

.luxury-card:hover {
    transform: translateY(-10px);
}

.luxury-card img {
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.luxury-card:hover img {
    transform: scale(1.1);
}

/* Typography Footer */
.luxury-footer {
    background-color: #0b0b0b;
    color: #fff;
}

/* Hero Sections */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: #000;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

/* Timeline */
.timeline-container {
    position: relative;
    padding-left: 3rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -3.4rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--lux-gold);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--lux-gold);
}

.hover-gold:hover {
    color: var(--lux-gold) !important;
}

/* --- Cinematic UI: Infinite Ticker --- */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--lux-paper);
    padding: 60px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.ticker:hover {
    animation-play-state: paused;
}

.partner-logo {
    display: inline-flex;
    align-items: center;
    padding: 0 60px;
    font-family: 'Syncopate', sans-serif;
    font-size: 1.5rem;
    color: var(--lux-ink);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.partner-logo .role-tag {
    font-family: 'Manrope', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--lux-gold);
    margin-left: 15px;
    padding: 2px 10px;
    border: 1px solid var(--lux-gold);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- Bento Grid Layouts --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(150px, auto);
    gap: 24px;
}

.bento-item {
    background: var(--lux-paper);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.15);
    border-color: var(--lux-gold);
}

.bento-1 {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-2 {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-3 {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-4 {
    grid-column: span 1;
    grid-row: span 1;
}

/* Responsive Bento */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

/* --- Glassmorphism Enhancements --- */
.glass-obsidian {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-paper {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hover-glow:hover {
    box-shadow: 0 0 40px rgba(197, 160, 40, 0.15);
}

/* --- Glassmorphism 2.0 --- */
.glass-premium {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* --- Typography Masking --- */
.text-mask {
    background: linear-gradient(to right, var(--lux-gold), #fff, var(--lux-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* --- Magnetic Interactions --- */
.magnetic-wrap {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- Bento Fine-Tuning --- */
.bento-item .inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-image-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bento-image-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) grayscale(1);
    transition: filter 0.8s, transform 1.2s;
}

.bento-item:hover .bento-image-bg img {
    filter: brightness(0.8) grayscale(0);
    transform: scale(1.1);
}

.bento-item .content-overlay {
    position: relative;
    z-index: 1;
}

/* Missing Utilities Shim by AI */
.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-0 {
    z-index: 0 !important;
}

.z-1 {
    z-index: 1 !important;
}

.bg-gradient-to-t.from-imperial {
    background: linear-gradient(to top, var(--lux-ink), transparent);
}

.opacity-90 {
    opacity: 0.9 !important;
}

.opacity-40 {
    opacity: 0.4 !important;
}

/* Scrollbar Hiding */
.hide-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Group Hover Utilities */
.group:hover .scale-hover-lg {
    transform: scale(1.1);
}

.group:hover .group-hover\:translate-y-0 {
    transform: translateY(0) !important;
}

.translate-y-4 {
    transform: translateY(1rem);
}

.transition-transform {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Pan on Hover Logic */
.pan-zoom-container {
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    /* Hint at interaction */
}

.pan-zoom-img {
    transition: transform 0.1s linear;
    /* Fast response for mouse tracking */
    transform-origin: center center;
    will-change: transform;
}

/* Ensure scale-hover-lg does not conflict */
/* Ensure scale-hover-lg does not conflict */
.group:hover .pan-zoom-img {
    /* JS overrides this dynamically */
    transform: scale(1.5);
}

/* Utilities for Text Shadow */
.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.text-shadow-lg {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Branded Text Selection */
::selection {
    background: var(--lux-gold);
    color: var(--lux-ink);
    text-shadow: none;
}

::-moz-selection {
    background: var(--lux-gold);
    color: var(--lux-ink);
    text-shadow: none;
}

/* Custom Aspect Ratios */
.ratio-4x5 {
    --bs-aspect-ratio: 125%;
}

.pointer-events-none {
    pointer-events: none !important;
}

/* Footer Cinema Section */
.footer-cinema {
    padding: 100px 0;
    text-align: center;
    background-color: #f9f9f7;
    color: var(--lux-ink);
}

.footer-title {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 3rem;
    text-transform: uppercase;
    color: var(--lux-ink);
    letter-spacing: -2px;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.f-link {
    font-family: 'Manrope', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--lux-ink);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.f-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--lux-gold);
    transition: width 0.3s ease;
}

.f-link:hover {
    color: var(--lux-gold);
}

.f-link:hover::after {
    width: 100%;
}

/* -----------------------------
   Liveliness Enhancements
   ----------------------------- */

/* 1. Masked Text Reveal Helper */
.reveal-mask {
    overflow: hidden;
    position: relative;
    display: inline-block;
    /* allows mask to wrap text tightly */
}

.reveal-text {
    display: inline-block;
    transform: translateY(110%);
    /* Start hidden below */
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform;
}

.reveal-text.is-visible {
    transform: translateY(0);
}

/* 2. Curtain Transition Overlay */
.page-transition-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--lux-gold);
    /* Imperial Gold */
    z-index: 9999;
    transform: translateY(0%);
    /* Start covering screen */
    pointer-events: none;
}

/* 3. Micro-Interactions */
.hover-scale-sm {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-scale-sm:hover {
    transform: scale(1.02);
}

.hover-glow {
    transition: box-shadow 0.4s ease;
}

.hover-glow:hover {
    box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.3);
    /* Gold glow */
}

/* 4. Marquee Text (Continuous Motion) */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-block;
    animation: marquee-scroll 20s linear infinite;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 5. Breathing Image Ambient */
.ambient-breath {
    animation: breath 8s ease-in-out infinite alternate;
}

@keyframes breath {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.03);
    }
}

/* 6. Premium Scroll Indicator */
.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    /* Gold with opacity */
    border-radius: 15px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--lux-gold);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel-action 2s infinite;
    opacity: 1;
}

@keyframes scroll-wheel-action {
    0% {
        top: 8px;
        opacity: 1;
        height: 8px;
    }

    100% {
        top: 30px;
        opacity: 0;
        height: 4px;
    }
}