/* =========================================
   AGAINST THE GRAIN — DYNAMIC ARTIST HERO
========================================= */

.atg-artist-hero {
    --atg-black: #050505;
    --atg-black-soft: #0a0a0a;
    --atg-cream: #f4efe6;
    --atg-gold: #b48a43;
    --atg-muted: #bbb4aa;

    --atg-neon-blue: #00e5ff;
    --atg-neon-purple: #8a2be2;
    --atg-neon-pink: #ff2d95;
    --atg-neon-orange: #ffb800;

    position: relative;
    isolation: isolate;
    overflow: hidden;

    width: 100%;
    min-height: 780px;

    display: flex;
    align-items: center;

    padding: 72px 0 82px;

    color: var(--atg-cream);
    background: var(--atg-black);
}

.atg-artist-hero *,
.atg-artist-hero *::before,
.atg-artist-hero *::after {
    box-sizing: border-box;
}


/* =========================================
   BACKGROUND
========================================= */

.atg-artist-hero__background {
    position: absolute;
    inset: -4%;
    z-index: -4;

    background-position: center 36%;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #0a0a0a;

    filter:
        saturate(0.72)
        contrast(1.04)
        blur(3px);

    opacity: 0.32;

    transform: scale(1.08);
}

.atg-artist-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -3;

    background:
        linear-gradient(
            90deg,
            rgba(5, 5, 5, 0.5),
            rgba(5, 5, 5, 0.74) 48%,
            rgba(5, 5, 5, 0.91)
        ),
        linear-gradient(
            180deg,
            rgba(5, 5, 5, 0.12),
            rgba(5, 5, 5, 0.64)
        );
}

.atg-artist-hero__glow {
    position: absolute;
    inset: 0;
    z-index: -2;

    background:
        radial-gradient(
            circle at 18% 45%,
            rgba(138, 43, 226, 0.11),
            transparent 34%
        ),
        radial-gradient(
            circle at 76% 38%,
            rgba(0, 229, 255, 0.055),
            transparent 32%
        ),
        radial-gradient(
            circle at 62% 82%,
            rgba(255, 45, 149, 0.045),
            transparent 30%
        );

    pointer-events: none;
}

.atg-artist-hero::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;

    height: 160px;

    background:
        linear-gradient(
            180deg,
            transparent,
            var(--atg-black)
        );

    pointer-events: none;
}


/* =========================================
   MAIN LAYOUT
========================================= */

.atg-artist-hero__container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1450px;

    margin: 0 auto;
    padding: 0 40px;

    display: grid;
    grid-template-columns:
        minmax(420px, 0.88fr)
        minmax(520px, 1.12fr);

    align-items: center;

    gap: clamp(44px, 6vw, 96px);
}


/* =========================================
   PORTRAIT
========================================= */

.atg-artist-hero__portrait {
    position: relative;
    overflow: hidden;

    width: 100%;
    min-height: 640px;

    background: #0a0a0a;

    border: 1px solid rgba(180, 138, 67, 0.52);

    box-shadow:
        0 32px 78px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(138, 43, 226, 0.05);
}

.atg-artist-hero__portrait::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 60%,
            rgba(5, 5, 5, 0.12)
        );

    pointer-events: none;
}

.atg-artist-hero__portrait img {
    display: block;

    width: 100%;
    height: 100%;
    min-height: 640px;

    object-fit: cover;
    object-position: center 35%;

    filter:
        brightness(0.96)
        saturate(0.96)
        contrast(1.02);

    transform: scale(1.01);

    transition:
        transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
        filter 0.5s ease;
}

.atg-artist-hero__portrait:hover img {
    filter:
        brightness(1)
        saturate(1.03)
        contrast(1.02);

    transform: scale(1.045);
}


/* =========================================
   CONTENT CARD
========================================= */

.atg-artist-hero__card {
    position: relative;
    overflow: hidden;

    padding: clamp(42px, 5vw, 70px);

    background:
        linear-gradient(
            145deg,
            rgba(12, 12, 12, 0.96),
            rgba(6, 6, 6, 0.9)
        );

    border: 1px solid rgba(180, 138, 67, 0.5);

    box-shadow:
        0 30px 72px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.atg-artist-hero__card::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            125deg,
            rgba(0, 229, 255, 0.035),
            transparent 34%,
            transparent 66%,
            rgba(255, 45, 149, 0.055)
        );

    pointer-events: none;
}

.atg-artist-hero__card > * {
    position: relative;
    z-index: 2;
}


