*,
*::before,
*::after {
    box-sizing: border-box;
}

@font-face {
    font-family: "Neo Tech";
    src:
        url("./fonts/NeoTech-Regular.woff2") format("woff2"),
        url("./fonts/NeoTech-Regular.woff") format("woff"),
        url("./fonts/NeoTech-Regular.ttf") format("truetype"),
        url("./fonts/NeoTech-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    font-family: "Neo Tech", "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    background-color: #fff;
    color: #111;
    transition: background 0.6s ease, background-image 0.6s ease;
}

/* Pink theme: pink gradient + pink vibes (when slider on "pink") */
body.theme-zesty {
    background: linear-gradient(180deg,
        #fff 0%,
        #fff5f8 8%,
        #ffe4ec 22%,
        #ffd1dc 45%,
        #ffc0cb 55%,
        #ffd1dc 78%,
        #ffe4ec 92%,
        #fff 100%);
    background-attachment: fixed;
}

body.theme-zesty .page,
body.theme-zesty .landing-content {
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

body.theme-zesty .first-page {
    background: rgba(255, 228, 236, 0.35);
    border-radius: 3px;
    margin: 0 8px 8px;
    box-shadow: 0 2px 20px rgba(255, 182, 193, 0.25);
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

body.theme-zesty .layout {
    background: rgba(255, 240, 245, 0.5);
    border-radius: 3px;
    padding: 2px 18px 18px;
    box-shadow: 0 1px 12px rgba(255, 192, 203, 0.2);
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

body.theme-zesty .sidebar-left,
body.theme-zesty .sidebar-right {
    background: rgba(255, 228, 236, 0.4) !important;
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(255, 182, 193, 0.2);
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

body.theme-zesty .main-column {
    background: rgba(255, 250, 252, 0.6);
    border-radius: 3px;
    box-shadow: 0 1px 10px rgba(255, 192, 203, 0.15);
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

body.theme-zesty .art-page .sidebar-left.art-sidebar,
body.theme-zesty .help-page .sidebar-left.help-sidebar,
body.theme-zesty .apps-page .sidebar-left,
body.theme-zesty .fashion-page .sidebar-left,
body.theme-zesty .architecture-page .sidebar-left.architecture-sidebar,
body.theme-zesty .magazine-page .sidebar-left.magazine-sidebar,
body.theme-zesty .product-page .sidebar-left {
    background: rgba(255, 228, 236, 0.45) !important;
}

body.theme-zesty .fashion-page .fashion-container {
    background: rgba(255, 250, 252, 0.6);
    border-radius: 3px;
}

body.theme-zesty .research-blog-page {
    background: rgba(255, 240, 245, 0.6);
    border-color: rgba(255, 182, 193, 0.4);
    box-shadow: 0 2px 16px rgba(255, 192, 203, 0.2);
}

body.theme-zesty .lang-dropdown {
    background: rgba(255, 250, 252, 0.98);
    border-color: rgba(255, 182, 193, 0.5);
    box-shadow: 0 4px 16px rgba(255, 192, 203, 0.2);
}

body.theme-zesty.legal-page,
body.theme-zesty .legal-page-main {
    background: transparent;
}

body.theme-zesty.legal-page {
    background: linear-gradient(180deg, #fff5f8 0%, #ffe4ec 50%, #fff 100%);
    background-attachment: fixed;
}

body.theme-zesty .work {
    background: rgba(255, 228, 236, 0.75);
    box-shadow: 0 1px 12px rgba(255, 192, 203, 0.25);
    border-radius: 3px;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

body.theme-zesty .work::after {
    background: linear-gradient(to right, transparent, rgba(255, 228, 236, 0.85));
}

body.theme-zesty .work-item:hover {
    background: rgba(255, 240, 245, 0.9);
    border-color: rgba(255, 182, 193, 0.6);
}

body.theme-zesty .quote-block {
    background: rgba(255, 228, 236, 0.75);
    box-shadow: 0 1px 12px rgba(255, 192, 203, 0.25);
    border-radius: 3px;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

body.theme-zesty .site-footer {
    background: transparent;
}

body.theme-zesty .page {
    background: transparent;
}

body.theme-zesty .site-header {
    background: rgba(255, 228, 236, 0.4);
    border-radius: 3px;
    box-shadow: 0 2px 20px rgba(255, 182, 193, 0.2);
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

/* ========== Glassy theme: Frutiger Aero / Apple Aqua – grayish blue gradient, same glass texture on all containers ========== */
body.theme-glassy {
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.18) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.18) 1px, transparent 1px),
        linear-gradient(160deg, #9ca8b8 0%, #7d8a9a 30%, #6b7888 60%, #5a6575 100%);
    background-size: 32px 32px, 32px 32px, 100% 100%;
    background-attachment: fixed;
}

/* Images remain fully opaque; only UI chrome is glass */
body.theme-glassy img {
    opacity: 1;
}

body.theme-glassy .page,
body.theme-glassy .landing-content {
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

/* Page wrapper must be transparent so body gradient shows through all layers */
body.theme-glassy .page {
    background: transparent;
}

/* Glass card style: translucent so gradient visible through each layer */
body.theme-glassy .first-page {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 20px 10px rgba(255, 255, 255, 0.06);
    margin: 0 8px 8px;
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

body.theme-glassy .first-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    z-index: 1;
}

body.theme-glassy .first-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent, rgba(255, 255, 255, 0.3));
    z-index: 1;
}

body.theme-glassy .layout {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 20px 10px rgba(255, 255, 255, 0.06);
    padding: 2px 18px 18px;
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

body.theme-glassy .layout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    z-index: 1;
}

body.theme-glassy .layout::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent, rgba(255, 255, 255, 0.3));
    z-index: 1;
}

/* Sidebars: glass card style */
body.theme-glassy .sidebar-left,
body.theme-glassy .sidebar-right {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 20px 10px rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

body.theme-glassy .sidebar-left::before,
body.theme-glassy .sidebar-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    z-index: 1;
}

body.theme-glassy .sidebar-left::after,
body.theme-glassy .sidebar-right::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent, rgba(255, 255, 255, 0.3));
    z-index: 1;
}

body.theme-glassy .sidebar-left .sidebar-block,
body.theme-glassy .sidebar-right .sidebar-block {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 20px 10px rgba(255, 255, 255, 0.06);
    padding: 12px 14px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

body.theme-glassy .sidebar-left .sidebar-block::before,
body.theme-glassy .sidebar-right .sidebar-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    z-index: 1;
}

body.theme-glassy .sidebar-left .sidebar-block::after,
body.theme-glassy .sidebar-right .sidebar-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent, rgba(255, 255, 255, 0.3));
    z-index: 1;
}

body.theme-glassy .main-column {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 20px 10px rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

/* Landing page: keep right sidebar beside hero, not overlapping */
body.theme-glassy .landing-content .main-column,
body.theme-glassy .first-page .main-column {
    margin-right: 0;
}

body.theme-glassy .main-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    z-index: 1;
}

body.theme-glassy .main-column::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent, rgba(255, 255, 255, 0.3));
    z-index: 1;
}

body.theme-glassy .art-page .sidebar-left.art-sidebar,
body.theme-glassy .help-page .sidebar-left.help-sidebar,
body.theme-glassy .apps-page .sidebar-left,
body.theme-glassy .fashion-page .sidebar-left,
body.theme-glassy .architecture-page .sidebar-left.architecture-sidebar,
body.theme-glassy .magazine-page .sidebar-left.magazine-sidebar {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 20px 10px rgba(255, 255, 255, 0.06);
}

/* Product page: About with no wrapper in glass state */
body.theme-glassy .product-page .sidebar-left {
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

body.theme-glassy .product-page .sidebar-left::before,
body.theme-glassy .product-page .sidebar-left::after {
    display: none;
}

body.theme-glassy .product-page .sidebar-left .sidebar-block {
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none !important;
    border-color: transparent !important;
    border-radius: 0;
    box-shadow: none;
}

body.theme-glassy .product-page .sidebar-left .sidebar-block::before,
body.theme-glassy .product-page .sidebar-left .sidebar-block::after {
    display: none;
}

body.theme-glassy .fashion-page .fashion-container {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 3px;
}

body.theme-glassy .research-blog-page {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 20px 10px rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

body.theme-glassy .research-blog-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    z-index: 1;
}

body.theme-glassy .research-blog-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent, rgba(255, 255, 255, 0.3));
    z-index: 1;
}

body.theme-glassy .lang-dropdown {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 20px 10px rgba(255, 255, 255, 0.06);
}

body.theme-glassy.legal-page {
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.18) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.18) 1px, transparent 1px),
        linear-gradient(160deg, #9ca8b8 0%, #7d8a9a 30%, #6b7888 60%, #5a6575 100%);
    background-size: 32px 32px, 32px 32px, 100% 100%;
    background-attachment: fixed;
}

/* Work & Quote: glass card style (.work::after kept for scroll fade) */
body.theme-glassy .work {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 20px 10px rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

body.theme-glassy .work::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    z-index: 1;
}

body.theme-glassy .work::after {
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.25));
}

body.theme-glassy .work-item {
    background: transparent;
}

body.theme-glassy .work-item:hover {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 20px 10px rgba(255, 255, 255, 0.06);
}

body.theme-glassy .quote-block {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 20px 10px rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

body.theme-glassy .quote-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    z-index: 1;
}

body.theme-glassy .quote-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent, rgba(255, 255, 255, 0.3));
    z-index: 1;
}

body.theme-glassy .site-footer {
    background: transparent;
}

/* Header: same glass texture so gradient shows through */
body.theme-glassy .site-header {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 20px 10px rgba(255, 255, 255, 0.06);
    margin: 0 8px 8px 0;
    overflow: hidden;
}

body.theme-glassy .site-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    z-index: 1;
    pointer-events: none;
}

