:root {
  --bg: #000;
  --text: #f2f2f2;
  --mute: #8d8d8d;
  --line: #262626;
  --wide: "Lexend Giga", "Helvetica Neue", Arial, sans-serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gut: clamp(16px, 5vw, 72px);
  --max: 1280px;
  --ease: cubic-bezier(.7, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; background: var(--bg); }
body {
  background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--sans); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: italic; }

/* ---------- The emblem (masked so it can be any colour) ---------- */
.emblem {
  display: inline-block; aspect-ratio: 1; background: currentColor;
  -webkit-mask: url(images/emblem.png) center / contain no-repeat;
          mask: url(images/emblem.png) center / contain no-repeat;
}
.spin { transform: rotate(var(--turn, 0deg)); }

/* ---------- Type pulled from the wordmark ---------- */
.wide {
  font-family: var(--wide); font-weight: 200; text-transform: uppercase;
  letter-spacing: .02em; line-height: 1.05;
}
.kind, .bar span, .links a, .btn, .link, dt {
  font-family: var(--sans); font-stretch: 125%; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
}
.kind { font-size: .72rem; color: var(--mute); margin-bottom: .9rem; }

/* Section title = the logo lockup: name, then a heavy bar with a bold label at its end */
.title { margin-bottom: clamp(36px, 5vw, 64px); }
.title h2 { font-size: clamp(2rem, 6.4vw, 5.4rem); margin-bottom: .5rem; }
.bar { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 18px); }
.bar i { flex: 1; height: clamp(10px, 1.3vw, 18px); background: var(--text); transform-origin: left; }
.bar span { font-size: clamp(.72rem, 1.4vw, 1.1rem); line-height: 1; white-space: nowrap; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 68px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gut);
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s;
}
.nav.scrolled { background: rgba(0, 0, 0, .88); backdrop-filter: blur(8px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--text); }
.brand .emblem { width: 30px; }
.brand-word { font: 300 .95rem/1 var(--wide); text-transform: uppercase; letter-spacing: .04em; }
.links { display: flex; gap: 1.8rem; }
.links a { font-size: .7rem; text-decoration: none; color: var(--mute); transition: color .2s; }
.links a:hover { color: var(--text); }
.menu { display: none; background: none; border: 0; width: 32px; height: 32px; cursor: pointer; position: relative; }
.menu span { position: absolute; left: 5px; right: 5px; height: 2px; background: var(--text); transition: transform .3s; }
.menu span:first-child { top: 11px; } .menu span:last-child { top: 19px; }
.menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px var(--gut) 120px; text-align: center;
}
.ident { width: min(1100px, 100%); aspect-ratio: 16 / 9; }
.ident video { height: 100%; object-fit: cover; }
.hero-copy { margin-top: -2vw; opacity: 0; transform: translateY(10px); transition: opacity 1.2s ease, transform 1.2s ease; }
.hero-copy.on { opacity: 1; transform: none; }
.tagline { font: 200 clamp(1.1rem, 2.6vw, 1.9rem)/1.3 var(--wide); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }
.sub { font-size: .9rem; color: var(--mute); }
.cue { position: absolute; bottom: 32px; left: 50%; translate: -50% 0; color: var(--mute); transition: color .2s; }
.cue .emblem { width: 34px; }
.cue:hover { color: var(--text); }

/* ---------- Blocks ---------- */
.block { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 13vw, 180px) var(--gut) 0; position: relative; }
.player { aspect-ratio: 16 / 9; background: #0a0a0a; }
.player video { height: 100%; object-fit: cover; }
.btn {
  display: inline-block; font-size: .75rem; text-decoration: none;
  padding: 1rem 1.4rem; background: var(--text); color: #000; transition: background .2s;
}
.btn:hover { background: #bdbdbd; }
.link { font-size: .72rem; text-decoration: none; border-bottom: 2px solid var(--text); padding-bottom: 3px; }
.link:hover { color: var(--mute); border-color: var(--mute); }

/* Featured */
.featured-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(28px, 6vw, 96px); margin-top: clamp(40px, 6vw, 80px); align-items: start; }
.poster-btn { background: none; border: 0; padding: 0; cursor: zoom-in; }
.lede { font: 300 clamp(1.15rem, 2vw, 1.5rem)/1.45 var(--sans); margin-bottom: 2rem; }
dl { border-top: 1px solid var(--line); margin-bottom: 2.25rem; }
dl div { display: grid; grid-template-columns: 13rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
dt { font-size: .66rem; color: var(--mute); padding-top: .3rem; }
.awards { list-style: none; display: grid; gap: .7rem; }
.awards li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; font-size: .95rem; }
.awards b { font: 700 .66rem/1.9 var(--sans); font-stretch: 125%; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }

/* Slate */
.slate-lead { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.trailer { aspect-ratio: 1080 / 1010; overflow: hidden; background: #000; }
.trailer video { height: 100%; object-fit: cover; }
.script-title { aspect-ratio: 2.4 / 1; object-fit: cover; max-width: 640px; margin: -1rem 0 .5rem -4%; }
.slate-copy p:not(.kind) { color: #cfcfcf; max-width: 52ch; margin-bottom: 2rem; }
.slate-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); margin-top: clamp(56px, 8vw, 104px); }
.slate-card img { aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 1.4rem; }
.slate-card h3 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); margin-bottom: .6rem; }
.slate-card p:not(.kind) { color: #bdbdbd; margin-bottom: 1.25rem; }

/* Films */
.films { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 5vw, 64px) clamp(14px, 2.4vw, 32px); }
.film { background: none; border: 0; padding: 0; text-align: left; cursor: zoom-in; display: grid; gap: .3rem; }
.film img { aspect-ratio: 2 / 3; object-fit: cover; margin-bottom: .9rem; transition: filter .4s; }
.film:hover img { filter: brightness(1.12); }
.film-t { font: 300 1.05rem/1.25 var(--wide); text-transform: uppercase; letter-spacing: .02em; }
.film-m { font-size: .85rem; color: var(--mute); }
.wide-card { grid-column: 1 / -1; }
.wide-card img { aspect-ratio: 1686 / 976; }