/* =========================================
   TYPOGRAPHY
========================================= */

.atg-artist-hero__eyebrow {
    margin: 0 0 16px;

    color: var(--atg-gold);

    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;

    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.atg-artist-hero h1 {
    margin: 0 0 28px;

    color: var(--atg-cream);

    font-size: clamp(70px, 7vw, 112px);
    font-weight: 700;
    line-height: 0.88;

    letter-spacing: -0.055em;
}

.atg-artist-hero__description {
    max-width: 720px;

    margin: 35px 0 0;

    color: var(--atg-muted);

    font-size: 18px;
    line-height: 1.75;
}


/* =========================================
   STYLE TAGS
========================================= */

.atg-artist-hero__styles {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}

.atg-artist-hero__styles span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 12px 17px;

    color: var(--atg-cream);
    background: rgba(255, 255, 255, 0.015);

    border: 1px solid rgba(180, 138, 67, 0.5);

    font-size: 11px;
    font-weight: 600;
    line-height: 1;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}


/* =========================================
   BOOKING AREA
========================================= */

.atg-artist-hero__booking {
    margin-top: 40px;
    padding-top: 30px;

    border-top: 1px solid rgba(180, 138, 67, 0.25);
}

.atg-artist-hero__booking > p {
    margin: 0 0 18px;

    color: var(--atg-gold);

    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;

    letter-spacing: 0.21em;
    text-transform: uppercase;
}

.atg-artist-hero__buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;
}


/* =========================================
   EXISTING NEON BUTTON SYSTEM
========================================= */

.atg-artist-hero__button {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 15px 27px;

    color: var(--atg-cream);
    background: transparent;

    border: 1px solid var(--atg-gold);

    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    letter-spacing: 0.12em;

    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.atg-artist-hero__button::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(
            90deg,
            var(--atg-neon-blue),
            var(--atg-neon-purple),
            var(--atg-neon-pink),
            var(--atg-neon-orange),
            var(--atg-neon-blue)
        );

    background-size: 300% 100%;

    opacity: 0;

    transition: opacity 0.3s ease;
}

.atg-artist-hero__button:hover,
.atg-artist-hero__button:focus-visible {
    color: #ffffff;
    border-color: transparent;

    transform: translateY(-2px);

    box-shadow:
        0 8px 24px rgba(138, 43, 226, 0.22),
        0 0 20px rgba(255, 45, 149, 0.16);
}

.atg-artist-hero__button:hover::before,
.atg-artist-hero__button:focus-visible::before {
    opacity: 1;

    animation:
        atgArtistHeroButtonGradient
        2.5s
        linear
        infinite;
}

.atg-artist-hero__button:focus-visible {
    outline: 2px solid var(--atg-neon-blue);
    outline-offset: 5px;
}

@keyframes atgArtistHeroButtonGradient {
    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 300% 50%;
    }
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1050px) {

    .atg-artist-hero {
        min-height: auto;

        padding: 60px 0 72px;
    }

    .atg-artist-hero__container {
        padding: 0 28px;

        grid-template-columns:
            minmax(320px, 0.85fr)
            minmax(390px, 1.15fr);

        gap: 34px;
    }

    .atg-artist-hero__portrait,
    .atg-artist-hero__portrait img {
        min-height: 560px;
    }

    .atg-artist-hero__card {
        padding: 42px 36px;
    }

    .atg-artist-hero h1 {
        font-size: clamp(64px, 8vw, 86px);
    }

    .atg-artist-hero__description {
        font-size: 16px;
        line-height: 1.7;
    }

}


/* =========================================
   TABLET PORTRAIT / MOBILE STACK
========================================= */

