/* ═══════════════════════════════════════════════════════
   GIA BASILIA FINE ART — Main Stylesheet
   giabasilia.art — All 7 Signature Interactions
   ═══════════════════════════════════════════════════════ */

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ui);
    background-color: var(--bg);
    color: var(--ink);
    transition: background-color var(--dur-mode) var(--ease-mode),
                color var(--dur-mode) var(--ease-mode);
    overflow-x: hidden;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--dur-hover) var(--ease-hover); }
a:hover { color: var(--gold-2); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── TYPOGRAPHY ─── */
.font-display { font-family: var(--font-display); font-weight: 300; }
.font-display-italic { font-family: var(--font-display); font-weight: 300; font-style: italic; }
.font-ui { font-family: var(--font-ui); font-weight: 400; }
.text-uppercase { text-transform: uppercase; }

.label {
    font-family: var(--font-ui);
    font-size: var(--text-spec-label);
    letter-spacing: var(--ls-spec);
    text-transform: uppercase;
    color: var(--ink-3);
}

.catalog-number {
    font-family: var(--font-ui);
    font-size: var(--text-catalog);
    letter-spacing: var(--ls-spec);
    text-transform: uppercase;
    color: var(--ink-3);
}

/* ═══════════════════════════════════════════════════════
   1. CINEMATIC PRELOADER
   ═══════════════════════════════════════════════════════ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #0A0A0A;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    pointer-events: all;
}

.preloader.is-done {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.preloader__name {
    font-family: var(--font-display);
    font-weight: 200;
    font-size: var(--text-preloader);
    color: var(--gold);
    letter-spacing: var(--ls-preloader);
    text-transform: uppercase;
    opacity: 0;
}

.preloader__name .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.preloader__artwork {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.85);
}

.preloader__artwork img {
    max-width: 70vw;
    max-height: 70vh;
    object-fit: contain;
}

/* ═══════════════════════════════════════════════════════
   2. NAVIGATION
   ═══════════════════════════════════════════════════════ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 32px var(--space-page);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(-100%);
    transition: transform 0.6s var(--ease-drawer);
    mix-blend-mode: difference;
}

.site-nav.is-visible { transform: translateY(0); }

.site-nav__logo {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 16px;
    letter-spacing: var(--ls-nav);
    text-transform: uppercase;
    color: #F0EBE0;
}

.site-nav__links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.site-nav__link {
    font-family: var(--font-ui);
    font-size: var(--text-nav);
    letter-spacing: var(--ls-nav);
    text-transform: uppercase;
    color: #F0EBE0;
    transition: color var(--dur-hover) var(--ease-hover);
}

.site-nav__link:hover { color: var(--gold); }

/* ─── MODE TOGGLE ─── */
.mode-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-3);
    font-size: 18px;
    transition: color var(--dur-hover) var(--ease-hover);
    cursor: pointer;
}

.mode-toggle:hover { color: var(--gold); }

/* ─── SOUND TOGGLE ─── */
.sound-toggle {
    position: fixed;
    bottom: 24px;
    right: 68px;
    z-index: 900;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-3);
    font-size: 16px;
    transition: color var(--dur-hover) var(--ease-hover);
    cursor: pointer;
    opacity: 0.6;
}

.sound-toggle:hover { opacity: 1; color: var(--gold); }
.sound-toggle.is-active { opacity: 1; color: var(--gold); }

/* ═══════════════════════════════════════════════════════
   3. HERO SECTION
   ═══════════════════════════════════════════════════════ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: -webkit-fill-available;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero__image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px);
    transition: filter var(--dur-reveal) var(--ease-reveal);
}

.hero__image img.is-loaded { filter: blur(0); }

.hero__content {
    position: relative;
    z-index: 2;
    padding: 48px var(--space-page);
    width: 100%;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: var(--text-hero);
    line-height: 0.95;
    color: #F0EBE0;
    text-shadow: 0 2px 40px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--dur-text) var(--ease-text),
                transform var(--dur-text) var(--ease-text);
}

.hero__title.is-visible { opacity: 1; transform: translateY(0); }

.hero__subtitle {
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(16px, 2.5vw, 22px);
    color: rgba(240, 235, 224, 0.7);
    margin-top: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--dur-text) var(--ease-text) 0.15s,
                transform var(--dur-text) var(--ease-text) 0.15s;
}

.hero__subtitle.is-visible { opacity: 1; transform: translateY(0); }

.hero__cta {
    margin-top: 32px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--dur-text) var(--ease-text) 0.3s,
                transform var(--dur-text) var(--ease-text) 0.3s;
}

.hero__cta.is-visible { opacity: 1; transform: translateY(0); }

.hero__gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(10,10,10,0.7) 0%, transparent 60%);
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   4. BUTTONS — with Magnetic effect (#7)
   ═══════════════════════════════════════════════════════ */