/* Nav: soft highlight so type reads on glass */
body.theme-glassy .nav-item,
body.theme-glassy .sub-nav-item {
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

/* Search: translucent glass inputs/buttons */
body.theme-glassy .search button,
body.theme-glassy .search input {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 20px 10px rgba(255, 255, 255, 0.06);
}

body.theme-glassy .search button {
    border-radius: 12px;
}

/* Hero container: glass card style */
body.theme-glassy .hero,
body.theme-glassy .hero-placeholder {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 20px 10px rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

body.theme-glassy .hero::before,
body.theme-glassy .hero-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    z-index: 1;
}

body.theme-glassy .hero::after,
body.theme-glassy .hero-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent, rgba(255, 255, 255, 0.3));
    z-index: 1;
}

body.theme-glassy .right-hero.hero-placeholder {
    background: rgba(255, 255, 255, 0.12);
}

/* Right sidebar: align right-hero and quote-block to left edge of container */
body.theme-glassy .sidebar-right .right-hero,
body.theme-glassy .sidebar-right .quote-block {
    width: 100%;
    margin-left: 0;
}

/* ========== LANDING PAGE GLASS – main layout only: transparent, no border (debug done) ========== */
body.theme-glassy .page:has(.landing-content) .layout.landing-screen {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
/* ========== end landing glass ========== */

/* Thumb/card wrappers: glass card style */
body.theme-glassy .thumb {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 20px 10px rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

body.theme-glassy .thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    z-index: 1;
}

/* Product page: same glass UI so gradient shows through all containers */
body.theme-glassy .product-page .product-main,
body.theme-glassy .product-page .product-right {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 20px 10px rgba(255, 255, 255, 0.06);
}

body.theme-glassy .product-hero,
body.theme-glassy .product-panel,
body.theme-glassy .product-page .product-right-image {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 20px 10px rgba(255, 255, 255, 0.06);
}

body.theme-glassy .product-panel {
    border-top-color: rgba(255, 255, 255, 0.25);
}

body.theme-glassy .product-panel-header {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

body.theme-glassy .product-photo,
body.theme-glassy .product-thumb,
body.theme-glassy .product-stack-item {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 16px 8px rgba(255, 255, 255, 0.06);
}

body.theme-glassy .product-page-2-sidebar {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 20px 10px rgba(255, 255, 255, 0.06);
}

.splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease-out;
}

.splash.splash-hidden {
    opacity: 0;
    pointer-events: none;
}

.splash-text {
    margin: 0;
    font-size: clamp(18px, 4vw, 28px);
    letter-spacing: 0.08em;
    color: #111;
}

/* Legal / Privacy page */
.legal-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.legal-page-main {
    text-align: center;
    padding: 24px;
}

.legal-image-wrap {
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
    overflow: hidden;
}

.legal-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.legal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.legal-text {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0.06em;
    color: #111;
}

/* David / About page */
.david-page {
    background: #fff;
}

.david-page .first-page {
    height: auto;
    min-height: calc(100vh - 92px);
}

.david-layout {
    display: grid;
    grid-template-columns: 245px 1.6fr 1.2fr;
    grid-template-rows: auto minmax(100vh, auto);
    gap: 6px;
    padding: 2px 18px 18px;
    min-height: calc(100vh - 92px);
    align-items: stretch;
}

.david-layout .david-sidebar {
    background: #F5F4EE;
    min-height: 100%;
    grid-row: 1 / -1;
}

.david-container {
    grid-column: 2 / -1;
    display: grid;
    grid-template-columns: 1.6fr 1.2fr;
    grid-template-rows: min-content;
    gap: 0;
    align-items: stretch;
    align-self: start;
    background: #F5F4EE;
    min-height: 0;
}

.david-content {
    min-width: 0;
    padding: 32px 40px 48px;
}

.david-container:has(+ .david-page-2) .david-content {
    padding-bottom: 0;
}

.david-right-wrapper {
    grid-column: 2;
    min-height: 0;
    background: #F5F4EE;
    position: relative;
    overflow: hidden;
}

.david-right-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rain-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.rain-drops {
    position: absolute;
    inset: 0;
}

.rain-drop {
    position: absolute;
    top: -20px;
    width: 1px;
    height: 24px;
    background: linear-gradient(to bottom, transparent, rgba(100, 140, 180, 0.5));
    border-radius: 1px;
    animation: rain-fall linear infinite;
}

@keyframes rain-fall {
    to {
        transform: translateY(var(--rain-fall-distance, 100vh));
    }
}

.david-page-2 {
    background: #F5F4EE;
    min-height: 100vh;
    padding: 0 40px 48px;
}

.david-container .david-name {
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 28px;
    letter-spacing: 0.02em;
    color: #111;
}

.david-container .david-section {
    margin-bottom: 28px;
}

.david-container .david-heading {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #111;
}

.david-container .david-heading-normal {
    font-weight: 400;
}

.david-container .david-section p {
    margin: 0 0 14px;
    color: #111;
    font-size: 15px;
    line-height: 1.6;
}

.david-container .david-tagline {
    margin-top: 16px !important;
}

.david-container .david-link {
    color: #0066cc;
    text-decoration: none;
    background: rgba(173, 216, 230, 0.6);
    padding: 0 2px;
}

.david-container .david-link:hover {
    color: #004499;
    text-decoration: underline;
}

.david-sidebar-content a {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    color: inherit;
    text-decoration: none;
}

.david-sidebar-content a:hover {
    text-decoration: underline;
}

/* Fashion page */
.fashion-page {
    background: #fff;
}

.fashion-first-page {
    height: auto;
    min-height: calc(100vh - 92px);
    display: flex;
    flex-direction: column;
}

.fashion-first-page .fashion-layout {
    flex: 0 0 auto;
    min-height: 0;
}

.fashion-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 0;
    flex: 1;
    min-height: calc(100vh - 92px);
    align-items: stretch;
}

.fashion-sidebar {
    background: #F5F4EE;
    min-height: 100%;
    align-self: stretch;
}

.fashion-sidebar-content a {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    color: inherit;
    text-decoration: none;
}

.fashion-sidebar-content a:hover {
    text-decoration: underline;
}

.fashion-container {
    grid-column: 2;
    background: #F9F9F6;
    min-height: 100%;
    padding: 32px 40px 48px;
    border-radius: 10px;
}

.fashion-breadcrumb {
    margin: 0 0 24px;
    font-size: 13px;
    color: #555;
}

.fashion-category {
    margin-bottom: 40px;
}

/* Eyewear-only view: from landing "Eyewear" link (?eyewear=1) */
.fashion-eyewear-only .fashion-category:not([data-category="eyewear"]) {
    display: none !important;
}
.fashion-eyewear-only .fashion-sidebar-content a:not([data-eyewear-link]) {
    display: none !important;
}

.fashion-category-title {
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 12px;
    letter-spacing: 0.06em;
    color: #111;
}

.fashion-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 12px;
    max-width: 100%;
}

.fashion-product-grid--single {
    grid-template-columns: 1fr;
    max-width: 400px;
}

.fashion-product-grid--double {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
}

.fashion-product-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.fashion-about {
    margin: 0 0 12px;
    font-size: 13px;
    color: #333;
}

.fashion-more {
    display: inline;
    background: linear-gradient(to bottom, rgba(255, 200, 200, 0.5), rgba(255, 180, 180, 0.4));
    color: #111;
    text-decoration: underline;
    font-size: 13px;
    padding: 2px 6px;
}

.fashion-more:hover {
    background: linear-gradient(to bottom, rgba(255, 180, 180, 0.6), rgba(255, 160, 160, 0.5));
    text-decoration: underline;
}

.fashion-takealook-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.fashion-like-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.fashion-like-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: transform 0.2s ease;
}

.fashion-like-svg {
    width: 0.95em;
    height: 0.95em;
    color: #333;
    stroke: currentColor;
    transition: fill 0.2s ease, stroke 0.2s ease, color 0.2s ease;
    vertical-align: middle;
}

.fashion-like-btn--liked .fashion-like-svg {
    fill: none;
    stroke: currentColor;
    color: #333;
}

.fashion-like-btn:hover .fashion-like-icon {
    transform: scale(1.15);
}

.fashion-like-count {
    font-size: 13px;
    line-height: 1;
    color: #333;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.fashion-share-feedback {
    font-size: 12px;
    line-height: 1;
    color: #666;
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-left: 2px;
    white-space: nowrap;
}

.fashion-share-feedback.is-visible {
    opacity: 1;
}

.product-like-row {
    margin-top: 6px;
}

.fashion-heart-float {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    display: inline-block;
    width: 22px;
    height: 22px;
    animation: fashionHeartFloat 0.9s ease-out forwards;
}

.fashion-heart-float svg {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes fashionHeartFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-70px) scale(1.3);
        opacity: 0;
    }
}

/* Art page */
.art-page {
    background: #fff;
}

.art-interactive-exhibition-btn {
    display: inline-block;
    margin: 0 0 16px 0;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #111;
    background: #F5F4EE;
    border: 1px solid #111;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.art-interactive-exhibition-btn:hover {
    background: #ebeae4;
    border-color: #111;
}

/* Fixed "interactive exhibition" button: sticks below logo at top of viewport */
.art-exhibition-fixed-btn {
    display: none; /* shown only on mobile */
    position: fixed;
    top: 78px;
    left: 34px;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #111;
    background: #F5F4EE;
    border: 1px solid #111;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
    z-index: 1000;
    width: max-content;
    box-sizing: border-box;
}

.art-exhibition-fixed-btn:hover {
    background: #ebeae4;
    border-color: #111;
}

.art-first-page {
    height: auto;
    min-height: calc(100vh - 92px);
    display: flex;
    flex-direction: column;
}

.art-first-page .art-layout {
    flex: 1 1 auto;
    min-height: 0;
}

.art-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 0;
    flex: 1;
    min-height: calc(100vh - 92px);
    align-items: stretch;
}

.art-sidebar {
    background: #F5F4EE;
    min-height: 100%;
    align-self: stretch;
    padding: 24px 20px 32px;
}

.art-page .sidebar-left.art-sidebar {
    background: #F5F4EE;
}

.art-sidebar-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 0 0 16px;
    color: #111;
}

/* Art page: exhibition button lives in left sidebar only; hide from header */
.art-page .art-header-exhibition {
    display: none;
}

.art-artworks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.art-artwork-link {
    display: block;
    font-size: 14px;
    color: inherit;
    text-decoration: none;
    padding: 4px 0;
    cursor: default;
}

