/* ===================================
   L'arte di Julia — Artisan Gallery
   Cream · Royal Blue · Fraunces
   =================================== */

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

:root {
    --cream:        #f0ebe2;
    --cream-light:  #faf7f2;
    --cream-mid:    #e6ddd0;
    --cream-dark:   #d8cfc0;
    --blue:         #1B2F8A;
    --blue-dim:     rgba(27,47,138,0.06);
    --blue-border:  rgba(27,47,138,0.13);
    --text:         #1c1914;
    --text-mid:     #6b6560;
    --text-soft:    #9c9690;
    --white:        #fdfaf6;
    --nav-h:        60px;
    --max-w:        1200px;
    --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out:     cubic-bezier(0.0, 0.0, 0.2, 1);
    --font-sans:    'Inter', -apple-system, sans-serif;
    --font-serif:   'Playfair Display', Georgia, serif;
    --font-script:  'Cormorant Garamond', Georgia, serif;
    --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.65;
    color: var(--text);
    background: var(--cream);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* --- Container --- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 36px;
}

/* --- Section Title --- */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--blue);
    line-height: 1.0;
    letter-spacing: -0.025em;
    margin-bottom: 1.2rem;
}

/* --- Button --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 38px;
    font-family: var(--font-sans);
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue);
    background: transparent;
    border: 1px solid var(--blue);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.35s var(--ease);
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--blue);
    transform: translateX(-100%);
    transition: transform 0.45s var(--ease-out);
    z-index: 0;
}
.btn:hover { color: var(--cream-light); }
.btn:hover::before { transform: translateX(0); }
.btn span { position: relative; z-index: 1; }

/* --- Fade-in --- */
.fade-in {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in:nth-child(2) { transition-delay: 0.09s; }
.fade-in:nth-child(3) { transition-delay: 0.18s; }
.fade-in:nth-child(4) { transition-delay: 0.27s; }

/* ===================================
   Navigation
   =================================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    background: var(--cream);
    border-bottom: 1px solid var(--blue-border);
    transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav--scrolled {
    background: rgba(240,235,226,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 32px rgba(27,47,138,0.08);
}
.nav__container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 36px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav__logo {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: -0.02em;
    transition: opacity 0.2s;
}
.nav__logo:hover { opacity: 0.65; }

.nav__menu {
    display: flex;
    align-items: center;
    gap: 38px;
    list-style: none;
}
.nav__link {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mid);
    transition: color 0.2s;
    position: relative;
    padding-bottom: 3px;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 1px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}
.nav__link:hover,
.nav__link--active { color: var(--blue); }
.nav__link:hover::after,
.nav__link--active::after { transform: scaleX(1); }
.nav__link--icon { color: var(--blue); line-height: 0; }
.nav__link--icon svg { transition: transform 0.2s; }
.nav__link--icon:hover svg { transform: scale(1.12); }

/* Hamburger */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav__toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--blue);
    transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav__toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===================================
   Hero — full image + overlay
   =================================== */
.hero {
    margin-top: var(--nav-h);
    height: calc(100vh - var(--nav-h));
    min-height: 360px;
    position: relative;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
}

.hero__text {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 58%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 5% 7% 5% 4%;
}

.hero__eyebrow {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--blue);
    opacity: 0.6;
    margin-bottom: 14px;
    display: block;
}

.hero__logo-img {
    width: 90%;
    max-width: 520px;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
    margin-bottom: 28px;
}

.hero__rule {
    width: 48px;
    height: 1px;
    background: var(--blue);
    opacity: 0.22;
    margin-bottom: 22px;
}

.hero__meta {
    display: flex;
    align-items: center;
    margin-bottom: 36px;
    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mid);
}
.hero__meta-sep {
    display: inline-block;
    width: 1px;
    height: 10px;
    background: currentColor;
    opacity: 0.35;
    margin: 0 18px;
}

/* ===================================
   Bio Section
   =================================== */
.bio {
    padding: 110px 0;
    background: var(--cream-light);
}

.bio__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 36px;
}

.bio__text-col { padding-right: 12px; }

.bio__label {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--blue);
    opacity: 0.45;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.bio__label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--blue);
    opacity: 0.6;
}

.bio__text-col .section-title { margin-bottom: 26px; }

.bio__text-col p {
    font-size: 0.9rem;
    line-height: 1.95;
    color: var(--text-mid);
    margin-bottom: 16px;
}
.bio__text-col p:last-of-type { margin-bottom: 36px; }

