@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Outfit:wght@200;300;400;500;600&display=swap');

:root {
    --bg-deep: #050816;
    --bg-mid: #0a1028;
    --bg-surface: rgba(14, 20, 48, 0.55);
    --bg-elevated: rgba(18, 26, 58, 0.72);
    --text-primary: #eef1ff;
    --text-secondary: #9aa3c7;
    --text-muted: #5c6588;
    --accent: #d4b896;
    --accent-bright: #e8d4b0;
    --accent-dim: #a8895e;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(212, 184, 150, 0.35);
    --glow: rgba(212, 184, 150, 0.15);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Outfit', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    background: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.serif {
    font-family: var(--font-serif);
}

/* ── Ambient background layers ── */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(45, 55, 120, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 90% 80%, rgba(212, 184, 150, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 10% 60%, rgba(60, 80, 160, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-deep) 0%, #070d1f 50%, var(--bg-deep) 100%);
}

.ambient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
    animation: orb-drift 20s var(--ease-in-out) infinite alternate;
}

.ambient-orb--gold {
    width: 500px;
    height: 500px;
    background: rgba(212, 184, 150, 0.07);
    top: 10%;
    right: -10%;
    animation-delay: -5s;
}

.ambient-orb--blue {
    width: 600px;
    height: 600px;
    background: rgba(50, 70, 160, 0.1);
    bottom: 20%;
    left: -15%;
    animation-delay: -10s;
}

@keyframes orb-drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -30px) scale(1.08); }
}

#starfield-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.7;
}

/* ── Grain overlay ── */
.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px;
}

/* ── Navigation ── */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.6s var(--ease-out-expo);
    border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
    background: rgba(5, 8, 22, 0.82);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom-color: var(--border);
}

.site-nav .nav-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.nav-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(5, 8, 22, 0.6);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s ease, border-color 0.4s ease;
}

.nav-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-logo-icon--compact {
    width: 2rem;
    height: 2rem;
}

.nav-logo:hover .nav-logo-icon {
    transform: scale(1.06);
    border-color: var(--border-hover);
    box-shadow: 0 0 20px var(--glow);
}

.nav-logo-text {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2.25rem;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    transition: color 0.4s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.5s var(--ease-out-expo);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border-radius: 100px;
    padding: 0.85rem 1.75rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    color: var(--bg-deep);
    box-shadow: 0 4px 24px rgba(212, 184, 150, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(212, 184, 150, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.55rem 1.25rem;
    font-size: 0.8rem;
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 8s var(--ease-in-out);
}

.hero:hover .hero-bg img {
    transform: scale(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 8, 22, 0.3) 0%, rgba(5, 8, 22, 0.55) 40%, rgba(5, 8, 22, 0.92) 100%),
        radial-gradient(ellipse 70% 50% at 50% 40%, transparent 0%, rgba(5, 8, 22, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 52rem;
    padding: 8rem 1.5rem 6rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2rem;
}

.hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(212, 184, 150, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 12px 4px rgba(212, 184, 150, 0.2); }
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 10vw, 7.5rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-title em {
    font-style: italic;
    color: var(--accent-bright);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 32rem;
    margin: 0 auto 2.5rem;
    letter-spacing: 0.01em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: float-hint 3s ease-in-out infinite;
}

@keyframes float-hint {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Sections ── */
.section {
    padding: clamp(4rem, 8vw, 7rem) 1.5rem;
}

.section-inner {
    max-width: 80rem;
    margin: 0 auto;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Glass cards ── */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    transition: all 0.6s var(--ease-out-expo);
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(212, 184, 150, 0.05);
}

/* ── Post cards ── */
.post-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-card-image {
    position: relative;
    height: 14rem;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.post-card:hover .post-card-image img {
    transform: scale(1.06);
}

.post-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(5, 8, 22, 0.7) 100%);
}

.post-card-date {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.3rem 0.75rem;
    background: rgba(5, 8, 22, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.post-card-body {
    padding: 1.75rem;
}

.post-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--accent);
    border: 1px solid rgba(212, 184, 150, 0.12);
    transition: all 0.3s ease;
}

.post-card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    transition: color 0.4s ease;
}

.post-card:hover .post-card-title {
    color: var(--accent-bright);
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--accent);
    transition: gap 0.4s var(--ease-out-expo);
}

.post-card:hover .post-card-link {
    gap: 0.85rem;
}

/* ── Quote banner ── */
.quote-banner {
    position: relative;
    padding: clamp(4rem, 8vw, 6rem) 1.5rem;
    overflow: hidden;
}

.quote-banner-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.quote-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.quote-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 8, 22, 0.95) 0%, rgba(5, 8, 22, 0.7) 50%, rgba(5, 8, 22, 0.95) 100%);
    z-index: 1;
}

