/* ============================================
   MASPECH s.r.o. — Compact dark theme
   ============================================ */

:root {
    --bg: #0E1316;
    --bg-elevated: #141A1F;
    --bg-card: #181F25;
    --line: rgba(232, 230, 225, 0.08);
    --line-strong: rgba(232, 230, 225, 0.16);
    
    --cream: #E8E6E1;
    --cream-dim: rgba(232, 230, 225, 0.62);
    --cream-faint: rgba(232, 230, 225, 0.4);
    
    --gold: #C9A961;
    --gold-bright: #E0C078;
    
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
    
    --container-w: 1200px;
    --section-y: clamp(64px, 7vw, 100px);
    
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--gold); color: var(--bg); }

.container {
    width: 100%;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container { padding: 0 40px; }
}

/* TYPOGRAPHY */
em {
    font-style: italic;
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 400;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cream-dim);
    margin-bottom: 20px;
}

.eyebrow__num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 0;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    display: inline-block;
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.18);
    animation: pulse 2.4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.18); }
    50% { box-shadow: 0 0 0 6px rgba(201, 169, 97, 0.05); }
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: all 0.4s var(--ease);
    white-space: nowrap;
    border: 1px solid transparent;
}

.btn--primary {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
}

.btn--primary:hover {
    background: var(--gold-bright);
    border-color: var(--gold-bright);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -8px rgba(201, 169, 97, 0.4);
}

.btn--primary svg { transition: transform 0.4s var(--ease); }
.btn--primary:hover svg { transform: translateX(4px); }

.btn--ghost {
    color: var(--cream);
    border-color: var(--line-strong);
}

.btn--ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn--full { width: 100%; padding: 16px 24px; }

/* ============================================
   NAV
   ============================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: all 0.4s var(--ease);
}

.nav.is-scrolled {
    background: rgba(14, 19, 22, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.nav__inner {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding 0.4s var(--ease);
}

.nav.is-scrolled .nav__inner {
    padding: 10px 24px;
}

@media (min-width: 768px) {
    .nav__inner { padding: 18px 40px; }
    .nav.is-scrolled .nav__inner { padding: 12px 40px; }
}

.nav__brand { display: block; line-height: 0; }

.nav__logo {
    height: 72px;
    width: auto;
    transition: height 0.4s var(--ease);
}

.nav.is-scrolled .nav__logo { height: 54px; }

.nav__menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Mobile dropdown — anchored to the nav itself, not the viewport.
   This means it always sits flush below the nav, even when nav shrinks on scroll. */
@media (max-width: 799px) {
    .nav__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 4px 24px 20px;
        background: rgba(14, 19, 22, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5);
        z-index: 50;

        /* Hidden by default (always rendered, just invisible) */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.28s var(--ease),
                    transform 0.28s var(--ease),
                    visibility 0s linear 0.28s;
    }

    .nav__menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity 0.28s var(--ease),
                    transform 0.28s var(--ease),
                    visibility 0s linear 0s;
    }
}

.nav__link {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cream-dim);
}

.nav__link:hover { color: var(--cream); }

.nav__link--cta {
    background: var(--gold);
    color: var(--bg) !important;
    margin-left: 12px;
    padding: 10px 22px;
    font-weight: 600;
}

.nav__link--cta:hover {
    background: var(--gold-bright);
}

.nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    margin-right: -10px; /* visually align with content edge */
    border-radius: 4px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    z-index: 102;
}

@media (min-width: 800px) {
    .nav__toggle { display: none; }
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--cream);
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
    transform-origin: center;
    pointer-events: none; /* clicks pass through to button */
}

