/* ==========================================================================
   RED ARK CINEMA STUDIO
   assets/css/styles.css
   --------------------------------------------------------------------------
   1. Design tokens          5. Navigation        9. Showreel
   2. Reset & base           6. Hero             10. Contact
   3. Shared components      7. About            11. Footer + rail
   4. Reveal system          8. Services / Work  12. Overlays, responsive
   ========================================================================== */

/* ============================ 1. DESIGN TOKENS ========================== */
:root {
  /* Depth layers */
  --void: #050505;
  --abyss: #0b0b0b;
  --surface: #141414;

  /* Brand red — a controlled accent, never a background wash */
  --brand: #e50914;
  --brand-deep: #8f0010;
  --brand-soft: #ff3b3f;
  --brand-tint: rgba(229, 9, 20, .12);
  /* A shade deeper than --brand, used only for the header Track CTA so the one
     filled control in the bar reads as a deliberate, darker red. */
  --brand-cta: #c00a12;

  /* WhatsApp — the only green on the site, used solely by the WhatsApp contact
     card so that one channel reads at a glance. `--wa-fill` is a transparent
     dark green: it tints the near-black card without turning it into a slab of
     colour, which would fight the red brand. */
  --wa: #25d366;
  --wa-bright: #4ade80;
  --wa-line: rgba(37, 211, 102, .45);
  /* Over the section's #0b0b0b this resolves to roughly #0f2f1e — a clearly
     green card that is still dark enough not to shout next to its neighbours. */
  --wa-fill: rgba(26, 160, 90, .24);
  --wa-tint: rgba(37, 211, 102, .15);

  /* Text */
  --paper: #f5f5f5;
  --mist: #a1a1aa;
  --ash: #737373;

  /* Borders */
  --line: #262626;
  --line-2: #3a3a3a;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --nav-h: 72px;

  /* Motion */
  --dur-1: 220ms;
  --dur-2: 480ms;
  --dur-3: 800ms;
  --dur-4: 1050ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  /* Radii — editorial, near-square by default */
  --r-1: 2px;
  --r-pill: 999px;

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Layers */
  --z-grain: 20;
  --z-rail: 45;
  --z-nav: 50;
  --z-menu: 60;
  --z-progress: 70;
  --z-modal: 100;
}

/* ============================ 2. RESET & BASE =========================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--void);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  /* `clip` is preferred: unlike `hidden` it does not turn the body into a
     scroll container (which would set overflow-y to auto). */
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
svg { display: block; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

h1, h2, h3, h4, p, dl, dd, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: .85em;
  color: var(--brand-soft);
}

::selection { background: var(--brand); color: var(--void); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--r-1);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: #2c2c2c; border: 3px solid var(--void); }
::-webkit-scrollbar-thumb:hover { background: var(--brand-deep); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 0; left: 50%;
  z-index: calc(var(--z-modal) + 10);
  padding: .8rem 1.4rem;
  background: var(--brand);
  color: var(--void);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: translate(-50%, -120%);
  transition: transform var(--dur-2) var(--ease-out);
}
.skip:focus { transform: translate(-50%, 0); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

/* Section headings */
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.6vw, 4.6rem);
  line-height: 1.0;
  letter-spacing: -.03em;
  margin-top: 1.4rem;
  text-wrap: balance;
}

.lede {
  color: var(--mist);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.75;
  max-width: 46ch;
}

.about__copy > p + p { margin-top: 1.1rem; }
.about__copy > p { color: var(--mist); max-width: 46ch; }

/* ========================= 3. SHARED COMPONENTS ========================= */

/* Section label: index + hairline + uppercase caption */
.label {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--mist);
}
.label__idx {
  font-family: var(--font-display);
  color: var(--brand);
  letter-spacing: .16em;
}
.label__line {
  flex: none;
  width: 2.5rem;
  height: 1px;
  background: var(--line-2);
}
.label--center { justify-content: center; }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  padding: 1rem 1.65rem;
  border: 1px solid var(--brand);
  border-radius: var(--r-pill);
  background: var(--brand);
  color: var(--void);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  transition:
    background var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out);
}
.btn:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--void);
  transform: translateY(-2px);
}
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .arrow { transform: translate(2px, -2px); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--paper);
}
.btn--ghost:hover {
  background: var(--brand-tint);
  border-color: var(--brand);
  color: var(--paper);
}
.btn--sm { padding: .72rem 1.15rem; font-size: .68rem; }

.play-glyph { font-size: .72em; color: var(--brand); }
.btn--ghost:hover .play-glyph { color: var(--paper); }

/* Magnetic buttons: JS writes --mx / --my, CSS composes the transform */
.btn[data-magnetic] { transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); }
.btn[data-magnetic]:hover {
  transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) - 2px), 0);
}
.btn[data-magnetic]:active {
  transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) + 1px), 0);
}

/* Scroll progress bar */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-progress);
  height: 2px;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand), var(--brand-soft));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* Film grain — self-contained SVG noise, no external asset */
.grain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: var(--z-grain);
}
.grain::before {
  content: '';
  position: absolute;
  inset: -150%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .055;
  animation: grain-shift .9s steps(6) infinite;
}