.art-artworks-list .art-artwork-link:hover {
    text-decoration: none;
}

.art-artwork-link-active {
    font-weight: 600;
}

.art-container {
    grid-column: 2;
    background: #fff;
    min-height: 100%;
    padding: 24px 32px 48px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-radius: 10px;
}

.art-page .art-container {
    background: transparent;
}

.art-detail {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 100%;
    margin-bottom: 64px;
}

.art-detail:last-child {
    margin-bottom: 0;
}

.art-detail-reverse {
    /* Same as default: image on top, text below */
}

.art-detail-reverse .art-detail-image-wrap,
.art-detail-reverse .art-detail-info {
    order: unset;
}

.art-detail-image-wrap {
    order: 1;
    position: relative;
    width: 100%;
    background: #f0ebe6;
    min-height: 400px;
}

.art-container .art-detail:nth-child(1) .art-detail-image-wrap,
.art-container .art-detail:nth-child(2) .art-detail-image-wrap {
    max-width: 72%;
}

.art-detail-image {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}

.art-detail-info {
    order: 2;
    padding-top: 0;
}

.art-detail-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin: 0 0 16px;
    color: #111;
}

.art-detail-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin: 0 0 20px;
}

.art-detail-meta {
    font-size: 13px;
    margin: 0;
    color: #333;
}

.art-detail-meta dt {
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 2px;
    color: #111;
}

.art-detail-meta dt:first-child {
    margin-top: 0;
}

.art-detail-meta dd {
    margin: 0;
}

/* Art page: Graphic Work section */
.art-graphic-work {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid #e5e0db;
}

.art-graphic-work-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin: 0 0 24px;
    color: #111;
}

.art-graphic-work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 100%;
}

.art-graphic-work-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.art-graphic-work-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 1;
}

.art-graphic-work-year {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.art-sidebar-link {
    display: inline-block;
    font-size: 14px;
    color: #111;
    text-decoration: none;
    margin-top: 4px;
}

.art-sidebar-link:hover {
    text-decoration: underline;
}

/* Architecture page (same layout as art: sidebar + main; sidebar no fill, border; image edge-to-edge) */
.architecture-page {
    background: #fff;
}

.architecture-first-page {
    height: auto;
    min-height: calc(100vh - 92px);
    display: flex;
    flex-direction: column;
}

.architecture-first-page .architecture-layout {
    flex: 0 0 auto;
    min-height: 0;
}

.architecture-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 0;
    flex: 1;
    min-height: calc(100vh - 92px);
    align-items: stretch;
}

.architecture-sidebar {
    background: transparent;
    min-height: 100%;
    padding: 24px 20px 32px;
    border: 1px solid #000;
    box-sizing: border-box;
}

.architecture-page .sidebar-left.architecture-sidebar {
    background: transparent;
}

.architecture-sidebar-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 0 0 8px;
    color: #111;
}

.architecture-sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.architecture-sidebar-links li + li {
    margin-top: 8px;
}

.architecture-sidebar-link {
    font-size: 14px;
    color: #111;
    text-decoration: none;
}

.architecture-sidebar-link:hover {
    text-decoration: underline;
}

.architecture-sidebar-subtitle {
    font-size: 14px;
    margin: 0 0 10px;
    color: #111;
}

.architecture-sidebar-meta {
    font-size: 13px;
    margin: 0 0 10px;
    color: #111;
}

.architecture-sidebar-value {
    font-size: 13px;
    margin: 0 0 10px;
    font-weight: 600;
    color: #111;
}

.architecture-container {
    grid-column: 2;
    background: #fff;
    min-height: 100%;
    padding: 24px 32px 48px 32px;
    position: relative;
}

.architecture-page .architecture-container {
    background: transparent;
}

.architecture-byline {
    font-size: 14px;
    color: #888;
    margin: 0 0 8px;
}

.architecture-europe {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 14px;
    color: #888;
    margin: 0;
}

.architecture-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111;
    letter-spacing: 0.02em;
}

.architecture-subtitle {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px;
    color: #111;
    letter-spacing: 0.02em;
}

/* Image from left edge of sidebar border to right edge of view */
.architecture-image-wrap {
    margin-left: -32px;
    margin-right: -42px;
    width: calc(100% + 74px);
}

.architecture-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.architecture-image-caption {
    font-size: 14px;
    color: #333;
    margin: 12px 0 0;
}

.architecture-see-more {
    display: block;
    text-align: left;
    margin-top: 12px;
    font-size: 14px;
    color: #111;
    text-decoration: underline;
}

.architecture-see-more:hover {
    color: #333;
}

.architecture-image-button {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.architecture-image-button:hover .architecture-image {
    opacity: 0.92;
}

.architecture-image-button .architecture-image-wrap {
    transition: opacity 0.2s ease;
}

.architecture-credit {
    font-size: 12px;
    color: #888;
    margin: 24px 0 0;
    text-align: right;
}

/* Interior Basement gallery page */
.interior-basement-first-page {
    height: auto;
    min-height: calc(100vh - 92px);
    display: flex;
}

.interior-basement-page .page {
    overflow: visible;
}

.interior-basement-page .interior-basement-first-page .architecture-layout {
    flex: 1 1 auto;
    min-height: auto;
    align-items: start;
}

.interior-basement-layout .architecture-container.interior-basement-gallery {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: transparent;
}

body.theme-glassy .interior-basement-page .architecture-container.interior-basement-gallery {
    background: transparent;
}

.interior-basement-back {
    display: inline-block;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    margin-bottom: 24px;
}

.interior-basement-back:hover {
    text-decoration: underline;
}

.interior-basement-images {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.interior-basement-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.architecture-sidebar-link--active {
    font-weight: 600;
}

.interior-basement-about .architecture-sidebar-title {
    margin-bottom: 12px;
}

.interior-basement-about-intro {
    font-size: 14px;
    color: #111;
    margin: 0 0 12px;
    line-height: 1.4;
}

.interior-basement-about-text {
    font-size: 13px;
    color: #333;
    margin: 0 0 12px;
    line-height: 1.45;
}

.interior-basement-about-text:last-of-type {
    margin-bottom: 0;
}

/* APPS_ page: left sidebar SHOP_ + list, main headline + 3 phone mockups */
.apps-page {
    background: #fff;
}

.apps-page .site-footer {
    display: none;
}

.apps-first-page {
    height: auto;
    min-height: calc(100vh - 92px);
    display: flex;
    flex-direction: column;
}

.apps-first-page .apps-layout {
    flex: 1 1 auto;
    min-height: 0;
}

.apps-layout {
    display: grid;
    grid-template-columns: 245px 1.6fr 1.2fr;
    gap: 6px;
    flex: 1;
    min-height: calc(100vh - 92px);
    align-items: stretch;
}

.apps-sidebar {
    background: #F9F9F6;
    min-height: 100%;
    align-self: stretch;
    padding: 28px 24px 32px;
    display: flex;
    flex-direction: column;
}

.apps-page .sidebar-left.apps-sidebar {
    background: #F9F9F6;
}

.apps-sidebar-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0 0 20px;
    color: #111;
}

.apps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.apps-list-item {
    font-size: 14px;
    font-weight: 400;
    color: #111;
    display: block;
}

.apps-container {
    grid-column: 2 / -1;
    background: #F9F9F6;
    min-height: 100%;
    padding: 48px 40px 120px 40px;
    border-radius: 10px;
}

.apps-headline {
    margin: 0 0 56px;
    font-size: 0;
    line-height: 1.2;
    text-align: left;
    background: linear-gradient(to bottom, #111 0%, #555 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.apps-headline-line1 {
    display: block;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.apps-headline-line2 {
    display: block;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-top: 4px;
}

.apps-showcase {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 48px;
    width: 100%;
    box-sizing: border-box;
}

.apps-showcase-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.apps-image-wrap {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 9 / 19.5;
    min-height: 320px;
    background: #F9F9F6;
    overflow: hidden;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
}

.apps-image-wrap img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transform: scale(1.08);
}

.apps-image-wrap--large img {
    transform: scale(1.15);
}

.apps-showcase-title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin: 0;
    text-align: center;
    line-height: 1.35;
}

.apps-showcase-year {
    font-size: 13px;
    color: #666;
    margin: 4px 0 0;
    text-align: center;
}

.app-showcase-page .app-showcase-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    border-radius: 10px;
}

.app-showcase-back {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    text-decoration: none;
    margin-bottom: 8px;
    -webkit-tap-highlight-color: transparent;
}

.app-showcase-back:hover {
    text-decoration: underline;
}

.app-showcase-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 320px;
}

.app-showcase-single .app-showcase-single-image-wrap {
    width: 100%;
    max-width: 280px;
}

.app-showcase-single .apps-image-wrap--large {
    max-width: 320px;
}

.apps-featured {
    width: 100%;
    margin-top: 80px;
    box-sizing: border-box;
    height: 500px;
    padding: 10px;
}

.apps-featured-inner {
    display: flex;
    align-items: stretch;
    gap: 32px;
    width: 100%;
    height: 100%;
}

.apps-featured-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 60%;
    overflow: hidden;
    background: #eee;
    align-self: stretch;
}

.apps-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apps-featured-text {
    flex: 1;
    min-width: 0;
}

.apps-featured-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin: 0 0 8px;
}

.apps-featured-year {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.apps-gallery-extras {
    display: none;
}

/* Apps page lightbox: 50% black overlay, large center image, X below, arrows (same-app gallery) */
.apps-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.apps-lightbox.is-open {
    visibility: visible;
    opacity: 1;
}

.apps-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.apps-lightbox-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 90vw;
}

