/* The Vault Media Co. film portfolio (/films). Layout measured against donprod.uk at 1440x900. */
:root {
  --black: #000;
  --white: #f6f6f6;
  --guide: #2a2a2a;
  --muted: #868686;
  --dim: #454545;
  --rose: #b76e79;
  --blush: #e5b7b2;
  --rose-grad: linear-gradient(100deg, #b76e79 0%, #e5b7b2 35%, #b76e79 65%, #e5b7b2 100%);
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --cond: 'Sofia Sans Extra Condensed', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --display: 'Mango Grotesque', var(--cond);
  --dw: 800;
  --ui: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --ui-stretch: 125%;
  --case: none;
  --ui-track: .01em;
  --heat-grad: linear-gradient(90deg, #000, #3d0d19 35%, #8e3447 48%, #b76e79 57%, #e5b7b2 69%, #f2dcc2 85%, #fff8f0);
  --heat-1: #3d0d19; --heat-2: #8e3447; --heat-3: #b76e79; --heat-4: #e5b7b2; --heat-5: #f2dcc2;
  --heat-accent: #b76e79; --heat-glow: .26; --grain-base: .03;
  --ease: cubic-bezier(.25, 1, .5, 1);        /* stack + tiles */
  --ease-corner: cubic-bezier(0, .55, .45, 1); /* corner marks */
  --ease-io: cubic-bezier(.87, 0, .13, 1);     /* archive slider, player expand */
  --pad: 20px;
  --vh: 1dvh;
  --pitch: calc(20 * var(--vh));               /* home stack pitch (DonProd: 20dvh) */
  --tile-w: calc(var(--pitch) * 1.9);
  --tile-h: calc(var(--pitch) - 20px);
  --active-scale: 1.18421;
  --center-col: calc(var(--tile-w) * var(--active-scale));
}
@supports not (height: 1dvh) { :root { --vh: 1vh; } }

@font-face { font-family: 'Mango Grotesque'; src: url(/fonts/mango/MangoGrotesque-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Mango Grotesque'; src: url(/fonts/mango/MangoGrotesque-ExtraBold.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Mango Grotesque'; src: url(/fonts/mango/MangoGrotesque-Black.woff2) format('woff2'); font-weight: 900; font-display: swap; }
/* HK Grotesk Wide: desktop licence only, so it is never served. local() uses it only if installed on this computer. */
@font-face { font-family: 'HK Grotesk Wide Local'; src: local('HK Grotesk Wide'), local('HKGroteskWide-Regular'); font-weight: 400; }
@font-face { font-family: 'HK Grotesk Wide Local'; src: local('HK Grotesk Wide Medium'), local('HKGroteskWide-Medium'); font-weight: 500; }
@font-face { font-family: 'Mango Grotesque'; src: url(/fonts/mango/MangoGrotesque-Light.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Mango Grotesque'; src: url(/fonts/mango/MangoGrotesque-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Mango Grotesque'; src: url(/fonts/mango/MangoGrotesque-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
/* Wordmark study only. HK Grotesk Wide is desktop-licensed: nothing is served; local() works if it is installed,
   and the /__local-fonts/ path exists only inside the local screenshot harness. */
@font-face { font-family: 'HK Grotesk Wide Study'; src: local('HK Grotesk Wide Regular'), local('HKGroteskWide-Regular'), url(/__local-fonts/HKGroteskWide-Regular.otf) format('opentype'); font-weight: 400; }
@font-face { font-family: 'HK Grotesk Wide Study'; src: local('HK Grotesk Wide Light'), local('HKGroteskWide-Light'), url(/__local-fonts/HKGroteskWide-Light.otf) format('opentype'); font-weight: 300; }
@font-face { font-family: 'HK Grotesk Wide Study'; src: local('HK Grotesk Wide Medium'), local('HKGroteskWide-Medium'), url(/__local-fonts/HKGroteskWide-Medium.otf) format('opentype'); font-weight: 500; }
html[data-weight="700"] { --dw: 700; } html[data-weight="900"] { --dw: 900; }
html.ui-mono { --ui: var(--mono); --ui-stretch: 100%; --case: uppercase; --ui-track: 0; }
html.ui-hk { --ui: 'HK Grotesk Wide Local', 'Archivo', sans-serif; --ui-stretch: 100%; }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); color: var(--white); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--black); color: var(--white);
  font-family: var(--ui); font-stretch: var(--ui-stretch); letter-spacing: var(--ui-track); font-size: 12px; line-height: 1.25;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
img, video { display: block; max-width: 100%; }
video { background: #000; }
:focus { outline: none; }
:focus-visible { outline: 1px solid var(--blush); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: var(--pad); top: -40px; z-index: 300; background: var(--white); color: #000; padding: 6px 10px; text-transform: var(--case); font-size: 11px; }
.skip:focus { top: 44px; }
.noscript { padding: 80px 20px; max-width: 520px; font-size: 13px; line-height: 1.6; }
.noscript a { text-decoration: underline; }
main { position: relative; z-index: 1; min-height: 100dvh; }
main:focus { outline: none; }

/* ---------- Pointer (fine pointers only) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; mix-blend-mode: difference; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [role="slider"] { cursor: none; }
.cursor-ring { position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border: 1px solid #fff; border-radius: 50%; transition: transform .35s var(--ease), opacity .25s, background-color .25s; }
.cursor-label { position: absolute; left: 0; top: -7px; font-size: 12px; color: #fff; white-space: nowrap; letter-spacing: .02em; opacity: 0; transform: translateX(-50%); text-transform: var(--case); }
.cursor.is-label .cursor-ring { transform: scale(0); opacity: 0; }
.cursor.is-label .cursor-label { opacity: 1; }
.cursor.is-link .cursor-ring { transform: scale(.45); background: #fff; }
.cursor.is-down .cursor-ring { transform: scale(.7); }

/* ---------- Analog grain ---------- */
.grain { position: fixed; inset: -10rem; z-index: 250; pointer-events: none; opacity: 0; background: url(/img/films/noise.png) repeat 50% / 200px 200px; transition: opacity .6s; }
.grain { opacity: var(--grain-base); }
.is-analog .grain { opacity: .085; animation: grain 1s steps(2) infinite; }
@keyframes grain {
  0% { transform: translate3d(0, 9rem, 0); } 10% { transform: translate3d(-1rem, -4rem, 0); }
  20% { transform: translate3d(-8rem, 2rem, 0); } 30% { transform: translate3d(9rem, -9rem, 0); }
  40% { transform: translate3d(-2rem, 7rem, 0); } 50% { transform: translate3d(-9rem, -4rem, 0); }
  60% { transform: translate3d(2rem, 6rem, 0); } 70% { transform: translate3d(7rem, -8rem, 0); }
  80% { transform: translate3d(-9rem, 1rem, 0); } 90% { transform: translate3d(6rem, -5rem, 0); }
  to { transform: translate3d(-7rem, 0, 0); }
}
.is-analog .tile-media, .is-analog .arc-video, .is-analog .loader-film { filter: contrast(1.08) saturate(.82) sepia(.08); }

/* ---------- Top navigation ---------- */
.nav {
  position: fixed; left: 0; right: 0; top: 0; z-index: 200; height: 38px;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: var(--pad) var(--pad) 0; font-size: 10.8px; text-transform: var(--case); line-height: 1.2;
  mix-blend-mode: difference; pointer-events: none;
}
.nav-right { display: flex; gap: 59px; }
.nav-link { position: relative; display: inline-block; pointer-events: auto; padding: 0; }
.nav-link > span { display: inline-block; }
/* hover/active bracket box (DonProd .box-hov-indicator) */
.bx { position: absolute; left: -5px; right: -5px; top: -5px; bottom: -5px; pointer-events: none; }
.bx::before, .bx::after {
  content: ''; position: absolute; inset: 0; border: 1px solid #fff; transform: scale(1.25); opacity: 0;
  transition: transform .5s var(--ease-io), opacity .3s;
}
.bx::before { clip-path: polygon(0 0, 6px 0, 6px 1px, 1px 1px, 1px 6px, 0 6px, 0 calc(100% - 6px), 1px calc(100% - 6px), 1px calc(100% - 1px), 6px calc(100% - 1px), 6px 100%, 0 100%); }
.bx::after { clip-path: polygon(100% 0, calc(100% - 6px) 0, calc(100% - 6px) 1px, calc(100% - 1px) 1px, calc(100% - 1px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 1px) calc(100% - 6px), calc(100% - 1px) calc(100% - 1px), calc(100% - 6px) calc(100% - 1px), calc(100% - 6px) 100%, 100% 100%); }
.nav-link:hover .bx::before, .nav-link:hover .bx::after,
.nav-link:focus-visible .bx::before, .nav-link:focus-visible .bx::after,
.nav-link[aria-current="page"] .bx::before, .nav-link[aria-current="page"] .bx::after { transform: scale(1); opacity: 1; }
.nav-link:focus-visible { outline: none; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 260; background: #000; overflow: hidden; transition: opacity .7s ease, visibility .7s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-film { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(14px) saturate(.9); opacity: .55; transform: scale(1.12); animation: loaderZoom 4s var(--ease) forwards; }
@keyframes loaderZoom { to { transform: scale(1); filter: blur(6px) saturate(.9); } }
.loader-txt { position: absolute; font-size: 10.8px; text-transform: var(--case); letter-spacing: .02em; color: var(--white); }
.loader-txt em { font-style: normal; background: var(--rose-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.loader-tl { left: var(--pad); top: var(--pad); }
.loader-tc { left: 50%; top: var(--pad); transform: translateX(-50%); }
.loader-tr { right: var(--pad); top: var(--pad); }
.loader-bl { left: var(--pad); bottom: var(--pad); }
.loader-br { right: var(--pad); bottom: var(--pad); }
.loader-mark { position: absolute; left: 50%; top: 50%; width: min(31.7vw, 456px); transform: translate(-50%, -50%); opacity: 0; animation: fadeIn .9s .25s ease forwards; }
.loader-pct { position: absolute; left: 50%; top: calc(50% + min(8vw, 110px)); transform: translateX(-50%); font-size: 10.8px; font-variant-numeric: tabular-nums; }
@keyframes fadeIn { to { opacity: 1; } }
.is-loading main { visibility: hidden; }

/* ---------- Shared bits ---------- */
.corners { position: absolute; pointer-events: none; }
.corners i { position: absolute; width: 20px; height: 20px; transition: transform 1s var(--ease-corner); }
.corners i::before, .corners i::after { content: ''; position: absolute; background: #fff; }
.corners i::before { left: 0; right: 0; height: 1px; }
.corners i::after { top: 0; bottom: 0; width: 1px; }
.corners i:nth-child(1) { left: 0; top: 0; transform-origin: 0 0; }
.corners i:nth-child(1)::before { top: 0; } .corners i:nth-child(1)::after { left: 0; }
.corners i:nth-child(2) { right: 0; top: 0; transform-origin: 100% 0; }
.corners i:nth-child(2)::before { top: 0; } .corners i:nth-child(2)::after { right: 0; }
.corners i:nth-child(3) { left: 0; bottom: 0; transform-origin: 0 100%; }
.corners i:nth-child(3)::before { bottom: 0; } .corners i:nth-child(3)::after { left: 0; }
.corners i:nth-child(4) { right: 0; bottom: 0; transform-origin: 100% 100%; }
.corners i:nth-child(4)::before { bottom: 0; } .corners i:nth-child(4)::after { right: 0; }
.corners.lg i { width: 40px; height: 40px; }
.corners.off i { transform: scale(0); }

.roll { display: inline-block; overflow: hidden; vertical-align: top; height: 1.2em; line-height: 1.2em; }
.roll > span { display: block; transition: transform .6s var(--ease); }
.roll.is-out > span { transform: translateY(-110%); }
.roll.is-in > span { transform: translateY(110%); transition: none; }

/* ---------- Home ---------- */
.home { position: fixed; inset: 0; overflow: hidden; touch-action: none; }
.stack { position: absolute; left: 0; right: 0; top: 0; will-change: transform; transition: transform 1s var(--ease); }
.stack.is-dragging { transition: none; }
.hero {
  position: absolute; left: 50%; width: calc(var(--vh) * 50.4); max-width: 86vw;
  top: calc(50 * var(--vh) - var(--tile-h) / 2 - 11 * var(--vh)); transform: translate(-50%, -100%);
  transition: opacity .6s ease;
}
.hero img { width: 100%; height: auto; }
.hero.is-hidden { opacity: 0; }
.tile {
  position: absolute; left: 50%; top: 0; width: var(--tile-w); height: var(--tile-h);
  margin-left: calc(var(--tile-w) / -2);
  opacity: .2; transform: translateZ(0); transition: width 1s var(--ease), margin-left 1s var(--ease), opacity .6s ease;
  display: block; outline: none;
}
/* The active frame widens (DonProd's 405 vs 342 px) by changing its width, so the picture is cropped wider, never stretched. */
.tile.is-active { opacity: 1; width: calc(var(--tile-w) * var(--active-scale)); margin-left: calc(var(--tile-w) * var(--active-scale) / -2); z-index: 2; }
.tile-clip { position: absolute; inset: 0; overflow: hidden; background: #0b0b0b; }
.tile-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease; }
.tile-video { opacity: 0; }
.tile-video.is-playing { opacity: 1; }
.tile-plus { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; mix-blend-mode: difference; pointer-events: none; }
.tile-plus::before, .tile-plus::after { content: ''; position: absolute; background: #f6f6f6; transition: transform .85s cubic-bezier(.16, 1, .3, 1); }
.tile-plus::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: scaleY(0); }
.tile-plus::after { top: 50%; left: 0; right: 0; height: 1px; transform: scaleX(0); }
.tile.is-active:hover .tile-plus::before, .tile.is-active:focus-visible .tile-plus::before { transform: scaleY(1); }
.tile.is-active:hover .tile-plus::after, .tile.is-active:focus-visible .tile-plus::after { transform: scaleX(1); }
.tile:focus-visible .tile-clip { outline: 1px solid var(--blush); outline-offset: 4px; }
.home-frame {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: calc(var(--center-col) + 47px); height: calc(var(--tile-h) + 40px);
  transform: translate(-50%, -50%); transition: width .8s var(--ease), height .8s var(--ease); pointer-events: none;
}
.home-cols {
  position: absolute; inset: var(--pad); display: grid; grid-template-columns: 1fr var(--center-col) 1fr; column-gap: 20px;
  font-size: 10.8px; text-transform: var(--case); pointer-events: none; z-index: 4;
}
.home-cols > * { pointer-events: none; }
.home-cols button, .home-cols a { pointer-events: auto; }
.home-cols p, .hero { margin: 0; }
.home-cols p { line-height: 13px; }
.home-left, .home-right { position: relative; }
.home-mode { position: absolute; left: 0; bottom: 0; height: 13px; overflow: hidden; text-align: left; }
.home-mode span { display: block; height: 13px; line-height: 13px; transition: transform .6s var(--ease); }
.is-analog .home-mode span { transform: translateY(-13px); }
.home-title { position: absolute; right: 0; bottom: 0; text-align: right; max-width: calc(100% - 90px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-client { position: absolute; left: 6px; bottom: 0; max-width: calc(100% - 110px); white-space: nowrap; }
.home-count { position: absolute; right: 0; bottom: 0; font-variant-numeric: tabular-nums; }
.home-count .roll { height: 13px; line-height: 13px; }
.lines { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; }
.lines button { display: block; width: 36px; height: 4px; position: relative; }
.lines button span { position: absolute; left: 0; top: 2px; height: 1px; width: 20px; background: var(--guide); transform-origin: 0 50%; transition: transform .5s var(--ease), background-color .5s; }
.lines button.is-near span { background: var(--muted); transform: scaleX(1.25); }
.lines button.is-active span { background: var(--white); transform: scaleX(1.75); }
.lines button:hover span { background: var(--white); transform: scaleX(1.25); }
.lines button.is-active:hover span { transform: scaleX(1.75); }
.selector { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 4px; }
.selector button { width: 26px; height: 16px; display: grid; place-items: center end; }
.selector button span { display: block; width: 13px; height: 14px; transition: background-color .4s, transform .4s var(--ease); }
.selector .sel-prev span { background: #9a9a9a; transform: scale(.8125, .875) translateY(-5px); }
.selector .sel-cur span { background: #e9e9e9; transform: scale(.8125, .875); }
.selector .sel-next span { background: #646464; transform: scale(.8125, .875) translateY(5px); }
.selector button:hover span, .selector button:focus-visible span { background: var(--blush); }
.selector button[disabled] { opacity: .35; cursor: default; }

/* expand: home tile / archive preview -> film player */
.flight { position: fixed; z-index: 150; overflow: hidden; background: #000; pointer-events: none; }
.flight img, .flight video { width: 100%; height: 100%; object-fit: cover; }
.home.is-leaving .tile:not(.is-active) { opacity: 0; transition: opacity .45s ease, transform 1s var(--ease); }
.home.is-leaving .hero, .home.is-leaving .home-cols, .home.is-leaving .home-frame { opacity: 0; transition: opacity .35s ease; }

/* ---------- Archive ---------- */
.archive { position: relative; min-height: 100dvh; padding: 60px 0 90px; }
.arc-guides { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.arc-guides i { position: absolute; background: var(--guide); }
.arc-guides .gv { top: 0; bottom: 0; width: 1px; }
.arc-guides .gh { left: 0; right: 0; height: 1px; }
.arc-preview {
  position: fixed; z-index: 0; left: 50%; top: 50%;
  width: calc(40.625vw); height: calc(48.89 * var(--vh)); transform: translate(-50%, -50%);
}
.arc-screen { position: absolute; inset: 0; clip-path: url(#crt); -webkit-clip-path: url(#crt); background: #050505; }
.arc-video, .arc-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, filter .4s; }
.arc-video { opacity: 0; }
.arc-video.is-playing { opacity: 1; }
.arc-screen.is-swapping .arc-poster, .arc-screen.is-swapping .arc-video { opacity: 0; transition: none; }
.archive.mono .arc-video, .archive.mono .arc-poster { filter: grayscale(1) contrast(1.05); }
.archive.invert .arc-video, .archive.invert .arc-poster { filter: invert(1) grayscale(1); }
.arc-frame { left: -20px; right: -20px; top: -20px; bottom: -20px; }
.arc-list { position: relative; z-index: 2; list-style: none; margin: 0; padding: 0; font-size: 13px; text-transform: var(--case); }
.arc-row { position: relative; display: grid; grid-template-columns: 20vw 25vw 1fr auto; align-items: center; height: 30px; }
.arc-row a { position: absolute; inset: 0; z-index: 3; }
.arc-row a:focus-visible { outline: 1px solid var(--blush); outline-offset: -1px; }
.arc-num, .arc-time { position: relative; display: inline-flex; align-items: center; height: 15px; padding: 0 20px; font-variant-numeric: tabular-nums; }
.arc-num { justify-self: start; }
.arc-time { justify-self: end; padding-left: 20px; }
.arc-num b, .arc-time b { font-weight: 400; position: relative; z-index: 1; mix-blend-mode: difference; }
.arc-slider { position: absolute; inset: 0; background: #fff; filter: blur(.5px); transform: scaleX(0); transform-origin: 0 50%; transition: transform .55s var(--ease-io); mix-blend-mode: difference; }
.arc-time .arc-slider { transform-origin: 100% 50%; }
.arc-row.is-active .arc-slider { transform: scaleX(1); }
.arc-title, .arc-client { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 20px; transition: color .5s; }
.arc-list.has-active .arc-row:not(.is-active) .arc-title, .arc-list.has-active .arc-row:not(.is-active) .arc-client { color: var(--white); }
.arc-head { display: none; }
.arc-title small { display: none; }
.arc-foot { position: fixed; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 var(--pad) var(--pad); pointer-events: none; }
.arc-foot > * { pointer-events: auto; }
.rgb { display: inline-flex; width: 34px; height: 14px; position: relative; margin-left: 6px; }
.rgb span { position: absolute; top: 1px; width: 11px; height: 11px; border-radius: 50%; mix-blend-mode: screen; transition: transform .5s var(--ease), background-color .4s; }
.rgb .r { left: 0; background: #ff0000; } .rgb .g { left: 6px; background: #00ff1e; } .rgb .b { left: 12px; background: #0900ff; }
.archive.mono .rgb span { background: #9a9a9a; } .archive.mono .rgb .g { background: #e9e9e9; } .archive.mono .rgb .b { background: #646464; }
.archive.invert .rgb .r { transform: translateX(12px); } .archive.invert .rgb .b { transform: translateX(-12px); }
.filters { display: flex; font-size: 12px; }
.filters button { color: var(--muted); padding-left: 14px; text-transform: none; transition: color .3s; }
.filters button[aria-pressed="true"], .filters button:hover { color: #fff; }
.filters button .ct { margin-left: 2px; }
.filters button[aria-pressed="true"] .ct b { padding: 0 6px; }
.filters button .ct b { font-weight: 400; transition: padding .4s var(--ease); }

/* ---------- Film ---------- */
.film { position: relative; padding: 60px 0 0; }
.film-guides { position: absolute; inset: 0; pointer-events: none; }
.film-guides i { position: absolute; background: var(--guide); }
.player-wrap { position: relative; margin: 0 auto; width: 90.278vw; height: 80vh; height: calc(80 * var(--vh)); }
.player { position: absolute; inset: 0; background: #000; overflow: hidden; }
.player video { width: 100%; height: 100%; object-fit: contain; }
.player-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .5s; pointer-events: none; }
.player.has-played .player-poster { opacity: 0; }
.player-hit { position: absolute; inset: 0; z-index: 2; }
.player-state { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; font-size: 12px; text-transform: var(--case); pointer-events: none; transition: opacity .3s; display: none; }
.no-cursor .player-state, .player.is-paused .player-state { display: block; }
.has-cursor .player.is-paused:hover .player-state { opacity: 0; }
.player-state { font-size: 13px; letter-spacing: .04em; padding: 10px 16px; }
.player-state::before { content: ''; display: inline-block; width: 0; height: 0; margin-right: 10px; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; vertical-align: -1px; }
.player.is-playing .player-state { opacity: 0; }
.player-error { position: absolute; inset: 0; z-index: 4; display: none; place-items: center; text-align: center; background: rgba(0,0,0,.82); font-size: 12px; text-transform: var(--case); line-height: 1.8; }
.player.has-error .player-error { display: grid; }
.player-error button { text-decoration: underline; text-underline-offset: 3px; }
.player-loading { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3; font-size: 10.8px; text-transform: var(--case); opacity: 0; transition: opacity .3s; pointer-events: none; }
.player.is-waiting .player-loading { opacity: 1; }
.side-ctrl { position: absolute; top: 50%; z-index: 5; font-size: 10.08px; font-weight: 500; text-transform: var(--case); padding: 9px 6px; }
.side-ctrl .letters { display: flex; flex-direction: column; align-items: center; line-height: 6px; }
.side-ctrl .letters span { display: block; height: 6px; width: 12px; text-align: center; transform: rotate(90deg); }
.side-left { left: calc((100vw - 90.278vw) / -2 + 19px); transform: translateY(-50%); }
.side-left .letters { flex-direction: column-reverse; }
.side-left .letters span { transform: rotate(-90deg); }
.side-right { right: calc((100vw - 90.278vw) / -2 + 19px); transform: translateY(-50%); }
.side-ctrl .strike { position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1px; background: var(--white); transform: scaleY(0); transition: transform .4s var(--ease); }
.side-ctrl[aria-pressed="false"] .strike { transform: scaleY(1); }
.side-ctrl .bx { left: 0; right: 0; top: 0; bottom: 0; }
.side-ctrl:hover .bx::before, .side-ctrl:hover .bx::after, .side-ctrl:focus-visible .bx::before, .side-ctrl:focus-visible .bx::after { transform: scale(1); opacity: 1; }
.side-ctrl:focus-visible { outline: none; }
.player-frame { left: 0; top: 0; right: 0; bottom: 0; }
.mob-ctrls { display: none; }
.film-aux { width: calc(90.278vw - 120px); margin: 0 auto; }
.ruler { position: relative; height: 21px; margin-top: 15px; display: flex; align-items: flex-end; justify-content: space-between; touch-action: none; cursor: pointer; }
.ruler i { display: block; width: 1px; height: 21px; background: var(--guide); transform: scaleY(.65); transform-origin: 50% 100%; transition: transform .25s var(--ease); }
.ruler i.on { background: var(--white); }
.ruler i.h1 { transform: scaleY(1.05); } .ruler i.h2 { transform: scaleY(.85); }
.ruler:focus-visible { outline: 1px solid var(--blush); outline-offset: 6px; }
.ruler-hover { position: absolute; bottom: 26px; transform: translateX(-50%); font-size: 10.8px; opacity: 0; transition: opacity .2s; pointer-events: none; font-variant-numeric: tabular-nums; }
.ruler:hover .ruler-hover { opacity: 1; }
.film-meta { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; margin-top: 20px; }
.film-title, .film-client { margin: 0; font-family: var(--display); font-weight: var(--dw); font-stretch: 100%; letter-spacing: .005em; text-transform: uppercase; font-size: 68px; line-height: .82; letter-spacing: 0; }
.film-title { overflow-wrap: anywhere; }
.film-client { text-align: right; }
.film-time { font-size: 12px; font-weight: 500; text-align: center; font-variant-numeric: tabular-nums; padding: 0 20px 2px; }
.film-time .of { color: var(--muted); }
.film-info { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-top: 60px; font-size: 12px; font-weight: 500; text-transform: var(--case); }
.credit { display: grid; grid-template-columns: 123px 189px 1fr; align-content: start; }
.credit dt, .credit dd { margin: 0; line-height: 14px; }
.credit .k { grid-column: 2; }
.credit .v { grid-column: 3; }
.credit .lbl { grid-column: 1; }
.film-about { text-transform: none; font-weight: 400; line-height: 1.6; max-width: 46ch; justify-self: end; text-align: left; color: var(--white); }
.film-loc { display: flex; flex-direction: column; gap: 2px; margin: 0 0 22px; font-size: 12px; font-weight: 500; text-transform: var(--case); line-height: 14px; }
.film-loc span:first-child { color: var(--white); }
.film-loc span + span { color: var(--muted); }
.film-about img { height: 36px; width: auto; margin-bottom: 18px; }
.film-about .group { color: var(--muted); text-transform: var(--case); font-size: 10.8px; margin-top: 14px; }
.cuts { margin-top: 90px; }
.cuts-head { display: flex; justify-content: space-between; font-size: 10.8px; text-transform: var(--case); border-bottom: 1px solid var(--guide); padding-bottom: 10px; }
.cuts-list { list-style: none; margin: 0; padding: 20px 0 0; display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.cuts-list::-webkit-scrollbar { display: none; }
.cut a { display: block; width: 260px; font-size: 10.8px; text-transform: var(--case); }
.cut .thumb { position: relative; height: 146px; background: #0b0b0b; overflow: hidden; }
.cut img { width: 100%; height: 100%; object-fit: cover; opacity: .45; transition: opacity .5s, transform 1s var(--ease); }
.cut.portrait img { object-fit: contain; }
.cut a:hover img, .cut a:focus-visible img, .cut a[aria-current="true"] img { opacity: 1; }
.cut a:hover img { transform: scale(1.03); }
.cut .cap { display: flex; justify-content: space-between; margin-top: 8px; gap: 10px; }
.cut .cap span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cut a[aria-current="true"] .cap span:first-child::before { content: '● '; color: var(--blush); }
.cut a[aria-current="true"] .thumb .corners { display: block; }
.cut .thumb .corners { display: none; inset: 6px; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 120px auto 0; width: 90.278vw; height: calc(70 * var(--vh)); min-height: 420px; padding-bottom: 60px; }
.pn a { position: relative; display: block; overflow: hidden; background: #070707; }
.pn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.5); transition: filter .8s ease, transform 1.2s var(--ease); }
/* poster only (direct child): the heat layer keeps its own heat-map filter */
.pn a:hover > img, .pn a:focus-visible > img { filter: grayscale(0) brightness(.75); transform: scale(1.03); }
.pn .pn-heat img { transition: transform 1.2s var(--ease); }
.pn a:hover .pn-heat img, .pn a:focus-visible .pn-heat img { transform: scale(1.03); }
.pn .big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--display); font-weight: var(--dw); font-stretch: 100%; letter-spacing: .005em; text-transform: uppercase; font-size: min(12vw, 190px); line-height: .8; }
.pn .sub { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; justify-content: space-between; font-size: 10.8px; text-transform: var(--case); }
.pn a:focus-visible { outline-offset: -4px; }
.film-foot { display: flex; justify-content: space-between; padding: 0 var(--pad) var(--pad); font-size: 10.8px; text-transform: var(--case); color: var(--muted); }
.film-foot a:hover { color: var(--white); }
.film .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform 1s var(--ease); }
.film.is-in .reveal { opacity: 1; transform: none; }
.film.is-in .reveal.d2 { transition-delay: .12s; } .film.is-in .reveal.d3 { transition-delay: .22s; }
.player-wrap.is-flying { visibility: hidden; }

/* ---------- Contact ---------- */
.contact {
  position: relative; min-height: 100dvh; background: #000; color: var(--white); overflow: hidden;
  display: grid; grid-template-columns: 1fr 20vw; grid-template-rows: 35vh 40vh 25vh;
  grid-template-rows: calc(35 * var(--vh)) calc(40 * var(--vh)) calc(25 * var(--vh));
}
.contact a:focus-visible, .contact button:focus-visible { outline-color: var(--blush); }
.contact a:hover, .contact button:hover { color: var(--blush); }
.contact .c-band:hover { color: inherit; }
.c-cell { position: relative; border-bottom: 1px solid var(--guide); }
.c-right { border-left: 1px solid var(--guide); }
.c-cell:nth-last-child(-n+2) { border-bottom: 0; }
.c-top { display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--pad) 12px; font-size: 10.8px; text-transform: var(--case); }
.c-services { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 18px; max-width: 760px; }
.c-services a, .c-by a, .c-links a, .c-links button, .c-rt a, .c-rb a, .c-rb button { position: relative; }
.c-services a::after, .c-links a::after, .c-links button::after, .c-rb a::after, .c-by a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease);
}
.c-services a:hover::after, .c-links a:hover::after, .c-links button:hover::after, .c-rb a:hover::after, .c-by a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.c-by { display: block; }
.c-loc { position: absolute; top: 75px; right: 16px; margin: 0; line-height: 1.3; text-align: left; }
.c-head-wrap { cursor: pointer; }
.c-by b { font-weight: 500; color: var(--white); }
.c-rt { padding: 60px var(--pad) 12px; display: flex; flex-direction: column; justify-content: space-between; font-size: 10.8px; text-transform: var(--case); line-height: 1.3; }
.c-rt .pager { display: flex; justify-content: space-between; }
.c-rt .pager button { text-transform: var(--case); }
.c-mid { display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad); overflow: hidden; }
.c-head { margin: 0; font-family: var(--display); font-weight: var(--dw); font-stretch: 100%; letter-spacing: .005em; text-transform: uppercase; font-size: 8.4vw; line-height: .82; letter-spacing: -.005em; white-space: nowrap; }
.c-head .ch { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); }
.contact.is-in .c-head .ch { transform: none; }
.c-head-wrap { overflow: hidden; padding-top: .06em; }
.c-links { display: flex; justify-content: space-between; margin-top: 4.2vh; font-size: 10.8px; text-transform: var(--case); }
.c-photo { overflow: hidden; background: #000; padding: 0; }
.c-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease, filter .6s ease; }
.contact.mono .c-photo img { filter: grayscale(1); }
.c-band { overflow: hidden; background: #000; cursor: pointer; padding: 0; border: 0; text-align: left; width: 100%; display: block; }
.c-band-inner { position: absolute; left: -10%; right: -10%; top: -30%; bottom: -30%; transform: rotate(-4deg); display: flex; flex-direction: column; justify-content: center; }
.c-band-row { display: flex; white-space: nowrap; font-family: var(--display); font-weight: var(--dw); font-stretch: 100%; letter-spacing: .005em; text-transform: uppercase; font-size: calc(6.6 * var(--vh)); line-height: .86; color: #1c1c1c; animation: band 28s linear infinite; }
.c-band-row:nth-child(even) { animation-direction: reverse; }
.c-band-row span { padding-right: .35em; }
.c-band-row span:nth-child(3n+2) { -webkit-text-stroke: 1px #5a5a5a; color: transparent; }
.c-band:hover .c-band-row { color: #2a2a2a; }
@keyframes band { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.reel-peek { position: fixed; left: 0; top: 0; z-index: 120; width: 210px; height: 150px; pointer-events: none; overflow: hidden; background: #000; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .3s ease, transform .4s var(--ease); }
.reel-peek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.reel-peek video { width: 100%; height: 100%; object-fit: cover; filter: url(#motionblur) brightness(.85); transform: scale(1.15); }
.reel-peek span { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-family: var(--display); font-weight: var(--dw); font-stretch: 100%; letter-spacing: .005em; text-transform: uppercase; font-size: 26px; letter-spacing: 2px; color: #fff; mix-blend-mode: difference; }
.c-rb { display: grid; grid-template-rows: auto 1fr auto; padding: 12px var(--pad) var(--pad); font-size: 10.8px; text-transform: var(--case); }
.c-rb .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; }
.contact > * { min-width: 0; }
.c-rb .mark { align-self: center; justify-self: center; letter-spacing: .9em; margin-right: -.9em; font-weight: 500; }
.c-rb .emo { display: flex; gap: 10px; font-size: 14px; }
.c-rb .emo button { line-height: 1; transition: transform .3s var(--ease); }
.c-rb .emo button:hover { transform: scale(1.25) rotate(-8deg); }
.c-rb .legal { display: flex; gap: 14px; align-items: center; }
.emoji-fx { position: fixed; z-index: 300; pointer-events: none; font-size: 22px; will-change: transform, opacity; }
.reel-dialog { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: var(--white); }
.reel-dialog::backdrop { background: #000; }
.reel-dialog video { position: absolute; left: 50%; top: 50%; width: 90.278vw; height: calc(80 * var(--vh)); transform: translate(-50%, -50%); object-fit: contain; }
.reel-bar { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; padding: var(--pad); font-size: 10.8px; text-transform: var(--case); z-index: 2; }
.reel-bar .t { font-variant-numeric: tabular-nums; }


/* ================= VAULT THERMAL ================= */
/* Heat-mapped copies sit above a picture and are animated in/out; the source media is never changed. */
.heat { position: absolute; inset: 0; z-index: 2; opacity: 0; pointer-events: none; overflow: hidden; will-change: opacity, filter, transform; }
.heat img { width: 100%; height: 100%; object-fit: cover; filter: url(#heat); }
/* Heat field behind the active frame: barely there at rest, flares on each client change */
.home-heat { position: absolute; left: 50%; top: 50%; z-index: 0; width: calc(var(--center-col) * 1.5); height: calc(var(--tile-h) * 2); transform: translate(-50%, -50%); pointer-events: none; opacity: calc(var(--heat-glow) * .3); mix-blend-mode: screen; }
.home-heat i { position: absolute; inset: 0; border-radius: 50%; filter: blur(46px); animation: heatDrift 18s ease-in-out infinite alternate; }
.home-heat i:nth-child(1) { background: radial-gradient(closest-side, var(--heat-3), var(--heat-2) 45%, transparent 78%); }
.home-heat i:nth-child(2) { inset: 18% 22%; background: radial-gradient(closest-side, var(--heat-4), transparent 75%); animation-duration: 13s; animation-direction: alternate-reverse; opacity: .7; }
@keyframes heatDrift { 0% { transform: translate(-6%, 2%) scale(1); } 50% { transform: translate(4%, -4%) scale(1.08); } 100% { transform: translate(7%, 3%) scale(.96); } }
.tab-hidden .home-heat i, .tab-hidden .c-heat i, .c-heat.is-off i { animation-play-state: paused; }
.stack { z-index: 1; }
/* Project counter: oversized Mango numeral; brand rose gold in every look (heat is reserved for motion) */
.home-count { display: flex; align-items: flex-end; gap: 2px; }
.home-count .count-num { height: auto; line-height: .78; font-family: var(--display); font-weight: var(--dw); font-size: 30px; letter-spacing: .01em; overflow: hidden; }
.home-count .count-num > span { background: var(--rose-grad); background-size: 300% 100%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; color: transparent; animation: heatPan 16s ease-in-out infinite alternate; padding: 0 1px; }
@keyframes heatPan { from { background-position: 0 0; } to { background-position: 100% 0; } }
.home-count .count-of { line-height: 13px; }
/* Archive: preview resolves out of heat on each new row */
.arc-screen .heat { z-index: 3; }
.arc-thumb { display: none; }
/* Film page: heat only on adjacent-project navigation */
.pn .pn-heat { z-index: 1; transition: opacity .6s ease; }
.pn a:hover .pn-heat, .pn a:focus-visible .pn-heat { opacity: .9; }
.pn .big, .pn .sub { z-index: 2; }
.flight .heat { z-index: 3; }
/* Contact: slow heat field behind the heading, on black */
.c-mid { position: relative; isolation: isolate; }
.c-heat { position: absolute; left: -8%; right: 18%; top: -30%; bottom: -40%; z-index: -1; pointer-events: none; opacity: calc(var(--heat-glow) * 1.5); mix-blend-mode: screen; }
.c-heat i { position: absolute; border-radius: 50%; filter: blur(70px); animation: heatDrift 26s ease-in-out infinite alternate; }
.c-heat i:nth-child(1) { left: 0; top: 10%; width: 55%; height: 90%; background: radial-gradient(closest-side, var(--heat-2), transparent 75%); }
.c-heat i:nth-child(2) { left: 30%; top: 25%; width: 45%; height: 70%; background: radial-gradient(closest-side, var(--heat-3), transparent 72%); animation-duration: 31s; animation-direction: alternate-reverse; }
.c-heat i:nth-child(3) { left: 55%; top: 40%; width: 30%; height: 50%; background: radial-gradient(closest-side, var(--heat-4), transparent 70%); opacity: .55; animation-duration: 22s; }
.c-links, .c-head-wrap { position: relative; z-index: 1; }
/* Y2K accents (local test only until licensed): one star at the counter, one on the active archive row */
.y2k-star { display: none; }
.y2k .y2k-star { display: inline-block; width: 9px; height: 9px; margin: 0 6px 2px 0; background: var(--heat-accent); -webkit-mask: url(/img/films/y2k/star-four.svg) center / contain no-repeat; mask: url(/img/films/y2k/star-four.svg) center / contain no-repeat; align-self: flex-end; }
.y2k .arc-row.is-active .arc-title::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--heat-accent); -webkit-mask: url(/img/films/y2k/star-spark.svg) center / contain no-repeat; mask: url(/img/films/y2k/star-spark.svg) center / contain no-repeat; }
/* Review panel (?review=1) */
.review { position: fixed; z-index: 500; left: 50%; bottom: 46px; transform: translateX(-50%); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; justify-content: center; max-width: calc(100vw - 24px); padding: 8px 12px; background: rgba(12,12,12,.92); border: 1px solid #2a2a2a; font: 500 11px/1.2 var(--mono); color: #bbb; backdrop-filter: blur(8px); }
.review .rv-g { display: inline-flex; gap: 2px; align-items: center; }
.review b { font-weight: 500; color: #777; margin-right: 6px; text-transform: uppercase; letter-spacing: .04em; font-size: 10px; }
.review button { padding: 3px 7px; border: 1px solid transparent; color: #bbb; }
.review button[aria-pressed="true"] { border-color: var(--heat-accent); color: #fff; }
.review .rv-x { font-size: 15px; padding: 0 4px; }


/* ---------- Wordmark study (?wm=1–6) ---------- */
.hero.hero-type { width: auto; max-width: none; text-align: center; white-space: nowrap; margin: 0; color: #fff; font-kerning: normal; font-feature-settings: 'kern' 1, 'liga' 1; text-rendering: optimizeLegibility; font-synthesis: none; }
.hero-type .wm { display: inline-block; line-height: 1; letter-spacing: -.012em; }
.hero-type .rg { background: linear-gradient(100deg, #b76e79 0%, #e5b7b2 45%, #c98a8f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wm-1r .wm { font-family: 'HK Grotesk Wide Study', 'Archivo', sans-serif; font-weight: 400; letter-spacing: -.02em; word-spacing: -.05em; }
.wm-1b .wm { font-family: 'HK Grotesk Wide Study', 'Archivo', sans-serif; font-weight: 400; letter-spacing: 0; word-spacing: -.02em; }
.wm-1b2 .wm { font-family: 'HK Grotesk Wide Study', 'Archivo', sans-serif; font-weight: 400; letter-spacing: .012em; word-spacing: 0; }
.wm-1b3 .wm { font-family: 'HK Grotesk Wide Study', 'Archivo', sans-serif; font-weight: 400; letter-spacing: .004em; word-spacing: -.02em; }
.hero.wm-1b3 { top: calc(50 * var(--vh) - var(--tile-h) / 2 - 16 * var(--vh)); }
.wm-1c .wm { font-family: 'HK Grotesk Wide Study', 'Archivo', sans-serif; font-weight: 500; letter-spacing: -.022em; word-spacing: -.05em; }
.wm-1d .wm { font-family: 'HK Grotesk Wide Study', 'Archivo', sans-serif; font-weight: 300; letter-spacing: -.012em; word-spacing: -.05em; }
.wm-1 .wm, .wm-6 .wm { font-family: 'HK Grotesk Wide Study', 'Archivo', sans-serif; font-weight: 400; font-stretch: 100%; }
.wm-2 .wm { font-family: 'HK Grotesk Wide Study', 'Archivo', sans-serif; font-weight: 500; letter-spacing: -.018em; }
.wm-3 .wm { font-family: 'HK Grotesk Wide Study', 'Archivo', sans-serif; letter-spacing: -.015em; }
.wm-3 .a { font-weight: 500; } .wm-3 .b { font-weight: 400; }
.wm-4 .wm { font-family: 'Mango Grotesque', sans-serif; font-weight: 300; letter-spacing: .012em; }
.wm-5 .wm { display: inline-flex; align-items: baseline; gap: .22em; letter-spacing: 0; }
.wm-5 .a { font-family: 'Mango Grotesque', sans-serif; font-weight: 400; letter-spacing: .01em; }
.wm-5 .b { font-family: 'HK Grotesk Wide Study', 'Archivo', sans-serif; font-weight: 400; font-size: .3em; letter-spacing: .02em; }
.wm-6 .rg { margin-left: .01em; }


/* ---------- Animated gradient (Spell UI AnimatedGradient port, ambient.js) ----------
   One fixed canvas behind all content. Masks keep it to the outer edges of each page; it never sits over footage
   (footage frames are opaque and above it) and never takes pointer, scroll or touch input. */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: calc(var(--amb-route, 1) * var(--amb-user, 1)); transition: opacity .8s ease;
  -webkit-mask-image: var(--amb-mask-x), var(--amb-mask-y); mask-image: var(--amb-mask-x), var(--amb-mask-y);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.ambient[hidden] { display: none; }
.ambient canvas { display: block; width: 100%; height: 100%; }
.ambient-noise { position: absolute; inset: 0; background-repeat: repeat; background-size: 200px 200px; opacity: .04; pointer-events: none; }
.ambient.is-fallback canvas { display: none; }
.ambient.is-fallback { background:
  radial-gradient(ellipse 38% 70% at 0% 45%, var(--amb-c3) 0%, var(--amb-c2) 35%, transparent 75%),
  radial-gradient(ellipse 38% 70% at 100% 55%, var(--amb-c3) 0%, var(--amb-c2) 35%, transparent 75%), var(--amb-c1); }
/* Films home: both outer sides of the carousel, fading to black well before the centre column */
.ambient[data-route="home"] { --amb-route: .8;
  --amb-mask-x: linear-gradient(90deg, #000 0%, rgba(0,0,0,.92) 10%, rgba(0,0,0,.45) 22%, rgba(0,0,0,.08) 30%, transparent 34%, transparent 66%, rgba(0,0,0,.08) 70%, rgba(0,0,0,.45) 78%, rgba(0,0,0,.92) 90%, #000 100%);
  --amb-mask-y: linear-gradient(180deg, rgba(0,0,0,.25) 0%, #000 22%, #000 78%, rgba(0,0,0,.25) 100%); }
/* Film pages: a subtle accent in the margins beside the player */
.ambient[data-route="film"] { --amb-route: .65;
  --amb-mask-x: linear-gradient(90deg, #000 0%, rgba(0,0,0,.55) 3.5%, transparent 8%, transparent 92%, rgba(0,0,0,.55) 96.5%, #000 100%);
  --amb-mask-y: linear-gradient(180deg, transparent 0%, #000 12%, #000 70%, transparent 100%); }
/* Archive: restrained, outside edges only */
.ambient[data-route="archive"], .ambient[data-route="missing"] { --amb-route: .5;
  --amb-mask-x: linear-gradient(90deg, #000 0%, rgba(0,0,0,.4) 9%, transparent 18%, transparent 82%, rgba(0,0,0,.4) 91%, #000 100%);
  --amb-mask-y: linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%); }
/* Contact: more atmospheric behind the layout; centre kept darker for reading */
.ambient[data-route="contact"] { --amb-route: .85;
  --amb-mask-x: linear-gradient(90deg, #000 0%, rgba(0,0,0,.7) 22%, rgba(0,0,0,.38) 48%, rgba(0,0,0,.55) 75%, #000 100%);
  --amb-mask-y: linear-gradient(180deg, rgba(0,0,0,.6) 0%, #000 40%, #000 100%); }
.has-ambient .contact, .has-ambient .c-band { background: transparent; }
.has-ambient .c-heat { display: none; }
@media (max-width: 760px) {
  .ambient[data-route="home"] { --amb-mask-x: linear-gradient(90deg, #000 0%, rgba(0,0,0,.5) 8%, transparent 15%, transparent 85%, rgba(0,0,0,.5) 92%, #000 100%);
    --amb-mask-y: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 30%, rgba(0,0,0,.6) 70%, #000 100%); }
  .ambient[data-route="film"] { --amb-route: .5; --amb-mask-y: linear-gradient(180deg, transparent 0%, #000 8%, #000 40%, transparent 70%); }
}
/* Review controls for the gradient (inside the ?review=1 panel) */
.review input[type="range"] { width: 84px; accent-color: #c88c96; }
.review .rv-val { min-width: 2.6em; color: #ddd; }
.review .rv-colours { gap: 6px; }
.review .rv-ir { flex-wrap: wrap; gap: 6px; max-width: 100%; }
.review .rv-ramp { display: inline-block; width: 140px; height: 12px; border: 1px solid #444; }
.review .rv-stop { display: inline-flex; align-items: center; gap: 2px; }
.review .rv-stop input[type="number"] { width: 38px; background: #111; color: #ddd; border: 1px solid #333; font: inherit; padding: 2px; }
.review .rv-sw { display: inline-block; width: 22px; height: 22px; border: 1px solid #444; overflow: hidden; cursor: pointer; }
.review .rv-sw input { width: 34px; height: 34px; margin: -6px; border: 0; padding: 0; background: none; cursor: pointer; }

/* ---------- Tablet / narrow desktop ---------- */
@media (max-width: 1100px) {
  .arc-row { grid-template-columns: 16vw 30vw 1fr auto; }
  .film-title, .film-client { font-size: 48px; }
}

/* ---------- Phones (portrait) ---------- */
@media (max-width: 760px) {
  :root { --pitch: calc(22 * var(--vh)); --tile-w: min(calc(var(--pitch) * 1.55), 68vw); --active-scale: 1.16; }
  .nav { font-size: 12px; padding-top: 18px; }
  .nav-right { gap: 30px; }
  .hero { width: 84vw; top: calc(50 * var(--vh) - var(--tile-h) / 2 - 7 * var(--vh)); }
  .home-cols { inset: auto var(--pad) calc(var(--pad) + env(safe-area-inset-bottom)) var(--pad); top: auto; height: 40px; grid-template-columns: 1fr auto; grid-template-rows: 16px 16px; row-gap: 8px; column-gap: 12px; }
  .home-left, .home-right { position: static; display: contents; }
  .home-title { position: static; grid-column: 1; grid-row: 1; text-align: left; max-width: none; font-size: 12px; }
  .home-count { position: static; grid-column: 2; grid-row: 1; justify-self: end; font-size: 12px; }
  .home-client { position: static; grid-column: 1; grid-row: 2; max-width: none; color: var(--muted); }
  .home-mode { position: static; grid-column: 2; grid-row: 2; justify-self: end; }
  .home-mid { display: none; }
  .lines { display: none; }
  .selector { position: fixed; right: 2px; top: 50%; }
  .selector button { width: 22px; height: 22px; place-items: center; }
  .home-frame { width: calc(var(--center-col) + 26px); height: calc(var(--tile-h) + 26px); }

  .archive { padding: 110px var(--pad) 80px; }
  .arc-guides, .arc-preview { display: none; }
  .arc-head { display: block; margin: 0 0 6px; font-family: var(--display); font-weight: var(--dw); font-stretch: 100%; letter-spacing: .005em; text-transform: uppercase; font-size: 24vw; line-height: .8; letter-spacing: -.01em; position: relative; }
  .arc-head sup { font-family: var(--mono); font-size: 12px; font-weight: 500; position: absolute; top: .3em; margin-left: 4px; }
  .arc-list { font-size: 12px; margin-top: 18px; }
  .arc-row { grid-template-columns: 34px 1fr auto; height: 50px; column-gap: 8px; }
  .arc-num, .arc-time { padding: 0; height: auto; }
  .arc-slider { display: none; }
  .arc-num b, .arc-time b { mix-blend-mode: normal; }
  .arc-num b::before, .arc-num b::after { content: none; }
  .arc-title { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-weight: 700; letter-spacing: .02em; display: flex; flex-direction: column; gap: 3px; }
  .arc-title small { display: block; font-weight: 400; font-style: italic; color: var(--white); font-size: 11.5px; letter-spacing: .02em; }
  .arc-client { display: none; }
  .arc-foot { position: static; padding: 0; margin-top: 10px; order: 2; }
  .arc-foot .rgb-wrap { display: none; }
  .arc-top { display: flex; flex-direction: column; }
  .filters { margin: 0; flex-wrap: wrap; gap: 4px 0; }
  .filters button { padding: 0 16px 0 0; }
  .arc-row.is-active .arc-num b { background: var(--white); color: #000; padding: 0 3px; margin-left: -3px; }

  .film { padding-top: 56px; }
  .player-wrap { width: 100vw; height: auto; aspect-ratio: var(--ar, 16 / 9); max-height: calc(72 * var(--vh)); }
  .player-wrap.portrait { width: min(100vw, calc(72 * var(--vh) * 9 / 16)); }
  .side-ctrl { display: none; }
  .player-frame.corners i { width: 20px; height: 20px; }
  .mob-ctrls { display: flex; justify-content: space-between; padding: 14px var(--pad) 0; font-size: 12px; text-transform: var(--case); }
  .mob-ctrls button { padding: 8px 0; min-width: 44px; }
  .mob-ctrls button:nth-child(2) { text-align: center; }
  .mob-ctrls button:last-child { text-align: right; }
  .film-aux { width: auto; margin: 0 var(--pad); }
  .ruler { margin-top: 8px; height: 30px; }
  .film-meta { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
  .film-title, .film-client { font-size: 15vw; }
  .film-client { text-align: left; font-size: 8vw; }
  .film-time { text-align: left; padding: 0; order: 3; }
  .film-info { grid-template-columns: 1fr; gap: 36px; margin-top: 40px; }
  .credit { grid-template-columns: 108px 1fr; }
  .credit .lbl { display: none; }
  .credit .k { grid-column: 1; } .credit .v { grid-column: 2; }
  .film-about { justify-self: start; }
  .cuts { margin-top: 56px; }
  .cut a { width: 62vw; }
  .cut .thumb { height: calc(62vw * 9 / 16); }
  .pn { width: auto; margin: 70px var(--pad) 0; grid-template-columns: 1fr; height: auto; min-height: 0; padding-bottom: 30px; }
  .pn a { height: 34vh; }
  .pn .big { font-size: 26vw; }
  .player-state { display: block; }

  .contact { display: flex; flex-direction: column; min-height: 100dvh; padding-top: 56px; }
  .c-cell { border-bottom: 1px solid var(--guide); }
  .c-right { border-left: 0; }
  .c-top { order: 2; padding: 18px var(--pad); }
  .c-loc { position: static; margin-bottom: 18px; }
  .film-guides { display: none; }
  .c-rt { order: 4; padding: 18px var(--pad); gap: 22px; }
  .c-mid { order: 1; padding: 22px var(--pad) 24px; }
  .c-head { white-space: normal; font-size: 19vw; line-height: .84; }
  .c-links { flex-direction: column; gap: 14px; font-size: 14px; margin-top: 22px; }
  .c-links > * { padding: 4px 0; align-self: flex-start; }
  .c-photo { order: 3; height: 56vw; }
  .c-band { order: 5; height: 34vh; position: relative; }
  .c-rb { order: 6; gap: 22px; border-bottom: 0; }
  .c-rb .mark { justify-self: start; }
}

/* ---------- Landscape phones ---------- */
@media (orientation: landscape) and (max-height: 500px) {
  :root { --pitch: calc(30 * var(--vh)); }
  .hero { width: calc(var(--vh) * 46); top: calc(50 * var(--vh) - var(--tile-h) / 2 - 5 * var(--vh)); }
  .film { padding-top: 46px; }
  .player-wrap { height: calc(100 * var(--vh) - 92px); width: 88vw; }
  .side-left { left: calc(-6vw + 6px); } .side-right { right: calc(-6vw + 6px); }
  .film-title, .film-client { font-size: 40px; }
  .arc-row { height: 26px; }
  .contact { grid-template-rows: auto auto auto; }
  .c-head { font-size: 8vw; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .is-analog .grain { animation: none; }
  .c-band-row { animation: none; }
  .film .reveal { opacity: 1; transform: none; }
  .c-head .ch { transform: none; }
}

/* ---------- VAULT THERMAL on phones ---------- */
@media (max-width: 760px) {
  .home-count .count-num { font-size: 24px; }
  .home-heat { width: 120vw; height: calc(var(--tile-h) * 2.2); }
  .arc-row { grid-template-columns: 34px 64px 1fr auto; column-gap: 12px; height: 56px; }
  .arc-thumb { display: block; position: relative; width: 64px; height: 36px; overflow: hidden; background: #0b0b0b; }
  .arc-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .c-heat { left: -30%; right: -30%; top: -10%; bottom: -10%; }
  .c-band-row { color: #222; }
  .review { bottom: 74px; font-size: 10px; gap: 4px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-heat i, .c-heat i, .home-count .count-num > span { animation: none !important; }
}

/* ---------- V3 · Featured: editorial filmstrip hero (port of crafterui HeroCarousel, variant 1 by default) ----------
   Sizes come from JS as ratios of the stage (--hc-*). The backdrop (.hc-bg) is fixed outside <main>, under the
   gradient canvas, so the Spell UI gradient keeps running and screens over the graded frame. */
.hc-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #000; isolation: isolate; transition: opacity .5s ease; }
.hc-bg.is-leaving { opacity: 0; }
.hc-layer { position: absolute; inset: 0; isolation: isolate; }
.hc-layer img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.28); }
.hc-color { position: absolute; inset: 0; background: var(--accent); mix-blend-mode: color; }   /* keep the frame's luminance, take the accent's hue */
.hc-mult { position: absolute; inset: 0; background: var(--accent); mix-blend-mode: multiply; opacity: .55; }
.hc-wash { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, transparent 50%, rgba(0,0,0,.45) 100%); }
[data-page="featured"] .hc-wash { background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.15) 50%, rgba(0,0,0,.5) 100%); }
.ambient[data-route="featured"] { --amb-route: .9; mix-blend-mode: screen;
  --amb-mask-x: linear-gradient(90deg, #000 0%, rgba(0,0,0,.8) 16%, rgba(0,0,0,.35) 38%, rgba(0,0,0,.35) 62%, rgba(0,0,0,.8) 84%, #000 100%);
  --amb-mask-y: linear-gradient(180deg, #000 0%, #000 100%); }
[data-page="featured"] .nav { mix-blend-mode: normal; }

.hc { position: relative; height: 100dvh; min-height: 24rem; overflow: hidden; color: #fff; -webkit-user-select: none; user-select: none; }
.hc.is-leaving .hc-head, .hc.is-leaving .hc-rail, .hc.is-leaving .hc-brand { opacity: 0; transition: opacity .4s ease; }
.hc-brand { position: absolute; left: 50%; top: var(--pad); margin: 0; transform: translateX(-50%); z-index: 3; }
.hc-brand img { height: 30px; width: auto; }

.hc-head { position: absolute; left: 0; right: 0; top: 0; height: var(--hc-top); display: flex; flex-direction: column; justify-content: flex-end; }
.hc-titles { position: relative; padding: 0 var(--hc-pad); margin-bottom: var(--hc-head-b); }
.hc-title { margin: 0; font-family: var(--display); font-weight: var(--dw); font-stretch: 100%; text-transform: uppercase; font-size: var(--hc-title); line-height: .84; letter-spacing: 0; }
.hc-title.is-out { position: absolute; left: var(--hc-pad); bottom: 0; }
.hc-line { display: block; overflow: hidden; padding: .06em 0 .12em; margin: -.06em 0 -.12em; }
.hc-line > span { display: block; white-space: nowrap; }

/* variant 1: the meta row sits on the hairline the strip hangs from */
.hc-cells { display: flex; flex-wrap: wrap; padding: 0 var(--hc-pad); border-bottom: 1px solid rgba(255,255,255,.35); }
.hc-cell { flex: 1; white-space: nowrap; padding: calc(var(--hc-label) * .7) var(--hc-cellx) calc(var(--hc-label) * .8); }
.hc-cell:first-child { padding-left: 0; }
.hc-cell + .hc-cell { border-left: 1px solid rgba(255,255,255,.2); }
.hc-cell span, .hc-credit, .hc-meta span, .hc-rail-n { display: block; font-family: var(--mono); font-size: var(--hc-label); line-height: 1.2; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.85); }

/* original: headline, credit and right-aligned facts on one baseline */
.hc-v0 .hc-head { flex-flow: row wrap; align-items: flex-end; align-content: flex-end; gap: 8px 6vw; padding: 0 var(--hc-pad) var(--hc-head-b); }
.hc-v0 .hc-titles { padding: 0; margin: 0; }
.hc-v0 .hc-title.is-out { left: 0; }
.hc-v0 .hc-title { line-height: .88; }
.hc-credit { margin: 0; color: rgba(255,255,255,.8); }
.hc-meta { margin-left: auto; display: flex; gap: max(16px, 5.5vw); }
.hc-meta span { white-space: nowrap; color: rgba(255,255,255,.8); }

/* the strip: one shared top edge, the focused card twice as tall as its neighbours */
.hc-strip { position: absolute; left: 0; right: 0; top: var(--hc-top); height: var(--hc-full); touch-action: pan-y; cursor: grab; }
.hc.is-dragging .hc-strip { cursor: grabbing; }
.hc-track { display: flex; align-items: flex-start; gap: var(--hc-gap); will-change: transform; }
.hc-card { position: relative; flex: 0 0 var(--hc-card-w); width: var(--hc-card-w); height: var(--hc-half); overflow: hidden; background: rgba(255,255,255,.05); -webkit-user-drag: none;
  transition: height .75s cubic-bezier(.25, 1.12, .5, 1); }
.hc-card.is-active { height: var(--hc-full); }
.hc-card img, .hc-card video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; }
.hc-card video { opacity: 0; transition: opacity .4s ease; background: transparent; }
.hc-card video.is-playing { opacity: 1; }
.hc-dim { position: absolute; inset: 0; background: #000; opacity: .18; transition: opacity .6s var(--ease); }
.hc-v0 .hc-dim { opacity: .12; }
.hc-card.is-active .hc-dim { opacity: 0; }
.hc-card:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

.hc-rail { position: absolute; left: var(--hc-pad); bottom: max(14px, 3dvh); width: var(--hc-rail); }
.hc-v0 .hc-rail { bottom: max(14px, 2.2dvh); }
.hc-rail-n { display: flex; justify-content: space-between; margin: 0; font-variant-numeric: tabular-nums; letter-spacing: .1em; color: rgba(255,255,255,.8); }
.hc-bar { position: relative; height: 1px; margin-top: 8px; background: rgba(255,255,255,.25); }
.hc-bar i { position: absolute; top: 0; bottom: 0; width: calc(100% / 8); background: #fff; transition: left .6s cubic-bezier(.25, 1.1, .5, 1); }
@media (max-width: 760px) {
  .hc-brand { display: none; }
  .hc-cell span { letter-spacing: .06em; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-card, .hc-dim, .hc-bar i, .hc-bg { transition: none !important; }
}