/* Section header block */
.head {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.head__note {
  color: var(--mist);
  font-size: .95rem;
  line-height: 1.75;
  max-width: 40ch;
}

/* ========================== 4. REVEAL SYSTEM =========================== */
/* Reveal styling is scoped to `.js` so the page reads perfectly with JS off. */

.js [data-anim] { will-change: transform, opacity; }

.js [data-anim="fade"] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity var(--dur-3) var(--ease-out) var(--d, 0ms),
    transform var(--dur-3) var(--ease-out) var(--d, 0ms);
}
.js [data-anim="fade"].is-in { opacity: 1; transform: none; }

.js [data-anim="scale"] {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(.97);
  transition:
    opacity var(--dur-3) var(--ease-out) var(--d, 0ms),
    transform var(--dur-3) var(--ease-out) var(--d, 0ms);
}
.js [data-anim="scale"].is-in { opacity: 1; transform: none; }

.js [data-anim="clip"] {
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--dur-4) var(--ease-out) var(--d, 0ms);
}
.js [data-anim="clip"].is-in { clip-path: inset(0 0 0 0); }

/* Word-by-word mask reveal (built by main.js) */
.js [data-anim="mask"] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .14em;
  margin-bottom: -.14em;
}
.js [data-anim="mask"] .w__i {
  display: inline-block;
  transform: translate3d(0, 115%, 0);
  transition: transform .9s var(--ease-out);
  transition-delay: calc(var(--d, 0ms) + var(--i, 0) * 55ms);
}
.js [data-anim="mask"].is-in .w__i { transform: translate3d(0, 0, 0); }

.w--accent { color: var(--brand); }

/* Masked headline fragments */
.mask { display: inline-block; }
.mask--outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .62);
}
.mask--red { color: var(--brand); }

/* ============================= KEYFRAMES ============================== */
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-4%, 3%); }
  40%  { transform: translate(3%, -4%); }
  60%  { transform: translate(-3%, -2%); }
  80%  { transform: translate(4%, 3%); }
  100% { transform: translate(0, 0); }
}

/* Ambient hero motion. `scale` and `translate` are independent CSS
   properties, so both animations can run on one element while JS still
   drives `transform` for the scroll-linked parallax. */
@keyframes hero-zoom {
  from { scale: 1.05; }
  to   { scale: 1.16; }
}
@keyframes hero-drift {
  from { translate: -1.4% 0; }
  to   { translate: 1.4% 0; }
}

@keyframes sweep {
  0%   { transform: translateX(-120%) skewX(-12deg); opacity: 0; }
  18%  { opacity: 1; }
  55%  { opacity: .7; }
  100% { transform: translateX(520%) skewX(-12deg); opacity: 0; }
}

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes pulse-ring {
  0%   { transform: scale(.92); opacity: .75; }
  100% { transform: scale(1.55); opacity: 0; }
}

@keyframes cue-slide {
  0%   { transform: translateY(-100%); }
  50%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 63, .45); }
  50%      { box-shadow: 0 0 0 7px rgba(255, 59, 63, 0); }
}

/* ============================ 5. NAVIGATION ============================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(5, 5, 5, .78) 0%, rgba(5, 5, 5, 0) 100%);
  border-bottom: 1px solid transparent;
  transition:
    height var(--dur-2) var(--ease-out),
    background var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out);
}
.nav.is-scrolled {
  height: 64px;
  background: rgba(5, 5, 5, .88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-right: auto;
  flex: none;
}
.brand__logo { height: 46px; width: auto; transition: height var(--dur-2) var(--ease-out); }
.nav.is-scrolled .brand__logo { height: 40px; }

/* Text lockup — used automatically if the logo file cannot be loaded */
.brand__text { display: none; align-items: center; gap: .65rem; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 2px solid var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -.06em;
  transform: skew(-8deg);
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .14em;
  line-height: 1.05;
}
.brand__name small {
  display: block;
  margin-top: .3rem;
  font-size: .5rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ash);
}
.brand.is-fallback .brand__logo { display: none; }
.brand.is-fallback .brand__text { display: inline-flex; }

.nav__links {
  display: none;
  align-items: center;
  gap: clamp(1rem, 1.9vw, 2.1rem);
}
.nav__links a {
  position: relative;
  padding-block: .45rem;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mist);
  transition: color var(--dur-2) var(--ease-out);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform var(--dur-2) var(--ease-out);
}
.nav__links a:hover { color: var(--paper); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav__links a.is-current { color: var(--paper); }
.nav__links a.is-current::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
  background: var(--brand);
}

/* Track button while its portal URL is unset: fully styled so the design can be
   reviewed, but the cursor and tooltip make clear it is not connected yet.
   main.js removes this the moment TRACK_URL is filled in. */
[data-track-pending] { cursor: help; }

/* Header Track CTA — the action a client most often wants, so it is the only
   filled control in the bar. Reuses .btn / .btn--sm; these rules add the raised
   depth, the live dot and the hover lift. Hidden on phones, where the mobile
   menu and the footer carry the same link. */
.nav__cta {
  display: none;
  position: relative;
  overflow: hidden;                      /* clips the sheen */
  white-space: nowrap;                   /* the pill label never breaks in two */
  padding-block: .62rem;                 /* shorter than .btn--sm: the bar breathes */
  /* A deeper red than a standard .btn, with light text on top: --paper on
     --brand-cta is 5.9:1, where the usual --void label would only be 1.3:1. */
  background: var(--brand-cta);
  border-color: var(--brand-cta);
  color: var(--paper);
  box-shadow:
    0 6px 18px rgba(192, 10, 18, .32),
    inset 0 1px 0 rgba(255, 255, 255, .16);
  transition:
    transform var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}