.apps-lightbox-img {
    display: block;
    max-width: 85vw;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.apps-lightbox-close {
    width: 48px;
    height: 48px;
    border: none;
    background: #fff;
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apps-lightbox-close:hover {
    background: #eee;
}

.apps-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apps-lightbox-arrow:hover {
    background: #fff;
}

.apps-lightbox-prev {
    left: 20px;
}

.apps-lightbox-next {
    right: 20px;
}

/* Affiliate Program page */
.affiliate-page {
    background: #fff;
}

.affiliate-main {
    max-width: 560px;
    margin: 0 auto;
    padding: 48px 24px 64px;
    text-align: center;
}

.affiliate-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #111;
}

.affiliate-text {
    font-size: 16px;
    line-height: 1.5;
    color: #111;
    margin: 0 0 32px;
}

.affiliate-image-link {
    display: inline-block;
    margin: 0 auto;
}

.affiliate-image {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.affiliate-tap-hint {
    font-size: 14px;
    color: #555;
    margin: 16px 0 0;
}

/* Help / FAQ page (same layout as art page: sidebar + main container) */
.help-page {
    background: #fff;
}

.help-first-page {
    height: auto;
    min-height: calc(100vh - 92px);
    display: flex;
    flex-direction: column;
}

.help-first-page .help-layout {
    flex: 0 0 auto;
    min-height: 0;
}

.help-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 0;
    flex: 1;
    min-height: calc(100vh - 92px);
    align-items: stretch;
}

.help-sidebar {
    background: #F5F4EE;
    min-height: 100%;
    padding: 24px 20px 32px;
}

.help-page .sidebar-left.help-sidebar {
    background: #F5F4EE;
}

.help-sidebar-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 0 0 16px;
    color: #111;
}

.help-container {
    grid-column: 2;
    background: #F9F9F6;
    min-height: 100%;
    padding: 32px 40px 48px;
    border-radius: 10px;
}

.help-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 900px;
}

.help-section {
    margin: 0;
}

.help-heading {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #111;
}

.help-contact {
    font-size: 15px;
    margin: 0 0 24px;
    color: #111;
}

.help-contact a {
    color: #111;
    text-decoration: underline;
}

.help-subheading {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #111;
}

.help-list {
    margin: 0 0 24px;
    padding-left: 1.4em;
    font-size: 15px;
    line-height: 1.6;
    color: #111;
}

.help-list li {
    margin-bottom: 6px;
}

.help-list a {
    color: #111;
    text-decoration: underline;
}

.help-list a:hover {
    text-decoration: underline;
}

/* Magazine page — same layout as architecture (sidebar + main container) */
.magazine-page {
    background: #fff;
}

.magazine-first-page {
    height: auto;
    min-height: calc(100vh - 92px);
    display: flex;
    flex-direction: column;
}

.magazine-first-page .magazine-layout {
    flex: 1 0 auto;
    min-height: calc(100vh - 92px);
}

.magazine-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 0;
    flex: 1 0 auto;
    min-height: calc(100vh - 92px);
    align-items: stretch;
}

.magazine-layout .magazine-grid {
    grid-column: 1 / -1;
    grid-row: 1;
}

.magazine-sidebar {
    grid-column: 1;
    grid-row: 1;
    z-index: 1;
    position: relative;
    background: transparent;
    min-height: 100%;
    padding: 24px 20px 32px;
    border: none;
    box-sizing: border-box;
}

.magazine-page .sidebar-left.magazine-sidebar {
    background: transparent;
}

.magazine-sidebar-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 0 0 8px;
    color: #111;
}

.magazine-sidebar-subtitle {
    font-size: 14px;
    margin: 0 0 10px;
    color: #111;
}

.magazine-sidebar-meta {
    font-size: 13px;
    margin: 0 0 10px;
    color: #111;
}

.magazine-sidebar-value {
    font-size: 13px;
    margin: 0 0 10px;
    font-weight: 600;
    color: #111;
}

.magazine-container {
    grid-column: 2;
    background: #fff;
    min-height: 100%;
    padding: 24px 32px 48px 32px;
    position: relative;
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-auto-rows: minmax(180px, 1fr);
    gap: 0;
    width: 100%;
    padding: 0 32px 48px 0;
    box-sizing: border-box;
    background: #fff;
}

.magazine-grid-cell {
    position: relative;
    min-height: 0;
    border: 0.5px solid #6E6D6D;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 8px 12px;
    box-sizing: border-box;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.magazine-cell-num {
    position: absolute;
    top: 8px;
    left: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

.magazine-cell-content {
    width: 100%;
    height: 100%;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.magazine-cell-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.magazine-grid-cell-text {
    background: #e8e8e8;
}

.magazine-cell-label {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #555;
}

@media (max-width: 900px) {
    .magazine-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
}

@media (max-width: 500px) {
    .magazine-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Hypnotize me page */
.hypnotize-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    background: #000;
}

.hypnotize-marquee {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: #fff;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
}

.hypnotize-marquee-inner {
    display: inline-flex;
    width: max-content;
    animation: hypnotize-scroll 30s linear infinite;
}

.hypnotize-marquee-text {
    color: #000;
    font-size: 16px;
    padding-right: 8em;
    flex-shrink: 0;
}

@keyframes hypnotize-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hypnotize-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.hypnotize-bg img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.hypnotize-cta {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: inline-block;
    padding: 12px 24px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.hypnotize-cta:hover {
    color: #000;
    text-decoration: none;
    background: #e8e8e8;
}

.david-album-inline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.david-album-cells {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.david-album-cells img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 1;
}

.david-taste-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.david-taste-images img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 1;
}

.david-album-inline .david-album-item {
    background: #e8e7e2;
    padding-bottom: 28%;
}

/* David standalone page (legacy / fallback) */
.david-page-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 32px 64px;
}

.david-header {
    margin-bottom: 32px;
}

.david-back {
    font-size: 14px;
    color: #444;
    text-decoration: none;
}

.david-back:hover {
    text-decoration: underline;
}

.david-main {
    font-size: 15px;
    line-height: 1.6;
}

.david-name {
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 28px;
    letter-spacing: 0.02em;
    color: #111;
}

.david-section {
    margin-bottom: 36px;
}

.david-heading {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #111;
}

.david-section p {
    margin: 0 0 14px;
    color: #333;
}

.david-section-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
}

.david-inspire-link {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    text-decoration: underline;
    letter-spacing: 0.02em;
}

.david-inspire-link:hover {
    text-decoration: underline;
}

.david-tagline {
    margin-top: 16px !important;
}

.david-link {
    color: #0066cc;
    text-decoration: underline;
}

.david-link:hover {
    color: #004499;
}

.david-album {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: 140px 140px 120px;
    gap: 12px;
    margin-top: 16px;
}

/* Album with .david-album-cells: use fluid grid so images never overlap */
.david-album.david-album-cells {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
}

.david-album.david-album-cells img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 1;
    min-height: 0;
}

/* Pinterest-style masonry: columns, original aspect ratios */
.david-album.david-album-masonry {
    display: block;
    column-count: 4;
    column-gap: 12px;
    margin-top: 12px;
    grid-template-columns: none;
    grid-template-rows: none;
}

.david-album-masonry .david-album-masonry-item {
    break-inside: avoid;
    margin-bottom: 12px;
    page-break-inside: avoid;
}

.david-album-masonry .david-album-masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: bottom;
}

@media (max-width: 900px) {
    .david-album-masonry {
        column-count: 3;
    }
}

@media (max-width: 560px) {
    .david-album-masonry {
        column-count: 2;
    }
}

.david-album-item {
    background: #dcdcdc;
    min-height: 0;
}

.david-album-tall {
    grid-column: 1;
    grid-row: 1 / 3;
}

.david-album-wide {
    grid-column: 2;
    grid-row: 1;
}

.david-album-square {
    grid-column: 2;
    grid-row: 2;
}

.david-album-medium {
    grid-column: 3;
    grid-row: 1 / 3;
}

.david-album-h {
    grid-column: span 1;
    grid-row: 3;
}

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

a:hover {
    text-decoration: underline;
}

.page {
    margin-left: 34px;
    margin-right: 10px;
    width: calc(100% - 44px); /* full viewport minus left+right margins */
    background: #FDFDFD;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    /* Align logo and left sidebar: same pull-out from content edge */
    --page-padding-x: 18px;
    --align-pull-left: 24px;
    /* Prevent sidebar left edge from being clipped (it extends left by align-pull minus padding) */
    padding-left: 6px;
    box-sizing: border-box;
}

.site-header {
    display: grid;
    grid-template-columns: 230px 1.6fr 1.2fr;
    gap: 6px;
    align-items: flex-start;
    padding: 20px var(--page-padding-x, 18px) 2px;
    background: #fff;
    overflow: visible;
    position: relative;
    border-radius: 0 12px 0 0;
}

.site-header::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    width: 230px;
    background: #000;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 0;
    border-radius: 0;
}

.site-header:has(.brand-logo:hover)::before {
    opacity: 1;
}

/* Main page: align header grid with layout so GO right edge aligns with hero right edge */
.page:has(.landing-content) .site-header {
    grid-template-columns: 245px 1.6fr 1.2fr;
}

.page:has(.landing-content) .site-header::before {
    width: 245px;
}

.brand {
    font-size: 20px;
    letter-spacing: 0.08em;
    padding-right: 44px;
    margin-left: calc(-1 * var(--align-pull-left, 24px));
    align-self: start;
    margin-top: -20px;
}

.brand-logo {
    display: block;
    line-height: 0;
    overflow: visible;
    position: relative;
}

.brand-logo:hover {
    text-decoration: none;
}

.site-header .brand {
    position: relative;
    z-index: 1;
}

.brand-logo img {
    display: block;
    height: 52px;
    width: auto;
    object-fit: contain;
    transform: scale(1.4);
    transform-origin: left top;
    transition: opacity 0.25s ease;
    position: relative;
    z-index: 1;
}

.brand-logo:hover img {
    opacity: 0;
}

.brand-logo::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: url(images/WhiteLogo.png) no-repeat left top;
    background-size: contain;
    transform: scale(1.4);
    transform-origin: left top;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 1;
}

.brand-logo:hover::after {
    opacity: 1;
}

.main-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-right: -36px;
    position: relative;
    z-index: 1;
}

.nav-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-right: 14px;
    box-sizing: border-box;
    font-size: 22px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sub-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sub-nav .search {
    margin-left: auto;
    margin-right: 0;
}

.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.liquid-toggle-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.liquid-toggle-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.liquid-toggle-labels {
    display: flex;
    justify-content: space-between;
    width: 76px;
    padding: 0 2px;
    font-size: 8px;
    letter-spacing: 0.02em;
    color: inherit;
    opacity: 0.85;
}

.liquid-toggle-label {
    flex: 1;
}

