/* ==========================================================================
   Jay Paul Design: broadcast theme
   Dark mode only. The neon accent is used only for buttons, active filters,
   card hover states and keyboard focus.
   ========================================================================== */

:root {
    --bg: #0b0c10;
    --bg-raised: #14161c;
    --bg-sunken: #000000;
    --line: rgba(255, 255, 255, 0.10);
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.64);
    --text-faint: rgba(255, 255, 255, 0.40);

    --accent: #39ff14;
    --accent-ink: #050a03;
    --accent-glow: 0 0 0 2px var(--accent), 0 0 28px rgba(57, 255, 20, 0.45);

    --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --gutter: clamp(16px, 4vw, 56px);
    --max: 1440px;
    --radius: 6px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --header-h: 68px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 0.95;
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: 16px; }

.eyebrow {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 28px;
    border: 2px solid var(--accent);
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px) skewX(-6deg); box-shadow: 0 0 28px rgba(57, 255, 20, 0.5); }

.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: var(--accent-ink); }

.btn--small { min-height: 38px; padding: 0 18px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 var(--gutter);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
    transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
    border-bottom: 1px solid transparent;
}
.site-header.is-solid {
    background: rgba(11, 12, 16, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
    display: grid;
    place-items: center;
    height: 34px;
    padding: 0 8px;
    background: var(--text);
    color: var(--bg);
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.04em;
    transform: skewX(-10deg);
}
.brand__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.95rem;
}

.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 32px); }
.site-nav a:not(.btn) {
    font-family: var(--font-display);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text-dim);
    transition: color 0.2s;
}
.site-nav a:not(.btn):hover { color: var(--text); }

/* ---------- Work dropdown ---------- */
.nav-work { position: relative; }

.nav-work__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border: 0;
    background: none;
    color: var(--text-dim);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s;
}
.nav-work__toggle:hover,
.nav-work__toggle[aria-expanded="true"] { color: var(--text); }

.nav-work__chevron {
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s var(--ease), margin 0.25s var(--ease);
}
.nav-work__toggle[aria-expanded="true"] .nav-work__chevron { transform: rotate(-135deg); margin-top: 4px; }

.nav-work__menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    z-index: 60;
    min-width: 260px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: rgba(20, 22, 28, 0.97);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateX(-50%);
    animation: menu-in 0.2s var(--ease);
}
.nav-work__menu[hidden] { display: none; }

.site-nav .nav-work__menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px;
    border-radius: 4px;
    color: var(--text);
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0.08em;
    white-space: nowrap;
}
.site-nav .nav-work__menu a:hover,
.site-nav .nav-work__menu a:focus-visible { background: rgba(255, 255, 255, 0.08); outline: none; }
.site-nav .nav-work__menu a.is-current { color: var(--accent); }

.nav-work__count {
    min-width: 24px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    font-size: 0.72rem;
    font-style: normal;
    text-align: center;
}
.nav-work__sep { height: 1px; margin: 6px 4px; background: var(--line); }

@keyframes menu-in-mobile { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes menu-in { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    padding: calc(var(--header-h) + 24px) var(--gutter) 96px;
}

.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--bg-sunken); }

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05);
}
/* No loop file yet: the poster frame does a slow push-in instead. */
.hero.is-poster .hero__video { animation: push-in 22s ease-in-out infinite alternate; }

/* YouTube fallback background: drawn at 1920x1080, scaled (by JS) to cover the hero with a little overscan. */
.hero__yt {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1920px;
    height: 1080px;
    border: 0;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(var(--yt-bg-scale, 1));
    transition: opacity 1.2s ease;
}
.hero.is-yt-playing .hero__yt { opacity: 1; }

.hero__shade {
    position: absolute;
    inset: 0;
    background:
        /* Kept light so the video reads clearly; the text carries its own shadow instead. */
        repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 3px),
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.45) 85%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, transparent 22%, transparent 82%, var(--bg) 100%);
}

