/* ================================================================
   2026 CINEMATIC EXHIBIT
   Massive Scale, High Contrast, WebGL Aesthetics with pure CSS
   ================================================================ */

:root {
    --bg-dark: #030303;
    --text-light: #ffffff;
    --text-dim: #888888;
    --accent: #b9ff2e; /* High-end electric lime */
    
    --font-display: 'Michroma', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
}

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

html {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-size: 16px;
    /* Prevent native scrollbar jumpiness when GSAP pins */
    overscroll-behavior: none;
}

body {
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

::selection {
    background: var(--accent);
    color: var(--bg-dark);
}


/* ================================================================
   LOADER
   ================================================================ */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-light);
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    0% { opacity: 0.2; }
    100% { opacity: 1; }
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 60vw;
    height: 100vh;
    z-index: 1;
}

/* Hard crop, high contrast photo mask */
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: grayscale(100%) contrast(1.2) brightness(0.8);
    mask-image: linear-gradient(to right, transparent, black 30%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 30%);
    transform-origin: right center;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 5vw;
    width: 100%;
    pointer-events: none; /* Let clicks pass to image if needed */
}

.hero-title {
    font-family: var(--font-display);
    font-size: 14vw;
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--text-light);
    mix-blend-mode: difference; /* The magic touch */
    margin-bottom: 4vh;
    white-space: nowrap;
}

.hero-meta {
    max-width: 400px;
    margin-left: 1vw;
    mix-blend-mode: difference;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-tagline {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--accent);
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.scroll-indicator {
    position: absolute;
    bottom: 4vh;
    left: 6vw;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    z-index: 2;
    mix-blend-mode: difference;
}

.scroll-line {
    width: 60px;
    height: 1px;
    background: var(--text-light);
    transform-origin: left;
    animation: stretch 2s infinite var(--ease-in-out-circ);
}

@keyframes stretch {
    0% { transform: scaleX(0); }
    50% { transform: scaleX(1); transform-origin: left; }
    50.1% { transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: right; }
}

/* ================================================================
   VERTICAL STACKED GALLERY (The Exhibit)
   ================================================================ */
.gallery-section {
    position: relative;
    width: 100vw;
    background: var(--bg-dark);
    padding-bottom: 30vh;
}

.gallery-container {
    width: 100vw;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 10vh 5vw;
}

.gallery-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5vh; /* Space between cards before they stick */
}

/* --- THE PANELS --- */
.gallery-panel {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.intro-panel {
    margin-bottom: 20vh;
    align-items: flex-start;
}

.bio-panel {
    padding: 10vh 5vw;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
    position: relative;
    z-index: 10;
    margin-bottom: 10vh;
}

.bio-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-weight: 800;
}

