@font-face {
    font-family: "PBJ Montserrat";
    src: url("../fonts/montserrat-medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #000;
    --surface: #111;
    --surface-2: #181818;
    --text: #f2f2f2;
    --muted: #b8b8b8;
    --line: rgba(255, 255, 255, 0.14);
    --line-strong: rgba(255, 255, 255, 0.24);
    --accent: #d40b1c;
    --header-height: 88px;
    --container: 1240px;
    --radius: 14px;
    --shadow: 0 20px 55px rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
    position: relative;
    isolation: isolate;
    margin: 0;
    min-width: 320px;
    background: transparent;
    color: var(--text);
    font-family: "PBJ Montserrat", Montserrat, Arial, sans-serif;
    font-weight: 500;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Original PBJ stage photo as a fixed page background.
   A separate crop is used on phones so the band remains visible. */
body::before {
    content: "";
    position: fixed;
    z-index: -2;
    inset: 0;
    background-color: #000;
    background-image: url("../images/backgrounds/stage-desktop.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* Very light veil for reliable text contrast without hiding the photo. */
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.20));
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.container {
    width: min(calc(100% - 3rem), var(--container));
    margin-inline: auto;
}

.narrow {
    max-width: 900px;
}

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 1rem;
    left: 1rem;
    padding: 0.7rem 1rem;
    transform: translateY(-200%);
    background: #fff;
    color: #000;
    border-radius: 6px;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Header
   Design/layout remains from Phase 1.3.
   Only the surface/fade uses the softer Phase 1.4 treatment. */
.site-header {
    position: fixed;
    z-index: 1000;
    inset: 0 0 auto;
    height: var(--header-height);
    background: rgba(3, 3, 3, 0.88);
    border-bottom: 0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Soft, strictly monotonic transition into the fixed navigation.
   Directly below the header the overlay matches the dark header.
   Toward the page it fades continuously to 0%, with no intermediate
   reversal in opacity. */
.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 150px;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(3, 3, 3, 0.88) 0%,
        rgba(3, 3, 3, 0.68) 18%,
        rgba(3, 3, 3, 0.42) 38%,
        rgba(3, 3, 3, 0.20) 60%,
        rgba(3, 3, 3, 0.06) 80%,
        rgba(3, 3, 3, 0.00) 100%
    );
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}

.brand {
    flex: 0 1 340px;
    min-width: 220px;
}

.brand img {
    width: min(100%, 340px);
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: clamp(1.1rem, 2.4vw, 2.6rem);
}

.main-navigation a {
    position: relative;
    padding: 0.65rem 0;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.86rem;
    color: #ddd;
    transition: color 160ms ease;
}

.main-navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0.25rem;
    height: 2px;
    background: var(--accent);
    transition: right 180ms ease;
}

.main-navigation a:hover,
.main-navigation a[aria-current="page"] {
    color: #fff;
}

.main-navigation a:hover::after,
.main-navigation a[aria-current="page"]::after {
    right: 0;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255,255,255,0.04);
    color: #fff;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
    min-height: min(820px, 100svh);
    padding: calc(var(--header-height) + clamp(3rem, 8vw, 7rem)) 0 clamp(4rem, 8vw, 7rem);
    display: grid;
    align-items: center;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    align-items: center;
    gap: clamp(2rem, 7vw, 7rem);
}

.eyebrow,
.section-kicker {
    margin: 0 0 0.9rem;
    color: #d3d3d3;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
}

.hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(3rem, 7.2vw, 6.9rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.hero-lead {
    max-width: 760px;
    margin: 2rem 0 0;
    color: #d1d1d1;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2.5rem;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.82rem;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.button-primary {
    background: #f0f0f0;
    color: #050505;
}

.button-primary:hover {
    background: #fff;
}

.button-secondary {
    border-color: var(--line-strong);
    background: rgba(255,255,255,0.035);
}

.button-secondary:hover {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.07);
}

.hero-art {
    position: relative;
    justify-self: center;
}

.hero-art::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 14% -15% 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 11, 28, 0.24), transparent 67%);
    filter: blur(18px);
}

.hero-art img {
    width: min(31vw, 380px);
    filter: drop-shadow(0 28px 32px rgba(0,0,0,0.5));
}

/* Content */
.section {
    padding: clamp(4.5rem, 9vw, 8.5rem) 0;
}