.btn-primary {
    display: inline-block;
    padding: 16px 48px;
    font-family: var(--font-ui);
    font-size: var(--text-button);
    letter-spacing: var(--ls-button);
    text-transform: uppercase;
    color: var(--bg);
    background: var(--gold);
    border: 1px solid var(--gold);
    transition: background var(--dur-hover) var(--ease-hover),
                color var(--dur-hover) var(--ease-hover),
                transform var(--dur-magnetic) var(--ease-magnetic);
}

.btn-primary:hover {
    background: transparent;
    color: var(--gold);
}

.btn-outline {
    display: inline-block;
    padding: 16px 48px;
    font-family: var(--font-ui);
    font-size: var(--text-button);
    letter-spacing: var(--ls-button);
    text-transform: uppercase;
    color: var(--gold);
    background: transparent;
    border: 1px solid var(--gold);
    transition: background var(--dur-hover) var(--ease-hover),
                color var(--dur-hover) var(--ease-hover),
                transform var(--dur-magnetic) var(--ease-magnetic);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--bg);
}

/* ═══════════════════════════════════════════════════════
   5. GALLERY WALK — Horizontal scroll desktop (#5)
   ═══════════════════════════════════════════════════════ */
.section-heading {
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: var(--text-section);
    color: var(--ink);
    padding: 80px var(--space-page) 40px;
    transition: color var(--dur-mode) var(--ease-mode);
}

/* Desktop: horizontal scroll */
@media (min-width: 1200px) {
    .gallery-walk {
        position: relative;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .gallery-walk::-webkit-scrollbar { display: none; }

    .gallery-walk__track {
        display: flex;
        align-items: center;
        gap: var(--space-gallery);
        padding: 40px var(--space-page) 80px;
        min-height: 85vh;
        width: max-content;
    }

    .gallery-walk__progress {
        position: fixed;
        bottom: 0;
        left: 0;
        height: 2px;
        background: var(--gold);
        z-index: 100;
        transition: width 0.1s linear;
    }
}

/* Mobile: masonry grid */
@media (max-width: 1199px) {
    .gallery-walk__track {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        padding: 20px var(--space-page) 60px;
    }

    .gallery-walk__progress { display: none; }
}

/* ═══════════════════════════════════════════════════════
   6. ARTWORK CARDS — with Perspective Hover (#1)
   ═══════════════════════════════════════════════════════ */
.artwork-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform var(--dur-hover) var(--ease-hover);
    will-change: transform;
}

@media (min-width: 1200px) {
    .artwork-card {
        height: 85vh;
        width: auto;
        flex-shrink: 0;
    }

    .artwork-card .artwork-img {
        height: 100%;
        width: auto;
        object-fit: contain;
    }
}

@media (max-width: 1199px) {
    .artwork-card .artwork-img {
        width: 100%;
        aspect-ratio: auto;
    }
}

.artwork-card .artwork-img {
    transition: filter var(--dur-reveal) var(--ease-reveal);
    filter: blur(20px);
}

.artwork-card .artwork-img.is-loaded {
    filter: blur(0);
}

/* Card overlay — title + status on hover (desktop) / tap (mobile) */
.artwork-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 24px 24px;
    background: linear-gradient(to top, rgba(10,10,10,0.8) 0%, transparent 100%);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    pointer-events: none;
}

.artwork-card:hover .artwork-card__overlay,
.artwork-card.is-tapped .artwork-card__overlay {
    opacity: 1;
    transform: translateY(0);
}

.artwork-card__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--text-artwork-card);
    color: #F0EBE0;
    margin-bottom: 4px;
}

.artwork-card__meta {
    font-family: var(--font-ui);
    font-size: var(--text-catalog);
    letter-spacing: var(--ls-spec);
    text-transform: uppercase;
    color: rgba(240, 235, 224, 0.6);
}

/* ─── STATUS BADGES ─── */
.status-badge {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 9px;
    letter-spacing: var(--ls-spec);
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
}