/* .btn:hover flips the fill to white; the header CTA stays red so it keeps
   reading as the primary action, and lifts instead. */
.nav__cta:hover {
  background: var(--brand-cta);
  border-color: var(--brand-cta);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow:
    0 10px 26px rgba(192, 10, 18, .46),
    inset 0 1px 0 rgba(255, 255, 255, .2);
}
.nav__cta:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(192, 10, 18, .34);
}
/* A slow sheen, so the button reads as live rather than merely red. */
.nav__cta::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: translateX(-120%);
  animation: sweep 7s var(--ease-in-out) infinite;
  pointer-events: none;
}
.nav__cta-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-soft);
  animation: dot-pulse 1.8s var(--ease-in-out) infinite;
}
.nav.is-scrolled .nav__cta { padding-block: .5rem; }
/* The Track CTA leads to a page on this site, so its arrow is a plain → that
   slides right on hover — not the ↗ (and its up-right travel) used by the
   buttons that leave for another section. Scoped to .nav__cta so the shared
   .btn arrow rule above keeps serving those. */
.nav__cta:hover .arrow { transform: translateX(2px); }

/* While TRACK_URL is empty the button must not look broken: it keeps the same
   dark red family, but loses the glow and the sheen and takes a dashed edge and a
   static dot, so "not connected yet" is still unmistakable. */
[data-track-pending].nav__cta {
  background: var(--brand-deep);
  border: 1px dashed rgba(245, 245, 245, .4);
  color: var(--paper);
  box-shadow: none;
}
[data-track-pending].nav__cta::after { display: none; }
[data-track-pending] .nav__cta-dot { background: var(--ash); animation: none; }

.nav__toggle {
  display: grid;
  place-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: none;
}
.nav__toggle-bar {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--paper);
  transition:
    transform var(--dur-2) var(--ease-out),
    background var(--dur-1) linear;
}
.nav__toggle:hover .nav__toggle-bar { background: var(--brand); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:first-child {
  transform: translateY(3.75px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Mobile menu overlay */
.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--nav-h) + .5rem);
  padding-bottom: 2.5rem;
  background: var(--void);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--dur-2) var(--ease-out),
    visibility var(--dur-2) linear;
}
.menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.menu__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity .55s var(--ease-out),
    transform .55s var(--ease-out);
}
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(1) { transition-delay: 70ms; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: 120ms; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: 170ms; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: 220ms; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: 270ms; }
.menu.is-open .menu__nav a:nth-child(6) { transition-delay: 320ms; }
.menu.is-open .menu__nav a:nth-child(7) { transition-delay: 370ms; }

.menu__idx {
  font-family: var(--font-display);
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--brand);
}
.menu__label {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 7vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.menu__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}
.menu__note {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ash);
}

/* Desktop section rail */
.rail {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  z-index: var(--z-rail);
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-3) var(--ease-out);
}
.rail.is-visible { opacity: 1; pointer-events: auto; }
.rail a { display: flex; align-items: center; gap: .7rem; }
.rail__label {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mist);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
}
.rail a:hover .rail__label { opacity: 1; }
.rail a.is-current .rail__label { opacity: 1; color: var(--paper); }
.rail__line {
  display: block;
  width: 1rem; height: 1px;
  background: var(--line-2);
  transition:
    width var(--dur-2) var(--ease-out),
    background var(--dur-2) var(--ease-out);
}
.rail a:hover .rail__line { width: 1.5rem; background: var(--mist); }
.rail a.is-current .rail__line { width: 2rem; background: var(--brand); }

/* =============================== 6. HERO ============================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 620px;
  height: 100svh;
  max-height: 1000px;
  overflow: hidden;
  background: var(--void);
  isolation: isolate;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  scale: 1.05;
  transform: translate3d(var(--mx, 0px), calc(var(--hero-y, 0px) + var(--my, 0px)), 0) scale(var(--hero-scale, 1));
  animation:
    hero-zoom 26s var(--ease-in-out) infinite alternate,
    hero-drift 34s var(--ease-in-out) infinite alternate;
  will-change: transform, scale, translate;
}

.hero__glow {
  position: absolute;
  right: -14%;
  top: 6%;
  width: min(58vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 9, 20, .24), rgba(229, 9, 20, 0) 68%);
  filter: blur(40px);
  pointer-events: none;
}

.hero__sweep { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__sweep::before {
  content: '';
  position: absolute;
  top: -30%; bottom: -30%; left: 0;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(229, 9, 20, .16), transparent);
  filter: blur(46px);
  transform: translateX(-120%);
  animation: sweep 11s var(--ease-in-out) infinite;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, .6) 0%, rgba(5, 5, 5, .15) 26%, rgba(5, 5, 5, .32) 50%, rgba(5, 5, 5, .62) 78%, rgba(5, 5, 5, .78) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, .82) 0%, rgba(5, 5, 5, 0) 24%, rgba(5, 5, 5, 0) 56%, rgba(5, 5, 5, .96) 100%);
}

.hero__vig {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 42%, rgba(0, 0, 0, .45) 100%);
}

/* Copy-side wash — readability for the hero headline ----------------------
   The still is brightest exactly where the copy sits: the clapperboard's slate
   and its red LED counter run straight through "WE CREATE", the
   outline-stroked "CINEMA", and the lede, while `.hero__scrim` is only ~.32
   black at the 50% mark — nowhere near enough over that brightness.

   This layer is anchored to the copy *column*, not to the text box, and it is
   full-bleed. That matters: because it spans the whole frame, the gradient
   finishes before the element's edge, so no boundary ever lands beside the
   copy. (An earlier version clipped a dark rectangle to the text block, and
   the hard edge read as a visible panel.) Soft on all four sides, like the
   rest of the hero's lighting — no edges, no box.

   Tuning knob: the first two stops set how dark the headline reads; the last
   stop must stay at 0 so the falloff is invisible. */