.hero__content { position: relative; z-index: 0; max-width: 1100px; }
/* Soft dark patch behind the text only, so bright video frames don't wash it out. */
.hero__content::before {
    content: "";
    position: absolute;
    inset: -12% -18%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.3) 55%, transparent);
    pointer-events: none;
}

.hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    transform: skewX(-8deg);
}
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text);
    animation: blink 1.4s ease-in-out infinite;
}

.hero__title {
    font-size: clamp(3.6rem, 13vw, 11rem);
    line-height: 0.86;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), 0 6px 40px rgba(0, 0, 0, 0.7);
}
.hero__title span {
    color: transparent;
    -webkit-text-stroke: 2px var(--text);
}

.hero__title span { filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6)); }
.hero__kicker { background: rgba(0, 0, 0, 0.35); }

.hero__sub {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 2px 18px rgba(0, 0, 0, 0.6);
    margin: 28px auto 36px;
    max-width: 640px;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: rgba(255, 255, 255, 0.86);
}

.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.hero__scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    width: 26px;
    height: 42px;
    margin-left: -13px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
}
.hero__scroll span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--text);
    animation: scroll-cue 1.8s var(--ease) infinite;
}

/* ---------- Ticker ---------- */
.ticker {
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: var(--bg-sunken);
}
.ticker__track {
    display: flex;
    width: max-content;
    animation: ticker 40s linear infinite;
}
.ticker__track span {
    display: flex;
    align-items: center;
    padding: 14px 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    white-space: nowrap;
}
.ticker__track span::after {
    content: "";
    width: 10px;
    height: 10px;
    margin: 0 28px;
    background: var(--text-faint);
    transform: skewX(-20deg);
}

/* ---------- Work ---------- */
.work {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(64px, 9vw, 120px) var(--gutter);
}

.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: clamp(2.6rem, 7vw, 5.5rem); }

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.25s;
}
.pill:hover { border-color: var(--accent); }
.pill.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 0 22px rgba(57, 255, 20, 0.35);
}
.pill__count {
    min-width: 24px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.75rem;
    font-style: normal;
    text-align: center;
}
.pill.is-active .pill__count { background: rgba(0, 0, 0, 0.18); }

/* ---------- Grid & cards ---------- */
.grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    grid-auto-flow: dense;
    gap: clamp(16px, 2vw, 28px);
}

.card { animation: card-in 0.5s var(--ease) both; }
.card[hidden] { display: none; }

@media (min-width: 900px) {
    .card--feature { grid-column: span 2; grid-row: span 2; }
    .card--feature .card__title { font-size: clamp(1.8rem, 3vw, 2.8rem); }
}

.card__link {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius);
    background: var(--bg-raised);
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--line);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card__media {
    position: relative;
    flex: 1;
    aspect-ratio: 16 / 9;
    min-height: 0;
    overflow: hidden;
    background: #000;
}
.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 55%);
}

.card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s;
}
.card__play::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -9px 0 0 -5px;
    border-style: solid;
    border-width: 9px 0 9px 15px;
    border-color: transparent transparent transparent #fff;
    transition: border-color 0.25s;
}

.card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    padding: 4px 10px;
    background: var(--text);
    color: var(--bg);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transform: skewX(-10deg);
}

.card__body { padding: 16px 18px 20px; }

.card__meta {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.card__meta i { font-style: normal; margin: 0 6px; opacity: 0.6; }

.card__title {
    font-size: 1.35rem;
    line-height: 1.05;
    transition: color 0.25s;
}

/* Hover / focus: lift, neon edge, push in on the image */
.card__link:hover,
.card__link:focus-visible {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--accent-glow);
    outline: none;
}
.card__link:hover .card__media img,
.card__link:focus-visible .card__media img {
    transform: scale(1.04);
}
.card__link:hover .card__play,
.card__link:focus-visible .card__play {
    transform: scale(1.1);
    background: var(--accent);
    border-color: var(--accent);
}
.card__link:hover .card__play::before,
.card__link:focus-visible .card__play::before { border-left-color: var(--accent-ink); }
.card__link:hover .card__title,
.card__link:focus-visible .card__title { color: var(--accent); }

