/* ========================================
   LINDSAY HARTLEY — Director & Writer
   Scrolling layout: Reel → Filters → Films
   ======================================== */

:root {
    --bg: #050505;
    --text: #e8e4df;
    --text-dim: #8a847c;
    --text-muted: #4a4640;
    --accent: #c9917a;
    --border: rgba(232, 228, 223, 0.12);

    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
    --font-body: 'Inter', -apple-system, sans-serif;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-nv: cubic-bezier(.77, 0, .175, 1);
}

.loading-screen {
    position: fixed;
    inset: 0;
    background: #0c100e;
    z-index: 9999;
    transition: opacity 1s ease;
}
.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
    font-family: var(--font-mono);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    cursor: none;
}
/* Cinematic Letterbox Bars */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
    border-top: 14px solid #000;
    border-bottom: 14px solid #000;
    box-sizing: border-box;
}

/* Color Temperature Breathing */
@keyframes tempBreath {
    0%, 100% { filter: sepia(0) hue-rotate(0deg); }
    25% { filter: sepia(0.03) hue-rotate(-3deg); }
    50% { filter: sepia(0.05) hue-rotate(2deg); }
    75% { filter: sepia(0.02) hue-rotate(-1deg); }
}

.page-content {
    animation: tempBreath 30s ease-in-out infinite;
}

a { color: inherit; text-decoration: none; cursor: none; }
button { border: none; background: none; cursor: none; font-family: inherit; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--bg); }

/* Page Load Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.top-bar { animation: fadeIn 0.8s var(--ease) both; animation-delay: 0.1s; }
.hero { animation: fadeIn 1s var(--ease) both; animation-delay: 0.3s; }
.films-section { animation: fadeIn 0.8s var(--ease) both; animation-delay: 0.6s; }
.bottom-bar { animation: fadeIn 0.8s var(--ease) both; animation-delay: 0.8s; }

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: width 0.2s var(--ease-nv), height 0.2s var(--ease-nv), opacity 0.2s, border-color 0.2s;
    transform: translate(-50%, -50%);
    opacity: 0;
}
.cursor.visible { opacity: 1; }
.cursor.hovering {
    width: 40px;
    height: 40px;
    border-color: var(--text);
    background: rgba(201, 145, 122, 0.08);
}

/* ========================================
   PILL BUTTONS
   ======================================== */
.pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    border: 1px solid var(--border);
    border-radius: 24px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    opacity: 0.5;
    transition: all 0.6s var(--ease-nv);
    white-space: nowrap;
}
.pill:hover, .pill.active {
    border-color: var(--text);
    color: var(--text);
    opacity: 1;
}

/* Category-colored filter pills */
.filters .pill[data-filter="thriller"].active {
    border-color: #e06060;
    color: #e06060;
}
.filters .pill[data-filter="romance"].active {
    border-color: #e899ac;
    color: #e899ac;
}
.filters .pill[data-filter="holiday"].active {
    border-color: #e8b84a;
    color: #e8b84a;
}
.filters .pill[data-filter="series"].active {
    border-color: #8ac8d9;
    color: #8ac8d9;
}
.filters .pill[data-filter="drama"].active {
    border-color: #b8a0e8;
    color: #b8a0e8;
}
.pill-active {
    border-color: var(--text);
    color: var(--text);
    opacity: 1;
}

