/* ────────────────────────────────────────────────────────────────────────
   MAURYARTE SYSTEM DESIGN STYLESHEET
   Aesthetics: Cinematic, Editorial, Silent Luxury, Minimal
   ──────────────────────────────────────────────────────────────────────── */

/* Typography Definition */
@font-face {
    font-family: 'Neue Montreal';
    src: url('../assets/fonts/NeueMontreal-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Neue Montreal';
    src: url('../assets/fonts/NeueMontreal-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Neue Montreal';
    src: url('../assets/fonts/NeueMontreal-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('../assets/fonts/Satoshi-Light.woff2') format('woff2'),
         url('../assets/fonts/Satoshi-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('../assets/fonts/Satoshi-Regular.woff2') format('woff2'),
         url('../assets/fonts/Satoshi-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('../assets/fonts/Manrope-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('../assets/fonts/Manrope-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Brand Variables */
:root {
    --bg-color: #0B0F14;
    --text-primary: #FFFFFF;
    --accent-cyan: #26D2D7;
    --accent-gold: #D1B28A;
    --soft-gray: #AEB4BA;
    --dark-surface: #121820;
    --surface-border: rgba(255, 255, 255, 0.05);
    
    --font-display: 'Neue Montreal', sans-serif;
    --font-body: 'Satoshi', sans-serif;
    --font-accent: 'Manrope', sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 300;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Site Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    z-index: 100;
    background: transparent;
    transition: opacity 0.5s ease;
}

.logo-sans {
    height: 20px;
    object-fit: contain;
    display: block;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    padding: 10px 0;
    position: relative;
    transition: opacity 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-cyan);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-item.has-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Category Dropdown Navigation */
.category-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 260px;
    background-color: var(--dark-surface);
    border: 1px solid var(--surface-border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    backdrop-filter: blur(20px);
}

.nav-item.has-dropdown:hover .category-dropdown,
.category-dropdown.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.category-filter {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--soft-gray);
    text-transform: uppercase;
    transition: color 0.3s, padding-left 0.3s;
}

.category-filter:hover,
.category-filter.active {
    color: var(--accent-cyan);
    padding-left: 6px;
}

.sound-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    font-family: var(--font-accent);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s;
    margin-top: 15px; /* offset inside footer */
}

.sound-toggle:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.menu-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-icon-img {
    height: 14px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}

.menu-hamburger:hover .menu-icon-img {
    opacity: 1;
    transform: scale(1.1);
}

/* ────────────────────────────────────────────────────────────────────────
   LEFT FLOATING NAVIGATION SYSTEM
   ──────────────────────────────────────────────────────────────────────── */

/* Left Floating Trigger Line */
.left-trigger-system {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.trigger-line {
    width: 2px;
    height: 80px;
    background-color: var(--accent-cyan);
    opacity: 0.4;
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}

.left-trigger-system:hover .trigger-line {
    height: 180px;
    opacity: 1;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.left-menu-drawer {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 400px;
    transform: translateX(-100%);
    background-color: transparent;
    border-right: none;
    z-index: 200;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.left-menu-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 30px;
    border-bottom: none;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through except close button */
}

.drawer-close {
    pointer-events: auto; /* Enable close button click */
}

.drawer-label {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--soft-gray);
}

.drawer-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.drawer-close:hover {
    color: var(--accent-cyan);
}

/* Infinite Scroll List */
.left-menu-scroll-container {
    height: 50vh;
    max-height: 420px;
    margin: auto 0;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-right: 10px; /* breathing room for category peek */
    -webkit-overflow-scrolling: touch; /* Touch momentum scrolling */
}

/* Disable hover styles during scrolling to ensure only the center item highlights */
.left-menu-scroll-container.is-scrolling .left-menu-item {
    pointer-events: none !important;
}

/* Picture Element block containment to avoid collapse */
.image-wrapper picture,
.hero-image-container picture,
.next-banner-image-wrapper picture {
    display: block;
    width: 100%;
    height: 100%;
}

.process-item picture {
    display: block;
    width: 100%;
    text-align: center;
}

.left-menu-scroll-container::-webkit-scrollbar {
    display: none;
}

.left-menu-infinite-wrapper {
    display: flex;
    flex-direction: column;
}

.left-menu-loop-segment {
    display: flex;
    flex-direction: column;
}

.left-menu-item {
    position: relative;
    height: 46px; /* Increased item height to give typographic breathing room */
    display: flex;
    align-items: center;
    padding: 0 32px;
    opacity: 0.15;
    transform: scale(0.95);
    /* Disable transitions for transform and opacity because they are updated in RAF scroll loop */
    transition: filter 0.1s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Center snapped item state */
.left-menu-item.active {
    /* JS drives transform and opacity inline. CSS only handles styling accents */
    filter: drop-shadow(0 4px 12px rgba(38, 210, 215, 0.12));
}

/* Hover override triggers - visual states are managed smoothly in JS to prevent flickering */
.left-menu-item:hover {
    cursor: pointer;
}

.left-menu-link {
    display: flex;
    flex: 1;
    align-items: center;
}

.left-menu-title {
    font-family: var(--font-display);
    font-size: 0.85rem; /* Reduced font size to avoid truncation */
    font-weight: 300;
    letter-spacing: 0.05em;
    white-space: nowrap;
    display: block;
    color: var(--text-primary);
    transition: color 0.1s cubic-bezier(0.16, 1, 0.3, 1);
    flex: 1;
    
    /* Anti-aliasing and rendering stability under 3D transforms */
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* CATEGORY CALLOUT - aligned to the right inside the drawer */
.left-menu-category {
    position: absolute;
    left: 290px; /* Aligned column at 290px */
    font-family: var(--font-accent);
    font-weight: 200; /* ExtraLight */
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    color: var(--soft-gray);
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.35s ease, color 0.3s ease, transform 0.35s ease;
    transform: translateX(-10px);
    pointer-events: none;
    z-index: 10;
}

.left-menu-item.active .left-menu-category {
    opacity: 1;
    color: #ffffff !important; /* Active text turns bright white */
    transform: translateX(0);
}

/* Subtle accent line before category */
.left-menu-item.active .left-menu-category::before {
    content: '';
    position: absolute;
    left: -16px; /* Shifted left relative to category starting point */
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: linear-gradient(to bottom, transparent, var(--accent-cyan), transparent);
    opacity: 0.6;
}

.left-menu-item.active .left-menu-title {
    font-weight: 400;
}

/* Editorial Cinematic Floating Information Box (centered in the right gallery space) */
.floating-info-box {
    position: fixed;
    pointer-events: none;
    z-index: 250;
    width: 320px;
    left: 60%; /* Centered horizontally in the gallery area */
    top: 50%;
    background-color: rgba(18, 24, 32, 0.88); /* Silent luxury dark surface */
    border: 1px solid var(--surface-border);
    padding: 24px 30px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.floating-info-box.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-cat {
    font-family: var(--font-accent);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

.info-desc {
    font-family: var(--font-body);
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.info-year {
    font-family: var(--font-accent);
    font-size: 0.65rem;
    color: var(--soft-gray);
}

/* ────────────────────────────────────────────────────────────────────────
   HOMEPAGE GALERIA INFINITA (Alternating Layout)
   ──────────────────────────────────────────────────────────────────────── */

.homepage-gallery {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-height: 100vh;
    padding-top: 80px; /* offset header */
    background-color: var(--bg-color);
    transition: filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Body overlay during menu interaction */
body.menu-open {
    overflow: hidden !important;
}
body.menu-open .homepage-gallery {
    filter: brightness(0.35); /* Soft dimming, no blur to keep protagonist gallery visible */
    opacity: 0.6; /* Cinematic dimming overlay */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    margin: 0;
    padding: 0;
}

.gallery-item.full-width {
    width: 100%;
    height: 70vh;
}

.gallery-item.half-width {
    width: 50%;
    height: 70vh;
}

/* Cinematic Video Reel Integration */
.gallery-item.hero-reel-item video,
.gallery-item.hero-reel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item.hero-reel-item:hover video,
.gallery-item.hero-reel-item:hover img {
    transform: scale(1.02);
}

/* Standalone Loading Hero rules & Full Responsive Redesign */
body.loading-page-body .loading-hero {
    height: auto;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 130px 6% 30px 6%; /* Positioned slightly above true center */
    box-sizing: border-box;
    overflow: visible;
    background-color: var(--bg-color);
}

body.loading-page-body .hero-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9; /* Lock aspect ratio to native 21:9 */
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    background-color: #080b0f;
}

body.loading-page-body #loading-page-video,
body.loading-page-body #loading-page-resting-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Full frame visibility, no cropping */
    display: block;
}

/* Responsive max-width system */
@media (min-width: 1600px) {
    body.loading-page-body .hero-video-container {
        max-width: 1400px;
    }
}

@media (max-width: 1599px) and (min-width: 1025px) {
    body.loading-page-body .hero-video-container {
        max-width: 1100px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    body.loading-page-body .hero-video-container {
        max-width: 90vw;
    }
}

@media (max-width: 768px) {
    body.loading-page-body .loading-hero {
        padding: 95px 4% 15px 4%; /* Sits higher up below top navigation on mobile */
        min-height: auto;
    }
    body.loading-page-body .hero-video-container {
        width: 100%;
        max-width: 100%; /* Width-based containment */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }
}

/* Spacing for minimal supporting text below video */
body.loading-page-body .project-meta-info {
    border-bottom: none !important;
    padding: 10px 6% 40px 6% !important; /* Minimal breathing space below video */
    min-height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.loading-page-body .project-cinematic-desc {
    font-family: var(--font-accent);
    font-weight: 200; /* Manrope ExtraLight */
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    line-height: 1.8;
    color: var(--soft-gray);
    opacity: 0.65;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    body.loading-page-body .project-meta-info {
        padding: 10px 6% 30px 6% !important;
    }
    body.loading-page-body .project-cinematic-desc {
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        line-height: 1.7;
    }
}

.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.95);
    width: 0 !important;
    height: 0 !important;
    pointer-events: none;
}

.gallery-spacer {
    width: 100%;
    height: 12vh;
    background-color: var(--bg-color);
}

.gallery-link {
    display: block;
    width: 100%;
    height: 100%;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: #080b0f;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s;
}

/* Lazy loading styles */
.lazy-load {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Quiet Atmospheric Hover */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 15, 20, 0.85) 0%, rgba(11, 15, 20, 0.1) 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4% 5%;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.03);
    filter: brightness(0.8);
}

.overlay-meta {
    font-family: var(--font-accent);
    font-size: 0.7rem;
    font-weight: 200;
    letter-spacing: 0.15em;
    color: var(--accent-cyan);
    margin-bottom: 10px;
    text-transform: uppercase;
    transform: translateY(15px);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.meta-divider {
    color: var(--soft-gray);
    margin: 0 4px;
}

.overlay-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    transform: translateY(15px);
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover .overlay-meta,
.gallery-item:hover .overlay-title {
    transform: translateY(0);
}

/* ────────────────────────────────────────────────────────────────────────
   PROJECT PAGE LAYOUT (Kuciara-Inspired)
   ──────────────────────────────────────────────────────────────────────── */

.project-page-body {
    background-color: var(--bg-color);
}

.project-hero {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 0 6% 6% 6%;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 110%; /* slightly taller for parallax */
    object-fit: cover;
    filter: brightness(0.65);
    transform: translateY(0);
}

.hero-text-overlay {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-cat-tag {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    line-height: 1.1;
}

/* Project Metadata Editorial Columns */
.project-meta-info {
    width: 100%;
    display: grid;
    grid-template-columns: 35% 65%;
    padding: 100px 6%;
    border-bottom: 1px solid var(--surface-border);
    background-color: var(--bg-color);
}

.meta-column-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.meta-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-label {
    font-family: var(--font-accent);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--soft-gray);
    text-transform: uppercase;
}

.meta-value {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-primary);
}

.meta-column-right {
    padding-left: 10%;
    display: flex;
    align-items: flex-start;
}

.project-cinematic-desc {
    font-family: var(--font-body);
    font-size: 1.4rem;
    line-height: 1.7;
    font-weight: 300;
    color: var(--soft-gray);
}

/* Process Section */
.project-process-section {
    padding: 100px 6%;
    background-color: var(--bg-color);
}

.section-title-wrapper {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-tag {
    font-family: var(--font-accent);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
}

.section-heading {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.process-editorial-gallery {
    display: flex;
    flex-direction: column;
    gap: 120px; /* wide spacing */
}

.process-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process-item img, 
.process-item video {
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.media-caption {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.media-caption-title {
    font-family: var(--font-accent);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--soft-gray);
    text-transform: uppercase;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(38, 210, 215, 0.3); /* Cyan accent */
}

.media-caption-title.accent-gold {
    border-bottom: 1px solid rgba(209, 178, 138, 0.3); /* Gold accent */
}

.media-caption-category {
    font-family: var(--font-accent);
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    color: var(--soft-gray);
    opacity: 0.55;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ────────────────────────────────────────────────────────────────────────
   NEXT PROJECT BANNER LOOP
   ──────────────────────────────────────────────────────────────────────── */

.next-project-banner {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
    border-top: 1px solid var(--surface-border);
}

.next-project-link {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.next-banner-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-next-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35);
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.next-project-link:hover .banner-next-img {
    transform: scale(1.04);
    filter: brightness(0.45);
}

.next-text-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
}

.next-tag-label {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    display: block;
    margin-bottom: 10px;
}

.next-project-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.next-arrow-btn {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    border-bottom: 1px solid var(--text-primary);
    padding-bottom: 4px;
    transition: border-color 0.3s, color 0.3s;
}

.next-project-link:hover .next-arrow-btn {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

/* ────────────────────────────────────────────────────────────────────────
   ABOUT PAGE LAYOUT
   ──────────────────────────────────────────────────────────────────────── */

.about-main {
    padding: 180px 0 100px 0; /* Removing side padding for full-screen banner flexibility */
    max-width: 100%;
    margin: 0 auto;
    background-color: var(--bg-color);
}

/* Base constraints for about page grid sections to maintain consistent alignment */
.about-hero,
.about-manifesto-section,
.about-bio-section,
.about-archive-section,
.about-contact-section {
    padding: 0 8%;
    max-width: 1400px;
    margin: 0 auto 140px auto; /* Generous negative space between blocks */
}

.about-hero {
    margin-bottom: 120px;
}

.about-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 50px;
}

.about-tag {
    font-family: var(--font-accent);
    font-weight: 200; /* Manrope ExtraLight */
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

.about-heading {
    font-family: var(--font-display);
    font-size: 4.8rem; /* Oversized cinematic heading */
    font-weight: 300; /* Neue Montreal Light */
    letter-spacing: 0.04em;
    color: var(--text-primary);
}

.about-cinematic-statement-wrapper {
    max-width: 950px;
    margin-top: 40px;
}

.about-cinematic-statement {
    font-family: var(--font-display);
    font-size: 2.4rem; /* Oversized quote */
    font-weight: 300;
    line-height: 1.45;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* Fullscreen/Near-fullscreen visual banner with parallax */
.about-visual-banner {
    width: 100%;
    height: 70vh;
    overflow: hidden;
    position: relative;
    margin-bottom: 140px;
}

.about-banner-container {
    width: 100%;
    height: 120%; /* Extra height to allow room for parallax translating */
    position: absolute;
    top: -10%;
    left: 0;
}

.about-parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) contrast(1.05); /* Atmosphere tuning */
    will-change: transform;
}

/* Editorial Grids (Asymmetrical & Spacious) */
.about-grid-manifesto,
.about-grid-archive,
.about-grid-contact {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 5%;
    align-items: start;
}

.about-grid-editorial {
    display: grid;
    grid-template-columns: 48% 48%;
    gap: 4%;
    align-items: start;
}

.manifesto-col-right {
    max-width: 780px;
}

.lead-paragraph {
    font-size: 1.4rem !important; /* Lead text stands out in scale */
    line-height: 1.75 !important;
    color: var(--text-primary) !important;
    margin-bottom: 40px;
}

.editorial-label {
    font-family: var(--font-accent);
    font-weight: 200; /* Manrope ExtraLight */
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--soft-gray);
    margin-bottom: 24px;
    display: block;
    text-transform: uppercase;
}

.satoshi-body-light {
    font-family: var(--font-body);
    font-size: 1.12rem; /* Satoshi Light/Regular */
    font-weight: 300;
    line-height: 1.85;
    color: var(--soft-gray);
    margin-bottom: 30px;
}

/* Quote Banner */
.about-quote-banner {
    width: 100%;
    background-color: var(--dark-surface);
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
    padding: 100px 8%;
    margin-bottom: 140px;
}

.quote-content {
    max-width: 1100px;
    margin: 0 auto;
}

.cinematic-quote {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--accent-gold); /* Gold used sparingly for the key manifesto quote */
    letter-spacing: 0.02em;
}

/* Contact layout */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-link-item {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--text-primary);
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
    width: fit-content;
}

.contact-link-item:hover {
    color: var(--accent-cyan);
    padding-left: 10px;
}

/* Site Footer */
.site-footer {
    padding: 60px 4%;
    text-align: center;
    border-top: 1px solid var(--surface-border);
    background-color: var(--bg-color);
}

.site-footer p {
    font-family: var(--font-accent);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--soft-gray);
}

/* Sound Control Group in Footer */
.sound-control-group {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 15px;
}

.sound-control-group .sound-toggle {
    margin-top: 0 !important;
}

/* Volume Slider Container */
.volume-slider-container {
    display: inline-flex;
    align-items: center;
    width: 60px; /* Ultra-minimalist width */
    height: 14px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.volume-slider-container.header-volume {
    margin-right: -12px; /* Pull it slightly closer to the first menu item */
}

.volume-slider-container:hover,
.volume-slider-container:active,
.volume-slider-container:focus-within {
    opacity: 0.95;
}

.volume-slider-container.muted {
    opacity: 0.1 !important;
    pointer-events: none;
}

/* The Slider Input - Hide default browser styles completely */
.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 1px; /* Ultra-thin track line */
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    border: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
    transition: background 0.3s;
}

/* Webkit browser tracks (Chrome, Safari, Edge) */
.volume-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
}

/* Webkit slider thumb */
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 6px; /* Ultra-small thumb knob */
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
    cursor: pointer;
    margin-top: -2.5px; /* Center thumb on 1px track */
    box-shadow: 0 0 2px var(--accent-cyan);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.volume-slider-container:hover .volume-slider::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 0 6px var(--accent-cyan);
}

/* Firefox tracks */
.volume-slider::-moz-range-track {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
}

/* Firefox slider thumb */
.volume-slider::-moz-range-thumb {
    width: 6px;
    height: 6px;
    border: none;
    border-radius: 50%;
    background: var(--accent-cyan);
    cursor: pointer;
    box-shadow: 0 0 2px var(--accent-cyan);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.volume-slider-container:hover .volume-slider::-moz-range-thumb {
    transform: scale(1.2);
    box-shadow: 0 0 6px var(--accent-cyan);
}


/* Floating Signature Overlay (Bottom Right) */
.floating-signature {
    position: fixed;
    bottom: 30px;
    right: 40px;
    z-index: 220; /* Keep it on top of the smooth-scroll content layer stack */
    pointer-events: none;
    transform: translate3d(0, 0, 0); /* Force creation of a hardware stacking layer */
    will-change: transform;
}

.logo-signature {
    height: 56px;
    object-fit: contain;
    opacity: 0.65;
    transition: opacity 0.3s ease;
}

/* ────────────────────────────────────────────────────────────────────────
   RESPONSIVE DESIGN MEDIA QUERIES
   ──────────────────────────────────────────────────────────────────────── */

/* TABLET LANDSCAPE & PORTRAIT (1024px and below) */
@media (max-width: 1024px) {
    .left-trigger-system {
        width: 80px; /* wider interaction zone for easier activation on touch screens */
    }
    
    .site-header {
        height: 70px;
        padding: 0 5%;
    }
    
    .top-nav {
        gap: 24px;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }

    /* Keep alternating gallery layout on tablet but tweak heights for rhythm */
    .gallery-item.full-width {
        height: 55vh;
    }
    
    .gallery-item.half-width {
        height: 50vh;
    }
    
    .overlay-title {
        font-size: 1.8rem;
    }
    
    /* Project Pages - keep asymmetrical meta columns side by side but stack on smaller tablets */
    .project-meta-info {
        grid-template-columns: 40% 60%;
        padding: 80px 6%;
        gap: 32px;
    }
    
    .project-hero {
        height: 75vh;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .process-editorial-gallery {
        gap: 80px;
    }

    /* Asymmetric About page columns preserved for tablet */
    .about-hero,
    .about-manifesto-section,
    .about-bio-section,
    .about-archive-section,
    .about-contact-section {
        padding: 0 6%;
        margin-bottom: 100px;
    }
    
    .about-heading {
        font-size: 3.8rem;
    }
    
    .about-cinematic-statement {
        font-size: 2rem;
    }
    
    .about-visual-banner {
        height: 50vh;
        margin-bottom: 100px;
    }
    
    .about-grid-manifesto,
    .about-grid-archive,
    .about-grid-contact {
        grid-template-columns: 30% 70%;
        gap: 40px;
    }
    
    .about-grid-editorial {
        grid-template-columns: 48% 48%;
        gap: 4%;
    }
}

/* SMARTPHONES / MOBILE (768px and below) */
@media (max-width: 768px) {
    /* Header optimization */
    .site-header {
        height: 60px;
        padding: 0 6%;
    }
    
    .logo-sans {
        height: 16px;
    }
    
    .top-nav {
        gap: 16px;
    }
    
    .nav-link {
        font-size: 0.8rem;
        letter-spacing: 0.05em;
    }

    /* Homepage Gallery - transform to elegant single column */
    .homepage-gallery {
        padding-top: 60px;
        min-height: 100dvh;
    }
    
    .gallery-item {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/7 !important; /* Cinematic horizontal aspect ratio matching Kuciara mobile */
        margin-bottom: 3px !important; /* Continuous film ribbon spacing */
    }
    
    .gallery-spacer {
        display: none !important; /* hide placeholders on mobile single-column */
    }

    /* Permanent readability for project titles on mobile (no hover needed) */
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(11, 15, 20, 0.6) 0%, rgba(11, 15, 20, 0) 100%);
        padding: 12px 16px; /* Subtle padding to avoid covering the image content */
        transition: transform 0.4s ease;
    }
    
    .overlay-meta {
        transform: translateY(0);
        font-size: 0.55rem;
        margin-bottom: 2px;
    }
    
    .overlay-title {
        transform: translateY(0);
        font-size: 1.15rem;
        font-weight: 300;
        letter-spacing: 0.02em;
        transition: color 0.3s ease;
    }
    .gallery-item:active .overlay-title {
        color: var(--accent-cyan) !important;
    }
    
    /* Fullscreen mobile navigation overlay (Premium OS feel) */
    .left-trigger-system {
        width: 60px; /* touch friendly trigger */
    }
    
    .left-menu-drawer {
        width: 100vw !important;
        transform: translateX(-100vw);
        background: rgba(11, 15, 20, 0.96);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        box-shadow: none;
        height: 100dvh; /* iOS Safari Address Bar friendly height */
    }
    
    .left-menu-drawer.open {
        transform: translateX(0);
    }
    
    .drawer-header {
        height: 80px;
        padding: 0 30px;
    }
    
    .left-menu-scroll-container {
        height: 65vh;
    }
    
    .left-menu-item {
        height: 52px; /* slightly taller for easy tapping */
        padding: 0 32px;
    }
    
    .left-menu-title {
        font-size: 0.95rem; /* readable typography */
        white-space: normal; /* wrap long titles to avoid ellipsis */
        line-height: 1.2;
    }
    
    /* Position category inline or neatly aligned to avoid overlap on small screens */
    .left-menu-category {
        position: static;
        margin-left: 16px;
        font-size: 0.6rem;
        letter-spacing: 0.12em;
    }

    .left-menu-item.active .left-menu-category::before,
    .left-menu-item:hover .left-menu-category::before {
        display: none; /* remove accent line on mobile to clean up layout */
    }

    /* Project Page Mobile Layout */
    .project-hero {
        height: 55dvh; /* dvh for Safari mobile heights */
        padding: 0 6% 32px 6%;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-cat-tag {
        font-size: 0.7rem;
        margin-bottom: 10px;
    }

    /* Stack project details elegantly */
    .project-meta-info {
        grid-template-columns: 100%;
        gap: 40px;
        padding: 60px 6%;
    }
    
    .meta-column-left {
        gap: 16px;
    }
    
    .meta-value {
        font-size: 0.95rem;
    }
    
    .project-cinematic-desc {
        font-size: 1.15rem;
        line-height: 1.8;
    }

    /* Process images editorial rhythm on mobile */
    .project-process-section {
        padding: 60px 6%;
    }
    
    .section-title-wrapper {
        margin-bottom: 40px;
    }
    
    .section-heading {
        font-size: 1.8rem;
    }
    
    .process-editorial-gallery {
        gap: 48px;
    }

    /* Alternating sizes for process images to feel curated, not vertically dumped */
    .process-item {
        width: 100% !important;
        margin-bottom: 12px;
    }
    
    .process-item img, 
    .process-item video {
        max-height: 60vh;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }
    
    .process-item:nth-child(even) {
        align-self: flex-start;
        width: 90%;
    }
    
    .process-item:nth-child(odd) {
        align-self: flex-end;
        width: 90%;
    }
    
    .process-item:nth-child(3n) {
        align-self: center;
        width: 100%;
    }
    
    .media-caption {
        margin-top: 10px;
    }

    .media-caption-title {
        font-size: 0.6rem;
        padding-bottom: 3px;
        margin-bottom: 3px;
    }

    .media-caption-category {
        font-size: 0.5rem;
    }

    /* Next project banner scaling */
    .next-project-banner {
        height: 40dvh;
    }
    
    .next-project-title {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }

    /* About page mobile stack */
    .about-hero,
    .about-manifesto-section,
    .about-bio-section,
    .about-archive-section,
    .about-contact-section {
        padding: 0 6%;
        margin-bottom: 70px;
    }
    
    .about-heading {
        font-size: 2.8rem;
    }
    
    .about-cinematic-statement {
        font-size: 1.6rem;
        line-height: 1.5;
    }
    
    .about-visual-banner {
        height: 40dvh;
        margin-bottom: 70px;
    }
    
    .about-grid-manifesto,
    .about-grid-archive,
    .about-grid-contact,
    .about-grid-editorial {
        grid-template-columns: 100%;
        gap: 24px;
    }
    
    .lead-paragraph {
        font-size: 1.25rem !important;
        line-height: 1.7 !important;
        margin-bottom: 24px;
    }
    
    .satoshi-body-light {
        font-size: 1.05rem;
        line-height: 1.75;
        margin-bottom: 20px;
    }
    
    .about-quote-banner {
        padding: 60px 6%;
        margin-bottom: 70px;
    }
    
    .cinematic-quote {
        font-size: 1.45rem;
        line-height: 1.6;
    }
    
    .contact-link-item {
        font-size: 1.25rem;
    }
    
    .floating-signature {
        bottom: 20px;
        right: 20px;
    }
    
    .logo-signature {
        height: 40px;
    }
}

/* SMALL MOBILE / EXTRA SPACING ADJUSTMENTS (480px and below) */
@media (max-width: 480px) {
    .site-header {
        padding: 0 6%;
    }
    
    .nav-link {
        font-size: 0.75rem;
    }
    
    .sound-toggle {
        display: none !important; /* Hide sound toggle to maximize layout area and prevent overlapping on tiny mobile devices */
    }
    
    .overlay-title {
        font-size: 1.05rem; /* Proportional text size for small mobile viewports */
    }
    
    .hero-title {
        font-size: 1.95rem;
    }
    
    .about-heading {
        font-size: 2.2rem;
    }
    
    .about-cinematic-statement {
        font-size: 1.35rem;
    }
    
    .about-visual-banner {
        height: 30dvh;
    }
    
    .cinematic-quote {
        font-size: 1.25rem;
    }
    
    .contact-link-item {
        font-size: 1.15rem;
    }
    
    .left-menu-scroll-container {
        height: 60vh;
    }
    .floating-signature {
        bottom: 12px;
        right: 12px;
    }
    .logo-signature {
        height: 10px; /* Proportional sizing for small mobile screens */
    }
}

/* ────────────────────────────────────────────────────────────────────────
   NATIVE VIDEO CONTROLS AND OVERLAY ELIMINATION
   Aggressively hides native play/pause indicators, volume, fullscreen,
   and buffering chrome on mobile and desktop web browsers.
   ──────────────────────────────────────────────────────────────────────── */
video {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none;
}

/* Hide native controls and play buttons in WebKit/Blink (Safari, Chrome, Edge) */
video::-webkit-media-controls,
video::-webkit-media-controls-enclosure,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-overlay-play-button {
    display: none !important;
    -webkit-appearance: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hide remote playback / AirPlay icons */
video::-webkit-media-controls-toggle-closed-captions-button,
video::-webkit-media-controls-cast-button {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hide Gecko/Firefox default range styling wrappers */
video::-moz-meter-bar,
video::-moz-range-track,
video::-moz-range-thumb {
    display: none !important;
    opacity: 0 !important;
}

/* ────────────────────────────────────────────────────────────────────────
   MAURYARTE ARCHIVE CUSTOM CONTACT INTERFACE
   Aesthetics: Centered, Asymmetric luxury grid, Glassmorphic panels, Cyan/Gold accents
   ──────────────────────────────────────────────────────────────────────── */
.archive-page-body {
    background-color: var(--bg-color);
}

.archive-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 6% 80px 6%;
}

.archive-hero {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.archive-title-wrapper {
    margin-bottom: 50px;
    animation: fadeInArchiveHeader 1.2s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.archive-tag {
    display: block;
    font-family: var(--font-accent);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.archive-heading {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    text-transform: uppercase;
    line-height: 1.1;
}

.archive-container-box {
    width: 100%;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glassmorphic Form Styling */
.archive-form-box {
    width: 100%;
    max-width: 600px;
    background: rgba(18, 24, 32, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 50px 45px;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
}

.archive-cinematic-statement {
    font-family: var(--font-accent);
    font-size: 0.95rem;
    line-height: 1.7;
    letter-spacing: 0.05em;
    color: var(--soft-gray);
    margin-bottom: 45px;
    font-style: italic;
    opacity: 0.85;
}

.archive-form-element {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-group {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-group input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    letter-spacing: 0.08em;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-accent);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
}

/* Focus and line glow transitions */
.form-group .input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.form-group input:focus ~ .input-line {
    transform: scaleX(1);
}

.form-group input:focus {
    border-color: transparent;
}

/* Custom Interest Grid Selector */
.interest-group {
    text-align: left;
    margin-top: 10px;
}

.interest-label {
    display: block;
    font-family: var(--font-accent);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 18px;
    text-transform: uppercase;
}

.interest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.interest-option {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--soft-gray);
    font-family: var(--font-accent);
    font-size: 0.65rem;
    padding: 12px 14px;
    letter-spacing: 0.08em;
    text-align: center;
    cursor: pointer;
    outline: none;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.interest-option:hover {
    background: rgba(38, 210, 215, 0.04);
    border-color: rgba(38, 210, 215, 0.3);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(38, 210, 215, 0.15);
    transform: translateY(-1px);
}

.interest-option.selected {
    background: rgba(209, 178, 138, 0.06);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(209, 178, 138, 0.1);
}

/* Error message area */
.form-error-message {
    font-family: var(--font-accent);
    font-size: 0.7rem;
    color: #ff4a4a;
    letter-spacing: 0.05em;
    min-height: 18px;
    text-align: left;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-error-message.visible {
    opacity: 1;
}

/* Submit Button styling */
.archive-submit-btn {
    background: transparent;
    border: 1px solid rgba(38, 210, 215, 0.3);
    color: var(--accent-cyan);
    font-family: var(--font-accent);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 18px 30px;
    letter-spacing: 0.2em;
    cursor: pointer;
    border-radius: 2px;
    outline: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    margin-top: 10px;
}

.archive-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(38, 210, 215, 0.15), transparent);
    transition: left 0.6s ease;
}

.archive-submit-btn:hover::before {
    left: 100%;
}

.archive-submit-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 0 25px rgba(209, 178, 138, 0.15);
    background: rgba(209, 178, 138, 0.01);
}

.archive-submit-btn:disabled {
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

/* Success View Container */
.archive-success-box {
    position: absolute;
    width: 100%;
    max-width: 600px;
    background: rgba(18, 24, 32, 0.5);
    border: 1px solid rgba(209, 178, 138, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 60px 45px;
    border-radius: 4px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    text-align: center;
    z-index: 2;
}

.archive-success-box.visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.success-icon-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-glow-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(209, 178, 138, 0.2);
    border-radius: 50%;
    animation: successPulse 2.5s infinite ease-in-out;
}

.success-hud-marker {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--accent-gold);
    letter-spacing: 0;
}

.success-heading {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.success-subheading {
    font-family: var(--font-accent);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.success-description {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--soft-gray);
    max-width: 440px;
    margin: 0 auto;
    letter-spacing: 0.05em;
}

/* Animations */
@keyframes fadeInArchiveHeader {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes successPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.3;
        border-color: rgba(209, 178, 138, 0.2);
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
        border-color: rgba(38, 210, 215, 0.5);
        box-shadow: 0 0 15px rgba(38, 210, 215, 0.2);
    }
    100% {
        transform: scale(0.9);
        opacity: 0.3;
        border-color: rgba(209, 178, 138, 0.2);
    }
}

/* RESPONSIVE OVERRIDES FOR ARCHIVE FORM */
@media (max-width: 768px) {
    .archive-main {
        padding-top: 80px;
    }
    
    .archive-heading {
        font-size: 2.2rem;
    }
    
    .archive-form-box {
        padding: 35px 25px;
    }
    
    .archive-cinematic-statement {
        font-size: 0.85rem;
        margin-bottom: 30px;
    }
    
    .interest-grid {
        grid-template-columns: 100%; /* Stack pills elegantly on small screens */
        gap: 8px;
    }
    
    .interest-option {
        font-size: 0.6rem;
        padding: 10px 12px;
    }
    
    .archive-submit-btn {
        font-size: 0.75rem;
        padding: 16px 20px;
    }
    
    .archive-success-box {
        padding: 40px 20px;
    }
    
    .success-heading {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .archive-heading {
        font-size: 1.95rem;
    }
}

/* ────────────────────────────────────────────────────────────────────────
   CINEMATIC ARCHIVE HUD PROMPT OVERLAY
   ──────────────────────────────────────────────────────────────────────── */
.archive-hud-prompt {
    position: fixed;
    bottom: 32px;
    left: 32px;
    width: 380px;
    background: rgba(11, 15, 20, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 22px 26px;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.archive-hud-prompt.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.prompt-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.prompt-marker {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--accent-cyan);
    letter-spacing: 0;
}

.prompt-body {
    margin-bottom: 22px;
}

.prompt-text {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    line-height: 1.6;
    letter-spacing: 0.08em;
    color: var(--soft-gray);
}

.prompt-actions {
    display: flex;
    gap: 16px;
}

.prompt-btn {
    background: transparent;
    border: none;
    color: var(--soft-gray);
    font-family: var(--font-accent);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    outline: none;
    padding: 6px 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.prompt-btn-enter {
    color: var(--accent-cyan);
    border: 1px solid rgba(38, 210, 215, 0.25);
    border-radius: 2px;
}

.prompt-btn-enter:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(209, 178, 138, 0.2);
}

.prompt-btn-dismiss {
    opacity: 0.6;
}

.prompt-btn-dismiss:hover {
    color: var(--text-primary);
    opacity: 1;
}

/* Responsive overrides for prompt */
@media (max-width: 768px) {
    .archive-hud-prompt {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: calc(100% - 32px);
        padding: 18px 22px;
    }
}
