/* ============================================
   PARADOX — Cinematic Site v3 (Award Edition)
   Typography: Instrument Serif + Space Grotesk
   ============================================ */

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

:root {
    --bg: #050505;
    --fg: #e8e2d6;
    --dim: #6b6560;
    --accent: #d4943a;
    --red: #b5382a;
    --highlight: rgba(212,148,58,0.12);
    --serif: 'Instrument Serif', Georgia, serif;
    --sans: 'Space Grotesk', -apple-system, sans-serif;
}

html { font-size: 16px; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--fg);
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }

/* ---- WebGL canvas (replaces old grain + vignette) ---- */
.webgl-canvas {
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

/* ---- CURSOR ---- */
.cursor {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}
.cursor-dot {
    width: 6px; height: 6px;
    background: var(--fg);
    border-radius: 50%;
    transition: transform 0.2s ease;
}
.cursor-ring {
    position: absolute;
    top: 50%; left: 50%;
    width: 44px; height: 44px;
    transform: translate(-50%, -50%);
    fill: none;
    stroke: var(--fg);
    stroke-width: 0.8;
    opacity: 0.4;
    transition: width 0.35s cubic-bezier(.25,1,.5,1), height 0.35s cubic-bezier(.25,1,.5,1), opacity 0.3s;
}
.cursor.hovering .cursor-ring {
    width: 70px; height: 70px;
    opacity: 0.8;
    stroke: var(--accent);
}
.cursor.hovering .cursor-dot {
    transform: scale(2);
}

/* ---- LOADER: Camera Shutter ---- */
.loader {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shutter {
    position: absolute;
    left: 0; right: 0;
    height: 50%;
    background: var(--bg);
    z-index: 2;
}
.shutter--top { top: 0; }
.shutter--bottom { bottom: 0; }
.loader-center {
    position: relative;
    z-index: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.loader-logo {
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5em;
    opacity: 0;
}
.loader-count {
    font-family: var(--sans);
    font-size: clamp(4rem, 14vw, 12rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    color: var(--fg);
    text-shadow:
        0 0 25px rgba(212,148,58,0.5),
        0 0 60px rgba(212,148,58,0.2),
        0 0 120px rgba(181,100,30,0.1);
    opacity: 0.9;
    line-height: 1;
}

/* ---- NAV ---- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transform: translateY(-100%);
}
.nav-logo {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-shadow: 0 0 15px rgba(212,148,58,0.25), 0 0 40px rgba(212,148,58,0.08);
}
.nav-email {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--dim);
    transition: color 0.3s;
    position: relative;
}
.nav-email::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.4s cubic-bezier(.25,1,.5,1);
}
.nav-email:hover { color: var(--fg); }
.nav-email:hover::after { width: 100%; }

/* ---- SCENES (common) ---- */
.scene {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ---- TEXT HIGHLIGHT EFFECT ---- */
.highlight-wrap {
    display: inline;
    position: relative;
    background-image: linear-gradient(var(--highlight), var(--highlight));
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: left center;
    transition: background-size 0.5s cubic-bezier(.25,1,.5,1);
    padding: 0.05em 0;
}
.highlight-wrap:hover {
    background-size: 100% 100%;
}

/* ---- MAGNETIC element ---- */
.magnetic {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(.25,1,.5,1);
}

/* ---- SCENE: HERO ---- */
.scene--hero {
    min-height: 100lvh;
    padding: 2rem;
}
.hero-titles {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    will-change: transform;
}
.hero-line {
    overflow: hidden;
    line-height: 1.15;
    padding-bottom: 0.05em;
}
.hero-line.revealed {
    overflow: visible;
}
.hero-line-inner {
    font-family: var(--sans);
    font-size: clamp(2.4rem, 9vw, 10rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    will-change: transform;
    display: block;
    text-shadow:
        -2px 0 rgba(212,148,58,0),
        2px 0 rgba(181,56,42,0);
    transition: text-shadow 1s ease;
}
.hero-line-inner.ca-active {
    text-shadow:
        0 0 30px rgba(232,226,214,0.08),
        0 0 60px rgba(232,226,214,0.04);
}
.hero-line-inner.accent {
    font-family: var(--serif);
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
}
.hero-line-inner.accent.ca-active {
    text-shadow:
        0 0 20px rgba(212,148,58,0.6),
        0 0 50px rgba(212,148,58,0.3),
        0 0 100px rgba(212,148,58,0.15),
        0 0 160px rgba(181,100,30,0.08);
}

/* Hero character spans */
.hero-line-inner .char {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hero-line-inner:hover .char {
    animation: charWave 0.5s ease forwards;
}
@keyframes charWave {
    0% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
}
.scroll-indicator-text {
    font-size: 0.55rem;
    letter-spacing: 0.4em;
    font-weight: 400;
    color: var(--dim);
}
.scroll-indicator-line {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, var(--dim), transparent);
    animation: pulse-line 2s ease-in-out infinite;
}
@keyframes pulse-line {
    0%,100% { transform: scaleY(1); opacity: 0.6; }
    50% { transform: scaleY(0.5); opacity: 0.2; }
}
@media (max-height: 700px) {
    .scroll-indicator { display: none; }
}

/* ---- SCENE: TICKER ---- */
.scene--ticker {
    min-height: auto;
    padding: 1.8rem 0;
    border-top: 1px solid rgba(232,226,214,0.06);
    border-bottom: 1px solid rgba(232,226,214,0.06);
}
.ticker { width: 100%; overflow: hidden; }
.ticker-track {
    display: flex;
    gap: 0;
    white-space: nowrap;
    animation: tickerMove 25s linear infinite;
    font-family: var(--sans);
    font-size: clamp(0.8rem, 1.4vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--dim);
    will-change: transform;
}
.ticker-item { padding: 0 1.5rem; transition: color 0.3s; }
.ticker-item:hover { color: var(--fg); }
.ticker-sep { padding: 0 0.5rem; color: var(--accent); opacity: 0.5; }
@keyframes tickerMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- SCENE: MANIFESTO ---- */
.scene--manifesto {
    min-height: 100vh;
    padding: 4rem 2rem;
}
.manifesto { text-align: center; }
.manifesto-line {
    overflow: visible;
    line-height: 1.0;
    padding-bottom: 0.08em;
}
.manifesto-line span {
    display: block;
    font-family: var(--sans);
    font-size: clamp(2.5rem, 9vw, 9rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    transform: translateY(105%);
    opacity: 0;
    will-change: transform;
}
.manifesto-line--accent span {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
    text-shadow:
        0 0 20px rgba(212,148,58,0.5),
        0 0 50px rgba(212,148,58,0.25),
        0 0 100px rgba(212,148,58,0.12),
        0 0 160px rgba(181,100,30,0.06);
}

/* ---- SCENE: PHILOSOPHY ---- */
.scene--philosophy {
    min-height: 80vh;
    padding: 6rem 3rem;
    align-items: center;
    justify-content: center;
}
.philosophy {
    max-width: 750px;
    width: 100%;
}
.philosophy-number {
    font-family: var(--sans);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--accent);
    margin-bottom: 2.5rem;
    font-weight: 400;
    opacity: 0;
}
.philosophy-line {
    font-family: var(--serif);
    font-size: clamp(1.15rem, 2.4vw, 1.65rem);
    font-weight: 400;
    line-height: 1.75;
    color: var(--dim);
    opacity: 0;
    transform: translateY(25px);
    will-change: transform, opacity, color;
}
.philosophy-line .highlight-wrap {
    background-image: linear-gradient(rgba(212,148,58,0.08), rgba(212,148,58,0.08));
}

/* ---- LIGHT LEAK ---- */
.light-leak {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(ellipse at center, rgba(212,148,58,0.18) 0%, rgba(181,56,42,0.06) 40%, transparent 70%);
    will-change: opacity;
}

/* ---- SCENE: FILM STRIP (Horizontal Scroll) ---- */
.scene--filmstrip {
    min-height: auto;
    height: auto;
    overflow: visible;
}
.filmstrip-pin {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    background: rgba(232,226,214,0.02);
    border-top: 1px solid rgba(232,226,214,0.06);
    border-bottom: 1px solid rgba(232,226,214,0.06);
}

/* Sprocket holes */
.filmstrip-sprockets {
    height: 24px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 60px;
    overflow: hidden;
}
.filmstrip-sprockets::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(232,226,214,0.08);
    position: absolute;
    left: 0;
}

.filmstrip-track {
    display: flex;
    will-change: transform;
}

.filmstrip-frame {
    flex-shrink: 0;
    width: 80vw;
    max-width: 500px;
    height: 60vh;
    min-height: 400px;
    border-right: 1px solid rgba(232,226,214,0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4rem;
    position: relative;
}
.filmstrip-frame:last-child { border-right: none; }

.filmstrip-frame-number {
    font-family: var(--sans);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--accent);
    margin-bottom: 2rem;
    font-weight: 400;
}

.filmstrip-title {
    font-family: var(--sans);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.95;
    margin-bottom: 1.5rem;
}
.filmstrip-title em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

.filmstrip-desc {
    font-family: var(--serif);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dim);
    max-width: 320px;
}

/* ---- SCENE: STATEMENT ---- */
.scene--statement {
    min-height: 100vh;
    padding: 4rem 2rem;
}
.statement { text-align: center; }
.statement-line {
    overflow: visible;
    line-height: 1.0;
    padding-bottom: 0.08em;
}
.statement-line span {
    display: block;
    font-family: var(--sans);
    font-size: clamp(2.2rem, 8vw, 8rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    transform: translateY(105%);
    opacity: 0;
    will-change: transform;
}
.statement-line--accent span {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
    text-shadow:
        0 0 20px rgba(212,148,58,0.5),
        0 0 50px rgba(212,148,58,0.25),
        0 0 100px rgba(212,148,58,0.12),
        0 0 160px rgba(181,100,30,0.06);
}

/* ---- SCENE: CONTACT ---- */
.scene--contact {
    min-height: 80vh;
    flex-direction: column;
}
.contact {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.contact-label {
    font-family: var(--sans);
    font-size: 0.6rem;
    letter-spacing: 0.5em;
    color: var(--dim);
    font-weight: 400;
    opacity: 0;
}
.contact-email { display: block; position: relative; }
.contact-email-line {
    font-family: var(--sans);
    font-size: clamp(1.8rem, 5.5vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    display: inline-block;
    position: relative;
    transition: color 0.4s ease;
}
.contact-email-line::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--highlight);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(.25,1,.5,1);
    z-index: -1;
}
.contact-email:hover .contact-email-line::before { transform: scaleX(1); }
.contact-email:hover .contact-email-line {
    text-shadow:
        0 0 20px rgba(212,148,58,0.5),
        0 0 50px rgba(212,148,58,0.25),
        0 0 100px rgba(212,148,58,0.1);
}
.contact-email::after {
    content: '';
    display: block;
    width: 0; height: 2px;
    background: var(--accent);
    margin: 0.5rem auto 0;
    transition: width 0.5s cubic-bezier(.25,1,.5,1);
}
.contact-email:hover::after { width: 100%; }
.contact-location {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--dim);
    font-weight: 300;
    opacity: 0;
}

/* ---- FOOTER ---- */
.footer {
    border-top: 1px solid rgba(232,226,214,0.06);
    padding: 2rem 3rem;
}
.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-brand {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-shadow: 0 0 15px rgba(212,148,58,0.2), 0 0 40px rgba(212,148,58,0.06);
}
.footer-copy {
    font-size: 0.6rem;
    color: var(--dim);
    letter-spacing: 0.08em;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a {
    font-size: 0.6rem;
    color: var(--dim);
    letter-spacing: 0.08em;
    transition: color 0.3s;
    position: relative;
}
.footer-legal a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.3s cubic-bezier(.25,1,.5,1);
}
.footer-legal a:hover { color: var(--fg); }
.footer-legal a:hover::after { width: 100%; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
    body { cursor: auto; }
    .cursor { display: none; }
    .nav { padding: 1.2rem 1.5rem; }
    .nav-email { display: none; }
    .scene--philosophy { padding: 4rem 1.5rem; }
    .filmstrip-frame { width: 85vw; padding: 2rem; }
    .footer { padding: 1.5rem; }
    .footer-row { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-legal { gap: 1rem; }
}
