/* ==========================================================================
   Mecil — Art Catalog
   ========================================================================== */

:root {
    --bg-color: #fafafa;
    --text-color: #2e2c29;
    --text-muted: #7e7970;
    --accent-clay: #8c4b4b;
    --accent-sage: #8da399;
    --color-sand: #e0d9cf;
    --color-light: #f0ebe3;
    --color-dark: #1c1a17;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.lightbox-open {
    overflow: hidden;
}

/* Typography
   ========================================================================== */

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--color-dark);
    line-height: 1.1;
}

h1 { font-size: 4rem; letter-spacing: -0.02em; }
h2 { font-size: 2.6rem; }
h3 { font-size: 1.4rem; font-weight: 400; }

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

/* Header & Navigation
   ========================================================================== */

.site-header {
    padding: 1.75rem 4rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

.site-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #ebebeb;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.logo a,
.nav-links li a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.5s ease;
}

.site-header.scrolled .logo a,
.site-header.scrolled .nav-links li a {
    color: var(--text-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.nav-links li a {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    position: relative;
    font-weight: 400;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: rgba(255, 255, 255, 0.8);
    transition: width 0.35s ease, background-color 0.5s ease;
}

.site-header.scrolled .nav-links li a::after {
    background-color: var(--accent-clay);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a.active {
    font-weight: 500;
}

/* Mobile Nav Toggle
   ========================================================================== */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 1001;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--text-color);
    position: absolute;
    left: 0;
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.nav-toggle span:first-child { top: 4px; }
.nav-toggle span:last-child { top: 14px; }

.site-header:not(.scrolled) .nav-toggle span {
    background: rgba(255, 255, 255, 0.9);
}

.nav-toggle[aria-expanded="true"] span:first-child {
    top: 9px;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
    top: 9px;
    transform: rotate(-45deg);
}

/* Hero — Index Page
   ========================================================================== */

.hero {
    height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 0 5rem 5.5rem;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    background: #d8d4ce;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.0) 30%,
        rgba(0, 0, 0, 0.0) 42%,
        rgba(0, 0, 0, 0.68) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    animation: heroFadeUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* Hero eyebrow — must be higher specificity than .hero p */
.hero-content .hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 1.8rem;
    font-weight: 400;
    margin-top: 0;
    max-width: none;
    line-height: 1;
}

.hero-content .hero-eyebrow::before {
    content: '';
    display: block;
    width: 48px;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.hero h1 {
    color: #fff;
    font-size: clamp(3.2rem, 6.5vw, 6.5rem);
    line-height: 1.0;
    letter-spacing: -0.03em;
    font-weight: 300;
    font-style: italic;
}

.hero p {
    font-size: 0.88rem;
    margin-top: 2.2rem;
    max-width: 400px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.04em;
    line-height: 1.85;
    font-family: var(--font-sans);
    font-weight: 300;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3.5rem;
    right: 4.5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.scroll-indicator span {
    font-family: var(--font-sans);
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: rgba(255, 255, 255, 0.5);
    writing-mode: vertical-rl;
    font-weight: 400;
}

.scroll-line {
    width: 1px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    animation: scrollDrop 2.2s ease infinite;
}

@keyframes scrollDrop {
    0%   { top: -100%; }
    100% { top: 100%; }
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Inner Page Header Banner
   ========================================================================== */

.page-intro {
    padding: 11rem 5rem 5rem;
    border-bottom: 1px solid var(--color-sand);
}

.page-intro-label {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-sans);
    font-size: 0.63rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent-clay);
    margin-bottom: 2rem;
    font-weight: 400;
}

.page-intro-label::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--accent-clay);
    opacity: 0.55;
}

.page-intro h1 {
    font-size: clamp(3rem, 5.5vw, 5.5rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.page-intro .page-intro-sub {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-top: 2rem;
    line-height: 1.65;
    font-style: italic;
    font-weight: 400;
}

/* Gallery & Works Sections
   ========================================================================== */

.gallery-section {
    padding: 7rem 4rem 8rem;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 5rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-sans);
    font-size: 0.63rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-weight: 400;
}

.section-label::before,
.section-label::after {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--color-sand);
}

.section-header h2 {
    font-style: italic;
    font-weight: 300;
    letter-spacing: -0.01em;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 5rem 2.5rem;
}

.gallery-item {
    cursor: pointer;
    display: block;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    aspect-ratio: 3/4;
    background-color: var(--color-light);
}

/* Vary aspect ratios for organic editorial feel */
.gallery-item:nth-child(3n+2) .image-wrapper {
    aspect-ratio: 4/3;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(28, 26, 23, 0.22);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.45s ease;
}

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

.overlay span {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.55);
    padding: 0.85rem 2.4rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.66rem;
    font-weight: 400;
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(4px);
}

