:root {
  --bg: #0b0b0c;
  --bg-2: #141416;
  --ink: #f3efe8;
  --muted: #9a958d;
  --line: #2a2a2d;
  --accent: #d9b88a;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --gap: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 300 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--pad); transition: background .4s, padding .4s; }
.nav.solid { background: rgba(11,11,12,.92); backdrop-filter: blur(10px); padding-block: 14px; border-bottom: 1px solid var(--line); }
.brand { font: 500 13px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; text-decoration: none; }
.brand span { color: var(--accent); margin-left: .5em; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta { color: var(--ink); border: 1px solid var(--ink); padding: 9px 18px; }
.nav-links .nav-cta:hover { background: var(--ink); color: var(--bg); }
.nav-toggle { display: none; width: 28px; height: 18px; position: relative; }
.nav-toggle span { position: absolute; left: 0; right: 0; height: 1px; background: var(--ink); transition: transform .3s, top .3s; }
.nav-toggle span:first-child { top: 4px; } .nav-toggle span:last-child { top: 13px; }
.nav-open .nav-toggle span:first-child { top: 9px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 9px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.hero-media { position: absolute; inset: 0; pointer-events: none; }
.hero-media iframe { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh; transform: translate(-50%,-50%); border: 0; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,.1) 40%, rgba(11,11,12,.85) 100%); }
.hero-content { position: relative; padding: 0 var(--pad) clamp(80px, 14vh, 140px); max-width: 1100px; }
.hero h1 { font: 300 clamp(32px, 5.4vw, 78px)/1.02 var(--display); letter-spacing: -.01em; text-transform: uppercase; margin: 16px 0 36px; }
.hero h1 em { font-style: normal; font-weight: 600; color: var(--accent); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.scroll-cue { position: absolute; right: var(--pad); bottom: 40px; width: 1px; height: 64px; background: linear-gradient(var(--ink), transparent); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%,100% { opacity: .25; transform: scaleY(.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

.eyebrow { font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--accent); }
.btn { display: inline-block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding: 15px 30px; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); transition: background .2s, color .2s; }
.btn:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 12vw, 160px) var(--pad); }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section h2 { font: 300 clamp(34px, 4.6vw, 64px)/1 var(--display); letter-spacing: .01em; text-transform: uppercase; margin: 12px 0 16px; }
.lede { color: var(--muted); font-size: 17px; }
.lede a { color: var(--ink); }

/* ---------- films ---------- */
.films { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px var(--gap); }
.film { text-align: left; display: block; }
.film-poster { display: block; position: relative; aspect-ratio: 16/9; background: var(--bg-2); overflow: hidden; }
.film-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .4s; opacity: .85; }
.film:hover .film-poster img { transform: scale(1.04); opacity: 1; }
.film-poster::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 1px solid rgba(243,239,232,.8); border-radius: 50%; background: rgba(11,11,12,.25); backdrop-filter: blur(4px); transition: transform .3s; }
.film-poster::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: 1; margin: -8px 0 0 -4px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--ink); }
.film:hover .film-poster::after { transform: scale(1.12); }
.film-title { display: block; margin-top: 14px; font: 500 15px/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.film-meta { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* ---------- gallery: even square thumbnails ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); max-width: 1500px; margin-inline: auto; }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.tile { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--bg-2); display: block; width: 100%; }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s, transform .8s cubic-bezier(.2,.7,.2,1), filter .4s; }
.tile img.loaded { opacity: 1; }
.gallery:hover .tile img.loaded { filter: brightness(.45) grayscale(.4); }
.gallery .tile:hover img.loaded, .gallery .tile:focus-visible img.loaded { filter: none; transform: scale(1.05); }
.gallery-empty { grid-column: 1/-1; border: 1px dashed var(--line); padding: 64px 24px; text-align: center; color: var(--muted); }
.gallery-empty code { color: var(--ink); }

/* ---------- about ---------- */
.about { background: var(--bg-2); }
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); max-width: 1200px; }
.quote { font: 300 22px/1.4 var(--display); color: var(--accent); }
.about-body p { margin-bottom: 1.2em; font-size: 17px; color: #d6d1c9; }
.about-body h3 { font: 400 12px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin: 36px 0 16px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { border: 1px solid var(--line); padding: 8px 16px; font-size: 14px; }

/* ---------- contact ---------- */
.form { max-width: 640px; margin: 0 auto; display: grid; gap: 22px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form label { display: grid; gap: 8px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.form input, .form textarea { font: 300 16px/1.5 var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; resize: vertical; transition: border-color .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .btn { justify-self: start; }
.form-note { font-size: 14px; color: var(--accent); min-height: 1.5em; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px var(--pad); display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.social { display: flex; gap: 28px; }
.social a { text-decoration: none; letter-spacing: .16em; text-transform: uppercase; font-size: 11px; }
.social a:hover { color: var(--ink); }

/* ---------- lightbox & player ---------- */
.lightbox, .player { position: fixed; inset: 0; z-index: 100; background: rgba(6,6,7,.97); display: flex; align-items: center; justify-content: center; animation: fade .3s; }
.lightbox[hidden], .player[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { max-width: calc(100vw - 160px); max-height: calc(100svh - 100px); display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100svh - 120px); object-fit: contain; transition: opacity .25s; }
.lightbox figcaption { margin-top: 14px; font-size: 11px; letter-spacing: .24em; color: var(--muted); }
.lb-close { position: absolute; top: 14px; right: 22px; font-size: 40px; font-weight: 200; line-height: 1; padding: 8px; color: var(--muted); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 56px; font-weight: 200; padding: 20px; color: var(--muted); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--ink); }
.player-frame { width: min(92vw, calc((100svh - 120px) * 16 / 9)); aspect-ratio: 16/9; }
.player-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav-links { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 30px; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav-open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 15px; }
  .about-grid { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .lightbox figure { max-width: 100vw; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* films that only play on the site's own domain use Vimeo's player inline */
.film-embed .film-poster::before, .film-embed .film-poster::after { display: none; }
.film-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.hero .eyebrow { color: var(--ink); text-shadow: 0 1px 10px rgba(0,0,0,.6); }

.field-error { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--accent); }
@media (max-width: 860px) { .nav.solid { backdrop-filter: none; background: var(--bg); } }
.film:only-child { grid-column: 1 / -1; }

.film-link { display: block; text-decoration: none; }
.film-link .film-poster { display: block; background: linear-gradient(135deg, #1c1c20, #101012); }
.film-link:hover .film-poster::after { transform: scale(1.12); }
@media (max-width: 700px) { .films { grid-template-columns: 1fr; } }

/* search landing pages */
.page-hero { height: 72svh; }
.page-hero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-lede { font-size: 19px; max-width: 560px; margin: -14px 0 30px; }
.page-copy { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); max-width: 1400px; }
.page-copy h2, .page-faq h2 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; }
.page-copy p, .page-faq p { color: #d6d1c9; }
.page-media { padding-top: 0; }
.page-faq { max-width: 760px; }
.page-faq h3 { font: 500 17px/1.4 var(--display); text-transform: uppercase; letter-spacing: .04em; margin: 28px 0 6px; }
.center-cta { text-align: center; }
.center-cta .lede { margin-bottom: 28px; }
.footer-pages { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-pages a { text-decoration: none; }
.footer-pages a:hover { color: var(--ink); }
@media (max-width: 860px) { .page-copy { grid-template-columns: 1fr; } }
.page-hero .hero-media img { object-position: center top; }
@media (min-width: 1000px) { .page-media .films { grid-template-columns: repeat(3, 1fr); } }