.quote-banner-content {
    position: relative;
    z-index: 2;
    max-width: 44rem;
    margin: 0 auto;
    text-align: center;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.quote-attribution {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ── Prose ── */
.prose-custom {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
    font-weight: 300;
}

.prose-custom p {
    margin-bottom: 1.25em;
}

/* ── Newsletter ── */
.newsletter-card {
    max-width: 40rem;
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 3.5rem);
    text-align: center;
    border-radius: 2rem;
    background: var(--bg-elevated);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 184, 150, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* ── Footer ── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.site-footer-inner {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .site-footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* ── Modal ── */
dialog {
    border: none;
    background: transparent;
    padding: 0;
    max-width: 28rem;
    width: calc(100% - 2rem);
    margin: auto;
}

dialog::backdrop {
    background: rgba(5, 8, 22, 0.75);
    backdrop-filter: blur(8px);
    animation: fade-in 0.4s ease;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-elevated);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem;
    animation: modal-in 0.5s var(--ease-out-expo);
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-input {
    width: 100%;
    background: rgba(5, 8, 22, 0.6);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.85rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.modal-input::placeholder {
    color: var(--text-muted);
}

.modal-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--glow);
}

/* ── Writings page ── */
.post-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.5s var(--ease-out-expo);
}

@media (min-width: 768px) {
    .post-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.post-row:hover {
    border-color: var(--border-hover);
    transform: translateX(6px);
    background: var(--bg-elevated);
}

.post-row:hover .post-row-title {
    color: var(--accent-bright);
}

.search-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.85rem 1.25rem 0.85rem 3rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--text-primary);
    outline: none;
    transition: all 0.4s ease;
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--glow);
}

.filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.04);
}

.filter-btn.active {
    background: var(--accent);
    color: var(--bg-deep);
    border-color: var(--accent);
}

/* ── Article page ── */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-dim), var(--accent-bright));
    z-index: 9999;
    transition: width 0.15s ease;
    box-shadow: 0 0 8px var(--glow);
}

.article-layout {
    max-width: clamp(36rem, 72vw, 52rem);
    margin: 0 auto;
    padding: clamp(5.5rem, 9vw, 7.5rem) clamp(1.5rem, 4vw, 2.5rem) clamp(4rem, 6vw, 5rem);
}

.article-nav-inner,
.article-footer-inner {
    max-width: clamp(36rem, 72vw, 52rem);
}

@media (min-width: 1280px) {
    .article-layout {
        max-width: 54rem;
    }

    .article-nav-inner,
    .article-footer-inner {
        max-width: 54rem;
    }
}

@media (min-width: 1600px) {
    .article-layout {
        max-width: 58rem;
    }

    .article-nav-inner,
    .article-footer-inner {
        max-width: 58rem;
    }
}

.article-hero-image {
    width: 100%;
    height: clamp(220px, 28vw, 380px);
    object-fit: cover;
    border-radius: 1.25rem;
    margin-bottom: 2.25rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: clamp(0.7rem, 0.65rem + 0.15vw, 0.8rem);
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.article-meta-date {
    font-family: monospace;
    letter-spacing: 0.1em;
}

.article-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 3.5vw + 1rem, 4.75rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.article-subtitle {
    font-size: clamp(1.2rem, 0.9rem + 0.6vw, 1.65rem);
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.45;
    margin-bottom: 2rem;
}

.article-epigraph {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--accent);
    font-size: clamp(1rem, 0.9rem + 0.25vw, 1.15rem);
    margin-bottom: 2.5rem;
}

.article-prose {
    font-size: clamp(1.12rem, 1rem + 0.22vw, 1.32rem);
    line-height: 1.9;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.01em;
}