.status-badge--available  { color: var(--available); border: 1px solid var(--available); }
.status-badge--sold       { color: var(--collected); border: 1px solid var(--collected); }
.status-badge--exhibition { color: var(--exhibition); border: 1px solid var(--exhibition); }
.status-badge--reserved   { color: var(--ink-3); border: 1px solid var(--ink-3); }

/* ═══════════════════════════════════════════════════════
   7. ZOOM PORTAL (#6) — FLIP animation
   ═══════════════════════════════════════════════════════ */
.portal-overlay {
    position: fixed;
    inset: 0;
    z-index: 8000;
    background: var(--overlay);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.portal-overlay.is-active {
    opacity: 1;
    pointer-events: all;
}

.portal-clone {
    position: fixed;
    z-index: 8001;
    transition: all var(--dur-portal) var(--ease-portal);
    cursor: zoom-out;
}

.portal-clone img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ═══════════════════════════════════════════════════════
   8. EXHIBITION BANNER
   ═══════════════════════════════════════════════════════ */
.exhibition-banner {
    position: relative;
    padding: 80px var(--space-page);
    background: var(--bg-2);
    transition: background var(--dur-mode) var(--ease-mode);
    display: flex;
    align-items: center;
    gap: 60px;
}

.exhibition-banner__image {
    flex: 0 0 300px;
    height: 200px;
    overflow: hidden;
}

.exhibition-banner__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exhibition-banner__info { flex: 1; }

.exhibition-banner__label {
    font-family: var(--font-ui);
    font-size: var(--text-spec-label);
    letter-spacing: var(--ls-spec);
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.exhibition-banner__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(24px, 4vw, 36px);
    color: var(--ink);
    margin-bottom: 8px;
}

.exhibition-banner__details {
    font-family: var(--font-ui);
    font-size: var(--text-spec-value);
    color: var(--ink-2);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .exhibition-banner {
        flex-direction: column;
        gap: 30px;
        padding: 60px var(--space-page);
    }
    .exhibition-banner__image { flex: none; width: 100%; height: 180px; }
}

/* ═══════════════════════════════════════════════════════
   9. ABOUT TEASER
   ═══════════════════════════════════════════════════════ */
.about-teaser {
    padding: 100px var(--space-page);
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.about-teaser__statement {
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(20px, 3vw, 28px);
    line-height: 1.5;
    color: var(--ink);
}

.about-teaser__link {
    display: inline-block;
    margin-top: 32px;
    font-family: var(--font-ui);
    font-size: var(--text-nav);
    letter-spacing: var(--ls-nav);
    text-transform: uppercase;
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
}

/* ═══════════════════════════════════════════════════════
   10. FOOTER
   ═══════════════════════════════════════════════════════ */
.site-footer {
    padding: 60px var(--space-page);
    border-top: 1px solid var(--bg-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transition: opacity 0.6s ease-out,
                border-color var(--dur-mode) var(--ease-mode);
}

.site-footer.is-visible { opacity: 1; }

.site-footer__name {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 14px;
    letter-spacing: var(--ls-nav);
    text-transform: uppercase;
    color: var(--ink-2);
}

.site-footer__links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.site-footer__link {
    font-family: var(--font-ui);
    font-size: var(--text-catalog);
    letter-spacing: var(--ls-spec);
    text-transform: uppercase;
    color: var(--ink-3);
}

.site-footer__link:hover { color: var(--gold); }

.site-footer__copy {
    font-family: var(--font-ui);
    font-size: var(--text-catalog);
    color: var(--ink-3);
}

@media (max-width: 768px) {
    .site-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════
   11. INQUIRY DRAWER — Desktop (#3 from brief §3.3)
   ═══════════════════════════════════════════════════════ */
.inquiry-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(13, 13, 13, 0.85);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.inquiry-backdrop.is-active {
    opacity: 1;
    pointer-events: all;
}

.inquiry-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 460px;
    max-width: 100%;
    z-index: 9001;
    background: var(--bg);
    padding: 60px 40px;
    transform: translateX(100%);
    transition: transform var(--dur-drawer) var(--ease-drawer);
    overflow-y: auto;
}

.inquiry-drawer.is-open { transform: translateX(0); }

.inquiry-drawer__close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 24px;
    color: var(--ink-3);
    cursor: pointer;
    transition: color var(--dur-hover) var(--ease-hover);
}

.inquiry-drawer__close:hover { color: var(--ink); }

.inquiry-drawer__artwork-name {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 24px;
    color: var(--ink);
    margin-bottom: 8px;
}

.inquiry-drawer__catalog {
    font-family: var(--font-ui);
    font-size: var(--text-catalog);
    letter-spacing: var(--ls-spec);
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 40px;
}

.inquiry-form { display: flex; flex-direction: column; gap: 24px; }

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-field label {
    font-family: var(--font-ui);
    font-size: var(--text-spec-label);
    letter-spacing: var(--ls-spec);
    text-transform: uppercase;
    color: var(--ink-3);
}

.form-field input,
.form-field textarea {
    font-family: var(--font-ui);
    font-size: 16px; /* prevent iOS zoom */
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid var(--bg-3);
    background: transparent;
    color: var(--ink);
    outline: none;
    transition: border-color var(--dur-hover) var(--ease-hover);
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--gold);
}

.form-field textarea { resize: vertical; min-height: 100px; }

.honeypot { position: absolute; left: -9999px; opacity: 0; }

.inquiry-form .btn-primary { width: 100%; margin-top: 16px; }

.inquiry-success {
    text-align: center;
    padding: 60px 0;
}

.inquiry-success__icon {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 16px;
}

.inquiry-success__text {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 20px;
    color: var(--ink);
}

/* ─── iPhone Bottom Sheet ─── */
@media (max-width: 768px) {
    .inquiry-drawer {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 88vh;
        border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
        transform: translateY(100%);
        padding: 20px 24px 40px;
    }

    .inquiry-drawer.is-open { transform: translateY(0); }

    .inquiry-drawer__handle {
        display: block;
        width: 36px;
        height: 4px;
        background: var(--ink-3);
        border-radius: 2px;
        margin: 0 auto 24px;
    }
}

@media (min-width: 769px) {
    .inquiry-drawer__handle { display: none; }
}

/* ═══════════════════════════════════════════════════════
   12. SINGLE ARTWORK PAGE
   ═══════════════════════════════════════════════════════ */
.artwork-page {
    display: grid;
    grid-template-columns: 65fr 35fr;
    min-height: 100vh;
}

.artwork-page__image {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bg-2);
    overflow: hidden;
}

.artwork-page__image img {
    width: auto;
    height: auto;
    min-width: 50%;
    min-height: 50%;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.artwork-page__panel {
    padding: 80px 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.artwork-page__catalog { margin-bottom: -16px; }

.artwork-page__series {
    font-family: var(--font-ui);
    font-size: var(--text-spec-label);
    letter-spacing: var(--ls-spec);
    text-transform: uppercase;
    color: var(--gold);
}

.artwork-page__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: var(--text-artwork-portal);
    color: var(--ink);
    line-height: 1.1;
}

.artwork-page__divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
}

.spec-table { width: 100%; }

.spec-table tr { border-bottom: 1px solid var(--bg-3); }

.spec-table td {
    padding: 10px 0;
    vertical-align: top;
}

.spec-table td:first-child {
    font-family: var(--font-ui);
    font-size: var(--text-spec-label);
    letter-spacing: var(--ls-spec);
    text-transform: uppercase;
    color: var(--ink-3);
    width: 120px;
}

.spec-table td:last-child {
    font-family: var(--font-ui);
    font-size: var(--text-spec-value);
    color: var(--ink);
}

@media (max-width: 768px) {
    .artwork-page {
        display: flex;
        flex-direction: column;
    }

    .artwork-page__image {
        position: relative;
        height: auto;
        min-height: 60vh;
        padding: 20px;
    }

    .artwork-page__panel {
        padding: 32px 24px 120px;
    }
}

/* ─── Sticky Inquire on mobile ─── */
.artwork-page__sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    .artwork-page__sticky-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 800;
        padding: 16px 24px;
        background: var(--bg);
        border-top: 1px solid var(--bg-3);
    }

    .artwork-page__sticky-cta .btn-primary { width: 100%; text-align: center; }
}

