/*
 * The Pursuit of Tone — dedicated artist-session series template
 * (/thepursuitoftone + /thepursuitoftone/{artist}). Page-namespaced BEM
 * (.pot-*), fully self-contained: it does NOT depend on the shared band-content
 * (.bandc-*) styles. Brand accent via var(--brand-*) with a pink fallback.
 * Cinematic dark theme, mobile-first + responsive. Two parallax backgrounds
 * (hero + quote) with a static cover fallback for no-JS / reduced-motion.
 */

:root {
    --pot-bg: #0c0c0e;
    --pot-panel: #16161a;
    --pot-text: #f4f4f5;
    --pot-muted: #b9b9c0;
    --pot-line: rgba(255, 255, 255, 0.12);
    --pot-accent: var(--brand-primary, #ff10a4);
}

/* Defensive utility (also provided globally). */
.pot-page .visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pursuit-of-tone-body {
    background-color: var(--pot-bg);
}

.pot-page {
    background-color: var(--pot-bg);
    color: var(--pot-text);
    overflow-x: hidden;
}

.pot-page a {
    color: var(--pot-accent);
}

.pot-page :focus-visible {
    outline: 3px solid var(--pot-accent);
    outline-offset: 3px;
}

.pot-page .container {
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 1.25rem;
}

/* -- Parallax shell (hero + quote share the layer mechanics) ------------- */

.pot-hero,
.pot-quote {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.pot-hero__bg,
.pot-quote__bg {
    position: absolute;
    /* Overscan so the translate never reveals an edge. */
    top: -15%;
    left: 0;
    width: 100%;
    height: 130%;
    background-color: #000;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.pot-hero__bg.is-parallax,
.pot-quote__bg.is-parallax {
    will-change: transform;
}

/* No-JS / reduced-motion: the layer sits static and simply covers. */
.pot-hero__bg.is-static,
.pot-quote__bg.is-static {
    top: 0;
    height: 100%;
    transform: none !important;
}

.pot-hero__scrim,
.pot-quote__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.7));
}

/* -- Hero ----------------------------------------------------------------
 * Fills the viewport MINUS the sticky site-header height, so every device
 * lands on a full-screen artist image. `--pot-header-h` tracks the header's
 * measured height across breakpoints (resources/css/header.css: 60px logo +
 * 1rem padding + 1px border on desktop, shrinking on narrower viewports); svh
 * keeps mobile chrome from clipping the image (vh fallback first).
 */

.pot-hero {
    --pot-header-h: 77px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - var(--pot-header-h));
    min-height: calc(100svh - var(--pot-header-h));
    padding: 0 0 3rem;
}

/* Medium desktop: header logo scales to 40px (see header.css @992–1199). */
@media (min-width: 992px) and (max-width: 1199px) {
    .pot-hero { --pot-header-h: 57px; }
}

/* Mobile (<992): header logo 50px. */
@media (max-width: 991.98px) {
    .pot-hero { --pot-header-h: 67px; }
}

.pot-hero__inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Full-bleed POT wordmark overlaying the top of the header photo. */
.pot-hero__logo {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0 auto;
}

.pot-hero__eyebrow {
    margin: 2.5rem 0 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--pot-accent);
}

.pot-hero__name {
    margin: -30px 1.25rem 0;
    font-size: clamp(0.875rem, 2vw, 1.5rem);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

/* -- Description (name + bio + album cover, two-column) ------------------- */

.pot-desc {
    padding: 3.5rem 0;
}

.pot-desc__inner {
    display: grid;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 768px) {
    .pot-desc__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
        gap: 3rem;
    }
}

.pot-desc__heading {
    margin: 0 0 1.25rem;
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    line-height: 1.1;
}

.pot-desc__copy {
    font-size: 1.075rem;
    line-height: 1.75;
    color: var(--pot-muted);
}

.pot-desc__copy p {
    margin: 0 0 1.1rem;
}

.pot-desc__copy a {
    text-decoration: underline;
}

.pot-desc__media {
    order: -1;
}

@media (min-width: 768px) {
    .pot-desc__media {
        order: 0;
    }
}

.pot-desc__album {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* -- Photos (Swiper + Zoom) ---------------------------------------------- */

.pot-photos {
    padding: 2rem 0 3rem;
}

.pot-photos__heading,
.pot-videos__heading {
    margin: 0 0 1.25rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
}

.pot-photos__carousel {
    position: relative;
}

.pot-photos__swiper {
    border-radius: 6px;
    background: #000;
}

/* Pre-enhancement fallback: a horizontally scrollable flex track. */
.pot-photos__carousel:not(.is-enhanced) .swiper-wrapper {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.pot-photos__carousel:not(.is-enhanced) .pot-photos__slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
}

.pot-photos__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 2;
}

