/*
Theme Name: Nøt Studio
Theme URI: https://not.studio.ynh.fr
Author: Nøt Studio
Description: Pure Math Orbit, Flawless Physics & Fully Responsive.
Version: 11.0.0
*/

:root {
    --color-sand: #e6e2dd;
    --color-stone: #8a8d8f;
    --color-dark: #121214;
    --color-darker: #0a0a0b;
    --color-white: #ffffff;
    
    --font-primary: 'Outfit', sans-serif;
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-primary);
    background-color: var(--color-dark); 
    color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* -----------------------------------------
   Generic Layout
----------------------------------------- */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15vh 5vw 10vh; /* Top padding to avoid header overlap */
}

/* -----------------------------------------
   Glassmorphism Header (Custom)
----------------------------------------- */
/* Hide native WP header and footer */
.site-header, .site-footer { display: none !important; }

#glass-header {
    position: fixed;
    top: 0; left: 0; width: 100vw;
    padding: 1.5rem 5vw;
    z-index: 1000;
    background: rgba(18, 18, 20, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#glass-header .header-logo { font-size: 1.2rem; font-weight: 400; letter-spacing: 0.1em; color: var(--color-white); text-decoration: none; }
#glass-header .header-nav { display: flex; gap: 2rem; align-items: center; }
#glass-header .header-nav a { color: var(--color-white); text-decoration: none; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8; transition: opacity 0.3s ease; }
#glass-header .header-nav a:hover { opacity: 1; }

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--color-white);
    color: var(--color-dark);
    font-size: 0.6rem;
    font-weight: 600;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* -----------------------------------------
   Background Shapes
