@charset "UTF-8";

/* ═══════════════════════════════════════
   SF PRO DISPLAY — LOCAL FONTS
═══════════════════════════════════════ */
@font-face {
    font-family: 'SF Pro Display';
    src: url('fonts/SFPRODISPLAYREGULAR.OTF') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('fonts/SFPRODISPLAYREGULAR.OTF') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('fonts/SFPRODISPLAYMEDIUM.OTF') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('fonts/SFPRODISPLAYBOLD.OTF') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --bg: #0b0c10;
    --card-bg: #111318;
    --text-primary: #fdf3e1;
    --text-muted: #8b929b;
    --text-faded: #4c525c;
    --border: #1a1e26;
    --border-hover: #2a313b;
    --accent: #ffffff;
    --green: #2ecc71;
    --nav-h: 70px;
    --grid-gap: 32px;
    --font-heading: 'SF Pro Display', -apple-system, sans-serif;
    --font-body: 'SF Pro Display', -apple-system, sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

    /* Legacy Aliases for coming-soon and reel */
    --text: var(--text-primary);
    --muted: var(--text-muted);
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
}

body {
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    opacity: 0;
    animation: bodyFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Selection */
::selection {
    background: var(--text-primary);
    color: var(--bg);
}

/* ═══════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════ */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(36px, 6vw, 84px);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(24px, 4vw, 40px);
}

h3 {
    font-size: clamp(20px, 3vw, 28px);
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

.eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
}

/* ═══════════════════════════════════════
   LAYOUT & CARDS
═══════════════════════════════════════ */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4vw;
}

section {
    padding: 80px 0;
    position: relative;
}

.list-section-header {
    margin-bottom: 48px;
}

.divider {
    width: 100%;
    height: 1px;
    background-color: var(--border);
    margin: 40px 0;
}

.ui-card {
    background: #111318;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.5s var(--ease-out-expo);
}

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4vw;
    z-index: 1100; /* Higher than overlay-nav (999) */
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    opacity: 1;
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
#hero {
    height: 90vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    /* Full brightness */
}

.hero-video-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg) 0%, rgba(5, 5, 5, 0.4) 30%, transparent 60%);
}

@media (max-width: 768px) {
    #hero { height: 60vh; min-height: 480px; }
    .hero-video-wrap video { object-position: center; }
}

.hero-content {
    padding: 0 4vw 60px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.hero-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.hero-meta span {
    font-size: 13px;
    color: var(--text-muted);
}

.play-reel-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-primary);
    margin-bottom: 16px;
    opacity: 0.8;
}

.play-reel-btn:hover {
    opacity: 1;
}

.play-reel-btn .circle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s var(--ease-out-expo), border-color 0.4s ease;
}

.play-reel-btn:hover .circle {
    transform: scale(1.05);
    border-color: var(--text-primary);
}

.play-reel-btn svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* ═══════════════════════════════════════
   PORTFOLIO — FULL-BLEED CARDS
═══════════════════════════════════════ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.project-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--card-bg);
}

.project-card-img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s var(--ease-out-expo);
    color: transparent;
}

/* Permanent dark vignette at the bottom */
.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Slide-up overlay with details */
.project-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 32px;
}

.project-card-info {
    transform: translateY(8px);
    transition: transform 0.5s var(--ease-out-expo);
}

.project-card-num {
    display: block;
    font-size: 11px;
    font-family: monospace;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.project-card-title {
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 400;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0;
}

.project-card-role {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 6px 0 0;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease 0.05s, transform 0.4s var(--ease-out-expo) 0.05s;
}

.project-card-cta {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.7);
    margin-top: 16px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s var(--ease-out-expo) 0.1s;
}

/* HOVER STATE */
.project-card:hover .project-card-img img { transform: scale(1.05); }
.project-card:hover .project-card-info    { transform: translateY(0); }
.project-card:hover .project-card-role    { opacity: 1; transform: translateY(0); }
.project-card:hover .project-card-cta     { opacity: 1; transform: translateY(0); }

/* Mobile: single column */
@media (max-width: 768px) {
    .project-grid { grid-template-columns: 1fr; }
    .project-card:first-child { grid-column: auto; aspect-ratio: 4/3; }
}


/* ═══════════════════════════════════════
   FILMOGRAPHY POSTERS (LETTERBOXD STYLE)
═══════════════════════════════════════ */
.film-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}

