/* ========================================================
   THE AURA MOTION ENGINE - MODERN LUXURY EDITORIAL ATELIER
   ======================================================== */

:root {
    /* High-Fashion Salon Design Tokens */
    --bg-canvas: #FAF8F5;            /* Radiant Alabaster Cream */
    --bg-surface-dark: #F2ECE4;      /* Soft Warm Silk Taupe */
    --surface-glass: rgba(250, 248, 245, 0.85);
    --border-glass: rgba(26, 25, 23, 0.08);
    
    --accent-brand: #C3A387;         /* Soft Brushed Champagne / Rose Gold */
    --text-primary: #1A1917;         /* Deep Editorial Espresso */
    --text-muted: #66625D;           /* Muted Earth Gray for descriptions */

    /* Elegant Avant-Garde Typography */
    --font-display: 'Cormorant Garamond', serif; /* Fluid, high-fashion display titles */
    --font-body: 'Inter', sans-serif;            /* Ultra-clean geometric interface text */

    /* Cinematic Motion Parameters */
    --ease-cinematic: cubic-bezier(0.25, 1, 0.5, 1);  
    --ease-ui: cubic-bezier(0.16, 1, 0.3, 1);  
    
    --t-ui-fast: 250ms;
    --t-ui-medium: 600ms;
    --t-transition-curtain: 1200ms; 
}

/* ========================================================
   GLOBAL RESETS & CANVAS SETUP
   ======================================================== */
html, body {
    margin: 0; padding: 0; width: 100%;
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container { width: 88%; max-width: 1300px; margin: 0 auto; }

/* ========================================================
   CINEMATIC INITIAL SITE ENTRANCE CURTAIN (LOAD ONLY)
   ======================================================== */
.transition-curtain {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: #1A1917; z-index: 10000; pointer-events: none;
    display: flex; align-items: center; justify-content: center;
    transform-origin: top;
    transform: scaleY(1);
    transition: transform var(--t-transition-curtain) var(--ease-cinematic);
}
.curtain-logo {
    font-family: var(--font-display); font-size: 4rem; letter-spacing: 4px;
    color: var(--bg-canvas); opacity: 1; transition: opacity 0.5s ease;
    font-style: italic;
}

/* Opening Lift (Wipe UP on page paint) */
.transition-curtain.is-opening { transform: scaleY(0); }
.transition-curtain.is-opening .curtain-logo { opacity: 0; }

/* ========================================================
   HARDWARE SCROLL REVEALS
   ======================================================== */
.reveal {
    opacity: 0; transform: translateY(40px) translateZ(0);
    will-change: transform, opacity;
    transition: opacity 1s var(--ease-cinematic), transform 1s var(--ease-cinematic);
}
.reveal-fade { transform: translateY(0) translateZ(0); }
.reveal.in-view { opacity: 1; transform: translateY(0) translateZ(0); }

.reveal-delay-1 { transition-delay: 150ms; }
.reveal-delay-2 { transition-delay: 300ms; }
.reveal-delay-3 { transition-delay: 450ms; }

/* ========================================================
   MINIMALIST HEADER & NAVIGATION
   ======================================================== */
.glass-header {
    position: fixed; top: 0; left: 0; width: 100%;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000; padding: 2rem 0;
    transition: background-color var(--t-ui-medium) var(--ease-ui), transform var(--t-ui-medium) var(--ease-cinematic), padding var(--t-ui-medium) ease;
}
.glass-header.nav-scrolled { background-color: var(--surface-glass); padding: 1.3rem 0; }
.glass-header.nav-hidden { transform: translateY(-100%); }

.nav-container { display: flex; justify-content: space-between; align-items: center; width: 88%; max-width: 1300px; margin: 0 auto; }
.brand-logo { text-decoration: none; display: flex; flex-direction: column; }
.logo-main { font-family: var(--font-display); font-size: 2.2rem; letter-spacing: 3px; color: var(--text-primary); font-weight: 400; text-transform: uppercase; }
.logo-sub { font-size: 0.7rem; letter-spacing: 5px; color: var(--accent-brand); font-weight: 500; text-transform: uppercase; margin-top: 2px; }

.nav-links { display: flex; gap: 4rem; }
.nav-links a {
    text-decoration: none; color: var(--text-muted); font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase;
    position: relative; padding: 0.5rem 0; font-weight: 500; transition: color var(--t-ui-fast) ease;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 1px;
    background-color: var(--text-primary); transition: width var(--t-ui-fast) var(--ease-ui), left var(--t-ui-fast) var(--ease-ui);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; left: 0; }

/* ========================================================
   HOMEPAGE HERO SECTION
   ======================================================== */
.homepage-hero {
    height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
    position: relative; overflow: hidden; background-color: #EFEBE4;
}
.parallax-wrapper {
    position: absolute; top: -10%; left: 0; width: 100%; height: 120%; z-index: 0;
}
.parallax-bg {
    width: 100%; height: 100%;
    background-position: center 35%;
    background-size: cover;
    background-repeat: no-repeat;
    will-change: transform;
}
.hero-background-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(250,248,245,0.1) 0%, rgba(250,248,245,0.85) 100%);
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 0 2rem; }
.hero-tagline { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 6px; color: var(--text-primary); font-weight: 600; display: block; margin-bottom: 2rem; }
.hero-title { font-family: var(--font-display); font-size: 5.5rem; font-weight: 400; line-height: 1.1; margin: 0 0 2rem; color: var(--text-primary); letter-spacing: -1px; }
.hero-lead { font-size: 1.1rem; color: var(--text-muted); font-weight: 300; margin: 0 auto 4rem; max-width: 650px; line-height: 1.8; }
.hero-actions { display: flex; gap: 1.5rem; justify-content: center; }

