/*
Theme Name: EntoDigital Video 2
Theme URI: https://video.entodigital.io/
Author: EntoDigital
Description: v2 of the single-page theme for video.entodigital.io. Full EntoDigital palette, editing-suite hero with pause control, filterable work grid with hover previews, process timeline, and a project brief form.
Version: 2.0.1
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: entovideo2
*/

/* ---------------------------------------------------------------------------
   Tokens. The five brand colors from entodigital.io, plus tints of them.
   --------------------------------------------------------------------------- */
:root {
    --ink:    #1F2328;
    --ink-2:  #181B1F;
    --ink-3:  #262B31;
    --paper:  #FFFCED;
    --cream:  #F4EFD9;
    --mist:   #E0E9EE;
    --mist-2: #F3F7F9;
    --navy:   #1A2E45;
    --navy-2: #223A57;
    --text-dark: #2A2A2A;

    --line:   rgba(255, 252, 237, .14);
    --line-2: rgba(255, 252, 237, .08);
    --muted:  rgba(255, 252, 237, .74);   /* 8:1 on ink, 7:1 on navy */

    --serif: "Petrona", Georgia, "Times New Roman", serif;
    --sans:  "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

    --content: 1280px;
    --gutter:  clamp(16px, 5.6vw, 80px);
    --radius:  16px;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}
@media (max-width: 899px) {
    /* Keep focused fields clear of the header and the bottom dock (WCAG 2.4.11). */
    html { scroll-padding-top: 80px; scroll-padding-bottom: 110px; }
}
body {
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
img, video, picture { display: block; max-width: 100%; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }

:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid var(--paper);
    outline-offset: 3px;
    border-radius: 6px;
}
.process :where(a, button):focus-visible { outline-color: var(--ink); }

