:root {
    /* Dark Mode Cinematic Gallery Palette */
    --c-black: #FAFAFA;       /* Text becomes absolute white */
    --c-gallery: #050505;     /* Main background becomes absolute deep dark */
    --c-stone: #121212;       /* Secondary offset background */
    --c-gray-text: #B0B0B0;   /* Brightened gray for legibility */
    --c-border: #2A2A2A;      /* Hairline dividers get subtle dark gray */
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Transitions */
    /* 1.8s aligns optimally with cognitive dwell time during scroll */
    --trans-cinematic: 1.8s ease-out;
    --trans-smooth: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--c-black);
    background-color: var(--c-gallery);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Serif Typography */
.serif-title {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.3;
}
.serif-title.large { font-size: 3.5rem; }
.serif-quote {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-style: italic;
    line-height: 1.4;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* Plaque Tracking Logic */
.plaque-top, .plaque-center {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 3rem;
    color: var(--c-gray-text);
}
.plaque-center { justify-content: center; margin-bottom: 2rem; }
.caption { font-size: 0.95rem; color: var(--c-gray-text); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 1rem; text-align: right; }

h1 { font-family: var(--font-serif); font-size: 4rem; font-weight: 400; line-height: 1.1; margin-bottom: 1.5rem; }
h2 { font-size: 3rem; margin-bottom: 2rem; }
h3.serif-hd { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 400; margin-bottom: 1rem; }
p { font-size: 1.125rem; font-weight: 400; line-height: 1.9; }
.wide-p { font-size: 1.25rem; max-width: 900px; color: #BBBBBB; } /* Softer gray text for large blocks */

body.lang-zh .en { display: none !important; }
body.lang-en .zh { display: none !important; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 4rem; }
.bg-stone { background-color: var(--c-stone); }

/* Structural Spacing */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
}
.container-narrow { max-width: 1024px; }
.section { padding: 12rem 0; position: relative; }

/* Grid Rules */
.grid { display: grid; gap: 4rem; }
.line-sep {
    width: 100%;
    height: 1px;
    background-color: var(--c-border);
    margin-bottom: 1.5rem;
}
.line-sub {
    width: 100%; height: 1px; background-color: var(--c-border); margin: 1.5rem 0;
}
.line-sep.center { width: 50%; margin: 0 auto 1.5rem auto; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: transparent;
    padding: 2rem 0 1.5rem 0;
    transition: var(--trans-smooth);
}
.navbar.scrolled { padding: 1rem 0 1rem 0; background: rgba(5,5,5,0.9); backdrop-filter: blur(10px); }
.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-border {
    position: absolute; bottom: 0; left: 4rem; right: 4rem;
    height: 1px; background-color: var(--c-border);
}
.logo {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.lang-switch { display: flex; align-items: center; gap: 1rem; font-size: 1.1rem; font-weight: 400; letter-spacing: 0.05em; }
.lang-switch button { background: none; border: none; cursor: pointer; color: var(--c-gray-text); transition: color 0.3s; }
.lang-switch button.active { color: var(--c-black); font-weight: 500; }

/* Cinematic Hero */
.hero {
    height: 100vh;
    min-height: 800px;
    padding: 8rem 4rem 4rem 4rem;
    position: relative;
    display: flex;
    flex-direction: column;
}
.hero-frame {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 4rem;
    background: linear-gradient(to top, rgba(5,5,5,0.9) 0%, transparent 100%);
    color: white;
}
.caption-index { font-family: var(--font-sans); font-size: 1rem; letter-spacing: 0.2em; margin-bottom: 1.5rem; color: var(--c-gray-text);}
.scroll-down { position: absolute; bottom: 2rem; right: 4rem; font-size: 1rem; letter-spacing: 0.1em; color: var(--c-gray-text); text-transform: uppercase; }

/* Image Treatments (Spotlight logic) */
.art-img {
    display: block; width: 100%;
    border-radius: 0; 
}
.art-focus-target {
    filter: grayscale(40%) brightness(0.65); /* Made brighter for legibility */
    transition: filter var(--trans-cinematic), transform var(--trans-cinematic), box-shadow var(--trans-cinematic);
    transform: scale(0.96); /* Slightly smaller so scale up is visible but text doesn't cut off */
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.art-focus-target.art-active {
    filter: grayscale(0%) brightness(1); /* Ignition */
    transform: scale(1);
    box-shadow: 0 40px 100px -20px rgba(0,0,0,1);
    z-index: 10;
}
/* Sub-interaction for when it's already active via scroll */
.art-focus-target.art-active:hover {
    transform: scale(1.01); 
    filter: grayscale(0%) brightness(1.1);
}

/* --- Cinematic Text Layers (Typographic Spotlight) --- */
.art-focus-target .gallery-label h3,
.art-focus-target .gallery-label span,
.art-focus-target .frame-overlay-box .serif-title,
.art-focus-target .frame-overlay-box p,
.art-focus-target .hero-caption .caption-index,
.art-focus-target .hero-caption h1,
.art-focus-target .hero-caption p,
.art-focus-target .visual-col .caption {
    transform: translateY(20px);
    opacity: 0;
    transition: opacity var(--trans-cinematic), transform var(--trans-cinematic);
}
/* Professional typographic staggering delays */
.art-focus-target .gallery-label span { transition-delay: 0.15s; }
.art-focus-target .frame-overlay-box p { transition-delay: 0.15s; }
.art-focus-target .hero-caption h1 { transition-delay: 0.1s; }
.art-focus-target .hero-caption p { transition-delay: 0.2s; }

/* Ignition Sequence */
.art-focus-target.art-active .gallery-label h3,
.art-focus-target.art-active .gallery-label span,
.art-focus-target.art-active .frame-overlay-box .serif-title,
.art-focus-target.art-active .frame-overlay-box p,
.art-focus-target.art-active .hero-caption .caption-index,
.art-focus-target.art-active .hero-caption h1,
.art-focus-target.art-active .hero-caption p,
.art-focus-target.art-active .visual-col .caption {
    transform: translateY(0);
    opacity: 1;
}

/* Destinations Gallery */
.gallery-stream {
    display: flex;
    flex-direction: column;
    gap: 12rem; /* Give them even more breathing room in the darkness */
    margin-top: 6rem;
}
.gallery-item {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}
.gallery-item.right { margin-left: auto; margin-right: 0; }
.gallery-item.left { margin-right: auto; margin-left: 0; }
.gallery-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.gallery-label {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    text-align: right;
    font-family: var(--font-serif);
    color: #FFFFFF;
    text-shadow: 0 4px 30px rgba(0,0,0,0.9);
    z-index: 5;
}
.gallery-label h3 { font-size: 2rem; font-weight: 400; line-height: 1.2; }
.gallery-label span { font-family: var(--font-sans); font-size: 0.95rem; color: var(--c-gray-text); letter-spacing: 0.1em; text-transform: uppercase; }

/* Sections */
.art-grid { grid-template-columns: repeat(3, 1fr); gap: 4rem; } /* Wider gap */
.art-card { border-top: 1px solid var(--c-border); padding-top: 2rem; }
.art-number { font-size: 1.2rem; padding-bottom: 2rem; color: var(--c-gray-text); }

/* Image specific sizing */
.art-img.portrait { aspect-ratio: 3/4; object-fit: cover; }
.art-img.cinematic { aspect-ratio: 16/7; object-fit: cover; }

/* Exhibit 04 */
.exhibition-frame { position: relative; }
.frame-overlay-box {
    position: absolute;
    bottom: -4rem;
    right: -4rem;
    background: var(--c-gallery);
    border: 1px solid var(--c-border);
    padding: 4rem;
    width: 600px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); /* Shadow in dark mode for depth */
}

/* Network */
.network-art-grid { grid-template-columns: 6fr 5fr; gap: 8rem; align-items: start; }
.minimal-list { border-top: 1px solid var(--c-border); }
.list-item { border-bottom: 1px solid var(--c-border); padding: 1.5rem 0; display: flex; gap: 2rem; font-size: 1.125rem; }
.item-text { color: var(--c-gray-text); transition: color 0.3s; }
.list-item:hover .item-text { color: var(--c-black); }

/* Manifesto */
.manifesto-grid { grid-template-columns: repeat(3, 1fr); gap: 4rem; text-align: left; }
.manifesto-card h4 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 400; margin-bottom: 1rem; color: var(--c-black); }
.manifesto-card p { color: var(--c-gray-text); }
.card-rule { width: 100%; height: 1px; background: var(--c-border); margin-bottom: 2rem; }

/* Footer */
.gallery-footer { padding: 4rem 0; font-size: 0.95rem; letter-spacing: 0.05em; color: var(--c-gray-text); text-align: right; }
.footer-meta { display: flex; justify-content: space-between; }

/* Physics */
.fade-up { opacity: 0; transform: translateY(60px); transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Responsive Grid */
@media (max-width: 1024px) {
    .container { padding: 0 2rem; }
    .hero { padding: 6rem 2rem 2rem 2rem; }
    .art-grid { grid-template-columns: 1fr; }
    .network-art-grid { grid-template-columns: 1fr; gap: 4rem; }
    .frame-overlay-box { position: relative; bottom: 0; right: 0; width: 100%; border: none; border-left: 1px solid var(--c-border); padding: 2rem; margin-top: 2rem; }
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    .serif-quote { font-size: 2rem; }
    .manifesto-grid { grid-template-columns: 1fr; }
}