.nav__toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.is-active span:nth-child(2) { opacity: 0; }
.nav__toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu link styling */
@media (max-width: 799px) {
    .nav__link {
        font-size: 15px;
        font-family: var(--font-body);
        font-weight: 500;
        color: var(--cream);
        padding: 14px 4px;
        border-bottom: 1px solid var(--line);
        text-align: left;
        letter-spacing: 0.02em;
        /* Each link starts hidden, fades in on menu open */
        opacity: 0;
        transform: translateY(6px);
        transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), color 0.2s var(--ease);
    }

    .nav__menu.is-open .nav__link {
        opacity: 1;
        transform: translateY(0);
    }

    .nav__menu.is-open .nav__link:nth-child(1) { transition-delay: 0.06s; }
    .nav__menu.is-open .nav__link:nth-child(2) { transition-delay: 0.10s; }
    .nav__menu.is-open .nav__link:nth-child(3) { transition-delay: 0.14s; }
    .nav__menu.is-open .nav__link:nth-child(4) { transition-delay: 0.18s; }

    .nav__link:active {
        color: var(--gold);
    }

    .nav__link--cta {
        margin: 16px 0 0;
        padding: 14px 20px;
        text-align: center;
        font-weight: 600;
        border-bottom: none;
        letter-spacing: 0.04em;
    }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 88vh;
    min-height: 88dvh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 169, 97, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 100% 100%, rgba(201, 169, 97, 0.05) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
    z-index: 0;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(232, 230, 225, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 230, 225, 0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
    z-index: 1;
}

.hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero__meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 100px;
    font-size: 12px;
    color: var(--cream-dim);
    margin-bottom: 28px;
    background: rgba(20, 26, 31, 0.5);
    animation: fadeUp 0.8s var(--ease) 0.1s both;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(36px, 6.5vw, 80px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    max-width: 18ch;
    animation: fadeUp 0.9s var(--ease) 0.2s both;
}

.hero__lead {
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.65;
    color: var(--cream-dim);
    max-width: 56ch;
    margin-bottom: 36px;
    animation: fadeUp 0.9s var(--ease) 0.35s both;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    animation: fadeUp 0.9s var(--ease) 0.5s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--section-y) 0;
    position: relative;
}

.section__head {
    margin-bottom: 56px;
    max-width: 720px;
}

.section__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(30px, 4.2vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section__lead {
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.65;
    color: var(--cream-dim);
    max-width: 56ch;
}

/* ============================================
   SERVICES
   ============================================ */
.services { 
    background: var(--bg);
    border-top: 1px solid var(--line);
}

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

.service {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 36px 0;
    border-top: 1px solid var(--line);
    transition: padding 0.4s var(--ease);
    position: relative;
}

.service:last-child { border-bottom: 1px solid var(--line); }

.service:hover { padding-left: 12px; }

.service__num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 44px;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
    opacity: 0.85;
}

.service__body { max-width: 60ch; }

.service__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.service__text {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--cream-dim);
}

.service__icon {
    width: 64px;
    height: 64px;
    color: var(--gold);
    opacity: 0.6;
    transition: all 0.4s var(--ease);
    flex-shrink: 0;
}

.service:hover .service__icon {
    opacity: 1;
    transform: rotate(-4deg);
}

.service__icon svg { width: 100%; height: 100%; }

@media (max-width: 700px) {
    .service {
        grid-template-columns: 44px 1fr;
        gap: 16px;
        padding: 28px 0;
    }
    .service__num { font-size: 32px; }
    .service__icon {
        grid-column: 2;
        width: 48px;
        height: 48px;
        margin-top: 8px;
    }
}

/* ============================================
   WHY US
   ============================================ */
.why {
    background: var(--bg-elevated);
    border-top: 1px solid var(--line);
}

.why__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 700px) {
    .why__list { grid-template-columns: 1fr 1fr; }
}

.why__item {
    padding: 32px 0;
    border-top: 1px solid var(--line);
    padding-right: 24px;
    transition: padding 0.4s var(--ease);
}

.why__item:hover { padding-left: 8px; }

@media (min-width: 700px) {
    .why__item:nth-child(odd) {
        padding-right: 40px;
        border-right: 1px solid var(--line);
    }
    .why__item:nth-child(even) {
        padding-left: 40px;
    }
    .why__item:nth-child(odd):hover { padding-left: 8px; padding-right: 32px; }
    .why__item:nth-child(even):hover { padding-left: 48px; }
}

