/* Self-hosted Google Fonts (SIL Open Font License), latin subset. */
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/fonts/bodoni-moda-latin.fe710b15e2.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/fonts/bodoni-moda-italic-latin.3fac62d55a.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/manrope-latin.e310b55a7f.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------ tokens */
:root {
  color-scheme: dark;
  --bg: #07090B;
  --bg-2: #0E1114;
  --bg-3: #151A1E;
  --line: rgba(238, 233, 224, 0.14);
  --line-2: rgba(238, 233, 224, 0.26);
  --text: #EEE9E0;
  --text-2: #B9B4AA;
  --text-3: #8E8A82;
  /* The logo's coral. Used only for: the logo corner (viewfinder and image
     corner marks), scene, shot and sequence codes, "you are here" states
     (selected tab, playhead, current nav item) and text-link underlines.
     Labels stay grey; buttons, arrows and icons stay ivory. */
  --accent: #E0623C;
  --ivory: #EEE9E0;
  --error: #FF8A73;

  --serif: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --g: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --header-h: 60px;
  --sec-gap: clamp(88px, 11vw, 160px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --recovery-h: 0px;

  /* Type scale. Every text style on the site uses one of these. */
  --fs-tag: 11px;                          /* capitals on images */
  --fs-label: 12px;                        /* small-capital labels */
  --fs-btn: 12.5px;
  --fs-btn-sm: 11.5px;
  --ls-tag: 0.16em;
  --ls-label: 0.18em;
  --ls-btn: 0.16em;
  --fs-caption: 13px;
  --fs-ui: 14px;                           /* nav, controls, form labels */
  --fs-link: 15px;                         /* arrow links, credit values */
  --fs-body: 16px;
  --fs-body-lg: 17px;                      /* section and about paragraphs */
  --fs-lead: clamp(18px, 1.5vw, 21px);
  --fs-lead-lg: clamp(20px, 1.9vw, 24px);
  --fs-num: 17px;                          /* serif italic numerals */
  --fs-h4: clamp(21px, 2vw, 26px);
  --fs-h3: clamp(26px, 2.6vw, 34px);
  --fs-h2: clamp(34px, 4.6vw, 66px);
  --fs-display: clamp(36px, 11.4vw, 60px);  /* hero, film and 404 titles, contact */
}

@media (min-width: 900px) {
  :root { --header-h: 72px; --fs-display: clamp(52px, 7.2vw, 112px); }
}

@media (max-height: 500px) and (orientation: landscape) {
  :root { --header-h: 56px; }
}

/* ------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
[hidden] { display: none !important; }

html.is-locked { overflow: hidden; }

:focus-visible {
  outline: 2px solid var(--focus, var(--ivory));
  outline-offset: 3px;
}

::selection { background: var(--accent); color: var(--bg); }
html { scrollbar-color: #2B3136 var(--bg); }
p { text-wrap: pretty; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 10px 16px; background: var(--ivory); color: var(--bg);
  font-weight: 600; transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--g));
  margin-inline: auto;
  padding-inline: var(--g);
}

.icon { width: 18px; height: 18px; flex: none; }

/* ------------------------------------------------------------ type */
.eyebrow, .caps {
  font-size: var(--fs-label);
  line-height: 1.4;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  font-weight: 500;
}
.eyebrow { color: var(--text-2); }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h2 em, .h3 em { font-style: italic; }

.h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.15;
}

.caption {
  font-size: var(--fs-caption);
  line-height: 1.5;
  color: var(--text-3);
}

/* ------------------------------------------------------------ buttons & links */
/* Buttons are set like credits: spaced capitals in a hairline frame.
   Only "Chat on WhatsApp", the real conversion, is a solid button. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 24px;
  font-size: var(--fs-btn); font-weight: 600; line-height: 1.2;
  letter-spacing: var(--ls-btn); text-transform: uppercase;
  border: 1px solid transparent;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn .icon { width: 20px; height: 20px; transition: transform 0.25s var(--ease), color 0.25s; }
.btn:hover .icon { transform: translateX(3px); }

.btn-primary { border-color: rgba(238, 233, 224, 0.62); color: var(--text); background: rgba(7, 9, 11, 0.3); }
.btn-primary:hover { background: var(--ivory); border-color: var(--ivory); color: var(--bg); }

.btn-secondary { border-color: var(--line-2); color: var(--text); }
.btn-secondary:hover { border-color: var(--text); }
.btn-small { min-height: 40px; padding: 0 14px; font-size: var(--fs-btn-sm); letter-spacing: var(--ls-btn); }
/* The narrowest phones: a little less padding keeps button labels on one line. */
@media (max-width: 360px) {
  .btn:not(.btn-wa):not(.btn-small) { padding-inline: 18px; gap: 12px; }
}

.btn-wa { background: var(--ivory); border-color: var(--ivory); color: var(--bg); padding-left: 10px; padding-right: 26px; }
.btn-wa:hover { background: #FFFFFF; border-color: #FFFFFF; }
.wa-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center; flex: none;
}
.wa-dot .wa-glyph { width: 18px; height: 18px; }

/* Viewer controls: a label beside a small circled icon, echoing the
   showreel's round play button. */
.ghost-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 4px 0 0;
  font-size: var(--fs-ui); font-weight: 500; white-space: nowrap;
  color: var(--text);
}
.ghost-btn .icon {
  width: 34px; height: 34px; padding: 9px;
  border: 1px solid var(--line-2); border-radius: 50%;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.ghost-btn:hover .icon { border-color: var(--text); }
.ghost-btn:focus-visible { outline-offset: 4px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
}
.icon-btn:hover { border-color: var(--text-2); }

.text-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; font-size: var(--fs-ui); font-weight: 500;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2);
}
.text-btn:hover { text-decoration-color: var(--text); }
.text-btn .icon { width: 16px; height: 16px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px;
  font-size: var(--fs-link); font-weight: 500;
}
.link-arrow > span, .link-arrow { text-decoration: none; }
.link-arrow { background: linear-gradient(var(--accent), var(--accent)) 0 calc(100% - 6px) / 100% 1px no-repeat; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .link-arrow:hover .icon, .btn:hover .icon { transform: none; }
}

.media-tag {
  position: absolute; left: 10px; bottom: 10px;
  padding: 4px 8px;
  background: rgba(7, 9, 11, 0.78);
  color: var(--text-2);
  font-size: var(--fs-caption); font-weight: 500;
}

.dot-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0; }
.dot-list li { white-space: nowrap; }
/* The dot trails each item, so a wrapped line never starts with one. */
.dot-list li:not(:last-child)::after { content: "·"; margin: 0 0.5em; color: var(--text-3); }

/* ------------------------------------------------------------ header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  transition: background-color 0.25s, border-color 0.25s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid,
.page-404 .site-header,
.menu-open .site-header {
  background: rgba(7, 9, 11, 0.94);
  border-bottom-color: var(--line);
}
/* The blur sits on a layer behind the header, not on the header itself: a
   backdrop-filter would make the header the containing block for the fixed
   phone menu, and the menu would shrink to the header's height. */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header.is-solid { background: transparent; }
  .site-header.is-solid::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(7, 9, 11, 0.82);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
}

.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 16px;
}

/* The wordmark is set like a studio card: spaced capitals. */
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  margin-right: auto; min-height: 44px;
  font-weight: 600; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
}
.brand-mark { width: 28px; height: 28px; }
@media (min-width: 900px) { .brand-mark { width: 32px; height: 32px; } }

