/* ============================================
   luminant.dev — Styles
   Retro poster filmstrip / horizontal scroll
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
}

:root {
    --vermillion: #E63B2E;
    --navy: #0A1628;
    --yellow: #F2C12E;
    --cream: #F5F0E6;
    --white: #FAFAF7;
    --angle: 25deg;
}

html, body {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    background: var(--navy);
    font-family: 'Libre Baskerville', serif;
}

/* === FILMSTRIP === */
.filmstrip {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    height: 100vh;
    width: 100vw;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.filmstrip::-webkit-scrollbar {
    display: none;
}

/* === PANEL BASE === */
.panel {
    min-width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* Panel numbers */
.panel-number {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-family: 'Saira Stencil One', sans-serif;
    font-size: clamp(4rem, 6vw, 5rem);
    color: var(--white);
    opacity: 0.12;
    z-index: 2;
    line-height: 1;
    letter-spacing: 0.08em;
}
.panel-number-dark {
    color: var(--navy);
}

/* Chevron overlay texture */
.chevron-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='24' viewBox='0 0 40 24'%3E%3Cpolyline points='0,12 20,0 40,12' fill='none' stroke='%23FAFAF7' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 40px 24px;
    opacity: 0.06;
}

/* === PANEL 1 — MARQUEE === */
.panel-marquee {
    background: var(--navy);
}
.marquee-bg-top {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--vermillion);
    clip-path: polygon(0 0, 100% 0, 60% 100%, 0 100%);
    z-index: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease-out 0.6s;
}
.panel-marquee.is-visible .marquee-bg-top {
    transform: scaleX(1);
}
.marquee-bg-bottom {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    clip-path: polygon(60% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 0;
}

.hero-word {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    font-family: 'Saira Stencil One', sans-serif;
    font-size: clamp(8rem, 20vw, 16rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    mix-blend-mode: difference;
    white-space: nowrap;
    line-height: 1;
}
.hero-letter {
    display: inline-block;
    opacity: 0;
    transform: translateX(40px) skewX(-15deg);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.hero-letter.is-revealed {
    opacity: 1;
    transform: translateX(0) skewX(0);
}

/* === PANEL 2 — MANIFESTO === */
.panel-manifesto {
    background: var(--yellow);
    display: flex;
}
.manifesto-text {
    position: relative;
    z-index: 3;
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    gap: 1.5rem;
}
.manifesto-line {
    font-family: 'Saira', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    color: var(--navy);
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.manifesto-line.is-revealed {
    opacity: 1;
    transform: translateX(0);
}
.manifesto-line-1 { font-weight: 400; }
.manifesto-line-2 { font-weight: 700; }
.manifesto-line-3 { font-weight: 900; }

.manifesto-shapes {
    position: absolute;
    right: 0; top: 0;
    width: 60%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
}
.geo-shape {
    position: absolute;
    transform: scale(0.7);
    transition: transform 0.5s ease-out 0.3s;
}
.panel.is-visible .geo-shape {
    transform: scale(1);
}
.geo-tri-1 { width: 200px; top: 10%; right: 15%; }
.geo-para-1 { width: 250px; top: 40%; right: 5%; }
.geo-chev-1 { width: 160px; top: 60%; right: 40%; }
.geo-tri-2 { width: 180px; bottom: 10%; right: 25%; }
.geo-para-2 { width: 200px; bottom: 30%; right: 50%; }

/* === PANEL 3 — WORKS GRID === */
.panel-works {
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0;
    width: 90%;
    height: 80%;
    z-index: 3;
    position: relative;
}
.work-cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--navy);
}
.work-cell-red { background: var(--vermillion); }
.work-cell-navy { background: var(--navy); border-color: var(--vermillion); }

.work-title {
    font-family: 'Saira Stencil One', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    z-index: 2;
    transition: transform 0.3s ease-out;
}
.work-desc {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1rem 1.5rem;
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(0.75rem, 1vw, 1rem);
    line-height: 1.5;
    color: var(--white);
    background: rgba(10, 22, 40, 0.9);
    transform: translateY(100%);
    transition: transform 0.35s ease-out;
    z-index: 4;
}
.work-cell:hover .work-desc {
    transform: translateY(0);
}
.work-cell:hover .work-title {
    transform: translateY(-20px);
}

/* === PANEL 4 — PHILOSOPHY === */
.panel-philosophy {
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
}
.philosophy-frame {
    position: relative;
    border: 8px solid var(--navy);
    padding: 4rem 5rem;
    max-width: 700px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.panel-philosophy.is-visible .philosophy-frame {
    opacity: 1;
    transform: translateX(0);
}
.philosophy-text {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.65;
    color: var(--navy);
}
.quote-chevron {
    flex-shrink: 0;
    width: 40px;
    height: 50px;
}

/* === PANEL 5 — CONTACT BEAM === */
.panel-contact {
    background: var(--navy);
}
.contact-left {
    position: absolute;
    top: 0; left: 0;
    width: 50%; height: 100%;
    background: var(--yellow);
    z-index: 0;
}
.contact-right {
    position: absolute;
    top: 0; right: 0;
    width: 50%; height: 100%;
    background: var(--navy);
    z-index: 0;
}
.contact-email {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    font-family: 'Saira Stencil One', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.08em;
    text-transform: none;
    color: var(--white);
    mix-blend-mode: difference;
    white-space: nowrap;
    line-height: 1;
}
.contact-char {
    display: inline-block;
}
.contact-at {
    position: relative;
}

/* Ripple for @ symbol */
.at-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%) scale(0);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 60% 50%);
    opacity: 1;
    pointer-events: none;
    z-index: 10;
}
.at-ripple.animate {
    animation: atRipple 1.5s ease-out infinite;
}
@keyframes atRipple {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}

.contact-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.contact-tri {
    width: 300px;
    bottom: 5%;
    left: 5%;
    position: absolute;
}
.contact-para {
    width: 400px;
    top: 10%;
    right: 5%;
    position: absolute;
}

/* === PROGRESS BAR === */
.progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    z-index: 1000;
    cursor: pointer;
}
.progress-track {
    position: absolute;
    inset: 0;
    background: var(--navy);
    opacity: 0.4;
}
.progress-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 0%;
    background: var(--vermillion);
    transition: width 0.1s linear;
}
.progress-segments {
    position: absolute;
    inset: 0;
    display: flex;
}
.progress-segment {
    flex: 1;
    position: relative;
}

/* Angular ripple effect */
.angular-ripple {
    position: fixed;
    pointer-events: none;
    z-index: 999;
    width: 40px;
    height: 40px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 70% 50%);
}
.angular-ripple.r1 { animation: angRipple 0.6s ease-out forwards; }
.angular-ripple.r2 { animation: angRipple 0.6s ease-out 0.1s forwards; }
.angular-ripple.r3 { animation: angRipple 0.6s ease-out 0.2s forwards; }

@keyframes angRipple {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

/* === PARALLELOGRAM TEXT CONTAINERS === */
.skew-container {
    transform: skewX(-8deg);
    display: inline-block;
}
.skew-container > * {
    transform: skewX(8deg);
}

/* Horizontal rules with triangle terminator */
.hr-triangle {
    display: flex;
    align-items: center;
    gap: 0;
}
.hr-triangle::before {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--yellow);
}
.hr-triangle::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid var(--yellow);
}

/* Progress bar pulse */
@keyframes barPulse {
    0%, 100% { height: 8px; }
    50% { height: 10px; }
}
.progress-segment.active {
    animation: barPulse 2s ease-in-out infinite;
}
