:root {
    --bg:        #0a0d18;
    --bg-card:   #111625;
    --bg-card2:  #1a1f35;
    --gold:      #c8a96e;
    --gold-light:#e8c98e;
    --text:      #f0e6d3;
    --text-muted:#8a9bb0;
    --accent:    #4a3060;
    --radius:    8px;
    --nav-h:     64px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Raleway', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Navigation ── */
.main-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    background: rgba(10, 13, 24, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 169, 110, 0.15);
    z-index: 100;
}

.nav-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.05em;
}
.nav-logo span { color: var(--gold); }

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}
.main-nav ul a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.main-nav ul a:hover,
.main-nav ul a.active { color: var(--gold); }

/* ── Main ── */
main { flex: 1; padding-top: var(--nav-h); }

/* ── Hero (home) ── */
.hero {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(74, 48, 96, 0.3) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(10, 30, 60, 0.4) 0%, transparent 55%);
    pointer-events: none;
}

.hero-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Cinzel Decorative', cursive;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.hero-name {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.1rem, 3vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.hero-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
    font-style: italic;
    margin-bottom: 2.5rem;
}

.hero-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 2.5rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 2.5rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: background 0.25s, color 0.25s;
}
.btn-primary:hover {
    background: var(--gold);
    color: var(--bg);
}

/* ── Featured section ── */
.section {
    padding: 5rem 2rem;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    text-align: center;
    margin-bottom: 3rem;
}

/* ── Featured scatter (home) ── */
.featured-scatter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem 2rem;
    padding: 2rem 1.5rem 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.photo-item {
    background: #f4ede0;
    padding: 0.7rem 0.7rem 2.8rem;
    box-shadow: 3px 5px 18px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.06);
    text-decoration: none;
    color: #1c1408;
    display: block;
    width: clamp(170px, 20vw, 260px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s;
    position: relative;
    z-index: 1;
}

.photo-item--1 { transform: rotate(-2.8deg); }
.photo-item--2 { transform: rotate(1.6deg);  margin-top: 1.2rem; }
.photo-item--3 { transform: rotate(-1.0deg); margin-top: -0.8rem; }
.photo-item--4 { transform: rotate(2.4deg);  margin-top: 0.6rem; }
.photo-item--5 { transform: rotate(-0.6deg); margin-top: -1.2rem; }

.photo-item:hover {
    transform: rotate(0deg) scale(1.06) translateY(-8px) !important;
    box-shadow: 6px 14px 40px rgba(0,0,0,0.65);
    z-index: 10;
}

.photo-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.photo-img--placeholder {
    background: #d6ccb8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: #8a7a60;
}

.photo-caption {
    padding-top: 0.55rem;
    text-align: center;
}

.photo-name {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #2a1f0a;
    line-height: 1.3;
}

.photo-collection {
    font-size: 0.62rem;
    color: #8a6a30;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

/* ── Card ── */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    display: block;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid rgba(255,255,255,0.05);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    background: var(--bg-card2);
}

.card-img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg-card2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.card-body {
    padding: 1.25rem;
}

.card-name {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.card-collection {
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.card-collection-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.7;
    margin-bottom: 0.2rem;
}

.card-collection-entry {
    border-color: rgba(200,169,110,0.15);
}
.card-collection-entry:hover {
    border-color: rgba(200,169,110,0.35);
}

/* ── Portfolio page ── */
.portfolio-header {
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.portfolio-header h1 {
    font-family: 'Cinzel Decorative', cursive;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 1.5rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.filter-btn {
    padding: 0.4rem 1.2rem;
    border: 1px solid rgba(200,169,110,0.3);
    background: transparent;
    color: var(--text-muted);
    font-family: 'Raleway', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(200,169,110,0.08);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

/* ── Oeuvre detail ── */
.oeuvre-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.oeuvre-detail .back-link {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    transition: color 0.2s;
}
.oeuvre-detail .back-link:hover { color: var(--gold); }

.oeuvre-detail h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.oeuvre-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(200,169,110,0.2);
    flex-wrap: wrap;
}
.oeuvre-collection { color: var(--gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.oeuvre-date { color: var(--text-muted); font-size: 0.85rem; }

.oeuvre-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.oeuvre-images img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}
.oeuvre-images img:hover { transform: scale(1.02); }

.oeuvre-desc {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text);
    font-weight: 300;
    margin-bottom: 2rem;
    white-space: pre-line;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tag {
    padding: 0.3rem 0.9rem;
    background: rgba(200,169,110,0.12);
    border: 1px solid rgba(200,169,110,0.3);
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    border-radius: 2px;
}

/* ── Lightbox ── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 500;
    align-items: center;
    justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}
.lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* ── Footer ── */
.main-footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* ── 404 ── */
.page-404 {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}
.page-404 h1 { font-family: 'Cinzel Decorative', cursive; font-size: 6rem; color: var(--gold); opacity: 0.4; }
.page-404 p { color: var(--text-muted); }

@media (max-width: 600px) {
    .main-nav { padding: 0 1rem; }
    .main-nav ul { gap: 1rem; }
    .section { padding: 3rem 1rem; }
    .portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; padding: 1rem; }
}
