/* =========================================
   CSS VARIABLES & GLOBAL RESET
========================================= */
:root {
    --bg-color: #020202;
    /* Глибокий чорний (Onyx) */
    --text-color: #ffffff;
    /* Чистий білий */
    --accent-color: #B2D5E5;
    /* Крижаний блакитний (Candy Blue) */
    --overlay-color: rgba(2, 2, 2, 0.45);
    /* Затемнення для Hero фону */
    --bone: #E6E3DB;
    /* Теплий відтінок натурального дерева / кістки */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

html {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    overflow-x: hidden;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

main, .main {
    display: flow-root;
}

/* =========================================
   PAGE TRANSITION (Curtain)
========================================= */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    /* By default the curtain covers the screen on load */
    opacity: 1; 
    visibility: visible;
}

.page-transition-logo {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--text-color);
    opacity: 0; /* HIDE initially to prevent flash before JS runs */
}

/* =========================================
   CUSTOM DOM SCROLLBAR
========================================= */
html::-webkit-scrollbar, 
body::-webkit-scrollbar, 
*::-webkit-scrollbar {
    display: none;
}
* {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

a {
    text-decoration: none;
    color: inherit;
}

/* Контейнер з великими відступами по боках */
.container {
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 4vw;
}

/* =========================================
   HEADER SECTION (Floating Island Capsule)
========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.1rem 1.5vw 0 1.5vw;
    background-color: transparent;
    pointer-events: none;
    transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.site-header.header-hidden {
    transform: translateY(-120%);
}

.site-header.scrolled {
    padding-top: 0.7rem;
}

.header-inner {
    pointer-events: auto;
    width: calc(100% - 2vw);
    max-width: 1720px;
    margin: 0 auto;
    padding: 0.36rem 1.8rem 0.36rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background-color: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease, padding 300ms ease;
}

.site-header.scrolled .header-inner {
    background-color: rgba(4, 4, 4, 0.88);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.logo {
    justify-self: start;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--text-color);
    text-transform: uppercase;
    line-height: 1;
    display: flex;
    align-items: center;
    align-self: center;
    transition: opacity 150ms ease;
}

.logo:hover {
    opacity: 0.8;
}

.main-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: clamp(1.2rem, 2.2vw, 3.2rem);
}

.main-nav a {
    font-size: clamp(0.68rem, 0.72vw, 0.72rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--text-color);
    opacity: 0.85;
    text-transform: uppercase;
    position: relative;
    padding: 0.15rem 0;
    line-height: 1;
    white-space: nowrap;
    transition: color 150ms ease, opacity 150ms ease;
}

.main-nav a:hover,
.main-nav a.active {
    opacity: 1;
    color: var(--accent-color);
}

.header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.6rem, 0.65vw, 0.64rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bg-color);
    background-color: var(--text-color);
    border-radius: 9999px;
    padding: 0.42rem clamp(0.85rem, 1vw, 1.15rem);
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: transform 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.header-cta:hover {
    transform: scale(1.03);
    background-color: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 16px rgba(178, 213, 229, 0.4);
}

.project-link-anim {
    display: block;
    width: 100%;
    height: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .site-header, .header-inner, .main-nav a, .header-cta {
        transition: none;
    }
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    position: relative;
    width: 100%;
    height: 150vh; /* Контейнер на 150vh */
}

.hero-bg {
    position: absolute; 
    top: -35vh; /* Збільшений запас зверху для гігантського прольоту Fade Up (35vh) */
    left: 0;
    width: 100%;
    height: 185vh; /* 150vh + 35vh запасу зверху. Низ залишається рівно на рівні 150vh */
    z-index: 1;
    overflow: hidden; 
}

.hero-content-wrapper {
    position: absolute; /* Текст накладається поверх і скролиться звичайним чином (не примагнічується) */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none; /* ПРОПУСКАТИ МИШУ НА ЛІХТАРИК */
}

.hero-content-wrapper .btn-primary {
    pointer-events: auto; /* Але кнопка клікабельна */
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* Суворо по центру по вертикалі і горизонталі */
    transform-origin: center center; /* Точка масштабування строго по центру */
    transform: scale(1.08);
    will-change: transform;
}

