:root {
    --bg: #0a0a0a;
    --bg-alt: #111111;
    --bg-light: #f4f0e8;
    --pink: #ec1b8d;
    --pink-light: #ff4fa8;
    --text: #ffffff;
    --text-muted: #cccccc;
    --text-dark: #1a1a1a;
    --display: 'Cormorant Garamond', serif;
    --script: 'Caveat', cursive;
    --body: 'Montserrat', sans-serif;
    --max-w: 1200px;
}

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

html { scroll-behavior: smooth; }

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

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

/* ===== HEADER / NAV ===== */
.nav {
    position: fixed;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    max-width: var(--max-w);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.3s ease,
    backdrop-filter 0.3s ease,
    padding 0.3s ease;
}
/* When user has scrolled past the hero, give nav a frosted dark background */
.nav.is-scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px 40px;
    border-bottom: 1px solid rgba(236, 27, 141, 0.15);
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}
.logo-img {
    height: 42px;
    width: auto;
    display: block;
    /* slight glow boost so the neon pops on dark backgrounds */
    filter: drop-shadow(0 0 6px rgba(236, 27, 141, 0.4));
}
.logo-sub {
    font-family: var(--body);
    font-size: 10px;
    letter-spacing: 4px;
    color: #fff;
    margin-top: 4px;
}

.nav-links {
    display: flex;
    gap: 48px;
    list-style: none;
}
.nav-links a {
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 500;
    color: #fff;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 4px;
}
.nav-links a.active,
.nav-links a:hover { color: var(--pink); }
.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--pink);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border: 1.5px solid var(--pink);
    color: #fff;
    background: transparent;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
}
.btn:hover {
    background: var(--pink);
    color: #fff;
}
.btn.solid {
    background: var(--pink);
    border-color: var(--pink);
}
.btn.solid:hover {
    background: var(--pink-light);
    border-color: var(--pink-light);
}
/* btn-mobile only shows inside the mobile drawer */
.btn-mobile { display: none; }
.btn-arrow {
    width: 16px;
    height: 1.5px;
    background: currentColor;
    position: relative;
}
.btn-arrow::after {
    content: '';
    position: absolute;
    right: -1px; top: -3px;
    width: 7px; height: 7px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 560px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    overflow: hidden;
    max-width: var(--max-w);
    margin: 0 auto;
}

.hero-content {
    padding: 0 40px 20px 40px;
    z-index: 10;
    position: relative;
}

.hero h1 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(34px, 4.2vw, 56px);
    line-height: 1.05;
    color: #fff;
    letter-spacing: -0.5px;
}
.hero h1 .script {
    display: block;
    font-family: var(--script);
    color: var(--pink);
    font-size: clamp(60px, 8vw, 105px);
    font-weight: 700;
    line-height: 1;
    margin-top: 4px;
    margin-left: -4px;
    position: relative;
}
.hero h1 .script::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -22px;
    width: 92%;
    height: 28px;
    background-image: url('../images/brush-underline.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}
.hero-cta { margin-top: 32px; }

.hero-image {
    position: absolute;
    top: 0; right: 0;
    width: 58%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}
/* Each slide is a stacked layer with its own Ken Burns motion */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    will-change: transform, opacity;
    /* 4 slides * 5s each = 20s total cycle */
    animation: heroFade 20s infinite;
}
.hero-slide.s1 {
    background-image: url('../images/hero-1.jpg');
    background-position: 30% center;
    animation-delay: 0s;
}
.hero-slide.s2 {
    background-image: url('../images/hero-2.jpg');
    background-position: center center;
    animation-delay: 5s;
}
.hero-slide.s3 {
    background-image: url('../images/hero-3.jpg');
    background-position: 50% center;
    animation-delay: 10s;
}
.hero-slide.s4 {
    background-image: url('../images/hero-4.jpg');
    background-position: center center;
    animation-delay: 15s;
}
/* Ken Burns: each slide gets its own motion direction.
   Inner pseudo-element does the zoom/pan so opacity fade can run independently. */
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: inherit;
    will-change: transform;
}
.hero-slide.s1::after { animation: kbZoomIn 20s infinite; animation-delay: 0s; }
.hero-slide.s2::after { animation: kbPanLeft 20s infinite; animation-delay: 5s; }
.hero-slide.s3::after { animation: kbZoomOut 20s infinite; animation-delay: 10s; }
.hero-slide.s4::after { animation: kbPanRight 20s infinite; animation-delay: 15s; }