@media (max-width: 820px) {

    .atg-artist-hero {
        padding: 34px 0 64px;
    }

    .atg-artist-hero__container {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .atg-artist-hero__portrait {
        min-height: 620px;
    }

    .atg-artist-hero__portrait img {
        min-height: 620px;

        object-position: center 30%;
    }

    .atg-artist-hero__card {
        padding: 42px 34px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .atg-artist-hero {
        padding: 20px 0 52px;
    }

    .atg-artist-hero__container {
        padding: 0 18px;

        gap: 12px;
    }

    .atg-artist-hero__background {
        opacity: 0.18;
    }

    .atg-artist-hero__portrait {
        min-height: 0;

        aspect-ratio: 4 / 5;
    }

    .atg-artist-hero__portrait img {
        min-height: 0;
        height: 100%;

        object-position: center 30%;
    }

    .atg-artist-hero__card {
        padding: 32px 22px;
    }

    .atg-artist-hero h1 {
        margin-bottom: 23px;

        font-size: clamp(60px, 20vw, 82px);
    }

    .atg-artist-hero__styles {
        gap: 8px;
    }

    .atg-artist-hero__styles span {
        min-height: 40px;
        padding: 11px 13px;

        font-size: 10px;
    }

    .atg-artist-hero__description {
        margin-top: 28px;

        font-size: 15px;
        line-height: 1.65;
    }

    .atg-artist-hero__booking {
        margin-top: 30px;
        padding-top: 25px;
    }

    .atg-artist-hero__buttons {
        display: grid;
        grid-template-columns: 1fr;

        width: 100%;
    }

    .atg-artist-hero__button {
        width: 100%;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 390px) {

    .atg-artist-hero__card {
        padding: 28px 18px;
    }

    .atg-artist-hero h1 {
        font-size: 58px;
    }

}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .atg-artist-hero__portrait img,
    .atg-artist-hero__button,
    .atg-artist-hero__button::before {
        animation: none !important;
        transition: none !important;
    }

    .atg-artist-hero__portrait:hover img,
    .atg-artist-hero__button:hover,
    .atg-artist-hero__button:focus-visible {
        transform: none;
    }

}

/* =========================================
   AGAINST THE GRAIN — DYNAMIC ARTIST GALLERY
========================================= */

.atg-artist-gallery {
    --atg-black: #050505;
    --atg-black-soft: #090909;
    --atg-cream: #f4efe6;
    --atg-gold: #b48a43;
    --atg-muted: #bbb4aa;

    --atg-neon-blue: #00e5ff;
    --atg-neon-purple: #8a2be2;
    --atg-neon-pink: #ff2d95;
    --atg-neon-orange: #ffb800;

    position: relative;
    isolation: isolate;
    overflow: hidden;

    width: 100%;

    padding: 90px 0 105px;

    color: var(--atg-cream);

    background:
        linear-gradient(
            180deg,
            #050505 0%,
            #090909 50%,
            #050505 100%
        );
}

.atg-artist-gallery *,
.atg-artist-gallery *::before,
.atg-artist-gallery *::after {
    box-sizing: border-box;
}


/* =========================================
   BACKGROUND DETAIL
========================================= */

.atg-artist-gallery::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -3;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.014) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.014) 1px,
            transparent 1px
        );

    background-size: 72px 72px;
    opacity: 0.18;

    pointer-events: none;
}

.atg-artist-gallery__glow {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: -2;

    width: min(1180px, 94vw);
    height: 580px;

    transform: translateX(-50%);

    background:
        radial-gradient(
            circle at 24% 40%,
            rgba(138, 43, 226, 0.1),
            transparent 36%
        ),
        radial-gradient(
            circle at 76% 42%,
            rgba(0, 229, 255, 0.065),
            transparent 34%
        ),
        radial-gradient(
            circle at 52% 82%,
            rgba(255, 45, 149, 0.045),
            transparent 32%
        );

    filter: blur(22px);
    pointer-events: none;
}


/* =========================================
   CONTAINER
========================================= */

.atg-artist-gallery__container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1450px;

    margin: 0 auto;
    padding: 0 40px;
}


/* =========================================
   SECTION HEADER
========================================= */

.atg-artist-gallery__header {
    margin-bottom: 44px;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(320px, 0.62fr);

    align-items: end;

    gap: clamp(44px, 7vw, 100px);
}

.atg-artist-gallery__eyebrow {
    margin: 0 0 14px;

    color: var(--atg-gold);

    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;

    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.atg-artist-gallery h2 {
    margin: 0;

    color: var(--atg-cream);

    font-size: clamp(50px, 5.6vw, 80px);
    font-weight: 700;
    line-height: 0.98;

    letter-spacing: -0.045em;
}

.atg-artist-gallery__neon {
    display: inline-block;

    color: transparent;

    background:
        linear-gradient(
            90deg,
            var(--atg-neon-blue),
            var(--atg-neon-purple),
            var(--atg-neon-pink),
            var(--atg-neon-orange),
            var(--atg-neon-blue)
        );

    background-size: 300% 100%;

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    animation:
        atgArtistGalleryNeon
        7s
        linear
        infinite;
}

@keyframes atgArtistGalleryNeon {
    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 300% 50%;
    }
}

.atg-artist-gallery__intro {
    max-width: 570px;

    margin: 0;

    color: var(--atg-muted);

    font-size: 16px;
    line-height: 1.75;
}