.hero-detail-img {
    position: absolute;
    top: 130%; /* Опущено ще глибше під екран, з'явиться із затримкою */
    left: 50%;
    transform: translateX(-50%);
    width: 22vw; /* Зменшено розмір */
    height: 30vw; /* Зменшено висоту для збереження пропорцій */
    object-fit: cover;
    z-index: 3;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25); /* Тінь трохи пом'якшено під новий розмір */
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
}

/* =========================================
   FLASHLIGHT HERO OVERRIDES
========================================= */
.flashlight-hero {
    height: 100vh;
    border-radius: 0 0 40px 40px; /* Softly rounded edges at the bottom */
    cursor: none;
    background-color: #000;
}

.flashlight-hero .flashlight-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.flashlight-hero .before-bg {
    z-index: 1;
}

.flashlight-hero .after-bg {
    z-index: 2;
    mask-image: radial-gradient(circle 650px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0) 70%);
    -webkit-mask-image: radial-gradient(circle 650px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0) 70%);
    opacity: var(--flashlight-opacity, 0);
    transition: opacity 0.8s ease;
}

/* =========================================
   GLOBAL CUSTOM CURSOR
========================================= */
body, a, button, input, textarea, .swiper-button-next, .swiper-button-prev, .btn-primary, .btn-secondary {
    cursor: none !important;
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(178, 213, 229, 0.6); /* Candy Blue outline */
    background-color: transparent;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* hidden until move */
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    mix-blend-mode: difference;
}

.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    background-color: #ffffff; /* White dot */
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(178, 213, 229, 0.15); /* Candy blue tint on hover */
    border-color: transparent;
}

/* Hide custom cursor on mobile and touch devices */
@media (pointer: coarse), (max-width: 900px) {
    .custom-cursor, .custom-cursor-dot {
        display: none !important;
    }
    * {
        cursor: auto !important;
    }
}

.hero-title {
    position: relative;
    z-index: 2;
    font-size: 21vw; /* Reverted to giant size as requested */
    font-weight: 300;
    letter-spacing: -0.05em;
    line-height: 0.85;
    color: var(--bone); /* Changed from text-color to explicitly be bone/white for contrast */
    text-transform: uppercase;
    will-change: transform;
    overflow: hidden;
}

.hero-title .char {
    display: inline-block;
    will-change: transform, opacity;
}

/* =========================================
   HAMBURGER MENU & MOBILE NAV
========================================= */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 2000; /* Above the menu overlay */
    padding: 0;
}

.hamburger-line {
    width: 100%;
    height: 1px;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
    display: block;
}