.nav { display: none; }
.nav-list { list-style: none; display: flex; gap: 4px; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: var(--fs-ui); color: var(--text);
  opacity: 0.86; transition: opacity 0.2s;
}
.nav-list a:hover { opacity: 1; }
/* The section you're reading is marked in the nav. */
.nav-list a[aria-current="location"] {
  opacity: 1;
  background: linear-gradient(var(--accent), var(--accent)) 12px calc(100% - 10px) / calc(100% - 24px) 1px no-repeat;
}

.talk {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line-2);
  font-size: var(--fs-btn-sm); font-weight: 600; letter-spacing: var(--ls-btn); text-transform: uppercase;
  white-space: nowrap;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.talk:hover { border-color: var(--ivory); background: var(--ivory); color: var(--bg); }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; min-width: 44px; justify-content: center;
  font-size: var(--fs-ui); font-weight: 600;
}
.menu-toggle-icon { position: relative; width: 20px; height: 12px; }
.menu-toggle-icon i {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.menu-toggle-icon i:first-child { top: 2px; }
.menu-toggle-icon i:last-child { top: 9px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon i:first-child { top: 5.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon i:last-child { top: 5.5px; transform: rotate(-45deg); }

@media (max-width: 420px) {
  .menu-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand { font-size: 11.5px; gap: 9px; letter-spacing: 0.14em; }
  .header-inner { gap: 10px; }
}
@media (max-width: 359px) {
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (min-width: 900px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
  .site-menu { display: none !important; }
}

.site-menu {
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
  background: var(--bg);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 24px 0 calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.menu-list { list-style: none; border-top: 1px solid var(--line); }
.menu-list li { border-bottom: 1px solid var(--line); }
.menu-list a {
  display: flex; align-items: center; min-height: 64px;
  font-family: var(--serif); font-size: clamp(28px, 8vw, 40px); line-height: 1.1;
}
.menu-cta { margin-top: 28px; width: 100%; }
@media (max-height: 500px) and (orientation: landscape) {
  .menu-list a { min-height: 48px; font-size: 26px; }
  .menu-cta { margin-top: 16px; }
}

/* ------------------------------------------------------------ hero
   The opening title card, centred in the viewfinder like a framed subject:
   headline, value line, mission and the call to action, with services and
   industries set beneath as a billing block, as on a film poster. */
.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 56px;
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

/* Optional photo backdrop (hero.backdrop in content/site.json). */
.hero-backdrop { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-backdrop img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.hero-backdrop--split { display: grid; grid-template-rows: 1fr 1fr; }
.hero-backdrop--split img { min-height: 0; }
@media (min-width: 600px) {
  .hero-backdrop--split { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
}
.hero-backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 11, 0.86) 0%, rgba(7, 9, 11, 0.6) 40%, var(--bg) 100%);
}

.hero-inner > .eyebrow { margin-bottom: 22px; }

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 0.92;
  letter-spacing: -0.018em;
}
.hero-title span, .hero-title em { display: block; }
.hero-title em { font-style: italic; }
/* Phones and tablets: the two parts run on as one sentence and the lines
   are evened out, so no word is left alone on a line. */
@media (max-width: 899px) {
  .hero-title { text-wrap: balance; }
  .hero-title span { display: inline; }
}

.hero-sub { margin-top: 28px; font-size: var(--fs-lead); line-height: 1.45; max-width: 34ch; }
.hero-mission { margin-top: 12px; font-size: var(--fs-body-lg); line-height: 1.6; color: var(--text-2); max-width: 46ch; }
/* Centred copy breaks into even lines, so no line ends on a lone word. */
.hero-sub, .hero-mission, .contact-copy, .film-intro { text-wrap: balance; }
.hero-cta { margin-top: 34px; }

.hero-billing {
  margin-top: clamp(40px, 6vh, 64px);
  display: flex; flex-wrap: wrap; justify-content: center; row-gap: 8px;
}
.hero-billing > div { display: flex; align-items: baseline; gap: 12px; padding: 0 22px; }
.hero-billing > div + div { border-left: 1px solid var(--line-2); }
.hero-billing dt {
  font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; font-weight: 500;
  color: var(--text-3);
}
.hero-billing dd { font-size: var(--fs-ui); color: var(--text-2); }
.hero-billing .dot-list { justify-content: center; }

@media (max-width: 599px) {
  .hero-billing { flex-direction: column; align-items: center; row-gap: 10px; }
  .hero-billing > div { flex-direction: column; align-items: center; gap: 4px; padding: 0; }
  .hero-billing > div + div { border-left: 0; }
}

@media (min-width: 900px) {
  .hero {
    min-height: min(100vh, 960px);
    padding: calc(var(--header-h) + 56px) 0 64px;
  }
  @supports (height: 1svh) { .hero { min-height: min(100svh, 960px); } }
  .hero-backdrop img { opacity: 0.6; }
  /* Same as the display size, but capped by height on short laptop windows. */
  .hero-title { font-size: clamp(52px, min(7.2vw, 11.5vh), 112px); }
}
@media (min-width: 900px) and (max-height: 760px) {
  /* Short laptop windows: the whole viewfinder, all four corners, fits the screen. */
  .hero { padding: calc(var(--header-h) + 36px) 0 40px; }
  .hero-sub { margin-top: 20px; }
  .hero-cta { margin-top: 26px; }
  .hero-billing { margin-top: 32px; }
}

/* ------------------------------------------------------------ viewfinder
   Decorative camera viewfinder behind the opening title. The top-right
   corner picks up the coral corner from the logo. */
.viewfinder {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.viewfinder::after {
  content: ""; position: absolute; inset: 0; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.vf-frame {
  --vf-line: rgba(238, 233, 224, 0.045);
  position: absolute;
  top: calc(var(--header-h) + 14px); bottom: 16px;
  left: calc(var(--g) / 2); right: calc(var(--g) / 2);
  background:
    linear-gradient(var(--vf-line), var(--vf-line)) 33.333% 0 / 1px 100% no-repeat,
    linear-gradient(var(--vf-line), var(--vf-line)) 66.666% 0 / 1px 100% no-repeat,
    linear-gradient(var(--vf-line), var(--vf-line)) 0 33.333% / 100% 1px no-repeat,
    linear-gradient(var(--vf-line), var(--vf-line)) 0 66.666% / 100% 1px no-repeat;
}
.vf-corner {
  position: absolute; width: clamp(22px, 3vw, 40px); height: clamp(22px, 3vw, 40px);
  border: 0 solid rgba(238, 233, 224, 0.5);
}
.vf-tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.vf-tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; border-color: var(--accent); }
.vf-bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.vf-br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.vf-tick { position: absolute; background: rgba(238, 233, 224, 0.35); }
.vf-t, .vf-b { left: 50%; width: 1px; height: 10px; }
.vf-t { top: 0; } .vf-b { bottom: 0; }
.vf-l, .vf-r { top: 50%; height: 1px; width: 10px; }
.vf-l { left: 0; } .vf-r { right: 0; }
.vf-guide {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  aspect-ratio: 2.39 / 1; max-height: 100%;
  border-top: 1px dashed rgba(238, 233, 224, 0.14);
  border-bottom: 1px dashed rgba(238, 233, 224, 0.14);
}
.vf-guide span {
  position: absolute; top: 8px; left: 12px;
  font-size: var(--fs-tag); letter-spacing: var(--ls-tag); text-transform: uppercase; font-weight: 500;
  color: var(--text-3);
}
@media (max-width: 599px) {
  .vf-guide { display: none; }
  .vf-frame { top: calc(var(--header-h) + 10px); bottom: 10px; }
}
/* Keep guides clear of the text on narrower and shorter screens. */
@media (max-width: 899px) { .vf-l, .vf-r { display: none; } }
@media (max-height: 560px) { .vf-guide { display: none; } }

/* Full-width primary actions on phones: easier to reach and tap. */
@media (max-width: 599px) {
  .first-frame .btn-wa, .film-contact .btn-wa { width: 100%; }
}

/* ------------------------------------------------------------ frame
   The compare box: four frames from one sequence, two by two.
   Each frame holds the earlier stage with the later stage on top. The top
   picture is clipped from the right by --f, so every frame splits at the
   same point and one drag compares all four. */
.frame {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1;
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.js .frame { cursor: ew-resize; }

.frame-media {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--cell-gap, 2px);
}
.cell { --f: 1; position: relative; overflow: hidden; background: var(--bg-2); }
/* A frame can be wider than tall when its pictures are ("shape" in the
   content file). It keeps its width and is simply less tall. The box stays
   square, so nothing around it moves when the sequence changes: the two
   rows close up at the top of the box and the spare space is under them.
   (A browser without :has() leaves each frame at the top of its own half
   of the box.) */
.cell[data-shape] { aspect-ratio: var(--shape); align-self: start; }
.frame-media:has(.cell[data-shape]) { grid-template-rows: auto auto; align-content: start; }
.frame-media:has(.cell[data-shape]) .cell:not([data-shape]) { aspect-ratio: 1 / 1; }
.layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; z-index: 0;
  -webkit-user-drag: none;
}
/* The picture underneath shows only where the one on top is clipped away,
   right of the line. Under the covered part it would show through as a
   hairline wherever a frame's edge falls between two screen pixels. */
.layer.is-base { opacity: 1; z-index: 1; clip-path: inset(0 0 0 calc(var(--f) * 100%)); }
.layer.is-top {
  opacity: 1; z-index: 2;
  clip-path: inset(0 calc((1 - var(--f)) * 100%) 0 0);
}

/* Frame numbers, in reading order. */
.cell-num {
  position: absolute; z-index: 5; left: 8px; top: 8px;
  padding: 3px 7px; background: rgba(7, 9, 11, 0.8);
  font-size: var(--fs-tag); letter-spacing: var(--ls-tag); font-weight: 600; line-height: 1.4;
  color: var(--text);
  pointer-events: none;
}

.wipe {
  position: absolute; top: 0; bottom: 0; z-index: 4;
  left: calc(var(--f) * 100%);
  width: 1px; margin-left: -0.5px;
  background: rgba(238, 233, 224, 0.9);
  /* A dark edge either side keeps the line visible over pale pictures:
     3:1 or better against a white one. */
  box-shadow: 0 0 0 1px rgba(7, 9, 11, 0.45);
  opacity: 0; transition: opacity 0.2s;
  pointer-events: none;
}
.cell[data-wiping] .wipe { opacity: 1; }
/* The round handle shows in the frame being dragged, and in all four
   during the opening hint. It fades as it reaches either edge, so it is
   never seen cut in half. */
.wipe-handle {
  position: absolute; top: calc(50% - 18px); left: -18px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--ivory);
  background: rgba(7, 9, 11, 0.6);
  opacity: 0;
}
.wipe-handle .icon { width: 16px; height: 16px; }
.cell.is-active .wipe-handle,
.frame.is-hinting .wipe-handle { opacity: calc(min(var(--f), 1 - var(--f)) * 12); }

.wipe-tag {
  position: absolute; z-index: 4; top: calc(50% + 28px);
  padding: 4px 8px; background: rgba(7, 9, 11, 0.72);
  font-size: var(--fs-tag); letter-spacing: var(--ls-tag); text-transform: uppercase; font-weight: 500;
  opacity: 0; transition: opacity 0.2s; pointer-events: none; white-space: nowrap;
}
.wipe-tag--left { right: calc((1 - var(--f)) * 100% + 10px); }
.wipe-tag--right { left: calc(var(--f) * 100% + 10px); }
.cell.is-active[data-wiping] .wipe-tag { opacity: 1; }

.frame-progress {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 6;
  overflow: hidden; opacity: 0; transition: opacity 0.2s;
}
.frame-progress::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 30%;
  background: var(--accent);
  animation: frame-progress 1.1s var(--ease) infinite;
}
.frame[aria-busy="true"] .frame-progress { opacity: 1; }
@keyframes frame-progress { from { left: -30%; } to { left: 100%; } }

/* ------------------------------------------------------------ rail */
.rail { position: relative; }

/* Sequence tabs. Up to three share the row (.seq-tabs--fit); more than
   that scroll sideways on phones, with the next one peeking in. */
.seq-tabs {
  --tab-gap: 16px;
  --tab-w: calc((100vw - var(--g) - 2 * var(--tab-gap) - 50px) / 2);
  display: flex; gap: var(--tab-gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  margin-inline: calc(-1 * var(--g));
  padding: 0 var(--g) 10px;
  scroll-padding-inline: var(--g);
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  border-top: 1px solid var(--line);
}
@media (max-width: 340px) {
  .seq-tabs { --tab-gap: 12px; }
  .seq-tabs .seq-tab { padding-right: 4px; }
  .seq-tabs .seq-name { font-size: 13.5px; }
}

.seq-tab {
  flex: 0 0 auto; min-width: var(--tab-w);
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 14px 8px 12px 0;
  margin-top: -1px;
  border-top: 2px solid transparent;
  text-align: left; white-space: nowrap;
  color: var(--text-2);
  transition: color 0.2s, border-color 0.2s;
}
.seq-tab:hover { color: var(--text); }
.seq-tab[aria-selected="true"] { color: var(--text); border-top-color: var(--accent); }
.seq-num {
  font-size: var(--fs-tag); letter-spacing: var(--ls-label); font-weight: 600; line-height: 1.4;
  color: var(--text-3);
}
.seq-tab[aria-selected="true"] .seq-num { color: var(--accent); }
/* A long one-word title breaks rather than running into the next tab. */
.seq-name { font-size: var(--fs-ui); font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.seq-tab:focus-visible { outline-offset: -2px; }

.seq-tabs--fit,
.seq-tabs {
  grid-template-columns: repeat(var(--tab-count, 3), minmax(0, 1fr));
}
.seq-tabs--fit {
  display: grid; gap: 0;
  overflow: visible; margin-inline: 0; padding: 0;
}
.seq-tabs--fit .seq-tab { min-width: 0; white-space: normal; }

/* Tablets and up: every sequence in one row, no scrolling. */
@media (min-width: 600px) {
  .seq-tabs { display: grid; gap: 0; overflow: visible; margin-inline: 0; padding: 0; }
  .seq-tab { min-width: 0; padding: 16px 12px 14px 0; white-space: normal; }
}

.stage-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--line);
}
.stage-track { order: -1; flex: 1 1 100%; position: relative; min-width: 0; height: 68px; }
/* Labels sit where their stage sits on the track: first at the start,
   last at the end, any others in between. */
.stage-buttons { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.stage-btn {
  min-height: 44px; padding: 6px 0;
  text-align: center; font-size: var(--fs-ui); font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}
.stage-buttons .stage-btn:first-child { text-align: left; }
.stage-buttons .stage-btn:last-child { text-align: right; }
.stage-btn:hover, .stage-btn[aria-pressed="true"] { color: var(--text); }
.stage-btn:focus-visible { outline-offset: 0; }

.stage-range {
  position: absolute; left: 0; right: 0; top: 44px;
  width: 100%; height: 24px; margin: 0;
  background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.stage-range::-webkit-slider-runnable-track {
  height: 24px;
  background: linear-gradient(var(--line-2), var(--line-2)) 0 50% / 100% 1px no-repeat;
}
.stage-range::-moz-range-track {
  height: 1px; background: var(--line-2);
}
.stage-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; margin-top: 5px; border-radius: 50%;
  background: var(--accent); border: 0;
}
.stage-range::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 0;
}
.stage-range:focus { outline: none; }
.stage-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ivory); }
.stage-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ivory); }

