/* =========================================================
   MOONBORN ALBUM PAGE
========================================================= */

.moonborn-page {
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 20% 10%,
            rgba(201, 170, 106, 0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 80% 32%,
            rgba(107, 123, 162, 0.09),
            transparent 34%
        ),
        #090a0d;
    color: #f4f2ec;
}


/* =========================================================
   ALBUM HERO
========================================================= */

.album-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 9rem 8vw 6rem;
    isolation: isolate;
}

.album-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.015) 1px,
            transparent 1px
        ),
        linear-gradient(
            rgba(255, 255, 255, 0.012) 1px,
            transparent 1px
        );
    background-size: 100px 100px;
    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.8),
            transparent
        );
}

.album-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 18rem;
    background:
        linear-gradient(
            to bottom,
            transparent,
            #090a0d
        );
    pointer-events: none;
}

.album-hero-glow {
    position: absolute;
    top: 45%;
    left: -8rem;
    z-index: -2;
    width: min(52rem, 70vw);
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translateY(-50%);
    background:
        radial-gradient(
            circle,
            rgba(201, 170, 106, 0.14),
            rgba(108, 118, 154, 0.07) 35%,
            transparent 68%
        );
    filter: blur(20px);
    animation: albumGlow 12s ease-in-out infinite alternate;
}

.album-hero-layout {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 480px minmax(0, 1fr);
    gap: 5rem;
    align-items: center;
}