----------------------------------------- */
.bg-ambiance {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 0;
    background: radial-gradient(circle at center, var(--color-dark) 0%, var(--color-darker) 100%);
    overflow: hidden;
}
.bg-shape { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3; animation: float 20s infinite alternate ease-in-out; }
.bg-shape.s1 { width: 50vw; height: 50vw; background: #2a2a2c; top: -10%; left: -10%; }
.bg-shape.s2 { width: 60vw; height: 60vw; background: #1f1f22; bottom: -20%; right: -10%; animation-duration: 25s; animation-delay: -5s; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(10%, 10%) scale(1.1); } }

/* -----------------------------------------
   Scroll Proxy & Master Viewport
----------------------------------------- */
#scroll-proxy { height: 700vh; }

.viewport {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
    /* Push the whole 3D scene slightly down to avoid the fixed header */
    transform: translateY(3vh); 
}

/* -----------------------------------------
   True 3D Scene Wrapper (CRITICAL FOR PHYSICS)
----------------------------------------- */
.scene-3d {
    position: absolute;
    width: 100%; height: 100%;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* -----------------------------------------
   True 3D Extrusion Framework
----------------------------------------- */
.text-3d-wrapper {
    position: absolute;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-3d-wrapper .slice {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 300;
    color: var(--color-white);
    white-space: nowrap;
}
.text-3d-wrapper .slice:not(:first-child) { color: #888; }
.text-3d-wrapper .slice:last-child { filter: drop-shadow(0px 0px 30px rgba(255,255,255,0.3)); }

/* -----------------------------------------
   Act 1: The Main 3D Logo
----------------------------------------- */
#logo-master {
    font-size: clamp(6rem, 15vw, 20rem);
    letter-spacing: -0.05em;
    /* Opacity managed individually by JS */
}

/* -----------------------------------------
   Act 1: Mantra
----------------------------------------- */
#layer-mantra {
    position: absolute;
    top: 60%; 
    width: 100%;
    text-align: center;
    opacity: 0; 
}

.mantra-line {
    font-size: clamp(1.5rem, 4vw, 4rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--color-sand);
    text-transform: uppercase;
}

/* -----------------------------------------
   Act 2: Glass Panes (No Wrapper)
----------------------------------------- */
.glass-pane {
    position: absolute;
    width: clamp(250px, 20vw, 350px); 
    /* Strictly responsive height so it never clips the header */
    height: clamp(300px, 50vh, 500px);
    max-height: 65vh; 
    left: 50%; top: 50%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    color: var(--color-white);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    opacity: 0; /* JS handles fade in */
}

.glass-pane h3 { font-size: 1.5rem; font-weight: 300; text-transform: uppercase; letter-spacing: 0.1em; }
.glass-pane p { font-size: 0.9rem; opacity: 0.7; }
.glass-link { font-size: 0.8rem; opacity: 0.5; text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; color: white;}

/* -----------------------------------------
   Act 3: Pulsing CTA
----------------------------------------- */
#layer-cta {
    position: absolute;
    z-index: 200;
    opacity: 0; pointer-events: none;
}

.btn-pulse-container { position: relative; display: flex; align-items: center; justify-content: center; }
.btn-pulse-container::before {
    content: ''; position: absolute; width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%; z-index: 1; animation: pulse-btn 2s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes pulse-btn { 0% { transform: scale(0.8); opacity: 0.5; } 100% { transform: scale(1.3); opacity: 1; } }
.btn-enter {
    position: relative; z-index: 2; padding: 1.5rem 4rem; border: 1px solid rgba(255,255,255,0.4); border-radius: 40px; color: var(--color-white); background: transparent; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 300; font-size: 1rem; text-decoration: none; transition: all 0.3s ease; backdrop-filter: blur(10px);
}
.btn-enter:hover { background: var(--color-white); color: var(--color-dark); }

/* -----------------------------------------
   RESPONSIVE DESIGN (Mobiles & Tablets)
----------------------------------------- */
@media (max-width: 768px) {
    /* Header adjustments */
    #glass-header { padding: 1rem 5vw; }
    #glass-header .header-logo { font-size: 1rem; }
    #glass-header .header-nav { gap: 1rem; }
    #glass-header .header-nav a { font-size: 0.75rem; }

    /* Make the 3D Logo smaller so it fits well inside the orbit on narrow screens */
    #logo-master { font-size: clamp(4rem, 25vw, 6rem); }
    
    /* Lower the mantra slightly more on mobile so it doesn't overlap the logo */
    #layer-mantra { top: 65%; }
    .mantra-line { font-size: 1.2rem; }

    /* The glass panes must be narrower and shorter to prevent overlap */
    .glass-pane {
        width: 65vw; 
        height: 50vh;
        min-height: 250px;
        max-height: 60vh;
        padding: 1.5rem;
    }
    
    .glass-pane h3 { font-size: 1.2rem; }
    .glass-pane p { font-size: 0.8rem; }
    
    /* CTA adjustment */
    .btn-enter { padding: 1rem 3rem; font-size: 0.9rem; }
    .btn-pulse-container::before { width: 180px; height: 180px; }
}

/* For landscape mobile phones (short height) */
@media (max-height: 500px) {
    .glass-pane {
        height: 60vh;
        min-height: 200px;
    }
    .viewport { transform: translateY(5vh); }
    #logo-master { font-size: clamp(3rem, 15vw, 5rem); }
}

/* -----------------------------------------
   WOOCOMMERCE: L'ÉDITION CLAIRE (WHITE THEME)
----------------------------------------- */
body.woocommerce-page,
body.woocommerce-cart,
body.woocommerce-checkout,
body.page-id-7, /* Default woo cart page id usually */
body.page-id-8  /* Default woo checkout page id usually */ {
    background-color: var(--color-white);
    color: var(--color-dark);
}

/* Fix WooCommerce Blocks image stretching in Cart */
.wc-block-cart-items .wc-block-components-product-image img {
    object-fit: contain;
    background: var(--color-white);
}

/* Force dark links in Cart & Checkout (remove default blue) */
body.woocommerce-cart a, 
body.woocommerce-checkout a, 
.wc-block-components-product-name,
.wc-block-grid__product-link {
    color: var(--color-dark) !important;
    text-decoration: none !important;
}
body.woocommerce-cart a:hover, 
body.woocommerce-checkout a:hover {
    text-decoration: underline !important;
}

/* Style WooCommerce Block buttons (e.g., Empty Cart recommended products) */
.wc-block-grid__products .wp-block-button__link,
.wc-block-components-button {
    background: transparent !important;
    color: var(--color-dark) !important;
    border: 1px solid var(--color-dark) !important;
    padding: 0.8rem 2rem !important;
    border-radius: 30px !important;
    font-family: var(--font-primary) !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    transition: all 0.3s ease !important;
}
.wc-block-grid__products .wp-block-button__link:hover,
.wc-block-components-button:hover {
    background: var(--color-dark) !important;
    color: var(--color-white) !important;
}

/* Override the Glass Header for Light Theme */
body.woocommerce-page #glass-header {
    background: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
body.woocommerce-page #glass-header .header-logo,
body.woocommerce-page #glass-header .header-nav a {
    color: var(--color-dark);
}
body.woocommerce-page .cart-badge {
    background-color: var(--color-dark);
    color: var(--color-white);
}

/* The Shop Container */
.shop-container {
    padding: 15vh 5vw 10vh;
    max-width: 1400px; /* Reduced max width to control 3-column spread */
    margin: 0 auto;
}

.shop-title-wrapper {
    text-align: center;
    margin-bottom: 5vh;
}
.shop-title-wrapper h1 {
    font-size: clamp(2.5rem, 6vw, 4rem); /* Slightly smaller header */
    font-weight: 300;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* Shop Tools: Search and Sorting */
.shop-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 1rem;
}

.shop-search form { display: flex; align-items: center; }
.shop-search input[type="search"] {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    padding: 0.5rem 0;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--color-dark);
    outline: none;
    width: 200px;
    transition: width 0.3s ease;
}
.shop-search input[type="search"]:focus { width: 250px; border-bottom-color: var(--color-dark); }
.shop-search button { display: none; } /* Hide the default submit button for a cleaner look */

.woocommerce-ordering select {
    background: transparent;
    border: none;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--color-dark);
    outline: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-right: 1rem;
}