/* ========================================================
   HIGH-CONTRAST HOVER BUTTON SYSTEMS (FIXED LEGIBILITY)
   ======================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1.2rem 3rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 3px;
    text-transform: uppercase; text-decoration: none; border: 1px solid transparent;
    position: relative; overflow: hidden; z-index: 1;
    transition: transform var(--t-ui-medium) var(--ease-ui), border-color var(--t-ui-medium) var(--ease-ui);
}
.btn-text { position: relative; z-index: 2; pointer-events: none; transition: color var(--t-ui-medium) var(--ease-ui); }
.btn-hover-fill {
    position: absolute; top: 100%; left: 0; width: 100%; height: 100%;
    z-index: 1; transform-origin: top center; transition: transform var(--t-ui-medium) var(--ease-ui);
}

/* Solid Button: Default dark background, light text. Hover flips to complete contrasting white background with dark text */
.btn-solid { background-color: var(--text-primary); border-color: var(--text-primary); }
.btn-solid .btn-text { color: var(--bg-canvas); }
.btn-solid .btn-hover-fill { background-color: var(--bg-canvas); transform: scaleY(0); }
.btn-solid:hover { border-color: var(--text-primary); }
.btn-solid:hover .btn-text { color: var(--text-primary); } /* Absolute Dark High Contrast */
.btn-solid:hover .btn-hover-fill { transform: scaleY(1); transform-origin: bottom center; }

/* Outline Button: Default thin border, dark text. Hover fills dark, flipping text to high contrast white */
.btn-outline { border-color: rgba(26, 25, 23, 0.3); color: var(--text-primary); }
.btn-outline .btn-text { color: var(--text-primary); }
.btn-outline .btn-hover-fill { background-color: var(--text-primary); transform: scaleY(0); }
.btn-outline:hover .btn-text { color: var(--bg-canvas); } /* Absolute Light High Contrast */
.btn-outline:hover .btn-hover-fill { transform: scaleY(1); transform-origin: bottom center; }

/* ========================================================
   THE ATELIER PHILOSOPHY CONTENT BLOCK
   ======================================================== */