/* ========================================
   TOP BAR (fixed)
   ======================================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    text-align: center;
    padding: 20px 24px 12px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 70%, rgba(5,5,5,0) 100%);
}
.top-name {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent), #d4889a, #d4a843, var(--accent));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: nameGradient 12s ease-in-out infinite;
    line-height: 1;
}

@keyframes nameGradient {
    0%, 100% { background-position: 0% 50%; }
    33% { background-position: 100% 50%; }
    66% { background-position: 50% 100%; }
}

.tagline {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Animated line under name */
.top-bar::after {
    content: '';
    display: block;
    width: 120px;
    height: 1px;
    margin: 10px auto 0;
    background: linear-gradient(90deg, transparent, var(--accent), #d4889a, #d4a843, var(--accent), transparent);
    background-size: 300% 100%;
    animation: lineGlow 6s ease-in-out infinite;
}

@keyframes lineGlow {
    0%, 100% { background-position: 0% 50%; opacity: 0.4; }
    50% { background-position: 100% 50%; opacity: 0.8; }
}

/* Sound Toggle */
.sound-toggle {
    display: block;
    margin: 12px auto 0;
    z-index: 200;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #c9917a, #d4889a, #d4a843, #c9917a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: nameGradient 12s ease infinite;
    border: 1px solid;
    border-image: linear-gradient(135deg, #c9917a, #d4889a, #d4a843) 1;
    border-radius: 0;
    padding: 4px 10px;
    opacity: 0.9;
    transition: all 0.6s var(--ease-nv);
}
@supports (background-clip: text) {
    .sound-toggle {
        border: 1px solid #c9917a;
        border-radius: 30px;
    }
}
.sound-toggle:hover {
    opacity: 1;
    filter: brightness(1.3);
}
.sound-toggle.active {
    opacity: 1;
    background: linear-gradient(135deg, #c9917a, #d4889a, #d4a843);
    -webkit-background-clip: initial;
    -webkit-text-fill-color: var(--bg);
    background-clip: initial;
    color: var(--bg);
    border-color: transparent;
}

/* ========================================
   PAGE CONTENT (scrollable)
   ======================================== */
.page-content {
    padding-top: 85px;
    padding-bottom: 80px;
}

/* ========================================
   HERO SECTION: Quote + Reel + Networks
   ======================================== */
.hero {
    text-align: center;
    padding: 10px clamp(24px, 6vw, 80px) 30px;
}

.director-statement {
    margin-bottom: 16px;
}
.director-statement span {
    font-family: var(--font-serif);
    font-size: 16px;
    font-style: italic;
    color: var(--text-dim);
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.typewriter-cursor {
    font-style: normal;
    color: var(--accent);
    animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.reel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
}
.reel-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(201, 145, 122, 0.08), rgba(180, 100, 80, 0.05), transparent),
        radial-gradient(ellipse at center, transparent 50%, rgba(5, 5, 5, 0.6) 100%);
    pointer-events: none;
}
.reel-container video,
.reel-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: filter 0.8s var(--ease-nv);
}
.reel-container:hover video,
.reel-container:hover iframe {
    filter: brightness(1.1);
}

.hero .networks {
    display: none;
}
.networks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 0 10px;
}
.networks span {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
}
.net-dot {
    width: 3px;
    height: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    display: inline-block;
}

/* Cinematic Reveal Animations */
@keyframes revealUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes revealScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes curtainOpen {
    from { clip-path: inset(50% 0); }
    to { clip-path: inset(0% 0); }
}

.director-statement {
    animation: revealUp 1s var(--ease-nv) both;
    animation-delay: 0.4s;
}

.reel-container {
    animation: curtainOpen 1.4s var(--ease-nv) both, revealScale 1.4s var(--ease-nv) both;
    animation-delay: 0.6s;
}

.filters .pill {
    animation: revealUp 0.6s var(--ease-nv) both;
}
.filters .pill:nth-child(1) { animation-delay: 0.8s; }
.filters .pill:nth-child(2) { animation-delay: 0.9s; }
.filters .pill:nth-child(3) { animation-delay: 1.0s; }
.filters .pill:nth-child(4) { animation-delay: 1.1s; }
.filters .pill:nth-child(5) { animation-delay: 1.2s; }
.filters .pill:nth-child(6) { animation-delay: 1.3s; }

