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

:root {
    --bg: #090909;
    --text: #e8e4dd;
    --muted: #666;
    --dim: #333;
    --border: rgba(255,255,255,0.06);
}

::selection { background: var(--text); color: var(--bg); }
html { 
    scroll-behavior: auto;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    isolation: auto;
}

img { display: block; }
a { color: inherit; text-decoration: none; }

/* ============ CURSOR ============ */
@media (pointer: fine) {
    body, a, button { cursor: none; }
    
    .cursor {
        width: 44px; height: 44px;
        border: 1px solid rgba(232,228,221,0.3);
        border-radius: 50%;
        position: fixed; top: 0; left: 0;
        pointer-events: none; z-index: 9999;
        transition: width 0.25s, height 0.25s, border-color 0.25s, background 0.25s;
        will-change: transform;
    }
    .cursor.hover {
        width: 70px; height: 70px;
        border-color: rgba(232,228,221,0.6);
        background: rgba(232,228,221,0.06);
    }
    .cursor-dot {
        width: 5px; height: 5px;
        background: var(--text);
        border-radius: 50%;
        position: fixed; top: 0; left: 0;
        pointer-events: none; z-index: 10000;
        will-change: transform;
        mix-blend-mode: difference;
    }
}
@media (pointer: coarse) {
    .cursor, .cursor-dot { display: none; }
}

/* ============ CURSOR TRAIL ============ */
.cursor-trail {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; 
    height: 100vh; 
    height: 100dvh;
    pointer-events: none;
    z-index: 9998;
}

/* ============ FLYING DRONE ============ */
.flying-drone {
    position: fixed;
    font-size: 2.5rem;
    z-index: 10001;
    pointer-events: none;
    opacity: 0;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    transition: opacity 0.3s;
}

/* ============ BACK TO TOP ============ */
.back-to-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 48px; height: 48px;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: none;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem; right: 1.5rem;
        width: 42px; height: 42px;
        cursor: pointer;
    }
}

/* ============ LOADER ============ */
.loader {
    position: fixed; inset: 0;
    background: var(--bg);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: all;
}
.loader.done { 
    opacity: 0; 
    visibility: hidden;
    pointer-events: none;
}

.loader-star {
    font-size: 4rem;
    color: var(--text);
    animation: spinStar 1.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes spinStar {
    0% { transform: rotate(0deg) scale(1); opacity: 0.3; }
    50% { transform: rotate(180deg) scale(1.2); opacity: 1; }
    100% { transform: rotate(360deg) scale(1); opacity: 0.3; }
}

/* ============ NAV ============ */
.nav {
    position: fixed; top: 0; width: 100%; z-index: 10002;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 2.5rem;
    background: transparent;
    pointer-events: auto;
}

.nav-logo, .nav-links {
    mix-blend-mode: difference;
    color: #ffffff;
}

.nav-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800; font-size: 1rem; letter-spacing: 3px;
    cursor: pointer;
    pointer-events: auto;
}
.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav-links { 
    display: flex; gap: 2rem;
}
.nav-links a {
    font-size: 0.82rem; letter-spacing: 1px; position: relative;
    overflow: hidden; display: inline-block;
    cursor: pointer;
    color: inherit;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 100%; height: 1px; background: currentColor;
    transform: translateX(-101%); transition: transform 0.35s cubic-bezier(0.7,0,0.3,1);
}
.nav-links a:hover::after { transform: translateX(0); }

/* ============ HERO ============ */
.hero {
    height: 100vh; height: 100dvh;
    position: relative; overflow: hidden;
    background: var(--bg);
    display: flex; flex-direction: column;
}
.hero-content {
    flex: 1;
    display: flex; flex-direction: column; justify-content: center;
    padding: 0 2.5rem;
}
.hero-tag {
    font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase;
    color: var(--muted); margin-bottom: 1.5rem;
    opacity: 0; animation: fadeUp 0.8s 1.4s forwards;
}
.hero-content h1 { line-height: 1; }
.split-line {
    overflow: hidden; padding: 0.15em 0;
}
.split-line span {
    display: inline-block;
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 8vw, 7rem);
    font-weight: 800; letter-spacing: -2px;
    transform: translateY(110%);
    animation: slideUp 0.9s cubic-bezier(0.65,0,0.35,1) forwards;
}
.split-line:nth-child(2) span { animation-delay: 0.1s; }
.split-line:nth-child(3) span { animation-delay: 0.2s; }