.philosophy-section { padding: 11rem 0; border-top: 1px solid var(--border-glass); background-color: #FDFDFD; }
.grid-half { display: grid; grid-template-columns: 1fr 1fr; gap: 7rem; align-items: center; }
.phil-image { position: relative; height: 680px; overflow: hidden; }
.phil-image img { width: 100%; height: 100%; object-fit: cover; }
.phil-text h2 { font-family: var(--font-display); font-size: 4.2rem; line-height: 1.1; margin: 0 0 2.5rem; font-weight: 400; color: var(--text-primary); }
.phil-text p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.9; margin-bottom: 1.8rem; font-weight: 300; }

/* ========================================================
   EDITORIAL PORTFOLIO LOOKBOOK ARCHIVE
   ======================================================== */
.subpage-wrapper { padding: 11rem 0 8rem; min-height: 60vh; }
.section-intro { text-align: center; max-width: 700px; margin: 0 auto 6rem; }
.tagline { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 5px; color: var(--accent-brand); display: block; margin-bottom: 1.5rem; font-weight: 600; }
.section-intro h2 { font-family: var(--font-display); font-size: 4.8rem; font-weight: 400; margin: 0 0 2rem; line-height: 1.1; color: var(--text-primary); }
.section-intro p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; font-weight: 300; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 3rem; }
.portfolio-card {
    position: relative; height: 600px; background: var(--bg-surface-dark);
    overflow: hidden; text-decoration: none; color: inherit; display: block; cursor: pointer;
}
.portfolio-card:hover { transform: scale(0.99); transition: transform var(--t-ui-medium) var(--ease-ui); }

.card-media-box { width: 100%; height: 100%; position: relative; overflow: hidden; }
.card-media-box img, .card-media-box video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.5s var(--ease-cinematic); }
.portfolio-card:hover .card-media-box img, .portfolio-card:hover .card-media-box video { transform: scale(1.04); }

/* Perfect Contrast Text Overlays on Grid Hover */
.card-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 3.5rem; box-sizing: border-box;
    background: rgba(26, 25, 23, 0.85); /* Solid high contrast dark background on hover */
    display: flex; flex-direction: column; justify-content: flex-end;
    opacity: 0; transition: opacity 0.5s var(--ease-ui);
}
.portfolio-card:hover .card-overlay { opacity: 1; }