/* =========================================
   CLEAN RESPONSIVE ARTIST GALLERY GRID
========================================= */

.atg-artist-gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
}


/* BASE IMAGE CARD */

.atg-artist-gallery__piece,
.atg-artist-gallery__piece--feature,
.atg-artist-gallery__piece--wide {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-width: 0;
    min-height: 0;

    color: var(--atg-cream);
    background: #0b0b0b;

    border: 1px solid rgba(180, 138, 67, 0.34);

    text-decoration: none;

    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.4);

    transition:
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}


/* DESKTOP LAYOUT */

.atg-artist-gallery__piece {
    grid-column: span 4;

    aspect-ratio: 4 / 5;
}

.atg-artist-gallery__piece--feature {
    grid-column: span 8;
    grid-row: span 2;

    aspect-ratio: 8 / 7;
}

.atg-artist-gallery__piece--wide {
    grid-column: span 8;

    aspect-ratio: 16 / 9;
}


/* IMAGE */

.atg-artist-gallery__piece img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    filter:
        brightness(0.94)
        saturate(1.02)
        contrast(1.03);

    transform: scale(1.002);

    transition:
        transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1),
        filter 0.5s ease;
}


/* TABLET */

@media (max-width: 1050px) {

    .atg-artist-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .atg-artist-gallery__piece,
    .atg-artist-gallery__piece--feature,
    .atg-artist-gallery__piece--wide {
        grid-column: span 1;
        grid-row: auto;

        aspect-ratio: 4 / 5;
    }

    .atg-artist-gallery__piece--feature,
    .atg-artist-gallery__piece--wide {
        grid-column: span 2;

        aspect-ratio: 16 / 9;
    }

}


/* MOBILE */

@media (max-width: 650px) {

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

    .atg-artist-gallery__piece,
    .atg-artist-gallery__piece--feature,
    .atg-artist-gallery__piece--wide {
        grid-column: auto;
        grid-row: auto;

        width: 100%;
        aspect-ratio: 4 / 5;
    }

    .atg-artist-gallery__piece:nth-child(3n) {
        aspect-ratio: 4 / 3;
    }

}
/* BOTTOM GRADIENT */

.atg-artist-gallery__piece::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            180deg,
            transparent 48%,
            rgba(5, 5, 5, 0.14) 66%,
            rgba(5, 5, 5, 0.9) 100%
        );

    pointer-events: none;
}


/* SUBTLE NEON WASH */

.atg-artist-gallery__piece::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 2;

    background:
        linear-gradient(
            125deg,
            rgba(0, 229, 255, 0.055),
            transparent 34%,
            transparent 64%,
            rgba(255, 45, 149, 0.075)
        );

    opacity: 0;

    pointer-events: none;

    transition: opacity 0.4s ease;
}


/* VIEW ARTWORK LABEL */

.atg-artist-gallery__piece-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;

    padding: 20px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    color: var(--atg-gold);

    text-transform: uppercase;

    font-size: 10px;
    font-weight: 600;
    line-height: 1;

    letter-spacing: 0.14em;

    transform: translateY(5px);

    transition:
        color 0.3s ease,
        transform 0.4s ease;
}

.atg-artist-gallery__piece-overlay > span:last-child {
    font-size: 15px;
}


/* =========================================
   HOVER
========================================= */

@media (hover: hover) and (pointer: fine) {

    .atg-artist-gallery__piece:hover {
        border-color: rgba(244, 239, 230, 0.58);

        box-shadow:
            0 22px 52px rgba(0, 0, 0, 0.46),
            0 0 14px rgba(138, 43, 226, 0.07);
    }

    .atg-artist-gallery__piece:hover img {
        filter:
            brightness(0.99)
            saturate(1.06)
            contrast(1.03);

        transform: scale(1.018);
    }

    .atg-artist-gallery__piece:hover::before {
        opacity: 0.72;
    }

    .atg-artist-gallery__piece:hover
    .atg-artist-gallery__piece-overlay {
        color: var(--atg-cream);
        transform: translateY(0);
    }

}

/* =========================================
   ACCESSIBILITY
========================================= */

.atg-artist-gallery__piece:focus-visible {
    outline: 2px solid var(--atg-neon-blue);
    outline-offset: 4px;
    border-color: rgba(244, 239, 230, 0.68);
}

.atg-artist-gallery__piece:focus-visible img {
    transform: scale(1.015);
}