.bio__image { position: relative; }
.bio__image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.bio__image::after {
    content: '';
    position: absolute;
    top: 16px; right: -16px; bottom: -16px; left: 16px;
    border: 1px solid var(--blue-border);
    z-index: -1;
    pointer-events: none;
}

/* ===================================
   Portfolio Preview
   =================================== */
.portfolio {
    padding: 110px 0;
    background: var(--cream);
}

.portfolio__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 6px;
}

.portfolio__see-all {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mid);
    border-bottom: 1px solid var(--blue-border);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}
.portfolio__see-all:hover { color: var(--blue); border-color: var(--blue); }

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    margin-top: 40px;
}

.portfolio__card {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--white);
    cursor: pointer;
}

.portfolio__card-image {
    position: relative;
    overflow: hidden;
    height: 420px;
}
.portfolio__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.75s var(--ease);
}
.portfolio__card:hover .portfolio__card-image img { transform: scale(1.07); }

.portfolio__card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27,47,138,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.45s var(--ease);
}
.portfolio__card:hover .portfolio__card-overlay { opacity: 1; }
.portfolio__card-overlay span {
    color: white;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.45);
    padding: 10px 24px;
}

.portfolio__card-info {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border-top: 1px solid var(--blue-border);
}
.portfolio__card-info h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: -0.02em;
}
.portfolio__card-info p {
    font-size: 0.65rem;
    color: var(--text-soft);
    margin-top: 3px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.portfolio__card-arrow {
    font-size: 1.1rem;
    color: var(--blue);
    opacity: 0.28;
    transition: opacity 0.2s, transform 0.3s var(--ease);
}
.portfolio__card:hover .portfolio__card-arrow { opacity: 1; transform: translateX(5px); }

/* ===================================
   Contact Preview (CTA band)
   =================================== */
.contact-preview {
    padding: 110px 0;
    background: var(--blue);
    position: relative;
    overflow: hidden;
}
.contact-preview::before {
    content: 'KONTAKT';
    position: absolute;
    right: -1%;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 20vw;
    font-weight: 900;
    color: rgba(255,255,255,0.04);
    white-space: nowrap;
    line-height: 1;
    pointer-events: none;
    letter-spacing: -0.05em;
}
.contact-preview__content {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.contact-preview__content .section-title {
    color: var(--cream-light);
    margin-bottom: 16px;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
}
.contact-preview__content p {
    color: rgba(240,235,226,0.52);
    font-size: 0.9rem;
    margin-bottom: 40px;
    line-height: 1.85;
}
.contact-preview .btn {
    color: var(--cream-light);
    border-color: rgba(240,235,226,0.3);
}
.contact-preview .btn::before { background: rgba(255,255,255,0.1); }
.contact-preview .btn:hover { color: var(--cream-light); }

/* ===================================
   Social Section
   =================================== */
.social-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 440px;
}
.social-section__left {
    overflow: hidden;
    position: relative;
}
.social-section__left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.75s var(--ease);
}
.social-section__left:hover img { transform: scale(1.04); }

.social-section__right {
    background: var(--cream-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 72px;
    gap: 18px;
}
.social-section__heading {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.8vw, 2.5rem);
    font-weight: 800;
    color: var(--blue);
    line-height: 1.05;
    letter-spacing: -0.025em;
}
.social-section__desc {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.85;
    max-width: 310px;
}
.social-section__icons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}
.social-section__icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--blue-border);
    color: var(--blue);
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.social-section__icons a:hover {
    background: var(--blue);
    color: var(--cream);
    border-color: var(--blue);
}

/* ===================================
   Footer
   =================================== */
.footer { background: var(--text); }