/* Stylish overlay - matches mockup */
.hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
            linear-gradient(90deg, rgba(10,10,10,1) 0%, rgba(10,10,10,0.55) 18%, rgba(10,10,10,0.15) 45%, rgba(10,10,10,0) 100%),
            linear-gradient(180deg, rgba(10,10,10,0.25) 0%, rgba(10,10,10,0) 30%, rgba(10,10,10,0) 70%, rgba(10,10,10,0.45) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Crossfade timing: each slide visible for 5s, with 1s fade in/out overlap.
   Active window: 25% of 20s = 5s. */
@keyframes heroFade {
    0%     { opacity: 0; }
    3%     { opacity: 1; }   /* fade in over ~0.6s */
    25%    { opacity: 1; }   /* hold visible */
    28%    { opacity: 0; }   /* fade out over ~0.6s */
    100%   { opacity: 0; }
}

/* Ken Burns motion variants - medium intensity */
@keyframes kbZoomIn {
    0%   { transform: scale(1.0) translate(0, 0); }
    28%  { transform: scale(1.12) translate(-1%, -1%); }
    100% { transform: scale(1.12) translate(-1%, -1%); }
}
@keyframes kbPanLeft {
    0%   { transform: scale(1.1) translate(2%, 0); }
    28%  { transform: scale(1.1) translate(-2%, -1%); }
    100% { transform: scale(1.1) translate(-2%, -1%); }
}
@keyframes kbZoomOut {
    0%   { transform: scale(1.15) translate(1%, 1%); }
    28%  { transform: scale(1.02) translate(0, 0); }
    100% { transform: scale(1.02) translate(0, 0); }
}
@keyframes kbPanRight {
    0%   { transform: scale(1.1) translate(-2%, 1%); }
    28%  { transform: scale(1.1) translate(2%, -1%); }
    100% { transform: scale(1.1) translate(2%, -1%); }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide::after {
        animation: none;
    }
    .hero-slide.s1 { opacity: 1; }
}

/* ===== SERVICES BAR ===== */
.services-bar {
    background: #000;
    padding: 22px 30px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    position: relative;
    z-index: 5;
    max-width: var(--max-w);
    margin: 0 auto;
}
.service-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-right: 1px solid #2a2a2a;
    padding: 6px 0;
    white-space: nowrap;
}
.service-item:last-child { border-right: none; }
.service-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.service-item:hover .service-icon {
    transform: scale(1.08) rotate(-2deg);
}