.hero-bottom {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-top: 2rem;
    opacity: 0; animation: fadeUp 0.8s 1.6s forwards;
}
.hero-info {
    display: flex; gap: 2rem;
    font-size: 0.75rem; letter-spacing: 1.5px; color: var(--muted);
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.8rem; padding-bottom: 2rem;
    opacity: 0; animation: fadeUp 0.8s 2s forwards;
}
.scroll-dot {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--muted), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.2; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}
.scroll-indicator span {
    font-size: 0.65rem; letter-spacing: 3px; text-transform: uppercase;
    color: var(--dim);
}
@keyframes slideUp { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ============ FLOATING ELEMENTS ============ */
.floating-elements {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: fadeIn 1s 1.5s forwards;
}

.float-el {
    position: absolute;
    color: var(--dim);
    font-size: 2rem;
    opacity: 0.15;
    will-change: transform;
    animation: gentleFloat var(--duration, 12s) ease-in-out infinite;
}

.float-small {
    font-size: 1rem;
    opacity: 0.1;
}

.float-medium {
    font-size: 1.8rem;
    opacity: 0.15;
}

.float-large {
    font-size: 2.5rem;
    opacity: 0.2;
}

.float-el:nth-child(1) { --duration: 14s; animation-delay: 0s; }
.float-el:nth-child(2) { --duration: 18s; animation-delay: 2s; }
.float-el:nth-child(3) { --duration: 12s; animation-delay: 4s; }
.float-el:nth-child(4) { --duration: 16s; animation-delay: 1s; }
.float-el:nth-child(5) { --duration: 15s; animation-delay: 6s; }
.float-el:nth-child(6) { --duration: 20s; animation-delay: 3s; }
.float-el:nth-child(7) { --duration: 13s; animation-delay: 8s; }
.float-el:nth-child(8) { --duration: 17s; animation-delay: 5s; }
.float-el:nth-child(9) { --duration: 14.5s; animation-delay: 1.5s; }
.float-el:nth-child(10) { --duration: 19s; animation-delay: 7s; }
.float-el:nth-child(11) { --duration: 13.5s; animation-delay: 9s; }
.float-el:nth-child(12) { --duration: 16.5s; animation-delay: 2.5s; }
.float-el:nth-child(13) { --duration: 15.5s; animation-delay: 4.5s; }
.float-el:nth-child(14) { --duration: 21s; animation-delay: 6.5s; }
.float-el:nth-child(15) { --duration: 14.2s; animation-delay: 10s; }

@keyframes gentleFloat {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg);
    }
    25% { 
        transform: translate(8px, -12px) rotate(2deg);
    }
    50% { 
        transform: translate(-5px, -8px) rotate(-1deg);
    }
    75% { 
        transform: translate(10px, -5px) rotate(3deg);
    }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ============ MARQUEE ============ */
.marquee {
    padding: 1.2rem 0; overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.marquee-dark {
    background: var(--text); color: var(--bg);
    border-color: transparent;
}
.marquee-track {
    display: flex; width: max-content;
    animation: scroll 25s linear infinite;
}
.marquee-reverse { animation-direction: reverse; }
.marquee-content {
    font-family: 'Syne', sans-serif;
    font-size: 0.78rem; font-weight: 600;
    letter-spacing: 3px; white-space: nowrap;
    padding-right: 0;
}
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ WORK ============ */
.work { padding: 8rem 0 6rem; }

.section-intro { padding: 0 2.5rem; margin-bottom: 4rem; }
.section-num {
    display: block; font-size: 0.7rem; color: var(--muted);
    letter-spacing: 3px; margin-bottom: 1rem;
}
.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800; line-height: 1.1; letter-spacing: -1px;
}

/* ---- Editorial Blocks ---- */
.editorial { display: flex; flex-direction: column; gap: 5rem; max-width: 1100px; margin: 0 auto; }