/* ═══════════════════════════════════════════════════════
   13. CUSTOM CURSOR (Desktop only) (#2.4)
   ═══════════════════════════════════════════════════════ */
@media (pointer: fine) {
    .custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 99999;
        pointer-events: none;
        mix-blend-mode: difference;
    }

    .cursor-ring {
        width: var(--cursor-size);
        height: var(--cursor-size);
        border: 1px solid #C9A96E;
        border-radius: 50%;
        transition: width 0.3s ease-out, height 0.3s ease-out, border-color 0.3s ease-out;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translate(-50%, -50%);
    }

    .cursor-ring.is-hovering-art {
        width: var(--cursor-size-hover);
        height: var(--cursor-size-hover);
    }

    .cursor-text {
        font-family: var(--font-ui);
        font-size: 9px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #C9A96E;
        opacity: 0;
        transition: opacity 0.2s ease-out;
    }

    .cursor-ring.is-hovering-art .cursor-text { opacity: 1; }
    .cursor-ring.is-hovering-sold .cursor-text::after { content: ''; }
    .cursor-ring.is-hovering-sold { border-style: dashed; }
    .cursor-ring.is-hovering-btn { background: #C9A96E; border-color: #C9A96E; }

    body { cursor: none !important; }
    a, button, .artwork-card { cursor: none !important; }

    /* Dark themes: disable blend mode, use bright cursor */
    [data-theme="dark"] .custom-cursor,
    [data-theme="cinematic"] .custom-cursor,
    [data-theme="green"] .custom-cursor {
        mix-blend-mode: normal;
    }

    [data-theme="dark"] .cursor-ring,
    [data-theme="cinematic"] .cursor-ring {
        border-color: rgba(220, 210, 190, 0.7);
    }

    [data-theme="dark"] .cursor-text,
    [data-theme="cinematic"] .cursor-text {
        color: rgba(220, 210, 190, 0.9);
    }

    [data-theme="dark"] .cursor-ring.is-hovering-btn,
    [data-theme="cinematic"] .cursor-ring.is-hovering-btn {
        background: rgba(220, 210, 190, 0.7);
        border-color: rgba(220, 210, 190, 0.7);
    }

    /* Green: gold cursor on dark green */
    [data-theme="green"] .cursor-ring {
        border-color: rgba(200, 168, 78, 0.7);
    }

    [data-theme="green"] .cursor-text {
        color: rgba(200, 168, 78, 0.9);
    }

    [data-theme="green"] .cursor-ring.is-hovering-btn {
        background: rgba(200, 168, 78, 0.7);
        border-color: rgba(200, 168, 78, 0.7);
    }

    /* White Cube: no blend mode, black cursor */
    [data-theme="whitecube"] .custom-cursor {
        mix-blend-mode: normal;
    }

    [data-theme="whitecube"] .cursor-ring {
        border-color: rgba(0, 0, 0, 0.5);
    }

    [data-theme="whitecube"] .cursor-text {
        color: rgba(0, 0, 0, 0.7);
    }

    [data-theme="whitecube"] .cursor-ring.is-hovering-btn {
        background: rgba(0, 0, 0, 0.5);
        border-color: rgba(0, 0, 0, 0.5);
    }

    /* White Cube evening: flip to light cursor */
    [data-theme="whitecube"][data-mode="evening"] .cursor-ring {
        border-color: rgba(220, 220, 220, 0.5);
    }

    [data-theme="whitecube"][data-mode="evening"] .cursor-text {
        color: rgba(220, 220, 220, 0.7);
    }

    [data-theme="whitecube"][data-mode="evening"] .cursor-ring.is-hovering-btn {
        background: rgba(220, 220, 220, 0.5);
        border-color: rgba(220, 220, 220, 0.5);
    }

    /* Editorial: warm brown cursor, no blend */
    [data-theme="editorial"] .custom-cursor {
        mix-blend-mode: normal;
    }

    [data-theme="editorial"] .cursor-ring {
        border-color: rgba(139, 69, 19, 0.6);
    }

    [data-theme="editorial"] .cursor-text {
        color: rgba(139, 69, 19, 0.8);
    }

    [data-theme="editorial"] .cursor-ring.is-hovering-btn {
        background: rgba(139, 69, 19, 0.6);
        border-color: rgba(139, 69, 19, 0.6);
    }

    /* Editorial evening */
    [data-theme="editorial"][data-mode="evening"] .cursor-ring {
        border-color: rgba(196, 135, 74, 0.6);
    }

    [data-theme="editorial"][data-mode="evening"] .cursor-text {
        color: rgba(196, 135, 74, 0.8);
    }

    [data-theme="editorial"][data-mode="evening"] .cursor-ring.is-hovering-btn {
        background: rgba(196, 135, 74, 0.6);
        border-color: rgba(196, 135, 74, 0.6);
    }
}