@media (max-width: 1080px) {
    .header-cta {
        display: none;
    }

    .hamburger-menu {
        display: flex;
        position: relative;
        z-index: 2100;
    }

    /* Reset containing block triggers on site-header and header-inner */
    .site-header {
        padding: 1rem 4vw 0 4vw;
        will-change: auto;
    }

    .site-header.scrolled {
        padding-top: 0.75rem;
    }

    .header-inner {
        position: relative;
        z-index: 1000;
        width: 100%;
        max-width: 100%;
        padding: 0.55rem 1.25rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background-color: rgba(8, 8, 8, 0.82);
    }

    .site-header.scrolled .header-inner {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background-color: rgba(4, 4, 4, 0.94);
    }

    /* When menu is active, ensure header-inner and site-header don't clip or confine */
    .site-header.menu-open,
    body.menu-open .site-header,
    .site-header:has(.main-nav.active) {
        transform: none !important;
        will-change: auto !important;
        padding: 0 !important;
        pointer-events: none;
    }

    .site-header.menu-open .header-inner,
    body.menu-open .header-inner,
    .header-inner:has(.main-nav.active) {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: none !important;
        will-change: auto !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }

    /* Change main-nav to FULLSCREEN overlay on mobile */
    .main-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        background-color: #040404 !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding: 7rem 8vw 4rem 8vw !important;
        gap: 1.4rem;
        box-sizing: border-box !important;
        visibility: hidden;
        transform: translateY(-100%);
        transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.6s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1050 !important;
        pointer-events: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav.active {
        transform: translateY(0) !important;
        visibility: visible !important;
    }

    .main-nav a {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        font-weight: 500;
        letter-spacing: -0.02em;
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 150ms ease;
        margin: 0;
        padding: 0.1rem 0;
        color: var(--text-color);
        display: block;
        width: 100%;
    }

    .main-nav a:hover,
    .main-nav a.active {
        color: var(--accent-color);
    }

    .main-nav a::after {
        display: none; /* Hide hover underline on mobile */
    }

    .main-nav.active a {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered animation for links */
    .main-nav.active a:nth-child(1) { transition-delay: 0.25s; }
    .main-nav.active a:nth-child(2) { transition-delay: 0.32s; }
    .main-nav.active a:nth-child(3) { transition-delay: 0.39s; }
    .main-nav.active a:nth-child(4) { transition-delay: 0.46s; }
    .main-nav.active a:nth-child(5) { transition-delay: 0.53s; }

    /* Hamburger animation to 'X' */
    .hamburger-menu.active {
        position: fixed !important;
        top: 1.4rem;
        right: 6vw;
        z-index: 2200 !important;
        pointer-events: auto !important;
    }

    .hamburger-menu.active .hamburger-line {
        background-color: var(--text-color);
    }

    .hamburger-menu.active .hamburger-line:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }
    .hamburger-menu.active .hamburger-line:nth-child(2) {
        transform: translateY(-9.5px) rotate(-45deg);
    }
    
    .site-header .logo {
        position: relative;
    }
}

.hero-bottom-left {
    position: absolute;
    bottom: 4vh;
    left: 4vw;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 360px;
    will-change: transform;
    mix-blend-mode: difference; /* Magic trick: inverts color when overlapping the big letters! */
}

.hero-bottom-right {
    position: absolute;
    bottom: 4vh;
    right: 4vw;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 320px;
    text-align: right;
    will-change: transform;
    mix-blend-mode: difference;
}

.hero-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    letter-spacing: 0.03em;
    font-weight: 300;
    color: #ffffff; /* Pure white for perfect difference blending */
    text-transform: uppercase;
}

/* Кнопки */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    border-radius: 8px;
    /* Softly rounded corners */
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 400;
    cursor: pointer;
    transition: border-color 0.4s ease, color 0.4s ease, background-color 0.4s ease;
    width: fit-content;
    gap: 24px;
}

.btn-primary {
    border: 1px solid rgba(230, 227, 219, 0.3);
    background: transparent;
    color: var(--text-color);
}

.btn-primary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-secondary {
    border: 1px solid rgba(230, 227, 219, 0.15);
    background: transparent;
    color: var(--text-color);
}

.btn-secondary:hover {
    border-color: var(--text-color);
}

/* =========================================
   PHILOSOPHY SECTION
========================================= */
.philosophy {
    position: relative;
    z-index: 10; /* Перекриває hero-sticky */
    background-color: var(--bg-color); /* Непрозорий фон для диференціального скролінгу */
    padding: 16vw 0;
    /* Величезне повітря між секціями */
}

/* Чіткі колонки: ліва для тексту, права для групи картинок */
.philosophy-grid {
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 10vw; /* Надійна величезна прірва між текстом і картинками */
    align-items: start;
}

/* Текстовий блок */
.philosophy-content {
    padding-top: 6vw;
    /* Опускаємо текст трохи нижче для балансу */
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.philosophy-title {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.25;
    text-transform: uppercase;
}

.philosophy-text {
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 300;
    color: rgba(230, 227, 219, 0.75);
    /* Трохи приглушений для контрасту із заголовком */
}

/* Контейнер для групи фотографій (справа) */
.philosophy-images {
    position: relative;
    width: 100%;
    margin-top: -4vw; /* Трохи піднімаємо загальну групу для балансу */
}

/* Велика фотографія */
.philosophy-image-large {
    width: 80%;
    margin-left: auto;
    overflow: hidden;
}

.philosophy-image-large img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
    transform: scale(1.3);
    transform-origin: top center;
    will-change: transform;
}

