/* ============================================
   OBSERVERISM — Enhanced Design System
   Colors: Near-black backgrounds, warm whites,
   muted gold accents. Gallery-grade minimalism.
   ============================================ */

:root {
    --bg-primary: #070a14;
    --bg-secondary: #0d1220;
    --bg-tertiary: #141d2a;
    --text-primary: #e8e4df;
    --text-secondary: #9a9590;
    --text-muted: #5a5550;
    --accent: #c4a35a;
    --accent-dim: #8a7a4a;
    --white: #f5f0eb;
    --border: #2a2a2e;
    --green: #6a9a6a;
    --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================
   NEBULA BACKGROUND & PARTICLES
   Moving blue/purple gradients + floating particles
   ============================================ */

.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    animation: nebulaPulse 12s ease-in-out infinite;
}

@keyframes nebulaPulse {
    0%, 100% { opacity: 0.3; transform: scale(1) translate(0, 0); }
    33% { opacity: 0.5; transform: scale(1.1) translate(15px, -10px); }
    66% { opacity: 0.4; transform: scale(1.08) translate(-10px, 8px); }
}

.n1 { width: 600px; height: 500px; top: -10%; left: -10%; background: radial-gradient(ellipse, rgba(15, 30, 90, 0.7), transparent); animation-delay: 0s; }
.n2 { width: 500px; height: 400px; top: 10%; right: -12%; background: radial-gradient(ellipse, rgba(30, 20, 80, 0.6), transparent); animation-delay: -3s; }
.n3 { width: 550px; height: 450px; bottom: 20%; left: 10%; background: radial-gradient(ellipse, rgba(10, 40, 100, 0.6), transparent); animation-delay: -6s; }
.n4 { width: 400px; height: 350px; bottom: -5%; right: 15%; background: radial-gradient(ellipse, rgba(40, 15, 90, 0.5), transparent); animation-delay: -2s; }
.n5 { width: 450px; height: 380px; top: 40%; left: 30%; background: radial-gradient(ellipse, rgba(12, 35, 85, 0.5), transparent); animation-delay: -8s; }

/* Drift variant — wider movement */
.nebula.drift { animation: nebulaDrift 16s ease-in-out infinite; }

@keyframes nebulaDrift {
    0%, 100% { opacity: 0.25; transform: translate(0, 0) scale(1); }
    25% { opacity: 0.45; transform: translate(30px, -20px) scale(1.08); }
    50% { opacity: 0.3; transform: translate(-20px, 15px) scale(1.12); }
    75% { opacity: 0.5; transform: translate(10px, 25px) scale(1.04); }
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(180, 200, 240, 0.7);
    box-shadow: 0 0 8px 3px rgba(160, 190, 240, 0.25);
    animation: particleFloat linear infinite;
    pointer-events: none;
}

.particle.warm {
    background: rgba(220, 200, 170, 0.6);
    box-shadow: 0 0 8px 3px rgba(200, 180, 150, 0.2);
}

.particle.gold {
    background: rgba(196, 163, 90, 0.7);
    box-shadow: 0 0 10px 3px rgba(196, 163, 90, 0.25);
}

@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(var(--drift-y, -150px)) translateX(var(--drift-x, 40px)); opacity: 0; }
}

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

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

body {
    font-family: var(--sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 800px;
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--accent);
    z-index: 200;
    width: 0%;
    transition: width 0.1s linear;
}

/* ============================================
   THEORY IMAGES (OAM diagrams)
   ============================================ */

.theory-image {
    margin: 2rem 0;
    text-align: center;
}

.theory-image img {
    max-width: 100%;
    border-radius: 4px;
}

.theory-image p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.5rem;
    font-family: var(--sans);
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2.5rem;
    background: transparent;
    transition: background 0.4s ease, padding 0.3s ease;
}

.nav.scrolled {
    background: rgba(7, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 2.5rem;
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--white);
}

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

.nav-links a {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-family: var(--sans);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: 0.4em;
    color: var(--white);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1.2s ease forwards;
}

.hero-subtitle {
    font-family: var(--serif);
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1.2s ease 0.3s forwards;
}

.hero-artist {
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1.2s ease 0.5s forwards;
}

.hero-cta {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent-dim);
    padding: 0.9rem 2.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    animation: heroFadeIn 1.2s ease 0.7s forwards;
}

.hero-cta:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: heroFadeIn 1.2s ease 1.2s forwards;
}

.scroll-indicator span {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-dim), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.15s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.45s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.6s; }

/* ============================================
   PARALLAX
   ============================================ */