.footer__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 60px 36px 40px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.7fr;
    gap: 52px;
}
.footer__logo {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--cream-light);
    margin-bottom: 10px;
    letter-spacing: -0.025em;
}
.footer__tagline {
    font-size: 0.71rem;
    color: rgba(240,235,226,0.28);
    line-height: 1.7;
}
.footer__menu h4,
.footer__about h4 {
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(240,235,226,0.28);
    margin-bottom: 18px;
}
.footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer__links a {
    font-size: 0.83rem;
    color: rgba(240,235,226,0.48);
    transition: color 0.2s;
}
.footer__links a:hover { color: var(--cream-light); }
.footer__about p {
    font-size: 0.78rem;
    line-height: 1.85;
    color: rgba(240,235,226,0.32);
}
.footer__bottom {
    border-top: 1px solid rgba(240,235,226,0.06);
    padding: 18px 36px;
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer__bottom p {
    font-size: 0.66rem;
    color: rgba(240,235,226,0.22);
}

/* ===================================
   Page Header (Subpages)
   =================================== */
.page-header {
    margin-top: var(--nav-h);
    padding: 72px 0 64px;
    background: var(--cream-mid);
    border-bottom: 1px solid var(--blue-border);
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: attr(data-title);
    position: absolute;
    right: 2%;
    bottom: -14%;
    font-family: var(--font-display);
    font-size: 18vw;
    font-weight: 900;
    color: rgba(27,47,138,0.05);
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: -0.05em;
    user-select: none;
}
.page-header .container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    z-index: 1;
}
.page-header__left { flex: 1; }

.page-header__label {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--blue);
    opacity: 0.42;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-header__label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--blue);
    opacity: 0.5;
}
.page-header__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7.5vw, 6rem);
    font-weight: 900;
    color: var(--blue);
    line-height: 0.9;
    letter-spacing: -0.04em;
}
.page-header__sub {
    font-size: 0.82rem;
    color: var(--text-mid);
    margin-top: 18px;
    max-width: 440px;
    line-height: 1.7;
}

/* ===================================
   Gallery Section (Subpages)
   =================================== */
.gallery-section { padding: 64px 0 110px; }

.gallery__note {
    font-size: 0.72rem;
    color: var(--text-soft);
    letter-spacing: 0.04em;
    margin-bottom: 36px;
    font-style: italic;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}

.gallery__item {
    cursor: pointer;
    background: var(--white);
    position: relative;
    transition: transform 0.38s var(--ease), box-shadow 0.38s var(--ease), z-index 0s;
}
.gallery__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(27,47,138,0.13);
    z-index: 1;
}

.gallery__item-img-wrap {
    overflow: hidden;
    position: relative;
}
.gallery__item img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    transition: transform 0.65s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }

.gallery__item-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--blue-border);
    background: var(--white);
}
.gallery__item-size {
    font-size: 0.68rem;
    color: var(--text-mid);
    letter-spacing: 0.04em;
}
.gallery__item-price {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: -0.01em;
}

/* Gallery CTA strip */
.gallery-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 64px;
    padding: 40px 48px;
    background: var(--blue);
}
.gallery-cta__text p {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: var(--cream-light);
    letter-spacing: -0.025em;
    margin-bottom: 6px;
}
.gallery-cta__text span {
    font-size: 0.78rem;
    color: rgba(240,235,226,0.5);
    line-height: 1.7;
    display: block;
    max-width: 480px;
}
.gallery-cta .btn {
    flex-shrink: 0;
    color: var(--cream-light);
    border-color: rgba(240,235,226,0.3);
    white-space: nowrap;
}
.gallery-cta .btn::before { background: rgba(255,255,255,0.1); }
.gallery-cta .btn:hover { color: var(--cream-light); }

/* ===================================
   Contact Page
   =================================== */
.contact-section { padding: 80px 0 110px; }

.contact__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    margin-bottom: 80px;
}
.contact__card {
    background: var(--white);
    padding: 40px 32px;
    border-top: 2px solid var(--blue);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    transition: background 0.3s var(--ease);
}
.contact__card:hover { background: var(--cream-light); }
.contact__card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    margin-bottom: 6px;
}
.contact__card h3 {
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-soft);
}
.contact__card a,
.contact__card p {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: -0.02em;
    transition: opacity 0.2s;
}
.contact__card a:hover { opacity: 0.6; }

/* Contact Form */
.contact__form-section {
    padding-top: 72px;
    border-top: 1px solid var(--blue-border);
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 88px;
    align-items: start;
}
.contact__form-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--blue);
    line-height: 0.95;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
}
.contact__form-desc {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.9;
    margin-bottom: 12px;
}
.contact__form-note {
    font-size: 0.72rem;
    color: var(--text-soft);
    line-height: 1.8;
    margin-top: 20px;
}
.contact__form-note a {
    color: var(--blue);
    border-bottom: 1px solid var(--blue-border);
    transition: border-color 0.2s;
}
.contact__form-note a:hover { border-color: var(--blue); }

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.contact__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.form-field label {
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-soft);
}
.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 13px 15px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--blue);
}
.form-field textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.65;
}
.form-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6560' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
}
.contact__form .btn { align-self: flex-start; margin-top: 4px; }

