/* Failproof Music - shared theme */

:root {
    --fp-navy: #003C5E;
    --fp-ink: #1a1a1a;
    --fp-paper: #f2f2f0;
    --fp-muted: #5c6570;
    --fp-body: #2c3338;
}

/* Page shell - background only; fonts scoped to .fp-main so nav is unchanged */
html:has(body.fp-theme) {
    background: var(--fp-paper) !important;
}

body.fp-theme {
    background: var(--fp-paper) !important;
    color: var(--fp-ink);
}

.fp-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    color: var(--fp-ink);
}

.fp-main .fp-heading,
.fp-main .fp-card-title {
    font-family: "Cormorant Garamond", Georgia, serif;
}

/* Logo hero - no dark overlay; image is the brand */
.fp-hero {
    min-height: clamp(220px, 42vh, 420px);
    background-color: #051223;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: fpHeroIn 1s ease-out both;
}

.fp-hero img {
    max-height: clamp(220px, 42vh, 420px);
    object-fit: contain;
    display: block;
}

.fp-hero img.is-missing {
    display: none;
}

.fp-hero-ph {
    display: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    padding: 2rem;
}

.fp-hero-ph.is-visible {
    display: block;
}

/* About section */
.fp-about {
    padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.fp-about-layout {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 5vw, 3.5rem);
}

.fp-about-layout .fp-portrait {
    flex: 0 0 auto;
}

.fp-about-layout .fp-about-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.fp-band {
    height: 4px;
    background: var(--fp-navy);
    width: 48px;
    margin-bottom: 1.25rem;
}

.fp-heading {
    font-weight: 600;
    font-size: clamp(2.1rem, 4vw, 3rem);
    color: var(--fp-navy);
    margin-bottom: 0.35rem;
}

.fp-location {
    color: var(--fp-muted);
    font-weight: 300;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.fp-lead,
.fp-about p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--fp-body);
    font-weight: 300;
}

.fp-about-bio p {
    font-size: clamp(1.1rem, 1.5vw, 1.22rem);
    line-height: 1.75;
}

/* Portrait */
.fp-portrait {
    position: relative;
    aspect-ratio: 4 / 5;
    max-width: 340px;
    width: 100%;
    background: #111;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
    animation: fpRise 0.9s ease-out 0.15s both;
}

.fp-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fp-portrait-ph {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(160deg, #2a2a2a 0%, #0e0e0e 100%);
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    padding: 1.5rem;
}

.fp-portrait-ph i {
    font-size: 2.5rem;
    opacity: 0.7;
}

.fp-portrait-ph span {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.fp-portrait::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 35%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.45));
    pointer-events: none;
}

.fp-about-copy {
    animation: fpRise 0.9s ease-out 0.28s both;
}

/* Cards */
.fp-cards {
    padding: 0 0 clamp(3.5rem, 8vw, 5.5rem);
}

.fp-cards .row > [class*="col-"] {
    display: flex;
}

.fp-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    animation: fpRise 0.85s ease-out both;
}

.fp-cards .col-md-6:nth-child(1) .fp-card {
    animation-delay: 0.35s;
}

.fp-cards .col-md-6:nth-child(2) .fp-card {
    animation-delay: 0.42s;
}

.fp-cards .col-md-6:nth-child(3) .fp-card {
    animation-delay: 0.49s;
}

.fp-cards .col-md-6:nth-child(4) .fp-card {
    animation-delay: 0.56s;
}

.fp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 60, 94, 0.18) !important;
}

.fp-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 2rem 1.75rem 1.5rem;
}

.fp-card-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 60, 94, 0.08);
    color: var(--fp-navy);
    margin-bottom: 1.1rem;
}

.fp-card-title {
    font-size: 1.75rem;
    color: var(--fp-navy);
    margin-bottom: 0.65rem;
}

.fp-card-text {
    flex: 1 1 auto;
    color: var(--fp-muted);
    font-weight: 300;
    margin-bottom: 1.25rem;
}

