:root {
    --bg: #f8f6f1;
    --bg-dark: #1a1816;
    --text: #1a1816;
    --text-light: #f8f6f1;
    --text-muted: #7a7570;
    --accent: #7a7570;
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

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

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

/* ==================== NAVIGATION ==================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem;
    background: transparent;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
    max-width: 100vw;
    --nav-padding: 1.5rem;
    padding-top: var(--nav-padding);
    padding-bottom: var(--nav-padding);
    transition: padding-top 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                padding-bottom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: padding-top, padding-bottom;
}

.nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(26, 24, 22, 0.95) 0%, transparent 100%);
    opacity: var(--nav-bg-opacity, 0);
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: -1;
    will-change: opacity;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    overflow: hidden;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

.nav-links--left {
    justify-content: flex-start;
}

.nav-links--right {
    justify-content: flex-end;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    height: 2rem;
}

.nav-link:hover {
    opacity: 0.6;
}

.nav-link--cta {
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    height: auto;
}

.nav-link--cta {
    transition: background 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link--cta:hover {
    background: var(--text-light);
    color: var(--bg-dark);
    opacity: 1;
}

/* CENTER LOGO */
.nav-notch {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: transparent !important;
    z-index: 1;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 24, 22, 0.5) 0%,
        rgba(26, 24, 22, 0.05) 20%,
        rgba(26, 24, 22, 0.05) 70%,
        rgba(26, 24, 22, 0.5) 100%
    );
}

.hero-tagline {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.8;
    letter-spacing: 0.02em;
    z-index: 2;
}

/* ==================== ABOUT ==================== */
.about {
    padding: 6rem 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    overflow: visible;
}

.about-statement {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--bg-dark);
    line-height: 1.5;
    margin: 0;
    padding: 1rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
}

/* ==================== FILMS ==================== */
.films {
    padding: 6rem 3rem;
    background: var(--bg-dark);
    color: var(--text-light);
}

.films-header {
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.films-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
}

.films-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.film-card {
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.film-card:hover {
    background: rgba(255,255,255,0.03);
    border-color: var(--accent);
}

.film-card-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.film-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.film-card:hover .film-title {
    color: var(--accent);
}

.film-director {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.films-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: none;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.films-all:hover {
    color: var(--accent);
}

.films-all svg {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.films-all:hover svg {
    transform: translate(2px, -2px);
}

/* ==================== FEATURES ==================== */
.features {
    padding: 2rem 3rem 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item {
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.feature-tag {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--text);
    padding-bottom: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ==================== CTA ==================== */
.cta {
    padding: 5rem 3rem 4rem;
    background: linear-gradient(135deg, #e8e4db 0%, #f8f6f1 100%);
}

.cta-content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.cta-sub {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.cta-input-glass {
    position: relative;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-input-glass .border-animated {
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent), transparent, var(--accent));
    background-size: 200% 200%;
    opacity: 0;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cta-input-glass:focus-within {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.cta-input-glass:focus-within .border-animated {
    opacity: 1;
}

.cta-input {
    width: 100%;
    padding: 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.cta-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.cta-btn {
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--bg-dark);
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

/* ==================== CONTACT ==================== */
.contact {
    padding: 4rem 3rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-link:hover {
    color: var(--accent);
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(0,0,0,0.08);
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.footer-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-right {
    text-align: right;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .nav {
        padding: 1.25rem 1.5rem;
    }

    .nav-logo {
        font-size: 2rem;
    }

    .nav-link {
        font-size: 0.7rem;
        letter-spacing: 0.05em;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links--left {
        gap: 0.75rem;
    }

    .hero-tagline {
        left: 2rem;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 22vw;
        padding: 0 1rem;
    }

    .about {
        padding: 5rem 2rem;
    }

    .films {
        padding: 5rem 2rem;
    }

    .films-grid {
        grid-template-columns: 1fr;
    }

    .features {
        padding: 5rem 2rem;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .cta {
        padding: 5rem 2rem;
    }

    .cta-form {
        flex-direction: column;
        max-width: 100%;
    }
    
    .cta-input-glass {
        padding: 0.75rem 1rem;
    }

    .contact {
        padding: 5rem 2rem;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        padding: 2rem;
    }

    .footer-right {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .nav-links--left .nav-link:nth-child(2) {
        display: none;
    }

    .nav-link {
        font-size: 0.65rem;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .nav-logo {
        font-size: 1.85rem;
    }
}

@media (max-width: 600px) {
    .nav {
        padding: 1rem 1.5rem;
    }

    .nav-links--left {
        display: none;
    }

    .nav-notch {
        position: relative;
        left: auto;
        transform: none;
    }

    .nav-logo {
        font-size: 1.75rem;
    }

    .nav-links--right {
        flex: 0;
    }

    .nav-link--cta {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .hero-tagline {
        top: auto;
        bottom: 30%;
        transform: none;
        left: 1.5rem;
        right: 1.5rem;
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 26vw;
    }

    .about-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0.75rem 1rem;
    }

    .nav-logo {
        font-size: 1.5rem;
    }

    .nav-link--cta {
        padding: 0.4rem 0.85rem;
        font-size: 0.7rem;
    }
}
