:root {
    /* Colors derived from the new modern/intense theme (darker, paler greens) */
    --color-bg-dark: #050605;
    /* Very dark green/black */
    --color-bg-darker: #030403;
    --color-bg-light: #0d120f;
    /* Dark greenish tone for contrast sections */
    --color-bg-light-alt: #131a15;

    --color-text-main: #f0f4f2;
    /* Elegant white */
    --color-text-muted: #9aa89e;
    /* Muted greenish-grey */
    --color-text-dark: #e0e8e3;
    /* Using lighter text even in 'light' sections since it's an overall dark theme */

    --color-accent-red: #c8322c;
    /* Reddish accent */
    --color-accent-red-hover: #e0453f;
    --color-accent-green: #1d3324;
    /* For subtle highlights */

    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Outfit', sans-serif;
    --font-title: 'Cormorant', serif;
    --font-subtitle: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* ensure body constraints */
}

/* Global Follow Effect removed per user request */

/* Specific follower behavior over Crew cards handled in JS */

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 400;
}

#main-title span {
    display: inline-block;
}

@keyframes letterGlitchAnim {

    0%,
    100% {
        filter: brightness(1) contrast(1);
        text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
        transform: translate(0, 0);
    }

    10% {
        filter: brightness(2) contrast(1.5);
        text-shadow: 0 0px 10px rgba(255, 255, 255, 0.8);
    }

    20% {
        filter: brightness(0.5) contrast(2);
        transform: translate(-2px, 2px);
    }

    30% {
        filter: brightness(1.5);
        transform: translate(2px, -2px);
    }

    40% {
        filter: brightness(3);
    }

    50% {
        filter: brightness(0.2);
    }
}

.letter-glitch {
    animation: letterGlitchAnim 0.15s ease-in-out forwards;
}

.text-center {
    text-align: center;
}

.text-orange {
    color: var(--color-accent-red) !important;
}

.text-dark {
    color: var(--color-text-main) !important;
}

.mb-large {
    margin-bottom: 4rem;
}

.mb-medium {
    margin-bottom: 2rem;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.w-narrow {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

section {
    padding: 6rem 0;
    position: relative;
}

.dark-section {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
}

.light-section {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

/* Top Nav (Sticky) */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 3rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background-color: rgba(7, 10, 8, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-nav a {
    color: var(--color-text-main);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s;
}

.top-nav a:hover {
    color: var(--color-accent-red);
}

.btn-primary {
    background-color: transparent;
    color: var(--color-text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--color-accent-red);
    color: var(--color-text-main);
    box-shadow: 0 0 10px rgba(200, 50, 44, 0.4);
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--color-text-main);
    transition: all 0.3s ease;
}

/* Hamburger active animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.profile-card {
    border-radius: 4px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
    /* Remove Mobile Tap flash */
    user-select: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    overflow: hidden;
    z-index: 1;
}

#zoom-wrapper {
    width: 100%;
    height: 100%;
    transform-origin: top center;
    animation: slowZoom 20s linear forwards;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transform-origin: top center;
    filter: brightness(0.65) contrast(1.1);
    /* Set a transition for regular states but the glitch relies on keyframes */
    transition: filter 0.1s;
}

.hero-bg-image img.glitching {
    animation: glitchAnim 0.35s ease-in-out forwards;
}

@keyframes glitchAnim {
    0% {
        transform: translate(0);
        filter: brightness(0.7) contrast(1.1);
    }

    15% {
        transform: translate(-10px, 5px);
        filter: brightness(1.8) contrast(1.5) hue-rotate(-30deg) sepia(0.5);
    }

    30% {
        transform: translate(8px, -8px);
        filter: brightness(0.9) contrast(2.0) hue-rotate(40deg) invert(0.1);
    }

    45% {
        transform: translate(-5px, 6px) skewX(2deg);
        filter: brightness(1.5) contrast(1.2) grayscale(0.8) hue-rotate(90deg);
    }

    60% {
        transform: translate(10px, -2px) skewX(-2deg);
        filter: brightness(0.5) contrast(2.5) invert(0.2);
    }

    75% {
        transform: translate(-5px, 8px);
        filter: brightness(1.6) contrast(1.3) hue-rotate(-50deg);
    }

    100% {
        transform: translate(0);
        filter: brightness(0.65) contrast(1.1);
    }
}

#glitch-noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Heavy BW TV Noise pattern (SVG data URI) */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0, 1 0 0 0 0, 1 0 0 0 0, 0 0 0 1 0' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 4;
    transition: opacity 0.05s linear;
}