.fp-card .fp-btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Buttons */
.fp-btn {
    border-radius: 0;
    text-transform: none;
    letter-spacing: 0.04em;
    padding: 0.65rem 1.4rem;
}

.fp-btn-primary {
    background-color: var(--fp-navy) !important;
    border-color: var(--fp-navy) !important;
    color: #fff !important;
}

.fp-btn-primary:hover,
.fp-btn-primary:focus {
    background-color: #004d78 !important;
    border-color: #004d78 !important;
    color: #fff !important;
}

.fp-btn-outline {
    color: var(--fp-navy) !important;
    border-color: var(--fp-navy) !important;
    background-color: transparent !important;
}

.fp-btn-outline:hover,
.fp-btn-outline:focus {
    color: var(--fp-navy) !important;
    background-color: rgba(0, 60, 94, 0.06) !important;
    border-color: var(--fp-navy) !important;
}

.fp-btn-block {
    display: block;
    width: 100%;
}

/* Inner page header (Contact, Compositions, etc.) */
.fp-page-header {
    padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem);
    animation: fpRise 0.85s ease-out both;
}

.fp-page-header .fp-band {
    margin-left: auto;
    margin-right: auto;
}

.fp-page-header .fp-heading {
    text-align: center;
}

.fp-page-header .fp-lead {
    text-align: center;
    max-width: 36rem;
    margin: 0.75rem auto 0;
}

.fp-page-header-left .fp-band {
    margin-left: 0;
    margin-right: 0;
}

.fp-page-header-left .fp-heading,
.fp-page-header-left .fp-lead {
    text-align: left;
}

/* Topic / feature chips (contact topics, etc.) */
.fp-topic {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: #fff;
    border: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.fp-topic:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 60, 94, 0.12);
}

.fp-topic-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--fp-navy);
    color: #fff;
}

.fp-topic-label {
    font-weight: 600;
    color: var(--fp-ink);
    margin: 0;
    font-size: 1rem;
}

/* Forms */
.fp-form-panel {
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    animation: fpRise 0.9s ease-out 0.2s both;
}

/* Student login */
.fp-login {
    display: flex;
    justify-content: center;
}

.fp-login .container {
    display: flex;
    justify-content: center;
}

.fp-login-panel {
    width: 100%;
    max-width: 400px;
}

.fp-theme .login-wrapper {
    width: 100%;
    min-height: 470px;
    border: 0;
    border-top: 4px solid var(--fp-navy);
    background: #fff;
    padding: 1.25rem 1rem 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.fp-login-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 1rem;
    color: var(--fp-muted);
    font-weight: 300;
}

.fp-login-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--fp-navy);
    border-width: 0.2em;
}

.fp-login-loading p {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.fp-form-panel .form-outline .form-control {
    background: transparent;
}

.fp-form-panel .form-outline .form-control:focus ~ .form-label,
.fp-form-panel .form-outline .form-control.active ~ .form-label {
    background-color: #fff;
}

.fp-section {
    padding: 0 0 clamp(3.5rem, 8vw, 5.5rem);
}

/* Stagger helpers */
.fp-rise {
    animation: fpRise 0.85s ease-out both;
}

.fp-delay-1 { animation-delay: 0.1s; }
.fp-delay-2 { animation-delay: 0.2s; }
.fp-delay-3 { animation-delay: 0.3s; }
.fp-delay-4 { animation-delay: 0.4s; }
.fp-delay-5 { animation-delay: 0.5s; }
.fp-delay-6 { animation-delay: 0.6s; }
.fp-delay-7 { animation-delay: 0.7s; }
.fp-delay-8 { animation-delay: 0.8s; }

/* Feature / atmosphere image (B&W to match about portrait) */
.fp-media {
    position: relative;
    overflow: hidden;
    background: #111;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
    aspect-ratio: 16 / 10;
    margin-bottom: 1.75rem;
}

.fp-media.fp-grayscale {
    filter: grayscale(1);
}

.fp-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fp-media img.is-missing {
    display: none;
}

.fp-media-ph {
    display: none;
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(160deg, #2a2a2a 0%, #0e0e0e 100%);
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.fp-media-ph.is-visible {
    display: flex;
}

.fp-media-ph i {
    font-size: 2rem;
    opacity: 0.7;
}

.fp-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 55%, rgba(0, 0, 0, 0.35));
    pointer-events: none;
}

/* Video gallery */
.fp-videos .row > [class*="col-"] {
    display: flex;
}

.fp-video {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #fff;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.fp-video:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 60, 94, 0.16);
}

.fp-video.is-playing {
    transform: none;
    box-shadow: 0 12px 32px rgba(0, 60, 94, 0.14);
}

.fp-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0a1620;
    overflow: hidden;
    flex-shrink: 0;
}