/* A short stem rising from the playhead dot, below the labels so it never
   runs through the text. */
.stage-head {
  position: absolute; top: 36px; height: 20px; width: 1px;
  left: calc(var(--p) / var(--pmax, 1) * (100% - 14px) + 7px);
  background: var(--accent); opacity: 0.7;
  pointer-events: none;
}

.play-btn .icon { padding-left: 10px; }
.play-btn.is-playing .icon { border-color: var(--accent); color: var(--accent); padding-left: 9px; }
/* The label changes to "Stop" while playing. An unseen copy of the longer
   label holds the button's width, so the slider beside it stays put. */
.play-label { display: inline-grid; justify-items: start; }
.play-label > * { grid-area: 1 / 1; }
.play-label-sizer { visibility: hidden; }

.viewer-error {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px;
  padding: 10px 0; color: var(--error); font-size: var(--fs-ui);
  border-bottom: 1px solid var(--line);
}
.viewer-error .text-btn { color: var(--text); }

.hero-below {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-block: 12px;
}
@media (max-width: 599px) { .hero-below .hint { display: none; } }
/* A sequence with no film page: the link keeps its place, unseen. */
[data-film-link][data-off] { visibility: hidden; }

/* Without working scripts (disabled, or failed to load), hide controls that
   would do nothing and show plain alternatives instead. */