.pot-photos__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pot-photos__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.pot-photos__nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* The ‹ › glyphs sit low in their em box — nudge up to optically center. */
.pot-photos__nav span {
    display: block;
    transform: translateY(-2px);
}

.pot-photos__nav--prev { left: 0.5rem; }
.pot-photos__nav--next { right: 0.5rem; }

/* No-JS: the nav buttons do nothing, so hide them. */
.pot-photos__carousel:not(.is-enhanced) .pot-photos__nav {
    display: none;
}

.pot-photos__hint {
    margin: 0.75rem 0 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--pot-muted);
}

/* -- Videos (YouTube facade grid) ---------------------------------------- */

.pot-videos {
    padding: 2rem 0 3rem;
}

.pot-videos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pot-videos__item {
    margin: 0;
}

.pot-video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
}

.pot-video__facade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    background-color: #000;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35)),
        var(--pot-video-poster, none);
    background-size: cover;
    background-position: center;
}

.pot-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    transition: background 0.2s ease;
}

.pot-video__play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 0.8rem 0 0.8rem 1.3rem;
    border-color: transparent transparent transparent #fff;
}

.pot-video__facade:hover .pot-video__play,
.pot-video__facade:focus-visible .pot-video__play {
    background: var(--pot-accent);
}

.pot-video__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.pot-video__fallback {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.5rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
}

.pot-videos__title {
    margin: 0.6rem 0 0;
    font-size: 0.95rem;
    color: var(--pot-muted);
}

/* -- Quote (parallax) + evergreen strings pitch -------------------------- */

.pot-quote {
    padding: 5rem 0;
    text-align: center;
}

.pot-quote__inner {
    position: relative;
    max-width: 52rem;
}

.pot-quote__block {
    margin: 0 auto 3rem;
}

.pot-quote__text {
    margin: 0 0 1rem;
    font-size: clamp(1.4rem, 3.4vw, 2.25rem);
    font-style: italic;
    line-height: 1.35;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.pot-quote__cite {
    font-size: 1rem;
    font-style: normal;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pot-accent);
}

.pot-pitch {
    max-width: 46rem;
    margin-inline: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--pot-line);
}

.pot-pitch__heading {
    margin: 0 0 1rem;
    font-size: clamp(1.3rem, 2.6vw, 1.9rem);
}

.pot-pitch__body {
    margin: 0 0 1.5rem;
    color: var(--pot-muted);
    line-height: 1.7;
}

.pot-pitch__cta {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    /* White on the raw accent (#ff10a4) is 3.58:1 (WAVE on "Learn More",
       2026-09-21). The brand's AA fill pair: white on #c00c7f is 5.83:1. */
    color: var(--brand-on-primary, #fff) !important;
    background: var(--brand-primary-fill, var(--pot-accent));
    border-radius: 999px;
    text-decoration: none;
}

.pot-pitch__cta:hover {
    filter: brightness(1.1);
}

/* -- Studio / live ------------------------------------------------------- */

.pot-live {
    padding: 3rem 0;
    background: var(--pot-panel);
}

.pot-live__inner {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .pot-live__inner {
        grid-template-columns: 1fr 1fr;
    }
}

.pot-live__media img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.pot-live__heading {
    margin: 0 0 1rem;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.pot-live__copy {
    color: var(--pot-muted);
    line-height: 1.7;
}

.pot-live__copy p {
    margin: 0 0 1rem;
}

/* -- All-artists roster (bottom nav) ------------------------------------- */

.pot-roster {
    padding: 3.5rem 0 4.5rem;
}

.pot-roster__heading {
    margin: 0 0 1.75rem;
    font-size: clamp(1.4rem, 3vw, 2rem);
    text-align: center;
}

.pot-roster__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pot-roster__link {
    display: block;
    text-decoration: none;
    color: var(--pot-text);
}

.pot-roster__media {
    display: block;
    aspect-ratio: 1 / 1;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
}

.pot-roster__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pot-roster__link:hover .pot-roster__img {
    transform: scale(1.05);
}

.pot-roster__name {
    display: block;
    margin-top: 0.6rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
}

.pot-roster__item.is-current .pot-roster__media {
    outline: 2px solid var(--pot-accent);
    outline-offset: 2px;
}

/* -- Reduced motion: kill parallax + gallery transitions ----------------- */

@media (prefers-reduced-motion: reduce) {
    .pot-hero__bg,
    .pot-quote__bg {
        top: 0;
        height: 100%;
        transform: none !important;
    }

    .pot-roster__img {
        transition: none;
    }

    .pot-video__play {
        transition: none;
    }
}