.fp-video-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #0a1620;
    cursor: pointer;
    display: block;
}

.fp-video-thumb:focus-visible {
    outline: 3px solid var(--fp-navy);
    outline-offset: -3px;
}

.fp-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.4s ease;
    filter: grayscale(0.35) brightness(0.92);
}

.fp-video:hover .fp-video-thumb img {
    transform: scale(1.04);
    filter: grayscale(0.1) brightness(1);
}

.fp-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.35));
    transition: background 0.35s ease;
}

.fp-video:hover .fp-video-play {
    background: linear-gradient(transparent 30%, rgba(0, 60, 94, 0.28));
}

.fp-video-play span {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--fp-navy);
    color: #fff;
    font-size: 1.15rem;
    padding-left: 4px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.fp-video:hover .fp-video-play span {
    transform: scale(1.08);
    background: #004d78;
}

.fp-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.fp-video-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.5rem 1.4rem 1.35rem;
}

.fp-video-title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--fp-navy);
    margin-bottom: 0.35rem;
    line-height: 1.25;
}

.fp-video-meta {
    color: var(--fp-muted);
    font-weight: 300;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex: 1 1 auto;
}

.fp-video-link {
    align-self: flex-start;
    color: var(--fp-navy);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.fp-video-link:hover,
.fp-video-link:focus {
    color: #004d78;
    border-bottom-color: #004d78;
}

.fp-videos-channel {
    text-align: center;
    margin-top: clamp(2rem, 5vw, 3rem);
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 60, 94, 0.12);
}

.fp-videos-channel p {
    color: var(--fp-muted);
    font-weight: 300;
    margin-bottom: 1.15rem;
}

/* Coming soon "stage" (compositions, etc.) */
.fp-soon-stage {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0c1e33 0%, #051223 100%);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
    padding: clamp(3rem, 9vw, 5.5rem) 1.5rem;
    text-align: center;
    margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.fp-soon-staff {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2.6vw, 20px);
    padding: 0 6%;
    pointer-events: none;
}

.fp-soon-staff span {
    display: block;
    height: 1px;
    background: rgba(255, 255, 255, 0.14);
}

.fp-soon-notes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.fp-note {
    position: absolute;
    bottom: -10%;
    font-size: clamp(1.2rem, 2.6vw, 1.9rem);
    color: rgba(255, 255, 255, 0.8);
    animation: fpNoteFloat linear infinite;
    will-change: transform, opacity;
}

.fp-note-1 { left: 6%;  font-size: 1.5rem; animation-duration: 7.5s; animation-delay: 0s; }
.fp-note-2 { left: 20%; font-size: 1.05rem; animation-duration: 9.5s; animation-delay: 1.4s; }
.fp-note-3 { left: 37%; font-size: 1.7rem; animation-duration: 6.8s; animation-delay: 2.6s; }
.fp-note-4 { left: 56%; font-size: 1.15rem; animation-duration: 8.6s; animation-delay: 0.7s; }
.fp-note-5 { left: 74%; font-size: 1.9rem; animation-duration: 7.8s; animation-delay: 3.3s; }
.fp-note-6 { left: 89%; font-size: 1.25rem; animation-duration: 9.2s; animation-delay: 1.9s; }

.fp-soon-content {
    position: relative;
    z-index: 1;
    max-width: 34rem;
    margin: 0 auto;
}