.album-artwork {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.album-artwork::before {
    content: "";
    position: absolute;
    inset: 8% -5% -8%;
    z-index: -1;
    background: rgba(0, 0, 0, 0.55);
    filter: blur(36px);
    transform: scale(0.92);
}

.album-artwork img {
    display: block;
    width: 100%;
    height: auto;
    box-shadow:
        0 38px 85px rgba(0, 0, 0, 0.46),
        0 0 0 1px rgba(255, 255, 255, 0.07);
}

.album-introduction {
    width: 100%;
    min-width: 0;
    max-width: 700px;
}

.album-label,
.section-label {
    margin: 0 0 1rem;
    color: #c9aa6a;
    font-size: 0.76rem;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.album-introduction h1 {
    max-width: 100%;
    margin: 0;
    font-size: clamp(3.2rem, 5.2vw, 5.6rem);
    line-height: 0.98;
    font-weight: 400;
    letter-spacing: -0.035em;
    overflow-wrap: break-word;
}

.album-artist {
    margin: 1rem 0 2.5rem;
    color: #c8c6c0;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.album-quote {
    max-width: 590px;
    margin: 0;
    padding: 0 0 0 1.6rem;
    border-left: 1px solid rgba(201, 170, 106, 0.65);
    color: #f4f2ec;
    font-size: clamp(1.25rem, 2.3vw, 1.75rem);
    line-height: 1.6;
    font-style: italic;
}

.album-description {
    max-width: 610px;
    margin: 2rem 0 0;
    color: #b8b6af;
    font-size: 1.08rem;
    line-height: 1.9;
}

.streaming-links {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.button {
    min-height: 3.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.3rem;
    border: 1px solid transparent;
    color: inherit;
    text-decoration: none;
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition:
        transform 250ms ease,
        color 250ms ease,
        border-color 250ms ease,
        background 250ms ease,
        box-shadow 250ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    border-color: #c9aa6a;
    background: #c9aa6a;
    color: #090a0d;
}

.button-primary:hover {
    border-color: #dfc487;
    background: #dfc487;
    box-shadow:
        0 12px 32px rgba(201, 170, 106, 0.18);
}

.button-secondary {
    border-color: rgba(244, 242, 236, 0.23);
    background: rgba(255, 255, 255, 0.025);
    color: #f4f2ec;
}

.button-secondary:hover {
    border-color: rgba(201, 170, 106, 0.7);
    background: rgba(201, 170, 106, 0.05);
    color: #dfc487;
}

.button-disabled {
    cursor: default;
    opacity: 0.7;
}

.button-disabled:hover {
    transform: none;
}

.album-details {
    margin: 3rem 0 0;
    padding-top: 1.5rem;
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.album-details div {
    min-width: 0;
}

.album-details dt {
    margin-bottom: 0.45rem;
    color: #868780;
    font-size: 0.68rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.album-details dd {
    margin: 0;
    color: #dedbd3;
    font-size: 0.92rem;
}


/* =========================================================
   SHARED SECTIONS
========================================================= */

.album-section {
    width: min(1180px, calc(100% - 16vw));
    margin: 0 auto;
    padding: 7.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 3.2rem;
}

.section-heading h2,
.companion-panel h2 {
    margin: 0;
    font-size: clamp(2.5rem, 5.5vw, 5rem);
    line-height: 1.06;
    font-weight: 400;
    letter-spacing: -0.035em;
}

.section-heading > p:last-child {
    margin: 1.5rem 0 0;
    color: #b8b6af;
    font-size: 1.05rem;
    line-height: 1.85;
}


/* =========================================================
   ARTIST NOTE
========================================================= */

.artist-note-section {
    display: grid;
    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(0, 1.05fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}

.artist-note-section .section-heading {
    min-width: 0;
    max-width: 540px;
    margin: 0;
}

.artist-note-section .section-label {
    margin-left: 2.5rem;
}

.artist-note-section .section-heading h2 {
    max-width: 500px;
    margin-left: 2.5rem;
    font-size: clamp(2.5rem, 3.6vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
}

.artist-note {
    min-width: 0;
    width: 100%;
    max-width: 680px;
    padding-right: 2.5rem;
    box-sizing: border-box;
    color: #c8c6c0;
    font-size: clamp(1.08rem, 1.7vw, 1.28rem);
    line-height: 2;
}

.artist-note p {
    margin: 0 0 1.5rem;
}

.artist-note p:last-child {
    margin-bottom: 0;
}

.artist-signature {
    padding-top: 0.5rem;
    color: #c9aa6a;
    font-style: italic;
}


/* =========================================================
   TRACK LISTING HEADING
========================================================= */

.tracks-section .section-heading,
.album-section:has(.track-list) .section-heading {
    max-width: 900px;
    margin-bottom: 2.5rem;
}

.tracks-section .section-label,
.album-section:has(.track-list) .section-label {
    margin-left: 2.5rem;
}

.tracks-section .section-heading h2,
.album-section:has(.track-list) .section-heading h2 {
    max-width: 800px;
    margin-left: 2.5rem;
    font-size: clamp(2.6rem, 4vw, 4.1rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
}


/* =========================================================
   TRACKS
========================================================= */

.track-list {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.track-card {
    display: grid;
    grid-template-columns:
        4.5rem
        minmax(0, 1fr)
        minmax(145px, auto);
    gap: 1.5rem;
    align-items: center;
    padding: 1.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    transition:
        background 300ms ease,
        transform 300ms ease;
}

.track-card:hover {
    background:
        linear-gradient(
            90deg,
            rgba(201, 170, 106, 0.06),
            transparent
        );
    transform: translateX(6px);
}

.track-card-link {
    color: inherit;
    text-decoration: none;
}

.track-card-link:visited {
    color: inherit;
}

.track-card-link:focus-visible {
    outline: 2px solid #c9aa6a;
    outline-offset: -2px;
}

.track-number {
    color: #777a80;
    font-size: 0.76rem;
    letter-spacing: 0.13em;
}

.track-information h3 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.25;
    font-weight: 400;
}

.track-information p {
    max-width: 700px;
    margin: 0;
    color: #969690;
    line-height: 1.7;
}

.track-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
    color: #9d9d97;
    font-size: 0.8rem;
}

.track-link {
    color: #c9aa6a;
    font-size: 0.68rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}


/* =========================================================
   COMPANION BOOK
========================================================= */

.companion-panel {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    gap: 3rem;
    align-items: center;
    padding: clamp(2rem, 5vw, 4.5rem);
    border: 1px solid rgba(201, 170, 106, 0.19);
    background:
        radial-gradient(
            circle at 85% 30%,
            rgba(201, 170, 106, 0.1),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.012)
        );
}

.companion-panel h2 {
    max-width: 800px;
    font-size: clamp(2.3rem, 4.7vw, 4.4rem);
}

.companion-panel p:not(.section-label) {
    max-width: 720px;
    margin: 1.5rem 0 0;
    color: #b8b6af;
    font-size: 1.04rem;
    line-height: 1.85;
}


/* =========================================================
   PLACEHOLDER SECTIONS
========================================================= */

.coming-soon-panel {
    min-height: 280px;
    display: grid;
    place-items: center;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(
            circle at center,
            rgba(201, 170, 106, 0.055),
            transparent 46%
        ),
        rgba(255, 255, 255, 0.018);
    color: #777872;
    font-size: 0.76rem;
    letter-spacing: 0.17em;
    text-align: center;
    text-transform: uppercase;
}


/* =========================================================
   ANIMATION
========================================================= */

@keyframes albumGlow {
    from {
        opacity: 0.72;
        transform:
            translateY(-50%)
            scale(0.96);
    }

    to {
        opacity: 1;
        transform:
            translateY(-50%)
            scale(1.05);
    }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
    .artist-note-section {
        grid-template-columns:
            minmax(0, 0.9fr)
            minmax(0, 1.1fr);
        gap: 3.5rem;
    }

    .artist-note-section .section-heading h2 {
        font-size: clamp(2.7rem, 4.6vw, 4rem);
    }
}

@media (max-width: 950px) {
    .album-hero {
        min-height: auto;
        padding:
            8.5rem 1.5rem
            5rem;
    }

    .album-hero-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .album-artwork {
        width: min(100%, 610px);
    }

    .album-introduction {
        max-width: 760px;
    }

    .album-section {
        width: calc(100% - 3rem);
        padding: 6rem 0;
    }

    .artist-note-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .artist-note-section .section-heading h2,
    .tracks-section .section-heading h2,
    .album-section:has(.track-list) .section-heading h2 {
        max-width: calc(100% - 2.5rem);
    }
}

@media (max-width: 700px) {
    .album-introduction h1 {
        font-size: clamp(3rem, 12vw, 4.8rem);
        line-height: 1;
    }

    .gallery-section .section-label,
    .gallery-section .section-heading h2,
    .gallery-section .section-heading > p:last-child,
    .videos-section .section-label,
    .videos-section .section-heading h2,
    .videos-section .section-heading > p:last-child {
        margin-left: 1.25rem;
    }

    .gallery-section .section-heading h2,
    .videos-section .section-heading h2 {
        max-width: calc(100% - 1.25rem);
        font-size: clamp(2.25rem, 9vw, 3.1rem);
    }

    .gallery-section .section-heading > p:last-child,
    .videos-section .section-heading > p:last-child {
        max-width: calc(100% - 1.25rem);
    }

    .artist-note-section .section-label,
    .artist-note-section .section-heading h2,
    .tracks-section .section-label,
    .tracks-section .section-heading h2,
    .album-section:has(.track-list) .section-label,
    .album-section:has(.track-list) .section-heading h2 {
        margin-left: 1.25rem;
    }

    .artist-note-section .section-heading h2 {
        max-width: calc(100% - 1.25rem);
        font-size: clamp(2.2rem, 9vw, 3rem);
    }

    .artist-note {
        max-width: 100%;
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    .tracks-section .section-heading h2,
    .album-section:has(.track-list) .section-heading h2 {
        max-width: calc(100% - 1.25rem);
        font-size: clamp(2.3rem, 9vw, 3.2rem);
    }

    .track-card {
        grid-template-columns:
            3rem
            minmax(0, 1fr);
        gap: 1rem;
        padding: 1.5rem 0.35rem;
    }

    .track-meta {
        grid-column: 2;
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .companion-panel {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .companion-panel .button {
        justify-self: start;
    }
}

@media (max-width: 480px) {
    .album-hero {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .album-section {
        width: calc(100% - 2rem);
        padding: 5rem 0;
    }

    .streaming-links {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .button {
        width: 100%;
    }

    .track-card {
        grid-template-columns:
            2.4rem
            minmax(0, 1fr);
    }
}


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

@media (prefers-reduced-motion: reduce) {
    .album-hero-glow {
        animation: none;
    }

    .button,
    .track-card {
        transition: none;
    }

    .track-card:hover,
    .button:hover {
        transform: none;
    }
}

/* =========================================================
   GALLERY AND VIDEOS HEADING ALIGNMENT
========================================================= */

.gallery-section .section-label,
.videos-section .section-label {
    margin-left: 2.5rem;
}

.gallery-section .section-heading h2,
.videos-section .section-heading h2 {
    max-width: 850px;
    margin-left: 2.5rem;
    font-size: clamp(2.6rem, 4vw, 4.1rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
}

.gallery-section .section-heading > p:last-child,
.videos-section .section-heading > p:last-child {
    max-width: 850px;
    margin-left: 2.5rem;
}

/* =========================================================
   GALLERY HEADING FIX
========================================================= */

.gallery-section .section-heading {
    max-width: 900px;
}

.gallery-section .section-label {
    margin-left: 2.5rem;
}

.gallery-section .section-heading h2 {
    max-width: 760px;
    margin-left: 2.5rem;
    font-size: clamp(2.5rem, 3.7vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
}

.gallery-section .section-heading > p:last-child {
    max-width: 820px;
    margin-left: 2.5rem;
}

/* =========================================================
   HERO LAYOUT REFINEMENT
========================================================= */

.moonborn-page .album-introduction h1 {
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-size: clamp(2.8rem, 4.2vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.025em;
    white-space: normal;
    overflow: visible;
}

.moonborn-page .album-hero-layout {
    grid-template-columns:
        minmax(300px, 440px)
        minmax(0, 1fr);
    gap: clamp(3rem, 5vw, 5rem);
    max-width: 1280px;
}

.moonborn-page .album-artwork {
    width: 100%;
    max-width: 440px;
}

.moonborn-page .album-introduction {
    width: 100%;
    min-width: 0;
    max-width: 700px;
}

@media (max-width: 950px) {
    .moonborn-page .album-hero-layout {
        grid-template-columns: 1fr;
    }

    .moonborn-page .album-introduction h1 {
        font-size: clamp(2.8rem, 13vw, 4.8rem);
    }
}

/* =========================================================
   BELOVED PROTOTYPE
========================================================= */

.track-threshold {
    color: #c9aa6a !important;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-style: italic;
}

.track-expanded {
    max-width: 660px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.track-expanded p {
    margin: 0;
    color: #b8b6af;
    font-size: 1rem;
    line-height: 1.85;
}

.track-expanded .last-echo {
    margin-top: 1.4rem;
    color: #dedbd3;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.15rem;
    font-style: italic;
}

/* =========================================================
   BELOVED ACCORDION PROTOTYPE
========================================================= */

.track-card-accordion {
    display: block;
    padding: 0;
    transform: none;
}

.track-card-accordion:hover {
    transform: none;
}

.track-summary {
    width: 100%;
    display: grid;
    grid-template-columns:
        4.5rem
        minmax(0, 1fr)
        minmax(100px, auto);
    gap: 1.5rem;
    align-items: center;

    padding: 1.8rem 1rem;

    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.track-summary:hover {
    background:
        linear-gradient(
            90deg,
            rgba(201, 170, 106, 0.06),
            transparent
        );
}

.track-summary:focus-visible {
    outline: 2px solid #c9aa6a;
    outline-offset: -2px;
}

.track-summary .track-information {
    display: block;
}

.track-title {
    display: block;
    margin-bottom: 0.55rem;

    color: #f4f2ec;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.25;
}

.track-threshold {
    display: block;

    color: #c9aa6a;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-style: italic;
    line-height: 1.5;
}

.track-summary .track-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.7rem;
}

.track-chevron {
    color: var(--accent);

    font-size: 1.45rem;      /* was around 1.15rem */
    font-weight: 300;
    line-height: 1;

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

    transition:
        transform 220ms ease,
        color 220ms ease;
}

.track-card-accordion:hover .track-chevron {
    color: #dfc487;
}

.track-card-accordion.is-open .track-chevron {
    transform: rotate(180deg);
}

.track-card-accordion.is-open .track-chevron {
    transform: rotate(45deg);
}

.track-expanded {
    padding:
        0
        1rem
        2rem
        7rem;
}

.track-expanded[hidden] {
    display: none;
}

.track-expanded-inner {
    max-width: 680px;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.track-expanded p {
    margin: 1.4rem 0 0;
    color: #b8b6af;
    font-size: 1rem;
    line-height: 1.85;
}

.track-expanded .last-echo {
    color: #dedbd3;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.15rem;
    font-style: italic;
}

.preview-button {
    padding: 0;

    border: 0;
    background: transparent;
    color: #c9aa6a;

    font: inherit;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    cursor: pointer;
}

.preview-button:hover {
    color: #dfc487;
}

.track-expanded audio {
    display: none;
}

@media (max-width: 700px) {
    .track-summary {
        grid-template-columns:
            3rem
            minmax(0, 1fr);
        gap: 1rem;
        padding: 1.5rem 0.35rem;
    }

    .track-summary .track-meta {
        grid-column: 2;
        align-items: flex-start;
        flex-direction: row;
    }

    .track-expanded {
        padding:
            0
            0.35rem
            1.8rem
            4.35rem;
    }
}

.companion-panel-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.companion-panel-link:hover,
.companion-panel-link:focus-visible {
    text-decoration: none;
}

.companion-panel-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}