/* --------------------------------------------------------------------------
   MAURYARTE ARCHITECTURE — Layout & Spacing
   -------------------------------------------------------------------------- */

#smooth-scroll-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#smooth-scroll-content {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2.5rem;
}

.section {
    padding: 8rem 2rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.grid-structural {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .section {
        padding: 6rem 2rem;
    }
    #smooth-scroll-wrapper {
        position: relative !important;
        height: auto !important;
        overflow: visible !important;
    }
    #smooth-scroll-content {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
    }
}

/* --------------------------------------------------------------------------
   MAURYARTE DUAL EXPERIENCE SYSTEM — Mode Switcher Styles
   -------------------------------------------------------------------------- */

@media (min-width: 1025px) {
    .main-header {
        padding: 2rem clamp(3rem, 5vw, 6rem) !important;
    }
    .header-container {
        max-width: 1700px !important; /* pull logo and controls further out on wide displays */
    }
    .header-switcher-center {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        display: flex !important;
        z-index: 100 !important;
    }
    .segmented-switcher {
        width: clamp(440px, 28vw, 560px) !important;
        display: flex !important;
    }
    .switcher-btn {
        flex: 1;
        text-align: center;
    }
}

.brand-logo {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem !important;
    cursor: pointer;
}

.brand-logo-img {
    height: 23px; /* 25% larger visual presence */
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    transition: transform 0.4s ease;
}

.logo-subtext {
    font-family: var(--font-accent);
    font-size: 0.58rem; /* larger, clearly legible */
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: #A47D4D !important;
    border-left: none;
    margin-left: 0.9rem; /* closer spacing */
    line-height: 1;
    white-space: nowrap;
    opacity: 0.75; /* initial reduced opacity */
    transition: opacity 0.4s ease, color 0.4s ease;
}

/* Micro-interactions on brand hover */
.brand-logo:hover .brand-logo-img {
    transform: scale(1.03);
}

.brand-logo:hover .logo-subtext {
    opacity: 1 !important;
}

/* Right-side controls alignment stacking below hamburger */
.header-controls {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 0.8rem !important;
}

