/**
 * Canonical artist roster component.
 * Loaded after theme/Elementor styles on every public surface that can render it.
 */

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

.atg-artists::before {
    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;
    content: "";
    opacity: 0.2;
    pointer-events: none;
}

.atg-artists__glow {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: -2;
    width: min(1200px, 92vw);
    height: 620px;
    background: radial-gradient(circle at 24% 44%, rgba(138, 43, 226, 0.1), transparent 36%),
        radial-gradient(circle at 78% 38%, rgba(0, 229, 255, 0.07), transparent 34%),
        radial-gradient(circle at 55% 75%, rgba(255, 45, 149, 0.05), transparent 32%);
    filter: blur(18px);
    transform: translateX(-50%);
    pointer-events: none;
}

.atg-artists__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 40px;
}

.atg-artists__header {
    max-width: 900px;
    margin: 0 auto 62px;
    text-align: center;
}

.atg-artists__eyebrow,
.atg-artist__role,
.atg-artist__booking-label {
    color: var(--atg-gold);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.atg-artists__eyebrow {
    margin: 0 0 14px;
    font-size: 12px;
    letter-spacing: 0.22em;
}

.atg-artists__header h2 {
    margin: 0 0 24px;
    color: var(--atg-cream);
    font-size: clamp(48px, 5.6vw, 78px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.042em;
}

.atg-artists__header > p:last-child {
    max-width: 780px;
    margin: 0 auto;
    color: var(--atg-muted);
    font-size: 17px;
    line-height: 1.75;
}

.atg-artists__neon-word {
    display: inline-block;
    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%;
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: atgArtistsNeonFlow 7s linear infinite;
}

.atg-artist {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 680px;
    margin: 0 calc(50% - 50vw);
    padding: 64px max(40px, calc((100vw - 1450px) / 2 + 40px));
    border-top: 1px solid rgba(180, 138, 67, 0.22);
    background: #050505;
}

.atg-artist:last-child {
    border-bottom: 1px solid rgba(180, 138, 67, 0.22);
}

.atg-artist__work-bg {
    position: absolute;
    inset: 0;
    z-index: -4;
    display: grid;
    grid-template: repeat(2, 1fr) / 1.25fr 0.8fr 0.95fr;
    gap: 7px;
    background: #050505;
}

.atg-artist__work {
    position: relative;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
    margin: 0;
}

.atg-artist__work img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    filter: brightness(0.88) saturate(1.08) contrast(1.04);
    transform: scale(1.025);
    transition: transform 1.1s ease, filter 0.45s ease;
}

.atg-artist__work--1 { grid-area: 1 / 1 / 3 / 2; }
.atg-artist__work--2 { grid-area: 1 / 2; }
.atg-artist__work--3 { grid-area: 1 / 3; }
.atg-artist__work--4 { grid-area: 2 / 2; }
.atg-artist__work--5 { grid-area: 2 / 3; }

.atg-artist__work--6 {
    position: absolute;
    right: 3.5%;
    bottom: 5%;
    z-index: 2;
    width: 18%;
    height: 29%;
    border: 1px solid rgba(244, 239, 230, 0.24);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
    transform: rotate(1.5deg);
}

.atg-artist__work-shade {
    position: absolute;
    inset: 0;
    z-index: -3;
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.5), rgba(5, 5, 5, 0.28) 37%, rgba(5, 5, 5, 0.76) 62%, rgba(5, 5, 5, 0.94)),
        linear-gradient(180deg, rgba(5, 5, 5, 0.72), rgba(5, 5, 5, 0.18) 26%, rgba(5, 5, 5, 0.24) 72%, rgba(5, 5, 5, 0.8));
    pointer-events: none;
}

.atg-artist--reverse .atg-artist__work-shade {
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.94), rgba(5, 5, 5, 0.76) 38%, rgba(5, 5, 5, 0.28) 63%, rgba(5, 5, 5, 0.5)),
        linear-gradient(180deg, rgba(5, 5, 5, 0.72), rgba(5, 5, 5, 0.18) 26%, rgba(5, 5, 5, 0.24) 72%, rgba(5, 5, 5, 0.8));
}

.atg-artist__foreground {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(46px, 7vw, 105px);
    width: 100%;
    max-width: 1370px;
    margin: 0 auto;
}

.atg-artist--reverse .atg-artist__foreground {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.atg-artist--reverse .atg-artist__image { order: 2; }
.atg-artist--reverse .atg-artist__content { order: 1; }

/* Absolute sizing prevents Elementor's generic `img { height: auto; }` rule from winning. */
.atg-site .atg-artists .atg-artist__image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 550px;
    border: 1px solid rgba(180, 138, 67, 0.58);
    background: #0c0c0c;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.54), 0 0 26px rgba(138, 43, 226, 0.06);
}

.atg-site .atg-artists .atg-artist__image::before {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.01) 45%, rgba(0, 0, 0, 0.44));
    content: "";
    pointer-events: none;
}

.atg-site .atg-artists .atg-artist__image > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 25%;
    filter: brightness(0.96) saturate(1.04) contrast(1.02);
    transform: scale(1.015);
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.45s ease;
}

.atg-site .atg-artists .atg-artist:hover .atg-artist__image > img {
    filter: brightness(1) saturate(1.08) contrast(1.025);
    transform: scale(1.05);
}