/* Мала фотографія (перекриває велику фотографію всередині правої колонки) */
.philosophy-image-small {
    position: absolute;
    bottom: -6vw;
    left: -4vw;
    width: 55%;
    z-index: 2;
}

.philosophy-image-small-wrapper {
    width: 100%;
    overflow: hidden;
}

.philosophy-image-small img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    transform: scale(1.3);
    transform-origin: top center;
    will-change: transform;
}

/* Підпис до малої фотографії */
.image-caption {
    margin-top: 1.5rem;
    font-size: 0.65rem;
    line-height: 1.7;
    letter-spacing: 0.08em;
    color: rgba(230, 227, 219, 0.5);
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1200px) {
    .philosophy-grid {
        grid-template-columns: 40% 1fr;
        gap: 6vw;
    }
}

@media (max-width: 900px) {
    .hero-title {
        font-size: 20vw;
    }

    .philosophy-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .philosophy-images {
        order: 1;
        margin-top: 0;
        max-width: 440px;
        width: 88%;
        margin-left: auto;
        margin-right: auto;
        overflow: hidden;
    }

    .philosophy-content {
        order: 2;
        padding-top: 0;
    }

    .philosophy-image-large {
        width: 100%;
        margin-left: 0;
        overflow: hidden;
    }

    .philosophy-image-large img,
    .philosophy-image-small img {
        transform: scale(1) !important;
        aspect-ratio: 4/5;
        object-fit: cover;
    }

    .philosophy-image-small {
        display: none;
    }
}

/* =========================================
   COLLECTION SECTION (Horizontal Scroll)
========================================= */
.collection {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
    overflow: hidden;
}

.collection-header {
    padding: 0 4vw 4vw 4vw;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.section-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: rgba(230, 227, 219, 0.5);
}

.collection-scroll-wrapper {
    width: 100%;
    /* No overflow hidden here, managed by GSAP pin */
}

.collection-scroll-container {
    display: flex;
    padding-left: 4vw;
    gap: 6vw;
    width: max-content;
    will-change: transform;
}

.collection-item {
    width: 40vw;
    min-width: 450px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
}

.collection-image-wrapper {
    width: 50%;
    flex-shrink: 0;
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
}

.collection-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1); /* for parallax */
    transform-origin: center center;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.collection-item:hover .collection-image-wrapper img {
    transform: scale(1.15); /* Slight zoom on hover */
}

.collection-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 50%;
}

.collection-item-title {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.collection-item-desc {
    font-size: 0.85rem;
    color: rgba(230, 227, 219, 0.5);
    font-weight: 300;
}

.collection-spacer {
    width: 10vw; /* End padding */
}

/* =========================================
   REVIEWS SECTION
========================================= */
.reviews {
    position: relative;
    padding: 12vw 0;
    background-color: var(--bg-color);
    z-index: 10;
    overflow: hidden;
}

/* =========================================
   FURNITURE CREATION HISTORY SECTION (Oakâme Atelier Reference)
========================================= */
.furniture-history-section {
    position: relative;
    padding: 16vh 0 14vh 0;
    background-color: var(--bg-color);
    border-top: 1px solid rgba(230, 227, 219, 0.08);
    overflow: hidden;
}

/* Monumental Typography Title (Oakâme Architectural Style) */
.furniture-history-title-block {
    margin-bottom: 9vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    user-select: none;
}

.f-history-row {
    display: flex;
    width: 100%;
    line-height: 1.02;
}

.f-history-row.row-top {
    justify-content: flex-start;
}

.f-history-row.row-mid {
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
}

.f-history-row.row-bottom {
    justify-content: flex-end;
}

.f-history-huge {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.6rem, 7.5vw, 8.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: rgba(230, 227, 219, 0.9);
    margin: 0;
}

.f-word-accent {
    color: #ffffff;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* 2-Column Grid Layout */
.furniture-history-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 6vw;
    align-items: flex-start;
}

/* Left Column: Workshop Media & Manifesto */
.furniture-history-left {
    display: flex;
    flex-direction: column;
}

.f-history-media-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(230, 227, 219, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.f-history-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.f-history-media-wrap:hover .f-history-img {
    transform: scale(1.05);
}

.f-history-badge {
    position: absolute;
    bottom: 1.2rem;
    left: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(230, 227, 219, 0.2);
    border-radius: 4px;
    padding: 0.45rem 0.9rem;
}

.f-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
}

.f-badge-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: rgba(230, 227, 219, 0.85);
    text-transform: uppercase;
}