.hero__wash {
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 78% at 46% 52%,
    rgba(5, 5, 5, .74) 0%,
    rgba(5, 5, 5, .68) 38%,
    rgba(5, 5, 5, .4) 66%,
    rgba(5, 5, 5, 0) 100%);
}

.hero__body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: var(--nav-h);
  transform: translate3d(0, var(--hero-cy, 0px), 0);
  opacity: var(--hero-co, 1);
}

.hero__content { max-width: 640px; }

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .9rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--paper);
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-soft);
  animation: dot-pulse 1.8s var(--ease-in-out) infinite;
}

.hero__title {
  margin: 1.4rem 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.9rem, 9.6vw, 8.2rem);
  line-height: .86;
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero__line { display: block; }
.hero__period { display: inline-block; color: var(--brand); }

.hero__lede {
  max-width: 44ch;
  color: #c9c9ce;
  font-size: clamp(.95rem, 1.5vw, 1.05rem);
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}

.hero__rail {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(1.25rem, 3vh, 2rem);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #b6b6bd;
}
.hero__cue { display: inline-flex; align-items: center; gap: .7rem; }
.hero__cue-line {
  position: relative;
  display: block;
  width: 44px; height: 1px;
  background: rgba(255, 255, 255, .25);
  overflow: hidden;
}
.hero__cue-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand);
  animation: cue-slide 2.4s var(--ease-in-out) infinite;
}
.hero__meta { display: flex; align-items: center; gap: 1.25rem; }
.hero__count { font-family: var(--font-display); letter-spacing: .16em; }
.hero__count strong { color: var(--paper); }

/* Floating circular emblem */
.stamp {
  position: absolute;
  left: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(5.5rem, 15vh, 8.5rem);
  z-index: 3;
  width: 132px; height: 132px;
  opacity: .62;
  animation: float-y 7s var(--ease-in-out) infinite;
  pointer-events: none;
}
.stamp svg { width: 100%; height: 100%; overflow: visible; }
.stamp__ring {
  transform-box: view-box;
  transform-origin: center;
  animation: spin 44s linear infinite;
}
.stamp__text {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.6px;
  fill: rgba(255, 255, 255, .55);
}
.stamp__mark {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.02em;
  fill: var(--brand);
}

/* ============================== TICKER ================================ */
.ticker {
  position: relative;
  z-index: 4;
  overflow: hidden;
  padding: .85rem 0;
  background: var(--brand);
  color: var(--void);
  transform: rotate(-1.2deg) scale(1.04);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  padding-inline: 1.6rem;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__item i { font-style: normal; opacity: .45; }

/* =============================== 7. ABOUT ============================= */
.about { background: var(--void); }

.about__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about__visual { position: relative; }

.frame {
  position: relative;
  overflow: hidden;
  background: var(--abyss);
  aspect-ratio: 4 / 3;
  clip-path: inset(0 0 0 0);
}
.frame__media { display: block; position: absolute; inset: 0; overflow: hidden; }
.frame__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.12;
  filter: saturate(.85) contrast(1.05);
  transition: filter var(--dur-4) var(--ease-out);
}
.frame:hover .frame__media img { filter: saturate(1) contrast(1.08); }

.frame__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(5, 5, 5, .8) 0%, rgba(5, 5, 5, 0) 58%),
    linear-gradient(120deg, rgba(229, 9, 20, .16) 0%, transparent 55%);
}
.frame__tag {
  position: absolute;
  left: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 2;
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mist);
}
.frame__tag strong {
  display: block;
  margin-top: .4rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -.02em;
  text-transform: none;
  color: var(--paper);
}

/* Red hairline that ties the image into the copy column */
.about__rule {
  position: absolute;
  right: -1px;
  top: 12%;
  width: 1px;
  height: 34%;
  background: linear-gradient(180deg, transparent, var(--brand), transparent);
}

.principles {
  display: grid;
  gap: 0;
  margin: 2.25rem 0;
  border-top: 1px solid var(--line);
}
.principle {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: .35rem 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur-2) var(--ease-out);
}
.principle:hover { border-bottom-color: var(--brand); }
.principle__num {
  grid-row: 1 / 3;
  font-family: var(--font-display);
  font-size: .7rem;
  letter-spacing: .18em;
  color: var(--brand);
  padding-top: .3rem;
}
.principle strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  transition: transform var(--dur-2) var(--ease-out);
}
.principle:hover strong { transform: translateX(4px); }
.principle span:last-child {
  color: var(--mist);
  font-size: .9rem;
  line-height: 1.65;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: .3rem; }
.stat strong {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -.02em;
}
.stat__inf { color: var(--brand); }
.stat span {
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ash);
}

/* ============================= 8. SERVICES ============================ */
.services {
  background: var(--abyss);
  border-top: 1px solid var(--line);
}

.svc {
  display: grid;
  grid-template-columns: 1fr;
  gap: .875rem;
}