/* Company */
.company { overflow: hidden; isolation: isolate; }
.big-emblem {
  position: absolute; right: -14vw; top: 6vw; width: min(62vw, 760px);
  color: #121212; z-index: -1; transform: rotate(var(--turn, 0deg));
}
.company-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 96px); }
.statement { font: 200 clamp(1.15rem, 2.1vw, 1.7rem)/1.45 var(--wide); text-transform: uppercase; letter-spacing: .01em; }
.company-copy p { color: #cfcfcf; margin-bottom: 1.2rem; max-width: 54ch; }
.company-copy .link { display: inline-block; margin-top: .75rem; }
.partners { margin-top: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); padding-top: 1.5rem; }
.partners ul { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 2.4rem; }
.partners li { font: 300 clamp(.9rem, 1.5vw, 1.15rem)/1.4 var(--wide); text-transform: uppercase; }

/* Contact */
.contact-lede { color: #cfcfcf; margin-bottom: 1.25rem; }
.mail {
  display: inline-block; font: 200 clamp(.95rem, 2.6vw, 2.3rem)/1.3 var(--wide);
  text-decoration: none; overflow-wrap: anywhere; border-bottom: 2px solid var(--text); padding-bottom: .3rem;
}
.mail:hover { color: var(--mute); }
.social { list-style: none; display: flex; gap: 2rem; margin-top: 2.5rem; }
.social a { font: 700 .72rem/1 var(--sans); font-stretch: 125%; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--mute); }
.social a:hover { color: var(--text); }

.foot {
  max-width: var(--max); margin: clamp(110px, 15vw, 200px) auto 0;
  padding: 0 var(--gut) 48px; text-align: center;
}
.foot-logo { width: min(420px, 80%); margin: 0 auto 2rem; filter: invert(1); }
.foot p { font-size: .78rem; color: var(--mute); }

/* Lightbox */
.lightbox { margin: auto; border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .92); }
.lightbox img { max-height: 92vh; width: auto; max-width: 100%; margin: 0 auto; }
.lb-close { position: fixed; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }

/* ================= Scroll transitions ================= */
/* Titles: wide letters settle in, like the wordmark; the bar draws out like film leader */
.title h2 { opacity: 0; letter-spacing: .35em; transition: opacity 1s ease, letter-spacing 1.4s var(--ease); }
.title .bar i { transform: scaleX(0); transition: transform 1.2s var(--ease) .25s; }
.title .bar span { opacity: 0; transform: translateX(-12px); transition: opacity .6s ease 1.1s, transform .6s ease 1.1s; }
.title.in h2 { opacity: 1; letter-spacing: .02em; }
.title.in .bar i { transform: none; }
.title.in .bar span { opacity: 1; transform: none; }

/* Images and copy advance into frame like the next frame on a reel */
[data-reveal]:not(.title) {
  opacity: 0; transform: translateY(40px); clip-path: inset(0 0 100% 0);
  transition: opacity .8s ease var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s), clip-path 1.1s var(--ease) var(--d, 0s);
}
[data-reveal]:not(.title).in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .films { grid-template-columns: repeat(2, 1fr); }
  .featured-grid, .slate-lead, .company-grid { grid-template-columns: 1fr; }
  .poster-btn { max-width: 420px; }
  .trailer { max-width: 460px; }
  dl div, .awards li { grid-template-columns: 1fr; gap: .2rem; }
}
@media (max-width: 760px) {
  .links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: #000; border-bottom: 1px solid var(--line); padding: .5rem var(--gut) 1.5rem;
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .links.open { opacity: 1; transform: none; pointer-events: auto; }
  .links a { padding: 1rem 0; font-size: .78rem; color: var(--text); border-bottom: 1px solid var(--line); }
  .menu { display: block; }
  .slate-row { grid-template-columns: 1fr; }
  .films { grid-template-columns: 1fr 1fr; gap: 32px 14px; }
  .film-t { font-size: .85rem; }
  .film-m { font-size: .75rem; }
  .big-emblem { width: 90vw; right: -40vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .title h2, .title .bar i, .title .bar span, [data-reveal], .hero-copy {
    opacity: 1 !important; transform: none !important; clip-path: none !important; letter-spacing: .02em; transition: none !important;
  }
}
