:root {
    --emerald: #0a1a14;
    --gold: #F2E3C6;
    --ecru: #F5F5DC;
    --serif-font: 'Playfair Display', serif;
    --sans-font: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important; /* Force custom cursor */
}

html {
    scroll-behavior: smooth;
    background-color: var(--emerald);
}

body {
    color: var(--gold);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Cursor */
#custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease-out, background 0.3s ease;
    transform: translate(-50%, -50%);
}

#custom-cursor.expanded {
    transform: translate(-50%, -50%) scale(4);
    background: transparent;
    border: 1px solid var(--gold);
}

/* Typography */
h1, h2, h3 {
    font-family: var(--serif-font);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

p {
    font-family: var(--sans-font);
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* Radial Menu */
#radial-nav {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 1000;
}

#menu-toggle {
    width: 60px;
    height: 60px;
    background: transparent;
    border: 1px solid var(--gold);
    border-radius: 50%;
    position: relative;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

#menu-toggle span {
    width: 24px;
    height: 1px;
    background: var(--gold);
    transition: transform 0.3s ease;
}

#menu-toggle.active span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

#menu-toggle.active span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

#menu-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#menu-content.active {
    pointer-events: auto;
    opacity: 1;
}

.ripple {
    position: absolute;
    top: 70px;
    right: 70px;
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: -1;
}

#menu-content.active .ripple {
    transform: scale(400); /* Large scale to cover screen */
}

#menu-content ul {
    list-style: none;
    text-align: center;
}

#menu-content ul li {
    margin: 20px 0;
    overflow: hidden;
}

#menu-content ul li a {
    font-family: var(--serif-font);
    font-size: 3rem;
    color: var(--emerald);
    text-decoration: none;
    display: block;
    transform: translateY(100%);
    transition: transform 0.5s ease 0.4s;
}

#menu-content.active ul li a {
    transform: translateY(0);
}

/* Sections */
section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    padding: 100px 5%;
}

.emerald-bg {
    background-color: var(--emerald);
}

/* Hero Section */
#hero {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.brand-title {
    font-size: 5rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 2s forwards 0.5s;
}

.liquid-container {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.liquid-blob {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 35% 35%, #FFF5E1 0%, #F2E3C6 30%, #D4AF37 50%, #B8860B 80%, #5D4037 100%);
    background-size: 200% 200%;
    filter: url(#liquid-filter) drop-shadow(0 0 40px rgba(184, 134, 11, 0.4));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 12s ease-in-out infinite, metallicShimmer 8s linear infinite;
    opacity: 1;
    box-shadow: inset -20px -20px 50px rgba(0,0,0,0.5), inset 20px 20px 50px rgba(255,255,255,0.2);
}

@keyframes morph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: scale(1) rotate(0deg); }
    33% { border-radius: 40% 60% 50% 50% / 40% 40% 60% 60%; transform: scale(1.05) rotate(5deg); }
    66% { border-radius: 50% 40% 60% 40% / 50% 50% 40% 60%; transform: scale(0.95) rotate(-5deg); }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: scale(1) rotate(0deg); }
}

@keyframes metallicShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.countdown-text {
    position: relative;
    display: flex;
    gap: 15px;
    font-family: var(--serif-font);
    color: var(--emerald);
    mix-blend-mode: color-burn;
    font-weight: 900;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-unit span {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
}

.time-unit label {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    margin-top: 4px;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--ecru);
    opacity: 0;
    animation: fadeIn 2s forwards 1s;
}

.sub-text {
    font-size: 0.9rem;
    color: var(--gold);
    opacity: 0;
    animation: fadeIn 2s forwards 1.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Prelude Horizontal Scroll */
#prelude-wrapper {
    height: 400vh; /* Scroll length */
    padding: 0;
}

#prelude-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--emerald);
    transition: background-color 0.8s ease, color 0.8s ease;
}

#prelude-horizontal {
    display: flex;
    height: 100%;
    width: 300vw;
    will-change: transform;
}

.prelude-slide {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10%;
    flex-shrink: 0;
}

.slide-content {
    max-width: 800px;
    text-align: center;
}

.slide-content h2 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 2rem;
}

.slide-content p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    line-height: 2;
}

/* Showcase Grid */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 4vw, 40px);
    max-width: 1200px;
    margin: 0 auto;
}

.brand-block {
    height: clamp(300px, 50vh, 400px);
    border: 1px solid var(--gold);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: border-color 0.5s ease;
}

.block-content {
    z-index: 2;
    font-family: var(--serif-font);
    font-size: clamp(1rem, 4vw, 1.5rem);
    letter-spacing: 0.3em;
    pointer-events: none;
}

.block-reveal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.brand-block:hover {
    border-color: transparent;
}

.brand-block:hover .block-reveal {
    transform: translateY(0);
}

.brand-block:hover .block-content {
    color: var(--emerald);
}

/* Foundation Section */
#foundation {
    background-color: var(--emerald);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.architectural-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    pointer-events: none;
}

.machinery-svg {
    width: 100%;
    height: 100%;
}

.gear-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 15s linear infinite;
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

.section-content {
    z-index: 2;
    max-width: 700px;
    padding: 0 20px;
}

.section-content h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 2rem;
}

/* Scroll Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    #custom-cursor { display: none; } /* Hide custom cursor on mobile */
    * { cursor: auto !important; }
    
    .brand-title { font-size: 2.8rem; margin-top: 40px; }
    .liquid-container { width: 280px; height: 280px; }
    .time-unit span { font-size: 1.8rem; }
    
    .brand-grid { grid-template-columns: 1fr; }
    
    #radial-nav { top: 20px; right: 20px; }
    #menu-toggle { width: 50px; height: 50px; }
    
    #menu-content ul li a { font-size: 2rem; }
}