.svc__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 235px;
  padding: clamp(1.15rem, 2.2vw, 1.65rem);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .07);
  isolation: isolate;
  transition:
    border-color var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out);
}
.svc__card--feature { min-height: clamp(300px, 36vw, 420px); }

/* Top-edge illumination on hover */
.svc__card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
}
.svc__card:hover::after { opacity: 1; }

.svc__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.svc__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.5) saturate(.7) contrast(1.05);
  transition:
    transform .9s var(--ease-out),
    filter .7s var(--ease-out);
}
.svc__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, #050505 0%, rgba(5, 5, 5, .8) 44%, rgba(5, 5, 5, .22) 100%);
  transition: opacity var(--dur-2) var(--ease-out);
}

.svc__card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 9, 20, .45);
}
.svc__card:hover .svc__media img {
  transform: scale(1.07);
  filter: brightness(.85) saturate(1.05) contrast(1.1);
}
.svc__card:hover .svc__veil { opacity: .8; }

.svc__num {
  position: absolute;
  top: clamp(1.15rem, 2.2vw, 1.65rem);
  right: clamp(1.15rem, 2.2vw, 1.65rem);
  z-index: 2;
  font-family: var(--font-display);
  font-size: .68rem;
  letter-spacing: .2em;
  color: rgba(255, 255, 255, .55);
  transition: color var(--dur-2) var(--ease-out);
}
.svc__card:hover .svc__num { color: var(--brand); }

.svc__body { position: relative; z-index: 2; padding-right: 2.75rem; }
.svc__title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -.02em;
}
.svc__card--feature .svc__title { font-size: clamp(1.35rem, 2.6vw, 2rem); }

.svc__desc {
  margin-top: .45rem;
  max-width: 34ch;
  color: #c3c3c9;
  font-size: .85rem;
  line-height: 1.6;
}
.svc__card--feature .svc__desc { font-size: .95rem; }

.svc__arrow {
  position: absolute;
  right: clamp(1.15rem, 2.2vw, 1.65rem);
  bottom: clamp(1.15rem, 2.2vw, 1.65rem);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  font-size: .8rem;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition:
    opacity var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out),
    background var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out);
}
.svc__card:hover .svc__arrow {
  opacity: 1;
  transform: none;
  background: var(--brand);
  border-color: var(--brand);
  color: var(--void);
}

/* =============================== 9. WORK ============================== */
.work {
  background: var(--void);
  border-top: 1px solid var(--line);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--mist);
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition:
    color var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out),
    background var(--dur-2) var(--ease-out);
}
.filter__count { font-size: .58rem; letter-spacing: .1em; opacity: .55; }
.filter:hover { border-color: var(--line-2); color: var(--paper); }
.filter.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--void);
}
.filter.is-active .filter__count { opacity: .7; }

.work__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(.75rem, 1.6vw, 1.15rem);
}

.work__card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .06);
  aspect-ratio: 4 / 3;
}
.work__card--full { aspect-ratio: 16 / 10; }
.work__card.is-filtered { display: none; }

.work__media { position: absolute; inset: 0; display: block; overflow: hidden; }
.work__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.72) saturate(.8);
  transition:
    transform .9s var(--ease-out),
    filter .7s var(--ease-out);
}
/* Two studio frames are deliberately low-key — lift them slightly.
   NOTE: these must out-specify `.work__media img` (0,1,1), otherwise the base
   filter wins and the modifier silently does nothing. */
.work__media .work__img--lift { filter: brightness(1.15) saturate(.9); }
.work__card:hover .work__media img {
  transform: scale(1.06);
  filter: brightness(.96) saturate(1.05);
}
.work__card:hover .work__media .work__img--lift {
  transform: scale(1.06);
  filter: brightness(1.35) saturate(1);
}

/* Per-image grade for brighter frames, so every tile sits in the same
   black-and-crimson tonal family as the rest of the page. */
.work__media .work__img--deep { filter: brightness(.44) saturate(.55) contrast(1.12); }
.work__card:hover .work__media .work__img--deep {
  transform: scale(1.06);
  filter: brightness(.68) saturate(.85) contrast(1.14);
}

.work__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(5, 5, 5, .92) 0%, rgba(5, 5, 5, .22) 48%, transparent 80%);
  transition: opacity var(--dur-2) var(--ease-out);
}

.work__sample {
  position: absolute;
  top: clamp(.75rem, 1.6vw, 1.1rem);
  left: clamp(.75rem, 1.6vw, 1.1rem);
  z-index: 2;
  padding: .3rem .62rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-pill);
  background: rgba(5, 5, 5, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-size: .54rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mist);
}

.work__meta {
  position: absolute;
  left: clamp(1rem, 2.2vw, 1.6rem);
  right: clamp(1rem, 2.2vw, 1.6rem);
  bottom: clamp(1rem, 2.2vw, 1.6rem);
  z-index: 2;
  padding-right: 3.25rem;
  display: block;
}
.work__cat {
  display: block;
  font-size: .57rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand-soft);
}
.work__title {
  display: block;
  margin-top: .35rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -.02em;
  transition: transform var(--dur-2) var(--ease-out);
}
.work__card--full .work__title { font-size: clamp(1.4rem, 3vw, 2.1rem); }
.work__card:hover .work__title { transform: translateX(4px); }

.work__open {
  position: absolute;
  right: clamp(1rem, 2.2vw, 1.6rem);
  bottom: clamp(1rem, 2.2vw, 1.6rem);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  font-size: .85rem;
  transition:
    background var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out);
}
.work__card:hover .work__open {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--void);
  transform: rotate(45deg);
}