@media (min-width: 1024px) {
    .article-prose {
        line-height: 1.95;
    }
}

.article-prose p {
    margin-bottom: 1.5em;
}

.article-prose strong {
    color: var(--text-primary);
    font-weight: 500;
}

.article-prose em {
    font-family: var(--font-serif);
    font-style: italic;
}

/* ── Mobile nav ── */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(5, 8, 22, 0.97);
    backdrop-filter: blur(24px);
    padding: 1.5rem;
    animation: fade-in 0.4s ease;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
}

.mobile-nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
    color: var(--accent);
}

/* ── Divider ── */
.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ── Page header (inner pages) ── */
.page-header {
    padding: clamp(6rem, 12vw, 10rem) 1.5rem clamp(3rem, 6vw, 5rem);
    text-align: center;
    position: relative;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.page-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 8, 22, 0.4) 0%, var(--bg-deep) 100%);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 48rem;
    margin: 0 auto;
}

/* ── Photograph gallery ── */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .photo-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

.photo-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-surface);
    transition: all 0.6s var(--ease-out-expo);
    aspect-ratio: 4 / 5;
}

.photo-card--wide {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
}

.photo-card--tall {
    aspect-ratio: 3 / 4;
}

@media (max-width: 767px) {
    .photo-card--wide {
        grid-column: span 1;
        aspect-ratio: 4 / 5;
    }
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.photo-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.photo-card:hover img {
    transform: scale(1.04);
}

.photo-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    background: linear-gradient(180deg, transparent 40%, rgba(5, 8, 22, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.photo-card:hover .photo-card-overlay,
.photo-card:focus-visible .photo-card-overlay {
    opacity: 1;
}

.photo-card-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.photo-card-caption {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.photo-gallery-intro {
    max-width: 32rem;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
    font-weight: 300;
}

/* Lightbox */
.photo-lightbox {
    border: none;
    background: transparent;
    padding: 0;
    margin: auto;
    max-width: min(56rem, 96vw);
    width: 100%;
}

.photo-lightbox::backdrop {
    background: rgba(5, 8, 22, 0.92);
    backdrop-filter: blur(12px);
}

.photo-lightbox-inner {
    position: relative;
    animation: modal-in 0.5s var(--ease-out-expo);
}

.photo-lightbox-figure {
    margin: 0;
}

.photo-lightbox-figure img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 0.75rem;
}

.photo-lightbox-figure figcaption {
    text-align: center;
    padding: 1.25rem 1rem 0;
}

.photo-lightbox-title {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.photo-lightbox-caption {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
}

.photo-lightbox-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
}

.photo-lightbox-close:hover {
    color: var(--text-primary);
}

.photo-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(5, 8, 22, 0.6);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 2;
    backdrop-filter: blur(8px);
}

.photo-lightbox-nav:hover {
    border-color: var(--border-hover);
    background: rgba(5, 8, 22, 0.85);
}

.photo-lightbox-prev { left: -1rem; }
.photo-lightbox-next { right: -1rem; }

@media (max-width: 640px) {
    .photo-lightbox-prev { left: 0.25rem; }
    .photo-lightbox-next { right: 0.25rem; }
    .photo-lightbox-close { top: -2rem; right: 0.25rem; }
}

/* Newsletter — hidden when disabled via config.js */
body.newsletter-disabled .newsletter-ui {
    display: none !important;
}

/* Homepage photo preview strip — single compact row */
.photo-preview-section {
    padding-top: clamp(2rem, 4vw, 3rem) !important;
    padding-bottom: clamp(2rem, 4vw, 3rem) !important;
}

.photo-preview-section .photo-gallery-intro {
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.photo-preview-section .section-title {
    margin-bottom: 0.5rem !important;
}

.photo-preview-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto 1.25rem;
}

.photo-preview-strip .photo-card {
    aspect-ratio: 16 / 10;
    border-radius: 1rem;
    min-height: 0;
}

.photo-preview-strip .photo-card--wide,
.photo-preview-strip .photo-card--tall {
    grid-column: auto;
    aspect-ratio: 16 / 10;
}

.photo-preview-strip .photo-card-overlay {
    display: none;
}

.photo-preview-strip .photo-card:hover {
    transform: translateY(-2px);
}