.item-info {
    padding: 0 0.1rem;
}

.item-info h3 {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 0.35rem;
    font-weight: 400;
}

.item-info p {
    font-size: 0.66rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 400;
}

/* View All CTA */
.view-all-wrap {
    text-align: center;
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid var(--color-sand);
}

.btn-text-link {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text-color);
    position: relative;
    font-weight: 400;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--color-sand);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.btn-text-link:hover {
    color: var(--accent-clay);
    border-color: var(--accent-clay);
}

/* Minimal Filter Links (Works Page)
   ========================================================================== */

.works-filters {
    padding: 0 48px 32px;
    max-width: 1496px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.filter-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 24px;
}

.filter-links[hidden] {
    display: none;
}

.filter-links--secondary {
    padding-top: 14px;
    border-top: 1px solid var(--color-sand);
}

.filter-links button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #aaa;
    padding: 0 0 2px;
    border-bottom: 1px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

.filter-links--primary button {
    font-size: 12px;
    letter-spacing: 0.22em;
}

.filter-links button.active,
.filter-links button:hover {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

/* Editorial Grid (Works Page)
   ========================================================================== */

.gallery-section.editorial {
    padding: 0 48px 6rem;
}

.gallery-section.home-editorial {
    padding: 7rem 48px 0;
}

.gallery-section.home-editorial .view-all-wrap {
    padding-top: 4rem;
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.works-empty-state {
    max-width: 520px;
    margin: 0 auto 3rem;
    padding: 3rem 1rem 1rem;
    text-align: center;
}

.works-empty-state h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-style: italic;
    font-weight: 300;
    margin-bottom: 0.9rem;
}

.works-empty-state p {
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-style: italic;
}

.editorial-item {
    cursor: pointer;
    display: block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.editorial-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.editorial-item .img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #f0f0f0;
}

.editorial-item .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.editorial-item:hover .img-wrap img {
    transform: scale(1.03);
}

.editorial-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease;
}

.editorial-item:hover .overlay {
    background: rgba(0, 0, 0, 0.22);
}

.editorial-item .overlay span {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    font-size: 1.4rem;
    color: #fff;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.editorial-item:hover .overlay span {
    opacity: 1;
    transform: translateY(0);
}

.editorial-item .item-info {
    padding: 14px 0 0;
}

.editorial-item .item-info h3 {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 400;
    font-style: italic;
    color: #1a1a1a;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.editorial-item .item-info p {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #999;
}

/* Exhibitions Section
   ========================================================================== */

.exhibitions-section {
    padding: 5rem 5rem 8rem;
    max-width: 1000px;
    margin: 0 auto;
}

.exhibitions-container {
    margin-top: 3rem;
    border-top: 1px solid var(--color-sand);
    padding-top: 3rem;
}

.home-exhibitions.exhibitions-container {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.exhibition-list {
    list-style: none;
}

.exhibition-list li {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-light);
    align-items: baseline;
}

.ex-year {
    font-family: var(--font-sans);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-clay);
    font-weight: 400;
}

.ex-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-dark);
    font-weight: 400;
}