.outro-section {
    padding: 15vh 5vw;
    background: var(--bg-dark);
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.outro-content {
    max-width: 800px;
    margin: 0 auto;
}

.bio-content p,
.outro-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.bio-content p:last-child,
.outro-content p:last-child {
    margin-bottom: 0;
}

.bio-signature {
    margin-top: 2.5rem !important;
    font-family: var(--font-display);
    font-size: 1rem !important;
    color: var(--accent) !important;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.outro-content p:last-child {
    color: var(--accent);
    font-weight: 500;
}

.section-heading {
    font-family: var(--font-display);
    font-size: 8vw;
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.section-sub {
    font-size: 1.2rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.project-panel {
    position: sticky;
    top: 10vh; /* Stick to top as you scroll */
}

/* --- SURFACE LAYER ON PANEL --- */
.project-surface {
    background: #0a0a0a; /* Solid background so it stacks opaquely over previous cards */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.8); /* Strong shadow above to separate cards */
    padding: 4rem;
    position: relative;
    transition: border-color 0.4s var(--ease-out-expo);
}

.project-surface:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.surface-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    font-family: var(--font-display);
    font-weight: 700;
}

.project-number {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
}

.project-status {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-label {
    color: rgba(255, 255, 255, 0.4);
}

.status-value {
    color: var(--status-color, var(--accent));
    text-shadow: 0 0 10px var(--status-color, var(--accent));
    font-weight: 700;
}

.project-status[data-status="ACTIVE"] { --status-color: #ccff00; }
.project-status[data-status="INTERNAL"] { --status-color: #ccff00; }
.project-status[data-status="FREE"] { --status-color: #00ffff; }
.project-status[data-status="TESTING"] { --status-color: #ffaa00; }
.project-status[data-status="AT CAPACITY"],
.project-status[data-status="BOOKED OUT"],
.project-status[data-status="SHUT DOWN"] { --status-color: #ff3333; }

.project-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.project-problem {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.project-bullets {
    list-style: none;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-bullets li {
    font-size: 1.05rem;
    color: var(--text-dim);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.project-bullets span {
    color: var(--accent);
}

.surface-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.project-outcome {
    font-weight: 500;
    color: var(--text-light);
    max-width: 60%;
}

.dive-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.dive-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.4s var(--ease-out-expo);
}

.dive-btn:hover {
    color: var(--accent);
}

.dive-btn:hover svg {
    transform: translateX(8px);
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #000;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 10vw;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    margin-bottom: 1rem;
}

.footer-meta {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--text-dim);
}

/* ================================================================
   PROJECT PAGE (The Deep Dive)
   ================================================================ */
.project-page {
    background: #0a0a0a;
    overflow-y: auto;
}

.project-page-content {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 10vh 15vw;
}

.page-nav {
    margin-bottom: 8vh;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
}

.back-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

.back-btn:hover {
    color: var(--accent);
}

.back-btn:hover svg {
    transform: translateX(-4px);
}

/* Overlay Typographic Structure */
.overlay-header {
    margin-bottom: 15vh;
}

.overlay-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.overlay-title {
    font-family: var(--font-display);
    font-size: 6vw;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.overlay-link {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--bg-dark);
    background: var(--text-light);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

.overlay-link:hover {
    background: var(--accent);
}

.overlay-body {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 10vh;
}

.content-block {
    margin-bottom: 5vh;
}

.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4vw;
}

.block-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.block-text {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text-light);
}

.block-text p {
    margin-bottom: 1.2rem;
}

.block-text p:last-child {
    margin-bottom: 0;
}

.text-highlight {
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.4;
}

.text-dim {
    color: var(--text-dim);
}

/* ================================================================
   RESPONSIVE (Mobile Adaptation)
   ================================================================ */
@media (max-width: 1024px) {
    /* Hero fixes for mobile */
    .hero { height: auto; min-height: 100vh; padding-bottom: 15vh; }
    .hero-image-wrapper { position: absolute; width: 100vw; height: 70vh; mask-image: linear-gradient(to bottom, black 40%, transparent); -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent); opacity: 0.4; }
    .hero-content { padding-top: 25vh; padding-left: 1.5rem; padding-right: 1.5rem; }
    .hero-title { font-size: 14vw; white-space: normal; line-height: 1.1; margin-bottom: 2rem; word-break: break-word; }
    .hero-meta { max-width: 100%; margin-left: 0; }
    
    .scroll-indicator { display: none; } /* Hide on mobile to save space */
    
    /* Adjust vertical gallery for mobile */
    .gallery-container { padding: 5vh 1.25rem; }
    .gallery-track { gap: 3rem; }
    .intro-panel { margin-bottom: 5vh; }
    .project-panel { top: 5vh; }
    .section-heading { font-size: 11vw; word-break: break-word; }
    .bio-panel { padding: 2rem 1.5rem; margin-bottom: 5vh; }
    .outro-section { padding: 8vh 1.5rem; }
    .bio-title { font-size: 1.75rem; }
    .bio-content p, .outro-content p { font-size: 1.05rem; }
    
    /* Project Surface adjustments */
    .project-surface { padding: 1.5rem; }
    .surface-top { margin-bottom: 2rem; flex-direction: column; align-items: flex-start; gap: 1rem; }
    .project-number { font-size: 2.5rem; }
    .project-title { font-size: 1.8rem; margin-bottom: 1.5rem; word-break: break-word; line-height: 1.2; }
    .project-problem { font-size: 1.05rem; margin-bottom: 1.5rem; }
    .project-bullets li { font-size: 0.95rem; }
    
    .surface-bottom { flex-direction: column; align-items: flex-start; gap: 1.5rem; padding-top: 1.5rem; }
    .project-outcome { max-width: 100%; font-size: 0.95rem; }
    
    /* Project Page adjustments */
    .content-split { grid-template-columns: 1fr; gap: 2rem; }
    .project-page-content { padding: 10vh 1.5rem 15vh; }
    .overlay-header { margin-bottom: 5vh; }
    .overlay-title { font-size: 2rem; line-height: 1.2; margin-bottom: 2rem; word-break: break-word; }
    .overlay-number { font-size: 1.5rem; }
    .block-text { font-size: 1rem; }
    
    /* System */
    .cursor { display: none; }
    body { cursor: auto; }
    button, a { cursor: pointer; }
    
    .site-brand {
        top: 1.5rem;
        left: 1.5rem;
        font-size: 0.75rem;
    }
    
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
    }
}

/* ================================================================
   SITE BRAND & SCROLL TO TOP
   ================================================================ */
.site-brand {
    position: fixed;
    top: 2rem;
    left: 2rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    z-index: 100;
    mix-blend-mode: difference;
}

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s var(--ease-out-expo);
    cursor: pointer;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #1a1a1a;
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}