#glitch-noise-overlay.active {
    opacity: 0.9;
    mix-blend-mode: screen;
    animation: noiseScroll 0.1s infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(7, 10, 8, 0.4) 0%, var(--color-bg-dark) 100%);
    pointer-events: none;
    z-index: 5;
}

.hero-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Soft static horizontal black lines filter like a CRT TV */
    background: repeating-linear-gradient(to bottom,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.2) 3px,
            rgba(0, 0, 0, 0.2) 4px);
    pointer-events: none;
    z-index: 6;
    opacity: 0.3;
}

@keyframes noiseScroll {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-1%, 1%);
    }
}

.hero-content {
    text-align: center;
    z-index: 10;
}

.subtitle {
    font-size: 1.2rem;
    letter-spacing: 4px;
    color: var(--color-accent-red);
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-family: var(--font-subtitle);
    font-weight: 500;
}

.subtitle.mt-1 {
    margin-top: 1rem;
}

.title {
    font-size: 8vw;
    line-height: 1;
    color: var(--color-text-main);
    text-transform: uppercase;
    position: relative;
    letter-spacing: 25px;
    font-family: var(--font-title);
    font-weight: 300;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

/* Layout Additions */
.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mt-4 {
    margin-top: 4rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.pt-3 {
    padding-top: 3rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.padding-large {
    padding: 8rem 0;
}

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

.border-top-light {
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.w-wide {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.text-ornament {
    color: #8fa899;
    /* Softer green text color for italic accents */
    opacity: 0.7;
}

/* Two Column Grid */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.column-title {
    font-size: 2.5rem;
    color: var(--color-text-main);
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    line-height: 1.1;
    font-family: var(--font-subtitle);
    font-weight: 300;
}

.column-title .small-italic {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.light-section .column-title {
    color: var(--color-text-dark);
}

/* Info List */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 1.5rem;
    padding: 0.5rem 0;
    align-items: start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    font-family: var(--font-sans);
}

.info-list li strong {
    text-align: right;
    font-weight: 400;
    opacity: 0.6;
    color: var(--color-text-main);
}

.info-list li span {
    text-align: left;
    font-weight: 500;
    color: var(--color-text-main);
}

/* Synopsis */
.body-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    font-weight: 300;
}

.synopsis-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.synopsis-image-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    filter: grayscale(20%) sepia(20%) hue-rotate(90deg);
    /* slight greenish tint */
    transition: filter 0.3s;
}

.synopsis-image-grid img:hover {
    filter: grayscale(0);
}

/* Statement Hero Image */
.statement-hero-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Intro / Synopsis Text */
.intro-text {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-accent-red);
    line-height: 1.8;
}

/* Section Titles */
.section-title {
    font-size: 4rem;
    color: var(--color-accent-red);
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    line-height: 1.1;
    font-family: var(--font-subtitle);
    font-weight: 300;
}

.small-italic {
    font-size: 1.8rem;
    text-transform: none;
    font-style: italic;
    margin-bottom: -0.5rem;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 3rem;
    font-family: var(--font-sans);
    font-weight: 300;
}

.light-section .section-subtitle {
    color: var(--color-text-dark);
}

/* Transition to light */
.transition-gradient {
    height: 150px;
    background: linear-gradient(to bottom, var(--color-bg-dark) 0%, var(--color-bg-light) 100%);
    position: relative;
    z-index: 20;
}

/* Accordion Component */
.accordion {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.accordion-trigger span:first-child {
    font-weight: 500;
    white-space: nowrap;
    text-align: left;
}

.accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-text-main);
    cursor: pointer;
    transition: color 0.3s;
}

.text-subtitle-font {
    font-family: var(--font-subtitle);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
}

.accordion-trigger:hover,
.accordion-trigger.active {
    color: var(--color-accent-red);
}

.icon {
    font-family: var(--font-sans);
    font-weight: 300;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    font-family: var(--font-sans);
    color: var(--color-text-main);
    font-size: 1rem;
    line-height: 2;
}

.accordion-content p {
    margin-bottom: 0.5rem;
}

/* Add padding when active */
.accordion-trigger.active+.accordion-content {
    padding-bottom: 1.5rem;
}

/* Background overrides for accordions in light mode */
.bg-light-alt {
    padding-left: 1rem;
    padding-right: 1rem;
}

.credits-list {
    list-style: none;
    padding: 0 1rem;
}

.credits-list li {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 1.5rem;
    padding: 0.5rem 0;
    align-items: start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.credits-list li strong {
    text-align: right;
    font-weight: 400;
    opacity: 0.6;
}

.credits-list li span.name-col {
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .credits-list li {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .credits-list li strong,
    .credits-list li span.name-col {
        text-align: center;
        white-space: normal;
    }
}

.credits-list li:last-child {
    border-bottom: none;
}

/* Special Thanks Text */
.muted-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

.thanks-grid {
    font-size: 1.1rem;
    font-family: var(--font-serif);
    color: var(--color-accent-red);
    line-height: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.thanks-grid span {
    white-space: nowrap;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding-top: 2rem;
}

.profile-card {
    background: linear-gradient(145deg, rgb(20, 26, 22) 0%, rgb(10, 15, 12) 100%);
    /* Solid color prevents global follower from shining through */
    padding: 2.5rem 2rem;
    position: relative;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    overflow: hidden;
    z-index: 2;
    /* Put above the follower */
}

/* Subtle gradient glow inside the card based on mouse position (handled in JS) */
.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-card>* {
    position: relative;
    z-index: 1;
}

.profile-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 300;
    color: var(--color-text-main);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.meta .name {
    display: block;
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-text-main);
}

.meta .role {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Footer Section */
.bts-transition-gradient {
    height: 150px;
    background: linear-gradient(to bottom, var(--color-bg-light) 0%, var(--color-bg-dark) 100%);
}

.footer-gradient {
    height: 150px;
    background: linear-gradient(to bottom, var(--color-bg-dark) 0%, var(--color-bg-darker) 100%);
}

.site-footer {
    background-color: var(--color-bg-darker);
    padding: 0 0 3rem 0;
    /* Removed top padding to pull "Learn MORE" upward into the middle */
    position: relative;
    overflow: hidden;
}

/* Contact Email glitched */
.email-glitch-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.email-glitch-link:hover .email-prefix,
.email-glitch-link:hover .email-domain {
    color: var(--color-accent-red);
}

.email-glitch-link:hover {
    text-shadow: 0 0 20px rgba(200, 50, 44, 0.6);
}

.email-prefix {
    font-size: 1em;
    /* matched size */
    color: #808080;
    /* 50% gray */
    font-family: var(--font-title);
    font-weight: 300;
    letter-spacing: 15px;
    margin-right: 0;
    transition: color 0.3s ease;
}

.email-domain {
    transition: color 0.3s ease;
}

.email-domain span {
    display: inline-block;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    /* Moved even closer */
    margin-bottom: 2rem;
    gap: 2rem;
    position: relative;
    transition: margin-top 0.8s ease-in-out;
}

section:has(#bts-wrapper.active)~#learn-more .footer-logo {
    margin-top: 6.5rem;
    /* Centers the block dynamically by mathematically mirroring the spacing above it */
}

.huge-logo {
    font-size: 2.1vw;
    /* 80% of previous 2.6vw */
    color: var(--color-text-main);
    line-height: 1;
    letter-spacing: 15px;
    font-family: var(--font-title);
    font-weight: 300;
    margin-top: 0;
    /* Removed extra top margin to bring it closer */
}

.huge-logo span {
    display: inline-block;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
}

/* --- Behind The Scenes Styles --- */
.bts-section {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-bottom: 0;
    /* Removes empty space holding up the "Learn MORE" block */
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-pointer:hover .text-ornament {
    color: var(--color-accent-red);
    opacity: 1;
    transition: all 0.3s;
}

/* Container for exploded images */
#bts-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: height 0.8s ease-in-out;
    z-index: 10;
}

#bts-wrapper.active {
    height: 42vh;
    /* Expanding height wrapper smoothly pushes the footer */
}

.bts-mask {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* This masks the overflowing images inside when height is less than 42vh */
    background: rgba(4, 6, 5, 0.5);
    /* Inward and outward glow! */
    box-shadow: inset 0px 0px 80px rgba(220, 180, 80, 0.15), 0px 0px 100px rgba(220, 180, 80, 0.25);
}

#bts-images-container {
    position: absolute;
    width: 100%;
    height: 42vh;
    /* Images container remains static height! Won't squish elements while outer wrapper animates! */
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    /* Start centered so opening reveals middle first */
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: calc(42vh / 3);
    /* Force perfect horizontal cells! */
    gap: 0;
    padding: 0;
    scrollbar-width: none;
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-x;
    /* Explicitly prioritize horizontal dragging */
    -webkit-overflow-scrolling: touch;
    /* Momentum scrolling on iOS */
    scroll-snap-type: x mandatory;
    /* Force lock onto pictures */
}

#bts-images-container::-webkit-scrollbar {
    display: none;
}

.bts-close-btn {
    position: fixed;
    /* Fixed so it follows scrolling */
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: var(--color-text-main);
    cursor: pointer;
    z-index: 1100;
    /* Above fullscreen image */
    transition: color 0.3s, transform 0.3s;
    opacity: 0;
    pointer-events: none;
    font-family: var(--font-sans);
    font-weight: 300;
}

.bts-close-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.bts-close-btn:hover {
    color: var(--color-accent-red);
    transform: scale(1.1) rotate(90deg);
}

.bts-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    cursor: pointer;
    transition: filter 0.3s;
    scroll-snap-align: center;
    /* Lock onto individual pictures when scrolling */
    user-drag: none;
    -webkit-user-drag: none;
    /* Prevents default browser HTML image ghost dragging! */
}