.js-fallback { display: none; }
.no-js .js-fallback, .has-recovery .js-fallback { display: block; }
/* Text that only makes sense with scripting on, and its plain stand-in. */
.no-js .js-only { display: none; }
.no-js-only { display: none; }
.no-js span.no-js-only { display: inline; }
.no-js .player-start, .has-recovery .player-start { display: none; }
/* The viewer: scripting off, or the page's script failed before the viewer
   started (it adds .is-live when it has). A viewer that is running keeps
   its controls even if another part of the page failed. */
.no-js .seq-tabs, .no-js .stage-bar, .no-js .hint,
.has-recovery .viewer-section:not(.is-live) .seq-tabs,
.has-recovery .viewer-section:not(.is-live) .stage-bar,
.has-recovery .viewer-section:not(.is-live) .hint { display: none; }
.no-js .frame, .has-recovery .viewer-section:not(.is-live) .frame { cursor: auto; }
.slate-copy--plain { display: none; }
.no-js .slate-copy--plain,
.has-recovery .viewer-section:not(.is-live) .slate-copy--plain { display: block; }
.no-js .slate-copy--live,
.has-recovery .viewer-section:not(.is-live) .slate-copy--live { display: none; }

/* ------------------------------------------------------------ viewer section
   Phones and tablets stack the parts: heading, box, controls. Laptops put
   the heading and controls on the left and the box on the right, sized so
   the whole box fits on the screen. */
.viewer-section { margin-top: clamp(40px, 6vw, 88px); }
.viewer-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.viewer-controls { container-type: inline-size; }

/* A narrow controls column drops the drag hint, as phones do. */
@container (max-width: 439px) {
  .hero-below .hint { display: none; }
}
/* Where the controls have room, play, the stage track and expand share a row. */
@container (min-width: 440px) {
  .stage-bar { flex-wrap: nowrap; justify-content: flex-start; gap: 20px; padding: 14px 0 16px; }
  .stage-track { order: 0; flex: 1 1 auto; max-width: 420px; }
  .stage-bar [data-expand] { margin-left: auto; }
}

/* Phones and tablets: the box runs edge to edge, but is never taller than
   the screen (a phone held sideways, say), so all four frames stay in view. */
@media (max-width: 899px) {
  .viewer-stage { margin-inline: calc(-1 * var(--g)); }
  /* One column: the spare space of a shorter row goes above the frames,
     so the pictures still sit on the tabs under them. */
  .frame-media:has(.cell[data-shape]) { align-content: end; }
  /* A sequence whose four frames are all wide leaves a third of the box
     spare. All of it above the frames looks like a picture that did not
     load, so it is split above and below them, like the bars round a wide
     film frame (level B does the same for its opening screen). */
  .frame-media:has(.cell[data-shape]):not(:has(.cell:not([data-shape]))) { align-content: center; }
  .frame {
    width: min(100%, max(260px, calc(100vh - var(--header-h) - 24px)));
    width: min(100%, max(260px, calc(100svh - var(--header-h) - 24px)));
    margin-inline: auto;
  }
}

@media (min-width: 900px) {
  .viewer-section { --cell-gap: 4px; }
  /* The right column is exactly as wide as the box: just over half the
     width, up to 720px, or less on short screens so the whole box stays
     in view. The heading and controls take the rest. */
  .viewer-grid {
    grid-template-columns: minmax(0, 1fr) min(56%, 720px, max(280px, calc(100vh - var(--header-h) - 64px)));
    grid-template-columns: minmax(0, 1fr) min(56%, 720px, max(280px, calc(100svh - var(--header-h) - 64px)));
    grid-template-rows: auto 1fr;
    column-gap: clamp(32px, 5vw, 88px);
    border-top: 1px solid var(--line);
    padding-top: 18px;
  }
  .viewer-intro { grid-column: 1; grid-row: 1; }
  .viewer-intro .slate {
    border-top: 0; padding-top: 0; margin-bottom: 0;
    grid-template-columns: minmax(0, 1fr);
  }
  .viewer-intro .slate .h2, .viewer-intro .slate-copy { grid-column: 1; }
  .viewer-intro .h2 { font-size: clamp(32px, 3.5vw, 54px); }
  .viewer-controls { grid-column: 1; grid-row: 2; align-self: end; margin-top: 28px; }
  /* The caption sits above the film link, and the block ends level with the box. */
  .viewer-controls .hero-below { flex-direction: column; align-items: flex-start; gap: 2px; padding-bottom: 0; }
  .viewer-stage { grid-column: 2; grid-row: 1 / span 2; }
  .cell-num { left: 10px; top: 10px; }
  .seq-tab { padding-right: 16px; }
}