.card-tag { font-size: 0.75rem; text-transform: uppercase; color: var(--accent-brand); letter-spacing: 3px; display: block; margin-bottom: 0.8rem; font-weight: 600; }
.card-overlay h3 { font-family: var(--font-display); font-size: 2.6rem; margin: 0; font-weight: 400; color: #FFFFFF; letter-spacing: 0.5px; }

/* Interactive Virtual Atelier Canvas Frame */
.upload-slot { border: 1px solid var(--accent-brand); background: transparent; height: 600px; }
.upload-label { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 3.5rem; box-sizing: border-box; text-align: center; cursor: pointer; }
.upload-icon-box { font-family: var(--font-display); font-size: 3rem; font-weight: 300; color: var(--text-primary); margin-bottom: 1rem; transition: transform 0.4s ease; }
.upload-slot:hover .upload-icon-box { transform: rotate(90deg); }
.upload-label h3 { font-family: var(--font-display); font-size: 2.2rem; margin: 0 0 1rem; font-weight: 400; color: var(--text-primary); }
.upload-label p { margin: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; max-width: 300px; font-weight: 300; }

.animate-entry { animation: cardRevealEntry 0.7s var(--ease-ui) forwards; }
@keyframes cardRevealEntry {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   ATELIER CHAIR PORTAL BOOKING FORM
   ======================================================== */
.contact-image { position: relative; height: 100%; min-height: 680px; }
.contact-image img { width: 100%; height: 100%; object-fit: cover; }
.floating-form .form-row { position: relative; margin-bottom: 4rem; }
.floating-form input, .floating-form textarea, .floating-form select {
    width: 100%; padding: 1.2rem 0; background: transparent; border: none;
    border-bottom: 1px solid rgba(26, 25, 23, 0.15); color: var(--text-primary);
    font-family: var(--font-body); font-size: 1rem; box-sizing: border-box;
}
.floating-form select { color: var(--text-muted); font-weight: 400; cursor: pointer; -webkit-appearance: none; appearance: none; }
.floating-form select option { background-color: var(--bg-canvas); color: var(--text-primary); }
.floating-form input:focus, .floating-form textarea:focus, .floating-form select:focus { outline: none; border-color: transparent; }
.input-bar { position: absolute; bottom: 0; left: 50%; width: 0; height: 1px; background-color: var(--text-primary); transition: width 0.5s var(--ease-ui), left 0.5s var(--ease-ui); }
.floating-form input:focus ~ .input-bar, .floating-form textarea:focus ~ .input-bar, .floating-form select:focus ~ .input-bar { width: 100%; left: 0; }
.floating-form label {
    position: absolute; left: 0; top: 1.2rem; color: var(--text-muted); font-size: 1rem;
    transition: transform 0.4s var(--ease-ui), color 0.4s ease; pointer-events: none; transform-origin: left top; font-weight: 300;
}
.floating-form input:focus ~ label, .floating-form input:not(:placeholder-shown) ~ label,
.floating-form textarea:focus ~ label, .floating-form textarea:not(:placeholder-shown) ~ label,
.floating-form select:focus ~ label, .floating-form select:valid ~ label {
    transform: translateY(-2.2rem) scale(0.8); color: var(--text-primary); letter-spacing: 2px; text-transform: uppercase; font-weight: 600;
}
.block-btn { width: 100%; padding: 1.5rem 0; font-size: 0.85rem; }

/* ========================================================
   GLOBAL STUDIO FOOTER
   ======================================================== */
.site-footer { background-color: var(--bg-surface-dark); padding: 8rem 0 4rem; position: relative; z-index: 10; border-top: 1px solid var(--border-glass); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 5rem; margin-bottom: 5rem; }
.footer-col h3 { font-family: var(--font-body); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px; color: var(--text-primary); margin-bottom: 2rem; font-weight: 700; }
.footer-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; max-width: 360px; margin-top: 1.5rem; font-weight: 300; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 1.2rem; }
.footer-col ul li a { text-decoration: none; color: var(--text-muted); font-size: 0.9rem; font-weight: 400; transition: color 0.3s ease; }
.footer-col ul li a:hover { color: var(--text-primary); }
.contact-item { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1.5rem; font-weight: 300; }
.contact-item strong { display: block; font-size: 0.7rem; color: var(--text-primary); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.4rem; font-weight: 600; }
.contact-item a { color: var(--text-muted); text-decoration: none; transition: color 0.3s ease; }
.contact-item a:hover { color: var(--accent-brand); }
.footer-divider { border: none; height: 1px; background: var(--border-glass); margin-bottom: 3rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 4rem; }
.legal-wrapper { max-width: 75%; }
.copyright { font-size: 0.85rem; margin-bottom: 0.6rem; font-weight: 400; color: var(--text-muted); }
.uk-statutory { font-size: 0.75rem; color: #99938B; line-height: 1.7; margin: 0; }
.privacy-links { display: flex; gap: 2rem; }
.privacy-links a { font-size: 0.8rem; color: var(--text-muted); text-decoration: none; transition: color 0.3s ease; font-weight: 400; letter-spacing: 1px; }
.privacy-links a:hover { color: var(--text-primary); }

/* ========================================================
   RESPONSIVE HARDWARE MEDIA QUERY PROFILE
   ======================================================== */
@media (max-width: 1024px) {
    .hero-title { font-size: 4rem; }
    .grid-half { grid-template-columns: 1fr; gap: 4rem; }
    .phil-image { height: 480px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .brand-col { grid-column: span 2; }
    .footer-bottom { flex-direction: column; gap: 2rem; }
    .legal-wrapper { max-width: 100%; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.8rem; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .phil-text h2 { font-size: 2.8rem; }
    .nav-links { display: none; }
}