.ed-img {
    overflow: hidden; border-radius: 6px; position: relative;
    -webkit-user-select: none; user-select: none;
}
.ed-img::after {
    content: ''; position: absolute; inset: 0;
    z-index: 2;
}
.ed-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
    will-change: transform;
    -webkit-user-drag: none; user-drag: none;
    pointer-events: none;
}
.ed-img:hover img { transform: scale(1.04); }

.ed-meta {
    display: flex; align-items: center; gap: 1.5rem;
    padding: 1rem 0.5rem 0;
}
.ed-num {
    font-size: 0.7rem; color: var(--dim); letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
}
.ed-label { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.5px; }

/* Cinema (wide hero shot) — landscape */
.ed-cinema {
    aspect-ratio: 16 / 9;
    margin: 0 2.5rem; width: calc(100% - 5rem);
}

/* Landscape image */
.ed-landscape { aspect-ratio: 16 / 9; }

/* Portrait image */
.ed-portrait { aspect-ratio: 9 / 16; }

/* Portrait center block */
.ed-portrait-center {
    display: flex; flex-direction: column; align-items: center;
    padding: 0 2.5rem;
}
.ed-portrait-hero {
    aspect-ratio: 9 / 16;
    max-width: 420px; width: 100%;
}

/* Duo offset */
.ed-duo {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2rem; padding: 0 2.5rem;
    align-items: start;
}
.ed-duo-right { margin-top: 4rem; }
.ed-duo .ed-img:not(.ed-landscape):not(.ed-portrait) { aspect-ratio: 16 / 9; }

/* Quote */
.ed-quote {
    padding: 4rem 2.5rem;
    max-width: 800px; margin: 0 auto;
    text-align: center;
}
.ed-quote blockquote {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 500; line-height: 1.5;
    font-style: italic; color: var(--muted);
}

/* Full bleed — landscape */
.ed-full { position: relative; }
.ed-full-img {
    width: 100%; aspect-ratio: 16 / 9;
    border-radius: 0;
}
.ed-meta-overlay {
    position: absolute; bottom: 1.5rem; left: 2.5rem;
    color: rgba(255,255,255,0.7);
}

/* Trio staggered — all landscape */
.ed-trio {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; padding: 0 2.5rem;
    align-items: start;
}
.ed-trio-2 { margin-top: 3rem; }
.ed-trio-3 { margin-top: 6rem; }
.ed-trio .ed-img { aspect-ratio: 16 / 10; }

/* Asymmetric — both landscape */
.ed-asym {
    display: grid; grid-template-columns: 1.5fr 1fr;
    gap: 2rem; padding: 0 2.5rem;
    align-items: end;
}
.ed-asym-big .ed-img { aspect-ratio: 16 / 10; }
.ed-asym-small .ed-img { aspect-ratio: 16 / 10; }
.ed-asym-small { margin-bottom: 2rem; }

/* End row — landscape */
.ed-end { padding: 0 2.5rem; }
.ed-end-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.ed-end-item .ed-img { aspect-ratio: 16 / 10; }

/* Finale */
.ed-finale { padding: 0; }
.ed-finale .ed-cinema { margin: 0; width: 100%; border-radius: 0; }
.ed-finale .ed-meta { padding-left: 2.5rem; }

/* ============ ABOUT ============ */
.about { padding: 10rem 0 8rem; }

