:root {
    --bg: #f4f0e8;
    --surface: #fbf8f2;
    --text: #171512;
    --muted: #6e655b;
    --soft: #b6aa9d;
    --line: rgba(23, 21, 18, 0.11);
    --accent: #b47b3d;
    --accent-soft: rgba(180, 123, 61, 0.1);
    --shadow: 0 18px 50px rgba(27, 22, 16, 0.08);
    --display: "Cormorant Garamond", Georgia, serif;
    --ui: "Syne", system-ui, sans-serif;
    --mono: "Syne Mono", monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: var(--ui);
    background:
        radial-gradient(circle at top, rgba(180, 123, 61, 0.08), transparent 28%),
        var(--bg);
}

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

img {
    display: block;
    max-width: 100%;
}

.page {
    width: min(1120px, calc(100vw - 36px));
    margin: 0 auto;
    padding: 22px 0 88px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0 26px;
}

.topbar-brand,
.topbar-link {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.topbar-brand {
    color: var(--accent);
}

.topbar-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.topbar-link {
    color: var(--muted);
}

.hero {
    display: grid;
    gap: 26px;
    padding: 34px 0 22px;
}

.eyebrow {
    margin-bottom: 16px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.title {
    max-width: 11ch;
    margin: 0 0 14px;
    font-family: var(--display);
    font-size: clamp(54px, 8vw, 112px);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 0.92;
}

.summary {
    max-width: 56ch;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.85;
}

.meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 20px 0 0;
}

.meta-item {
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.meta-label {
    margin-bottom: 10px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--soft);
}

.meta-value {
    color: var(--muted);
    line-height: 1.8;
    font-size: 17px;
}

.hero-media,
.section-media {
    overflow: hidden;
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero-media img,
.section-media img {
    width: 100%;
    height: auto;
}

.section {
    padding: 64px 0 0;
    border-top: 1px solid var(--line);
    margin-top: 64px;
}

.section-header {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 26px;
    align-items: start;
    margin-bottom: 30px;
}

.section-label {
    margin-bottom: 14px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--soft);
}

.section-title {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.section-copy {
    margin: 0;
    max-width: 42ch;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.9;
}

.section-caption {
    margin: 18px 0 0;
    color: var(--soft);
    font-size: 13px;
    line-height: 1.75;
}

.media-grid {
    display: grid;
    gap: 18px;
}

.media-grid.single {
    grid-template-columns: 1fr;
}

.media-grid.pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-grid.triptych {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-media.tall img {
    width: 100%;
    object-fit: cover;
}

.section-figure {
    margin: 0;
}

.section-media {
    position: relative;
    cursor: zoom-in;
}

.peek-hint {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(23, 21, 18, 0.72);
    color: #fff;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
    pointer-events: none;
}

.section-media:hover .peek-hint {
    opacity: 1;
    transform: translateY(0);
}

.figure-caption {
    padding: 12px 4px 0;
    color: var(--soft);
    font-size: 12px;
    line-height: 1.6;
}

.next {
    padding: 72px 0 0;
    margin-top: 72px;
    border-top: 1px solid var(--line);
}

.next-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.next-title {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.next-copy {
    margin: 0;
    color: var(--muted);
    max-width: 34ch;
    line-height: 1.8;
}

.next-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.next-card {
    display: block;
}

.next-card-media {
    overflow: hidden;
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.next-card-media img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
}

.next-card:hover .next-card-media img {
    transform: scale(1.03);
}

.next-card-title {
    margin: 14px 0 6px;
    font-family: var(--display);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.next-card-meta {
    color: var(--soft);
    font-size: 13px;
    line-height: 1.7;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(17, 13, 9, 0.9);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-dialog {
    width: min(1200px, 100%);
    max-height: calc(100vh - 56px);
    overflow: auto;
}

.lightbox-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.lightbox-caption {
    color: rgba(255,255,255,0.84);
    font-size: 14px;
    line-height: 1.6;
}

.lightbox-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lightbox-btn {
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-family: var(--ui);
    cursor: pointer;
}

.lightbox-close {
    width: 46px;
    height: 46px;
    font-size: 24px;
    line-height: 1;
}

.lightbox-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 194px;
    padding: 10px 16px;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.lightbox-download:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.18);
}

.lightbox-download.is-success {
    background: #2d9b61;
    color: #fff;
}

.download-face {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.download-eye {
    position: absolute;
    top: 1px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
}

.download-eye.left {
    left: 0;
}

.download-eye.right {
    right: 0;
}

.download-pupil {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16120f;
    transition: transform 0.1s linear;
}

.download-mouth {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 16px;
    height: 8px;
    margin-left: -8px;
    border-bottom: 3px solid #fff;
    border-radius: 0 0 16px 16px;
    opacity: 0.35;
    transform: scaleX(0.85);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.lightbox-download.is-happy .download-mouth {
    opacity: 1;
    transform: scaleX(1.1);
}

.lightbox-download.is-animating .download-eye {
    animation: blinkDown 0.42s var(--ease);
}

.download-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.download-copy strong {
    font-size: 14px;
    font-weight: 600;
}

.download-copy span {
    font-size: 11px;
    opacity: 0.72;
}

.lightbox-figure {
    margin: 0;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
}

.lightbox-figure img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes blinkDown {
    0% { transform: translateY(0) scaleY(1); }
    30% { transform: translateY(4px) scaleY(0.35); }
    60% { transform: translateY(5px) scaleY(0.18); }
    100% { transform: translateY(0) scaleY(1); }
}

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

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 880px) {
    .page {
        width: min(100vw - 24px, 1120px);
    }

    .meta,
    .section-header,
    .media-grid.pair,
    .media-grid.triptych,
    .next-grid {
        grid-template-columns: 1fr;
    }

    .lightbox {
        padding: 16px;
    }

    .lightbox-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .lightbox-actions {
        justify-content: space-between;
    }

    .title {
        max-width: 100%;
    }
}