.f-history-manifesto {
    display: flex;
    flex-direction: column;
    margin-top: 3.5rem;
}

.f-manifesto-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.15rem, 1.6vw, 1.45rem);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 1.2rem;
}

.f-manifesto-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(230, 227, 219, 0.6);
    margin-bottom: 2.4rem;
}

.f-history-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.1rem 2.2rem;
    background: transparent;
    border: 1px solid rgba(230, 227, 219, 0.25);
    border-radius: 2px;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.35s ease;
}

.f-history-btn:hover {
    background: #E6E3DB;
    color: #020202;
    border-color: #E6E3DB;
    transform: translateY(-2px);
}

.f-history-btn:hover .f-btn-icon svg path {
    stroke: #020202;
}

.f-history-btn:hover .f-btn-icon svg {
    transform: translateX(3px);
}

.f-btn-icon {
    display: flex;
    align-items: center;
}

.f-btn-icon svg {
    transition: transform 0.3s ease;
}

/* Right Column: Accordion Chapters */
.furniture-history-right {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.f-accordion {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(230, 227, 219, 0.15);
}

.f-accordion-item {
    border-bottom: 1px solid rgba(230, 227, 219, 0.15);
    transition: background 0.35s ease;
}

.f-accordion-item:hover {
    background: rgba(230, 227, 219, 0.02);
}

.f-accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.2rem 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
    text-align: left;
}

.f-header-left {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.f-acc-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-style: italic;
    color: rgba(230, 227, 219, 0.35);
    transition: color 0.3s ease;
}

.f-acc-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(230, 227, 219, 0.85);
    margin: 0;
    transition: color 0.3s ease;
}

.f-acc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(230, 227, 219, 0.5);
    transition: transform 0.35s ease;
}

.f-acc-icon .icon-v {
    transform-origin: center;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Open Accordion State */
.f-accordion-item.is-open {
    background: rgba(230, 227, 219, 0.03);
}

.f-accordion-item.is-open .f-acc-num {
    color: #ffffff;
}

.f-accordion-item.is-open .f-acc-title {
    color: #ffffff;
}

.f-accordion-item.is-open .icon-v {
    transform: scaleY(0);
    opacity: 0;
}

.f-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.35s ease;
    opacity: 0;
}

.f-accordion-item.is-open .f-accordion-body {
    max-height: 280px;
    opacity: 1;
}

.f-acc-content {
    padding: 0 1rem 2.2rem 3.4rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(230, 227, 219, 0.65);
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .furniture-history-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
    
    .f-history-row {
        line-height: 1.05;
    }

    .f-history-huge {
        font-size: clamp(2rem, 7.2vw, 5rem);
        letter-spacing: -0.015em;
    }

    .f-manifesto-title {
        font-size: 1.15rem;
    }
}

@media (max-width: 600px) {
    .furniture-history-section {
        padding: 10vh 0;
    }

    .furniture-history-title-block {
        margin-bottom: 5vh;
    }

    .f-history-row {
        line-height: 1.1;
    }

    .f-history-row.row-mid {
        gap: 0.8rem;
    }

    .f-history-huge {
        font-size: clamp(1.45rem, 7.5vw, 2.3rem);
        letter-spacing: 0;
    }

    .f-header-left {
        gap: 1rem;
    }

    .f-acc-title {
        font-size: 0.88rem;
    }

    .f-acc-content {
        padding-left: 2.2rem;
        font-size: 0.88rem;
    }
}