.bts-image.in-view {
    /* Kept class just in case, but no stagger needed */
    opacity: 1;
}

.bts-image:hover {
    filter: brightness(1.2);
    z-index: 10;
}

/* Category Borders */
.bts-image.pre-img {
    border: 1px solid rgba(80, 150, 255, 0.6);
}

.bts-image.shoot-img {
    border: 1px solid rgba(255, 215, 0, 0.6);
}

.bts-image.post-img {
    border: 1px solid rgba(100, 255, 100, 0.6);
}

/* Fullscreen active state */
#bts-fullscreen-viewer {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1050 !important;
    background-color: rgba(4, 6, 5, 0.95) !important;
    display: none;
    overflow: hidden !important;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#bts-fullscreen-viewer.visible {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
}

.fs-track {
    display: flex;
    width: 300vw;
    height: 100vh;
    align-items: center;
    transform: translateX(-100vw);
    will-change: transform;
}

.fs-slide {
    flex: 0 0 100vw;
    width: 100vw;
    height: 80vh;
    object-fit: contain;
    padding: 0 1rem;
}



.bts-nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    z-index: 1060;
    /* Above fullscreen viewer */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, color 0.3s ease;
    padding: 1rem;
    user-select: none;
}

.bts-nav-arrow.visible {
    opacity: 1;
    pointer-events: auto;
}