.atg-artist-gallery__piece:focus-visible::before {
    opacity: 1;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1050px) {

    .atg-artist-gallery {
        padding: 78px 0 88px;
    }

    .atg-artist-gallery__container {
        padding: 0 28px;
    }

    .atg-artist-gallery__header {
        grid-template-columns: 1fr;

        gap: 22px;
    }

    .atg-artist-gallery__intro {
        max-width: 720px;
    }

    .atg-artist-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .atg-artist-gallery__piece,
    .atg-artist-gallery__piece--feature,
    .atg-artist-gallery__piece--wide {
        grid-column: span 1;
        grid-row: auto;
        aspect-ratio: 4 / 5;
    }

    .atg-artist-gallery__piece--feature,
    .atg-artist-gallery__piece--wide {
        grid-column: span 2;
        aspect-ratio: 16 / 9;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .atg-artist-gallery {
        padding: 62px 0 72px;
    }

    .atg-artist-gallery__container {
        padding: 0 18px;
    }

    .atg-artist-gallery__header {
        margin-bottom: 30px;
    }

    .atg-artist-gallery h2 {
        font-size: 44px;
    }

    .atg-artist-gallery__intro {
        font-size: 15px;
        line-height: 1.65;
    }

    .atg-artist-gallery__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;

        gap: 12px;
    }

    .atg-artist-gallery__piece,
    .atg-artist-gallery__piece--feature,
    .atg-artist-gallery__piece--wide {
        grid-column: auto;
        grid-row: auto;

        width: 100%;

        aspect-ratio: 4 / 5;
    }

    .atg-artist-gallery__piece:nth-child(3n) {
        aspect-ratio: 4 / 3;
    }

    .atg-artist-gallery__piece-overlay {
        padding: 18px;

        transform: none;
    }

}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .atg-artist-gallery__neon,
    .atg-artist-gallery__piece,
    .atg-artist-gallery__piece img,
    .atg-artist-gallery__piece::before,
    .atg-artist-gallery__piece-overlay {
        animation: none !important;
        transition: none !important;
    }

    .atg-artist-gallery__piece:hover,
    .atg-artist-gallery__piece:focus-visible,
    .atg-artist-gallery__piece:hover img,
    .atg-artist-gallery__piece:focus-visible img {
        transform: none;
    }

}


/* =========================================
   ATG STUDIO MANAGER — SIX-PIECE EDITORIAL BATCH
   Every six artwork records form one complete grid.
========================================= */

.atg-artist-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
        "one one two"
        "one one three"
        "four five six";
    grid-template-rows:
        minmax(300px, 34vw)
        minmax(300px, 34vw)
        minmax(320px, 29vw);
}

.atg-artist-gallery__grid + .atg-artist-gallery__grid {
    margin-top: 12px;
}

.atg-artist-gallery__piece,
.atg-artist-gallery__piece--feature,
.atg-artist-gallery__piece--wide {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: auto;
}

.atg-artist-gallery__piece:nth-child(1) { grid-area: one; }
.atg-artist-gallery__piece:nth-child(2) { grid-area: two; }
.atg-artist-gallery__piece:nth-child(3) { grid-area: three; }
.atg-artist-gallery__piece:nth-child(4) { grid-area: four; }
.atg-artist-gallery__piece:nth-child(5) { grid-area: five; }
.atg-artist-gallery__piece:nth-child(6) { grid-area: six; }

.atg-artist-gallery__empty {
    margin: 0;
    padding: 34px 0 8px;
    color: var(--atg-muted);
    font-size: 16px;
}

@media (max-width: 1050px) {
    .atg-artist-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "one one"
            "two three"
            "four five"
            "six six";
        grid-template-rows:
            minmax(440px, 66vw)
            minmax(320px, 48vw)
            minmax(320px, 48vw)
            minmax(360px, 52vw);
    }

    .atg-artist-gallery__piece,
    .atg-artist-gallery__piece--feature,
    .atg-artist-gallery__piece--wide {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: auto;
    }
}

@media (max-width: 650px) {
    .atg-artist-gallery__grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "one"
            "two"
            "three"
            "four"
            "five"
            "six";
        grid-template-rows: none;
        grid-auto-rows: auto;
    }

    .atg-artist-gallery__piece,
    .atg-artist-gallery__piece--feature,
    .atg-artist-gallery__piece--wide {
        width: 100%;
        min-height: 0;
        aspect-ratio: 4 / 5;
    }

    .atg-artist-gallery__piece:nth-child(1),
    .atg-artist-gallery__piece:nth-child(6) {
        aspect-ratio: 4 / 3;
    }
}