/* Scroll Arrow */
.scroll-arrow {
    text-align: center;
    font-size: 20px;
    color: var(--text-muted);
    padding: 20px 0 10px;
    animation: arrowBounce 2s ease-in-out infinite;
    opacity: 0.4;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(8px); opacity: 0.7; }
}

/* ========================================
   FILMS SECTION
   ======================================== */
.films-section {
    padding: 40px clamp(40px, 8vw, 120px);
    max-width: 1400px;
    margin: 0 auto;
}

/* Category Filters */
.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

/* ========================================
   FILM GRID
   ======================================== */
.film-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}
.film-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Film Item (wrapper for link + inline preview) */

.film-link {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 10px 10px 10px 20px;
    transition: all 0.6s var(--ease-nv);
    position: relative;
    display: block;
    z-index: 5;
}
.film-link:hover {
    color: var(--text);
    transform: translateX(15px);
}

@media (hover: none) {
    .film-link:hover {
        transform: none;
    }
    .film-link::before {
        display: none;
    }
}

.film-link[data-cat="thriller"]:hover {
    color: #e06060;
}
.film-link[data-cat="romance"]:hover {
    color: #e899ac;
}
.film-link[data-cat="holiday"]:hover {
    color: #e8b84a;
}
.film-link[data-cat="series"]:hover {
    color: #8ac8d9;
}
.film-link[data-cat="drama"]:hover {
    color: #b8a0e8;
}
.film-link::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.6s var(--ease-nv);
}
.film-link:hover::before {
    opacity: 1;
}

.film-link .year {
    font-size: 9px;
    color: var(--text-muted);
    margin-left: 6px;
    opacity: 0.5;
    transition: opacity 0.6s var(--ease-nv);
}
.film-link:hover .year {
    opacity: 1;
}