/* ------------------------------------------------------------ full-frame viewer */
.xviewer {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  background: #000; color: var(--text);
  overflow: hidden;
}
.xviewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.xviewer::backdrop { background: #000; }

.x-top {
  display: flex; align-items: flex-start; gap: 16px;
  padding: max(12px, env(safe-area-inset-top)) max(var(--g), env(safe-area-inset-right)) 12px max(var(--g), env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
}
.x-heading { flex: 1; min-width: 0; }
.x-title { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h4); line-height: 1.2; }
.x-stage-name {
  font-family: var(--sans); font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase;
  font-weight: 500; color: var(--text-2); margin-left: 10px; vertical-align: 0.3em;
}
.x-desc { margin-top: 4px; font-size: var(--fs-ui); color: var(--text-2); max-width: 72ch; }

.x-area { position: relative; overflow: hidden; touch-action: none; cursor: zoom-in; container-type: size; }
.x-area.is-zoomed { cursor: grab; }
.x-area.is-dragging { cursor: grabbing; }
/* The four frames as one square, as large as the space allows. */
.x-quad {
  position: absolute; inset: 0; margin: auto;
  width: min(100vw, 64vh); height: min(100vw, 64vh);
  width: min(100cqw, 100cqh); height: min(100cqw, 100cqh);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 3px;
  transform-origin: 50% 50%;
}
.x-quad img {
  width: 100%; height: 100%; object-fit: cover;
  background: var(--bg-2);
  -webkit-user-drag: none; -webkit-user-select: none; user-select: none;
}
/* A frame that is wider than tall, as in the box on the page. Here the two
   rows then sit in the middle of the square, not at its top (browsers
   without :has() keep them at the top). */
.x-quad img[data-shape] { height: auto; aspect-ratio: var(--shape); align-self: start; }
.x-quad:has(img[data-shape]) { grid-template-rows: auto auto; align-content: center; }
.x-quad:has(img[data-shape]) img:not([data-shape]) { height: auto; aspect-ratio: 1 / 1; }

.x-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
  padding: 10px max(var(--g), env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(var(--g), env(safe-area-inset-left));
  border-top: 1px solid var(--line);
}
.x-stages { display: flex; gap: 6px; }
.x-stages .stage-btn {
  min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-2); text-align: center;
}
.x-stages .stage-btn[aria-pressed="true"] { background: var(--ivory); color: var(--bg); border-color: var(--ivory); }
.x-zoom { display: flex; align-items: center; gap: 8px; }
.x-zoom-level { min-width: 52px; text-align: center; font-size: var(--fs-ui); font-variant-numeric: tabular-nums; }
.x-zoom .text-btn { min-width: 44px; min-height: 44px; justify-content: center; }
.x-label { margin-left: auto; }

@media (max-width: 599px) {
  .x-desc { display: none; }
  /* Tighter gaps and padding keep the bar to one row on phones 360 px wide
     and up, which leaves the pictures their full size. */
  .x-bar { position: relative; justify-content: space-between; gap: 10px 12px; }
  .x-stages .stage-btn { padding-inline: 10px; }
  .x-zoom { gap: 6px; }
  .x-zoom-level { min-width: 48px; }
  .x-zoom .text-btn { min-width: 0; padding-inline: 9px; }
  /* No room in the bar on a phone: the label sits just above it, over the
     corner of the picture area, so the frames are always labelled. */
  .x-label {
    position: absolute; left: max(var(--g), env(safe-area-inset-left)); bottom: calc(100% + 10px);
    margin: 0; padding: 3px 7px; background: rgba(7, 9, 11, 0.8); color: var(--text-2);
    pointer-events: none;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .xviewer[open] { grid-template-rows: minmax(0, 1fr); }
  .x-area { grid-row: 1; grid-column: 1; }
  .x-top {
    position: absolute; top: 0; right: 0; z-index: 2;
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 8px 8px;
    border: 0;
  }
  .x-heading { display: none; }
  .x-close { background: rgba(0, 0, 0, 0.55); }
  .x-bar {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    flex-wrap: nowrap; gap: 12px;
    padding: 6px max(12px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background: rgba(0, 0, 0, 0.6); border: 0;
  }
  .x-label { position: static; margin: 0 0 0 auto; padding: 0; background: none; white-space: nowrap; }
  .x-stages .stage-btn { min-height: 36px; padding: 6px 10px; }
  .x-zoom .text-btn { min-height: 36px; }
  .x-bar .icon-btn { width: 36px; height: 36px; }
}

/* Windows high-contrast themes replace colours and drop shadows and
   gradients. These rules keep the viewer's controls from vanishing there. */
@media (forced-colors: active) {
  /* Drawn over pictures, which keep their own colours. */
  .wipe, .wipe-handle, .wipe-tag, .cell-num, .frame-thumb-num { forced-color-adjust: none; }
  .seq-tab { border-top-color: Canvas; }
  .seq-tab[aria-selected="true"] { border-top-color: Highlight; }
  .stage-btn[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 4px; }
  .stage-range::-webkit-slider-runnable-track { height: 1px; background: CanvasText; }
  .stage-range::-webkit-slider-thumb { margin-top: -6.5px; background: Highlight; }
  .stage-range::-moz-range-track { background: CanvasText; }
  .stage-range::-moz-range-thumb { background: Highlight; }
  .stage-range:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; }
}

/* ------------------------------------------------------------ opening animation
   "Lock focus": the viewfinder reframes inwards, the headline racks from
   soft to sharp, and the coral corner blinks twice like a camera confirming
   focus. Plays once, about 1.5 seconds. Set hero.intro to "none" in
   content/site.json to turn it off.

   Only opacity, transform and filter are animated, so nothing shifts the
   layout. Fill mode is backwards only: once finished, each element drops
   back to its normal styles, leaving no filter or transform behind. Every element ends fully visible, so if the animation doesn't run
   (reduced motion, older browsers) the page simply appears as normal. */

@media (prefers-reduced-motion: no-preference) {
  .hero[data-intro="lock"] .vf-frame { animation: intro-reframe 1s var(--ease) backwards; }
  .hero[data-intro="lock"] .vf-tr { animation: intro-confirm 0.6s linear 1s backwards; }
  .hero[data-intro="lock"] .hero-title { animation: intro-focus 1.1s var(--ease) 0.1s backwards; }

  /* The supporting copy settles in as the headline sharpens. */
  .hero[data-intro="lock"] .hero-inner > .eyebrow,
  .hero[data-intro="lock"] .hero-sub,
  .hero[data-intro="lock"] .hero-mission,
  .hero[data-intro="lock"] .hero-cta,
  .hero[data-intro="lock"] .hero-billing {
    animation: intro-rise 0.6s var(--ease) backwards;
  }
  .hero[data-intro="lock"] .hero-inner > .eyebrow { animation-delay: 0.3s; }
  .hero[data-intro="lock"] .hero-sub { animation-delay: 0.5s; }
  .hero[data-intro="lock"] .hero-mission { animation-delay: 0.58s; }
  .hero[data-intro="lock"] .hero-cta { animation-delay: 0.68s; }
  .hero[data-intro="lock"] .hero-billing { animation-delay: 0.8s; }
}

@keyframes intro-reframe {
  from { opacity: 0; transform: scale(1.07); }
  55% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
@keyframes intro-confirm { 0%, 50%, 100% { opacity: 1; } 25%, 75% { opacity: 0.15; } }
@keyframes intro-focus {
  from { opacity: 0.35; filter: blur(10px); transform: scale(1.02); }
  to { opacity: 1; filter: none; transform: none; }
}
@keyframes intro-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ sections
   Sections are spaced with margin so an anchor lands on the slate rule,
   not on empty padding. The negative scroll margin brings the label to
   about 16px below the header. */
.section { margin-top: var(--sec-gap); scroll-margin-top: -18px; }

.slate {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-bottom: clamp(32px, 4.5vw, 64px);
  display: grid; gap: 14px;
}
/* Section labels are set like a clapperboard slate: SC 02 | SHOWREEL. */
.slate-label {
  display: inline-flex; align-items: stretch; justify-self: start;
  border: 1px solid var(--line-2);
  font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; font-weight: 500;
  line-height: 1.2; color: var(--text-2);
}
.slate-num { padding: 6px 10px; border-right: 1px solid var(--line-2); color: var(--accent); font-weight: 600; white-space: nowrap; }
.slate-name { padding: 6px 12px; }
.slate-copy { color: var(--text-2); font-size: var(--fs-body-lg); line-height: 1.55; max-width: 46ch; }
.slate--big .h2 { font-size: var(--fs-display); line-height: 0.98; }

@media (min-width: 900px) {
  .slate { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(32px, 5vw, 96px); align-items: end; }
  .slate-label { grid-column: 1 / -1; }
  .slate .h2 { grid-column: 1; }
  .slate-copy { grid-column: 2; }
}

.section-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; margin-top: 20px;
}
.section-foot--end { justify-content: flex-end; }
.section-note { margin-top: 20px; }

/* ------------------------------------------------------------ player */
.player-frame {
  position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden;
}
.player-poster, .player-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.player-poster { object-fit: cover; }
.player-video { object-fit: contain; background: #000; }

.player-start {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: flex-start; gap: 16px;
  padding: clamp(30px, 3.2vw, 44px);
  background: linear-gradient(0deg, rgba(7, 9, 11, 0.78) 0%, rgba(7, 9, 11, 0.2) 40%, rgba(7, 9, 11, 0) 65%);
  text-align: left;
}
.play-circle {
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ivory); color: var(--bg);
  transition: transform 0.3s var(--ease);
}
.play-circle .icon { width: 26px; height: 26px; margin-left: 3px; }
.player-start:hover .play-circle { transform: scale(1.05); }
.player-start-text { display: flex; flex-direction: column; gap: 2px; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7); }
.player-start-label { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.1; }
.player-duration { font-size: var(--fs-caption); letter-spacing: var(--ls-tag); color: var(--text-2); font-variant-numeric: tabular-nums; }
.player-start:focus-visible { outline-offset: -6px; }