/* ═══════════════════════════════════════════════════════
   14. WORKS PAGE — Grid view for /works/
   ═══════════════════════════════════════════════════════ */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 0 var(--space-page) 80px;
}

.works-filter {
    display: flex;
    gap: 24px;
    padding: 120px var(--space-page) 40px;
    flex-wrap: wrap;
}

.works-filter__item {
    font-family: var(--font-ui);
    font-size: var(--text-nav);
    letter-spacing: var(--ls-nav);
    text-transform: uppercase;
    color: var(--ink-3);
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: color var(--dur-hover) var(--ease-hover),
                border-color var(--dur-hover) var(--ease-hover);
}

.works-filter__item:hover,
.works-filter__item.is-active {
    color: var(--ink);
    border-color: var(--gold);
}

/* ═══════════════════════════════════════════════════════
   15. ABOUT PAGE
   ═══════════════════════════════════════════════════════ */
.about-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 160px var(--space-page) 100px;
}

.about-page__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: var(--text-section);
    color: var(--ink);
    margin-bottom: 48px;
}

.about-page__body {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: var(--text-body);
    color: var(--ink);
    line-height: 1.8;
}

.about-page__body p { margin-bottom: 24px; }

/* ═══════════════════════════════════════════════════════
   16. PAGE TRANSITIONS — Fade in
   ═══════════════════════════════════════════════════════ */