.section-surface {
    border-block: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(13,13,13,0.88), rgba(17,17,17,0.90) 55%, rgba(13,13,13,0.88));
}

.section h2 {
    margin: 0 0 1.5rem;
    font-size: clamp(2rem, 4.5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.intro p:not(.section-kicker),
.follow p {
    color: var(--muted);
    font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.intro p + p {
    margin-top: 1.2rem;
}

.section-heading {
    margin-bottom: 2.5rem;
}

.band-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
    box-shadow: var(--shadow);
}

.band-grid span {
    min-height: 118px;
    display: grid;
    place-items: center;
    padding: 1.4rem;
    background: rgba(16, 16, 16, 0.90);
    color: #eee;
    text-align: center;
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    transition: background-color 180ms ease, color 180ms ease;
}

.band-grid span:hover {
    background: #161616;
    color: #fff;
}

.follow-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 8rem);
}

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

.social-links a {
    display: flex;
    min-height: 92px;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(13, 13, 13, 0.90);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    background: #131313;
}

.social-links img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.social-links span {
    font-size: 0.95rem;
}

/* Footer */
.site-footer {
    padding: 3.5rem 0 1.5rem;
    border-top: 1px solid var(--line);
    background: rgba(7, 7, 7, 0.94);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(250px, 1.3fr) auto minmax(250px, 1fr);
    gap: 3rem;
    align-items: start;
}

.footer-brand img {
    width: 230px;
}

.footer-brand p {
    max-width: 390px;
    margin: 1rem 0 0;
    color: #8f8f8f;
    font-size: 0.9rem;
}

.footer-links,
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-links a,
.footer-social a {
    color: #bdbdbd;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover,
.footer-social a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #777;
}

/* Tablet + mobile */
@media (max-width: 859px) {
    body::before {
        inset: auto;
        top: -50px;
        left: 0;
        width: 100%;
        height: calc(100vh + 100px); /* Fallback */
        height: calc(100svh + 100px); /* stable mobile viewport */
        background-image: url("../images/backgrounds/stage-mobile.jpg");
        background-position: center top;
        background-size: cover;
        background-repeat: no-repeat;
    }

    body::after {
        background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.24));
    }

    :root {
        --header-height: 76px;
    }

    .container {
        width: min(calc(100% - 2rem), var(--container));
    }

    .brand {
        flex-basis: 240px;
        min-width: 0;
        max-width: calc(100% - 72px);
    }

    .brand img {
        width: min(100%, 240px);
    }

    .menu-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .main-navigation {
        position: fixed;
        top: var(--header-height);
        right: 0;
        left: 0;
        display: grid;
        gap: 0;
        padding: 0.8rem 1rem 1.2rem;
        background: rgba(0, 0, 0, 0.95);
        border-bottom: 1px solid var(--line);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        transform: translateY(-120%);
        visibility: hidden;
        opacity: 0;
        transition: transform 200ms ease, opacity 180ms ease, visibility 200ms;
    }

    .main-navigation.is-open {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }

    .main-navigation a {
        padding: 0.95rem 0.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        font-size: 0.92rem;
    }

    .main-navigation a::after {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 4.5rem);
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-copy {
        position: relative;
        z-index: 1;
    }

    .hero h1 {
        font-size: clamp(3.2rem, 13vw, 6rem);
    }

    .hero-art {
        width: min(68vw, 330px);
        margin-inline: auto;
    }

    .hero-art img {
        width: 100%;
    }

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

    .follow-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .band-grid {
        grid-template-columns: 1fr;
    }

    .band-grid span {
        min-height: 82px;
    }

    .social-links {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* ==========================================================
   INNER PAGES
   These styles extend the approved Phase 1.5 design.
   ========================================================== */

.page-hero {
    min-height: 500px;
    display: grid;
    align-items: end;
    padding: calc(var(--header-height) + 8rem) 0 5rem;
}

.page-hero-inner {
    max-width: 980px;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(3.2rem, 7vw, 6.8rem);
    line-height: 0.97;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.page-lead {
    max-width: 760px;
    margin: 1.5rem 0 0;
    color: #d0d0d0;
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.centered {
    margin-inline: auto;
    text-align: center;
}

.centered .page-lead {
    margin-inline: auto;
}

.content-stack {
    display: grid;
    gap: 2rem;
}

.compact-heading {
    margin-bottom: .5rem;
}

.content-note {
    margin: 0;
    color: var(--muted);
}

/* Gigs + News */
.gig-list,
.news-list {
    display: grid;
    gap: 1rem;
}

.gig-card {
    display: grid;
    grid-template-columns: minmax(150px, .55fr) minmax(220px, 1fr) auto;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem 1.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(13, 13, 13, .91);
    box-shadow: var(--shadow);
}

.gig-card time {
    color: #d7d7d7;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
}

.gig-card time span {
    display: block;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -.04em;
}

.gig-card h3,
.news-card h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.gig-card p {
    margin: .25rem 0 0;
    color: var(--muted);
}

.text-link {
    color: #eee;
    text-underline-offset: .25em;
    text-decoration-color: rgba(255,255,255,.4);
}

.text-link:hover {
    color: #fff;
    text-decoration-color: #fff;
}

.news-card {
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(13,13,13,.88);
}

.news-card p {
    max-width: 950px;
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1.04rem;
}

/* Band */
.members-list {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
}

.member-card {
    scroll-margin-top: calc(var(--header-height) + 2rem);
    display: grid;
    grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(12,12,12,.90);
    box-shadow: var(--shadow);
}

.member-reverse .member-image {
    order: 2;
}

.member-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
}

.member-copy h2 {
    margin: 0 0 1.1rem;
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    line-height: 1.06;
    letter-spacing: -.03em;
    text-transform: uppercase;
}

.member-copy p:not(.section-kicker) {
    margin: 0 0 1.2rem;
    color: var(--muted);
}

/* Videos */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.3rem;
}

.video-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(10,10,10,.92);
    box-shadow: var(--shadow);
}