/* Full-card hit target. Keeps the markup semantic while the whole tile clicks. */
.work__trigger {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 0;
  border: 0;
  background: transparent;
}

/* ============================= 10. SHOWREEL =========================== */
.showreel { background: var(--void); }

.reel {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: clamp(360px, 50vw, 600px);
  background: var(--abyss);
  border: 1px solid rgba(255, 255, 255, .08);
  text-align: center;
}
.reel__media { position: absolute; inset: 0; overflow: hidden; }
.reel__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  scale: 1.12;
  filter: brightness(.9) saturate(.85);
}
.reel__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 5, 5, .94) 0%, rgba(5, 5, 5, .55) 55%, rgba(5, 5, 5, .72) 100%);
}
.reel__vig {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 32%, rgba(0, 0, 0, .7) 100%);
}

.reel__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.1rem, 2.5vw, 1.75rem);
  padding: clamp(1.5rem, 4vw, 3rem);
}
.reel__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 5.6vw, 4.1rem);
  line-height: 1;
  letter-spacing: -.03em;
}
.reel__line { display: block; }

.reel__play {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(64px, 9vw, 88px);
  height: clamp(64px, 9vw, 88px);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  background: rgba(5, 5, 5, .38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--paper);
  font-size: 1.05rem;
  transition:
    background var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out);
}
.reel__play:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--void);
  transform: scale(1.06);
}
.reel__play-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(229, 9, 20, .6);
  border-radius: 50%;
  animation: pulse-ring 2.6s var(--ease-in-out) infinite;
}
.reel__play-glyph { margin-left: 4px; }

.reel__hint {
  max-width: 48ch;
  font-size: .8rem;
  line-height: 1.7;
  color: var(--mist);
}
.reel__hint[hidden] { display: none; }

/* ============================= 11. CONTACT =========================== */
.contact {
  background: var(--abyss);
  border-top: 1px solid var(--line);
}

/* Contact cards — the whole payload of this section, so they run the full
   container width: the address spans both columns and the other four sit two-up
   (see the responsive block). One card per detail, so each stays scannable. The
   icon sits inside the card's left padding, which keeps the title and the value
   aligned to one edge. */
.contact-cards {
  display: grid;
  gap: .85rem;
}
.ccard {
  position: relative;
  padding: 1.15rem 1.25rem 1.15rem 4.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition:
    border-color var(--dur-2) var(--ease-out),
    background var(--dur-2) var(--ease-out);
}
.ccard:hover { border-color: var(--line-2); }
.ccard__icon {
  position: absolute;
  left: 1.25rem;
  top: 1.15rem;
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 6px;
  background: var(--brand-tint);
  color: var(--brand);
}
.ccard__icon svg { width: 20px; height: 20px; }
.ccard__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--paper);
}
.ccard__value {
  margin: .35rem 0 0;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--mist);
}
.ccard__link { transition: color var(--dur-2) var(--ease-out); }
.ccard__link:hover { color: var(--brand-soft); }
/* Sits on its own line, with the rule only as wide as the label. */
.ccard__cta {
  display: block;
  width: fit-content;
  margin-top: .6rem;
  padding-bottom: .25rem;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper);
  transition:
    color var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out);
}
.ccard__cta:hover { color: var(--brand-soft); border-color: var(--brand); }

/* ---- WhatsApp card -------------------------------------------------------
   The one green on the site. WhatsApp is the channel most visitors actually
   use, so its card is picked out with a green stroke over a transparent
   dark-green fill instead of the neutral surface every other card uses. The
   label stays `--paper` — white on this dark fill is far more legible than
   green on green, and the border, icon and CTA already carry the colour. */
.ccard--whatsapp {
  background: var(--wa-fill);
  border-color: var(--wa-line);
}
.ccard--whatsapp:hover { border-color: var(--wa); }
.ccard--whatsapp .ccard__icon {
  background: var(--wa-tint);
  color: var(--wa);
}
.ccard--whatsapp .ccard__cta {
  color: var(--wa);
  border-color: var(--wa-line);
}
.ccard--whatsapp .ccard__cta:hover {
  color: var(--wa-bright);
  border-color: var(--wa-bright);
}

/* ---- Call-back request ---------------------------------------------------
   The section's one CTA, so it runs the full container width. Drawn as a red
   STROKE rather than a red fill: the design tokens note that the brand red is
   "a controlled accent, never a background wash", and every other control on
   the site is an outline or a plain link — a filled slab would be the odd one
   out. Hover adds a faint red tint and a soft glow instead of a colour swap.

   The label uses --brand-soft rather than --brand: #ff3b3f clears 5.5:1 on the
   #0b0b0b section, where #e50914 only reaches about 3.7:1 and would fail AA for
   text this size. */
.callback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  width: 100%;
  margin-top: 1.5rem;
  padding: 1.15rem 1.5rem;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: transparent;
  color: var(--brand-soft);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition:
    background var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}
.callback:hover {
  background: var(--brand-tint);
  border-color: var(--brand-soft);
  color: var(--paper);
  box-shadow: 0 14px 40px -20px var(--brand);
}
.callback__arrow { transition: transform var(--dur-2) var(--ease-out); }
.callback:hover .callback__arrow { transform: translateX(4px); }

/* ============================== 12. FOOTER =========================== */
.footer {
  padding-block: clamp(3rem, 6vw, 5rem) 1.5rem;
  background: var(--void);
  border-top: 1px solid var(--line);
}
.footer__top { display: grid; gap: 2.5rem; }