/* The Fluid Gallery Grid (Up to 3 per row) */
ul.products {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Responsive Grid Adjustments */
@media (min-width: 768px) {
    ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 3rem;
    }
}
@media (min-width: 1024px) {
    ul.products {
        grid-template-columns: repeat(3, 1fr); /* Exactly 3 products per row on large screens */
        gap: 5rem 4rem;
    }
    /* Asymmetric staggered effect only on the middle column for 3-col layout */
    ul.products li.product:nth-child(3n-1) {
        transform: translateY(60px);
    }
}

/* Product Card (Collection Item) */
li.product {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: transparent;
    opacity: 0; /* JS GSAP will reveal them */
}

/* Make the whole card a clickable block */
.product-link-wrapper {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

/* Image styling (contain prevents extreme cropping) */
li.product img.primary-image,
li.product img.hover-image {
    width: 100%;
    height: auto;
    object-fit: contain; /* Prevents zooming/cropping of the t-shirt */
    aspect-ratio: 3/4;
    transition: opacity 0.6s ease, transform 1s cubic-bezier(0.2, 1, 0.2, 1);
}

/* Hover Image logic */
li.product img.hover-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

li.product:hover img.primary-image {
    opacity: 0;
}

li.product:hover img.hover-image {
    opacity: 1;
}

/* Glassmorphism Hover Overlay */
.item-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.2, 1, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* The slight zoom on hover applied to whatever image is visible */
li.product:hover img {
    transform: scale(1.03);
}

li.product:hover .item-overlay {
    opacity: 1;
    transform: translateY(0);
}

.item-overlay h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.item-overlay .price {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

/* Custom Button Text (Replaces standard add to cart to avoid nested links) */
.item-overlay .fake-btn {
    display: inline-block;
    background: transparent;
    color: var(--color-dark);
    border: 1px solid var(--color-dark);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.product-link-wrapper:hover .item-overlay .fake-btn {
    background: var(--color-dark);
    color: var(--color-white);
}

/* -----------------------------------------
   WOOCOMMERCE: PAGE PRODUIT (L'ÉCRIN)
----------------------------------------- */
body.single-product {
    background-color: var(--color-white);
    color: var(--color-dark);
}

body.single-product #glass-header {
    background: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
body.single-product #glass-header .header-logo,
body.single-product #glass-header .header-nav a { color: var(--color-dark); }
body.single-product .cart-badge { background-color: var(--color-dark); color: var(--color-white); }

/* Sticky Grid Layout */
.single-product-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 15vh 5vw 10vh;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 992px) {
    .single-product-container {
        /* Left column is wider for huge photos */
        grid-template-columns: 1.5fr 1fr; 
        align-items: start;
    }
}

/* Left: Gallery Stack */
.product-gallery-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-gallery-stack .gallery-item {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: var(--color-white);
}

/* Right: Sticky Info */
.product-info-sticky {
    position: sticky;
    bottom: 5vh; /* Stick to the bottom of the screen */
    align-self: end; /* In a grid, this pushes the element to align with the bottom of the container */
    padding-right: 1rem;
    padding-bottom: 0;
}

.product-info-sticky .product-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.product-info-sticky .product-description {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 3rem;
}

/* Size Guide Link */
.size-guide-wrapper {
    text-align: right;
    margin-bottom: -1rem; /* Pull it closer to the select */
    position: relative;
    z-index: 10;
}
.size-guide-link {
    font-size: 0.8rem;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: underline;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
.size-guide-link:hover { opacity: 1; }

/* Add to Cart Form Overrides */
.product-cart-form-wrapper form.cart {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Variations Table (Size, Color, etc.) */
table.variations {
    width: 100%;
    border-collapse: collapse;
}
table.variations td {
    padding: 0.5rem 0;
    vertical-align: middle;
}
table.variations td.label {
    width: 80px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    color: var(--color-dark);
}
table.variations td.value {
    position: relative;
}
table.variations select {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(0,0,0,0.2);
    background: transparent;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--color-dark);
    outline: none;
    cursor: pointer;
    appearance: none;
    border-radius: 30px; /* Pill shape */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: border-color 0.3s ease;
}
table.variations select:hover, table.variations select:focus {
    border-color: var(--color-dark);
}
/* Custom dropdown arrow */
table.variations td.value::after {
    content: '▼';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    pointer-events: none;
    color: var(--color-dark);
}

/* Reset Link (Effacer) */
.reset_variations {
    display: inline-block;
    margin-left: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-dark);
    opacity: 0.5;
    text-decoration: underline;
}

/* Price Display (Native WooCommerce) */
.product-cart-form-wrapper .price {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--color-dark);
    margin-bottom: 2rem;
}

/* Hide Quantity input for minimalism */
.product-cart-form-wrapper .quantity { display: none !important; }

/* The Add to Cart Button */
.product-cart-form-wrapper .single_add_to_cart_button {
    width: 100%;
    background: transparent;
    color: var(--color-dark);
    border: 1px solid var(--color-dark);
    padding: 1.5rem;
    border-radius: 40px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-cart-form-wrapper .single_add_to_cart_button:hover {
    background: var(--color-dark);
    color: var(--color-white);
}

/* Out of stock or disabled state */
.product-cart-form-wrapper .single_add_to_cart_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Globally Hide WooCommerce default messages (e.g. Added to cart) */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    display: none !important;
}

/* Style ANY link in the form that isn't the reset button (e.g., Size Guide plugin link) */
.product-cart-form-wrapper a:not(.reset_variations) {
    display: inline-block !important;
    font-size: 0.8rem !important;
    color: var(--color-dark) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-decoration: underline !important;
    opacity: 0.6 !important;
    margin-top: 1rem !important;
    margin-bottom: 2rem !important; /* Added generous space before the Add to Cart button */
    transition: opacity 0.3s ease !important;
}
.product-cart-form-wrapper a:not(.reset_variations):hover {
    opacity: 1 !important;
}

/* Fix scrolling on third-party Size Guide popups (prevent background scroll on PC & Mobile) */
div[class*="size-guide"], 
div[id*="size-guide"], 
[class*="popup"], 
[class*="modal"],
.pysg-popup-content,
.wbsg-popup {
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
}

/* -----------------------------------------
   RESPONSIVE OVERRIDES (MOBILE & TABLET)
----------------------------------------- */
@media (max-width: 991px) {
    /* 1. Shop Page: Mobile products show details below image (no hover needed) */
    li.product img.primary-image,
    li.product img.hover-image {
        object-fit: contain;
    }
    
    .item-overlay {
        position: relative;
        bottom: auto; left: auto; right: auto;
        transform: none !important;
        opacity: 1 !important;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        padding: 1rem 0 0 0;
    }
    
    .item-overlay h3 { font-size: 1.1rem; }
    .item-overlay .price { margin-bottom: 0.5rem; }
    .item-overlay .fake-btn { display: none; } /* Hide the fake button on mobile, card is clickable */

    /* 2. Single Product Page: Horizontal Scroll for Gallery */
    .single-product-container {
        padding: 12vh 0 5vh; /* Remove side padding for full-width swipe */
        gap: 2rem;
    }
    
    .product-gallery-stack {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        gap: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .product-gallery-stack::-webkit-scrollbar { display: none; }
    
    .product-gallery-stack .gallery-item {
        flex: 0 0 100vw;
        width: 100vw;
        scroll-snap-align: start;
        padding: 0 5vw; /* Padding inside so image aligns with text below */
    }

    /* Undo sticky behavior for mobile */
    .product-info-sticky {
        position: relative;
        top: 0;
        max-height: none;
        overflow-y: visible;
        padding: 0 5vw; /* Restore padding for text */
    }
    }
}

/* -----------------------------------------
   SCROLLYTELLING: PAGE STUDIO
----------------------------------------- */
body.page-template-page-studio {
    background-color: var(--color-darker); /* Deep black */
    color: var(--color-white);
    overflow-x: hidden;
}

.studio-scrollytelling-wrapper {
    position: relative;
    width: 100%;
}

.studio-scroll-proxy {
    /* Height will be determined by GSAP, but give it a huge default for scrolling */
    height: 10000px; 
}

.studio-viewport {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.studio-act {
    position: absolute;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5vw;
    opacity: 0; 
    pointer-events: none; 
    z-index: 20;
}

/* Background Layers */
.studio-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
}
.studio-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.studio-act.active {
    pointer-events: auto;
}

/* Typography for Studio */
.studio-text {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0; /* JS controls this */
    margin-bottom: 2rem;
    max-width: 800px;
    line-height: 1.6;
}
.studio-text.mt-4 { margin-top: 4rem; }

.studio-headline {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1.1;
    margin-top: 2rem;
    opacity: 0;
}
.studio-headline.giant {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 400;
    letter-spacing: -0.05em;
}
.studio-headline .highlight {
    color: var(--color-sand);
    font-weight: 400;
}

.studio-manifesto {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 400;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    margin-top: 2rem;
    margin-bottom: 4rem;
    opacity: 0;
    color: var(--color-white);
    text-shadow: 0 0 40px rgba(255,255,255,0.2);
}

.studio-btn {
    opacity: 0;
    pointer-events: auto; /* Always clickable when visible */
}

/* Act 3: Elements Grid */
.element-grid {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
}
.element-grid .el {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
}

/* Act 4: The Symbol */
.giant-symbol {
    font-size: clamp(10rem, 30vw, 30rem);
    font-weight: 100;
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    color: rgba(255, 255, 255, 0.05); /* Extremely subtle */
    z-index: -1;
}
.symbol-texts {
    z-index: 2;
}
.studio-subheadline {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-sand);
    opacity: 0;
    margin-top: 3rem;
}

/* Mobile Overrides for Studio */
@media (max-width: 768px) {
    .element-grid { flex-direction: column; gap: 1rem; }
}