.page-content {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.page-content.is-visible { opacity: 1; }

/* ═══════════════════════════════════════════════════════
   17. UTILITY
   ═══════════════════════════════════════════════════════ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Touch device overrides */
@media (pointer: coarse) {
    .artwork-card { touch-action: manipulation; }
    .btn-primary, .btn-outline { touch-action: manipulation; }
    body { cursor: auto !important; }
    a, button, .artwork-card { cursor: auto !important; }
}

/* ═══════════════════════════════════════════════════════
   18. THEME SWITCHER UI
   ═══════════════════════════════════════════════════════ */
.theme-switcher {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 950;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
}

.theme-switcher__toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-3);
    font-size: 16px;
    cursor: pointer;
    transition: color var(--dur-hover) var(--ease-hover);
}

.theme-switcher__toggle:hover { color: var(--gold); }

.theme-switcher__menu {
    display: none;
    flex-direction: column;
    gap: 2px;
    background: var(--bg-2);
    border: 1px solid var(--bg-3);
    padding: 8px;
    margin-bottom: 8px;
    min-width: 160px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.theme-switcher__menu.is-open { display: flex; }

.theme-switcher__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-family: var(--font-ui);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-2);
    cursor: pointer;
    transition: color var(--dur-hover) var(--ease-hover),
                background var(--dur-hover) var(--ease-hover);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.theme-switcher__option:hover { color: var(--ink); background: var(--bg-3); }
.theme-switcher__option.is-active { color: var(--gold); }

.theme-switcher__swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--bg-3);
    flex-shrink: 0;
}