.why__num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 13px;
    color: var(--gold);
    margin-bottom: 14px;
    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--gold);
}

.why__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 20px;
    line-height: 1.25;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.why__text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--cream-dim);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background: var(--bg);
    border-top: 1px solid var(--line);
}

.contact__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 900px) {
    .contact__layout {
        grid-template-columns: 1fr 1.4fr;
        gap: 48px;
        align-items: start;
    }
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact__card {
    display: block;
    padding: 24px 28px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

a.contact__card:hover {
    border-color: var(--gold);
    transform: translateX(4px);
}

.contact__card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.5s var(--ease);
}

a.contact__card:hover::before { width: 100%; }

.contact__label {
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cream-faint);
    margin-bottom: 8px;
    font-weight: 500;
}

.contact__value {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    word-break: break-word;
}

.contact__meta {
    margin-top: 8px;
    font-size: 13px;
    color: var(--cream-faint);
}

/* FORM */
.form {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--line);
}

@media (max-width: 600px) {
    .form { padding: 24px 20px; }
}

.form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .form__row { grid-template-columns: 1fr 1fr; }
}

.field {
    display: block;
    margin-bottom: 16px;
}

.field__label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream-faint);
    margin-bottom: 6px;
    font-weight: 500;
}

.field input,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 14.5px;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
    border-radius: 0;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--bg);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--cream-faint);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--line);
    padding: 32px 0;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

@media (min-width: 700px) {
    .footer__inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer__logo { height: 40px; width: auto; }

.footer__text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: var(--cream-faint);
    letter-spacing: 0.04em;
}

.footer__sep {
    color: var(--gold);
    opacity: 0.5;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.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);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
    background: var(--bg);
    border-top: 1px solid var(--line);
}

.gallery__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Mobile/tablet: natural aspect ratios — portraits stay vertical, landscapes horizontal */
.gallery__item {
    aspect-ratio: 4 / 3;
}

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

@media (min-width: 1000px) {
    .gallery__grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 240px;
        gap: 12px;
    }
    /* On desktop, grid sizing controls dimensions */
    .gallery__item,
    .gallery__item--tall,
    .gallery__item--wide {
        aspect-ratio: auto;
    }
    .gallery__item--wide { grid-column: span 2; }
    .gallery__item--tall { grid-row: span 2; }
}

.gallery__item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--line);
    background: var(--bg-card);
    padding: 0;
    transition: border-color 0.4s var(--ease);
}

.gallery__item:hover {
    border-color: var(--gold);
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
}

.gallery__item:hover img {
    transform: scale(1.04);
}

.gallery__zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(14, 19, 22, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s var(--ease);
    z-index: 2;
    pointer-events: none;
}

.gallery__item:hover .gallery__zoom {
    opacity: 1;
    transform: scale(1);
}

/* Stylized placeholders — each tile gets its own pattern */
.ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.6s var(--ease);
}

.gallery__item:hover .ph {
    transform: scale(1.04);
}

.ph__num {
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(48px, 7vw, 80px);
    color: var(--gold);
    opacity: 0.85;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.ph::before, .ph::after {
    content: '';
    position: absolute;
    inset: 0;
}

/* Tile 1 — vertical lines (scaffolding) */
.ph--1 {
    background: linear-gradient(135deg, #1a2229 0%, #0e1316 100%);
}
.ph--1::before {
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent 28px,
        rgba(232, 230, 225, 0.04) 28px,
        rgba(232, 230, 225, 0.04) 29px
    );
}
.ph--1::after {
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.4) 100%);
}