.player--small .play-circle { width: 60px; height: 60px; }
.player--small .player-start-label { font-size: var(--fs-h4); }
@media (max-width: 599px) {
  .player-start { gap: 14px; }
  .play-circle { width: 60px; height: 60px; }
  .play-circle .icon { width: 22px; height: 22px; }
  .player--small .player-start-label { font-size: 19px; }
}

.player-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 24px; text-align: center;
  background: rgba(7, 9, 11, 0.62);
}
.player-overlay.is-loading { background: rgba(7, 9, 11, 0.25); }
.player-message { max-width: 42ch; font-size: var(--fs-body); }
.player-message:empty { display: none; }
.player-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.player-actions:empty { display: none; }
.player-spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid rgba(238, 233, 224, 0.25); border-top-color: var(--ivory);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.player-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 24px; padding-top: 10px;
}

/* ------------------------------------------------------------ films */
.films { display: grid; gap: clamp(28px, 3vw, 40px); }
@media (min-width: 700px) { .films { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.film-link { display: block; }
.film-media { display: block; position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg-2); }
.film-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.film-link:hover .film-media img { transform: scale(1.03); }
/* Official posters are shown whole. On wider screens they stand side by side
   at one height: each card grows in proportion to its poster's width-to-height
   ratio (--ratio, set on the card), so the posters' heights match and the
   titles beneath them line up. */
.films--posters .film-media { aspect-ratio: var(--ratio); }
.films--posters > .film-card { max-width: 440px; }
@media (min-width: 700px) {
  /* No wider than 1040px, and no taller than about two thirds of the screen. */
  .films--posters { display: flex; align-items: flex-start; max-width: min(1040px, calc(var(--ratio-sum) * 64vh + 40px)); }
  .films--posters > .film-card { flex: var(--ratio) 1 0; min-width: 0; max-width: none; }
}
.film-meta {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 16px;
  padding: 16px 0 14px; border-bottom: 1px solid var(--line);
}
.film-title { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.05; }
.film-label {
  grid-column: 1; grid-row: 2;
  font-size: var(--fs-ui); font-weight: 500; color: var(--text-2);
}
.film-cta {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-ui); font-weight: 500;
}
.film-cta { padding-bottom: 4px; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat; }
.film-cta .icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.film-link:hover .film-cta .icon { transform: translateX(3px); }
.film-link:focus-visible { outline-offset: 6px; }

/* ------------------------------------------------------------ process */
.steps { counter-reset: step; }
/* The process reads like a shot list: shot code, step and output, reference. */
.steps-head { display: none; }
.step {
  display: grid; gap: 14px;
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  font-size: var(--fs-label); letter-spacing: var(--ls-label); font-weight: 600;
  color: var(--accent); line-height: 1.2; white-space: nowrap;
}
.step-title { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); line-height: 1.08; }
.step-body { color: var(--text-2); margin-top: 12px; max-width: 46ch; font-size: var(--fs-body); }
.step-output {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  max-width: 46ch; font-size: var(--fs-body);
}
.step-output .caps { color: var(--text-3); margin-right: 10px; font-size: var(--fs-ui); letter-spacing: normal; text-transform: none; }
.step-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.step-media img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) {
  .steps-head, .step {
    grid-template-columns: 104px minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(24px, 3.5vw, 64px);
  }
  .steps-head {
    display: grid; padding-bottom: 10px;
    font-size: var(--fs-caption); font-weight: 500;
    color: var(--text-3);
  }
  .step { align-items: start; padding: 32px 0; }
  .step-num { padding-top: 10px; }
}

/* ------------------------------------------------------------ services */
.services { display: grid; border-top: 1px solid var(--line); }
.service { padding: 24px 0 28px; border-bottom: 1px solid var(--line); }
.service-num { font-family: var(--serif); font-style: italic; font-size: var(--fs-num); color: var(--accent); }
.service-title { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); line-height: 1.1; margin-top: 10px; }
.service-text { color: var(--text-2); margin-top: 10px; max-width: 44ch; }

@media (min-width: 700px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 96px); }
}

/* ------------------------------------------------------------ about */
.about { display: grid; gap: 28px; }
.about-lede { font-family: var(--serif); font-style: italic; font-size: var(--fs-h3); line-height: 1.25; max-width: 22ch; }
.about-body > p { color: var(--text-2); font-size: var(--fs-body-lg); line-height: 1.65; max-width: 58ch; }
.about-body > p + p { margin-top: 16px; }
.people { margin-top: 32px; border-top: 1px solid var(--line); }
.person {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.person-name { font-family: var(--serif); font-size: var(--fs-h4); line-height: 1.15; }
.person-role { font-size: var(--fs-ui); font-weight: 500; color: var(--text-2); }

@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 96px); }
  /* The text and the two names keep the right-hand column they had when a
     line of italics stood on their left. */
  .about-body { grid-column: 2; }
}

/* ------------------------------------------------------------ contact
   The question sits inside an empty frame, a blank panel waiting for the
   visitor's idea. Same marks as the opening viewfinder. */
.contact-copy { font-size: var(--fs-lead-lg); line-height: 1.45; color: var(--text-2); max-width: 30ch; }
.contact-copy span { display: block; }