.atg-site .atg-artists .atg-artist--flash .atg-artist__image > img { object-position: center 22%; }
.atg-site .atg-artists .atg-artist--cody .atg-artist__image > img { object-position: center 27%; }
.atg-site .atg-artists .atg-artist--don .atg-artist__image > img { object-position: center 28%; }
.atg-site .atg-artists .atg-artist--devon .atg-artist__image > img { object-position: center 27%; }
.atg-site .atg-artists .atg-artist--caroline .atg-artist__image > img { object-position: center 27%; }
.atg-site .atg-artists .atg-artist--nick .atg-artist__image > img { object-position: center 28%; }
.atg-site .atg-artists .atg-artist--emma .atg-artist__image > img { object-position: center 24%; }

.atg-artist__content {
    width: 100%;
    max-width: 620px;
    padding: 38px;
    border: 1px solid rgba(180, 138, 67, 0.4);
    background: linear-gradient(145deg, rgba(7, 7, 7, 0.87), rgba(7, 7, 7, 0.72));
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
}

.atg-artist__role,
.atg-artist__booking-label { margin: 0 0 12px; font-size: 11px; }

.atg-artist__content h3 {
    margin: 0 0 22px;
    color: var(--atg-cream);
    font-size: clamp(52px, 5vw, 82px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.045em;
}

.atg-artist__content > p:not(.atg-artist__role) {
    max-width: 590px;
    margin: 0 0 28px;
    color: var(--atg-muted);
    font-size: 16px;
    line-height: 1.75;
}

.atg-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 26px; }

.atg-tags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 9px 13px;
    border: 1px solid rgba(180, 138, 67, 0.46);
    color: var(--atg-cream);
    background: rgba(255, 255, 255, 0.025);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.atg-artist__booking {
    margin-top: 4px;
    padding-top: 24px;
    border-top: 1px solid rgba(180, 138, 67, 0.22);
}

.atg-artist__booking-label { margin-bottom: 16px; }
.atg-artist__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

@media (max-width: 1050px) {
    .atg-artists { padding: 84px 0 92px; }
    .atg-artists__container { padding: 0 28px; }
    .atg-artists__header { margin-bottom: 48px; }
    .atg-artist { min-height: 0; padding: 52px 28px; }
    .atg-artist__foreground,
    .atg-artist--reverse .atg-artist__foreground { grid-template-columns: 1fr; gap: 26px; }
    .atg-artist--reverse .atg-artist__image,
    .atg-artist--reverse .atg-artist__content { order: initial; }
    .atg-site .atg-artists .atg-artist__image { height: 540px; }
    .atg-artist__content { max-width: 760px; }
}

@media (max-width: 650px) {
    .atg-artists { padding: 66px 0 74px; }
    .atg-artists__container { padding: 0 18px; }
    .atg-artists__header { margin-bottom: 34px; text-align: left; }
    .atg-artists__header h2 { font-size: 44px; }
    .atg-artists__header > p:last-child { font-size: 15px; line-height: 1.65; }
    .atg-artist { padding: 34px 18px; }
    .atg-artist__foreground,
    .atg-artist--reverse .atg-artist__foreground { display: flex; flex-direction: column; gap: 0; }
    .atg-artist__content { display: contents; }
    .atg-artist__role { display: none; }
    .atg-artist__content h3 {
        order: 1;
        width: 100%;
        margin: 0;
        padding: 25px 22px 22px;
        border: 1px solid rgba(180, 138, 67, 0.46);
        border-bottom: 0;
        background: linear-gradient(145deg, rgba(7, 7, 7, 0.92), rgba(7, 7, 7, 0.82));
        font-size: 50px;
    }
    .atg-artist__content h3::before {
        display: block;
        margin-bottom: 13px;
        color: var(--atg-gold);
        content: "Meet the Artist";
        font-size: 11px;
        font-weight: 600;
        line-height: 1.3;
        letter-spacing: 0.2em;
        text-transform: uppercase;
    }
    .atg-site .atg-artists .atg-artist__image { order: 2; height: 420px; border-bottom: 0; }
    .atg-tags,
    .atg-artist__description,
    .atg-artist__booking {
        width: 100%;
        margin: 0 !important;
        padding: 22px;
        border-right: 1px solid rgba(180, 138, 67, 0.46);
        border-left: 1px solid rgba(180, 138, 67, 0.46);
        background: linear-gradient(145deg, rgba(7, 7, 7, 0.92), rgba(7, 7, 7, 0.82));
    }
    .atg-tags { order: 3; padding-bottom: 12px; }
    .atg-artist__description { order: 4; max-width: none !important; padding-top: 12px; padding-bottom: 24px; }
    .atg-artist__booking { order: 5; border: 1px solid rgba(180, 138, 67, 0.46); border-top-color: rgba(180, 138, 67, 0.22); }
    .atg-artist__buttons { display: grid; grid-template-columns: 1fr; width: 100%; }
    .atg-artist__buttons .atg-gallery__button { width: 100%; }
}

@media (max-width: 390px) {
    .atg-artist__content h3 { padding-right: 18px; padding-left: 18px; font-size: 44px; }
    .atg-site .atg-artists .atg-artist__image { height: 375px; }
    .atg-tags,
    .atg-artist__description,
    .atg-artist__booking { padding-right: 18px; padding-left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .atg-artists__neon-word,
    .atg-artist__work img,
    .atg-site .atg-artists .atg-artist__image > img { transition: none; animation: none; }
    .atg-site .atg-artists .atg-artist:hover .atg-artist__image > img,
    .atg-artist:hover .atg-artist__work img { transform: none; }
}

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