.video-wrapper {
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-copy {
    padding: 1.25rem 1.4rem 1.45rem;
}

.video-copy h2 {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1.2;
}

.video-copy p {
    margin: .45rem 0 0;
    color: var(--muted);
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-panel {
    min-height: 330px;
    padding: clamp(1.7rem, 4vw, 3rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(11,11,11,.91);
    box-shadow: var(--shadow);
}

.contact-panel h2 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
}

.contact-panel p:not(.section-kicker) {
    max-width: 620px;
    color: var(--muted);
}

.contact-mail {
    display: inline-block;
    margin-top: 1.4rem;
    color: #fff;
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    text-underline-offset: .3em;
}

.contact-social-panel .button {
    margin-top: 1rem;
}

/* Follow landing page */
.follow-page-hero {
    min-height: 460px;
}

.follow-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
}

.follow-card {
    min-height: 220px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 1.2rem;
    padding: 2rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(12,12,12,.91);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.follow-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    background: rgba(20,20,20,.94);
}

.follow-card img {
    width: 82px;
    height: 82px;
    object-fit: contain;
}

.follow-card span {
    text-transform: uppercase;
    letter-spacing: .07em;
    font-size: .88rem;
}

/* Legal */
.legal-hero {
    min-height: 420px;
}

.legal-content {
    max-width: 950px;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(10,10,10,.93);
    box-shadow: var(--shadow);
}

.legal-content section + section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
}

.legal-content h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.legal-content p,
.legal-content address {
    color: var(--muted);
    font-style: normal;
}

.legal-content a {
    color: #fff;
    text-underline-offset: .2em;
}

@media (max-width: 859px) {
    .page-hero {
        min-height: 420px;
        padding: calc(var(--header-height) + 6rem) 0 4rem;
    }

    .gig-card {
        grid-template-columns: 110px 1fr;
        gap: 1rem 1.5rem;
    }

    .gig-card .text-link {
        grid-column: 2;
    }

    .member-card {
        grid-template-columns: minmax(200px, .72fr) minmax(0, 1.28fr);
        gap: 2rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .follow-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .page-hero {
        min-height: 380px;
        padding-top: calc(var(--header-height) + 5rem);
    }

    .page-hero h1 {
        font-size: clamp(2.8rem, 14vw, 4.5rem);
    }

    .gig-card {
        grid-template-columns: 1fr;
    }

    .gig-card .text-link {
        grid-column: auto;
    }

    .member-card {
        grid-template-columns: 1fr;
    }

    .member-reverse .member-image {
        order: 0;
    }

    .member-image {
        max-width: 420px;
        margin-inline: auto;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .follow-card-grid {
        grid-template-columns: 1fr;
    }

    .follow-card {
        min-height: 165px;
        grid-template-columns: 80px 1fr;
        justify-items: start;
    }
}