.bts-nav-arrow:hover {
    color: var(--color-accent-red);
}

.bts-nav-arrow.left {
    left: 2vw;
}

.bts-nav-arrow.right {
    right: 2vw;
}

.bts-nav-arrow.close {
    top: 30px;
    right: 40px;
    transform: none;
    /* Override the Y translation from the base class */
}

/* Backdrop when an image is fullscreen to darken others */
#bts-images-container::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background 0.4s ease;
    z-index: 1020;
}

#bts-images-container.has-fullscreen::after {
    background: rgba(0, 0, 0, 0.9);
    pointer-events: auto;
}

/* The glitching class for the subtle random glitch */
.bts-image.glitching {
    animation: glitchAnimBTS_subtle 0.2s ease-in-out forwards;
}

@keyframes glitchAnimBTS_subtle {
    0% {
        filter: brightness(1) contrast(1);
    }

    33% {
        filter: brightness(1.2) contrast(1.1) hue-rotate(-10deg);
    }

    66% {
        filter: brightness(0.9) contrast(1.3) hue-rotate(10deg);
    }

    100% {
        filter: brightness(1) contrast(1);
    }
}

.footer-links a:hover {
    color: white;
}

/* Media Queries */
@media (max-width: 768px) {
    .title {
        display: flex;
        justify-content: space-between;
        width: 90vw;
        margin: 0 auto;
        font-size: min(8vw, 4rem);
        /* Reduce font size on mobile so 9 letters fit safely */
        letter-spacing: 0;
    }

    .section-title,
    .column-title {
        font-size: 2rem;
        line-height: 1.3;
        gap: 1rem;
    }

    .small-italic {
        font-size: 1.2rem;
    }

    .top-nav {
        flex-direction: column;
        padding: 1rem 2rem;
        align-items: stretch;
    }

    .nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .hamburger {
        display: flex;
        margin-right: -1rem;
        /* optical alignment */
    }

    /* Force mobile crew grid into side-by-side tiles */
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding-top: 1rem;
    }

    /* Collapse profile cards visually on mobile */
    .profile-card {
        padding: 1rem 0.5rem;
        text-align: center;
        border-radius: 10px;
        cursor: pointer;
    }

    /* Keep the bio hidden by default on mobile so it functions as a compact tile */
    .profile-card .card-text {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        margin: 0;
        padding: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    }

    /* Stack the avatar above the text symmetrically on mobile small tiles */
    .profile-card .card-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* --- Crew Modal Styles --- */
    .crew-modal {
        position: fixed;
        inset: 0;
        z-index: 1000;
        background-color: rgba(4, 6, 5, 0.95);
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 3rem 2rem;
        overflow-y: auto;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .crew-modal.active {
        display: flex;
        opacity: 1;
    }

    .crew-modal-close {
        position: absolute;
        top: 30px;
        right: 40px;
        font-size: 3rem;
        color: var(--color-text-main);
        cursor: pointer;
        z-index: 1100;
    }

    .crew-modal .crew-modal-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 600px;
    }

    .crew-modal .card-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
        width: 100%;
    }

    .crew-modal .avatar-large {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto;
    }

    .crew-modal .meta {
        text-align: center;
        width: 100%;
    }

    .crew-modal .name {
        display: block;
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
        color: var(--color-text-main);
    }

    .crew-modal .role {
        display: block;
        font-size: 1.1rem;
        color: var(--color-accent-red);
        font-style: italic;
        font-family: var(--font-title);
    }

    .crew-modal .card-text {
        text-align: center;
        font-size: 1.1rem;
        line-height: 1.6;
        color: var(--color-text-muted);
        opacity: 1;
        max-height: none;
        margin: 0;
        padding: 0;
    }

    .nav-center {
        display: none;
        width: calc(100% + 4rem);
        margin-left: -2rem;
        margin-right: -2rem;
        text-align: center;
        margin-top: 1.5rem;
        background-color: rgba(0, 0, 0, 0.85);
        /* 15% transparency block */
        padding: 1rem 0 0.5rem 0;
        border-radius: 0;
    }

    .nav-right {
        display: none;
        width: calc(100% + 4rem);
        margin-left: -2rem;
        margin-right: -2rem;
        text-align: center;
        margin-top: 0;
        background-color: rgba(0, 0, 0, 0.85);
        /* 15% transparency block */
        padding: 2rem 0 3.5rem 0;
        border-radius: 0;
    }

    /* Convert Contact button to standard text link on mobile */
    .nav-right .btn-primary {
        border: none;
        background: transparent;
        box-shadow: none !important;
        padding: 0;
        margin: 0 auto;
        /* Center alignment failsafe */
        display: block;
        /* Break out of inline-block to allow margin centering */
        text-align: center;
        width: 100%;
    }

    .nav-right .btn-primary:hover {
        background: transparent;
        border: none;
        box-shadow: none;
        color: var(--color-accent-red);
    }

    .nav-center {
        flex-direction: column;
    }

    .nav-center.nav-active {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.25rem;
        /* Forces perfectly equidistant gaps across all links! */
    }

    .nav-right.nav-active {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Show Mobile BTS link and hide desktop BTS link (Removed) */

    /* Hide Last Name on unexpanded mobile tiles */
    .profile-card:not(.expanded) .last-name {
        display: none !important;
    }

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

    .info-list li strong {
        width: 100px;
    }

    .synopsis-image-grid {
        grid-template-columns: 1fr;
    }
}