/* Stagger entrance */
.film-link.stagger-in {
    opacity: 0;
    transform: translateY(10px);
    animation: staggerReveal 0.6s var(--ease-nv) forwards;
}
@keyframes staggerReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* Filtered states */
.film-link.filtered-out {
    opacity: 0.08;
    pointer-events: none;
}
.film-link.filtered-in[data-cat="thriller"] { color: #e06060 !important; }
.film-link.filtered-in[data-cat="romance"] { color: #e899ac !important; }
.film-link.filtered-in[data-cat="holiday"] { color: #e8b84a !important; }
.film-link.filtered-in[data-cat="series"] { color: #8ac8d9 !important; }
.film-link.filtered-in[data-cat="drama"] { color: #b8a0e8 !important; }

/* ========================================
   INLINE VIDEO PREVIEW (expands under title)
   ======================================== */
.film-item {
    position: relative;
}
.inline-preview {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    opacity: 0;
    transition: opacity 0.4s var(--ease-nv);
    pointer-events: none;
    z-index: 20;
}
.inline-preview.active {
    opacity: 1;
}
.inline-preview video,
.inline-preview img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 3px;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* ========================================
   BOTTOM BAR (fixed)
   ======================================== */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 20px 28px;
    background: linear-gradient(0deg, var(--bg), rgba(5,5,5,0.8), transparent);
}
.bottom-link {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: color 0.6s var(--ease-nv);
}
.bottom-link:hover { color: var(--text); }

/* Hamburger Menu (hidden on desktop) */
.hamburger {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 300;
    width: 44px;
    height: 44px;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: rgba(5, 5, 5, 0.9);
    border: 1px solid var(--border);
    border-radius: 50%;
}
.hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text-dim);
    transition: all 0.4s var(--ease-nv);
    margin: 0 auto;
}
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-menu {
    display: none;
    position: fixed;
    bottom: 74px;
    right: 20px;
    z-index: 299;
    background: rgba(5, 5, 5, 0.95);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 24px;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: all 0.4s var(--ease-nv);
}
.mobile-menu.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}
.mobile-menu-link {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: color 0.4s var(--ease-nv);
}
.mobile-menu-link:hover {
    color: var(--text);
}

/* ========================================
   ABOUT OVERLAY
   ======================================== */
.about-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--bg);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: opacity 0.8s var(--ease-nv), clip-path 0.8s var(--ease-nv), visibility 0.8s;
    overflow-y: auto;
    padding: 40px 0;
}
.about-overlay.open {
    opacity: 1;
    visibility: visible;
    clip-path: inset(0 0 0 0);
}
.about-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 210;
    text-align: center;
    padding: 20px 24px 16px;
    background: linear-gradient(180deg, var(--bg), rgba(5,5,5,0.9), transparent);
}
.about-top-bar .top-name {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent), #d4889a, #d4a843, var(--accent));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: nameGradient 12s ease-in-out infinite;
    transition: opacity 0.6s var(--ease-nv);
    opacity: 0.9;
}
.about-top-bar .top-name::after {
    content: '';
    display: block;
    width: 120px;
    height: 1px;
    margin: 10px auto 0;
    background: linear-gradient(90deg, transparent, var(--accent), #d4889a, #d4a843, var(--accent), transparent);
    background-size: 300% 100%;
    animation: lineGlow 6s ease-in-out infinite;
}
.about-top-bar .top-name:hover {
    opacity: 1;
}
.about-close {
    position: fixed;
    top: 24px;
    right: 32px;
    font-size: 32px;
    color: var(--text-dim);
    z-index: 211;
    transition: color 0.3s;
}
.about-close:hover { color: var(--text); }

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(40px, 6vw, 100px);
    max-width: 1000px;
    padding: 60px clamp(24px, 4vw, 60px);
    align-items: center;
}
.about-photo {
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 4px;
}
.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}
.about-text h2 {
    font-family: var(--font-serif);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--accent), #d4889a, #d4a843, var(--accent));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: nameGradient 12s ease-in-out infinite;
}
.about-text p {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-dim);
    margin-bottom: 16px;
}
.about-roles {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.about-links .pill,
.about-roles .pill {
    opacity: 1 !important;
    color: var(--text-dim) !important;
    border-color: var(--text-dim) !important;
    cursor: pointer;
    transition: all 0.4s var(--ease-nv);
}

.about-links .pill:hover,
.about-roles .pill:hover {
    color: var(--text) !important;
    border-color: var(--accent) !important;
    background: rgba(201, 145, 122, 0.1) !important;
    transform: translateY(-2px);
}

.about-bts { margin-top: 32px; }
.about-bts h3 {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.bts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}
.bts-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 3px;
    transition: opacity 0.6s var(--ease-nv);
}
.bts-grid img:hover { opacity: 0.8; }
.about-links {
    display: flex;
    gap: 8px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* ========================================
   PROJECT DETAIL OVERLAY
   ======================================== */
.project-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    clip-path: inset(100% 0 0 0);
    transition: opacity 0.8s var(--ease-nv), clip-path 0.8s var(--ease-nv), visibility 0.8s;
    overflow-y: auto;
}
.project-overlay.open {
    opacity: 1;
    visibility: visible;
    clip-path: inset(0 0 0 0);
}
.project-home-pill {
    border-color: var(--accent) !important;
    background: linear-gradient(135deg, var(--accent), #d4889a, #d4a843, var(--accent)) !important;
    background-size: 300% 300% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: nameGradient 12s ease-in-out infinite !important;
    opacity: 1 !important;
}
.project-home-pill:hover {
    -webkit-text-fill-color: var(--bg) !important;
    background: var(--accent) !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}

.project-home-btn {
    display: inline-block;
    transition: opacity 0.6s var(--ease-nv);
    opacity: 0.9;
}
.project-home-btn:hover {
    opacity: 1;
}
.project-header {
    text-align: center;
    padding: 80px 24px 48px;
}
.project-header .top-name {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent), #d4889a, #d4a843, var(--accent));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: nameGradient 12s ease-in-out infinite;
    margin-bottom: 32px;
    line-height: 1;
}
.project-header .top-name::after {
    content: '';
    display: block;
    width: 120px;
    height: 1px;
    margin: 10px auto 0;
    background: linear-gradient(90deg, transparent, var(--accent), #d4889a, #d4a843, var(--accent), transparent);
    background-size: 300% 100%;
    animation: lineGlow 6s ease-in-out infinite;
}
.project-title {
    font-family: var(--font-serif);
    font-size: clamp(40px, 8vw, 100px);
    font-weight: 400;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 24px;
}
.project-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.project-gallery {
    padding: 0 clamp(16px, 3vw, 48px) 120px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}
.project-gallery img {
    width: 100%;
    display: block;
}
.project-video {
    width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 4px;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}
.project-video iframe,
.project-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ========================================
   MINI OVERLAYS (Writer / Actress)
   ======================================== */
.mini-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(5, 5, 5, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s var(--ease-nv), visibility 0.6s;
}
.mini-overlay.open {
    opacity: 1;
    visibility: visible;
}
.mini-overlay-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 36px;
    color: var(--text-dim);
    z-index: 301;
    transition: color 0.3s;
}
.mini-overlay-close:hover {
    color: var(--text);
}
.mini-overlay-content {
    max-width: 500px;
    padding: 40px;
    text-align: center;
}
.mini-overlay-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 400;
    margin-bottom: 32px;
    background: linear-gradient(135deg, var(--accent), #d4889a, #d4a843, var(--accent));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: nameGradient 12s ease-in-out infinite;
}
.credits-list {
    text-align: left;
}
.credit-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.credit-title {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.5px;
    color: var(--text);
}
.credit-year {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
}
.credit-detail {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    text-align: right;
}
.credit-note {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(5, 5, 5, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-nv), visibility 0.4s;
}
.lightbox.open {
    opacity: 1;
    visibility: visible;
}
.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 36px;
    color: var(--text-dim);
    z-index: 501;
    transition: color 0.3s;
}
.lightbox-close:hover {
    color: var(--text);
}