.footer__logo { height: 58px; width: auto; }
.footer__brand p {
  margin-top: 1.25rem;
  max-width: 32ch;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--mist);
}

.footer__col h2 {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ash);
}
.footer__col ul { margin-top: 1.25rem; display: grid; gap: .75rem; }
.footer__col li,
.footer__col a { font-size: .88rem; color: var(--mist); }
.footer__col a { transition: color var(--dur-2) var(--ease-out); }
.footer__col a:hover { color: var(--paper); }

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.footer__bottom p { font-size: .74rem; color: var(--ash); }
.footer__top-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mist);
  transition: color var(--dur-2) var(--ease-out);
}
.footer__top-btn:hover { color: var(--brand); }
.footer__top-btn span { transition: transform var(--dur-2) var(--ease-out); }
.footer__top-btn:hover span { transform: translateY(-3px); }

/* ============================= 13. OVERLAYS ========================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--dur-2) var(--ease-out),
    visibility var(--dur-2) linear;
}
.modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal__panel {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100svh - clamp(2rem, 6vw, 5rem));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--abyss);
  border: 1px solid rgba(255, 255, 255, .14);
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(.985);
  transition:
    opacity var(--dur-3) var(--ease-out),
    transform var(--dur-3) var(--ease-out);
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__panel--reel { width: min(1240px, 100%); background: #000; }

.modal__close {
  position: absolute;
  top: .8rem; right: .8rem;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(5, 5, 5, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--paper);
  font-size: 1.2rem;
  line-height: 1;
  transition:
    background var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out);
}
.modal__close:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--void);
  transform: rotate(90deg);
}

/* ---- Call-back overlay ---------------------------------------------------
   Narrower than the project overlay: it is a short form, not a media panel.
   Everything else — focus trap, Esc, scrim click, scroll lock, the rotating
   close button — comes from the shared overlay factory in main.js. */
.modal__panel--callback { width: min(560px, 100%); }

.cform {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.75rem;
}
.cform__field { display: grid; gap: .45rem; }
.cform__label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist);
}
.cform__req { color: var(--brand); }
.cform__opt {
  padding: .1rem .45rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  font-size: .58rem;
  letter-spacing: .12em;
  color: var(--ash);
}
.cform__input {
  width: 100%;
  padding: .8rem .95rem;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--surface);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: .95rem;
  transition:
    border-color var(--dur-2) var(--ease-out),
    background var(--dur-2) var(--ease-out);
}
.cform__input::placeholder { color: var(--ash); }
.cform__input:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--abyss);
}
/* The select keeps a native arrow but drops the platform chrome, so it sits in
   exactly the same box as the text inputs. */
.cform__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
  background-size: 1rem;
  cursor: pointer;
}
.cform__select option { background: var(--surface); color: var(--paper); }
.cform__textarea {
  min-height: 6.5rem;
  line-height: 1.65;
  resize: vertical;
}

.cform__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .35rem;
}
.cform__submit,
.cform__cancel {
  flex: 1 1 12rem;
  padding: .95rem 1.25rem;
  border: 1px solid var(--brand);
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition:
    background var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out);
}
.cform__submit { background: var(--brand); color: #fff; }
.cform__submit:hover { background: var(--brand-soft); border-color: var(--brand-soft); }
.cform__cancel { background: transparent; border-color: var(--line-2); color: var(--mist); }
.cform__cancel:hover { border-color: var(--paper); color: var(--paper); }

/* Project overlay */
.modal__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.modal__poster { width: 100%; height: 100%; object-fit: cover; }
.modal__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  background: #000;
  object-fit: contain;
}
.modal__video[hidden] { display: none; }

/* YouTube / Vimeo embeds, injected by JS when data-video is an embed link. The
   node is removed on close, so playback never continues behind the overlay. */
.modal__frame { position: absolute; inset: 0; }
.modal__frame[hidden] { display: none; }
.modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  background: #000;
}

/* Stills strip under the video. Hidden entirely until a project declares
   data-gallery, so a card without stills never shows an empty box. */
.modal__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: .5rem;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}
.modal__gallery[hidden] { display: none; }
.modal__thumb {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition:
    border-color var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out);
}
.modal__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: .72;
  transition: opacity var(--dur-2) var(--ease-out);
}
.modal__thumb:hover { border-color: var(--line-2); transform: translateY(-2px); }
.modal__thumb:hover img { opacity: 1; }
.modal__thumb.is-active { border-color: var(--brand); }
.modal__thumb.is-active img { opacity: 1; }

.modal__media-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(11, 11, 11, .92), transparent 48%);
}

.modal__body { padding: clamp(1.25rem, 3vw, 2.25rem); }
.modal__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mist);
}
.modal__tag {
  padding: .25rem .58rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-pill);
  font-size: .54rem;
  color: var(--mist);
}
.modal__tag[hidden] { display: none; }

.modal__title {
  margin-top: .9rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.05;
}
.modal__desc {
  margin-top: 1rem;
  max-width: 62ch;
  color: var(--mist);
  font-size: .95rem;
  line-height: 1.75;
}
.modal__meta {
  display: grid;
  gap: .5rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.modal__meta dt {
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ash);
}
.modal__meta dd { font-size: .95rem; color: var(--paper); }
.modal__note { margin-top: 1.5rem; font-size: .72rem; line-height: 1.7; color: var(--ash); }

