/* SFX Movie: black screen, aliceblue type, red accent. Square corners; only buttons are rounded.
   Scroll motion lives in css/scroll-stage.css (shared with the venue sites). */
:root {
  --ink: #050505;
  --ink-soft: #111;
  --paper: #f0f8ff;
  --muted: rgb(240 248 255 / .72);
  --line: rgb(240 248 255 / .18);
  --accent: #e3121b;
  /* System fonts: Roboto on Android, San Francisco on Apple; no font request. */
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --pad: 16px;
  --header: 72px;
  --dock-height: calc(86px + env(safe-area-inset-bottom, 0px));
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); }
body.sfx {
  --stage-dock: var(--dock-height);
  --stage-skirt: var(--ink);
  margin: 0;
  padding-bottom: var(--dock-height);
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
main { overflow: clip; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
picture { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 50; top: 12px; left: 12px; padding: 12px 18px; background: var(--paper); color: var(--ink); border-radius: 999px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
:is(a, button, [tabindex]):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Header: logo, menu button, and the navigation as a full-screen sheet on phones. */
.site-header { position: fixed; z-index: 30; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; height: var(--header); padding: 0 var(--pad); background: linear-gradient(rgb(5 5 5 / .75), transparent); }
.site-header .logo img { width: 72px; height: auto; }
.menu-toggle { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1.5px solid var(--paper); border-radius: 999px; background: rgb(5 5 5 / .5); color: var(--paper); cursor: pointer; position: relative; z-index: 2; }
.menu-toggle svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.site-nav { position: fixed; inset: 0; display: none; flex-direction: column; justify-content: center; gap: 4px; padding: var(--header) 24px var(--dock-height); background: var(--ink); }
.site-nav.is-open { display: flex; }
.site-nav ul { margin: 0; padding: 0; list-style: none; }
.site-nav > ul > li > a { display: block; padding: 8px 0; font-size: 34px; font-weight: 900; line-height: 1.05; text-transform: uppercase; text-decoration: none; }
.site-nav .rentals > a { color: var(--accent); }
.site-nav .sub { padding: 4px 0 8px 2px; }
.site-nav .sub a { display: inline-flex; min-height: 40px; align-items: center; color: var(--muted); font-size: 18px; text-decoration: none; }
@media (min-width: 900px) {
  :root { --pad: 5vw; --header: 84px; }
  .menu-toggle { display: none; }
  .site-nav { position: static; display: flex; flex-direction: row; align-items: center; padding: 0; background: none; }
  .site-nav > ul { display: flex; gap: 28px; align-items: center; }
  .site-nav > ul > li { position: relative; }
  .site-nav > ul > li > a { padding: 8px 0; font-size: 15px; font-weight: 700; }
  .site-nav .sub { position: absolute; top: 100%; left: -16px; display: none; min-width: 240px; padding: 12px 16px; background: var(--ink); border: 1px solid var(--line); }
  .site-nav .rentals:is(:hover, :focus-within) .sub { display: block; }
  .site-nav .sub a { min-height: 36px; font-size: 15px; }
}

/* Bottom dock: Equipment, Contact (WhatsApp), Call. */
.mobile-bottom-nav { position: fixed; z-index: 20; inset: auto 0 0; display: grid; grid-template-columns: 27.5fr 45fr 27.5fr; gap: 8px; padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
.mobile-bottom-nav a { display: flex; align-items: center; justify-content: center; height: 62px; border: 1.5px solid var(--paper); border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; }
.mobile-bottom-nav .dock-contact { border-color: var(--accent); background: var(--accent); font-weight: 900; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }
.mobile-bottom-nav svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) { .mobile-bottom-nav { left: 50%; right: auto; width: 460px; transform: translateX(-50%); } }

/* Scenes: each stage is one screen of black with its content below the header. */
.screen { position: relative; padding: calc(var(--header) + 8px) var(--pad) 32px; background: var(--ink); }
.title { font: 900 clamp(44px, 13vw, 128px)/.92 var(--font); letter-spacing: -.02em; text-transform: uppercase; color: var(--paper); margin-bottom: 18px; }
.lede { max-width: 46ch; color: var(--muted); margin-bottom: 18px; }
.screen-text { display: grid; gap: 18px; max-width: 62ch; color: var(--muted); font-size: clamp(14px, 2.75svh, 18px); line-height: 1.55; }

/* Hero: the showreel alone; its own section cards carry the words. Portrait screens play the square cut,
   centred between header and dock; landscape screens fill with the 16:9 film. */
.hero { display: grid; place-items: center; height: 100svh; padding: var(--header) 0 var(--dock-height); overflow: hidden; background: var(--ink); }
.hero-film { display: block; width: min(100%, 100svh - var(--header) - var(--dock-height)); aspect-ratio: 1; object-fit: cover; background: var(--ink); }
/* Around the square, the same film plays blurred at 20% (js/site.js copies its frames into this small canvas);
   until it plays, the poster stands in. */
.hero { position: relative; isolation: isolate; }
.hero-backdrop { position: absolute; z-index: -1; inset: -10%; width: 120%; height: 120%; object-fit: cover; opacity: .2; filter: blur(24px); background: url(/images/avif/showreel-poster.avif) center / cover; pointer-events: none; }
@media (orientation: landscape) {
  .hero-film { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  .hero-backdrop { display: none; }
}

/* Rails: a section's title and description open its rail as the first card; each item card follows,
   picture above and text below on its own ground. One card width per rail, read by the stage to centre the cards. */
.rail { width: 100vw; margin-inline: calc(var(--pad) * -1); padding: 12px var(--pad) 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.track { display: flex; gap: 14px; width: max-content; margin: 0; padding: 0 var(--pad) 0 0; list-style: none; --stage-card-width: min(calc(100vw - 32px), 100cqb * .8, 440px); }
.card { display: flex; flex-direction: column; flex: 0 0 auto; width: var(--stage-card-width); height: 100%; overflow: hidden; background: var(--ink-soft); scroll-snap-align: center; }
.card picture { flex: 1 1 auto; min-height: min(40svh, 340px); overflow: hidden; }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card-body { flex: none; padding: 16px 18px 18px; }
.card h3 { font: 900 26px/1 var(--font); text-transform: uppercase; }
.card .role { display: block; margin-top: 8px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.card p b { color: var(--paper); }
/* Pinned, the rail is one screen tall (a size container): the picture gives way so the text keeps its room. */
@container (min-height: 0px) {
  .card picture { flex: 1 1 0; min-height: 22cqb; }
  .card h3 { font-size: clamp(18px, 5cqb, 26px); }
  .card p { font-size: clamp(12px, 3.1cqb, 15px); }
}
.intro-card { container-type: inline-size; justify-content: flex-end; gap: 16px; padding: 28px 22px; background: radial-gradient(130% 70% at 90% 0%, rgb(227 18 27 / .3), transparent 60%), var(--ink-soft); }
.intro-card .title { margin: 0; font-size: clamp(34px, 13cqi, 72px); }
.intro-card .lede { margin: 0; max-width: none; font-size: clamp(16px, 5cqi, 20px); }
.film-card { justify-content: center; background: #000; }
.film-card video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* Flow sections: the closing line and the footer scroll normally. */
.closing { display: grid; justify-items: center; gap: 28px; padding: 72px var(--pad); text-align: center; }
.closing blockquote { margin: 0; font: 900 clamp(30px, 8vw, 72px)/1 var(--font); text-transform: uppercase; }
.button { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border: 1.5px solid var(--paper); border-radius: 999px; font-weight: 700; text-decoration: none; }
.contact-button { min-height: 62px; padding: 0 44px; border-color: var(--accent); background: var(--accent); color: #fff; font-size: 20px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.site-footer { display: grid; gap: 28px; padding: 48px var(--pad) 32px; border-top: 1px solid var(--line); }
.site-footer h2 { font: 900 22px/1 var(--font); text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.socials { display: flex; gap: 12px; margin-bottom: 18px; }
.socials a { display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: 999px; }
.socials svg { width: 22px; height: 22px; fill: currentColor; }
.footer-nav ul { display: grid; grid-template-columns: 1fr 1fr; }
.copyright { color: var(--muted); font-size: 13px; }
@media (min-width: 900px) { .site-footer { grid-template-columns: 1fr 1fr; } .copyright { grid-column: 1 / -1; } }

/* 404. */
.not-found { display: grid; place-content: center; gap: 18px; min-height: 100svh; padding: var(--header) var(--pad) var(--dock-height); text-align: center; }
.not-found h1 { font: 900 clamp(110px, 40vw, 220px)/.8 var(--font); }
.not-found small { color: var(--muted); }
.not-found a { text-decoration: underline; text-underline-offset: 4px; }
