:root {
    /* 1. PALETTE */
    --color-tiber:       #022B30; 
    --color-blue-bayoux: #2E5D6F;
    --color-tahiti-gold: #E87722; 
    --color-mystic:      #F5F2EB; 
    
    /* 2. TYPOGRAPHY */
    --font-headline:     'Cord', 'Impact', 'Anton', sans-serif; 
    --font-body:         'Noto Sans', sans-serif;

    /* Scale */
    --text-giant:        5.5rem; 
    
    /* 3. LAYOUT */
    --spacing-container: 1280px;
    --spacing-gutter:    2rem;
}

/* =========================================
   1. RESET & BASICS
   ========================================= */
* { box-sizing: border-box; }

html, body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-tiber);
    background-color: var(--color-mystic);
    line-height: 1.5;
    overflow-x: clip;
}

/* =========================================
   2. LAYOUT UTILITIES
   ========================================= */
.l-container {
    width: 100%;
    max-width: var(--spacing-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-gutter);
    padding-right: var(--spacing-gutter);
}

/* =========================================
   3. PROGRESSIVE LOADING
   ========================================= */
.u-blur {
    filter: blur(10px);
    transform: scale(1.05);
    transition: filter 0.8s ease-out, transform 0.8s ease-out;
}
.u-blur.is-loaded { filter: blur(0); transform: scale(1); }

/* =========================================
   4. HEADER STYLING (FIXED)
   ========================================= */
header, .c-block-header {
    /* ALLOW STICKY: Keeps the header permanently at the top */
    position: sticky !important; 
    top: 0 !important;
    
    background-color: var(--color-tiber); 
    padding: 1.5rem 0;
    z-index: 2000; /* Increased to ensure it stays above the 3D game elements */
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.c-block-header__inner,
header .l-container, 
.c-block-header .l-container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

/* --- LOGO FIX (NUCLEAR OPTION) --- */
/* Removes the box/border from the logo text */
header .logo, 
.c-block-header .logo,
.c-block-header__logo,
a.c-btn.c-btn--secondary,
/* Add specific selector if your CMS wraps it in a button class */
.c-block-header a.c-btn { 
    font-family: var(--font-headline) !important;
    font-size: 2.2rem !important;
    color: white !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-decoration: none !important;
    line-height: 1 !important;
    
    /* REMOVE BOX */
    border: 0 !important;
    background: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* --- NAVIGATION LINKS --- */
header nav, .c-block-header nav {
    display: flex;
    gap: 2.5rem;
}

header nav a, .c-block-header nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

header nav a:hover {
    color: var(--color-tahiti-gold);
}

/* HIDE HAMBURGER ON DESKTOP (If it exists) */
.c-block-header__toggle {
    display: none; 
}
@media (max-width: 768px) {
    .c-block-header__toggle { display: block; }
    header nav, .c-block-header nav { display: none; } /* Hide links on mobile */
}

/* =========================================
   5. FOOTER STYLING
   ========================================= */
footer, .c-block-footer, .c-footer {
    background-color: var(--color-tiber);
    color: white;
    padding: 4rem 0;
    font-family: var(--font-headline);
    text-transform: uppercase;
    
    /* PUSH TO BOTTOM: Forces the flex-column body to drop this to the bottom */
    margin-top: auto; 
}

footer h1, .c-block-footer h1 {
    font-size: 4rem;
    margin: 0;
    line-height: 1;
}