/* Quick neon flash when the hover starts */
.card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 2px var(--accent);
    opacity: 0;
}
.card__link:hover::after { animation: flash 0.45s ease-out; }

/* Runtime and 4K chips on the thumbnail, broadcast-lower-third style */
.card__time,
.card__res {
    position: absolute;
    z-index: 1;
    padding: 3px 8px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.2;
}
.card__time {
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.78);
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.card__res {
    top: 10px;
    right: 10px;
    background: var(--text);
    color: var(--bg);
    font-style: italic;
    transform: skewX(-10deg);
}

/* ---------- Shorts rail ---------- */
.shorts {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(64px, 9vw, 120px) var(--gutter) 0;
}
.shorts + .work { padding-top: clamp(48px, 6vw, 80px); }

.rail {
    list-style: none;
    margin: 0 calc(var(--gutter) * -1);
    padding: 8px var(--gutter) 20px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(170px, 19vw, 240px);
    gap: clamp(14px, 1.6vw, 22px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.short { scroll-snap-align: start; }
.short .card__media { flex: none; aspect-ratio: 9 / 16; }
.short .card__body { padding: 12px 14px 16px; }
.short .card__title { font-size: 1.05rem; }
.short .card__play { width: 52px; height: 52px; margin: -26px 0 0 -26px; }

/* ---------- Project inquiry form ---------- */
.project {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(64px, 9vw, 120px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
    border-top: 1px solid var(--line);
}
.project__intro h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin-bottom: 20px; }
.project__intro p { color: var(--text-dim); max-width: 420px; }
.project__alt { margin-top: 24px; font-size: 0.95rem; }
.project__alt a { color: var(--text); text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.35); }

.project__form {
    display: grid;
    gap: 22px;
    padding: clamp(20px, 3vw, 36px);
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.project__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label,
.field legend {
    padding: 0;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.field legend { margin-bottom: 10px; }
.field__opt { margin-left: 6px; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--text-faint); text-transform: none; font-weight: 500; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    color: var(--text);
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, 0.3); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field [aria-invalid="true"] { border-color: #ff5c5c; }

/* Project-type options look like the filter pills. */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.chip:hover span { border-color: var(--accent); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.chips.is-invalid .chip span { border-color: #ff5c5c; }

.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; text-transform: none !important; letter-spacing: 0.04em !important; font-size: 0.95rem !important; color: var(--text) !important; font-family: var(--font-body) !important; font-weight: 500 !important; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.project__phone { margin-top: 12px; max-width: 320px; }
.project__phone[hidden] { display: none; }

.project__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.project__submit .btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.project__status { margin: 0; font-size: 0.95rem; color: var(--text-dim); }
.project__status.is-ok { color: var(--text); }
.project__status.is-error { color: #ff8a8a; }

/* Thank-you state replaces the fields after a successful send. */
.project__done { display: grid; gap: 10px; padding: 12px 0; }
.project__done h3 { font-size: 1.8rem; }
.project__done p { margin: 0; color: var(--text-dim); }
.project__form.is-sent > :not(.project__done) { display: none; }
.project__again {
    justify-self: start;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}
.project__again:hover { text-decoration-color: var(--text); }

@media (max-width: 900px) {
    .project { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .field-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-sunken);
    border-top: 1px solid var(--line);
    padding: clamp(64px, 9vw, 120px) var(--gutter) 32px;
}
.site-footer > * { max-width: var(--max); margin-inline: auto; }

.footer__lead { margin-bottom: clamp(48px, 6vw, 80px); }
.footer__lead h2 { font-size: clamp(2.4rem, 6vw, 4.8rem); }
.footer__lead p:last-child { max-width: 560px; margin: 20px 0 0; color: var(--text-dim); }

.footer__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(32px, 4vw, 64px);
    padding-top: 40px;
    border-top: 1px solid var(--line);
}

.footer__col h3 {
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.kit { margin: 0; }
.kit dt {
    margin-top: 18px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.kit dt:first-child { margin-top: 0; }
.kit dd { margin: 4px 0 0; color: var(--text-dim); font-size: 0.95rem; }

.skills { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.skills li { font-size: 0.95rem; }
.skills li span { display: block; margin-bottom: 6px; }
.skills li::after {
    content: "";
    display: block;
    height: 3px;
    width: var(--lvl, 50%);
    background: var(--text);
    transform: skewX(-20deg);
    transform-origin: left;
}
.footer__note { margin: 24px 0 0; font-size: 0.85rem; color: var(--text-faint); }

.contact { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 16px; }
.contact li { color: var(--text-dim); }
.contact .label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.contact a { color: var(--text); text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 4px; }
.contact a:hover { text-decoration-color: var(--text); }

.footer__base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--text-faint);
}
.footer__base a { text-decoration: none; }
.footer__base a:hover { color: var(--text); }

/* ---------- Cinema modal ---------- */
/* As large as the window allows: full width, or full height at 16:9, minus room for the title bar. */
.cinema {
    width: min(calc(100vw - 32px), calc((100vh - 96px) * 16 / 9));
    width: min(calc(100vw - 32px), calc((100dvh - 96px) * 16 / 9));
    max-width: none;
    max-height: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    overflow: visible;
}
.cinema::backdrop {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(6px);
}
.cinema[open] { animation: cinema-in 0.35s var(--ease); }

/* Shorts play in a 9:16 frame sized to the window height. */
.cinema.is-vertical {
    width: min(calc(100vw - 32px), calc((100vh - 96px) * 9 / 16));
    width: min(calc(100vw - 32px), calc((100dvh - 96px) * 9 / 16));
}
.cinema.is-vertical .cinema__frame { aspect-ratio: 9 / 16; }
.cinema.is-vertical .cinema__title { font-size: 1rem; }

.cinema__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.cinema__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 600;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cinema__close {
    flex: none;
    width: 46px;
    height: 46px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: transparent;
    color: var(--accent);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.25s var(--ease);
}
.cinema__close:hover { background: var(--accent); color: var(--accent-ink); transform: rotate(90deg); }

.cinema__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    box-shadow: var(--accent-glow);
    border-radius: var(--radius);
    overflow: hidden;
}
.cinema__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* YouTube picks the stream from the player's size, so a player smaller than about 1820px plays 720p.
   JS renders the iframe at a full-HD size and scales it down to fit, which gets the 1080p stream. */
.cinema__frame.is-supersampled iframe {
    width: var(--yt-w);
    height: var(--yt-h);
    transform: scale(var(--yt-scale));
    transform-origin: 0 0;
}

/* ---------- Animations ---------- */
@keyframes push-in { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes blink { 50% { opacity: 0.2; } }
@keyframes scroll-cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes card-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes flash { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cinema-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .footer__cols { grid-template-columns: 1fr 1fr; }
    .footer__cols .footer__col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    :root { --header-h: 60px; }
    .brand__name { display: none; }
    .site-nav { gap: 16px; }
    .site-nav .btn--small { display: none; }
    /* On phones the menu spans the screen under the header instead of hanging off the button. */
    .nav-work { position: static; }
    .nav-work__menu {
        position: fixed;
        top: calc(var(--header-h) + 6px);
        left: 16px;
        right: 16px;
        min-width: 0;
        transform: none;
        animation-name: menu-in-mobile;
    }
    .hero__title span { -webkit-text-stroke-width: 1.5px; }
    .hero__actions .btn { flex: 1 1 100%; }
    .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter); scrollbar-width: none; }
    .filters::-webkit-scrollbar { display: none; }
    .pill { flex: none; }
    .footer__cols { grid-template-columns: 1fr; }
    .card__play { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .ticker__track { animation: none; }
}