.film-poster {
    width: 100%;
    aspect-ratio: 2/3;
    background: #111318;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.6s var(--ease-out-expo);
}

.film-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.film-poster:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.film-poster:hover img {
    transform: scale(1.05);
}

.film-poster-meta {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    padding: 24px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.film-poster:hover .film-poster-meta {
    opacity: 1;
    transform: translateY(0);
}

.film-poster-meta span {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.film-poster-meta small {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════
   TD TOOLS (COMPACT UI CARDS)
═══════════════════════════════════════ */
/* ═══════════════════════════════════════
   TD TOOLS (EDITORIAL ACCORDION)
═══════════════════════════════════════ */
.tool-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tools-intro {
    margin-bottom: 32px;
    max-width: 720px;
}

.tools-intro p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 12px;
}

.tools-intro p strong {
    color: var(--text-primary);
    font-weight: 500;
}

.tools-intro-disclaimer {
    font-size: 13px !important;
    color: var(--text-faded) !important;
    font-style: italic;
}

.tool-card {
    padding: 10px 22px;
    background: #111318;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.5s var(--ease-out-expo);
}

.tool-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: #15181e;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(-4px);
}

.tool-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tool-name-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.tool-num {
    font-size: 11px;
    color: var(--text-faded);
    font-family: monospace;
    opacity: 0.6;
}

.tool-name {
    font-size: clamp(16px, 4vw, 20px);
    color: var(--text-primary);
    font-weight: 500;
}

.tool-tech {
    display: flex;
    gap: 8px;
}

.tool-tech span {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--text-primary);
    letter-spacing: 0.12em;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

@media (max-width: 640px) {
    .tool-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .tool-tech { margin-left: 32px; flex-wrap: wrap; }
}

.tool-download {
    font-size: 10px;
    color: #000000;
    background: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 24px;
    margin-bottom: 8px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.5s var(--ease-out-expo);
}

.tool-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.tool-desc-full {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s var(--ease-out-expo), opacity 0.4s ease, margin 0.4s ease;
    padding-left: 42px;
    /* align under text */
}

.tool-desc-full.open {
    max-height: 800px;
    opacity: 1;
    margin-top: 24px;
}

.tool-full-text p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.6;
    max-width: 800px;
}

/* ═══════════════════════════════════════
   ABOUT & CV
═══════════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-photo-wrapper {
    display: flex;
    gap: 32px;
}

.about-photo {
    width: 240px;
    height: auto;
    aspect-ratio: 3/4;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.about-bio {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-primary);
    line-height: 1.5;
}

.about-bio p+p {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 15px;
}

.about-skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    background: #111318;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.skill-block p {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.skill-block ul {
    list-style: none;
}

.skill-block li {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}


/* CV Timeline */
.cv-download-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.cv-download-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 10px 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.5s var(--ease-out-expo);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.cv-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.cv-download-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}


.cv-timeline {
    position: relative;
    padding-left: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cv-timeline::before {
    content: '';
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 10px;
    width: 0;
    border-left: 1px dashed var(--border);
}

.cv-card {
    position: relative;
    background: transparent;
    padding: 0;
    transition: transform 0.3s ease;
}

.cv-card::before {
    content: '';
    position: absolute;
    top: 8px;
    left: -26px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-faded);
}

.cv-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.cv-card-role {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 500;
}

.cv-card-company {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.cv-card-date {
    font-size: 12px;
    color: var(--text-faded);
}

.cv-bullets {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.cv-bullets p {
    font-size: 13px;
    color: var(--text-muted);
    position: relative;
    padding-left: 14px;
}

.cv-bullets p::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--text-faded);
}

.cv-associated-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-faded);
    margin-bottom: 8px;
    display: block;
}

.cv-associated-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cv-associated-tags span {
    font-size: 10px;
    text-transform: uppercase;
    border: 1px solid var(--border);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-muted);
}


/* ═══════════════════════════════════════
   CONTACT FORM & FOOTER
═══════════════════════════════════════ */
.contact-wrap {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    margin-top: 100px;
    margin-bottom: 120px;
}

.contact-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-heading {
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.1;
    margin-bottom: 32px;
}

.contact-email {
    font-size: 18px;
    display: block;
    margin-bottom: 60px;
    color: var(--text-muted);
}

.socials-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: auto;
}