.slate--label { margin-bottom: 20px; }
.first-frame {
  --vf-line: rgba(238, 233, 224, 0.045);
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  min-height: clamp(420px, 46vw, 640px);
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 80px);
  background:
    linear-gradient(var(--vf-line), var(--vf-line)) 33.333% 0 / 1px 100% no-repeat,
    linear-gradient(var(--vf-line), var(--vf-line)) 66.666% 0 / 1px 100% no-repeat,
    linear-gradient(var(--vf-line), var(--vf-line)) 0 33.333% / 100% 1px no-repeat,
    linear-gradient(var(--vf-line), var(--vf-line)) 0 66.666% / 100% 1px no-repeat;
}
.first-frame-marks { position: absolute; inset: 0; pointer-events: none; }
.first-frame-title {
  font-family: var(--serif); font-weight: 400; font-size: var(--fs-display);
  line-height: 0.98; letter-spacing: -0.015em; max-width: 13ch; text-wrap: balance;
}
.first-frame .contact-copy { margin-top: 22px; max-width: 42ch; }
.first-frame .btn-wa { margin-top: 34px; }

.brief { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); padding-top: 24px; }
.brief-title { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); }
.form-notice {
  margin-top: 14px; padding: 12px 14px;
  border: 1px solid var(--line-2); font-size: var(--fs-ui); color: var(--text-2);
}
.form-notice .caps { color: var(--text); margin-right: 8px; font-size: var(--fs-ui); font-weight: 600; letter-spacing: normal; text-transform: none; }

.form { margin-top: 20px; }
.form-fields { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-ui); font-weight: 500; }
.optional { color: var(--text-3); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 0;
  color: var(--text); font-size: var(--fs-body); line-height: 1.4;
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 132px; }
/* Saved details filled in by the browser keep the site's colours instead of
   the browser's yellow or blue. */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text); caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-2) inset; box-shadow: 0 0 0 1000px var(--bg-2) inset;
  transition: background-color 9999s ease-out 0s, border-color 0.2s;
}
.field input:autofill { filter: none; }
.field input:hover, .field textarea:hover { border-color: var(--text-3); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ivory); outline-offset: 1px; border-color: var(--ivory); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: var(--fs-ui); color: var(--error); }
.form-fields:disabled { opacity: 0.6; }
.form-actions { display: flex; align-items: center; gap: 16px; }
.form-status { margin-top: 16px; font-size: var(--fs-body); }
.form-status:empty { display: none; }
.form-status .status-box { padding: 14px 16px; border: 1px solid var(--line-2); }
.form-status .status-box--error { border-color: var(--error); }
.form-status a { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 700px) {
  .form-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .field--wide, .form-actions, .form-fields legend { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .brief {
    display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    column-gap: clamp(32px, 5vw, 96px); align-items: start;
  }
  .brief > .brief-title, .brief > .form-notice, .brief > .js-fallback { grid-column: 1; }
  .brief > .form { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
}

/* ------------------------------------------------------------ footer */
/* The footer closes the page like end credits. */
.site-footer {
  margin-top: var(--sec-gap); border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 88px) 0 calc(40px + env(safe-area-inset-bottom));
}
.credits { display: grid; justify-items: center; text-align: center; gap: clamp(40px, 5vw, 56px); }
.credits-roll { display: grid; gap: 16px; width: 100%; max-width: 780px; }
.credits-roll div { display: grid; gap: 4px; justify-items: center; }
.credits-roll dt {
  font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; font-weight: 500;
  color: var(--text-2);
}
.credits-roll dd { font-family: var(--serif); font-size: var(--fs-h4); line-height: 1.2; }
.credits-brand { display: grid; justify-items: center; gap: 4px; }
.credits-brand .brand-mark { margin-bottom: 8px; }
.credits-meta { display: grid; justify-items: center; gap: 4px; }
.footer-name { font-weight: 600; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; }
.footer-tag, .footer-note, .footer-copy { font-size: var(--fs-caption); color: var(--text-3); }
.back-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--fs-ui); font-weight: 500; }
.back-top { background: linear-gradient(var(--accent), var(--accent)) 0 calc(100% - 9px) / 100% 1px no-repeat; }
.back-top .icon { width: 16px; height: 16px; }
@media (min-width: 600px) {
  .credits-roll div { grid-template-columns: 1fr 1fr; column-gap: 28px; align-items: baseline; }
  .credits-roll dt { text-align: right; justify-self: end; }
  .credits-roll dd { text-align: left; justify-self: start; }
}

/* ------------------------------------------------------------ floating WhatsApp */
.wa-float {
  position: fixed; z-index: 30;
  right: calc(16px + env(safe-area-inset-right));
  /* --float-lift: set by the script when a host badge sits in this corner. */
  bottom: calc(16px + env(safe-area-inset-bottom) + var(--recovery-h) + var(--float-lift, 0px));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  /* The logo's colours: a coral disc with a white glyph. */
  background: var(--accent); color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: opacity 0.15s linear, visibility 0s linear 0s, transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); }
.wa-float .wa-glyph { width: 30px; height: 30px; }
.wa-float.is-hidden { opacity: 0; visibility: hidden; transition: opacity 0.15s linear, visibility 0s linear 0.15s; }
.wa-float:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }
@media (min-width: 900px) {
  .wa-float { width: 52px; height: 52px; }
  .wa-float .wa-glyph { width: 28px; height: 28px; }
}
/* Laptops reach WhatsApp from the top-right button; phones keep the round one. */
@media (min-width: 900px) { .wa-float { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-float.is-hidden { transition: none; }
}

/* ------------------------------------------------------------ recovery bar */
.recovery {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 12px max(var(--g), env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(var(--g), env(safe-area-inset-left));
  background: var(--bg-3); border-top: 1px solid var(--line-2);
  font-size: var(--fs-ui);
}
.recovery p { flex: 1 1 260px; }
.recovery-close { display: grid; place-items: center; width: 40px; height: 40px; }
html.has-recovery { --recovery-h: 112px; }
@media (min-width: 700px) { html.has-recovery { --recovery-h: 68px; } }

/* ------------------------------------------------------------ film pages */
.film-hero { position: relative; min-height: min(78svh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.film-hero-media { position: absolute; inset: 0; }
.film-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.film-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 11, 0.85) 0%, rgba(7, 9, 11, 0) calc(var(--header-h) + 80px)),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 9, 11, 0.75) 30%, rgba(7, 9, 11, 0.15) 70%);
}
.film-hero-inner { position: relative; z-index: 1; padding-top: calc(var(--header-h) + 48px); padding-bottom: 8px; }
.crumb { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--fs-ui); font-weight: 500; margin-bottom: 18px; }
.crumb .icon { width: 16px; height: 16px; }
.film-h1 { font-family: var(--serif); font-weight: 400; font-size: var(--fs-display); line-height: 0.95; margin-top: 14px; letter-spacing: -0.015em; }
.film-intro { margin-top: 20px; font-size: var(--fs-lead); max-width: 44ch; }
.film-hero .caption { margin-top: 16px; }

.film-overview { margin-top: clamp(56px, 7vw, 96px); }
.film-overview-grid { display: grid; gap: 40px; }
.film-poster { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--bg-2); max-width: 420px; }
.film-poster img { width: 100%; height: 100%; object-fit: cover; }
/* An official poster keeps its own shape, so nothing is cut off it. */
.film-poster--whole { aspect-ratio: auto; }
.film-poster--whole img { height: auto; }
.film-reel .h3 { margin-bottom: 16px; }
@media (min-width: 900px) {
  .film-overview-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(32px, 5vw, 96px); align-items: start; }
}