.parallax-section {
    overflow: hidden;
    position: relative;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    right: 0;
    bottom: -20%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

/* ============================================
   INTRO SECTION
   ============================================ */

.intro {
    padding: 8rem 0;
    border-top: 1px solid var(--border);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.intro-lead {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.intro-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.text-link {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--accent);
    transition: color 0.3s;
}

.text-link:hover { color: var(--white); }
.text-link.light { color: var(--accent); }
.text-link.light:hover { color: var(--white); }

.intro-stats {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-top: 0.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 400;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ============================================
   SECTION TITLES
   ============================================ */

.section-title {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* ============================================
   FEATURED WORKS (Home)
   ============================================ */

.featured {
    padding: 6rem 0 8rem;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.work-card {
    display: block;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-6px);
}

.work-card:hover .work-image {
    border-color: var(--accent-dim);
}

.work-image {
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    transition: border-color 0.4s ease;
    position: relative;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.work-card:hover .work-image img {
    transform: scale(1.03);
}

.work-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    gap: 0.3rem;
}

.work-placeholder-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.work-info h3 {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.work-meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.work-status {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}

.work-status.sold { color: var(--accent); }
.work-status.progress { color: var(--text-muted); }
.work-status.available { color: var(--green); }
.work-status.entered { color: #7a8aaa; }

/* ============================================
   AVAILABLE WORKS SECTION (Home)
   ============================================ */

.available-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.available-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.available-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.available-card:hover {
    transform: translateY(-4px);
}

.available-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bg-primary);
    background: var(--green);
    padding: 0.3rem 0.8rem;
}

.available-cta {
    text-align: center;
}

/* ============================================
   SCARCITY HOOKS
   ============================================ */

.scarcity-banner {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
}

.scarcity-item {
    text-align: center;
}

.scarcity-value {
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 0.2rem;
}

.scarcity-label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ============================================
   EMAIL CAPTURE
   ============================================ */

.email-capture {
    padding: 5rem 0;
    text-align: center;
}

.email-capture h3 {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.email-capture p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.email-form {
    display: flex;
    max-width: 460px;
    margin: 0 auto;
    gap: 0;
}

.email-form input {
    flex: 1;
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-right: none;
    padding: 0.8rem 1.2rem;
}

.email-form input:focus {
    outline: none;
    border-color: var(--accent-dim);
}

.email-form button {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bg-primary);
    background: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.email-form button:hover {
    background: transparent;
    color: var(--accent);
}

/* ============================================
   PHYSICS BANNER
   ============================================ */

.physics-banner {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 6rem 0;
}

.physics-content {
    max-width: 640px;
}

.physics-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.physics-content h2 {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 500;
    font-style: italic;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.physics-content p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.physics-equation {
    font-family: var(--serif);
    font-size: 1.8rem;
    color: var(--accent);
    margin: 2rem 0;
    font-style: italic;
}

/* ============================================
   PAGE CONTENT (inner pages)
   ============================================ */

.page-content {
    padding-top: 8rem;
    padding-bottom: 6rem;
    min-height: 80vh;
}

.page-header {
    margin-bottom: 4rem;
}

.page-header h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1rem;
}

.page-intro {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    max-width: 600px;
}

/* ============================================
   WORKS GALLERY (works page)
   ============================================ */

.filter-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--accent-dim);
    color: var(--accent);
}

.gallery-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid var(--border);
    align-items: start;
}

.gallery-item:nth-child(even) {
    direction: rtl;
}

.gallery-item:nth-child(even) > * {
    direction: ltr;
}

.gallery-item:last-child {
    border-bottom: none;
}

.gallery-image {
    aspect-ratio: 3/4;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-image::after {
    content: 'View Full Screen';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-image:hover::after {
    opacity: 1;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-image:hover img {
    transform: scale(1.03);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    border: 1px dashed var(--border);
    gap: 0.4rem;
}

.gp-sub {
    font-size: 0.65rem;
    opacity: 0.5;
}

.gallery-info {
    padding-top: 1rem;
}

.gallery-info h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 0.8rem;
}

.gallery-details {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.gallery-description {
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.gallery-status {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.3rem;
}

.gallery-status.sold { color: var(--accent); }
.gallery-status.progress { color: var(--text-muted); }
.gallery-status.available { color: var(--green); }
.gallery-status.entered { color: #7a8aaa; }

.gallery-status-sub {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-style: italic;
}

.enquiry-prompt {
    text-align: center;
    padding: 4rem 0 2rem;
}

.enquiry-prompt p {
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(5, 5, 7, 0.97);
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    overflow-y: auto;
}

.lightbox.active {
    display: flex;
    flex-direction: column;
}

.lightbox.visible {
    opacity: 1;
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem;
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(5, 5, 7, 0.9);
    backdrop-filter: blur(10px);
}

.lightbox-title {
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--white);
}

.lightbox-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--white);
}

.lightbox-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 3rem;
}

.lightbox-viewer {
    position: relative;
    max-width: 900px;
    width: 100%;
    display: flex;
    align-items: center;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-primary);
    font-size: 2.5rem;
    line-height: 1;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, border-color 0.2s;
    backdrop-filter: blur(4px);
}
.lightbox-nav:hover {
    background: rgba(0,0,0,0.75);
    border-color: var(--gold);
}
.lightbox-prev { left: 0.75rem; }
.lightbox-next { right: 0.75rem; }

.lightbox-counter {
    font-family: var(--sans);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 0.1em;
}

.lightbox-main-image {
    max-width: 900px;
    width: 100%;
    position: relative;
    cursor: pointer;
}

.lightbox-main-image img {
    transition: opacity 0.15s ease;
}

.lightbox-main-image.zoomed {
    cursor: zoom-out;
    max-width: 100%;
}

.lightbox-main-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.lightbox-main-image.zoomed img {
    transform: scale(2);
    transform-origin: var(--zoom-x, center) var(--zoom-y, center);
}

.lightbox-scale {
    display: flex;
    align-items: end;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    max-width: 400px;
    width: 100%;
}

.scale-silhouette {
    width: 30px;
    height: 90px;
    border: 1px solid var(--text-muted);
    border-radius: 10px 10px 0 0;
    position: relative;
}

.scale-silhouette::after {
    content: '170 cm';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.scale-painting {
    border: 1px solid var(--accent-dim);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.lightbox-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    width: 100%;
}

.lightbox-detail-crop {
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
}

.lightbox-detail-crop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-detail-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-align: center;
}

.lightbox-footer {
    position: sticky;
    bottom: 0;
    padding: 1rem 2.5rem;
    background: rgba(5, 5, 7, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
}

/* ============================================
   THEORY PAGE
   ============================================ */

.theory-text h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.theory-text p {
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

.theory-text p strong {
    color: var(--white);
}

.theory-text p em {
    color: var(--text-primary);
}

.theory-divider {
    width: 60px;
    height: 1px;
    background: var(--accent-dim);
    margin: 3.5rem 0;
}

.equation {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-style: italic;
    color: var(--accent);
    text-align: center;
    padding: 2rem 0;
    margin: 1rem 0;
}

.scientist-list {
    margin: 2rem 0;
}

.scientist-entry {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
}

.scientist-entry:last-child { border-bottom: none; }

.scientist-entry strong {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--white);
}

.scientist-role {
    font-family: var(--serif);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.scientist-entry p {
    font-family: var(--serif) !important;
    font-size: 0.92rem !important;
    color: var(--text-muted) !important;
    margin-top: 0.3rem;
    margin-bottom: 0 !important;
}

/* OAM Explorer */
.oam-explorer {
    margin: 3rem 0;
    padding: 2rem;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
}

.oam-explorer h3 {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.oam-explorer-canvas {
    width: 100%;
    aspect-ratio: 2/1;
    background: var(--bg-primary);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.oam-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.oam-control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.oam-control-group label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.oam-control-group input[type="range"] {
    width: 120px;
    accent-color: var(--accent);
}

.oam-ell-value {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--accent);
    min-width: 2.5rem;
    text-align: center;
}

.oam-mode-btns {
    display: flex;
    gap: 0.3rem;
}

.oam-mode-btn {
    font-family: var(--sans);
    font-size: 0.7rem;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    transition: all 0.3s;
}

.oam-mode-btn:hover,
.oam-mode-btn.active {
    border-color: var(--accent-dim);
    color: var(--accent);
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-section {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    margin-bottom: 5rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border);
    align-items: start;
}

.about-portrait {
    position: relative;
}

.about-placeholder {
    aspect-ratio: 3/4;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    border: 1px dashed var(--border);
}

.about-lead {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-text em {
    color: var(--text-primary);
}

/* Scale photo */
.scale-photo {
    margin: 3rem 0 5rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border);
}

.scale-photo-image {
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    border: 1px dashed var(--border);
    margin-bottom: 1rem;
    overflow: hidden;
}

.scale-photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scale-photo-caption {
    font-family: var(--serif);
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-secondary);
}

/* CV Section */
.cv-section {
    margin-bottom: 5rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border);
}

.cv-section h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 2rem;
}

.cv-category {
    margin-bottom: 2rem;
}

.cv-category h3 {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.cv-entry {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(42, 42, 46, 0.5);
    font-size: 0.88rem;
}

.cv-entry-title {
    color: var(--text-primary);
}

.cv-entry-title em {
    color: var(--text-secondary);
    font-style: italic;
}

.cv-entry-year {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* Statement */
.statement-section {
    margin-bottom: 5rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border);
}

.statement-section h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 2rem;
}

.artist-statement {
    border-left: 2px solid var(--accent-dim);
    padding-left: 2rem;
    margin: 0;
}

.artist-statement p {
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Press Kit */
.press-kit {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    margin-bottom: 4rem;
}

.press-kit-icon {
    font-size: 2rem;
    color: var(--accent);
    flex-shrink: 0;
}

.press-kit-text h3 {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.press-kit-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.press-kit .btn {
    margin-left: auto;
    flex-shrink: 0;
}

/* ============================================
   COMMISSION PAGE
   ============================================ */

.commission-section h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1rem;
}

.commission-section > p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.commission-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.commission-tier {
    padding: 2rem;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.commission-tier:hover {
    border-color: var(--accent-dim);
}

.commission-tier h3 {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.commission-size {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.commission-price {
    font-family: var(--serif);
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.commission-tier p:last-child {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.commission-process {
    margin-bottom: 4rem;
}

.commission-process h3 {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.commission-process ol {
    list-style: none;
    counter-reset: process;
}

.commission-process li {
    counter-increment: process;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.commission-process li::before {
    content: counter(process);
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--accent);
}

.commission-process li strong {
    color: var(--white);
}

/* Contact Form */
.contact-form-wrapper {
    padding-top: 2rem;
}

.contact-form-wrapper h3 {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    font-family: var(--sans);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 0.8rem 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-dim);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a5550' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bg-primary);
    background: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.9rem 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-outline {
    background: transparent;
    color: var(--accent);
}

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

/* ============================================
   INSTITUTIONAL PAGE
   ============================================ */

.institutional-hero {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4rem;
}

.institutional-hero .page-intro {
    max-width: 700px;
}

.institutional-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.institutional-text h2 {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 1rem;
}

.institutional-text p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.precedent-card {
    padding: 2rem;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
}

.precedent-card h3 {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.precedent-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.precedent-quote {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--white);
    border-left: 2px solid var(--accent-dim);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

.institutional-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

.service-card {
    padding: 2rem;
    border: 1px solid var(--border);
}

.service-card h3 {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--white);
    margin-bottom: 0.8rem;
}

.service-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Testimonial */
.testimonial {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 4rem 0;
}

.testimonial blockquote {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--white);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.testimonial cite {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-style: normal;
    color: var(--accent);
    letter-spacing: 0.05em;
}

/* ============================================
   404 PAGE
   ============================================ */

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.error-content {
    position: relative;
    z-index: 2;
}

.error-code {
    font-family: var(--sans);
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 200;
    color: var(--border);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-message {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.error-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    background: var(--bg-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h4 {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-col p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-col a {
    display: block;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .intro-grid { grid-template-columns: 1fr; gap: 3rem; }
    .intro-stats { flex-direction: row; gap: 2rem; }
    .works-grid { grid-template-columns: 1fr 1fr; }
    .available-grid { grid-template-columns: 1fr 1fr; }
    .gallery-item { grid-template-columns: 1fr; }
    .gallery-item:nth-child(even) { direction: ltr; }
    .about-section { grid-template-columns: 1fr; }
    .commission-details { grid-template-columns: 1fr; }
    .institutional-grid { grid-template-columns: 1fr; }
    .institutional-services { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .lightbox-details { grid-template-columns: 1fr 1fr; }
    .scarcity-banner { gap: 2rem; flex-wrap: wrap; justify-content: center; }
    .press-kit { flex-direction: column; text-align: center; }
    .press-kit .btn { margin-left: 0; }
    .cursor-oam { display: none; }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(7, 10, 20, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1.2rem; }
    .nav-toggle { display: flex; z-index: 101; }
    .works-grid { grid-template-columns: 1fr; }
    .available-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-title { letter-spacing: 0.2em; }
    .intro-stats { flex-direction: column; }
    .scarcity-banner { flex-direction: column; gap: 1.5rem; }
    .email-form { flex-direction: column; }
    .email-form input { border-right: 1px solid var(--border); }
    .lightbox-details { grid-template-columns: 1fr; }
    .lightbox-scale { flex-direction: column; align-items: center; }
}