.social-link {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faded);
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--text-primary);
}

.contact-form-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-faded);
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    background: #111318;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.5s var(--ease-out-expo);
    resize: none;
    outline: none;
}

.form-input:hover {
    background: #15181e;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.form-input:focus,
.form-textarea:focus {
    background: #1a1e26;
    transform: translateY(-5px);
    border-color: var(--text-primary);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(255, 255, 255, 0.05);
}

.form-textarea {
    min-height: 100px;
}

.form-submit {
    align-self: flex-start;
    background: #ffffff;
    border: none;
    color: #000000;
    padding: 12px 28px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.5s var(--ease-out-expo);
    margin-top: 12px;
}

.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.form-submit:active {
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════════════════ */
.reveal,
.reveal-stagger>* {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.6s var(--ease-out-expo), transform 1.6s var(--ease-out-expo);
}

.reveal.visible,
.reveal-stagger.visible>* {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(1) {
    transition-delay: 0.0s;
}

.reveal-stagger.visible>*:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal-stagger.visible>*:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal-stagger.visible>*:nth-child(4) {
    transition-delay: 0.3s;
}

/* ═══════════════════════════════════════
   MODAL & CURSOR
═══════════════════════════════════════ */
/* ═══════════════════════════════════════
   MODAL & OVERLAYS
   Note: Hero custom cursor removed as per request.
═══════════════════════════════════════ */
.overlay-nav {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-out-expo);
}

.overlay-nav.active {
    opacity: 1;
    pointer-events: auto;
}

.overlay-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.overlay-links a {
    font-size: clamp(32px, 6vw, 56px); /* Reduced for better editorial look */
    font-weight: 500; /* Softer weight */
    letter-spacing: -0.04em;
    color: var(--text-primary);
    transition: transform 0.4s var(--ease-out-expo), opacity 0.4s ease;
}

.overlay-links a:hover {
    transform: skewX(-5deg) scale(1.05);
    opacity: 0.6;
}

/* Hamburger Btn */
.hamb {
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.hamb span {
    width: 24px;
    height: 1.5px;
    background: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamb.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamb.active span:nth-child(2) { opacity: 0; }
.hamb.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 768px) {
    .hamb { display: flex; }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92); /* Darker for better contrast */
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 40px;
    overflow-y: auto; /* Enable scrolling for tall content */
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #111318;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s var(--ease-out-expo);
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.modal-content.split-size {
    max-width: 900px;
    width: 90vw;
    padding: 32px;
    border-radius: 12px;
}

.modal-content.split-size .modal-close {
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
}

.modal-content.split-size .modal-close svg {
    width: 14px;
    height: 14px;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 32px;
    right: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.modal-header {
    margin-bottom: 32px;
    padding-right: 64px;
    /* avoid close btn overlap */
}

.modal-title {
    font-size: clamp(28px, 4vw, 40px);
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 400;
    line-height: 1.1;
}

.modal-meta {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-image {
    width: 100%;
    flex: 1;
    min-height: 0;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 24px;
    background: #000;
}

/* Split Mode for Filmography (Compact) */
.modal-body.split-mode {
    flex-direction: row;
    align-items: stretch;
    height: auto;
    min-height: 300px;
    overflow: hidden;
}

.modal-body.split-mode .modal-header {
    margin-bottom: 16px;
    padding-right: 32px;
}

.modal-body.split-mode .modal-title {
    font-size: 24px;
    margin-bottom: 4px;
    font-weight: 500;
}

.modal-body.split-mode .modal-meta {
    font-size: 11px;
    gap: 8px;
}

.modal-body.split-mode .modal-image-wrap {
    flex: 0 0 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-right: 1px solid var(--border);
    padding-right: 32px;
}

.modal-body.split-mode .modal-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    margin: 0;
    background: transparent;
}

.modal-body.split-mode .modal-text-wrap {
    flex: 1;
    padding-left: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.modal-body.split-mode .modal-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.modal-body.split-mode .modal-tags {
    margin-top: 0;
}

.modal-body.split-mode .modal-tags span {
    font-size: 10px;
    padding: 4px 8px;
}

.modal-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 900px;
}

.modal-desc p {
    margin-bottom: 12px;
}

.modal-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.modal-tags span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 4px;
}

.modal-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    background: #111318;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 28px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.5s var(--ease-out-expo);
}

.modal-link:hover {
    background: #15181e;
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: var(--text-primary);
}

/* ═══════════════════════════════════════
   MOBILE RESPONSIVENESS
═══════════════════════════════════════ */

/* Footer Separation & Layout */
footer.container {
    position: relative;
    margin-top: 240px; /* Heavily increased separation */
    padding-top: 140px;
    padding-bottom: 160px;
    background: var(--bg);
    z-index: 5;
    clear: both;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 4vw;
    right: 4vw;
    height: 1px;
    background: linear-gradient(to right, var(--border), var(--border-hover) 50%, var(--border));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.8fr; /* Adjusted for better balance */
    gap: 40px;
    margin-bottom: 80px;
    align-items: start;
}

.footer-section h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-faded);
    margin-bottom: 32px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#footerSocials {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
    list-style: none;
    padding: 0;
}