.study { display: grid; border-top: 1px solid var(--line); }
.study > div { padding: 24px 0 28px; border-bottom: 1px solid var(--line); }
.study dt { font-size: var(--fs-ui); font-weight: 500; color: var(--text-3); }
.study dd { margin-top: 10px; font-family: var(--serif); font-size: var(--fs-h4); line-height: 1.3; }
@media (min-width: 900px) {
  .study { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); }
}

/* Scope of work: the studio's heading for each part of the job, then its paragraph. */
.scope { display: grid; border-top: 1px solid var(--line); }
.scope-item { display: grid; gap: 12px; padding: 24px 0 28px; border-bottom: 1px solid var(--line); }
.scope-heading { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h4); line-height: 1.2; }
.scope-text { max-width: 68ch; font-size: var(--fs-body-lg); color: var(--text-2); }
@media (min-width: 900px) {
  .scope-item { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(32px, 5vw, 96px); padding: 32px 0 36px; }
}

.credit-list { display: grid; gap: 10px; margin-top: 16px; }
.credit-list div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; }
.credit-list dt { color: var(--text-3); }

/* The film's four viewer frames, in reading order. */
.frame-index { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.frame-thumb { position: relative; }
.frame-thumb-media { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-2); }
.frame-thumb-media[data-shape] { aspect-ratio: var(--shape); }
/* Beside taller ones, a wider frame sits on the same bottom line. */
.frame-thumb:has(.frame-thumb-media[data-shape]) { align-self: end; }
.frame-thumb-media img { width: 100%; height: 100%; object-fit: cover; }
.frame-thumb-num {
  position: absolute; left: 8px; top: 8px;
  padding: 3px 7px; background: rgba(7, 9, 11, 0.8);
  font-size: var(--fs-tag); letter-spacing: var(--ls-tag); font-weight: 600; line-height: 1.4;
  color: var(--text);
}
@media (min-width: 900px) {
  .frame-index { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}

.film-contact-grid { display: grid; gap: 48px; border-top: 1px solid var(--line); padding-top: 24px; }
.film-contact .contact-copy { margin-top: 16px; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.film-nav { display: grid; gap: 16px; align-content: start; }
.next-film {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 12px; border: 1px solid var(--line);
  transition: border-color 0.2s;
}
.next-film:hover { border-color: var(--line-2); }
.next-media { aspect-ratio: 1; overflow: hidden; }
.next-media img { width: 100%; height: 100%; object-fit: cover; }
.next-media--poster { aspect-ratio: auto; }
.next-media--poster img { height: auto; }
.next-text { display: grid; gap: 4px; }
.next-text .caps { color: var(--text-2); }
.next-title { font-family: var(--serif); font-size: var(--fs-h4); line-height: 1.1; }
.back-link { justify-self: start; }
@media (min-width: 900px) {
  .film-contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 96px); }
}

/* ------------------------------------------------------------ 404 */
.notfound { min-height: 80vh; display: flex; align-items: center; }
.notfound-inner { padding-top: calc(var(--header-h) + 64px); padding-bottom: 64px; }
.notfound-title { font-family: var(--serif); font-weight: 400; font-size: var(--fs-display); line-height: 0.95; margin-top: 18px; }
.notfound-title em { font-style: italic; }
.notfound-copy { margin-top: 20px; color: var(--text-2); font-size: var(--fs-lead); max-width: 44ch; }
.notfound-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }

/* ------------------------------------------------------------ framing system
   Viewfinder corner marks on images and players, the same language as the
   opening. The top-right corner carries the logo's coral. On devices with a
   pointer, the marks tighten around the image on hover, "framing" it. */
.framed { position: relative; }
.framed::after {
  --m: 18px;
  --c: rgba(238, 233, 224, 0.72);
  --a: var(--accent);
  content: ""; position: absolute; z-index: 4; pointer-events: none;
  inset: 12px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--m) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px var(--m) no-repeat,
    linear-gradient(var(--a), var(--a)) top right / var(--m) 1.5px no-repeat,
    linear-gradient(var(--a), var(--a)) top right / 1.5px var(--m) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--m) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1px var(--m) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--m) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px var(--m) no-repeat;
  opacity: 0.7;
  transition: inset 0.45s var(--ease), opacity 0.3s;
}
/* Labels sit inside the corner marks, clear of them even when they tighten. */
.framed .media-tag { z-index: 5; left: 28px; bottom: 28px; }
/* Once a video starts, the marks step aside for the video controls. */
[data-player][data-mode] .player-frame.framed::after { opacity: 0; }
@media (hover: hover) {
  .film-link:hover .framed::after,
  .step:hover .framed::after,
  .player-frame.framed:hover::after { inset: 22px; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .framed::after { transition: none; } }

/* ------------------------------------------------------------ services: drawings */
.service-icon {
  display: block; width: 64px; height: 40px; margin-bottom: 18px;
  fill: none; stroke: var(--text-2); stroke-width: 1.25; stroke-linecap: square;
}
.service-icon .accent { stroke: var(--accent); }
.service-num {
  font-family: var(--sans); font-style: normal;
  font-size: var(--fs-tag); letter-spacing: var(--ls-label); font-weight: 600;
}

/* ------------------------------------------------------------ about: statement */
.slate--statement .h2 { font-size: clamp(40px, 6.4vw, 96px); line-height: 0.95; letter-spacing: -0.015em; max-width: 14ch; }
@media (min-width: 900px) { .slate--statement .h2 { grid-column: 1 / -1; } }

/* ------------------------------------------------------------ lifted section
   Process sits on a slightly lighter charcoal, so it reads as its own
   chapter without leaving the dark title-sequence mood. */
.section--lifted {
  --lift-pad: clamp(64px, 8vw, 112px);
  position: relative;
  background: #111417;
  padding-block: var(--lift-pad);
  scroll-margin-top: calc(-1 * (var(--lift-pad) + 18px));
}
.section--lifted > .wrap { position: relative; }

/* ------------------------------------------------------------ pacing
   Related sections sit closer; About and Contact get more air. */
#showreel { margin-top: calc(var(--sec-gap) * 0.8); }
#about, #contact { margin-top: calc(var(--sec-gap) * 1.15); }

/* ------------------------------------------------------------ film page title card */
.film-hero { align-items: center; min-height: min(72svh, 720px); padding: calc(var(--header-h) + 56px) 0 64px; }
.film-hero-inner { padding: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.film-hero .crumb { margin-bottom: 22px; }
.film-hero .film-intro { max-width: 40ch; }

/* ------------------------------------------------------------ 404 as an empty frame */
.notfound { display: block; min-height: 0; }
.notfound-inner.first-frame {
  margin: calc(var(--header-h) + 24px) var(--g) 32px; max-width: none; width: auto;
  min-height: min(70svh, 640px);
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 80px);
}
.notfound-links { justify-content: center; }

/* ------------------------------------------------------------ image fade-in
   Lazy images fade in as they arrive instead of popping in. The inline
   script in <head> adds .is-in on load (or error); without it, images
   simply show. */
/* transform is listed too, so hover zooms on these images still ease. */
.js img[data-fade] { opacity: 0; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js img[data-fade].is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js img[data-fade] { transition: none; } }