/* Tile 2 — brick pattern */
.ph--2 {
    background: linear-gradient(160deg, #1c1f23 0%, #14181c 100%);
}
.ph--2::before {
    background-image:
        linear-gradient(rgba(201, 169, 97, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 169, 97, 0.05) 1px, transparent 1px);
    background-size: 56px 22px;
    background-position: 0 0, 28px 11px;
}

/* Tile 3 — blueprint grid */
.ph--3 {
    background: linear-gradient(180deg, #131a20 0%, #0e1316 100%);
}
.ph--3::before {
    background-image:
        linear-gradient(rgba(232, 230, 225, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 230, 225, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
}
.ph--3::after {
    background: radial-gradient(circle at 30% 40%, rgba(201, 169, 97, 0.08) 0%, transparent 50%);
}

/* Tile 4 — diagonal hatching */
.ph--4 {
    background: linear-gradient(135deg, #181c20 0%, #0e1316 100%);
}
.ph--4::before {
    background-image: repeating-linear-gradient(
        45deg,
        transparent 0,
        transparent 16px,
        rgba(232, 230, 225, 0.025) 16px,
        rgba(232, 230, 225, 0.025) 17px
    );
}

/* Tile 5 — concrete dots */
.ph--5 {
    background: linear-gradient(200deg, #1a1e22 0%, #0f1418 100%);
}
.ph--5::before {
    background-image: radial-gradient(circle at center, rgba(232, 230, 225, 0.04) 1px, transparent 1.5px);
    background-size: 20px 20px;
}

/* Tile 6 — horizontal lines (foundation layers) */
.ph--6 {
    background: linear-gradient(170deg, #161b1f 0%, #0e1316 100%);
}
.ph--6::before {
    background-image: repeating-linear-gradient(
        0deg,
        transparent 0,
        transparent 20px,
        rgba(201, 169, 97, 0.04) 20px,
        rgba(201, 169, 97, 0.04) 21px
    );
}

/* Tile 7 — concentric / industrial */
.ph--7 {
    background: linear-gradient(225deg, #1c2024 0%, #0e1316 100%);
}
.ph--7::before {
    background-image: repeating-radial-gradient(
        circle at 70% 30%,
        transparent 0,
        transparent 24px,
        rgba(232, 230, 225, 0.025) 24px,
        rgba(232, 230, 225, 0.025) 25px
    );
}

.gallery__note {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--cream-faint);
    font-size: 13px;
    font-style: italic;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 11, 13, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
    padding: 60px 24px 100px;
}

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

.lightbox__stage {
    position: relative;
    max-width: min(1200px, 92vw);
    max-height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.96);
    transition: transform 0.4s var(--ease);
}

.lightbox.is-open .lightbox__stage {
    transform: scale(1);
}

.lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 180px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.6);
}

.lightbox__placeholder {
    width: min(720px, 90vw);
    aspect-ratio: 4 / 3;
    background: var(--bg-card);
    border: 1px solid var(--line-strong);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lightbox__placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(232, 230, 225, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 230, 225, 0.025) 1px, transparent 1px);
    background-size: 32px 32px;
}

.lightbox__ph-num {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(80px, 14vw, 140px);
    color: var(--gold);
    opacity: 0.5;
    line-height: 1;
    position: relative;
}

.lightbox__placeholder p {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(16px, 1.4vw, 19px);
    color: var(--cream-dim);
    line-height: 1.5;
    position: relative;
    max-width: 32ch;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    background: rgba(20, 26, 31, 0.7);
    border: 1px solid var(--line-strong);
    color: var(--cream);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
}

.lightbox__close {
    top: 20px;
    right: 20px;
}

.lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
}

.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

@media (max-width: 700px) {
    .lightbox__nav {
        width: 44px;
        height: 44px;
    }
    .lightbox__nav--prev { left: 12px; }
    .lightbox__nav--next { right: 12px; }
    .lightbox__close { top: 14px; right: 14px; width: 42px; height: 42px; }
}

.lightbox__bar {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    background: rgba(20, 26, 31, 0.7);
    border: 1px solid var(--line);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 13px;
    color: var(--cream);
    max-width: calc(100vw - 48px);
}

.lightbox__caption {
    color: var(--cream);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.lightbox__counter {
    color: var(--gold);
    font-family: var(--font-display);
    font-style: italic;
    padding-left: 16px;
    border-left: 1px solid var(--line-strong);
    font-size: 14px;
}


    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