/* Swatch colors for each theme */
.theme-switcher__swatch--museum     { background: #F7F4EF; border-color: #9A7B3F; }
.theme-switcher__swatch--dark       { background: #0A0A0A; border-color: #E8E0D0; }
.theme-switcher__swatch--whitecube  { background: #FFFFFF; border-color: #111111; }
.theme-switcher__swatch--editorial  { background: #F5F0E8; border-color: #8B4513; }
.theme-switcher__swatch--cinematic  { background: #080808; border-color: #D4CFC5; }
.theme-switcher__swatch--green      { background: #0B2616; border-color: #C8A84E; }

/* ═══════════════════════════════════════════════════════
   19. THEME B: DARK GALLERY — Layout Overrides
   ═══════════════════════════════════════════════════════ */
[data-theme="dark"] .site-nav {
    mix-blend-mode: normal;
}

[data-theme="dark"] .site-nav__logo,
[data-theme="dark"] .site-nav__link {
    color: var(--ink);
}

[data-theme="dark"] .artwork-card {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.03);
    transition: transform var(--dur-hover) var(--ease-hover),
                box-shadow 0.4s ease;
}

[data-theme="dark"] .artwork-card:hover {
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .hero__gradient {
    background: var(--hero-overlay);
}

[data-theme="dark"] .btn-primary {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}

[data-theme="dark"] .btn-primary:hover {
    background: var(--ink);
    color: var(--bg);
}

/* ═══════════════════════════════════════════════════════
   20. THEME C: WHITE CUBE — Layout Overrides
   ═══════════════════════════════════════════════════════ */
[data-theme="whitecube"] .site-nav {
    mix-blend-mode: normal;
    border-bottom: 1px solid var(--bg-3);
    background: var(--bg);
    padding: 20px var(--space-page);
}

[data-theme="whitecube"] .site-nav__logo,
[data-theme="whitecube"] .site-nav__link {
    color: var(--ink);
}

[data-theme="whitecube"] .hero__title {
    color: var(--ink);
    text-shadow: none;
}

[data-theme="whitecube"] .hero__subtitle {
    color: var(--ink-2);
}

[data-theme="whitecube"] .hero__gradient {
    background: var(--hero-overlay);
}

/* White Cube forces grid layout — no horizontal walk */
@media (min-width: 1200px) {
    [data-theme="whitecube"] .gallery-walk {
        overflow-x: visible;
        overflow-y: visible;
    }

    [data-theme="whitecube"] .gallery-walk__track {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: var(--space-gallery);
        padding: 20px var(--space-page) 80px;
        min-height: auto;
        width: auto;
    }

    [data-theme="whitecube"] .gallery-walk__progress { display: none; }

    [data-theme="whitecube"] .artwork-card {
        height: auto;
        width: auto;
    }

    [data-theme="whitecube"] .artwork-card .artwork-img {
        height: auto;
        width: 100%;
    }
}

[data-theme="whitecube"] .artwork-card__overlay {
    background: linear-gradient(to top, rgba(255,255,255,0.9) 0%, transparent 100%);
}

[data-theme="whitecube"] .artwork-card__title { color: var(--ink); }
[data-theme="whitecube"] .artwork-card__meta { color: var(--ink-2); }

[data-theme="whitecube"] .btn-primary {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--bg);
}

[data-theme="whitecube"] .btn-primary:hover {
    background: transparent;
    color: var(--ink);
}

[data-theme="whitecube"] .section-heading {
    font-style: normal;
    font-weight: 400;
    font-family: var(--font-ui);
    letter-spacing: var(--ls-nav);
    text-transform: uppercase;
    font-size: var(--text-nav);
    color: var(--ink-3);
}

/* ═══════════════════════════════════════════════════════
   21. THEME D: EDITORIAL — Layout Overrides
   ═══════════════════════════════════════════════════════ */
[data-theme="editorial"] .site-nav {
    mix-blend-mode: normal;
}

[data-theme="editorial"] .site-nav__logo {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 18px;
    letter-spacing: 0.05em;
    text-transform: none;
    color: var(--ink);
}

[data-theme="editorial"] .site-nav__link { color: var(--ink-2); }

[data-theme="editorial"] .hero__title {
    font-weight: 200;
    line-height: 0.9;
    color: #F0EBE0;
}

[data-theme="editorial"] .hero__gradient {
    background: var(--hero-overlay);
}

/* Editorial uses asymmetric 2-column gallery layout */
@media (min-width: 1200px) {
    [data-theme="editorial"] .gallery-walk {
        overflow-x: visible;
        overflow-y: visible;
    }

    [data-theme="editorial"] .gallery-walk__track {
        display: grid;
        grid-template-columns: 1.4fr 1fr;
        gap: 24px;
        padding: 20px var(--space-page) 80px;
        min-height: auto;
        width: auto;
    }

    [data-theme="editorial"] .gallery-walk__progress { display: none; }

    [data-theme="editorial"] .artwork-card {
        height: auto;
        width: auto;
    }

    [data-theme="editorial"] .artwork-card:nth-child(3n+1) {
        grid-column: span 2;
    }

    [data-theme="editorial"] .artwork-card .artwork-img {
        height: auto;
        width: 100%;
    }
}

[data-theme="editorial"] .section-heading {
    font-weight: 200;
    font-size: var(--text-section);
    border-bottom: 1px solid var(--bg-3);
    padding-bottom: 16px;
    margin: 0 var(--space-page);
}

[data-theme="editorial"] .about-teaser__statement {
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.4;
}

[data-theme="editorial"] .btn-primary {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

[data-theme="editorial"] .btn-primary:hover {
    background: var(--gold);
    color: var(--bg);
}

/* ═══════════════════════════════════════════════════════
   22. THEME E: CINEMATIC — Layout Overrides
   ═══════════════════════════════════════════════════════ */
[data-theme="cinematic"] .site-nav {
    mix-blend-mode: normal;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.6s var(--ease-drawer);
}

[data-theme="cinematic"] .site-nav.is-visible { opacity: 0.5; }
[data-theme="cinematic"] .site-nav:hover { opacity: 1; }

[data-theme="cinematic"] .site-nav__logo,
[data-theme="cinematic"] .site-nav__link {
    color: var(--ink);
}

[data-theme="cinematic"] .hero {
    height: 100vh;
    height: 100svh;
}

[data-theme="cinematic"] .hero__image img {
    transform: scale(1.05);
    transition: transform 8s ease-out, filter var(--dur-reveal) var(--ease-reveal);
}

[data-theme="cinematic"] .hero__image img.is-loaded {
    transform: scale(1);
}

[data-theme="cinematic"] .hero__gradient {
    background: var(--hero-overlay);
}

[data-theme="cinematic"] .hero__title {
    font-weight: 200;
    letter-spacing: 0.05em;
}

/* Cinematic: full-bleed grid, no gaps */
@media (min-width: 1200px) {
    [data-theme="cinematic"] .gallery-walk {
        overflow-x: visible;
        overflow-y: visible;
    }

    [data-theme="cinematic"] .gallery-walk__track {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
        padding: 0;
        min-height: auto;
        width: auto;
    }

    [data-theme="cinematic"] .gallery-walk__progress { display: none; }

    [data-theme="cinematic"] .artwork-card {
        height: 70vh;
        width: auto;
        overflow: hidden;
    }

    [data-theme="cinematic"] .artwork-card .artwork-img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        transition: transform 0.6s ease-out, filter var(--dur-reveal) var(--ease-reveal);
    }

    [data-theme="cinematic"] .artwork-card:hover .artwork-img {
        transform: scale(1.03);
    }
}

[data-theme="cinematic"] .section-heading {
    text-align: center;
    padding: 100px var(--space-page) 40px;
    font-weight: 200;
    letter-spacing: 0.1em;
}

[data-theme="cinematic"] .about-teaser {
    padding: 120px var(--space-page);
}

[data-theme="cinematic"] .exhibition-banner {
    background: transparent;
    border-top: 1px solid var(--bg-3);
    border-bottom: 1px solid var(--bg-3);
}

[data-theme="cinematic"] .btn-primary {
    background: transparent;
    border: 1px solid var(--ink);
    color: var(--ink);
    letter-spacing: 0.3em;
}

[data-theme="cinematic"] .btn-primary:hover {
    background: var(--ink);
    color: var(--bg);
}

[data-theme="cinematic"] .preloader {
    background: #000000;
}

[data-theme="cinematic"] .preloader__name {
    letter-spacing: var(--ls-preloader);
}

/* ═══════════════════════════════════════════════════════
   23. THEME F: GREEN — Layout Overrides
   ═══════════════════════════════════════════════════════ */
[data-theme="green"] .site-nav {
    mix-blend-mode: normal;
}

[data-theme="green"] .site-nav__logo,
[data-theme="green"] .site-nav__link {
    color: var(--ink);
}

[data-theme="green"] .hero__gradient {
    background: var(--hero-overlay);
}

[data-theme="green"] .hero__title {
    color: #E8DCC8;
    text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

[data-theme="green"] .btn-primary {
    background: var(--gold);
    border-color: var(--gold);
    color: #0B2616;
}

[data-theme="green"] .btn-primary:hover {
    background: transparent;
    color: var(--gold);
}

[data-theme="green"] .artwork-card {
    box-shadow: 0 0 30px rgba(200, 168, 78, 0.04);
}

[data-theme="green"] .artwork-card:hover {
    box-shadow: 0 0 50px rgba(200, 168, 78, 0.08);
}

[data-theme="green"] .section-heading {
    color: var(--gold);
}

[data-theme="green"] .exhibition-banner {
    background: var(--bg-2);
    border-top: 1px solid rgba(200, 168, 78, 0.15);
    border-bottom: 1px solid rgba(200, 168, 78, 0.15);
}

[data-theme="green"] .about-teaser__statement {
    color: var(--ink);
}

[data-theme="green"] .site-footer {
    border-color: rgba(200, 168, 78, 0.15);
}

[data-theme="green"] .preloader {
    background: #061A0E;
}

[data-theme="green"] .preloader__name {
    color: var(--gold);
}