/* =========================================
   FOOTER SECTION (100vh Hero-Style with Photo & Form)
========================================= */
.footer {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    background-color: var(--bg-color);
    padding: 12vh 4vw 4vh 4vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Footer Application Form */
.footer-form-wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 900px;
    margin: 2vh auto 8vh auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-form-header {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 680px;
}

.footer-form-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.footer-form-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-color);
    margin-bottom: 1.2rem;
}

.footer-form-desc {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Spotlight Wrapper */
.spotlight-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 4.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

/* Spotlight background */
.spotlight-bg {
    position: absolute;
    inset: 0;
    background-image: url('../photos/Product 4/Living_3_V2_result.webp');
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    mask-image: radial-gradient(
        circle var(--spotlight-size, 0px) at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0) 80%
    );
    -webkit-mask-image: radial-gradient(
        circle var(--spotlight-size, 0px) at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0) 80%
    );
    transition: opacity 0.6s ease;
}

/* Premium Form */
.premium-form {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 2.8rem;
    margin-top: 0;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-size: 1.35rem;
    font-weight: 300;
    padding: 0.6rem 0;
    font-family: inherit;
    resize: none;
}

.form-group textarea {
    min-height: 44px;
    overflow: hidden;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 300;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-group textarea ~ label {
    top: 1rem;
    transform: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -20px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    transform: translateY(0);
}

.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -20px;
}

.form-group .line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.form-group .line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--text-color);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-group input:focus ~ .line::after,
.form-group textarea:focus ~ .line::after {
    width: 100%;
}

/* Magnetic Button */
.magnetic-btn-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.8rem;
}