.about-profile {
    display: flex; justify-content: center;
    margin-bottom: 4rem;
}
.profile-img {
    width: 140px; height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    transition: opacity 0.7s cubic-bezier(0.25,0.46,0.45,0.94),
                transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.about-profile.vis .profile-img { opacity: 1; transform: scale(1); }

.about-grid {
    padding: 0 2.5rem;
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 6rem; align-items: start;
    max-width: 1100px;
}
.about-lead {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 600; line-height: 1.4;
    margin-bottom: 1.5rem;
}
.about-body {
    font-size: 0.95rem; color: var(--muted);
    line-height: 1.9;
}

.about-facts {
    display: flex; flex-direction: column; gap: 2.5rem;
    border-left: 1px solid var(--border);
    padding-left: 3rem;
}
.fact {
    display: flex; flex-direction: column; gap: 0.4rem;
}
.fact-label {
    font-size: 0.7rem; color: var(--dim);
    letter-spacing: 2px; text-transform: uppercase;
}
.fact-value {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem; font-weight: 600;
    letter-spacing: 0.5px;
}

/* ============ CONTACT ============ */
.contact { padding: 8rem 0 5rem; }
.contact-inner { padding: 0 2.5rem; }
.contact-heading h2 { margin-bottom: 3rem; }
.contact-heading .split-line span {
    animation: none; transform: none;
    font-size: clamp(2.5rem, 7vw, 6rem);
}

.contact-links { margin-bottom: 3rem; }
.c-link {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.8rem 0;
    border-top: 1px solid var(--border);
    transition: padding 0.35s cubic-bezier(0.7,0,0.3,1);
}
.c-link:last-child { border-bottom: 1px solid var(--border); }
.c-link:hover { padding-left: 1.5rem; }
.c-link-left { display: flex; align-items: center; gap: 2rem; }
.c-link-platform {
    font-size: 0.72rem; color: var(--muted); letter-spacing: 2px;
    text-transform: uppercase; width: 90px;
}
.c-link-handle {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.verified-badge {
    width: 18px; height: 18px;
    display: inline-block;
    flex-shrink: 0;
}
.c-link-arrow {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}
.c-link:hover .c-link-arrow { transform: translate(4px, -4px); }

.contact-note {
    font-size: 0.9rem; color: var(--muted); line-height: 1.8;
}

/* ============ FOOTER ============ */
.footer {
    display: flex; justify-content: space-between;
    padding: 1.8rem 2.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem; color: var(--dim); letter-spacing: 1px;
}

/* ============ LIGHTBOX ============ */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.96); z-index: 99998;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
    max-width: 92vw; max-height: 92vh;
    object-fit: contain; border-radius: 4px;
    transform: scale(0.92); transition: transform 0.35s ease;
}
.lightbox.open img { transform: scale(1); }
.lb-close {
    position: absolute; top: 1.5rem; right: 2rem;
    background: none; border: none; color: var(--text);
    font-size: 1.3rem; cursor: none; letter-spacing: 2px;
    z-index: 2;
}

/* ============ REVEAL ============ */
.reveal-up {
    opacity: 0; transform: translateY(50px);
    transition: opacity 0.7s cubic-bezier(0.25,0.46,0.45,0.94),
                transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reveal-up.vis { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .nav { padding: 1.2rem 1.5rem; }
    .nav-links { gap: 1.2rem; }
    .nav-links a { font-size: 0.72rem; }

    .hero-content { padding: 0 1.5rem; }
    .hero-info { gap: 1rem; flex-wrap: wrap; font-size: 0.7rem; }
    .scroll-indicator { padding-bottom: 1.5rem; }
    .scroll-dot { height: 30px; }

    .section-intro { padding: 0 1.5rem; }

    .ed-cinema { margin: 0 1.5rem; width: calc(100% - 3rem); }
    .ed-duo { grid-template-columns: 1fr; padding: 0 1.5rem; }
    .ed-duo-right { margin-top: 0; }
    .ed-duo .ed-portrait { max-width: 280px; }
    .ed-quote { padding: 2rem 1.5rem; }
    .ed-portrait-center { padding: 0 1.5rem; }
    .ed-portrait-hero { max-width: 300px; }
    .ed-trio { grid-template-columns: 1fr; padding: 0 1.5rem; }
    .ed-trio-2, .ed-trio-3 { margin-top: 0; }
    .ed-asym { grid-template-columns: 1fr; padding: 0 1.5rem; }
    .ed-asym-small { margin-bottom: 0; }
    .ed-end-row { grid-template-columns: 1fr; }
    .ed-end { padding: 0 1.5rem; }
    .ed-finale .ed-meta { padding-left: 1.5rem; }

    .profile-img { width: 110px; height: 110px; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; padding: 0 1.5rem; }
    .about-facts { flex-direction: row; gap: 2.5rem; flex-wrap: wrap; border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 2rem; }

    .contact-inner { padding: 0 1.5rem; }
    .c-link-left { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
    .c-link-platform { width: auto; }

    .footer { padding: 1.5rem; flex-direction: column; gap: 0.3rem; text-align: center; }
}