/* ===================================
   SOLD Badge
   =================================== */
.gallery__item--sold { cursor: default; }
.gallery__item--sold img { filter: grayscale(35%); }
.gallery__sold-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20, 15, 10, 0.72);
    color: #faf7f2;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: 0.12em;
    padding: 10px 26px;
    border: 2px solid rgba(250,247,242,0.55);
    pointer-events: none;
    white-space: nowrap;
}
.gallery__item--sold .gallery__item-price {
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 400;
}

/* ===================================
   Lightbox
   =================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
    padding: 60px 24px 24px;
}
.lightbox.active { opacity: 1; pointer-events: all; }

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18,13,9,0.93);
    backdrop-filter: blur(7px);
}

.lightbox__img {
    position: relative;
    z-index: 1;
    max-width: 88vw;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}

.lightbox__info {
    position: relative;
    z-index: 1;
    color: rgba(240,235,226,0.45);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-align: center;
    font-style: italic;
}

.lightbox__close {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 2;
    background: none;
    border: none;
    color: rgba(240,235,226,0.5);
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    padding: 4px 8px;
    transition: color 0.2s;
}
.lightbox__close:hover { color: var(--cream-light); }

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {

    .portfolio__card-image { height: 340px; }
    .bio__image img { height: 440px; }
}

@media (max-width: 900px) {
    .hero {
        height: auto;
        min-height: 0;
    }
    .hero__bg {
        position: relative;
        inset: auto;
        width: 100%;
        height: 70.7vw;
        object-fit: cover;
        object-position: left center;
    }
    .hero__text {
        position: absolute;
        right: 0;
        top: 0;
        width: 57%;
        height: 70.7vw;
        padding: 5vw 4vw 4vw 3vw;
        background: transparent;
        justify-content: center;
        gap: 0;
    }
    .hero__eyebrow { font-size: 1.8vw; margin-bottom: 1.5vw; letter-spacing: 0.2em; }
    .hero__logo-img { width: auto; max-width: 90%; max-height: 52vw; object-fit: contain; margin-bottom: 0; }
    .hero__rule { display: none; }
    .hero__meta { display: none; }
    .hero__text .btn { display: none; }
    .hero + .hero__cta-mobile { display: flex; }
    .hero__cta-mobile {
        display: none;
        background: var(--cream);
        padding: 24px 28px 32px;
        gap: 16px;
        flex-direction: column;
    }
    .hero__cta-mobile .hero__meta-m {
        font-size: 0.65rem;
        font-weight: 500;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--text-mid);
        display: flex;
        align-items: center;
        gap: 14px;
    }
    .bio__inner { grid-template-columns: 1fr; gap: 44px; }
    .bio__image { order: -1; }
    .bio__image img { height: 320px; }
    .bio__image::after { display: none; }
    .portfolio__grid { grid-template-columns: 1fr 1fr; gap: 3px; }
    .portfolio__card-image { height: 280px; }
    .social-section { grid-template-columns: 1fr; }
    .social-section__left { height: 320px; }
    .social-section__right { padding: 44px 36px; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .gallery__grid { grid-template-columns: 1fr 1fr; }
    .contact__grid { grid-template-columns: 1fr; max-width: 420px; }
    .contact__form-section { grid-template-columns: 1fr; gap: 48px; }
    .gallery-cta { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
}

@media (max-width: 768px) {
    :root { --nav-h: 54px; }
    .nav__toggle { display: flex; }
    .nav__menu {
        position: fixed;
        top: var(--nav-h); left: 0; right: 0; bottom: 0;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s var(--ease);
        z-index: 99;
    }
    .nav__menu.active { opacity: 1; pointer-events: all; }
    .nav__link { font-size: 1rem; letter-spacing: 0.06em; }
    .portfolio__grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .footer__inner { grid-template-columns: 1fr; padding: 44px 28px 28px; }
    .footer__bottom { flex-direction: column; gap: 6px; text-align: center; padding: 16px 28px; }
    .contact__form-row { grid-template-columns: 1fr; }
    .portfolio__header { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
    .gallery__grid { grid-template-columns: 1fr; }
    .hero__text { padding: 32px 20px 44px; }
    .hero__logo-img { max-width: 200px; }
    .page-header { padding: 52px 0 44px; }
    .container { padding: 0 24px; }
    .bio__inner { padding: 0; }
}