#overlaySocials {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
    list-style: none;
    padding: 0;
}

.footer-links a {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 400;
}

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

/* Social Card */
.social-card {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out-expo);
}

.social-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
}

.social-card img {
    height: 20px;
    width: 20px;
    object-fit: contain;
    opacity: 0.8;
    flex-shrink: 0;
    display: block;
    margin: 0 auto;
}

.social-card[title="LinkedIn"] img {
    opacity: 1;
}

/* Minimal Map */
.map-region {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 13px;
}

.minimal-map {
    width: 60px;
    height: auto;
    fill: none;
    stroke: var(--text-faded);
    stroke-width: 1.5;
    opacity: 0.5;
}

.map-dot {
    fill: var(--text-primary);
    stroke: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border);
}

.back-to-top {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    color: var(--text-faded);
    transition: color 0.3s;
}

.back-to-top:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    section { padding: 40px 0; } /* Reduce global vertical space between sections on mobile */
    .container { padding: 0 24px; } /* Reduce side waste */
    nav { padding: 0 24px; } /* Match container padding to prevent clipping */
    .hamb { display: flex; }
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 24px; text-align: center; }
    
    .location-status {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .list-section-header { text-align: left; }
    .list-section-header p { margin-left: 0; margin-right: auto; }

    .about-photo-wrapper {
        flex-direction: column;
    }

    .about-photo {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }

    .about-skills {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 24px;
    }

    .skill-block p {
        margin-bottom: 8px;
        font-size: 10px;
    }

    .skill-block li {
        font-size: 12px;
    }

    .cv-card-header {
        flex-direction: column;
        gap: 8px;
    }

    .project-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2px;
    }
    .project-card {
        aspect-ratio: 4/3;
    }

    .film-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }
    
    .film-poster-meta {
        padding: 12px;
    }
    .film-poster-meta span {
        font-size: 11px;
        line-height: 1.2;
    }
    .film-poster-meta small {
        font-size: 9px;
    }

    /* Split-mode modal responsiveness */
    .modal-content.split-size {
        width: 95vw;
        padding: 24px;
        max-height: 95vh;
    }
    .modal-body.split-mode {
        flex-direction: column;
        align-items: center;
        overflow-y: auto;
    }
    .modal-body.split-mode .modal-image-wrap {
        flex: 0 0 auto;
        width: 100%;
        max-width: 240px;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-right: 0;
        padding-bottom: 24px;
        margin-bottom: 24px;
    }
    .modal-body.split-mode .modal-text-wrap {
        padding-left: 0;
        width: 100%;
    }

    /* Fix modal cropping */
    .modal-overlay {
        align-items: flex-start;
        padding: 20px;
    }
    .modal-content {
        max-height: none;
        margin: 40px 0;
        transform: translateY(0);
    }
    .modal-content.split-size {
        margin: 20px 0;
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .contact-wrap { grid-template-columns: 1fr; margin-top: 32px; margin-bottom: 20px; gap: 32px; }
    .contact-heading { margin-bottom: 16px; }
    .contact-email { margin-bottom: 24px; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { gap: 40px; }
    #footerSocials { justify-content: center !important; }
    footer.container { margin-top: 40px !important; padding-top: 40px !important; }
}

/* ═══════════════════════════════════════
   TOAST & UI POLISH
═══════════════════════════════════════ */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cv-buttons-wrap {
    display: flex;
    gap: 12px;
}

.cv-download-btn.btn-ghost {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
}

.cv-download-btn.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.cv-download-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    flex-shrink: 0;
}
