/* ── Project Page Styles ── */
/* Tokens mirror index.html */
:root {
    --bg:        oklch(98.5% 0.008 85);
    --bg-warm:   oklch(96% 0.014 80);
    --ink:        oklch(22% 0.01 250);
    --ink-mid:    oklch(45% 0.01 250);
    --ink-light:  oklch(65% 0.01 250);
    --teal:       oklch(68% 0.14 192);
    --teal-light: oklch(93% 0.05 192);
    --teal-dark:  oklch(52% 0.14 192);
    --serif:      'DM Serif Display', Georgia, serif;
    --sans:       'DM Sans', 'Helvetica Neue', Helvetica, sans-serif;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* ── Back link ── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--teal-dark);
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: gap 0.2s ease;
    margin-bottom: 3rem;
}
.back-link:hover { gap: 0.65rem; }
.back-link svg { transition: transform 0.2s ease; }
.back-link:hover svg { transform: translateX(-3px); }

/* ── Project Hero ── */
.project-hero {
    padding: 5rem 0 2.5rem;
}

.project-hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.project-subtitle-h2 {
    font-family: var(--sans);
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--ink-mid);
    line-height: 1.55;
    margin-bottom: 0;
}

.project-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--ink-mid);
    line-height: 1.7;
}

/* ── Divider ── */
.project-divider {
    border: none;
    border-top: 1px solid oklch(88% 0.01 75);
    margin: 2.5rem 0 0;
}

/* ── Meta grid ── */
.meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid oklch(88% 0.01 75);
}
.meta-label {
    font-size: 0.8125rem;
    color: var(--ink-light);
    font-weight: 400;
    line-height: 1.6;
}
.meta-label strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-dark);
    margin-bottom: 0.25rem;
}

/* ── Containers ── */
.container-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* ── Content sections ── */
.content-section {
    padding: 2.5rem 0 0;
}

.content-section h2 {
    font-family: var(--serif);
    font-size: 1.875rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.content-section h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ink);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.005em;
}

.content-section p {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--ink-mid);
    margin-bottom: 0.85rem;
}

.content-section p strong {
    font-weight: 500;
    color: var(--ink);
}

.content-section ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem;
}

.content-section ul li {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--ink-mid);
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.content-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
}

/* results list (same but slightly bolder) */
.results-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}
.results-list li {
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.75;
    color: var(--ink);
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.6rem;
}
.results-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
}

/* ── Image sections ── */
.image-section {
    padding: 2.5rem 0 3rem;
}
.image-section.reduced-spacing {
    padding-bottom: 1rem;
}
.image-section .container-narrow {
    max-width: 960px;
}
.image-section img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}
.image-section img:hover { opacity: 0.92; }

.full-width-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin: 1rem 0;
}

.image-caption {
    font-size: 0.875rem;
    color: var(--ink-light);
    text-align: center;
    margin-top: 0.75rem;
    font-style: italic;
    line-height: 1.5;
}

/* two-column image grid */
.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.image-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}
.image-grid img:hover { opacity: 0.92; }

/* ── Color palette ── */
.color-palette { margin: 1.5rem 0 2rem; }
.color-row { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; }
.color-swatch {
    width: 72px; height: 72px;
    border-radius: 8px;
    border: 1px solid oklch(88% 0.01 75);
}

/* ── Lightbox ── */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: oklch(10% 0.01 250 / 0.93);
    z-index: 9999;
    cursor: zoom-out;
    animation: lbFadeIn 0.25s ease;
}
.lightbox-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}
.lightbox-overlay img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    cursor: default;
}
.lightbox-close {
    position: absolute;
    top: 1.5rem; right: 1.75rem;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Reflections / key metrics ── */
.reflections {
    background: var(--bg-warm);
    padding: 4rem 0;
    margin-top: 3rem;
    border-radius: 20px;
    margin-left: 1rem;
    margin-right: 1rem;
}
.key-metrics { margin-top: 2rem; }
.key-metrics h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal-dark);
    margin-bottom: 1rem;
}

/* ── Footer ── */
.footer {
    border-top: 1px solid oklch(88% 0.01 75);
    padding: 3rem 0;
    margin-top: 6rem;
}
.footer-inner {
    max-width: 1180px; margin: 0 auto;
    padding: 0 3rem;
    display: flex; justify-content: space-between; align-items: center;
}
.footer-copy {
    font-size: 0.875rem;
    color: var(--ink-light);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .container-narrow { padding: 0 1.5rem; }
    .project-hero { padding: 3.5rem 0 2rem; }
    .meta-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .image-grid { grid-template-columns: 1fr; }
    .reflections { margin-left: 0; margin-right: 0; border-radius: 0; }
    .footer-inner { padding: 0 1.5rem; }
}
@media (max-width: 480px) {
    .container-narrow { padding: 0 1.25rem; }
    .project-hero h1 { font-size: 2rem; }
    .color-row { gap: 0.5rem; }
    .color-swatch { width: 56px; height: 56px; }
}