.ex-location {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Work Detail Page
   ========================================================================== */

.work-detail-container {
    --work-header-offset: 5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    grid-template-rows: auto auto;
    min-height: 100vh;
    margin-top: var(--work-header-offset);
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    align-items: start;
}

.work-hero {
    grid-column: 1;
    grid-row: 1;
    padding-right: 0;
    padding-bottom: 1px;
}

.work-hero-image,
.work-gallery-item {
    min-height: 0;
    padding: 0;
    display: block;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.work-detail-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
}

.work-mobile-gallery {
    display: none;
}

.work-gallery {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding-right: 0;
}

.work-lightbox[hidden] {
    display: none;
}

.work-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.work-lightbox__scrim {
    position: absolute;
    inset: 0;
    background: rgba(250, 250, 250, 0.92);
    backdrop-filter: blur(10px);
}

.work-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 540px);
    max-height: calc(100svh - 48px);
    max-height: calc(100dvh - 48px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.work-lightbox__close {
    align-self: flex-end;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--color-dark);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.work-lightbox__stage {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(28, 26, 23, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.work-lightbox__stage img {
    width: 100%;
    max-height: calc(100svh - 220px);
    max-height: calc(100dvh - 220px);
    display: block;
    object-fit: contain;
}

.work-lightbox__hotspot {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 25%;
    border: none;
    background: transparent;
    cursor: pointer;
}

.work-lightbox__hotspot::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(28, 26, 23, 0.55);
    font-family: var(--font-serif);
    font-size: 2.4rem;
    line-height: 1;
}

.work-lightbox__hotspot--prev {
    left: 0;
}

.work-lightbox__hotspot--prev::after {
    content: '\2039';
    left: 18px;
}

.work-lightbox__hotspot--next {
    right: 0;
}

.work-lightbox__hotspot--next::after {
    content: '\203A';
    right: 18px;
}

.work-lightbox__thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.work-lightbox__thumbs::-webkit-scrollbar {
    display: none;
}

.work-lightbox__thumb {
    flex: 0 0 72px;
    padding: 4px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.work-lightbox__thumb img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #f8f7f4;
    opacity: 0.72;
    transition: opacity 0.25s ease;
}

.work-lightbox__thumb.is-active {
    border-color: rgba(28, 26, 23, 0.72);
}

.work-lightbox__thumb.is-active img,
.work-lightbox__thumb:hover img {
    opacity: 1;
}

.work-info-section {
    grid-column: 2;
    grid-row: 1 / -1;
    padding: 80px 60px;
    position: sticky;
    top: var(--work-header-offset);
    height: calc(100vh - var(--work-header-offset));
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.back-link {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 4rem;
    display: inline-block;
    transition: color 0.3s ease;
    font-weight: 400;
}

.back-link:hover {
    color: var(--accent-clay);
}

.work-info-section h1 {
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.subtitle {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    font-weight: 400;
}

.divider {
    width: 40px;
    height: 1px;
    background: var(--color-sand);
    margin: 2.5rem 0;
}

.description-text {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.95;
    max-width: 480px;
    font-weight: 300;
}

.purchase-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-sand);
}

.availability-note {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 1.2rem;
    font-style: italic;
}

.sold-badge {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* About Page
   ========================================================================== */

.about-body {
    padding: 0 0 8rem;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(420px, 1.15fr) minmax(0, 0.95fr);
    gap: 5rem;
    align-items: start;
    padding: 6rem 5rem 0;
}

.about-media {
    position: sticky;
    top: 100px;
}

.about-media-grid {
    display: block;
}

.about-portrait-stage {
    margin: 0;
    outline: none;
}

.about-portrait-stage:focus-visible .about-portrait-frame {
    outline: 2px solid rgba(140, 75, 75, 0.7);
    outline-offset: 8px;
}

.about-portrait-frame {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--color-light);
}

.about-portrait-frame::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 28%;
    background: linear-gradient(180deg, rgba(28, 26, 23, 0) 0%, rgba(28, 26, 23, 0.18) 100%);
    pointer-events: none;
    z-index: 2;
}

.about-portrait-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-portrait-image--primary {
    object-position: center 20%;
    transform: scale(1.01);
}

.about-portrait-image--secondary {
    object-position: center 24%;
    opacity: 0;
    transform: scale(1.08);
}

.about-portrait-prompt {
    position: absolute;
    left: 1.2rem;
    bottom: 1.2rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(28, 26, 23, 0.24);
    backdrop-filter: blur(8px);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.about-portrait-prompt::before {
    content: '';
    width: 26px;
    height: 1px;
    background: rgba(255, 255, 255, 0.75);
}

.about-portrait-caption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-sand);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

@media (hover: hover) {
    .about-portrait-stage:hover .about-portrait-image--primary,
    .about-portrait-stage:focus-visible .about-portrait-image--primary {
        opacity: 0;
        transform: scale(1.07);
        filter: blur(2px);
    }

    .about-portrait-stage:hover .about-portrait-image--secondary,
    .about-portrait-stage:focus-visible .about-portrait-image--secondary {
        opacity: 1;
        transform: scale(1);
    }

    .about-portrait-stage:hover .about-portrait-prompt,
    .about-portrait-stage:focus-visible .about-portrait-prompt {
        opacity: 0;
        transform: translateY(10px);
    }
}

@media (hover: none) and (prefers-reduced-motion: no-preference) {
    .about-portrait-image--secondary {
        animation: aboutPortraitReveal 7s ease-in-out infinite alternate;
    }

    .about-portrait-image--primary {
        animation: aboutPortraitHide 7s ease-in-out infinite alternate;
    }

    .about-portrait-prompt {
        display: none;
    }
}

@keyframes aboutPortraitReveal {
    0%, 32% {
        opacity: 0;
        transform: scale(1.08);
    }

    45%, 100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes aboutPortraitHide {
    0%, 32% {
        opacity: 1;
        transform: scale(1.01);
        filter: blur(0);
    }

    45%, 100% {
        opacity: 0;
        transform: scale(1.07);
        filter: blur(2px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-portrait-image,
    .about-portrait-prompt {
        transition: none;
        animation: none;
    }
}

.about-text-content {
    padding-top: 1rem;
}

.about-text-content h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-style: italic;
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.about-text-content .lead {
    font-size: 1.25rem;
    font-family: var(--font-serif);
    color: var(--accent-clay);
    margin-bottom: 2.5rem;
    line-height: 1.55;
    font-style: italic;
    font-weight: 400;
}

.about-text-content p {
    margin-bottom: 1.6rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.9;
    font-weight: 300;
}

/* Contact Page
   ========================================================================== */

.contact-page {
    padding: 0;
    min-height: 100vh;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.contact-info {
    padding: 11rem 5rem 6rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-style: italic;
    font-weight: 300;
    margin-bottom: 2rem;
}

.contact-info > p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 360px;
    line-height: 1.85;
    font-weight: 300;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item h3 {
    text-transform: uppercase;
    font-size: 0.63rem;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    font-family: var(--font-sans);
    font-weight: 400;
}

.contact-item a {
    font-size: 1.35rem;
    font-family: var(--font-serif);
    color: var(--color-dark);
    font-style: italic;
    transition: color 0.3s ease;
    display: inline-block;
}

.contact-item a:hover {
    color: var(--accent-clay);
}

.socials-links a {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-right: 2.5rem;
    font-style: italic;
}

.contact-form-placeholder {
    overflow: hidden;
    position: relative;
    background-color: var(--color-light);
}

.contact-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Footer
   ========================================================================== */

footer {
    padding: 5rem 2rem 4rem;
    text-align: center;
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.5);
    position: relative;
}

footer::before {
    content: '- ·  · -';
    display: block;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--accent-clay);
    opacity: 0.45;
    margin-bottom: 2.5rem;
    letter-spacing: 0.4em;
}

footer h3 {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.socials {
    margin: 1.5rem 0 2rem;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.socials a {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 400;
    transition: color 0.3s ease;
}

.socials a:hover {
    color: rgba(255, 255, 255, 0.82);
}

.copyright {
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.12em;
    margin-top: 2.5rem;
}

/* Buttons
   ========================================================================== */

.btn-primary {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.9rem 2.8rem;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.82);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.7rem;
    font-family: var(--font-sans);
    font-weight: 400;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.65);
}

.btn-inquire {
    display: block;
    width: 100%;
    max-width: 320px;
    padding: 16px 32px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: var(--font-sans);
    font-weight: 400;
}

.btn-inquire:hover {
    background-color: #333;
}

/* Inquiry Form (Work Detail)
   ========================================================================== */

.inquire-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.inquire-form[hidden] {
    display: none;
}

.inquire-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.inquire-form label {
    font-family: var(--font-sans);
    font-size: 0.63rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    font-weight: 400;
}

.inquire-form input,
.inquire-form textarea {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 300;
    padding: 0.7rem 0;
    border: none;
    border-bottom: 1px solid var(--color-sand);
    background: transparent;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s ease;
    resize: vertical;
}

.inquire-form input:focus,
.inquire-form textarea:focus {
    border-bottom-color: var(--accent-clay);
}

.inquire-form textarea {
    min-height: 80px;
}

.inquire-form .btn-inquire {
    margin-top: 0.5rem;
}

/* Contact Page Form
   ========================================================================== */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin-bottom: 3rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-form label {
    font-family: var(--font-sans);
    font-size: 0.63rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    font-weight: 400;
}

.contact-form input,
.contact-form textarea {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 300;
    padding: 0.7rem 0;
    border: none;
    border-bottom: 1px solid var(--color-sand);
    background: transparent;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s ease;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: var(--accent-clay);
}

.contact-form textarea {
    min-height: 100px;
}

.contact-form .btn-inquire {
    margin-top: 0.5rem;
    max-width: 240px;
}

/* Responsive
   ========================================================================== */

@media screen and (max-width: 1024px) {
    .about-grid {
        gap: 4rem;
        padding: 6rem 3.5rem 0;
    }

    .work-info-section {
        padding: 60px 40px;
    }

    .work-detail-container {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
    }
}

@media screen and (max-width: 900px) {
    .site-header { padding: 1.5rem 2.5rem; }
    .hero { padding: 0 3rem 4rem; }

    .gallery-section:not(.editorial) { padding: 5rem 2.5rem 6rem; }
    .gallery-section.editorial { padding: 0 24px 5rem; }
    .gallery-section.home-editorial { padding: 5rem 24px 0; }
    .exhibitions-section { padding: 3rem 2.5rem 5rem; }
    .page-intro { padding: 9rem 2.5rem 4rem; }

    .editorial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 16px;
    }

    .works-filters {
        padding: 0 2.5rem 2.5rem;
    }

    .filter-links {
        justify-content: center;
    }

    .work-detail-container {
        display: flex;
        flex-direction: column;
        margin-top: 0;
        padding: 0 16px;
        overflow-x: hidden;
    }

    .work-hero {
        margin: 0 -16px;
        padding-right: 0;
    }

    .work-hero-image {
        display: none;
    }

    .work-mobile-gallery {
        display: block;
        position: relative;
        background: #f8f7f4;
    }

    .work-mobile-gallery__viewport {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .work-mobile-gallery__viewport::-webkit-scrollbar {
        display: none;
    }

    .work-mobile-gallery__slide {
        flex: 0 0 100%;
        min-width: 100%;
        padding: 0;
        border: none;
        background: #f8f7f4;
        scroll-snap-align: start;
    }

    .work-mobile-gallery__slide img {
        width: 100%;
        height: auto;
        max-height: calc(100vh - 112px);
        max-height: calc(100svh - 112px);
        object-fit: contain;
        object-position: center;
        display: block;
        margin: 0 auto;
    }

    .work-mobile-gallery__pagination {
        position: absolute;
        left: 50%;
        bottom: 18px;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        width: min(calc(100% - 48px), 320px);
    }

    .work-mobile-gallery__indicator {
        flex: 1 1 0;
        height: 3px;
        padding: 0;
        border: none;
        border-radius: 999px;
        background: rgba(28, 26, 23, 0.18);
        cursor: pointer;
    }

    .work-mobile-gallery__indicator.is-active {
        background: rgba(28, 26, 23, 0.85);
    }

    .work-info-section {
        position: static;
        height: auto;
        padding: 32px 0 40px;
        grid-column: auto;
        grid-row: auto;
    }

    .work-info-section h1 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .work-info-section .back-link {
        margin-bottom: 2rem;
    }

    .work-info-section .divider {
        margin: 1.5rem 0;
    }

    .work-info-section .purchase-section {
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .btn-inquire {
        max-width: none;
    }

    .work-gallery {
        display: none;
    }

    .work-lightbox {
        padding: 14px;
        align-items: stretch;
    }

    .work-lightbox__dialog {
        width: 100%;
        max-height: calc(100svh - 28px);
        max-height: calc(100dvh - 28px);
        gap: 10px;
    }

    .work-lightbox__stage {
        flex: 1 1 auto;
    }

    .work-lightbox__stage img {
        width: 100%;
        height: 100%;
        max-height: none;
    }

    .work-lightbox__thumb {
        flex-basis: 64px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 5rem 2.5rem 0;
    }

    .about-media {
        position: static;
        max-width: 860px;
    }

    .about-media-grid {
        max-width: 720px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .contact-info { padding: 9rem 2.5rem 5rem; }
    .contact-form-placeholder { display: none; }
}

@media screen and (max-width: 600px) {
    h1 { font-size: 2.8rem; }

    .site-header { padding: 1.25rem 1.5rem; }

    .nav-toggle { display: block; }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
        z-index: 1000;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li a {
        font-size: 0.85rem;
        color: var(--text-color) !important;
    }

    .nav-links li a::after {
        background-color: var(--accent-clay) !important;
    }

    .hero { padding: 0 1.5rem 3.5rem; }
    .hero h1 { font-size: 3rem; }
    .scroll-indicator { display: none; }

    .gallery-grid { grid-template-columns: 1fr; gap: 3rem; }
    .gallery-section:not(.editorial) { padding: 4rem 1.5rem 5rem; }
    .gallery-section.editorial { padding: 0 16px 4rem; }
    .gallery-section.home-editorial { padding: 4rem 16px 0; }

    .editorial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 12px;
    }

    .gallery-item:nth-child(3n+2) .image-wrapper { aspect-ratio: 3/4; }

    .exhibitions-section { padding: 3rem 1.5rem 5rem; }
    .exhibition-list li {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
    }

    .page-intro { padding: 7rem 1.5rem 3rem; }

    .works-filters {
        padding: 0 1.5rem 1.5rem;
    }

    .filter-links {
        justify-content: center;
        gap: 10px 16px;
    }

    .filter-links button {
        font-size: 10px;
    }

    .work-info-section {
        padding: 24px 0 28px;
    }

    .work-mobile-gallery__pagination {
        bottom: 14px;
        width: min(calc(100% - 36px), 260px);
    }

    .work-lightbox__close {
        width: 36px;
        height: 36px;
        font-size: 1.75rem;
    }

    .work-lightbox__hotspot::after {
        font-size: 2rem;
    }

    .work-lightbox__thumb {
        flex-basis: 56px;
    }

    .about-grid { padding: 5rem 1.5rem 0; }
    .about-portrait-frame {
        aspect-ratio: 3 / 4;
    }
    .about-portrait-prompt {
        left: 0.9rem;
        right: 0.9rem;
        bottom: 0.9rem;
        justify-content: center;
        text-align: center;
        padding: 0.7rem 0.85rem;
    }
    .about-portrait-caption {
        flex-direction: column;
        gap: 0.4rem;
    }
    .about-body { padding: 0 0 5rem; }

    .contact-info { padding: 7rem 1.5rem 4rem; }
}

/* ==========================================================================
   FDB Gallery Page
   ========================================================================== */

.fdb-gallery-section {
    padding: 5rem 48px 8rem;
    max-width: 1496px;
    margin: 0 auto;
}

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

.fdb-item {
    position: relative;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fdb-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.fdb-item:nth-child(1) { grid-column: span 7; }
.fdb-item:nth-child(2) { grid-column: span 5; }
.fdb-item:nth-child(3) { grid-column: span 4; }
.fdb-item:nth-child(4) { grid-column: span 4; }
.fdb-item:nth-child(5) { grid-column: span 4; }
.fdb-item:nth-child(6) { grid-column: span 5; }
.fdb-item:nth-child(7) { grid-column: span 7; }

.fdb-grid--three .fdb-item:nth-child(n) { grid-column: span 4; }

.fdb-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--color-light);
}

.fdb-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fdb-item:hover .fdb-img-wrap img {
    transform: scale(1.04);
}

.fdb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease;
}

.fdb-item:hover .fdb-overlay {
    background: rgba(0, 0, 0, 0.28);
}

.fdb-zoom {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.35s ease, transform 0.35s ease;
    position: relative;
    flex-shrink: 0;
}

.fdb-zoom::before,
.fdb-zoom::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.fdb-zoom::before { width: 13px; height: 1px; }
.fdb-zoom::after  { width: 1px;  height: 13px; }

.fdb-item:hover .fdb-zoom {
    opacity: 1;
    transform: scale(1);
}

/* FDB Lightbox
   ========================================================================== */

.fdb-lightbox[hidden] { display: none; }

.fdb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.fdb-lightbox__scrim {
    position: absolute;
    inset: 0;
    background: rgba(18, 16, 14, 0.95);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.fdb-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    max-height: calc(100svh - 48px);
    max-height: calc(100dvh - 48px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fdb-lightbox__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fdb-lightbox__counter {
    font-family: var(--font-sans);
    font-size: 0.63rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.fdb-lightbox__close {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    padding: 0;
}

.fdb-lightbox__close:hover { color: rgba(255, 255, 255, 0.95); }

.fdb-lightbox__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    flex: 1;
}

.fdb-lightbox__img {
    width: 100%;
    max-height: calc(100svh - 140px);
    max-height: calc(100dvh - 140px);
    object-fit: contain;
    display: block;
}

.fdb-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
    z-index: 2;
}

.fdb-lightbox__prev { left: -62px; }
.fdb-lightbox__next { right: -62px; }

.fdb-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.fdb-lightbox__nav:disabled {
    opacity: 0.2;
    cursor: default;
}

/* Exhibition Link — Homepage clickable row
   ========================================================================== */

.exhibition-list li:has(.ex-link) {
    display: block;
    padding: 0;
}

.ex-link {
    display: grid;
    grid-template-columns: 160px 1fr auto auto;
    gap: 1.5rem;
    padding: 1.5rem 0;
    align-items: baseline;
}

.ex-link:hover .ex-title {
    color: var(--accent-clay);
    transition: color 0.25s ease;
}

.ex-see {
    font-family: var(--font-sans);
    font-size: 0.63rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-clay);
    font-weight: 400;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.ex-link:hover .ex-see {
    opacity: 1;
    transform: translateX(0);
}

/* FDB — Responsive
   ========================================================================== */

@media screen and (max-width: 900px) {
    .fdb-gallery-section { padding: 3rem 24px 5rem; }

    .fdb-lightbox__prev { left: -52px; }
    .fdb-lightbox__next { right: -52px; }
}

@media screen and (max-width: 700px) {
    .fdb-gallery-section { padding: 2rem 12px 4rem; }

    .fdb-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .fdb-item:nth-child(n)  { grid-column: span 1; }
    .fdb-item:nth-child(1)  { grid-column: span 2; }
    .fdb-grid--three .fdb-item:nth-child(n) { grid-column: span 1; }
    .fdb-grid--three .fdb-item:nth-child(1) { grid-column: span 2; }

    .fdb-lightbox { padding: 14px; }

    .fdb-lightbox__dialog {
        width: 100%;
        max-height: calc(100svh - 28px);
        max-height: calc(100dvh - 28px);
    }

    .fdb-lightbox__prev { left: 8px; top: auto; bottom: 14px; transform: none; }
    .fdb-lightbox__next { right: 8px; top: auto; bottom: 14px; transform: none; }

    .ex-link {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
    }

    .ex-see { opacity: 1; transform: none; }
}