.controls-top-row {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Center Segmented Switcher Layout matching home.jpg */
.header-switcher-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.segmented-switcher {
    display: flex;
    align-items: center;
    background: rgba(11, 11, 11, 0.2) !important; /* Very subtle transparent glass */
    border: 1px solid rgba(var(--switcher-accent-rgb), 0.8) !important; /* Thin elegant dynamic border */
    padding: 0px;
    border-radius: 0px; /* Rectangular architectural layout */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    position: relative;
}

.segmented-switcher button:not(:last-child) {
    border-right: 1px solid rgba(var(--switcher-accent-rgb), 0.8) !important; /* Middle divider lines */
}

.switcher-btn {
    background: none;
    border: none;
    padding: 0.8rem 2.0rem;
    font-family: var(--font-accent);
    cursor: pointer;
    position: relative;
    transition: all 400ms cubic-bezier(.16,1,.3,1) !important;
    line-height: 1.3;
    color: rgba(245, 242, 236, 0.45) !important; /* Inactive text - always readable */
    border-bottom: 2px solid rgba(255, 255, 255, 0.08) !important; /* Inactive border */
    opacity: 1 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.switcher-main-label {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: block;
}

.switcher-subtext {
    font-size: 0.44rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.65;
    margin-top: 0.2rem;
    display: block;
}

.switcher-btn.active {
    color: #ffffff !important; /* Active high contrast white text */
    border-bottom: 2px solid transparent !important;
    border-image: linear-gradient(to right, var(--switcher-accent-primary) 0%, var(--switcher-accent-secondary) 50%, var(--switcher-accent-primary) 100%) 1 !important; /* Active border gradient */
    text-shadow: 0 0 12px rgba(var(--switcher-accent-rgb), 0.55), 0 0 2px rgba(255, 255, 255, 0.25) !important;
    box-shadow: inset 0 0 12px rgba(var(--switcher-accent-rgb), 0.06) !important;
}

/* Active glowing dynamic indicator dot below the active box */
.switcher-btn::before {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--switcher-accent-secondary);
    box-shadow: 0 0 8px rgba(var(--switcher-accent-rgb), 0.55), 0 0 4px rgba(var(--switcher-accent-rgb), 0.3);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 100;
}

.switcher-btn.active::before {
    transform: translateX(-50%) scale(1);
}

.switcher-btn:hover {
    transform: scale(1.03) !important;
    color: #F5F2EC !important; /* Brighter text on hover */
    opacity: 1 !important;
    text-shadow: 0 0 10px rgba(var(--switcher-accent-rgb), 0.75), 0 0 3px rgba(var(--switcher-accent-rgb), 0.5) !important;
    box-shadow: inset 0 0 15px rgba(var(--switcher-accent-rgb), 0.15) !important;
    border-bottom: 2px solid transparent !important;
    border-image: linear-gradient(to right, var(--switcher-accent-primary) 0%, var(--switcher-accent-secondary) 50%, var(--switcher-accent-primary) 100%) 1 !important;
}

/* Specific Active Indicators / Custom border gradients */
body.mode-visual-lab .switcher-btn.active {
    border-image: linear-gradient(to right, #008080 0%, #00f0ff 50%, var(--accent-gold, #d1b28a) 100%) 1 !important;
}
body.mode-visual-lab .switcher-btn:hover {
    border-image: linear-gradient(to right, #008080 0%, #00f0ff 50%, var(--accent-gold, #d1b28a) 100%) 1 !important;
}


/* Page Universe Cinematic Transition */
body {
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

body.switching-mode {
    opacity: 0 !important;
}

/* Responsiveness overrides for clean mobile/tablet presentation */
/* Responsiveness overrides for clean mobile/tablet presentation */
@media (max-width: 1024px) {
    .main-header {
        padding: 1.5rem 1.5rem !important;
    }
    .header-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.2rem !important;
        width: 100% !important;
        position: static !important; /* Make static so absolute controls position relative to main-header wrapper */
    }
    .brand-logo {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.3rem !important;
        margin-left: 0 !important;
        padding-right: 5.5rem !important; /* Prevent text overlap under absolute hamburger menu */
    }
    .logo-subtext {
        display: block !important;
        margin-left: 0 !important;
        font-size: 0.45rem !important;
        letter-spacing: 0.22em !important;
        text-align: left !important;
        color: #A47D4D !important;
        opacity: 0.8 !important;
    }
    /* Lock Hamburger and Volume Control to the very top-right edge of the screen */
    .header-controls {
        position: absolute !important;
        top: 0 !important; /* Completely flush with the top edge of the screen */
        right: 1.5rem !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 1rem !important;
        margin-top: 0 !important;
        z-index: 1000 !important;
    }
    .controls-top-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    /* Switcher spans full width, centered below */
    .header-switcher-center {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 0.2rem !important;
    }
    .segmented-switcher {
        width: 100% !important;
        max-width: 580px !important;
        display: flex !important;
    }
    .switcher-btn {
        flex: 1 !important;
        padding: 0.6rem 0.3rem !important;
    }
    .switcher-main-label {
        font-size: 0.5rem !important;
        letter-spacing: 0.15em !important;
    }
    .switcher-subtext {
        font-size: 0.38rem !important;
        letter-spacing: 0.1em !important;
        margin-top: 0.15rem !important;
    }
    /* Lock Skip button to the bottom viewport center, sutilly floating above progress dots */
    .header-skip-btn {
        position: fixed !important;
        bottom: 7.2rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: auto !important;
        right: auto !important;
        width: auto !important;
        max-width: none !important;
        white-space: nowrap !important;
        align-self: auto !important;
        z-index: 101 !important;
    }
    /* Shift the subpage hero down so it starts below the header, preventing overlap on load */
    .subpage-hero {
        margin-top: 135px !important;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 1.2rem 1rem !important;
    }
    .header-volume {
        display: none !important; /* Hide volume slider on very small screens to avoid clutter */
    }
    .header-controls {
        top: 1.2rem !important;
        right: 1rem !important;
    }
}

/* Architecture Mode Homepage Subtitle Color Refinement */
body.mode-architecture .intro-slide-tagline {
    color: #AA894E !important;
    font-weight: 500 !important; /* thickened text for clarity */
}

/* Atelier Button Header Integration & Underline Glow */
.header-skip-btn {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin-top: 0.2rem;
    align-self: flex-end;
}

.header-skip-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 30px;
    height: 1px;
    background-color: #AC834B;
    box-shadow: 0 0 6px #AC834B;
    transition: transform 0.4s cubic-bezier(.16,1,.3,1);
}

.header-skip-btn:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* --------------------------------------------------------------------------
   SORA HAVENS — Independent Header Switcher Positioning
   -------------------------------------------------------------------------- */
.header-sora-portal {
    display: none !important;
}