.wrap {
    width: 100%;
    max-width: calc(var(--content) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
    position: fixed; left: 50%; top: 10px; z-index: 300;
    transform: translate(-50%, -200%);
    background: var(--paper); color: var(--ink);
    padding: 12px 20px; border-radius: 999px;
    font-weight: 700; text-decoration: none;
    transition: transform .18s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

.eyebrow {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--sans);
    font-size: 12px; font-weight: 700; letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.h2 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(34px, 3.9vw, 56px);
    line-height: 1.04;
    letter-spacing: -.025em;
    margin-top: 20px;
    text-wrap: balance;
}

/* ---------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 52px; padding: 0 26px;
    border: 0; border-radius: 999px;
    font-family: var(--sans); font-weight: 700; font-size: 15.5px; letter-spacing: .2px;
    text-decoration: none; cursor: pointer;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.btn:active { transform: scale(.98); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }
.btn-ghost {
    background: rgba(255, 252, 237, .08);
    color: var(--paper);
    box-shadow: inset 0 0 0 1px rgba(255, 252, 237, .3);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 252, 237, .16); }
.btn-sm { min-height: 46px; padding: 0 22px; font-size: 14.5px; }
.btn-block { width: 100%; min-height: 56px; font-size: 16px; }
.arrow { font-size: 18px; line-height: 1; transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.pill-play {
    width: 30px; height: 30px; margin-left: -12px; flex: none;
    border-radius: 50%; background: var(--paper);
    display: grid; place-items: center;
}
.pill-play::after {
    content: ""; margin-left: 2px;
    border-left: 9px solid var(--ink);
    border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}

/* ---------------------------------------------------------------------------
   Header. Transparent over the hero, a glass bar once you scroll.
   --------------------------------------------------------------------------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 16px max(var(--gutter), calc((100vw - var(--content)) / 2));
    transition: background-color .25s ease, box-shadow .25s ease, padding .25s ease;
}
.site-header.is-scrolled {
    background: rgba(31, 35, 40, .82);
    -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
    box-shadow: 0 1px 0 var(--line-2);
    padding-block: 10px;
}
.brand img { height: clamp(22px, 2.2vw, 30px); width: auto; }
.site-nav {
    display: flex; gap: 4px; padding: 6px;
    border-radius: 999px;
    background: rgba(31, 35, 40, .45);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: inset 0 0 0 1px rgba(255, 252, 237, .14);
}
.site-nav a {
    font-size: 14.5px; font-weight: 600; text-decoration: none;
    padding: 10px 18px; border-radius: 999px;
    transition: background-color .18s ease;
}
.site-nav a:hover { background: rgba(255, 252, 237, .08); }
.site-nav a.is-current { background: rgba(255, 252, 237, .14); }
.menu-btn { display: none; }

@media (max-width: 899px) {
    .header-cta { display: none; }
    .menu-btn {
        display: grid; place-items: center;
        width: 44px; height: 44px; padding: 0;
        border: 0; border-radius: 50%; cursor: pointer;
        background: rgba(31, 35, 40, .55);
        -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
        box-shadow: inset 0 0 0 1px rgba(255, 252, 237, .22);
    }
    .menu-btn::before, .menu-btn::after {
        content: ""; grid-area: 1 / 1; width: 16px; height: 2px; border-radius: 2px;
        background: var(--paper);
        transition: transform .2s ease;
    }
    .menu-btn::before { transform: translateY(-4px); }
    .menu-btn::after  { transform: translateY(4px); }
    .menu-btn[aria-expanded="true"]::before { transform: rotate(45deg); }
    .menu-btn[aria-expanded="true"]::after  { transform: rotate(-45deg); }
    .site-nav {
        position: absolute; top: calc(100% + 6px); left: var(--gutter); right: var(--gutter);
        flex-direction: column; gap: 2px; padding: 8px; border-radius: 20px;
        background: rgba(24, 27, 31, .96);
        box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -20px rgba(0, 0, 0, .7);
        opacity: 0; visibility: hidden; transform: translateY(-6px);
        transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
    }
    .site-nav a { padding: 14px 16px; font-size: 17px; border-radius: 12px; }
    .site-header.menu-open .site-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    .site-header.menu-open { background: rgba(24, 27, 31, .96); }
}

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: max(620px, min(100svh, 940px));
    display: flex; flex-direction: column; justify-content: flex-end;
    overflow: hidden; isolation: isolate;
    background: var(--ink-2);
}
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-media picture, .hero-poster, .hero-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 62% 40%;
}
.hero-poster { filter: saturate(.88) contrast(1.04); }
.hero-video { opacity: 0; transition: opacity .9s ease; filter: saturate(.88) contrast(1.04); }
.hero-video.is-ready { opacity: 1; }

/* The reel is bright footage (mean luma 115-207), so the scrim is heavy where
   the copy sits and lighter on the right so the picture still reads. */
.hero-scrim {
    position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(70% 80% at 12% 78%, rgba(26, 46, 69, .55), transparent 70%),
        linear-gradient(90deg, rgba(24, 27, 31, .96) 0%, rgba(31, 35, 40, .86) 36%, rgba(31, 35, 40, .4) 68%, rgba(31, 35, 40, .55) 100%),
        linear-gradient(180deg, rgba(24, 27, 31, .75) 0%, transparent 20%, transparent 55%, rgba(24, 27, 31, .97) 100%);
}
@media (max-width: 899px) {
    /* Copy runs full width on phones, so the scrim goes vertical: dark under
       the header and the copy, open through the middle of the picture. */
    .hero-media picture, .hero-poster, .hero-video { object-position: 66% 30%; }
    .hero-scrim {
        background: linear-gradient(180deg,
            rgba(24, 27, 31, .78) 0%, rgba(31, 35, 40, .2) 22%,
            rgba(31, 35, 40, .45) 44%, rgba(31, 35, 40, .92) 62%, var(--ink) 100%);
    }
}

.corner {
    position: absolute; z-index: 1; width: 26px; height: 26px;
    border: 0 solid rgba(255, 252, 237, .55);
    pointer-events: none;
}
.c1 { top: 96px;  left: 48px;  border-top-width: 1.5px; border-left-width: 1.5px; }
.c2 { top: 96px;  right: 48px; border-top-width: 1.5px; border-right-width: 1.5px; }
.c3 { bottom: 28px; left: 48px;  border-bottom-width: 1.5px; border-left-width: 1.5px; }
.c4 { bottom: 28px; right: 48px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
@media (max-width: 1023px) { .corner { display: none; } }

.hero-hud {
    position: absolute; z-index: 1;
    top: 116px; right: max(var(--gutter), calc((100vw - var(--content)) / 2));
    display: flex; align-items: center; gap: 16px;
    font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
}
.hud-live { display: flex; align-items: center; gap: 9px; }
.hud-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 4px rgba(255, 252, 237, .18); }
.hud-tc {
    display: none;
    font-size: 13px; letter-spacing: 1.5px; color: var(--muted);
    padding: 6px 10px; border-radius: 6px;
    background: rgba(24, 27, 31, .6); box-shadow: inset 0 0 0 1px var(--line);
}
.hero.is-playing .hud-tc { display: inline-block; }
@media (max-width: 899px) {
    .hero-hud { top: 88px; left: var(--gutter); right: auto; font-size: 11px; }
}

.hero-inner { padding-top: 150px; }
.hero-title {
    font-family: var(--serif);
    font-weight: 800;
    font-size: clamp(50px, 7.8vw, 112px);
    line-height: .93;
    letter-spacing: -.027em;
    margin: 24px 0 28px;
    max-width: 11ch;
}
.hero-title em {
    display: block;
    font-style: italic; font-weight: 600;
    color: var(--cream);
}
.hero-sub { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.55; color: rgba(255, 252, 237, .88); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.hero-meta { font-size: 13px; color: var(--muted); margin-left: 6px; }

.hero-bar {
    display: grid; grid-template-columns: 48px 1fr auto; align-items: end; gap: 22px;
    padding-top: 52px; padding-bottom: 56px;
}
.hero-pause {
    width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    display: grid; place-items: center;
    background: rgba(255, 252, 237, .1);
    box-shadow: inset 0 0 0 1px rgba(255, 252, 237, .38);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-pause::before {
    content: ""; width: 12px; height: 14px;
    border-left: 4px solid var(--paper); border-right: 4px solid var(--paper);
}
.hero-pause[aria-pressed="true"]::before {
    width: 0; height: 0; margin-left: 4px; border-right: 0;
    border-left: 13px solid var(--paper);
    border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.hero-pause:hover { background: rgba(255, 252, 237, .2); }
.hero-pause[hidden] { display: none; }
.hero-bar:has(.hero-pause[hidden]) { grid-template-columns: 1fr auto; }

.chapters { display: flex; gap: 6px; }
.chap {
    flex: var(--w); display: flex; flex-direction: column; gap: 10px;
    padding-top: 10px; min-height: 44px;
    text-decoration: none;
}
.chap span { font-size: 11.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); transition: color .18s ease; }
.chap:hover span, .chap.is-active span { color: var(--paper); }
.chap b { display: block; height: 4px; border-radius: 4px; background: rgba(255, 252, 237, .22); overflow: hidden; }
.chap i { display: block; height: 100%; width: 100%; background: var(--paper); border-radius: 4px; transform: scaleX(var(--fill, 0)); transform-origin: left; }
.hero-time { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1; padding-bottom: 0; }
.hero-time:empty { display: none; }

@media (max-width: 899px) {
    .hero { min-height: max(640px, 100svh); }
    .hero-inner { padding-top: 0; }
    .hero-bar { padding-top: 26px; padding-bottom: 130px; }
    .hero-actions .btn { display: none; }   /* the dock carries both actions on phones */
    .hero-meta { display: none; }
    .hero-bar { grid-template-columns: 1fr; }
    .hero-bar .hero-pause:not([hidden]) {
        position: absolute; top: 76px; right: var(--gutter);
        width: 44px; height: 44px;
    }
    .hero-time { display: none; }
    .chap span { font-size: 10.5px; letter-spacing: 1.6px; }
}

/* ---------------------------------------------------------------------------
   Client band
   --------------------------------------------------------------------------- */
.band { background: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.band-inner { display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); flex-wrap: wrap; padding-block: 30px; }
.band-lab { font-size: 12px; letter-spacing: 3px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.band-names { display: flex; flex-wrap: wrap; gap: 10px clamp(20px, 3.8vw, 56px); }
.band-names li { font-family: var(--serif); font-size: clamp(20px, 2.1vw, 30px); font-weight: 600; letter-spacing: .01em; }
.band-note { margin-left: auto; font-size: 14.5px; color: var(--muted); }
@media (max-width: 899px) { .band-note { margin-left: 0; width: 100%; } }

/* ---------------------------------------------------------------------------
   Work
   --------------------------------------------------------------------------- */
.work { padding: clamp(80px, 8.4vw, 120px) 0 clamp(40px, 4vw, 60px); }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(36px, 4vw, 56px); }
.work-head .h2 { max-width: 760px; }

.filters {
    display: flex; gap: 4px; padding: 5px; flex: none;
    border-radius: 999px;
    background: var(--ink-3);
    box-shadow: inset 0 0 0 1px var(--line-2);
}
.filters[hidden] { display: none; }
.filters button {
    min-height: 44px; display: inline-flex; align-items: center; gap: 8px;
    padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
    background: transparent; color: rgba(255, 252, 237, .84);
    font-size: 14px; font-weight: 600;
    transition: background-color .18s ease, color .18s ease;
}
.filters button:hover { background: rgba(255, 252, 237, .08); }
.filters button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.filters small { font-size: 11.5px; font-weight: 700; opacity: .65; }
@media (max-width: 1023px) {
    .work-head { flex-direction: column; align-items: stretch; gap: 26px; }
    /* Sticks under the header while you scroll the grid. */
    .filters {
        position: sticky; top: 70px; z-index: 20;
        overflow-x: auto; scrollbar-width: none;
        border-radius: 999px;
        background: rgba(38, 43, 49, .94);
        -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    }
    .filters::-webkit-scrollbar { display: none; }
    .filters button { flex: none; }
}

.lane { padding-bottom: clamp(44px, 4.4vw, 64px); }
.lane[hidden] { display: none; }
.lane-head {
    display: grid; grid-template-columns: minmax(200px, 320px) 1fr auto; gap: 16px 40px; align-items: baseline;
    border-top: 1px solid var(--line);
    padding: 22px 0 24px;
}
.lane-head h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 1.9vw, 27px); line-height: 1.2; }
.lane-head p { font-size: 15px; color: var(--muted); max-width: 620px; }
.lane-count { font-size: 12px; letter-spacing: 2px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
@media (max-width: 899px) {
    .lane-head { grid-template-columns: 1fr auto; }
    .lane-head p { grid-column: 1 / -1; grid-row: 2; }
}

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.grid--feature > .film--feature { grid-column: span 8; }
.grid--feature > .side { grid-column: span 4; display: flex; flex-direction: column; gap: 20px; }
.grid--three > .film { grid-column: span 4; }
.grid--feature-invite > .film { grid-column: span 8; }
.grid--feature-invite > .invite { grid-column: span 4; }
@media (max-width: 1023px) {
    .grid--feature > .film--feature, .grid--feature > .side { grid-column: 1 / -1; }
    .grid--feature > .side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
    .grid--three > .film { grid-column: span 6; }
    .grid--feature-invite > .film, .grid--feature-invite > .invite { grid-column: span 6; }
}
@media (max-width: 699px) {
    .grid { gap: 16px; }
    .grid > *, .grid--three > .film, .grid--feature-invite > .film, .grid--feature-invite > .invite { grid-column: 1 / -1; }
    .grid--feature > .side { grid-template-columns: 1fr; }
}

/* A film card. The whole thumbnail is one button; the real YouTube iframe is
   only written in on click, so the page costs nothing to YouTube until then. */
.film { display: flex; flex-direction: column; min-width: 0; }
.facade, .frame {
    position: relative; display: block; width: 100%;
    aspect-ratio: 16 / 9;
    border: 0; border-radius: var(--radius); padding: 0;
    overflow: hidden; cursor: pointer;
    background: var(--ink-3); color: var(--paper); text-align: left;
    box-shadow: inset 0 0 0 1px rgba(255, 252, 237, .06), 0 24px 50px -30px rgba(0, 0, 0, .7);
}
.film--feature .facade { flex: 1; }
@media (min-width: 1024px) { .film--feature .facade { aspect-ratio: auto; min-height: 476px; } }
.facade picture, .facade img, .facade .preview {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.facade img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.facade:hover img { transform: scale(1.035); }
.facade .preview { opacity: 0; transition: opacity .35s ease; }
.facade.is-previewing .preview { opacity: 1; }
.facade-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24, 27, 31, 0) 38%, rgba(24, 27, 31, .9) 100%); }

