﻿/* ==========================================================================
   Global Styles & Premium UI Architecture
   ========================================================================== */

body {
    background-color: var(--color-moss);
    color: var(--color-cream);
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.65;
}

/* Custom Cursor (Desktop) */
.custom-cursor,
.custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: var(--z-cursor);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: opacity var(--transition-duration) var(--transition-smooth);
}

.custom-cursor {
    width: 8px;
    height: 8px;
    background-color: var(--color-gold);
}

.custom-cursor-follower {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--color-gold);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                height 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                background-color 0.3s ease, 
                border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-moss);
    overflow: hidden;
}

.custom-cursor-follower.hover {
    width: 90px;
    height: 90px;
    background-color: var(--color-gold);
    border-color: var(--color-gold);
}

@media (hover: none) and (pointer: coarse) {
    .custom-cursor, .custom-cursor-follower {
        display: none !important;
    }
}

/* Typography Reveals */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
}

.word-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.word-mask span {
    display: inline-block;
    will-change: transform;
}

.editorial-title {
    font-size: clamp(3rem, 7.5vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--color-cream);
    font-weight: 500;
}

.editorial-title-small {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--color-cream);
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Floating Leaf Particles */
.leaf-particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.leaf-particle {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--color-gold);
    opacity: 0.15;
    border-radius: 0 100% 0 100%;
    animation: drift 15s linear infinite;
}

@keyframes drift {
    0% {
        transform: translateY(-50px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(105vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Portal Entrance Button */
.portal-btn {
    background: transparent;
    border: none;
    position: relative;
    padding: 1.5rem 3rem;
    cursor: pointer;
    overflow: hidden;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.portal-btn-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(var(--color-moss-rgb), 0.3);
    border-radius: 50px;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.portal-btn-text {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-moss);
    z-index: 2;
    transition: color 0.3s ease;
}

.portal-btn:hover {
    transform: scale(1.05);
}

.portal-btn:hover .portal-btn-circle {
    background-color: var(--color-moss);
    border-color: var(--color-moss);
    transform: scale(1.05);
}

.portal-btn:hover .portal-btn-text {
    color: var(--color-cream);
}

.btn-skip {
    background: none;
    border: none;
    color: rgba(var(--color-moss-rgb), 0.6);
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, color 0.3s;
}

.btn-skip:hover {
    color: var(--color-moss);
    border-color: var(--color-moss);
}

/* Main Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.2rem 6vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: var(--z-nav);
    transition: background-color 0.5s ease, padding 0.5s ease, transform 0.5s ease;
}

.main-nav.scrolled {
    background-color: rgba(var(--color-moss-rgb), 0.9);
    backdrop-filter: blur(10px);
    padding: 1.2rem 6vw;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.main-nav.hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.25em;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--color-cream);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    position: relative;
    padding-bottom: 4px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--color-gold);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 16px;
    position: relative;
}

.nav-mobile-toggle span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-cream);
    left: 0;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-mobile-toggle span:nth-child(1) { top: 0; }
.nav-mobile-toggle span:nth-child(2) { bottom: 0; }

@media (max-width: 991px) {
    .nav-links { display: none; }
    .nav-mobile-toggle { display: block; }
}

/* Intro / Loading Portal */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-cream);
    z-index: var(--z-intro);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Clean clip-path for circular portal exit reveal */
    clip-path: circle(100% at 50% 50%);
    transition: clip-path 1.8s cubic-bezier(0.85, 0, 0.15, 1);
    will-change: clip-path;
}

.intro-overlay.exit {
    clip-path: circle(0% at 50% 50%);
}

.intro-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
}

.logo-wrapper {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(var(--color-moss-rgb), 0.15);
    margin-bottom: 2.5rem;
    opacity: 1; /* Default to 1 for progressive enhancement */
    transform: scale(1);
    will-change: transform, opacity;
}

.intro-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--color-moss);
    margin-bottom: 4rem;
    font-weight: 600;
    opacity: 1; /* Default to 1 for progressive enhancement */
}

.intro-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    opacity: 1; /* Default to 1 for progressive enhancement */
}

/* Button & Link Revamps */
.btn-primary {
    background: transparent;
    color: var(--color-cream);
    border: 1px solid rgba(var(--color-cream-rgb), 0.3);
    padding: 1.2rem 2.8rem;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-primary:hover {
    border-color: var(--color-gold);
    background-color: var(--color-gold);
    color: var(--color-moss);
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--color-cream);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    padding-bottom: 6px;
    text-decoration: none;
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--color-gold);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-text:hover::after {
    width: 100%;
}

.cinematic-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-section {
    padding: 10rem 6vw;
    max-width: 1300px;
    margin: 0 auto;
}