.liquid-toggle-label:first-child {
    text-align: left;
}

.liquid-toggle-label:nth-child(2) {
    text-align: center;
}

.liquid-toggle-label:last-child {
    text-align: right;
}

.liquid-toggle-label.active {
    opacity: 1;
    font-weight: 600;
}

.lang-switcher-fixed {
    position: fixed;
    top: 16px;
    right: 18px;
    z-index: 1000;
}

.lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font: inherit;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 6px 10px;
    color: inherit;
}

.lang-switcher-btn:hover {
    text-decoration: underline;
}

.lang-switcher-icon {
    display: inline-flex;
    line-height: 0;
}

.lang-switcher-icon svg {
    display: block;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: #fff;
    border: 1px solid #ccc;
    min-width: 120px;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.lang-dropdown button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: none;
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.lang-dropdown button:hover {
    background: #f0f0f0;
}

.lang-dropdown button.active {
    font-weight: 600;
    text-decoration: underline;
}

.ui-style-wrap {
    position: relative;
}

.ui-style-dropdown {
    right: auto;
    left: 0;
}

.sub-nav-item {
    padding-bottom: 2px;
}

.sub-nav-item:hover {
    text-decoration: underline;
}

.nav-item {
    padding-bottom: 2px;
}

.nav-item:hover {
    text-decoration: underline;
}

.nav-item-active {
    font-weight: 600;
    text-decoration: underline;
}

.search {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search label {
    font-size: 10px;
}

.search input {
    border: 1px solid #aaa;
    padding: 2px 4px;
    font-size: 10px;
    width: 120px;
}

.search button {
    border: 1px solid #000;
    background: #f5f5f5;
    padding: 2px 10px;
    font-size: 10px;
    cursor: pointer;
}

.layout {
    display: grid;
    grid-template-columns: 230px 1.6fr 1.2fr;
    gap: 6px;
    padding: 2px var(--page-padding-x, 18px) 18px;
    flex: 1;
    border-radius: 0 0 12px 12px;
}

/* Landing page: scrollable with multiple screens */
.landing-content {
    flex: 0 0 auto;
}

.landing-content .layout {
    flex: 0 0 auto;
    grid-template-columns: 245px 1.6fr 1.2fr;
}

.landing-screen {
    min-height: 100vh;
}

/* First page: header + main + footer fit in one viewport */
.first-page {
    height: calc(100vh - 92px);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    border-radius: 0 0 12px 12px;
}

.first-page .layout {
    flex: 1;
    min-height: 0;
    padding-bottom: 8px;
}

.first-page .landing-screen {
    min-height: 0;
}

.first-page .site-footer {
    flex-shrink: 0;
}

/* Landing page: tiny border radius on each container */
.landing-content .hero,
.landing-content .hero-image,
.landing-content .work,
.landing-content .right-hero,
.landing-content .quote-block,
.landing-content .sidebar-left,
.landing-content .sidebar-right {
    border-radius: 3px;
}

/* Art page: first-page must grow with content so sidebar extends to bottom */
.art-page .first-page {
    height: auto;
}

/* Apps page: first-page must grow with content so sidebar extends to bottom */
.apps-page .first-page {
    height: auto;
}

/* Fashion page: first-page must grow with content so sidebar extends to bottom */
.fashion-page .first-page {
    height: auto;
}

/* Design philosophy (second page) */
.research-blog-page {
    display: grid;
    grid-template-columns: 220px 1fr 80px;
    gap: 0;
    padding: 0;
    margin-top: 0;
    background: #fff;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid #000;
}

.research-blog-sidebar {
    background: transparent;
    padding: 24px 16px;
    box-sizing: border-box;
}

.research-blog-title {
    font-size: 24px;
    letter-spacing: 0.14em;
    margin: 0;
    font-weight: 700;
    color: #000;
}

.research-blog-main {
    background: #fff;
    padding: 24px 32px 48px;
    min-height: 80vh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Philosophy layout: hero row + text block */
.philosophy-layout {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.philosophy-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
    width: 100%;
}

.philosophy-image-wrap {
    position: relative;
    flex: 0 0 auto;
    width: 520px;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8e8e8;
}

.philosophy-image-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 45%;
    background: radial-gradient(ellipse 60% 50% at 30% 40%, rgba(255,255,255,0.35) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.philosophy-image-wrap::after {
    content: '';
    position: absolute;
    top: 8%;
    left: 12%;
    width: 24%;
    height: 22%;
    background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(255,255,255,0.25) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}

.philosophy-image-label {
    position: absolute;
    top: -24px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    color: #111;
    z-index: 2;
}

.philosophy-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.philosophy-text-wrap {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 0 0;
}

.philosophy-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15px;
    line-height: 1.65;
    color: #111;
    margin: 0;
    text-align: justify;
}

/* Right-side vertical lines (design philosophy) */
.philosophy-vertical-lines {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 24px 16px 48px;
    gap: 12px;
    box-sizing: border-box;
}

.philosophy-line {
    display: block;
    width: 1px;
    min-height: 100%;
    background: #ddd;
}

.philosophy-line-red {
    width: 4px;
    background: #c00;
    margin: 0 4px;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
    max-width: 900px;
}

.blog-feature {
    position: relative;
}

.blog-feature-large {
    grid-column: 1;
    grid-row: 1 / 3;
}

.blog-image-wrap {
    position: relative;
    overflow: hidden;
    background: #e0e0e0;
    width: 100%;
}

.blog-feature-large .blog-image-wrap {
    padding-bottom: 120%;
}

.blog-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-image-crosshair::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #c00;
    pointer-events: none;
    z-index: 1;
}

.blog-image-crosshair::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 60px;
    margin: -30px 0 0 -1px;
    background: #c00;
    pointer-events: none;
    z-index: 1;
}

.blog-feature-avatar {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-avatar {
    width: 64px;
    height: 64px;
    border-radius: 2px;
    background: #333;
    flex-shrink: 0;
}

.blog-feature-vertical {
    grid-column: 3;
    grid-row: 1 / 3;
}

.blog-image-vertical {
    padding-bottom: 200%;
}

.blog-feature-card {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: flex-start;
}

.blog-card {
    max-width: 200px;
}

.blog-card-title {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 6px;
    font-weight: 400;
}

.blog-card-body {
    font-size: 11px;
    line-height: 1.5;
    margin: 0;
    color: #444;
}

.blog-feature-portrait {
    grid-column: 1;
    grid-row: 3;
}

.blog-feature-portrait .blog-image-wrap {
    padding-bottom: 100%;
}

.blog-card-title-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    z-index: 2;
    color: #000;
}

.blog-brand {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: 9px;
    color: #666;
    z-index: 2;
}

.blog-feature-abstract {
    grid-column: 2 / 4;
    grid-row: 3;
}

.blog-image-abstract {
    padding-bottom: 40%;
    background: linear-gradient(135deg, #ccc 0%, #e8e8e8 50%, #fff 100%);
}

.sidebar-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #E4E4E4;
    padding: 12px 12px 12px 15px;
    margin-left: calc(-1 * var(--align-pull-left, 24px));
    border-radius: 10px;
}

.sidebar-block h2 {
    font-size: 24px;
    margin: 0 0 8px;
    letter-spacing: 0.14em;
}

.sidebar-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
}

.sidebar-block li + li {
    margin-top: 10px;
}

.sidebar-footer {
    font-size: 11px;
    margin-top: 20px;
}

.main-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    margin-right: -36px;
    border-radius: 10px;
}