/* =========================================
   ATG STUDIO MANAGER — ARTIST CTA
========================================= */

.atg-artist-cta {
    --atg-black: #050505;
    --atg-cream: #f4efe6;
    --atg-gold: #b48a43;
    --atg-muted: #bbb4aa;
    --atg-neon-blue: #00e5ff;
    --atg-neon-purple: #8a2be2;
    --atg-neon-pink: #ff2d95;
    --atg-neon-orange: #ffb800;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    padding: 34px 0 96px;
    color: var(--atg-cream);
    background: linear-gradient(180deg, #050505 0%, #080808 100%);
}

.atg-artist-cta *,
.atg-artist-cta *::before,
.atg-artist-cta *::after {
    box-sizing: border-box;
}

.atg-artist-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1370px, calc(100% - 80px));
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(180,138,67,.62), transparent);
}

.atg-artist-cta__glow {
    position: absolute;
    left: 50%;
    top: 44%;
    z-index: -1;
    width: min(980px, 92vw);
    height: 420px;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle at 34% 50%, rgba(138,43,226,.14), transparent 42%),
        radial-gradient(circle at 68% 48%, rgba(255,45,149,.08), transparent 40%);
    filter: blur(34px);
    pointer-events: none;
}

.atg-artist-cta__container {
    position: relative;
    width: min(1370px, calc(100% - 80px));
    margin: 0 auto;
    padding: clamp(46px, 6vw, 76px);
    background: linear-gradient(145deg, rgba(13,13,13,.96), rgba(7,7,7,.92));
    border: 1px solid rgba(180,138,67,.46);
    box-shadow: 0 28px 70px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.04);
}

.atg-artist-cta__eyebrow {
    margin: 0 0 14px;
    color: var(--atg-gold);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.atg-artist-cta h2 {
    max-width: 940px;
    margin: 0 0 22px;
    color: var(--atg-cream);
    font-size: clamp(48px, 5.4vw, 78px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.045em;
}

.atg-artist-cta__neon {
    display: inline-block;
    color: transparent;
    background: linear-gradient(90deg, var(--atg-neon-blue), var(--atg-neon-purple), var(--atg-neon-pink), var(--atg-neon-orange), var(--atg-neon-blue));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: atgArtistCtaNeon 7s linear infinite;
}

@keyframes atgArtistCtaNeon {
    from { background-position: 0% 50%; }
    to { background-position: 300% 50%; }
}

.atg-artist-cta__container > p:not(.atg-artist-cta__eyebrow) {
    max-width: 720px;
    margin: 0;
    color: var(--atg-muted);
    font-size: 16px;
    line-height: 1.72;
}

.atg-artist-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.atg-artist-cta__button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 15px 27px;
    color: var(--atg-cream);
    background: transparent;
    border: 1px solid var(--atg-gold);
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .12em;
    transition: color .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.atg-artist-cta__button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, var(--atg-neon-blue), var(--atg-neon-purple), var(--atg-neon-pink), var(--atg-neon-orange), var(--atg-neon-blue));
    background-size: 300% 100%;
    opacity: 0;
    transition: opacity .3s ease;
}

.atg-artist-cta__button:hover,
.atg-artist-cta__button:focus-visible {
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(138,43,226,.22), 0 0 20px rgba(255,45,149,.16);
}

.atg-artist-cta__button:hover::before,
.atg-artist-cta__button:focus-visible::before {
    opacity: 1;
    animation: atgArtistCtaButton 2.5s linear infinite;
}

.atg-artist-cta__button--secondary::before {
    background: linear-gradient(90deg, #171717, #28221a, #171717);
}

@keyframes atgArtistCtaButton {
    from { background-position: 0% 50%; }
    to { background-position: 300% 50%; }
}

@media (max-width: 650px) {
    .atg-artist-cta {
        padding: 26px 0 64px;
    }

    .atg-artist-cta::before,
    .atg-artist-cta__container {
        width: calc(100% - 36px);
    }

    .atg-artist-cta__container {
        padding: 32px 22px;
    }

    .atg-artist-cta h2 {
        font-size: 42px;
    }

    .atg-artist-cta__buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .atg-artist-cta__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .atg-artist-cta__neon,
    .atg-artist-cta__button,
    .atg-artist-cta__button::before {
        animation: none !important;
        transition: none !important;
    }

    .atg-artist-cta__button:hover,
    .atg-artist-cta__button:focus-visible {
        transform: none;
    }
}
