:root {
    --ink: #1a1a1a;
    --paper: #faf9f6;
    --accent: #8b1a1a;
    --muted: #6b6b6b;
    --border: #e0ddd7;
    --card-bg: #ffffff;
    --section-alt: #f4f2ed;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.7;
    font-size: 16px;
}

/* Language Toggle */
.lang-toggle {
    position: fixed; top: 20px; right: 20px; z-index: 1000;
    display: flex; gap: 4px;
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 6px; padding: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.lang-btn {
    padding: 6px 14px; border: none; background: transparent;
    cursor: pointer; font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 500; color: var(--muted);
    border-radius: 4px; transition: all 0.2s;
}
.lang-btn.active { background: var(--accent); color: #fff; }

/* Navigation */
nav {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(250,249,246,0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); z-index: 999; padding: 0 20px;
}
nav ul { max-width: 900px; margin: 0 auto; display: flex; list-style: none; overflow-x: auto; }
nav a {
    display: block; padding: 14px 14px; text-decoration: none; color: var(--muted);
    font-size: 12px; font-weight: 500; letter-spacing: 0.03em;
    text-transform: uppercase; white-space: nowrap; transition: color 0.2s;
}
nav a:hover { color: var(--accent); }
nav a.active { color: var(--accent); font-weight: 700; }
.nav-new { position: relative; }
.nav-new::after {
    content: 'NEW'; position: absolute; top: 2px; left: 50%; transform: translateX(-50%);
    font-size: 7px; font-weight: 700; letter-spacing: 0.04em;
    background: var(--accent); color: #fff;
    padding: 1px 5px; border-radius: 3px; line-height: 1.3;
    text-transform: none; pointer-events: none;
}

/* Hero — Author Bar */
.hero { padding: 80px 20px 0; max-width: 960px; margin: 0 auto; }
.hero-bar {
    display: flex; align-items: center; gap: 20px;
    padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 32px;
}
.hero-photo {
    width: 72px; height: 72px; border-radius: 50%;
    object-fit: cover; object-position: top;
    border: 2px solid var(--border); flex-shrink: 0;
}
.hero-identity { flex: 1; min-width: 0; }
.hero h1 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 1.6rem; font-weight: 700;
    letter-spacing: -0.01em; margin-bottom: 2px; line-height: 1.2;
}
.hero .subtitle { font-size: 0.95rem; color: var(--muted); font-weight: 300; margin: 0; }
.hero .stats {
    display: flex; gap: 20px; flex-shrink: 0;
}
.hero .stat-item { text-align: center; }
.hero .stat-num {
    font-family: 'Libre Baskerville', serif; font-size: 1.5rem;
    font-weight: 700; color: var(--accent); display: block; line-height: 1.2;
}
.hero .stat-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.photo-credit { display: none; }

/* Hero — Featured Projects */
.hero-featured-label {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--muted); font-weight: 600; margin-bottom: 16px;
}
.featured-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    padding-bottom: 40px; justify-items: center;
}
.featured-grid > :nth-last-child(2):nth-child(3n+1),
.featured-grid > :nth-last-child(1):nth-child(3n+2) {
    /* Center the last incomplete row (2 items after 3-col row) */
}
@media (min-width: 769px) {
    .featured-grid--5 { grid-template-columns: repeat(5, 1fr); gap: 16px; }
    .featured-grid--5 .featured-desc { font-size: 0.75rem; }
    .featured-grid--5 .featured-title { font-size: 0.9rem; }
    .featured-grid--5 .featured-meta { font-size: 0.72rem; }
}
.featured-card {
    display: flex; flex-direction: column;
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 10px; overflow: hidden;
    text-decoration: none; color: inherit;
    transition: box-shadow 0.25s, transform 0.25s;
}
.featured-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); transform: translateY(-2px); }
.featured-poster {
    width: 100%; aspect-ratio: 3/4; object-fit: cover;
}
.featured-body { padding: 14px 16px 16px; }
.featured-tag {
    display: inline-block; font-size: 0.65rem; text-transform: uppercase;
    letter-spacing: 0.06em; font-weight: 600; margin-bottom: 6px;
    padding: 3px 8px; border-radius: 10px;
}
.tag-production { background: #e8f5e9; color: #2e7d32; }
.tag-development { background: #fff3e0; color: #e65100; }
.tag-book { background: #f3e5f5; color: #6a1b9a; }
.featured-title {
    font-family: 'Libre Baskerville', serif; font-size: 1rem;
    font-weight: 700; line-height: 1.3; margin-bottom: 4px;
}
.featured-meta { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.featured-desc {
    font-size: 0.82rem; color: var(--ink); line-height: 1.5;
    margin-top: 8px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Page Header (compact hero for sub-pages) */
.page-header {
    padding: 70px 20px 24px; max-width: 960px; margin: 0 auto;
}
.page-header .hero-bar {
    display: flex; align-items: center; gap: 16px;
    padding-bottom: 0; border-bottom: none; margin-bottom: 0;
}
.page-header .hero-photo { width: 48px; height: 48px; }
.page-header h1 { font-size: 1.2rem; }
.page-header .subtitle { font-size: 0.85rem; }
.page-header .stats { display: none; }

/* Sections */
section { padding: 70px 20px; }
.section-alt { background: var(--section-alt); }
.container { max-width: 800px; margin: 0 auto; }
h2 { font-family: 'Libre Baskerville', Georgia, serif; font-size: 1.8rem; margin-bottom: 12px; }
.section-lead { color: var(--muted); margin-bottom: 36px; font-size: 1.05rem; font-weight: 300; }

/* Bio */
.bio-text p { margin-bottom: 16px; }
.bio-text strong { color: var(--accent); font-weight: 600; }
.themes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.theme-tag {
    background: var(--card-bg); border: 1px solid var(--border);
    padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; color: var(--muted);
}

/* Career timeline */
.career-timeline { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.career-timeline h3 { font-family: 'Libre Baskerville', serif; font-size: 1.1rem; margin-bottom: 16px; }
.career-step { display: flex; gap: 16px; margin-bottom: 12px; align-items: baseline; }
.career-dates { font-size: 0.8rem; font-weight: 600; color: var(--accent); min-width: 80px; white-space: nowrap; }
.career-desc { font-size: 0.9rem; color: var(--muted); }
.career-desc strong { color: var(--ink); font-weight: 500; }

/* Timeline items (books) */
.timeline-item { border-left: 2px solid var(--border); padding: 0 0 32px 24px; position: relative; display: flex; gap: 18px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: ''; position: absolute; left: -5px; top: 6px;
    width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
}
.book-cover { width: 80px; height: 120px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.timeline-info { flex: 1; min-width: 0; }
.timeline-year { font-size: 0.8rem; font-weight: 600; color: var(--accent); letter-spacing: 0.05em; margin-bottom: 4px; }
.timeline-title { font-family: 'Libre Baskerville', serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.timeline-meta { font-size: 0.88rem; color: var(--muted); margin-bottom: 6px; }
.timeline-links { display: flex; flex-wrap: wrap; gap: 6px; }
.timeline-links a {
    font-size: 0.8rem; color: var(--accent); text-decoration: none;
    padding: 3px 10px; border: 1px solid var(--border); border-radius: 4px;
    transition: all 0.15s;
}
.timeline-links a:hover { border-color: var(--accent); background: rgba(139,26,26,0.04); }

/* Films */
.film-grid { display: grid; gap: 12px; }
.film-card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px;
    padding: 18px 22px; display: flex; gap: 16px;
}
.film-thumb { width: 120px; height: 80px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); flex-shrink: 0; }
.film-info { flex: 1; min-width: 0; }
.film-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.film-title { font-family: 'Libre Baskerville', serif; font-weight: 700; font-size: 0.95rem; }
.film-year { font-size: 0.8rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.film-meta { font-size: 0.83rem; color: var(--muted); margin-bottom: 6px; }
.film-links { display: flex; flex-wrap: wrap; gap: 6px; }
.film-links a {
    font-size: 0.78rem; color: var(--accent); text-decoration: none;
    padding: 2px 8px; border: 1px solid var(--border); border-radius: 3px;
    transition: all 0.15s;
}
.film-links a:hover { border-color: var(--accent); background: rgba(139,26,26,0.04); }

/* Projects */
.project-category-title { font-family: 'Libre Baskerville', serif; font-size: 1.1rem; margin: 32px 0 16px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.project-category-title:first-of-type { margin-top: 0; }
.project-card {
    display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--border);
}
.project-card:last-child { border-bottom: none; }
.project-poster { width: 120px; height: 170px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.project-info { flex: 1; min-width: 0; }
.project-title { font-family: 'Libre Baskerville', serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.project-meta { font-size: 0.88rem; color: var(--muted); margin-bottom: 6px; }
.project-desc { font-size: 0.9rem; line-height: 1.5; margin-bottom: 8px; }
.project-status {
    display: inline-block; padding: 3px 10px; border-radius: 12px;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
}
.status-production { background: #e8f5e9; color: #2e7d32; }
.status-development { background: #fff3e0; color: #e65100; }
.status-forthcoming { background: #e3f2fd; color: #1565c0; }

/* Awards */
.awards-section { }
.award-category { margin-bottom: 32px; }
.award-category h3 { font-family: 'Libre Baskerville', serif; font-size: 1.1rem; margin-bottom: 16px; color: var(--accent); }
.award-item { padding: 14px 0; border-bottom: 1px solid var(--border); display: flex; gap: 16px; align-items: baseline; }
.award-item:last-child { border-bottom: none; }
.award-year { font-size: 0.8rem; font-weight: 600; color: var(--accent); min-width: 50px; }
.award-name { font-weight: 600; font-size: 0.92rem; }
.award-name a { color: inherit; text-decoration: none; }
.award-name a:hover { color: var(--accent); }
.award-work { font-size: 0.83rem; color: var(--muted); font-style: italic; }

/* Links grid */
.links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.link-card {
    display: flex; align-items: center; gap: 12px; padding: 14px 18px;
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px;
    text-decoration: none; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.link-card:hover { border-color: var(--accent); box-shadow: 0 2px 8px rgba(139,26,26,0.08); }
.link-icon { font-size: 1.2rem; width: 28px; text-align: center; font-weight: 700; color: var(--accent); }
.link-label { font-weight: 500; font-size: 0.9rem; }
.link-sub { font-size: 0.75rem; color: var(--muted); }

/* Press */
.press-list { list-style: none; }
.press-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.press-item:last-child { border-bottom: none; }
.press-item a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.92rem; }
.press-item a:hover { color: var(--accent); }
.press-source { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.contact-card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 24px;
}
.contact-card h3 { font-size: 0.92rem; font-weight: 600; margin-bottom: 8px; }
.contact-card p { font-size: 0.88rem; color: var(--muted); margin-bottom: 8px; }
.contact-card a { color: var(--accent); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* Contact Form */
.contact-form { margin-top: 24px; }
.contact-form h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 16px; }
.contact-form form { display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px;
    background: var(--card-bg); color: var(--text); font-size: 0.9rem; font-family: inherit;
    transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--accent);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button {
    align-self: flex-start; padding: 10px 28px; background: var(--accent); color: #fff;
    border: none; border-radius: 6px; font-size: 0.9rem; font-weight: 500; cursor: pointer;
    transition: opacity 0.2s;
}
.contact-form button:hover { opacity: 0.85; }
.form-status { font-size: 0.85rem; margin-top: 8px; }
.form-status.success { color: #4caf50; }
.form-status.error { color: #e53935; }

/* Gallery */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.gallery-item {
    position: relative; overflow: hidden; border-radius: 8px;
    border: 1px solid var(--border); cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-item:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.gallery-item img {
    width: 100%; height: 180px; object-fit: cover; display: block;
}
.gallery-caption {
    padding: 10px 12px; background: var(--card-bg);
}
.gallery-caption .gallery-title {
    font-family: 'Libre Baskerville', serif; font-size: 0.82rem;
    font-weight: 700; line-height: 1.3; margin-bottom: 2px;
}
.gallery-caption .gallery-type {
    font-size: 0.72rem; color: var(--muted); text-transform: uppercase;
    letter-spacing: 0.05em;
}
.gallery-filter { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.gallery-filter-btn {
    padding: 6px 16px; border: 1px solid var(--border); background: var(--card-bg);
    border-radius: 20px; font-size: 0.82rem; font-family: 'Inter', sans-serif;
    cursor: pointer; color: var(--muted); transition: all 0.2s;
}
.gallery-filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Lightbox */
.lightbox {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 2000;
    justify-content: center; align-items: center; flex-direction: column;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 80vh; border-radius: 6px; box-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.lightbox-caption { color: #fff; margin-top: 16px; font-size: 0.95rem; text-align: center; max-width: 600px; }
.lightbox-close {
    position: absolute; top: 20px; right: 24px; color: #fff; font-size: 2rem;
    cursor: pointer; background: none; border: none; line-height: 1;
}
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: #fff; font-size: 2.5rem; cursor: pointer; background: none;
    border: none; padding: 20px; opacity: 0.7; transition: opacity 0.2s;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .gallery-item img { height: 130px; }
    .lightbox-nav { font-size: 1.5rem; padding: 10px; }
}

/* Section CTA */
.section-cta {
    display: inline-block; margin-top: 24px; padding: 10px 24px;
    background: var(--accent); color: #fff; text-decoration: none;
    border-radius: 6px; font-size: 0.9rem; font-weight: 500;
    transition: opacity 0.2s;
}
.section-cta:hover { opacity: 0.85; }

/* Footer */
footer { text-align: center; padding: 40px 20px; font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--border); }
footer a { color: var(--muted); }

/* Responsive */
@media (max-width: 600px) {
    nav a { padding: 12px 8px; font-size: 10px; }
    .hero { padding: 70px 16px 0; }
    .hero-bar { flex-wrap: wrap; gap: 12px; }
    .hero-identity { min-width: 150px; }
    .hero h1 { font-size: 1.3rem; }
    .hero .stats { gap: 14px; width: 100%; justify-content: center; padding-top: 8px; }
    .hero .stat-num { font-size: 1.2rem; }
    .featured-grid { grid-template-columns: 1fr; gap: 12px; padding-bottom: 30px; }
    section { padding: 50px 16px; }
    .timeline-item { flex-direction: column; gap: 10px; }
    .book-cover { width: 60px; height: 90px; }
    .film-card { flex-direction: column; gap: 10px; }
    .film-thumb { width: 100%; height: 140px; }
    .project-card { flex-direction: column; gap: 10px; }
    .project-poster { width: 100%; height: auto; max-height: 280px; }
    .film-header { flex-direction: column; gap: 4px; }
    .award-item { flex-direction: column; gap: 4px; }
    .lang-toggle { top: 12px; right: 12px; }
    .career-step { flex-direction: column; gap: 2px; }
    .page-header { padding: 60px 16px 16px; }
}

/* Language visibility */
[data-lang="en"] { display: none; }
html[lang="en"] [data-lang="fr"] { display: none !important; }
html[lang="en"] [data-lang="en"] { display: unset; }
html[lang="en"] div[data-lang="en"], html[lang="en"] p[data-lang="en"],
html[lang="en"] li[data-lang="en"], html[lang="en"] span[data-lang="en"],
html[lang="en"] h2[data-lang="en"], html[lang="en"] h3[data-lang="en"],
html[lang="en"] ul[data-lang="en"], html[lang="en"] img[data-lang="en"] { display: unset; }
html[lang="fr"] div[data-lang="en"], html[lang="fr"] p[data-lang="en"],
html[lang="fr"] li[data-lang="en"], html[lang="fr"] span[data-lang="en"],
html[lang="fr"] h2[data-lang="en"], html[lang="fr"] h3[data-lang="en"],
html[lang="fr"] ul[data-lang="en"], html[lang="fr"] img[data-lang="en"] { display: none; }
html[lang="en"] div[data-lang="fr"], html[lang="en"] p[data-lang="fr"],
html[lang="en"] li[data-lang="fr"], html[lang="en"] span[data-lang="fr"],
html[lang="en"] h2[data-lang="fr"], html[lang="en"] h3[data-lang="fr"],
html[lang="en"] ul[data-lang="fr"], html[lang="en"] img[data-lang="fr"] { display: none !important; }