.main-column .work {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.hero {
    background: #E4E4E4;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-image {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 590px;
    overflow: hidden;
}

.hero-label {
    position: absolute;
    top: 28px;
    left: 12px;
    font-size: 42px;
    letter-spacing: 0.18em;
    z-index: 2;
}

.hero-image img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

.hero-caption {
    position: absolute;
    top: 85px;
    left: 12px;
    right: auto;
    bottom: auto;
    font-size: 11px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.hero-caption [data-i18n="hero.model"] {
    color: #000;
    text-shadow: none;
}

.hero-caption .hero-caption-link {
    color: inherit;
    text-decoration: none;
}
.hero-caption .hero-caption-link:hover {
    text-decoration: underline;
}

.work {
    background: #E4E4E4;
    padding: 12px;
    overflow: hidden;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.work::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    bottom: 16px;
    width: 48px;
    background: linear-gradient(to right, transparent, #E4E4E4);
    pointer-events: none;
    z-index: 1;
}

.work h3 {
    margin: 0 0 8px;
    font-size: 13px;
    letter-spacing: 0.16em;
}

.work-strip-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1;
    min-height: 0;
    min-width: 0;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.work-strip {
    display: flex;
    flex-wrap: nowrap;
    width: 200%;
    gap: 0;
}

.work-item {
    font-size: 10px;
    display: flex;
    flex-direction: column;
    flex: 0 0 12.5%;
    min-width: 0;
    padding: 0;
    border: 1px solid transparent;
    cursor: pointer;
}

.work-item .work-meta {
    margin-top: auto;
    padding-bottom: 10px;
}

.work-item:hover {
    border-color: #999;
    background: #ececec;
}

.thumb {
    width: 100%;
    padding-bottom: 100%;
    margin-bottom: 4px;
    position: relative;
    overflow: hidden;
}

.thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.work-meta div:last-child {
    color: #555;
}

.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 10px;
}

.right-hero {
    flex: 0 0 auto;
    height: 590px;
    width: calc(100% - 40px);
    margin-left: auto;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.right-hero img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.right-hero-cycle .right-hero-img {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.right-hero-cycle .right-hero-img.active {
    opacity: 1;
}

.quote-block {
    flex: 1;
    min-height: 0;
    width: calc(100% - 40px);
    margin-left: auto;
    background: #E4E4E4;
    padding: 12px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
}

.quote-block h3 {
    margin: 0 0 6px;
    font-size: 14px;
    letter-spacing: 0.16em;
}

.quote-block .quote-inspire {
    text-decoration: underline;
}

/* Inspire me overlay: fade to black, centered square image that fades between images */
.inspire-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.inspire-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.inspire-overlay-backdrop {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.inspire-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    pointer-events: none;
}

.inspire-title {
    margin: 0;
    font-size: 15px;
    letter-spacing: 0.12em;
    text-transform: lowercase;
    color: #fff;
}

.inspire-image-wrap {
    position: relative;
    width: min(520px, 92vw);
    aspect-ratio: 1;
    max-height: min(520px, 92vw);
}

.inspire-subtitle {
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.85);
}

.inspire-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.inspire-img.active {
    opacity: 1;
}

.site-footer {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    padding: 4px 24px 8px;
    font-size: 14px;
    background: #fff;
    white-space: nowrap;
    text-decoration: underline;
    border-radius: 0 0 12px 12px;
}

.site-footer a {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
}

.footer-links a:not(:first-child) {
    border-left: 1px solid currentColor;
    padding-left: 10px;
}

.footer-meta {
    color: #555;
    margin-left: auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}

.footer-meta span:not(:first-child) {
    border-left: 1px solid currentColor;
    padding-left: 8px;
}

/* Product pages (left sidebar: SHOP_ + info; center: hero + PHOTOS strip; right: dark campaign images) */

.product-page .site-footer {
    display: none;
}

.product-page .page {
    min-height: 0;
    height: auto;
}

/* Product page 2: second full-viewport section, same 3-column layout */
.product-page-2 {
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.product-page-2 .layout {
    display: grid !important;
    grid-template-columns: minmax(200px, 18%) 1fr minmax(220px, 26%);
    gap: 0;
    min-height: 100vh;
    align-items: stretch;
    padding: 2px 18px 18px;
    width: 100%;
    box-sizing: border-box;
}

/* Page 2 left column: same width/background, no duplicated content */
.product-page-2-sidebar {
    background: #F5F5F5;
    min-width: 0;
    border-radius: 10px;
}

/* Force 3-column grid: left ~18%, center flexible, right ~27% (match mockup) */
.product-page .layout {
    display: grid !important;
    grid-template-columns: minmax(200px, 18%) 1fr minmax(220px, 26%);
    gap: 0;
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
    padding: 2px 18px 0;
    width: 100%;
    box-sizing: border-box;
}

/* Product page without right-hero column (e.g. Half-Half Remixed Sunglasses) */
.product-page-no-right .layout {
    grid-template-columns: minmax(200px, 18%) 1fr;
}

.product-page .sidebar-left {
    background: #F5F5F5;
    padding: 28px 24px 32px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    align-self: stretch;
}

.product-page .sidebar-block h2 {
    margin: 0 0 20px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.product-page .sidebar-footer {
    margin-top: auto;
    padding-top: 32px;
}

.product-page .sidebar-footer p {
    margin: 0;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.02em;
    text-align: left;
}

.product-page .sidebar-left .product-info {
    font-size: 13px;
    line-height: 1.5;
    margin-top: 12px;
    color: #111;
}

.product-info {
    font-size: 11px;
    line-height: 1.5;
    margin-top: 12px;
    color: #111;
}

.product-info .product-info-label {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.product-info .product-info-value {
    font-weight: normal;
}

.product-page .sidebar-left .product-info div:first-of-type {
    font-size: 12px;
    letter-spacing: 0.05em;
}

.product-info div:first-of-type {
    font-size: 10px;
    letter-spacing: 0.05em;
}

.product-info a {
    text-transform: none;
    font-size: 11px;
    text-decoration: underline;
    display: inline-block;
    margin-top: 8px;
}

.product-page .sidebar-left .product-info a {
    font-size: 13px;
}

.product-page .product-main {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    padding: 0;
    min-width: 0;
    border-radius: 10px;
}

.product-page .product-main > * {
    margin: 0;
}

.product-hero {
    position: relative;
    width: 100%;
    flex: 1 1 50%;
    min-height: 55vh;
    max-height: 90vh;
    background: #e8e8e8;
    overflow: hidden;
    margin: 0;
}

.product-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-panel {
    background: #fff;
    border: none;
    border-top: 1px solid #e8e8e8;
}

.product-panel-header {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 12px 18px 8px;
    border: none;
    background: #fff;
    color: #111;
}

.product-photos {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    padding: 0;
}

.product-photo {
    position: relative;
    overflow: hidden;
    min-height: 200px;
    background: #e8e8e8;
}

.product-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    row-gap: 10px;
    padding: 12px 18px;
}

.product-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #e8e8e8;
    border: 1px solid #e1e1e1;
}

.product-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-strip-hint {
    font-size: 11px;
    color: #666;
    padding: 0 18px 18px;
}

.product-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: 0;
}

.product-stack-item {
    position: relative;
    width: 100%;
    min-height: 55vh;
    max-height: 90vh;
    background: #e8e8e8;
    overflow: hidden;
    margin: 0;
}

.product-stack-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-page .product-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    min-width: 0;
}

.product-page .product-right-image {
    position: relative;
    overflow: hidden;
    background: #2a2a2a;
    line-height: 0;
}

.product-page .product-right-image img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
    object-fit: contain;
}

/* Duffel Bag page: hero and second hero image use wrapper for fitted (contain) display, full width edge-to-edge */
.product-page.duffel-bag-page .product-hero,
.product-page.duffel-bag-page .product-stack-item:first-of-type {
    min-height: 88vh;
    max-height: 135vh;
}

.product-page.duffel-bag-page .product-stack-item:first-of-type {
    margin-top: -6vh;
}

.product-page.duffel-bag-page .product-hero .product-image-wrap,
.product-page.duffel-bag-page .product-stack-item:first-of-type .product-image-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-page.duffel-bag-page .product-image-wrap img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Gala Dress page: hero uses same image wrapper for fitted (contain) display, full width, larger vertical */
.product-page.gala-dress-page .product-hero {
    min-height: 88vh;
    max-height: 135vh;
}

.product-page.gala-dress-page .product-hero .product-image-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-page.gala-dress-page .product-image-wrap img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* ========== Product page: mobile layout (phone) ========== */
/* Order: 1 About (sidebar) → 2 First product image (hero) → 3 Right-hero images → 4 Other product images (stack) */
@media (max-width: 768px) {
    .product-page .page {
        padding-bottom: 24px;
    }

    .product-page .layout {
        display: flex !important;
        flex-direction: column;
        gap: 0;
        min-height: 0;
        padding: 12px 12px 24px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Let product-hero and product-stack participate in layout order as siblings */
    .product-page .product-main {
        display: contents;
    }

    .product-page .sidebar-left {
        order: 1;
        width: 100%;
        margin-bottom: 16px;
        padding: 24px 16px 8px;
        text-align: center;
        align-items: center;
        background: transparent !important;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .product-page .sidebar-left .sidebar-block {
        background: transparent !important;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0 0 12px;
    }

    .product-page .sidebar-left .sidebar-block h2,
    .product-page .sidebar-left .product-info,
    .product-page .sidebar-left .sidebar-footer {
        text-align: center;
    }

    .product-page .sidebar-left .product-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin: 0;
    }

    .product-page .sidebar-left .sidebar-footer {
        padding: 0;
        margin: 16px 0 0;
    }

    .product-page .sidebar-left .sidebar-footer p {
        text-align: center;
    }

    /* About container on mobile + glass: black background */
    body.theme-glassy .product-page .sidebar-left,
    body.theme-glassy .product-page .sidebar-left .sidebar-block {
        background: #000 !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none !important;
        border-color: transparent !important;
        border-radius: 0;
        box-shadow: none !important;
        outline: none;
        filter: none;
    }

    body.theme-glassy .product-page .sidebar-left .sidebar-block h2,
    body.theme-glassy .product-page .sidebar-left .product-info,
    body.theme-glassy .product-page .sidebar-left .product-info .product-info-label,
    body.theme-glassy .product-page .sidebar-left .product-info .product-info-value,
    body.theme-glassy .product-page .sidebar-left .sidebar-footer p {
        color: #eee;
    }

    body.theme-glassy .product-page .sidebar-left::before,
    body.theme-glassy .product-page .sidebar-left::after,
    body.theme-glassy .product-page .sidebar-left .sidebar-block::before,
    body.theme-glassy .product-page .sidebar-left .sidebar-block::after {
        display: none !important;
    }

    .product-page .product-hero {
        order: 2;
        min-height: 50vh;
        max-height: 85vh;
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
    }

    .product-page .product-hero img,
    .product-page .product-hero .product-image-wrap img {
        position: relative;
        width: 100%;
        height: auto;
        max-height: 85vh;
        object-fit: contain;
        object-position: center;
    }

    .product-page .product-right {
        order: 3;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin: 0;
        padding: 0;
    }

    .product-page .product-right-image {
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
    }

    .product-page .product-right-image img {
        width: 100%;
        height: auto;
        max-height: 85vh;
        object-fit: contain;
    }

    .product-page .product-stack {
        order: 4;
        width: 100%;
        margin: 0;
        padding: 0;
        gap: 0;
    }

    .product-page .product-stack-item {
        min-height: 50vh;
        max-height: 85vh;
        width: 100%;
        margin: 0;
        border-radius: 12px;
        overflow: hidden;
    }

    .product-page .product-stack-item img {
        width: 100%;
        height: auto;
        max-height: 85vh;
        object-fit: contain;
        object-position: center;
    }

    /* Duffel / Gala: keep contain behavior on mobile */
    .product-page.duffel-bag-page .product-hero,
    .product-page.duffel-bag-page .product-stack-item,
    .product-page.gala-dress-page .product-hero {
        min-height: 50vh;
        max-height: 85vh;
    }
}

/* Placeholder imagery and colors */

.hero-placeholder {
    background: #c3c3c3;
}

.thumb-placeholder {
    background: #d0d0d0;
}

.right-hero.hero-placeholder {
    background: #b6b6b6;
}

/* Product page lightbox: 50% black overlay, large center image, X below, arrows sides */
.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.product-lightbox.is-open {
    visibility: visible;
    opacity: 1;
}

.product-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.product-lightbox-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 90vw;
}

.product-lightbox-img {
    display: block;
    max-width: 85vw;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-lightbox-close {
    width: 48px;
    height: 48px;
    border: none;
    background: #fff;
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-lightbox-close:hover {
    background: #eee;
}

.product-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-lightbox-arrow:hover {
    background: #fff;
}

.product-lightbox-prev {
    left: 20px;
}

.product-lightbox-next {
    right: 20px;
}

/* Basic responsive adjustment */
@media (max-width: 960px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar-left {
        order: 1;
        flex-direction: row;
        gap: 24px;
    }

    .main-column {
        order: 2;
    }

    .sidebar-right {
        order: 3;
    }
}

/* ========== Landing page: mobile layout (phone size) ========== */
@media (max-width: 768px) {
    /* Scope to landing page only */
    .page:has(.landing-content) {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        padding-top: 72px;   /* space for logo row (top-left) */
        padding-bottom: calc(140px + env(safe-area-inset-bottom, 0)); /* space for bottom nav bar */
        box-sizing: border-box;
    }

    /* Match body background to .page so the whole mobile view is the same color */
    body:has(.page:has(.landing-content)) {
        background: #FDFDFD;
    }

    /* Header becomes bottom nav bar; logo moves to fixed top-left */
    .page:has(.landing-content) .site-header {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        padding: 12px 16px 12px;
        grid-template-columns: none;
        gap: 8px;
        box-sizing: border-box;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.12);
    }

    .page:has(.landing-content) .site-header::before {
        display: none;
    }

    /* Logo: fixed top-left (out of bottom bar flow) */
    .page:has(.landing-content) .site-header .brand {
        position: fixed;
        top: 12px;
        left: 12px;
        right: auto;
        bottom: auto;
        margin: 0;
        padding: 0;
        z-index: 1001;
    }

    .page:has(.landing-content) .site-header .brand-logo img {
        height: 40px;
        transform: scale(1.2);
    }

    .page:has(.landing-content) .site-header .brand-logo::after {
        transform: scale(1.2);
    }

    /* Fixed exhibition button: just below fixed logo on art page (visible only on mobile) */
    .art-page .art-exhibition-fixed-btn {
        display: block;
        top: 60px;
        left: 12px;
    }

    /* Bottom nav: compact so it fits one or two rows */
    .page:has(.landing-content) .main-nav {
        margin-right: 0;
    }

    .page:has(.landing-content) .nav-links {
        font-size: 14px;
        letter-spacing: 0.12em;
        flex-wrap: wrap;
        gap: 4px 8px;
    }

    .page:has(.landing-content) .sub-nav {
        flex-wrap: wrap;
        font-size: 12px;
        gap: 8px;
    }

    /* Hide search from nav bar on mobile */
    .site-header .sub-nav .search {
        display: none;
    }

    /* ========== Affiliate page: same mobile layout (bottom nav, logo top-left) ========== */
    .affiliate-page .page {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        padding-top: 72px;
        padding-bottom: calc(140px + env(safe-area-inset-bottom, 0));
        box-sizing: border-box;
    }

    body.affiliate-page {
        background: #FDFDFD;
    }

    .affiliate-page .site-header {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        padding: 12px 16px 12px;
        grid-template-columns: none;
        gap: 8px;
        box-sizing: border-box;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.12);
    }

    .affiliate-page .site-header::before {
        display: none;
    }

    .affiliate-page .site-header .brand {
        position: fixed;
        top: 12px;
        left: 12px;
        right: auto;
        bottom: auto;
        margin: 0;
        padding: 0;
        z-index: 1001;
    }

    .affiliate-page .site-header .brand-logo img {
        height: 40px;
        transform: scale(1.2);
    }

    .affiliate-page .site-header .brand-logo::after {
        transform: scale(1.2);
    }

    .affiliate-page .main-nav {
        margin-right: 0;
    }

    .affiliate-page .nav-links {
        font-size: 14px;
        letter-spacing: 0.12em;
        flex-wrap: wrap;
        gap: 4px 8px;
    }

    .affiliate-page .sub-nav {
        flex-wrap: wrap;
        font-size: 12px;
        gap: 8px;
    }

    /* ========== Product page: same mobile nav (bottom bar, logo top-left) ========== */
    .product-page .page {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        padding-top: 72px;
        padding-bottom: calc(140px + env(safe-area-inset-bottom, 0));
        box-sizing: border-box;
    }

    body.product-page {
        background: #FDFDFD;
    }

    .product-page .site-header {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        padding: 12px 16px 12px;
        grid-template-columns: none;
        gap: 8px;
        box-sizing: border-box;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.12);
    }

    .product-page .site-header::before {
        display: none;
    }

    .product-page .site-header .brand {
        position: fixed;
        top: 12px;
        left: 12px;
        right: auto;
        bottom: auto;
        margin: 0;
        padding: 0;
        z-index: 1001;
    }

    .product-page .site-header .brand-logo img {
        height: 40px;
        transform: scale(1.2);
    }

    .product-page .site-header .brand-logo::after {
        transform: scale(1.2);
    }

    .product-page .main-nav {
        margin-right: 0;
    }

    .product-page .nav-links {
        font-size: 14px;
        letter-spacing: 0.12em;
        flex-wrap: wrap;
        gap: 4px 8px;
    }

    .product-page .sub-nav {
        flex-wrap: wrap;
        font-size: 12px;
        gap: 8px;
    }

    .affiliate-page .affiliate-main {
        max-width: 100%;
        padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0));
    }

    .affiliate-page .affiliate-image {
        max-width: 100%;
    }

    /* Lang/theme stay top-right via .lang-switcher-fixed; nudge if needed */
    .lang-switcher-fixed {
        top: 12px;
        right: 12px;
    }

    /* First page: wrap content instead of fixed height */
    .page:has(.landing-content) .first-page {
        height: auto;
        min-height: 0;
    }

    /* Single column: hide left sidebar, stack main + right */
    .page:has(.landing-content) .landing-content .layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        padding: 8px 12px 12px;
        gap: 10px;
    }

    .page:has(.landing-content) .landing-content .sidebar-left {
        display: none;
    }

    .page:has(.landing-content) .landing-content .main-column {
        order: 1;
        margin-right: 0;
    }

    .page:has(.landing-content) .landing-content .sidebar-right {
        order: 2;
    }

    /* Hero: first, full width, reasonable height */
    .page:has(.landing-content) .landing-content .hero-image {
        min-height: 420px;
    }

    /* Work strip: larger cells on mobile, fit inside scroll container */
    .page:has(.landing-content) .landing-content .work {
        flex: 0 0 auto;
        min-height: 320px;
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .page:has(.landing-content) .landing-content .work-strip-scroll {
        width: 100%;
        min-width: 0;
        overflow-x: auto;
    }

    /* Strip width = 100% of scroll container so item percentages resolve; items overflow and scroll */
    .page:has(.landing-content) .landing-content .work-strip {
        width: 100%;
        gap: 0;
        display: flex;
        flex-wrap: nowrap;
    }

    .page:has(.landing-content) .landing-content .work-item {
        flex: 0 0 50%;
        min-width: 50%;
        box-sizing: border-box;
    }

    /* Right-hero: smaller, below work, full width */
    .page:has(.landing-content) .landing-content .sidebar-right .right-hero {
        height: 380px;
        width: 100%;
        margin-left: 0;
    }

    .page:has(.landing-content) .landing-content .quote-block {
        width: 100%;
        margin-left: 0;
    }

    /* Footer: full width, allow wrap */
    .page:has(.landing-content) .site-footer {
        flex-wrap: wrap;
        white-space: normal;
        padding: 12px 16px 16px;
    }

    .page:has(.landing-content) .footer-links {
        flex-wrap: wrap;
    }

    .page:has(.landing-content) .footer-meta {
        margin-left: 0;
        width: 100%;
    }

    /* Page 2 (magazine / research-blog): content central, single column */
    .page:has(.landing-content) .research-blog-page {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .page:has(.landing-content) .research-blog-sidebar {
        padding: 16px 0;
    }

    .page:has(.landing-content) .research-blog-main {
        max-width: 100%;
        margin: 0 auto;
        padding: 16px 20px 32px;
    }

    .page:has(.landing-content) .philosophy-hero {
        flex-direction: column;
        align-items: center;
        margin-bottom: 24px;
    }

    .page:has(.landing-content) .philosophy-image-wrap {
        max-width: 100%;
        width: 100%;
    }

    .page:has(.landing-content) .philosophy-text {
        text-align: left;
        font-size: 14px;
    }

    .page:has(.landing-content) .philosophy-vertical-lines {
        display: none;
    }

    .page:has(.landing-content) .blog-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    /* David page: hide right container wrapper (rain column) on mobile */
    .david-page .david-right-wrapper {
        display: none;
    }

    .david-page .david-container {
        grid-template-columns: 1fr;
    }

    /* Apps page: 2 columns for showcase grid on mobile */
    .apps-page .apps-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Help page: single column so "If you're feeling generous" is below "Types of inquiries" */
    .help-page .help-columns {
        grid-template-columns: 1fr;
        display: grid;
    }

    .help-page .help-container {
        padding: 24px 16px 48px;
    }

    /* Art page mobile: exhibition button at top, then full-screen image, then text */
    .art-page .art-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        padding-top: 8px;
        gap: 0;
    }

    .art-page .art-sidebar {
        order: 1;
        padding: 12px 16px 0;
    }

    /* Show exhibition button in sidebar on mobile; its bottom edge aligns with first artwork image */
    .art-page .art-sidebar-exhibition {
        display: inline-block;
    }

    .art-page .art-sidebar .art-interactive-exhibition-btn {
        margin-bottom: 0;
    }

    .art-page .art-header-exhibition {
        display: none;
    }

    .art-page .art-container {
        order: 2;
        padding: 0 16px 48px;
        margin-top: 0;
    }

    .art-page .art-container::before {
        content: '';
        display: block;
        height: 12px;
        width: 100%;
        background: #c00;
    }

    .art-page .art-detail {
        display: flex;
        flex-direction: column;
        margin-bottom: 48px;
        gap: 0;
    }

    .art-page .art-container .art-detail:first-child {
        margin-top: 0;
    }

    .art-page .art-detail:last-child {
        margin-bottom: 0;
    }

    .art-page .art-detail-image-wrap {
        order: 1;
        width: 100%;
        max-width: 92%;
        margin-left: auto;
        margin-right: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
    }

    .art-page .art-detail-image-wrap img {
        width: 100%;
        height: auto;
        max-height: 72vh;
        object-fit: contain;
        object-position: center;
        display: block;
    }

    .art-page .art-detail-info {
        order: 2;
        padding: 24px 20px 32px;
        background: #fff;
    }

    .art-page .art-detail-reverse .art-detail-image-wrap,
    .art-page .art-detail-reverse .art-detail-info {
        order: unset;
    }

    .art-page .art-detail-reverse .art-detail-image-wrap {
        order: 1;
    }

    .art-page .art-detail-reverse .art-detail-info {
        order: 2;
    }

    .art-page .art-graphic-work {
        margin-top: 48px;
        padding-top: 24px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .art-page .art-graphic-work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Theme overrides: bottom bar full width on mobile */
    body.theme-glassy .page:has(.landing-content) .site-header {
        margin: 0;
        border-radius: 0;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.12);
        /* Avoid new containing block so fixed logo stays viewport top-left */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body.theme-glassy .affiliate-page .site-header {
        margin: 0;
        border-radius: 0;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.12);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* Glassy mobile: ensure logo stays viewport top-left (redundant if no backdrop-filter above) */
    body.theme-glassy .page:has(.landing-content) .site-header .brand {
        position: fixed;
        top: 12px;
        left: 12px;
        right: auto;
        bottom: auto;
        margin: 0;
        padding: 0;
        z-index: 1001;
    }

    body.theme-glassy .affiliate-page .site-header .brand {
        position: fixed;
        top: 12px;
        left: 12px;
        right: auto;
        bottom: auto;
        margin: 0;
        padding: 0;
        z-index: 1001;
    }

    /* Glass state + product page mobile: logo top-left, gray background */
    /* In glass state, keep header at top (like pink) so logo is in header at top-left, not in bottom bar */
    body.theme-glassy .product-page .site-header {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: none !important;
        filter: none !important;
        padding: 12px 16px;
    }

    body.theme-glassy .product-page .site-header .brand {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0;
        padding: 0;
        z-index: 1;
    }

    body.theme-glassy.product-page {
        background: #B0B6B6;
    }

    /* No bottom bar in glass state so reduce page bottom padding */
    body.theme-glassy .product-page .page {
        padding-top: 0;
        padding-bottom: 24px;
    }
}

/* Very small phones: 2 work cells visible, more padding for safe area */
@media (max-width: 480px) {
    .page:has(.landing-content) {
        padding-bottom: calc(140px + env(safe-area-inset-bottom, 0));
    }

    .affiliate-page .page {
        padding-bottom: calc(140px + env(safe-area-inset-bottom, 0));
    }

    .page:has(.landing-content) .site-header {
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
    }

    .affiliate-page .site-header {
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
    }

    .page:has(.landing-content) .landing-content .work-item {
        flex: 0 0 65%;
        min-width: 65%;
    }
}

/* ========== Liquid toggle (slider) – scoped to .lang-switcher ========== */
.lang-switcher {
    --liquid-transition: 0.2s;
    --liquid-ease: ease-out;
}

.lang-switcher [data-pressed=true] .liquid__track {
    min-height: 10px;
}

.lang-switcher .liquid-toggle {
    --unchecked: hsl(218, 8%, 81%);
    --checked: hsl(
      var(--hue, 144),
      calc((8 + (var(--complete) / 100 * (92))) * 1%),
      calc((81 - (var(--complete) / 100 * (81 - 43))) * 1%)
    );
    --control: hsl(300, 100%, 100%);
    --border: 2px;
    --width: 76;
    --height: 26;
    height: calc(var(--height) * 1px);
    width: calc(var(--width) * 1px);
    border-radius: 100px;
    border: 0;
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: visible;
    container-type: inline-size;
    background: transparent;
    transition: outline var(--liquid-transition) var(--liquid-ease);
    outline-offset: 2px;
}

.lang-switcher .liquid-toggle:focus-visible {
    outline: 4px solid color-mix(in oklch, var(--checked), transparent);
}

.lang-switcher .liquid-toggle:active {
    outline: none;
}

.lang-switcher .liquid-toggle[data-active=true]:focus-visible {
    outline: 4px solid transparent;
}

.lang-switcher .liquid-toggle .indicator {
    border-radius: 100px;
    pointer-events: none;
    height: 100%;
    width: 100%;
    background: var(--checked);
    position: absolute;
    top: 50%;
    scale: 1;
    left: 50%;
    translate: -50% -50%;
}

.lang-switcher .liquid-toggle .knockout {
    height: calc(var(--height) * 1px);
    width: calc(var(--width) * 1px);
    border-radius: 100px;
    filter: url(#remove-black);
    position: absolute;
    inset: 0;
    will-change: filter, scale;
    transform: translate3d(0, 0, 0);
}

.lang-switcher .liquid-toggle .indicator--masked {
    background: var(--checked);
    z-index: 12;
    height: 100%;
    width: 100%;
    translate: -50% -50%;
    container-type: inline-size;
}

.lang-switcher .liquid-toggle .indicator--masked .mask {
    position: absolute;
    height: calc(100% - (2 * var(--border)));
    width: calc(60% - (2 * var(--border)));
    top: 50%;
    background: #000;
    left: var(--border);
    border-radius: 100px;
    transition: height var(--liquid-transition) var(--liquid-ease),
                width var(--liquid-transition) var(--liquid-ease),
                margin var(--liquid-transition) var(--liquid-ease);
    translate: calc((var(--complete) / 100) * (100cqi - 60cqi - (0 * var(--border)))) -50%;
}

.lang-switcher .liquid-toggle .wrapper {
    position: absolute;
    inset: 0;
    border-radius: 100px;
    clip-path: inset(0 0 0 0 round 100px);
    filter: blur(6px);
    transition: filter var(--liquid-transition) var(--liquid-ease);
}

.lang-switcher .liquid-toggle .liquids {
    position: absolute;
    inset: 0;
    transform: translate3d(0, 0, 0);
    border-radius: 100px;
    overflow: hidden;
    filter: url(#goo);
}

.lang-switcher .liquid-toggle .liquids .liquid__shadow {
    position: absolute;
    inset: 0;
    box-shadow: inset 0px 0px 3px 4px var(--checked),
        inset calc(((var(--complete) / 100) * 8px) + -4px) 0px 3px 4px var(--checked);
    border-radius: 100px;
}

.lang-switcher .liquid-toggle .liquids .liquid__track {
    height: calc((var(--height) * 1px) - (0 * var(--border)));
    width: calc((var(--width) * 1px) - (0 * var(--border)));
    background: var(--checked);
    border-radius: 100px;
    position: absolute;
    top: 50%;
    left: 0;
    transition: height var(--liquid-transition) var(--liquid-ease),
                width var(--liquid-transition) var(--liquid-ease),
                filter var(--liquid-transition) var(--liquid-ease),
                left var(--liquid-transition) var(--liquid-ease);
    translate: calc((var(--complete) / 100) * (100cqi - 100% - (6 * var(--border)))) -50%;
}

.lang-switcher .liquid-toggle[aria-pressed=true] .liquid__track {
    left: calc(var(--border) * 6);
}

.lang-switcher .liquid-toggle .indicator__liquid {
    position: absolute;
    height: calc(100% - (2 * var(--border)));
    width: calc(60cqi - (2 * var(--border)));
    container-type: inline-size;
    top: 50%;
    background: transparent;
    left: var(--border);
    border-radius: 100px;
    transition: scale var(--liquid-transition) var(--liquid-ease);
    translate: calc((var(--complete) / 100) * (100cqi - 100% - (2 * var(--border)))) -50%;
}

.lang-switcher .liquid-toggle .indicator__liquid .shadow {
    opacity: 0;
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    box-shadow: 1px -1px 2px hsl(0 0% 100% / 0.5) inset,
        0px -1px 2px hsl(0 0% 100% / 0.5) inset,
        -1px -1px 2px hsl(0 0% 100% / 0.5) inset,
        1px 1px 2px hsl(0 0% 30% / 0.5) inset,
        -8px 4px 10px -6px hsl(0 0% 30% / 0.25) inset,
        -1px 1px 6px hsl(0 0% 30% / 0.25) inset,
        -1px -1px 8px hsl(0 0% 60% / 0.15), 1px 1px 2px hsl(0 0% 30% / 0.15),
        2px 2px 6px hsl(0 0% 30% / 0.15),
        -2px -1px 2px hsl(0 0% 100% / 0.25) inset,
        3px 6px 16px -6px hsl(0 0% 30% / 0.5);
    z-index: 20;
    transition: opacity var(--liquid-transition) var(--liquid-ease);
}

.lang-switcher .liquid-toggle .indicator__liquid .cover {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    border-radius: 100px;
    transition: opacity var(--liquid-transition) var(--liquid-ease);
}

/* Liquid toggle – active/pressed state */
.lang-switcher .liquid-toggle[data-active=true] .indicator--masked .mask,
.lang-switcher .liquid-toggle:active .indicator--masked .mask {
    height: calc((100% - (2 * var(--border))) * 1.65);
    width: calc((60% - (2 * var(--border))) * 1.65);
    margin-left: calc((60% - (2 * var(--border))) * 0.65 * -0.5);
}

.lang-switcher .liquid-toggle[data-active=true] .indicator__liquid,
.lang-switcher .liquid-toggle:active .indicator__liquid {
    scale: 1.65 1.65;
}

.lang-switcher .liquid-toggle[data-active=true] .wrapper,
.lang-switcher .liquid-toggle:active .wrapper {
    filter: blur(0px);
}

.lang-switcher .liquid-toggle[data-active=true] .indicator__liquid .shadow,
.lang-switcher .liquid-toggle:active .indicator__liquid .shadow {
    opacity: 1;
}

.lang-switcher .liquid-toggle[data-active=true] .indicator__liquid .cover,
.lang-switcher .liquid-toggle:active .indicator__liquid .cover {
    opacity: 0;
}

.lang-switcher .liquid-toggle[data-active=true] .indicator__liquid .liquid__track,
.lang-switcher .liquid-toggle:active .indicator__liquid .liquid__track {
    left: calc(var(--border) * 3);
    height: calc((var(--height) * 1px) - (6 * var(--border)));
}