.bts-clickable {
    cursor: pointer;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 900px) {
    .film-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .films-section {
        padding: 30px 32px;
    }
    .about-content {
        gap: 40px;
        padding: 60px 32px;
    }
    .bts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Romance Reel Hover Preview */
.romance-reel-preview {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 45vw;
    max-width: 500px;
    overflow: hidden;
    border-radius: 8px;
    z-index: 10000;
    display: none;
    pointer-events: none;
    background: #000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9);
}
.romance-reel-preview video {
    width: 100%;
    display: block;
    border-radius: 4px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Image blur-to-sharp loading */
.project-gallery img {
    filter: blur(8px);
    transition: filter 0.6s ease;
}
.project-gallery img.loaded {
    filter: blur(0);
}

/* Contact Form Overlay */
.contact-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5,5,5,0.97);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}
.contact-overlay.open {
    display: flex;
}
.contact-close {
    position: fixed;
    top: 24px;
    right: 28px;
    font-size: 32px;
    color: var(--text-dim);
    z-index: 1001;
    transition: color 0.3s ease;
}
.contact-close:hover {
    color: var(--accent);
}
.contact-content {
    max-width: 500px;
    width: 90%;
    padding: 40px 0;
}
.contact-content h2 {
    font-family: var(--font-serif);
    font-size: 32px;
    background: linear-gradient(135deg, #c9917a, #d4889a, #d4a843, #c9917a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: nameGradient 12s ease infinite;
    margin-bottom: 8px;
}
.contact-content h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    margin: 12px 0 0;
    background: linear-gradient(90deg, var(--accent), #d4889a, #d4a843);
    background-size: 300% 100%;
    animation: lineGlow 6s ease-in-out infinite;
}
.contact-subtitle {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 32px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-dim);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    padding: 14px 0;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-dim);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}
.contact-submit {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 28px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 30px;
    background: transparent;
    cursor: pointer;
    transition: all 0.6s var(--ease);
}
.contact-submit:hover {
    background: var(--accent);
    color: var(--bg);
}
.contact-thanks {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--accent);
    margin-top: 24px;
}