/* Showreel overlay */
.modal__stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: #000;
}
.modal__stage .modal__poster {
  position: absolute;
  inset: 0;
  filter: brightness(.42);
}
.modal__stage iframe,
.modal__stage video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  background: #000;
}
.modal__placeholder {
  position: relative;
  z-index: 2;
  max-width: 54ch;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}
.modal__placeholder-title {
  margin-bottom: .6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--paper);
}
.modal__placeholder p { font-size: .85rem; line-height: 1.75; color: var(--mist); }

/* ============================ 14. RESPONSIVE ========================= */

/* Mobile-first ordering: copy before image on narrow screens. */
.about__copy { order: 1; }
.about__visual { order: 2; }

@media (min-width: 560px) {
  .footer__bottom { flex-direction: row; align-items: center; }
  .stats { gap: 2.75rem; }
}

@media (min-width: 700px) {
  .svc { grid-template-columns: repeat(2, 1fr); }
  .svc__card--feature { grid-column: span 2; }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .work__card--full { grid-column: span 2; }
  .nav__cta { display: inline-flex; }
  /* Contact details two-up, with the address spanning the full row. */
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-cards > .ccard:first-child { grid-column: 1 / -1; }
}

@media (min-width: 860px) {
  .head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(2rem, 5vw, 4rem);
  }
  .head__note { max-width: 34ch; }

  .about__grid { grid-template-columns: 1.05fr 1fr; gap: clamp(3rem, 6vw, 5rem); }
  .about__copy { order: 2; }
  .about__visual { order: 1; }
  .frame { aspect-ratio: 4 / 5; }

  .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
}

@media (min-width: 1000px) {
  /* Asymmetric editorial service grid: 2 features + 6 supporting cards */
  .svc { grid-template-columns: repeat(6, 1fr); gap: 1rem; }
  .svc__card { grid-column: span 2; }
  .svc__card--feature { grid-column: span 3; }

  /* Hero copy sits over the dark right-hand side of the studio still. */
  .hero__content { margin-left: auto; width: min(640px, 52%); }
  /* The copy moves into that right column, so the wash follows it there and
     narrows, which leaves the clapperboard on the left almost untouched. */
  .hero__wash {
    background: radial-gradient(45% 78% at 66% 52%,
      rgba(5, 5, 5, .8) 0%,
      rgba(5, 5, 5, .74) 38%,
      rgba(5, 5, 5, .42) 68%,
      rgba(5, 5, 5, 0) 100%);
  }
  .stamp { width: 148px; height: 148px; }
}

/* The full desktop header — six links plus the Track CTA — needs more room than
   the layout breakpoint, so it switches over on its own to avoid a cramped bar.
   The CTA is a pill and costs noticeably more width than the text link it
   replaced, so the switch moved from 1080px to 1140px: that keeps ~90px between
   the wordmark and the first link, and still holds up if the webfont falls back. */
@media (min-width: 1140px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .menu { display: none; }
  .rail { display: flex; }
}

@media (min-width: 1200px) {
  .hero__content { width: min(680px, 50%); }
  .reel { min-height: 620px; }
  .stamp { width: 160px; height: 160px; }
}

/* ---- Mobile-only refinements ---------------------------------------- */
@media (max-width: 700px) {
  .stamp { display: none; }
  .hero__rail { font-size: .54rem; letter-spacing: .16em; }
  .hero__loc { display: none; }
  .hero__meta { gap: .8rem; }
  .hero__title { letter-spacing: -.03em; }
  /* On phones the copy spans nearly the whole width, so the left-to-right scrim
     cannot protect it. This lower-band wash keeps body copy above 4.5:1
     (measured: 4.35 -> 5.1 at 390px). */
  .hero__vig {
    background:
      linear-gradient(180deg, transparent 28%, rgba(5, 5, 5, .55) 60%, rgba(5, 5, 5, .7) 100%),
      radial-gradient(ellipse at 50% 50%, transparent 42%, rgba(0, 0, 0, .45) 100%);
  }
  .ccard { padding: 1rem 1rem 1rem 3.9rem; }
  .ccard__icon { left: 1rem; top: 1rem; width: 2rem; height: 2rem; }
  .ccard__icon svg { width: 18px; height: 18px; }
  .ccard__value { font-size: .86rem; }
  .modal__media { aspect-ratio: 4 / 3; }
  .modal__panel { max-height: calc(100svh - 2rem); }
  .footer__col ul { gap: .6rem; }
}

@media (max-width: 430px) {
  .hero__title { font-size: clamp(2.35rem, 13vw, 3.4rem); }
  .hero__actions .btn { width: 100%; }
  .filters { gap: .4rem; }
  .filter { padding: .5rem .8rem; font-size: .6rem; }
  .svc__card { min-height: 210px; }
  .stats { gap: 1.5rem; }
  .stat strong { font-size: 1.5rem; }
  .modal__close { top: .5rem; right: .5rem; width: 36px; height: 36px; }
}

/* ========================= 15. REDUCED MOTION ======================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }

  .js [data-anim],
  .js [data-anim].is-in {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .js [data-anim="mask"] .w__i { transform: none !important; }

  .hero__img { scale: 1; transform: none; animation: none; }
  .hero__body { transform: none; opacity: 1; }
  .btn[data-magnetic],
  .btn[data-magnetic]:hover,
  .btn[data-magnetic]:active { transform: none; }
}