.fp-soon-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 0.95rem 0.4rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.fp-soon-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5a5a;
    box-shadow: 0 0 6px rgba(255, 90, 90, 0.8);
    animation: fpBlink 1.6s ease-in-out infinite;
}

.fp-soon-eq {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    height: 42px;
    margin: 0 auto 1.5rem;
}

.fp-soon-eq span {
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #8fcbf2, #ffffff);
    border-radius: 3px;
    transform-origin: bottom;
    animation: fpEqBounce ease-in-out infinite;
}

.fp-soon-eq span:nth-child(1) { animation-duration: 1.1s; animation-delay: -0.9s; }
.fp-soon-eq span:nth-child(2) { animation-duration: 0.9s; animation-delay: -0.4s; }
.fp-soon-eq span:nth-child(3) { animation-duration: 1.3s; animation-delay: -1.1s; }
.fp-soon-eq span:nth-child(4) { animation-duration: 0.8s; animation-delay: -0.2s; }
.fp-soon-eq span:nth-child(5) { animation-duration: 1.2s; animation-delay: -0.7s; }
.fp-soon-eq span:nth-child(6) { animation-duration: 1s; animation-delay: -0.5s; }
.fp-soon-eq span:nth-child(7) { animation-duration: 1.15s; animation-delay: -1s; }

.fp-soon-title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
    font-size: clamp(2.1rem, 5vw, 3rem);
    color: #fff;
    letter-spacing: 0.01em;
    margin-bottom: 0.75rem;
}

.fp-soon-text {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.fp-soon-links a.fp-topic {
    color: inherit;
    text-decoration: none;
}

.fp-soon-links a.fp-topic:hover .fp-topic-icon {
    background: #004d78;
}

@keyframes fpNoteFloat {
    0% {
        transform: translateY(0) rotate(-6deg);
        opacity: 0;
    }

    12% {
        opacity: 1;
    }

    82% {
        opacity: 1;
    }

    100% {
        transform: translateY(-240px) rotate(10deg);
        opacity: 0;
    }
}

@keyframes fpEqBounce {
    0%, 100% { transform: scaleY(0.22); }
    50% { transform: scaleY(1); }
}

@keyframes fpBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
    .fp-note,
    .fp-soon-eq span,
    .fp-soon-dot {
        animation: none;
    }
}

@keyframes fpHeroIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fpRise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .fp-hero {
        min-height: clamp(160px, 28vh, 280px);
    }

    .fp-hero img {
        max-height: clamp(140px, 24vh, 240px);
        max-width: min(920px, 90%);
    }

    /* Stack earlier than Bootstrap md so the 340px portrait never squeezes the bio */
    .fp-about-layout {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "portrait intro"
            "bio bio";
        gap: 1.25rem 1.35rem;
        align-items: center;
    }

    .fp-about-layout .fp-portrait {
        grid-area: portrait;
        width: 104px;
        max-width: 104px;
        aspect-ratio: 1;
        border-radius: 50%;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    }

    .fp-about-layout .fp-portrait::after {
        display: none;
    }

    .fp-about-layout .fp-portrait img {
        object-position: center top;
    }

    .fp-about-layout .fp-about-copy {
        display: contents;
    }

    .fp-about-intro {
        grid-area: intro;
        min-width: 0;
    }

    .fp-about-intro .fp-band {
        margin-bottom: 0.75rem;
    }

    .fp-about-intro .fp-heading {
        font-size: clamp(1.85rem, 6vw, 2.4rem);
        margin-bottom: 0.2rem;
    }

    .fp-about-intro .fp-location {
        margin-bottom: 0;
    }

    .fp-about-bio {
        grid-area: bio;
    }

    .fp-about-bio p + p {
        margin-top: 1rem;
    }

    .fp-video-play span {
        width: 56px;
        height: 56px;
    }

    .fp-soon-stage {
        padding: 2.75rem 1.25rem;
    }
}

@media (max-width: 600px) {
    .fp-hero {
        min-height: clamp(120px, 22vh, 200px);
    }

    .fp-hero img {
        max-height: clamp(100px, 18vh, 160px);
    }
}