/* Coming Soon badge */
.coming-soon {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.5;
    margin-left: 8px;
}

/* Scroll arrow clickable */
.scroll-arrow {
    cursor: pointer;
}

/* Gallery parallax effect */
.gallery-wide img,
.gallery-pair img,
.gallery-trio img,
.project-gallery > img {
    transition: filter 0.6s ease, transform 0.3s ease;
}
.gallery-wide:hover img,
.gallery-pair img:hover,
.gallery-trio img:hover,
.project-gallery > img:hover {
    transform: scale(1.02);
}



/* Film cut transition */
.film-cut {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
.film-cut.flash {
    opacity: 1;
}

/* Gallery scroll progress bar */
.gallery-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #d4889a);
    z-index: 10001;
    width: 0%;
    transition: width 0.1s linear;
    pointer-events: none;
    display: none;
}
.gallery-progress.visible {
    display: block;
}

/* Typewriter cursor transform */
.typewriter-cursor.done {
    animation: none;
    opacity: 1;
    font-size: 10px;
    vertical-align: middle;
    margin-left: 4px;
    transition: all 0.5s ease;
}

/* Back to Top Button */
.gallery-top-btn {
    display: block;
    margin: 40px auto 60px;
    padding: 12px 32px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: 'Georgia', serif;
    font-size: 14px;
    letter-spacing: 2px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.6s var(--ease);
}
.gallery-top-btn:hover {
    background: var(--accent);
    color: var(--bg);
}

/* Storyboard Gallery Layout */
.gallery-wide {
    width: 100%;
    margin: 4px 0;
}
.gallery-wide img {
    width: 100%;
    display: block;
    object-fit: cover;
}
.gallery-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 4px 0;
}
.gallery-pair img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.gallery-trio {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    margin: 4px 0;
}
.gallery-trio img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