/* ===== RECENT WORK ===== */
.recent-work {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 50px 40px 45px;
    text-align: center;
}
.recent-work-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.section-title {
    font-family: var(--display);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 7px;
    color: #1a1a1a;
    margin-bottom: 8px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 18px;
    background-image: url('../images/brush-underline.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 32px;
    margin-bottom: 28px;
}
.gallery-item {
    aspect-ratio: 3/4;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease;
    background-color: #222;
}
.gallery-item:hover { transform: translateY(-4px); }

.gallery-item.g1 { background-image: url('../images/work-jacksonville-pd.jpg'); background-position: center; }
.gallery-item.g2 { background-image: url('../images/work-pet-salon.jpg'); background-position: center; }
.gallery-item.g3 { background-image: url('../images/work-piedmont-mural.jpg'); background-position: center; }
.gallery-item.g4 { background-image: url('../images/work-spiderman-face.jpg'); background-position: center; }
.gallery-item.g5 { background-image: url('../images/work-sailor-moon-helmet.jpg'); background-position: center; }
.gallery-item.g6 { background-image: url('../images/work-anchored-sign.jpg'); background-position: center; }

.view-gallery-btn {
    margin-top: 10px;
    color: var(--text-dark);
    border-color: var(--pink);
}
.view-gallery-btn:hover { color: #fff; }

/* ===== ABOUT ===== */
.about {
    background: var(--bg);
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}
.about-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 50px;
    align-items: center;
    position: relative;
}
.about-image-wrap {
    position: relative;
    width: 100%;
    max-width: 360px;
    justify-self: start;
}
/* Subtle pink glow shadow + thin pink keyline on hover */
.about-image-wrap::before,
.about-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
/* Soft outer pink glow */
.about-image-wrap::before {
    box-shadow:
            0 20px 50px -15px rgba(236, 27, 141, 0.45),
            0 8px 20px -8px rgba(0, 0, 0, 0.6);
    z-index: 0;
}
/* Subtle inner pink keyline that sharpens on hover */
.about-image-wrap::after {
    box-shadow: inset 0 0 0 1px rgba(236, 27, 141, 0.0);
    z-index: 4;
}
.about-image-wrap:hover::after {
    box-shadow: inset 0 0 0 2px rgba(236, 27, 141, 0.5);
}
.about-image {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 3/4;
    background-image: url('../images/tiffany-portrait.jpg');
    background-size: cover;
    background-position: center top;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-image-wrap:hover .about-image {
    transform: scale(1.015);
}

.about-content {
    position: relative;
    z-index: 2;
}
.about-tag {
    color: var(--pink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.about-content h2 {
    font-family: var(--display);
    font-size: 44px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 22px;
    line-height: 1;
}
.about-content h2 .script {
    font-family: var(--script);
    color: var(--pink);
    font-size: 64px;
    font-weight: 700;
    margin-left: 4px;
}
.about-content p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 4px;
}
.about-content .closer {
    font-family: var(--script);
    color: var(--pink);
    font-size: 24px;
    margin: 18px 0 24px;
    line-height: 1.2;
}

/* paint splatter background image */
.splatter-decoration {
    position: absolute;
    top: 50%;
    right: -80px;
    transform: translateY(-50%);
    width: 480px;
    height: 320px;
    background-image: url('../images/paint-splatter.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right;
    opacity: 0.9;
    z-index: 1;
    pointer-events: none;
}

/* ===== CTA BANNER ===== */
.cta-banner {
    position: relative;
    padding: 50px 40px;
    background-color: #0a0612;
    background-image:
            linear-gradient(90deg, rgba(10, 6, 18, 0.6) 0%, rgba(10, 6, 18, 0.25) 50%, rgba(10, 6, 18, 0.55) 100%),
            url('../images/cta-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.cta-banner-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.cta-banner h2 {
    font-family: var(--display);
    font-size: 36px;
    font-weight: 500;
    color: #fff;
    line-height: 1.1;
}
.cta-banner h2 .script {
    font-family: var(--script);
    color: var(--pink-light);
    font-size: 52px;
    font-weight: 700;
    display: block;
    position: relative;
}
.cta-banner h2 .script::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -16px;
    width: 88%;
    height: 22px;
    background-image: url('../images/brush-underline.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

/* ===== FOOTER ===== */
.footer {
    background: #050505;
    padding: 22px 40px;
    border-top: 1px solid #1a1a1a;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 40px;
}
.footer-left { display: flex; align-items: center; gap: 28px; }
.footer-label {
    color: var(--pink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.social-icons { display: flex; gap: 12px; }
.social-icons a {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s;
}
.social-icons a:hover { border-color: var(--pink); color: var(--pink); }

.footer-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-center .logo-img { height: 36px; }
.footer-center .logo-sub { font-size: 9px; }

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #ccc;
}
.footer-right .row { display: flex; align-items: center; gap: 10px; }
.footer-right .icon { color: var(--pink); width: 14px; }

/* mobile nav toggle button - hidden on desktop */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    padding: 6px;
    z-index: 60;
    position: relative;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    /* === NAV: solid bg, hamburger toggle, no overlap with hero === */
    .nav {
        position: fixed;
        left: 0;
        transform: none;
        padding: 14px 20px;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        flex-wrap: nowrap;
        gap: 12px;
        max-width: 100%;
        width: 100%;
    }
    /* On mobile the bg is always solid - is-scrolled doesn't need to do extra */
    .nav.is-scrolled { padding: 12px 20px; }
    .logo-img { height: 34px; }
    .logo-sub { font-size: 9px; letter-spacing: 3px; }

    .nav-toggle {
        display: block;
        position: relative;
        z-index: 70;
    }

    /* Mobile menu drawer */
    .nav-links {
        position: fixed;
        top: 0; right: 0;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: #0a0a0a;
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 80px 32px 40px;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        z-index: 55;
    }
    .nav-links.is-open { transform: translateX(0); }
    .nav-links a { font-size: 14px; letter-spacing: 3px; }

    /* "Start a project" button: hidden in nav header on mobile, included in drawer instead */
    .nav > .btn { display: none; }
    .nav-links .btn-mobile {
        display: inline-flex;
        margin-top: 16px;
    }

    /* === HERO: stack image above text, push hero below sticky nav === */
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 70px; /* clear the nav */
    }
    .hero-image {
        position: relative;
        width: 100%;
        height: 320px;
    }
    .hero-image::before {
        background:
                linear-gradient(180deg, rgba(10,10,10,0) 40%, rgba(10,10,10,0.95) 100%);
    }
    .hero-content { padding: 36px 24px 50px; order: 2; }
    .hero h1 { font-size: 36px; }
    .hero h1 .script { font-size: 68px; }
    .hero h1 .script::after {
        bottom: -16px;
        height: 22px;
    }

    /* === SERVICES BAR === */
    .services-bar {
        grid-template-columns: 1fr 1fr;
        padding: 20px 16px;
        gap: 18px 8px;
    }
    .service-item {
        border-right: none;
        font-size: 10px;
        letter-spacing: 1.8px;
        gap: 10px;
    }
    /* Last (5th) item spans both columns so it's centered, not orphaned */
    .service-item:last-child { grid-column: 1 / -1; }
    .service-icon { width: 36px; height: 36px; }

    /* === RECENT WORK === */
    .recent-work { padding: 50px 20px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }

    /* === ABOUT === */
    .about { padding: 50px 24px; }
    .about-inner { grid-template-columns: 1fr; gap: 36px; }
    .about-image-wrap { max-width: 300px; margin: 0 auto; justify-self: center; }
    .splatter-decoration { width: 320px; height: 220px; right: -100px; opacity: 0.35; }
    .about-content h2 { font-size: 34px; }
    .about-content h2 .script { font-size: 50px; }
    .about-content { text-align: center; }
    .about-tag { display: block; }

    /* === CTA BANNER === */
    .cta-banner { padding: 40px 24px; }
    .cta-banner-inner { flex-direction: column; text-align: center; gap: 16px; }
    .cta-banner h2 { font-size: 26px; }
    .cta-banner h2 .script { font-size: 40px; }
    .cta-banner h2 .script::after {
        bottom: -10px;
        height: 14px;
    }

    /* === FOOTER === */
    .footer { padding: 26px 20px; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 22px; }
    .footer-left { justify-content: center; flex-direction: column; gap: 14px; }
    .footer-right { align-items: center; }

    /* prevent body scroll when menu open */
    body.menu-open { overflow: hidden; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 32px; }
    .hero h1 .script { font-size: 58px; }
    .section-title { font-size: 20px; letter-spacing: 5px; }
    .gallery-grid { gap: 6px; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes drawIn {
    from { opacity: 0; transform: scaleX(0.4); transform-origin: left center; }
    to   { opacity: 1; transform: scaleX(1); }
}

.hero h1,
.hero-cta,
.hero-image {
    opacity: 0;
    animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-image { animation-name: fadeIn; animation-duration: 1.4s; }
.hero h1   { animation-delay: 0.1s; }
.hero-cta  { animation-delay: 0.45s; }
.hero-image { animation-delay: 0.0s; }

.hero h1 .script::after {
    transform-origin: left center;
    animation: drawIn 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.7s both;
}

/* hover lift on gallery items already exists - enhance with shadow */
.gallery-item:hover {
    box-shadow: 0 12px 32px rgba(236, 27, 141, 0.25);
}

/* scroll-reveal for sections (uses IntersectionObserver in JS) */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}
/* Failsafe: if JS doesn't run within 2s, show content anyway */
html.no-js .reveal,
html.reveal-fallback .reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ============================================
   LIGHTBOX (Recent Work)
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 8, 0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 70px;
    animation: lb-fade-in 0.25s ease;
}
@keyframes lb-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.lightbox[hidden] { display: none; }

.lb-figure {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.lb-figure img {
    max-width: 100%;
    max-height: calc(100vh - 160px);
    object-fit: contain;
    box-shadow:
            0 0 0 2px var(--pink),
            0 0 30px rgba(236, 27, 141, 0.5),
            0 20px 50px rgba(0, 0, 0, 0.6);
    border-radius: 2px;
}
.lb-figure figcaption {
    color: #fff;
    font-family: var(--body, inherit);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
}

.lb-close,
.lb-prev,
.lb-next {
    position: absolute;
    background: rgba(10, 10, 10, 0.6);
    border: 1.5px solid rgba(236, 27, 141, 0.5);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1001;
}
.lb-close {
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lb-prev,
.lb-next {
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lb-prev { left: 24px; }
.lb-next { right: 24px; }

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
    background: var(--pink);
    border-color: var(--pink);
    box-shadow: 0 0 18px rgba(236, 27, 141, 0.6);
}

/* When lightbox opens, lock scroll without causing the page to shift.
   scrollbar-gutter reserves space for the scrollbar even when overflow is hidden,
   preventing the layout from jumping by the scrollbar's width. */
html {
    scrollbar-gutter: stable;
}
body.lb-open { overflow: hidden; }

/* Make gallery tiles keyboard-focusable visually */
.gallery-item:focus-visible {
    outline: 2px solid var(--pink);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .lightbox {
        padding: 60px 16px;
    }
    .lb-figure img {
        max-height: calc(100vh - 140px);
    }
    .lb-prev, .lb-next {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
    .lb-close {
        top: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
}

/* Service items as links - inherit appearance, no underline */
a.service-item {
    text-decoration: none;
    color: inherit;
}
a.service-item:hover {
    cursor: pointer;
}

/* ============================================
   NAV SCROLL BEHAVIOR OVERRIDE
   - Desktop: nav scrolls with page (absolute, not fixed)
   - Mobile: nav stays fixed but hides on scroll down, shows on scroll up
   ============================================ */
/* ============================================
   NAV SCROLL BEHAVIOR
   - Desktop: nav scrolls with page (absolute positioning)
   - Mobile: nav stays fixed; hides on scroll down, returns on scroll up
   ============================================ */
@media (min-width: 901px) {
    .nav {
        position: absolute !important;
    }
}

@media (max-width: 900px) {
    /* When the .is-hidden class is added (scroll down), slide nav up off-screen.
       Mobile nav is at left:0 with transform:none, so we just translateY. */
    .nav.is-hidden {
        transform: translateY(-100%);
    }
}