.tag {
    position: absolute; top: 14px; left: 14px; z-index: 1;
    display: inline-flex; align-items: center; gap: 8px;
    height: 28px; padding: 0 12px; border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
    background: rgba(24, 27, 31, .78);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px rgba(255, 252, 237, .18);
}
.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--paper); }
.tag--preview { left: auto; right: 14px; opacity: 0; transition: opacity .25s ease; }
.facade.is-previewing .tag--preview { opacity: 1; }

.film-over {
    position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1;
    display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
}
.film-title { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(19px, 1.55vw, 22px); line-height: 1.15; }
.film-sub { display: block; font-size: 15px; color: rgba(255, 252, 237, .86); margin-top: 10px; max-width: 520px; }
.play {
    width: 46px; height: 46px; flex: none; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 252, 237, .14);
    box-shadow: inset 0 0 0 1px rgba(255, 252, 237, .5);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: transform .25s ease, background-color .25s ease;
}
.play::after { content: ""; margin-left: 3px; border-left: 12px solid var(--paper); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.facade:hover .play { transform: scale(1.08); background: rgba(255, 252, 237, .24); }
.pill {
    display: inline-flex; align-items: center; gap: 12px; flex: none;
    min-height: 48px; padding: 0 22px; border-radius: 999px;
    background: var(--paper); color: var(--ink);
    font-weight: 700; font-size: 14.5px;
}
.pill .pill-play { width: 28px; height: 28px; margin-left: -12px; background: var(--ink); }
.pill .pill-play::after { border-left-color: var(--paper); }
.film--feature .film-over { left: 32px; right: 32px; bottom: 32px; }
.film--feature .film-title { font-size: clamp(26px, 2.7vw, 38px); letter-spacing: -.015em; max-width: 520px; }
.film--wide .film-title { font-size: clamp(21px, 2vw, 28px); }
@media (max-width: 699px) {
    .film--feature .film-over { left: 18px; right: 18px; bottom: 16px; }
    .film--feature .film-sub, .film--feature .pill { display: none; }
    .film--feature .film-over::after {
        content: ""; width: 46px; height: 46px; flex: none; border-radius: 50%;
        background: rgba(255, 252, 237, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='16'%3E%3Cpath d='M0 0l14 8-14 8z' fill='%23FFFCED'/%3E%3C/svg%3E") 55% 50% no-repeat;
        box-shadow: inset 0 0 0 1px rgba(255, 252, 237, .5);
    }
}
.preview-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2; background: rgba(255, 252, 237, .18); opacity: 0; transition: opacity .25s ease; }
.preview-bar::after { content: ""; position: absolute; inset: 0; background: var(--paper); transform: scaleX(var(--p, 0)); transform-origin: left; }
.facade.is-previewing .preview-bar { opacity: 1; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.film-cap { font-size: 14.5px; line-height: 1.5; color: var(--muted); margin-top: 14px; }

.credits {
    flex: 1; display: flex; flex-direction: column; gap: 18px;
    padding: 26px; border-radius: var(--radius);
    background: var(--navy);
    box-shadow: inset 0 0 0 1px rgba(255, 252, 237, .08);
}
.credits-lab { font-size: 11.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; }
.roles li { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 8px; background: rgba(255, 252, 237, .08); box-shadow: inset 0 0 0 1px rgba(255, 252, 237, .12); }
.credits-who { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.35; }

.invite {
    display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
    padding: 34px; border-radius: var(--radius); text-decoration: none;
    background: repeating-linear-gradient(135deg, rgba(255, 252, 237, .025) 0 2px, transparent 2px 12px), var(--ink-3);
    box-shadow: inset 0 0 0 1px rgba(255, 252, 237, .16);
    transition: box-shadow .2s ease, background-color .2s ease;
    margin-bottom: 36px;
}
.invite:hover { box-shadow: inset 0 0 0 1px rgba(255, 252, 237, .4); }
.invite-title { display: block; font-family: var(--serif); font-size: clamp(26px, 2.2vw, 32px); line-height: 1.12; font-weight: 600; letter-spacing: -.015em; }
.invite-text { display: block; font-size: 15px; color: var(--muted); margin-top: 14px; }
.invite-go { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.invite-go i { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; font-style: normal; font-size: 18px; transition: transform .2s ease; }
.invite:hover .invite-go i { transform: translateX(4px); }
@media (max-width: 1023px) { .invite { margin-bottom: 0; } }

/* ---------------------------------------------------------------------------
   Process. The one light section, in the brand's mist blue.
   --------------------------------------------------------------------------- */
.process { background: var(--mist); color: var(--text-dark); padding: clamp(80px, 8.4vw, 120px) 0 clamp(88px, 9vw, 128px); }
.process .eyebrow { color: #46515C; }
.process .h2 { color: var(--ink); max-width: 820px; }
.nle {
    margin-top: clamp(40px, 4.2vw, 60px);
    padding: 22px 26px 26px; border-radius: 18px;
    background: var(--mist-2);
    box-shadow: 0 1px 0 #fff inset, 0 30px 60px -40px rgba(26, 46, 69, .45), 0 0 0 1px rgba(26, 46, 69, .1);
}
.ruler { display: flex; justify-content: space-between; padding: 0 0 12px 64px; font-size: 11.5px; font-weight: 700; letter-spacing: 1px; color: #56616C; border-bottom: 1px solid rgba(26, 46, 69, .12); }
.trk { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: stretch; margin-top: 12px; }
.trk-lb { display: grid; place-items: center; border-radius: 8px; background: rgba(26, 46, 69, .07); font-size: 11.5px; font-weight: 800; letter-spacing: 1px; color: #56616C; }
.clips { position: relative; display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 6px; }
.clip {
    position: relative; overflow: hidden;
    height: 92px; padding: 14px 16px; border-radius: 10px;
    display: flex; flex-direction: column; justify-content: space-between;
    color: var(--paper);
}
.clip::before {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 50%;
    background: var(--th) center / cover; opacity: .38;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000);
}
.clip small, .clip b { position: relative; }
.clip small { font-size: 11.5px; letter-spacing: 2px; font-weight: 700; opacity: .75; }
.clip b { font-family: var(--serif); font-size: clamp(18px, 1.7vw, 24px); font-weight: 600; }
.k1 { background: var(--navy); } .k2 { background: var(--ink); } .k3 { background: var(--navy-2); }
.wave { height: 44px; border-radius: 10px; background: rgba(26, 46, 69, .1); display: flex; align-items: center; gap: 3px; padding: 0 10px; overflow: hidden; }
.wave i { flex: 1; min-width: 1px; background: rgba(26, 46, 69, .45); border-radius: 2px; }
.playhead { position: absolute; z-index: 3; top: -6px; bottom: -62px; left: 47%; width: 2px; background: var(--ink); }
.playhead::before { content: ""; position: absolute; top: -8px; left: -7px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 10px solid var(--ink); }
.steps { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 6px; margin-top: 40px; padding-left: 64px; }
.steps li { padding-right: 40px; }
.steps h3 { display: flex; gap: 12px; align-items: baseline; font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); }
.steps h3 span { font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: 2px; color: #56616C; }
.steps p { font-size: 16px; line-height: 1.6; color: #3A4046; margin-top: 12px; }
@media (max-width: 899px) {
    .nle { padding: 16px; overflow: hidden; }
    .ruler { padding-left: 52px; }
    .ruler span:nth-child(even) { visibility: hidden; }
    .trk { grid-template-columns: 40px 1fr; gap: 8px; }
    .clip { height: 76px; padding: 10px 12px; }
    .clip b { font-size: 16px; }
    .steps { grid-template-columns: 1fr; gap: 26px; padding-left: 0; margin-top: 34px; }
    .steps li { padding-right: 0; }
}
@media (max-width: 499px) {
    .clips { grid-template-columns: 1fr 1.2fr 1fr; gap: 4px; }
    .clip small { display: none; }
    .clip { justify-content: flex-end; }
    .clip b { font-size: 14px; }
}

/* ---------------------------------------------------------------------------
   About
   --------------------------------------------------------------------------- */
.about { padding: clamp(88px, 9vw, 128px) 0 clamp(72px, 7.6vw, 110px); }
.about-inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 5.6vw, 80px); align-items: center; }
.about--solo .about-inner { grid-template-columns: minmax(0, 880px); }
.portrait { aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-body .eyebrow { font-size: 12px; }
.about-lead { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.22; letter-spacing: -.015em; margin-top: 24px; }
.about-text { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.7; color: rgba(255, 252, 237, .84); margin-top: 26px; max-width: 640px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 44px; border-top: 1px solid var(--line); }
.stats > div { padding: 24px 24px 0 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dt { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.stats dd { font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 6px; }
@media (max-width: 899px) {
    .about-inner { grid-template-columns: 1fr; }
    .portrait { max-width: 420px; }
}
@media (max-width: 599px) {
    .stats { grid-template-columns: 1fr; }
    .stats > div, .stats > div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 16px; }
    .stats dd { margin-top: 0; }
}

/* ---------------------------------------------------------------------------
   Contact
   --------------------------------------------------------------------------- */
.contact { padding: 20px 0 clamp(80px, 8.4vw, 120px); }
.contact-shell {
    display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 5vw, 72px);
    padding: clamp(28px, 5vw, 72px); border-radius: 28px;
    background: radial-gradient(60% 90% at 0% 0%, rgba(34, 58, 87, .9), transparent 70%), var(--navy);
    box-shadow: inset 0 0 0 1px rgba(255, 252, 237, .1);
}
.contact-title { font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 4vw, 58px); line-height: 1.02; letter-spacing: -.025em; margin-top: 22px; text-wrap: balance; }
.contact-sub { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; color: rgba(255, 252, 237, .86); margin-top: 24px; max-width: 440px; }
.mail { display: flex; flex-direction: column; gap: 6px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255, 252, 237, .16); }
.mail-lab { font-size: 12px; letter-spacing: 2.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.mail a { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); font-weight: 600; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
@media (max-width: 899px) {
    .contact-shell { grid-template-columns: 1fr; border-radius: 22px; }
    .mail { margin-top: 28px; padding-top: 20px; }
}
@media (max-width: 599px) {
    .contact .wrap { padding-inline: 0; }
    .contact-shell { border-radius: 0; padding-inline: var(--gutter); }
}

.brief {
    display: flex; flex-direction: column; gap: 22px;
    padding: clamp(22px, 2.6vw, 34px); border-radius: 20px;
    background: var(--ink);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 252, 237, .08);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kinds { border: 0; margin: 0; padding: 0; min-width: 0; }
.fl { display: block; font-size: 14px; font-weight: 700; margin-bottom: 10px; padding: 0; }
.fl em { font-style: normal; font-weight: 500; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 0 16px; border-radius: 999px;
    font-size: 14px; font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(255, 252, 237, .3);
    transition: background-color .15s ease, color .15s ease;
}
.chip:hover span { background: rgba(255, 252, 237, .08); }
.chip input:checked + span { background: var(--paper); color: var(--ink); box-shadow: none; }
.chip input:checked + span::before { content: "✓"; font-weight: 800; }
.chip input:focus-visible + span { outline: 2px solid var(--paper); outline-offset: 3px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 599px) { .row2 { grid-template-columns: 1fr; gap: 22px; } }
.inp {
    width: 100%; min-height: 52px; padding: 0 16px;
    border: 0; border-radius: 12px;
    background: var(--ink-3); color: var(--paper);
    box-shadow: inset 0 0 0 1px rgba(255, 252, 237, .24);
    font-family: var(--sans); font-size: 16px;   /* 16px stops iOS zooming on focus */
    transition: box-shadow .15s ease;
}
.inp::placeholder { color: rgba(255, 252, 237, .5); }
.inp:hover { box-shadow: inset 0 0 0 1px rgba(255, 252, 237, .4); }
.inp:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--paper), 0 0 0 4px rgba(255, 252, 237, .16); }
.inp[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #F2B8A2; }
.ta { min-height: 110px; padding-block: 14px; resize: vertical; line-height: 1.5; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--paper); border-bottom: 2px solid var(--paper); transform: rotate(45deg); pointer-events: none; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select option { background: var(--ink); color: var(--paper); }
.err { font-size: 14px; color: #F7CBB9; margin-top: 8px; }
.err[hidden] { display: none; }
.brief-status { font-size: 15px; font-weight: 600; text-align: center; }
.brief-status:empty { display: none; }
.brief-status[data-state="sent"] { padding: 14px; border-radius: 12px; background: rgba(255, 252, 237, .1); }
.fine { font-size: 13px; color: var(--muted); text-align: center; }
.brief.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line-2); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 34px 40px; }
.footer-inner img { height: 24px; width: auto; opacity: .9; }
.footer-inner p { font-size: 14px; color: var(--muted); }
.footer-inner nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.footer-inner nav a { font-size: 14px; color: var(--muted); text-decoration: none; padding: 10px 0; }
.footer-inner nav a:hover { color: var(--paper); }
@media (max-width: 899px) {
    .footer-inner { flex-direction: column; align-items: flex-start; padding-bottom: 120px; }
}

/* ---------------------------------------------------------------------------
   Mobile dock. Both main actions, always one thumb away.
   --------------------------------------------------------------------------- */
.dock { display: none; }
@media (max-width: 899px) {
    .dock {
        position: fixed; z-index: 40;
        left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom));
        display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 8px;
        border-radius: 999px;
        background: rgba(24, 27, 31, .82);
        -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
        box-shadow: inset 0 0 0 1px rgba(255, 252, 237, .16), 0 20px 40px -10px rgba(0, 0, 0, .6);
        transition: transform .3s ease, opacity .3s ease;
    }
    .dock:not(:has(button)) { grid-template-columns: 1fr; }
    .dock .btn { min-height: 50px; font-size: 15px; }
    .dock .btn-ghost { padding: 0 18px 0 16px; }
    .dock .pill-play { width: 26px; height: 26px; margin-left: 0; }
    .dock.is-hidden { transform: translateY(calc(100% + 30px)); opacity: 0; pointer-events: none; }
}