/* Mobile */
@media (max-width: 600px) {
    /* Hide custom cursor on touch devices */
    .cursor { display: none !important; }
    body, a, button { cursor: auto !important; }

    /* Hamburger menu */
    .bottom-bar { display: none !important; }
    .networks { display: none !important; }
    .hamburger { display: flex; }
    .mobile-menu { display: flex; }
    .about-links { display: none !important; }

    /* Gallery layout mobile */
    .gallery-trio { grid-template-columns: 1fr 1fr; }
    .gallery-pair { grid-template-columns: 1fr 1fr; }
    .gallery-top-btn { font-size: 13px; padding: 10px 28px; margin: 30px auto 50px; }

    /* Letterbox bars thinner */
    body::after {
        border-top-width: 6px;
        border-bottom-width: 6px;
    }

    /* Top bar */
    .top-bar {
        padding: 16px 16px 12px;
    }
    .top-name {
        font-size: 22px;
        letter-spacing: 0.05em;
    }
    .tagline {
        font-size: 8px;
        letter-spacing: 2px;
    }
    .top-bar::after {
        display: none;
    }

    /* Sound toggle pill */
    .sound-toggle {
        font-size: 8px;
        padding: 4px 8px;
        letter-spacing: 0.5px;
        margin: 10px auto 0;
    }

    /* Page content */
    .page-content {
        padding-top: 80px;
        padding-bottom: 70px;
    }

    /* Hero */
    .hero {
        padding: 16px 16px 30px;
    }
    .director-statement {
        margin-bottom: 20px;
    }
    .director-statement span {
        font-size: 13px;
    }
    .reel-container {
        border-radius: 3px;
    }

    /* Networks */
    .networks {
        padding: 12px 0 6px;
        gap: 6px;
    }
    .networks span {
        font-size: 7px;
        letter-spacing: 1px;
    }

    /* Filters */
    .filters {
        margin-bottom: 24px;
        gap: 6px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .pill {
        font-size: 10px;
        padding: 6px 14px;
        letter-spacing: 1px;
    }

    /* Films section */
    .films-section {
        padding: 20px 20px;
    }
    .film-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .film-link {
        font-size: 12px;
        padding: 10px 0 10px 12px;
    }
    .film-link:hover {
        transform: translateX(8px);
    }
    .film-link .year {
        font-size: 8px;
    }

    /* Inline preview */
    .inline-preview.active {
        max-height: 180px;
    }

    /* Bottom bar */
    .bottom-bar {
        gap: 16px;
        padding: 14px 16px;
    }
    .bottom-link {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    /* About overlay */
    .about-overlay {
        padding: 20px 0;
    }
    .about-content {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        gap: 24px;
    }
    .about-photo {
        max-width: 240px;
        margin: 0 auto;
    }
    .about-text h2 {
        font-size: 28px;
        text-align: center;
    }
    .about-text p {
        font-size: 13px;
    }
    .about-roles {
        justify-content: center;
    }
    .bts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .about-links {
        justify-content: center;
    }
    .about-close {
        top: 16px;
        right: 20px;
        font-size: 28px;
    }

    /* Project overlay */
    .project-header {
        padding: 60px 16px 32px;
    }
    .project-title {
        font-size: clamp(28px, 7vw, 60px);
    }
    .project-gallery {
        padding: 0 12px 100px;
    }
    .project-close {
        bottom: 30px;
        font-size: 11px;
        padding: 8px 22px;
    }

    /* Mini overlays */
    .mini-overlay-content {
        padding: 24px 20px;
        max-width: 100%;
    }
    .mini-overlay-content h2 {
        font-size: 22px;
    }
    .credit-title {
        font-size: 12px;
    }
    .credit-detail {
        font-size: 9px;
    }
    .mini-overlay-close {
        top: 16px;
        right: 20px;
    }

    /* Lightbox */
    .lightbox img {
        max-width: 95vw;
        max-height: 80vh;
    }
    .lightbox-close {
        top: 16px;
        right: 20px;
    }

    /* Romance reel preview mobile */
    .romance-reel-preview {
        width: 85vw;
        max-width: 85vw;
        bottom: 60px;
    }

    /* About home button mobile */
    .about-top-bar .top-name {
        font-size: 20px;
    }

    /* Scroll arrow mobile */
    .scroll-arrow {
        font-size: 18px;
        padding: 8px;
    }

    /* Inline preview mobile */
    .inline-preview.active {
        max-height: 200px;
    }
    .inline-preview video,
    .inline-preview img {
        max-height: 200px;
        object-fit: cover;
    }

    /* Gallery progress bar mobile */
    .gallery-progress {
        height: 3px;
    }

    /* Film title hover - no transform on touch */
    .film-link:hover {
        transform: none;
    }
    .film-link:active {
        color: var(--accent);
    }

    /* Coming soon badge mobile */
    .coming-soon {
        font-size: 7px;
    }

    /* Project home button mobile */
    .project-home-btn {
        font-size: 18px;
    }

    /* Gallery parallax - disable on mobile for performance */
    .gallery-wide:hover img,
    .gallery-pair img:hover,
    .gallery-trio img:hover,
    .project-gallery > img:hover {
        transform: none;
    }

    /* Contact form mobile */
    .contact-content {
        padding: 60px 20px 40px;
        width: 100%;
    }
    .contact-content h2 {
        font-size: 26px;
    }
    .contact-subtitle {
        font-size: 10px;
    }
    .contact-form input,
    .contact-form textarea {
        font-size: 13px;
        padding: 12px 0;
    }
    .contact-close {
        top: 16px;
        right: 20px;
        font-size: 28px;
    }
}