.magnetic-btn {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.magnetic-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    height: 100%;
    background: var(--text-color);
    border-radius: 50%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.magnetic-btn .btn-text {
    position: relative;
    z-index: 2;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    font-weight: 500;
    color: inherit;
    transition: color 0.3s ease;
    pointer-events: none;
}

.magnetic-btn:hover {
    color: var(--bg-color);
    border-color: var(--text-color);
}

.magnetic-btn:hover::before {
    transform: translateX(-50%) translateY(0%);
    border-radius: 0;
}

@media (max-width: 900px) {
    .spotlight-wrapper {
        padding: 3rem 2rem;
        border-radius: 16px;
    }
    .form-group input, 
    .form-group textarea,
    .form-group label {
        font-size: 1.15rem;
    }
    .magnetic-btn {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 600px) {
    .spotlight-wrapper {
        padding: 2.2rem 1.4rem;
        border-radius: 14px;
    }
    .footer-form-wrapper {
        margin: 2vh auto 6vh auto;
    }
    .footer-form-header {
        margin-bottom: 2.5rem;
    }
    .magnetic-btn-wrapper {
        justify-content: flex-end;
    }
}

.footer-bg-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.footer-bg-img {
    width: 100%;
    height: 115%;
    object-fit: cover;
    object-position: center 85%;
    filter: brightness(0.68) contrast(1.12);
    will-change: transform;
}

.footer-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(2, 2, 2, 0.95) 0%,
        rgba(2, 2, 2, 0.68) 30%,
        rgba(2, 2, 2, 0.84) 65%,
        rgba(2, 2, 2, 0.98) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.footer-top {
    position: relative;
    z-index: 3;
    width: 100%;
    margin-top: auto;
    margin-bottom: 3.5vh;
}

.footer-huge-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(3.5rem, 14vw, 14vw);
    font-weight: 300;
    line-height: 0.92;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.footer-bottom {
    position: relative;
    z-index: 4;
    width: calc(100% + 8vw);
    margin-left: -4vw;
    margin-right: -4vw;
    padding: 4vh 4vw 4.5vh 4vw;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4vw;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(230, 227, 219, 0.5);
}

.footer-col p, .footer-col a {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.footer-copy p {
    color: rgba(230, 227, 219, 0.5);
}

/* =========================================
   PINNED SCROLL TEXT REVEAL SECTION (Mobbin Style)
========================================= */
.pinned-text-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 5;
}


.pinned-text-container {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 4vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pinned-tagline {
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.75rem, 1.1vw, 0.95rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(230, 227, 219, 0.45);
    margin-bottom: 3.5rem;
    will-change: opacity, transform;
}

.pinned-statements-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
    width: 100%;
}

.pinned-statement-line {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.4rem, 2.9vw, 3.1rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.035em;
    color: var(--text-color);
    margin: 0;
    text-align: center;
    white-space: nowrap;
    will-change: transform, opacity, color;
}

@media (max-width: 1024px) {
    .collection-item {
        width: clamp(380px, 48vw, 480px);
        max-width: 80vw;
        min-width: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .collection-image-wrapper {
        width: 100%;
        max-height: 58vh;
        aspect-ratio: 3/4;
        border-radius: 18px;
    }

    .collection-info {
        width: 100%;
        gap: 0.6rem;
    }

    .collection-item-title {
        font-size: 1.4rem;
    }

    .collection-item-desc {
        font-size: 0.95rem;
    }

    .footer-bottom {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 3.5rem 4vw;
    }
}

/* RESPONSIVE ADDITIONS */
@media (max-width: 900px) {
    .review-card {
        padding: 8vw 6vw;
    }

    .pinned-tagline {
        margin-bottom: 2.2rem;
    }
    
    .pinned-statements-wrap {
        gap: 1.2rem;
    }

    .pinned-statement-line {
        font-size: clamp(1.1rem, 3.4vw, 2.1rem);
        white-space: nowrap;
    }

    .footer-huge-text {
        font-size: clamp(2.6rem, 13vw, 6.5rem);
        line-height: 0.94;
        letter-spacing: -0.01em;
        overflow-wrap: break-word;
    }
}

@media (max-width: 600px) {
    .collection-item {
        width: 290px;
        max-width: 78vw;
        gap: 1.1rem;
    }

    .collection-image-wrapper {
        width: 100%;
        max-height: 50vh;
        aspect-ratio: 3/4;
        border-radius: 14px;
    }

    .collection-item-title {
        font-size: 1.2rem;
    }

    .collection-item-desc {
        font-size: 0.85rem;
    }

    .pinned-text-section {
        min-height: 100svh;
        padding: 3rem 0;
    }

    .pinned-text-container {
        padding: 0 1rem;
        max-width: 100%;
    }

    .pinned-tagline {
        font-size: 0.75rem;
        letter-spacing: 0.18em;
        margin-bottom: 1.8rem;
    }

    .pinned-statements-wrap {
        gap: 1.1rem;
        width: 100%;
    }

    .pinned-statement-line {
        font-size: clamp(0.82rem, 3.85vw, 1.35rem);
        line-height: 1.25;
        letter-spacing: -0.025em;
        white-space: nowrap;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }

    .footer-huge-text {
        font-size: clamp(2rem, 12vw, 3.8rem);
        line-height: 0.96;
        letter-spacing: 0;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}
#old-header-wrapper { display: none !important; }


/* DARK THEME OVERRIDES */
.bg-white { background-color: var(--bg-color) !important; }
.text-black { color: var(--text-color) !important; }
.bg-black { background-color: var(--text-color) !important; }
.text-white { color: var(--bg-color) !important; }
.border-black { border-color: var(--text-color) !important; }
.square-dark { background-color: var(--text-color) !important; }
svg path[fill="#403A34"] { fill: var(--text-color) !important; }

/* GLOBAL DARK THEME ENFORCEMENT */
html, body, .content, .page, main {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
}

/* Also ensure any div that might have a hardcoded light bg becomes dark */
.site-wrapper, .wrapper {
    background-color: var(--bg-color) !important;
}

/* Ensure text elements like p, h1, h2, h3 inherit or use text-color */
p, h1, h2, h3, h4, h5, h6, span, div, a {
    color: inherit;
}

/* =========================================
   GLOBAL CUSTOM SCROLLBAR (Lookbook Style)
========================================= */
.koloryt-global-scrollbar {
    position: fixed !important;
    right: 3px !important;
    top: 0 !important;
    width: 8px !important;
    height: 100vh !important;
    background: transparent !important;
    z-index: 99999 !important;
    pointer-events: none !important;
}

.koloryt-global-scrollbar .swiper-scrollbar-drag {
    background: rgba(255, 255, 255, 0.35) !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: background 0.2s ease !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.koloryt-global-scrollbar .swiper-scrollbar-drag:hover {
    background: rgba(255, 255, 255, 0.6) !important;
}

/* =========================================
   HOVER REVEAL IMAGES
========================================= */
.hover-trigger {
    position: relative;
    display: inline-block;
    cursor: pointer !important;
}

.floating-reveal-img {
    position: fixed;
    top: 0;
    left: 0;
    width: 25vw;
    max-width: 300px; /* safety limit */
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 12px;
    pointer-events: none; /* crucial so it doesn't block mousemove */
    z-index: 1;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    will-change: transform, opacity;
}

/* =========================================
   ORDER MODAL (POPUP) & BUTTON
========================================= */
.order-btn-mobile {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 1rem; /* Smaller as requested */
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    align-self: center; /* Put it in the middle */
    margin-top: auto; /* Push to bottom */
    margin-bottom: 4vh; /* Closer to the bottom */
    padding: 10px 24px; /* Make it look like a button */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, color 0.3s ease;
    letter-spacing: 0.05em;
}

.order-btn-mobile:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.main-nav.active .order-btn-mobile {
    opacity: 1;
    transform: translateY(0);
}

.order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.4s ease, opacity 0.4s ease;
}

.order-modal.active {
    visibility: visible;
    opacity: 1;
}

.order-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 2, 2, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.order-modal-content {
    position: relative;
    background: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 4px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

@media (max-width: 600px) {
    .order-modal-content {
        padding: 2rem 1.25rem;
    }
}

.order-modal.active .order-modal-content {
    transform: translateY(0);
}

.order-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
}

.order-modal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.order-modal-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.order-form .form-group {
    margin-bottom: 1.5rem;
}

.order-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.order-form input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.order-form input:focus {
    outline: none;
    border-color: var(--text-color);
}

.order-submit-btn {
    width: 100%;
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.order-submit-btn:hover {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
}

/* =========================================
   404 СТОРІНКА (QUIET LUXURY)
========================================= */
.error-page-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.error-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(6.5rem, 14vh, 9rem) clamp(1.5rem, 4vw, 3rem) clamp(3rem, 6vh, 4.5rem);
    position: relative;
    z-index: 1;
}

.error-ambient-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 48%, rgba(178, 213, 229, 0.05) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.error-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-tag {
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.72rem, 0.85vw, 0.8rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
}

.error-code {
    font-family: 'Inter', sans-serif;
    font-size: clamp(6rem, 14vw, 10rem);
    font-weight: 300;
    line-height: 0.92;
    letter-spacing: -0.04em;
    color: var(--text-color);
    margin-bottom: clamp(0.75rem, 1.5vh, 1.25rem);
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.error-heading {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--bone);
    margin-bottom: clamp(1rem, 2vh, 1.35rem);
}

.error-desc {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.88rem, 1.05vw, 0.98rem);
    font-weight: 300;
    color: var(--bone);
    opacity: 0.75;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto clamp(2rem, 3.5vh, 2.75rem);
}

.error-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.error-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 100px;
    background-color: var(--text-color);
    color: var(--bg-color);
    border: 1px solid var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.error-btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(178, 213, 229, 0.3);
}

.error-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 100px;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid rgba(230, 227, 219, 0.3);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.error-btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(178, 213, 229, 0.05);
    transform: translateY(-2px);
}

.site-footer {
    width: 100%;
    position: relative;
    z-index: 2;
    background: var(--bg-color);
    border-top: 1px solid rgba(230, 227, 219, 0.12);
}

.site-footer .footer-bottom {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 3.5vh clamp(1.5rem, 4vw, 3.5rem) 4vh;
    border-top: none;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .error-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.85rem;
    }

    .error-btn-primary,
    .error-btn-secondary {
        width: 100%;
    }

    .site-footer .footer-bottom {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}