/* ---------------------------------------------------------------------------
   Showreel lightbox (native <dialog>: focus is contained and Esc closes).
   --------------------------------------------------------------------------- */
.lightbox {
    width: 100vw; height: 100dvh; max-width: none; max-height: none;
    margin: 0; padding: clamp(16px, 4vw, 56px); border: 0;
    background: transparent; color: var(--paper);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(12, 14, 16, .94); }
.lightbox-frame { width: min(1280px, 100%); aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.lightbox-frame video { width: 100%; height: 100%; object-fit: contain; }
.lightbox-close {
    position: absolute; top: clamp(12px, 2.4vw, 28px); right: clamp(12px, 2.4vw, 28px);
    width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
    display: grid; place-items: center; font-size: 26px; line-height: 1;
    border: 1px solid rgba(255, 252, 237, .4); background: rgba(31, 35, 40, .6); color: var(--paper);
}
.lightbox-close:hover { background: rgba(255, 252, 237, .14); }

/* ---------------------------------------------------------------------------
   Scroll reveal, only where the browser supports scroll-driven animation and
   the visitor hasn't asked for less motion. Everything is visible without it.
   --------------------------------------------------------------------------- */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .film, .credits, .invite, .steps li, .stats > div, .lane-head {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 40%;
        }
    }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .hero-video { display: none; }
}
