/* Lea Amiel — single-page film portfolio.
   Intentionally expanded and commented for easy editing. */

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    background: #090909;
    color: #fff;
    font-family: Poppins, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
    font: inherit;
}

/* Full-screen moving background */
.background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #090909;
}

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

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.52) 0%,
        rgba(0, 0, 0, 0.08) 25%,
        rgba(0, 0, 0, 0.08) 70%,
        rgba(0, 0, 0, 0.36) 100%
    );
}

.site {
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 4vw, 64px);
}

.masthead {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.job {
    font-weight: 300;
    color: #e2e2e2;
}

/* Centered one-pixel outline button */
.center-action {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.showreel-open {
    padding: 15px 27px;
    border: 1px solid #fff;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.10);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.17em;
    transition: background .2s ease, color .2s ease;
}

.showreel-open:hover {
    background: #fff;
    color: #090909;
}

/* Same footer links and SVGs as Lea & Nicolas */
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    width: 100%;
}

.social,
.contact-open {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.13em;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}

.social:hover,
.contact-open:hover {
    opacity: .7;
    transform: translateX(3px);
}

.social svg,
.contact-open svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.social .ig-dot {
    fill: currentColor;
    stroke: none;
}

/* Full-screen showreel with audio */
.showreel-modal[hidden],
.modal[hidden] {
    display: none;
}

.showreel-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 3vw, 36px);
}

.showreel-shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .94);
}

.showreel-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 1500px);
}

.showreel-dialog video {
    display: block;
    width: 100%;
    max-height: calc(100svh - 80px);
    background: #000;
    object-fit: contain;
}

.showreel-close {
    position: absolute;
    z-index: 2;
    top: -45px;
    right: 0;
    padding: 0 4px;
    border: 0;
    background: none;
    color: #fff;
    font-size: 34px;
    cursor: pointer;
}

/* Contact modal — same appearance as Lea & Nicolas */
.modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(11px);
}

.modal-card {
    position: relative;
    width: min(100%, 500px);
    max-height: calc(100svh - 40px);
    overflow-y: auto;
    padding: clamp(25px, 5vw, 48px);
    background: #141414;
    border: 1px solid #414141;
    box-shadow: 0 20px 100px #0009;
}

.eyebrow {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .75);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .4em;
}

.modal-card h2 {
    margin: 0 0 32px;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: .08em;
}

.close {
    position: absolute;
    right: 19px;
    top: 12px;
    border: 0;
    background: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
}

.modal form {
    display: flex;
    flex-direction: column;
}

.modal form label {
    margin: 0 0 7px;
    color: #ccc;
    font-size: 10px;
    letter-spacing: .18em;
}

.modal form input,
.modal form textarea {
    min-height: 43px;
    margin-bottom: 18px;
    padding: 11px;
    border: 1px solid #505050;
    border-radius: 0;
    outline: 0;
    background: #202020;
    color: white;
}

.modal form input:focus,
.modal form textarea:focus {
    border-color: #fff;
}

.modal form textarea {
    resize: vertical;
}

.modal form button[type="submit"] {
    align-self: flex-start;
    padding: 13px 19px;
    border: 0;
    background: #fff;
    color: #111;
    font-size: 11px;
    letter-spacing: .14em;
    cursor: pointer;
}

.modal form button:disabled {
    opacity: .5;
    cursor: wait;
}

.form-status {
    min-height: 18px;
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.6;
}

.form-status:empty {
    display: none;
}

.form-status.error {
    color: #ffb3ad;
}

.form-status.success {
    color: #b4e4c4;
}

.hidden-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 700px) {
    .site {
        padding: 26px 22px;
    }

    .masthead {
        font-size: 10px;
    }

    .social,
    .contact-open {
        font-size: 10px;
    }

    .showreel-open {
        padding: 13px 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .background video {
        display: none;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
