/* Self-hosted fonts (Cinzel, Inter, Space Mono; SIL Open Font Licence). Latin + Latin Extended only. */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/cinzel-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/cinzel-latin.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: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/cinzel-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/cinzel-latin.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: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/inter-latin.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: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-latin.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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter-latin.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: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/space-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/space-mono-latin.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;
}
/* One Bright Spark — shared cinematic styles (used alongside Tailwind) */
:root { --mouse-x: 50%; --mouse-y: 50%; --amber: #f59e0b; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  background-color: #050505;
  color: #f3f3f3;
  font-family: 'Inter', sans-serif;
  overflow-x: clip;
  cursor: crosshair;
}
a, button, summary, label, select, input, textarea { cursor: pointer; }
input, textarea { cursor: text; }

.font-cinema { font-family: 'Cinzel', serif; }
.font-mono-tech { font-family: 'Space Mono', monospace; }

:focus-visible { outline: 1px solid var(--amber); outline-offset: 3px; }

/* Atmosphere */
.studio-spotlight {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(650px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 240, 220, 0.09), rgba(30, 58, 138, 0.04) 40%, transparent 80%);
}
.film-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.viewfinder-corner {
  position: fixed; width: 24px; height: 24px;
  border-color: rgba(255, 255, 255, 0.25); pointer-events: none; z-index: 40;
}
.rec-dot { animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* 3D cards */
.perspective-stage { perspective: 1400px; }
.card-3d { transform-style: preserve-3d; transition: transform 0.15s ease-out, box-shadow 0.3s ease; }
.card-3d:hover { box-shadow: 0 25px 60px -15px rgba(255, 255, 255, 0.12); }
.card-inner-float { transform: translateZ(35px); }
@media (min-width: 768px) { .lift { transform: translateY(-1.5rem); } }

/* Image treatment: mono until hovered */
.mono { filter: grayscale(1) contrast(1.25); transition: filter .7s ease, transform .7s ease; }
.group:hover .mono, .group:focus-visible .mono { filter: grayscale(0) contrast(1.05); transform: scale(1.05); }

/* Navigation */
.nav-link { position: relative; transition: color .2s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: #fff; }
.nav-link[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--amber);
}
.nav-drop { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 14px); left: -20px; min-width: 290px;
  background: rgba(8, 8, 8, 0.97); border: 1px solid rgba(255,255,255,.12);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s; z-index: 60;
}
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu a { display: block; padding: 12px 14px; border-left: 1px solid transparent; transition: background .2s, border-color .2s; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: rgba(255,255,255,.05); border-left-color: var(--amber); }

#mobile-menu { transition: opacity .25s, visibility .25s; }
#mobile-menu:not(.open) { opacity: 0; visibility: hidden; }

/* FAQ */
.faq summary { list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .faq-icon { transition: transform .25s; }
.faq[open] summary .faq-icon { transform: rotate(45deg); }

/* Portfolio masonry */
.pf-grid { columns: 1; column-gap: 1.25rem; }
@media (min-width: 640px) { .pf-grid { columns: 2; } }
@media (min-width: 1024px) { .pf-grid { columns: 3; } }
.pf-item { break-inside: avoid; margin-bottom: 1.25rem; display: block; }
.pf-filter[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }

/* Lightbox */
#lightbox { transition: opacity .25s, visibility .25s; }
#lightbox:not(.open) { opacity: 0; visibility: hidden; }
#lightbox img { max-height: calc(100vh - 160px); }

/* Forms */
.field {
  width: 100%; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.15);
  padding: 14px 16px; color: #f3f3f3; font-size: 15px; transition: border-color .2s, background .2s;
  border-radius: 0; appearance: none;
}
.field:focus { outline: none; border-color: var(--amber); background: rgba(255,255,255,.04); }
.field::placeholder { color: #6b6b6b; }
select.field {
  background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
select.field option { background: #0a0a0a; }

/* Shoot hero: slow push-in on the cover */
.hero-kb { animation: kenburns 18s ease-out both; transform-origin: 50% 35%; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-credits dt { color: #8a8a8a; }

@media (prefers-reduced-motion: reduce) {
  .hero-kb { animation: none; }
  html { scroll-behavior: auto; }
  .rec-dot { animation: none; }
  .card-3d, .mono { transition: none !important; }
  .group:hover .mono { transform: none; }
}

/* Shoot hero crop points (set per shoot in src/data/heroes.json) */
.hero-img { object-position: var(--x-mob, 50%) var(--y-mob, 30%); }
/* Phone only: --lift-mob shifts a hero picture up (and zooms a touch to fill), e.g. to clear a face from the heading */
@media (max-width: 767px) { .hero-img { top: calc(var(--lift-mob, 0%) * -1); height: calc(100% + var(--lift-mob, 0%)); } }
@media (min-width: 768px) {
  .hero-img { object-position: 50% var(--y-desk, 30%); }
  .hero-portrait { -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%); mask-image: linear-gradient(to right, transparent 0%, #000 38%); }
}

/* Film-still bands on production pages: slow settle as they scroll into view */
.film-band .band-img { transform: scale(1.1); transition: transform 2.4s cubic-bezier(.2,.7,.2,1); }
.film-band.in-view .band-img { transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .film-band .band-img { transform: none; transition: none; } }

/* Production call cards (home): photo fades in from the right */
@media (min-width: 768px) {
  .act-media { -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 55%); mask-image: linear-gradient(to right, transparent 0%, #000 55%); }
}

/* ---------- Home showreel hero ---------- */
.reel-slide { position: absolute; inset: 0; z-index: 0; opacity: 0; transform: scale(1.035);
  transition: opacity 1.9s cubic-bezier(.45,0,.25,1), transform 2.6s cubic-bezier(.2,.6,.2,1); }
.reel-slide.is-active { opacity: 1; z-index: 2; transform: none; }
.reel-slide.is-leaving { opacity: 0; z-index: 1; transform: none; }
.reel-media { position: absolute; inset: -3%; transform: translate3d(var(--px, 0), var(--py, 0), 0); will-change: transform; }
.reel-slide img { will-change: transform; backface-visibility: hidden; }
/* One punchy grade for every showreel still, so colours really pop behind the dark overlays */
.reel-slide img.hero-img { filter: brightness(1.06) contrast(1.2) saturate(1.45); }
/* Ken Burns keeps running through the fade-out, so nothing snaps */
.reel-slide.is-active .kb-out, .reel-slide.is-leaving .kb-out { animation: reel-out calc(var(--reel-dur, 6.5s) + 2.2s) cubic-bezier(.25,.1,.25,1) both; }
.reel-slide.is-active .kb-in,  .reel-slide.is-leaving .kb-in  { animation: reel-in  calc(var(--reel-dur, 6.5s) + 2.2s) cubic-bezier(.25,.1,.25,1) both; }
.reel-slide.is-active .kb-pan, .reel-slide.is-leaving .kb-pan { animation: reel-pan calc(var(--reel-dur, 6.5s) + 2.2s) linear both; }
@keyframes reel-out { from { transform: scale(1.16); } to { transform: scale(1.03); } }
@keyframes reel-in  { from { transform: scale(1.03); } to { transform: scale(1.15); } }
@keyframes reel-pan { from { transform: scale(1.14) translate3d(2.5%,0,0); } to { transform: scale(1.14) translate3d(-2.5%,0,0); } }
.home-reel.is-paused .reel-slide img { animation-play-state: paused !important; }
/* Phone only: some frames anchor their slow zoom elsewhere (set per frame in src/data/reel-focus.json) */
@media (max-width: 767px) { .reel-slide img.hero-img { transform-origin: var(--kb-o-mob, 50% 50%); top: calc(var(--lift-mob, 0%) * -1); height: calc(100% + var(--lift-mob, 0%)); } }

/* Vignette + warm light leak on each cut */
.reel-vignette { background: radial-gradient(120% 90% at 60% 45%, transparent 55%, rgba(0,0,0,.55) 100%); }
.reel-leak { opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(60% 80% at 85% 30%, rgba(255,170,80,.55), transparent 60%), radial-gradient(40% 60% at 10% 90%, rgba(255,90,40,.35), transparent 70%); }
.reel-leak.flash { animation: reel-leak 2.2s ease-out; }
@keyframes reel-leak { 0% { opacity: 0; transform: translateX(-4%); } 30% { opacity: .5; } 100% { opacity: 0; transform: translateX(4%); } }

/* Progress */
.reel-fill { width: 100%; transform: scaleX(0); transform-origin: left center; }
.reel-seg.is-done .reel-fill { transform: none; transition: transform .4s ease; }
.reel-seg.is-active .reel-fill { animation: reel-progress var(--reel-dur, 6.5s) linear forwards; }
.home-reel.is-paused .reel-seg.is-active .reel-fill { animation-play-state: paused; }
@keyframes reel-progress { from { transform: scaleX(0); } to { transform: none; } }

/* Caption: lines slide up from behind a mask */
.reel-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border-left: 1px solid rgba(245, 158, 11, .6); background: rgba(0,0,0,.35); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .6s ease .1s; pointer-events: none; }
.reel-cap.is-active { opacity: 1; transition-delay: .5s; pointer-events: auto; }
.cap-mask { display: block; overflow: hidden; }
.cap-line { display: block; transform: translateY(105%); transition: transform .9s cubic-bezier(.2,.75,.2,1); }
.reel-cap.is-active .cap-line { transform: none; }
.reel-cap.is-active .cap-mask:nth-child(1) .cap-line { transition-delay: .55s; }
.reel-cap.is-active .cap-mask:nth-child(2) .cap-line { transition-delay: .65s; }
.reel-cap.is-active .cap-mask:nth-child(3) .cap-line { transition-delay: .75s; }
.reel-cap.is-active .cap-mask:nth-child(4) .cap-line { transition-delay: .85s; }

/* Rolling scene counter */
.reel-count .roll { animation: reel-roll .6s cubic-bezier(.2,.75,.2,1); }
@keyframes reel-roll { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Opening: letterbox bars retract, title lines rise */
.reel-bars::before, .reel-bars::after { content: ''; position: absolute; left: 0; right: 0; height: 50%; background: #000;
  animation: reel-bars 1.6s cubic-bezier(.76,0,.24,1) .15s forwards; }
.reel-bars::before { top: 0; transform-origin: top; }
.reel-bars::after { bottom: 0; transform-origin: bottom; }
@keyframes reel-bars { to { transform: scaleY(0); } }
.reel-line { opacity: 0; transform: translateY(28px); animation: reel-rise 1.1s cubic-bezier(.2,.75,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes reel-rise { to { opacity: 1; transform: none; } }
.reel-content { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  .reel-slide, .reel-cap, .cap-line { transition: none; transform: none; }
  .reel-slide img, .reel-seg.is-active .reel-fill { animation: none !important; }
  .reel-seg.is-active .reel-fill { transform: none; }
  .reel-bars, .reel-leak { display: none; }
  .reel-line { animation: none; opacity: 1; transform: none; }
  .reel-media { transform: none; }
}

/* ---- Analogue film frames (medium-format negative rebate) ---- */
.film {
  position: relative; display: block;
  padding: 2.6% 4.4%;
  background:
    linear-gradient(90deg, #050505 0, #070707 2.3%, #1b1b1b 2.5%, #0f0f0f 2.9%, transparent 2.9%),
    linear-gradient(270deg, #050505 0, #070707 1.3%, #1a1a1a 1.5%, #0f0f0f 1.9%, transparent 1.9%),
    radial-gradient(120% 80% at 70% 30%, #151515 0, #0d0d0d 60%, #0a0a0a 100%);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
  transition: box-shadow .4s ease;
}
.film::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a.film:hover, a.film:focus-visible { box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(245,158,11,.35); }
.film-gate { position: relative; overflow: hidden; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.8), 0 0 6px rgba(255,255,255,.05); }
.film-gate::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 18px rgba(0,0,0,.55), inset 0 0 2px rgba(255,255,255,.15); }
.fm { position: absolute; z-index: 2; pointer-events: none; font-family: 'Space Mono', monospace; line-height: 1;
  color: rgba(235,235,235,.72); font-size: 8px; letter-spacing: .05em; }
.fm-l { left: 2.7%; transform: translateX(-50%); }
.fm-r { right: 2.6%; transform: translateX(50%); writing-mode: vertical-rl; }
.fm-l.n { writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); }
.fm .tri { display: block; font-size: 1.15em; }
@media (max-width: 640px) { .fm { font-size: 6.5px; } }

/* ---- Sticky top bar: compacts and darkens once the page scrolls ---- */
.site-bar { transition: background-color .4s ease, box-shadow .4s ease; }
.site-bar > header { transition: padding .4s ease, border-color .4s ease; }
.site-bar.is-stuck { background: rgba(5,5,5,.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 18px 40px -24px rgba(0,0,0,.9); }
.site-bar.is-stuck > header { padding-top: 1rem; padding-bottom: 1rem; border-bottom-color: transparent; }
@media (min-width: 768px) { .site-bar.is-stuck > header { padding-top: 3.1rem; padding-bottom: 1rem; } }

/* ---- Camera settings readout (top-left HUD) ---- */
.cam-hud { display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; }
.cam-mode { border: 1px solid rgba(255,255,255,.35); color: rgba(255,255,255,.85); padding: 1px 5px; line-height: 1.3; }
.cam-val { color: rgba(255,255,255,.78); transition: color .3s; }
.cam-val.tick { color: #fbbf24; }
.cam-lbl { color: rgb(115,115,115); margin-right: 2px; }
.cam-meter { position: relative; color: rgb(100,100,100); letter-spacing: .02em; padding-bottom: 5px; }
.cam-meter b { font-weight: 400; color: rgba(255,255,255,.7); }
.cam-meter i { position: absolute; left: 50%; bottom: -1px; width: 1px; height: 5px; background: #fbbf24;
  transform: translateX(var(--ev, 0px)); transition: transform .25s ease-out; }
.cam-loc { color: rgb(115,115,115); }
@media (max-width: 1100px) { .cam-meter, .cam-loc { display: none; } }

/* ---- Scrollable film reel (production pages) ---- */
.film-reel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 6px 2px 10px; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.film-reel.at-end { -webkit-mask-image: none; mask-image: none; }
.film-reel::-webkit-scrollbar { display: none; }
.film-reel > * { flex: 0 0 calc((100% - 16px) / 2.3); scroll-snap-align: start; }
@media (min-width: 768px) { .film-reel > * { flex-basis: calc((100% - 3 * 16px) / 3.5); } }
@media (min-width: 1024px) { .film-reel > * { flex-basis: calc((100% - 5 * 16px) / 6.3); } }
.film-reel.dragging { cursor: grabbing; scroll-snap-type: none; }
.film-reel.dragging a { pointer-events: none; }
.film-reel img { -webkit-user-drag: none; user-select: none; }
.reel-ui { display: flex; align-items: center; gap: 16px; margin-top: 18px; font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: .15em; color: rgb(150,150,150); }
.reel-ui b { font-weight: 400; color: #fbbf24; }
.reel-ui-track { flex: 1; height: 1px; background: rgba(255,255,255,.15); position: relative; }
.reel-ui-track span { position: absolute; left: 0; top: 0; height: 1px; background: #fbbf24; transition: width .2s ease-out; }
.reel-ui button { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.3); color: #fff; transition: background .2s, color .2s, opacity .2s; }
.reel-ui button:hover:not(:disabled) { background: #fff; color: #000; }
.reel-ui button:disabled { opacity: .3; cursor: default; }
.film-reel > .film { padding: 6px 10px; }
/* header logo shrinks with the sticky bar */
.site-logo img { transition: height .4s ease; }
.site-bar.is-stuck .site-logo img { height: 2rem; }

/* ---- Shooting schedule icons: still until hovered, then the icon acts out its step ---- */
.sched-icon svg * { transform-box: fill-box; }
.si-clap { transform-box: view-box !important; transform-origin: 3px 10px; }
.si-lens, .si-iris, .si-star1, .si-star2 { transform-origin: center; }
.si-flash { opacity: 0; }
.si-tick { stroke-dasharray: 1; stroke-dashoffset: 0; }
.sched-step:hover .si-clap { animation: si-clap 2.4s infinite; }
.sched-step:hover .si-lens { animation: si-lens 2.4s infinite; }
.sched-step:hover .si-iris { animation: si-iris 2.4s infinite; }
.sched-step:hover .si-flash { animation: si-flash 2.4s infinite; }
.sched-step:hover .si-pick { animation: si-pick 2.4s infinite cubic-bezier(.65,0,.35,1); }
.sched-step:hover .si-tick { animation: si-tick 2.4s infinite; }
.sched-step:hover .si-star1 { animation: si-star1 2.4s infinite; }
.sched-step:hover .si-star2 { animation: si-star2 2.4s infinite; }
.sched-step:hover .si-star3 { animation: si-star3 2.4s infinite; }
@keyframes si-clap { 0%, 100% { transform: rotate(0); } 18%, 32% { transform: rotate(-24deg); animation-timing-function: cubic-bezier(.7,0,1,.6); }
  43% { transform: rotate(0); } 50% { transform: rotate(-5deg); } 58% { transform: rotate(0); } }
@keyframes si-lens { 0%, 29%, 100% { transform: scale(1); } 36% { transform: scale(.82); } 54% { transform: scale(1); } }
@keyframes si-iris { 0%, 29%, 100% { transform: scale(1); } 36% { transform: scale(.25); } 54% { transform: scale(1); } }
@keyframes si-flash { 0%, 32%, 100% { opacity: 0; } 36% { opacity: 1; } 61% { opacity: 0; } }
@keyframes si-pick { 0%, 100% { transform: translate(0, 0); } 14% { transform: translate(-6px, -6px); } 32% { transform: translate(6px, -6px); }
  50% { transform: translate(-6px, 6px); } 68% { transform: translate(0, 0); } }
@keyframes si-tick { 0% { stroke-dashoffset: 0; } 7%, 68% { stroke-dashoffset: 1; } 86%, 100% { stroke-dashoffset: 0; } }
@keyframes si-star1 { 0%, 100% { transform: scale(1) rotate(0); } 29% { transform: scale(1.22) rotate(18deg); } 61% { transform: scale(1) rotate(0); } }
@keyframes si-star2 { 0%, 18%, 100% { transform: scale(1); } 40% { transform: scale(1.6); } 65% { transform: scale(1); } }
@keyframes si-star3 { 0%, 32%, 100% { opacity: 1; } 43% { opacity: .1; } 54% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sched-icon svg * { animation: none !important; } .si-flash { opacity: 0; } }
/* hovered schedule step: lift the box with a soft amber edge and glow */
.sched-step { transition: background-color .35s ease, box-shadow .35s ease; }
.sched-step:hover { background-color: #101010 !important;
  box-shadow: inset 0 0 0 1px rgba(245,158,11,.35), inset 0 0 48px rgba(245,158,11,.07); }
.sched-step h3 { transition: color .35s ease; }
.sched-step:hover h3 { color: #fde68a; }

/* ---- Previous / next shoot cards: glow, with a pulse that travels the way the link goes ---- */
.shoot-nav { position: relative; overflow: hidden; }
.shoot-nav::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,.16) 45%, rgba(253,230,138,.22) 50%, rgba(245,158,11,.16) 55%, transparent); }
.shoot-nav:hover, .shoot-nav:focus-visible { border-color: rgba(245,158,11,.55); }
/* previous: right -> left */
.shoot-nav:hover::before, .shoot-nav:focus-visible::before { opacity: 1; animation: nav-sweep-left .9s ease-in-out infinite; }
.shoot-nav:hover, .shoot-nav:focus-visible { animation: nav-glow-left .9s ease-in-out infinite; }
/* next: left -> right */
.shoot-nav.md\:flex-row-reverse:hover::before, .shoot-nav.md\:flex-row-reverse:focus-visible::before { animation-name: nav-sweep-right; }
.shoot-nav.md\:flex-row-reverse:hover, .shoot-nav.md\:flex-row-reverse:focus-visible { animation-name: nav-glow-right; }
@keyframes nav-sweep-left  { from { transform: translateX(240%); } to { transform: translateX(-110%); } }
@keyframes nav-sweep-right { from { transform: translateX(-110%); } to { transform: translateX(240%); } }
@keyframes nav-glow-left {
  0%   { box-shadow: 0 0 0 1px rgba(245,158,11,.3), 14px 0 26px -6px rgba(245,158,11,.28); }
  50%  { box-shadow: 0 0 0 1px rgba(245,158,11,.5), 0 0 30px rgba(245,158,11,.22); }
  100% { box-shadow: 0 0 0 1px rgba(245,158,11,.3), -14px 0 26px -6px rgba(245,158,11,.28); } }
@keyframes nav-glow-right {
  0%   { box-shadow: 0 0 0 1px rgba(245,158,11,.3), -14px 0 26px -6px rgba(245,158,11,.28); }
  50%  { box-shadow: 0 0 0 1px rgba(245,158,11,.5), 0 0 30px rgba(245,158,11,.22); }
  100% { box-shadow: 0 0 0 1px rgba(245,158,11,.3), 14px 0 26px -6px rgba(245,158,11,.28); } }
.shoot-nav-thumb img { transition: filter .6s ease, transform .6s ease; }
.shoot-nav:hover .shoot-nav-thumb img { filter: none; transform: scale(1.08); }
.shoot-nav-label { transition: transform .4s ease, color .4s ease; }
.shoot-nav:hover .shoot-nav-label { color: #fbbf24; transform: translateX(-4px); }
.shoot-nav.md\:flex-row-reverse:hover .shoot-nav-label { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .shoot-nav:hover, .shoot-nav:hover::before { animation: none !important; } .shoot-nav:hover::before { opacity: 0; } .shoot-nav:hover { box-shadow: 0 0 0 1px rgba(245,158,11,.5), 0 0 28px rgba(245,158,11,.2); } }

/* ---- "Like this look?" call to action: three film frames from the shoot, fanned out ---- */
.look-fan { position: relative; aspect-ratio: 1 / .84; }
.look-fan > a { position: absolute; top: 5%; width: 46%; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.look-fan > a.film { padding: 6px 10px; }
.look-fan img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; }
.look-fan > a:nth-child(1) { left: 2%;  transform: rotate(-9deg) translateY(4%); z-index: 1; }
.look-fan > a:nth-child(2) { left: 27%; transform: rotate(0deg); z-index: 3; }
.look-fan > a:nth-child(3) { left: 52%; transform: rotate(8deg) translateY(5%); z-index: 2; }
.look-fan:hover > a:nth-child(1) { transform: rotate(-14deg) translate(-12%, 2%); }
.look-fan:hover > a:nth-child(2) { transform: translateY(-3%) scale(1.03); }
.look-fan:hover > a:nth-child(3) { transform: rotate(13deg) translate(12%, 3%); }
/* fewer photos in the shoot */
.look-fan.n2 > a:nth-child(1) { left: 10%; } .look-fan.n2 > a:nth-child(2) { left: 44%; transform: rotate(7deg) translateY(4%); }
.look-fan.n2:hover > a:nth-child(2) { transform: rotate(12deg) translate(10%, 3%); }
.look-fan.n1 > a:nth-child(1) { left: 25%; width: 50%; transform: rotate(-3deg); }
.look-fan.n1:hover > a:nth-child(1) { transform: rotate(0) scale(1.03); }
.look-cta { background: radial-gradient(80% 120% at 80% 50%, rgba(245,158,11,.07), transparent 60%); }
@media (prefers-reduced-motion: reduce) { .look-fan > a { transition: none; } }

/* ---- Cookie consent bar ---- */
.consent { position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto;
  display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: rgba(8,8,8,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 20px 60px rgba(0,0,0,.7); padding: 16px 18px;
  font-size: 13px; line-height: 1.5; color: rgb(190,190,190); font-weight: 300;
  opacity: 0; transform: translateY(20px); transition: opacity .4s ease, transform .4s ease; }
.consent.in { opacity: 1; transform: none; }
.consent p { flex: 1 1 320px; margin: 0; }
.consent a { color: #fff; text-decoration: underline; text-decoration-color: rgba(245,158,11,.6); text-underline-offset: 3px; }
.consent-tag { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: rgba(251,191,36,.9); margin-right: 6px; }
.consent-btns { display: flex; gap: 10px; }
.consent button { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.3); color: #fff; transition: background .2s, color .2s; }
.consent button:hover { background: #fff; color: #000; }
.consent button.yes { background: #fff; color: #000; border-color: #fff; }
.consent button.yes:hover { background: #fbbf24; border-color: #fbbf24; }

/* ---- Image protection: no dragging, long-press saving or selecting photos ---- */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

/* ---- Genre lookbook (production pages) ---- */
.lookbook { background: linear-gradient(180deg, #0b0b0b, #050505); border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.lookbook-reel .mono { filter: none !important; }
.lookbook-reel .font-cinema.text-sm { font-size: 1.05rem; }
@media (min-width: 768px) { .lookbook-reel > * { flex-basis: calc((100% - 2 * 16px) / 2.6); } }
@media (min-width: 1024px) { .lookbook-reel > * { flex-basis: calc((100% - 3 * 16px) / 4.2); } }

/* ---- Homepage lookbook doors ---- */
.look-door .film-gate { outline: 1px solid transparent; transition: outline-color .4s ease, box-shadow .4s ease; }
.look-door:hover .film-gate { outline-color: rgba(251,191,36,.6); box-shadow: 0 0 40px -8px rgba(251,191,36,.35); }
.look-door-cta { transition: background-color .3s, color .3s, border-color .3s; }
/* Three narrow columns on landscape phones and small tablets: scale the titles so they fit */
@media (min-width: 768px) and (max-width: 1199px) { .look-door h3 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); } }
.look-door:hover .look-door-cta { background: #fbbf24; color: #000; border-color: #fbbf24; }
.look-door-arrow { display: inline-block; transition: transform .3s ease; }
.look-door:hover .look-door-arrow { transform: translateX(4px); }

/* ---- Showreel genre line: the current slide's genre in white, the rest dimmed ---- */
.reel-genres { color: rgba(251,191,36,.45) !important; }
.reel-genres i { font-style: normal; opacity: .6; }
.reel-genres [data-g] { transition: color .6s ease, text-shadow .6s ease; }
.reel-genres [data-g].is-on { color: #fff; text-shadow: 0 0 18px rgba(255,255,255,.35); }

/* ---- Director portrait: whole photo, toned down, edges melt into the page ---- */
.director-photo { filter: brightness(.72) contrast(1.05);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 55%, transparent 100%); }

/* ---- About: What I Shoot act tiles ---- */
.act-tile-img { filter: grayscale(1) contrast(1.15) brightness(.55); transform: scale(1.02); transition: filter .8s ease, transform 1.6s cubic-bezier(.2,.7,.2,1); }
.act-tile:hover .act-tile-img { filter: grayscale(0) contrast(1.05) brightness(.8); transform: scale(1.08); }
.act-tile-num { color: rgba(255,255,255,.06); transition: color .6s ease, transform .8s ease; }
.act-tile:hover .act-tile-num { color: rgba(251,191,36,.16); transform: translateY(6px); }
.act-tile-line { width: 0; transition: width .7s cubic-bezier(.2,.7,.2,1); }
.act-tile:hover .act-tile-line { width: 100%; }
@media (hover: none) { .act-tile-img { filter: grayscale(.3) contrast(1.05) brightness(.6); } }
@media (prefers-reduced-motion: reduce) { .act-tile-img, .act-tile-num, .act-tile-line { transition: none; } }

/* ---- Fantasy craft section background ---- */
.craft-bg-img { opacity:.5; filter: brightness(.8) contrast(1.05);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%), linear-gradient(to bottom, #000 55%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0%, #000 45%), linear-gradient(to bottom, #000 55%, transparent 100%); mask-composite: intersect; }


/* CTA image that sits on the right and melts into the black on its left (desktop only) */
@media (min-width: 768px) {
  .cta-blend { -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 22%, #000 48%);
                       mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 22%, #000 48%); }
}
@media (max-width: 767px) {
  .cta-blend { -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
                       mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%); }
}

/* Home hero title: typewriter + anamorphic lens flare (driven by site.js; .tw-on is set in <head> unless reduced motion) */
.tw-on [data-tw] { visibility: hidden; animation: tw-fail 0s 4s forwards; }
@keyframes tw-fail { to { visibility: visible; } }
.tw-ready [data-tw] { visibility: visible; animation: none; }
.tw-ch { opacity: 0; filter: blur(5px); transition: opacity .16s ease, filter .3s ease; }
.tw-ch.on { opacity: 1; filter: none; animation: tw-ink .5s ease-out; }
@keyframes tw-ink { 0% { text-shadow: 0 0 14px rgba(251,191,36,.95), 0 0 2px #fff; } 100% { text-shadow: 0 0 0 rgba(251,191,36,0); } }
.tw-ch.glint { animation: tw-glint .55s ease-out; }
@keyframes tw-glint { 35% { text-shadow: 0 0 22px rgba(255,214,150,.95), 0 0 4px #fff; filter: brightness(1.9); } }
.tw-caret { display: inline-block; width: .07em; height: .82em; margin-left: .06em; vertical-align: -.04em; background: #fbbf24; box-shadow: 0 0 12px rgba(251,191,36,.8); animation: tw-blink .9s steps(1) infinite; }
.tw-caret.typing { animation: none; }
.tw-caret.out { animation: none; opacity: 0; transition: opacity .5s; }
@keyframes tw-blink { 50% { opacity: 0; } }
.tw-flare, .tw-ghost { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; mix-blend-mode: screen; opacity: 0; }
.tw-flare { width: 0; height: 0; }
.tw-flare > * { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); border-radius: 50%; }
.tw-flare .core { width: 190px; height: 190px; background: radial-gradient(circle, #fff 0, rgba(255,244,220,.95) 6%, rgba(255,196,110,.55) 18%, rgba(255,140,40,.18) 40%, transparent 68%); }
.tw-flare .streak { width: 1500px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(90,150,255,.15) 18%, rgba(140,190,255,.7) 40%, #fff 50%, rgba(255,200,120,.75) 60%, rgba(255,150,60,.15) 82%, transparent); box-shadow: 0 0 10px rgba(160,200,255,.6); }
.tw-flare .soft { width: 1000px; height: 44px; background: radial-gradient(50% 50% at 50% 50%, rgba(150,190,255,.35), transparent 70%); filter: blur(4px); }
.tw-flare .ring { width: 300px; height: 300px; background: radial-gradient(circle, transparent 58%, rgba(255,180,90,.10) 63%, transparent 70%); }
.tw-ghost { border-radius: 50%; }
.tw-ghost.g1 { width: 70px; height: 70px; background: radial-gradient(circle, rgba(120,180,255,.28), rgba(120,180,255,.06) 60%, transparent 72%); }
.tw-ghost.g2 { width: 34px; height: 34px; background: radial-gradient(circle, rgba(255,190,110,.4), transparent 70%); }
.tw-ghost.g3 { width: 120px; height: 120px; background: radial-gradient(circle, transparent 50%, rgba(160,120,255,.14) 60%, transparent 72%); }
@media (prefers-reduced-motion: reduce) { .tw-flare, .tw-ghost, .tw-caret { display: none; } }

/* References: hide the default disclosure triangle */
.refs-more > summary::-webkit-details-marker { display: none; }

/* Call sheet builder (home) */
.cs-step { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: #fbbf24; margin-bottom: 12px; display: block; }
.cs-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cs-chip { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 12px 18px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.02); color: #e5e5e5; transition: border-color .2s, background .2s, color .2s, box-shadow .2s; }
.cs-chip:hover { border-color: rgba(251,191,36,.7); }
.cs-chip[aria-pressed="true"] { background: #fbbf24; border-color: #fbbf24; color: #111; box-shadow: 0 0 24px rgba(251,191,36,.25); }
.cs-chip:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }
.cs-card { position: relative; border: 1px solid rgba(251,191,36,.35); background: linear-gradient(160deg, rgba(251,191,36,.06), rgba(255,255,255,.015) 45%); padding: 28px; }
.cs-card::before { content: ''; position: absolute; inset: 6px; border: 1px dashed rgba(255,255,255,.08); pointer-events: none; }
.cs-lines > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.cs-lines dt { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #8a8a8a; padding-top: 3px; }
.cs-lines dd { margin: 0; font-size: 14px; color: #f5f5f5; overflow-wrap: anywhere; }
.cs-lines dd.is-set { animation: cs-stamp .45s ease-out; }
@keyframes cs-stamp { 0% { color: #fbbf24; text-shadow: 0 0 12px rgba(251,191,36,.8); } 100% { color: #f5f5f5; text-shadow: none; } }
#cs-send.is-off { opacity: .45; }
.cs-shot { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: #0a0a0a; border: 1px solid rgba(255,255,255,.08); animation: cs-in .5s ease-out both; }
.cs-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .6s ease; filter: saturate(1.05); }
.cs-shot:hover img { transform: scale(1.04); filter: saturate(1.25); }
.cs-shot span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.85)); font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
@keyframes cs-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cs-shot, .cs-lines dd.is-set { animation: none; } }

/* reCAPTCHA v3: the floating badge is hidden; the form shows Google's required notice instead */
.grecaptcha-badge { visibility: hidden !important; }

/* ---- PurplePort reference cards (home + director page) ---- */
.ref-card { position: relative; display: flex; flex-direction: column; padding: 22px 22px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); border: 1px solid rgba(255,255,255,.09); transition: border-color .35s; }
.ref-card:hover { border-color: rgba(251,191,36,.35); }
.ref-mark { display: block; height: 22px; font-family: 'Cinzel', serif; font-size: 54px; line-height: .6; color: #fbbf24; }
.ref-card blockquote { flex: 1; margin: 10px 0 0; color: #e5e5e5; font-size: 15px; line-height: 1.7; font-weight: 300; }
.ref-big blockquote { font-size: 16px; }
.ref-card figcaption { display: flex; gap: 14px; align-items: center; min-width: 0; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.09); }
.ref-ph { flex: none; width: 56px; height: 56px; padding: 2px; border: 1px solid rgba(251,191,36,.55); background: #000; }
.ref-big .ref-ph { width: 64px; height: 64px; }
.ref-ph img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(.35) contrast(1.05); transition: filter .4s; }
.ref-card:hover .ref-ph img, .ref-ph.ref-logo img { filter: none; }
.ref-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ref-who b { font-family: 'Cinzel', serif; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #f5f5f5; overflow-wrap: anywhere; }
.ref-role { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #8f8f8f; }
.ref-role i { font-style: normal; color: #fbbf24; }
.ref-shot { margin-top: 2px; font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: #fbbf24; text-decoration: none; }
.ref-shot:hover, .ref-shot:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ref-card, .ref-ph img { transition: none; } }

/* ---------- Pricing: packages ---------- */
.pkg { position: relative; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.02); }
.pkg-pick { border-color: rgba(245,158,11,.55); box-shadow: 0 0 0 1px rgba(245,158,11,.15), 0 20px 60px -30px rgba(245,158,11,.35); }
.pkg-flag { position: absolute; top: 14px; right: 14px; z-index: 2; background: #f59e0b; color: #000; font-family: "Space Mono", monospace; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; padding: 5px 9px; }
.pkg-img { aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.pkg-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.85); transition: transform .8s ease, filter .8s ease; }
.pkg:hover .pkg-img img { transform: scale(1.04); filter: brightness(1); }
.pkg-body { display: flex; flex-direction: column; flex: 1; padding: 26px 24px 24px; }
.pkg-tag { font-family: "Space Mono", monospace; font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: rgba(251,191,36,.85); }
.pkg-name { font-family: "Cinzel", serif; font-size: 1.6rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 10px; }
.pkg-price { font-family: "Cinzel", serif; font-size: 2.6rem; font-weight: 700; margin-top: 6px; line-height: 1; }
.pkg-from { font-family: "Space Mono", monospace; font-size: 11px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: #a3a3a3; vertical-align: middle; margin-right: 4px; }
.pkg-lead { margin-top: 14px; color: #d4d4d4; font-weight: 300; line-height: 1.6; }
.pkg-list { margin: 18px 0 24px; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.1); }
.pkg-list li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid rgba(255,255,255,.07); color: #a3a3a3; font-size: .925rem; font-weight: 300; }
.pkg-list li::before { content: "+"; position: absolute; left: 2px; top: 9px; color: #f59e0b; font-family: "Space Mono", monospace; }
.pkg-cta { margin-top: auto; align-self: flex-start; font-family: "Space Mono", monospace; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.4); padding: 12px 20px; transition: background .2s, color .2s; }
.pkg-cta:hover, .pkg-pick .pkg-cta { background: #fff; color: #000; }
.pkg-pick .pkg-cta:hover { background: #fbbf24; }

/* ---------- Pricing: extras ---------- */
.extra { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 20px; }
.extra dt { color: #e5e5e5; font-weight: 300; }
.extra dt span { display: block; color: #737373; font-size: .8rem; margin-top: 2px; }
.extra dd { font-family: "Cinzel", serif; font-size: 1.15rem; white-space: nowrap; margin: 0; }

/* ---------- Raw vs final slider ---------- */
.ba { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #000; user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-demo .ba-before { filter: saturate(.3) contrast(.7) brightness(1.15); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #f59e0b; box-shadow: 0 0 12px rgba(0,0,0,.6); pointer-events: none; }
.ba-handle::after { content: "◀ ▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: #000; border: 1px solid #f59e0b; color: #f59e0b; font-size: 10px; letter-spacing: 2px; padding: 8px 9px; white-space: nowrap; border-radius: 999px; }
.ba-label { position: absolute; top: 14px; font-family: "Space Mono", monospace; font-size: 10px; letter-spacing: .25em; text-transform: uppercase; background: rgba(0,0,0,.6); padding: 5px 9px; pointer-events: none; }
.ba-label-l { left: 14px; } .ba-label-r { right: 14px; color: #fbbf24; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-range:focus-visible + .ba-handle, .ba:focus-within .ba-handle::after { outline: 2px solid #fff; }

/* ---------- Inside the edit ---------- */
.layer-shot { aspect-ratio: 4 / 3; border: 1px dashed rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-family: "Space Mono", monospace; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #737373; background: rgba(255,255,255,.02); }
.layer-shot img { width: 100%; height: 100%; object-fit: cover; }
.ba-tall { aspect-ratio: 818 / 1144; width: min(100%, calc(82vh * 818 / 1144)); margin-inline: auto; }

/* ---------- Inside the edit: layer build ---------- */
.layer-build { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: start; }
.lb-frame { position: relative; aspect-ratio: 818 / 1144; width: min(100%, calc(86vh * 818 / 1144)); margin-inline: auto; overflow: hidden; background: #000; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 90px -40px rgba(245,158,11,.35); }
.lb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.lb-img.is-on { opacity: 1; z-index: 2; }
.lb-img.is-prev { opacity: 1; z-index: 1; }
.lb-img.is-wipe { animation: lbWipe .95s cubic-bezier(.65,0,.35,1) both; }
@keyframes lbWipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.lb-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3; background: #f59e0b; box-shadow: 0 0 18px 3px rgba(245,158,11,.7); opacity: 0; pointer-events: none; }
.lb-scan.is-run { animation: lbScan .95s cubic-bezier(.65,0,.35,1) both; }
@keyframes lbScan { 0% { top: 0; opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.lb-hud { position: absolute; z-index: 4; font-family: "Space Mono", monospace; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; background: rgba(0,0,0,.6); padding: 5px 9px; color: #d4d4d4; }
.lb-hud-tl { top: 12px; left: 12px; } .lb-hud-br { bottom: 12px; right: 12px; color: #fbbf24; }

.lb-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
.lb-panel { border: 1px solid rgba(255,255,255,.12); background: #0d0d0d; }
.lb-panel-head { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.1); font-family: "Space Mono", monospace; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #a3a3a3; }
.lb-panel-head span:first-child { color: #fff; }
.lb-list { list-style: none; margin: 0; padding: 0; }
.lb-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 14px; border-bottom: 1px solid rgba(255,255,255,.06); text-align: left; color: #737373; transition: background .3s, color .3s; cursor: pointer; }
.lb-row:hover { background: rgba(255,255,255,.04); color: #d4d4d4; }
.lb-eye { width: 16px; height: 10px; flex: none; border: 1px solid #404040; border-radius: 50% / 60%; position: relative; transition: border-color .3s; }
.lb-eye::after { content: ""; position: absolute; inset: 2px 5px; border-radius: 50%; background: transparent; transition: background .3s; }
.lb-thumb { width: 30px; height: 42px; object-fit: cover; flex: none; opacity: .35; transition: opacity .3s; border: 1px solid rgba(255,255,255,.1); }
.lb-name { flex: 1; font-size: .9rem; font-weight: 300; }
.lb-num { font-family: "Space Mono", monospace; font-size: 10px; letter-spacing: .15em; }
.lb-row.is-vis { color: #e5e5e5; }
.lb-row.is-vis .lb-eye { border-color: #f59e0b; } .lb-row.is-vis .lb-eye::after { background: #f59e0b; }
.lb-row.is-vis .lb-thumb { opacity: 1; }
.lb-row.is-cur { background: rgba(245,158,11,.12); color: #fff; box-shadow: inset 2px 0 0 #f59e0b; }
.lb-row.is-cur .lb-num { color: #fbbf24; }
.lb-caption { border-left: 2px solid rgba(245,158,11,.6); padding-left: 16px; min-height: 76px; }
.lb-step { font-family: "Cinzel", serif; font-size: 1.25rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.lb-text { margin-top: 6px; color: #a3a3a3; font-weight: 300; line-height: 1.6; }
.lb-controls { display: flex; align-items: center; gap: 8px; }
.lb-btn { font-family: "Space Mono", monospace; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.3); padding: 10px 14px; transition: background .2s, color .2s; }
.lb-btn:hover { background: #fff; color: #000; }
.lb-play { background: #fff; color: #000; min-width: 104px; } .lb-play:hover { background: #fbbf24; }
.lb-progress { flex: 1; height: 2px; background: rgba(255,255,255,.12); margin-left: 8px; }
.lb-progress span { display: block; height: 100%; width: 0; background: #f59e0b; transition: width .6s ease; }

@media (max-width: 1023px) {
  .layer-build { grid-template-columns: 1fr; gap: 20px; }
  .lb-frame { width: min(100%, calc(78vh * 818 / 1144)); }
  .lb-side { position: static; }
  .lb-row { padding: 6px 12px; }
  .lb-thumb { width: 24px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) { .lb-img.is-wipe, .lb-scan.is-run { animation: none; } }

/* ---- Director portrait: hover morph into alter ego ---- */
.morph { position: relative; display: inline-block; cursor: pointer; outline: none; }
.morph.director-photo { filter: none; }
.morph-base { filter: brightness(.72) contrast(1.05); transition: filter .6s ease; }
.morph-alt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; clip-path: inset(100% 0 0 0); transition: opacity .35s ease, clip-path .9s cubic-bezier(.65,0,.35,1); pointer-events: none; }
.morph-glitch { mix-blend-mode: screen; transition: none; }
.morph-cap { position: absolute; left: 50%; bottom: 14%; transform: translate(-50%, 12px); white-space: nowrap; font-family: 'Cinzel', serif; font-size: clamp(1.1rem, 2.4vw, 1.75rem); letter-spacing: .14em; text-transform: uppercase; color: #fbbf24; text-shadow: 0 2px 24px rgba(0,0,0,.9); opacity: 0; transition: opacity .5s ease .45s, transform .7s ease .45s; pointer-events: none; }
.morph.is-on .morph-base { filter: brightness(.4) contrast(1.2); }
.morph.is-on .morph-alt { opacity: 1; clip-path: inset(0 0 0 0); }
.morph.is-on .morph-glitch { animation: morphGlitch .7s steps(1) both; }
.morph.is-on .morph-g2 { animation-delay: .12s; }
.morph.is-on .morph-cap { opacity: 1; transform: translate(-50%, 0); }
@keyframes morphGlitch {
  0%   { opacity: .9; clip-path: inset(18% 0 70% 0); transform: translateX(-14px); }
  15%  { opacity: .9; clip-path: inset(52% 0 34% 0); transform: translateX(12px); }
  30%  { opacity: .8; clip-path: inset(70% 0 12% 0); transform: translateX(-8px); }
  45%  { opacity: .9; clip-path: inset(8% 0 82% 0); transform: translateX(16px); }
  60%  { opacity: .7; clip-path: inset(38% 0 48% 0); transform: translateX(-10px); }
  80%  { opacity: .6; clip-path: inset(62% 0 26% 0); transform: translateX(6px); }
  100% { opacity: 0; clip-path: inset(0 0 100% 0); transform: none; }
}
.morph-g1 { filter: hue-rotate(-60deg) saturate(3); } .morph-g2 { filter: hue-rotate(120deg) saturate(3); }
@media (prefers-reduced-motion: reduce) {
  .morph-alt { clip-path: none; transition: opacity .4s ease; }
  .morph.is-on .morph-glitch { animation: none; }
  .morph-cap { transition: opacity .4s ease; }
}

/* ---- Joker takeover: alter-ego portrait + site-wide glitch ---- */
.morph-alt { transform-origin: 46% -4.6%; transform: scale(.947); }
.morph-g3 { filter: saturate(0) brightness(1.6); } .morph-g4 { filter: hue-rotate(260deg) saturate(4); }
.morph.is-on .morph-g3 { animation: morphGlitch .7s steps(1) .06s both, morphTwitch 3.1s steps(1) 1.2s infinite; }
.morph.is-on .morph-g4 { animation: morphGlitch .7s steps(1) .2s both, morphTwitch 4.3s steps(1) 2s infinite; }
@keyframes morphTwitch {
  0%, 88%, 100% { opacity: 0; clip-path: inset(0 0 100% 0); transform: scale(.947); }
  90% { opacity: .9; clip-path: inset(30% 0 58% 0); transform: scale(.947) translateX(-18px); }
  93% { opacity: .8; clip-path: inset(64% 0 22% 0); transform: scale(.947) translateX(14px); }
  96% { opacity: .9; clip-path: inset(12% 0 80% 0); transform: scale(.947) translateX(-8px); }
}
@keyframes morphGlitch {
  0%   { opacity: .9; clip-path: inset(18% 0 70% 0); transform: scale(.947) translateX(-14px); }
  15%  { opacity: .9; clip-path: inset(52% 0 34% 0); transform: scale(.947) translateX(12px); }
  30%  { opacity: .8; clip-path: inset(70% 0 12% 0); transform: scale(.947) translateX(-8px); }
  45%  { opacity: .9; clip-path: inset(8% 0 82% 0); transform: scale(.947) translateX(16px); }
  60%  { opacity: .7; clip-path: inset(38% 0 48% 0); transform: scale(.947) translateX(-10px); }
  80%  { opacity: .6; clip-path: inset(62% 0 26% 0); transform: scale(.947) translateX(6px); }
  100% { opacity: 0; clip-path: inset(0 0 100% 0); transform: scale(.947); }
}
.morph-cap { color: #b91c1c; text-shadow: 2px 0 rgba(34,197,94,.7), -2px 0 rgba(168,85,247,.7), 0 2px 24px rgba(0,0,0,.9); }

/* Site-wide takeover layer (added by site.js) */
.jk-layer { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(34,197,94,.10) 75%, rgba(88,28,135,.35) 100%); mix-blend-mode: normal; }
.jk-layer::before, .jk-layer::after { content: ""; position: absolute; left: 0; right: 0; height: 10vh; background: rgba(34,197,94,.10); mix-blend-mode: screen; opacity: 0; }
.jk-layer::after { background: rgba(185,28,28,.14); height: 4vh; }
body.joker-on .jk-layer { opacity: 1; }
body.joker-on .jk-layer::before { animation: jkBand 2.3s steps(1) infinite; }
body.joker-on .jk-layer::after { animation: jkBand 1.7s steps(1) .4s infinite reverse; }
@keyframes jkBand { 0% { top: 12%; opacity: 1; } 10% { top: 64%; } 20% { opacity: 0; } 55% { top: 33%; opacity: 1; } 62% { top: 81%; } 70% { opacity: 0; } 100% { opacity: 0; } }
body.joker-hit main, body.joker-hit header { animation: jkShake .55s steps(2) both; }
@keyframes jkShake {
  0% { transform: translate(0); filter: none; }
  20% { transform: translate(-6px, 2px); filter: hue-rotate(90deg) saturate(2); }
  40% { transform: translate(5px, -3px); filter: invert(.08) hue-rotate(-60deg); }
  60% { transform: translate(-3px, 1px); filter: hue-rotate(200deg) saturate(1.6); }
  80% { transform: translate(2px, 0); filter: none; }
  100% { transform: translate(0); filter: none; }
}
body.joker-on .jk-glitch { position: relative; color: #e5e5e5; }
body.joker-on .jk-glitch::before, body.joker-on .jk-glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; }
body.joker-on .jk-glitch::before { color: #22c55e; mix-blend-mode: screen; animation: jkText 2.6s steps(1) infinite; }
body.joker-on .jk-glitch::after { color: #b91c1c; mix-blend-mode: screen; animation: jkText 1.9s steps(1) .3s infinite reverse; }
@keyframes jkText {
  0%, 100% { transform: translate(0); clip-path: inset(0 0 0 0); opacity: 0; }
  8% { opacity: .9; transform: translate(-4px, 0); clip-path: inset(10% 0 55% 0); }
  14% { transform: translate(5px, 1px); clip-path: inset(60% 0 8% 0); }
  20% { opacity: 0; }
  52% { opacity: .9; transform: translate(3px, -1px); clip-path: inset(30% 0 40% 0); }
  58% { opacity: 0; }
}
body.joker-on [data-joker-text] { color: #22c55e; text-shadow: 1px 0 #b91c1c; }
body.joker-on .text-amber-500\/80, body.joker-on .border-amber-500\/60 { color: #22c55e; border-color: #b91c1c; transition: color .3s, border-color .3s; }
@media (prefers-reduced-motion: reduce) {
  body.joker-hit main, body.joker-hit header { animation: none; }
  body.joker-on .jk-layer::before, body.joker-on .jk-layer::after, body.joker-on .jk-glitch::before, body.joker-on .jk-glitch::after,
  .morph.is-on .morph-g3, .morph.is-on .morph-g4 { animation: none; }
}

/* Glitch back out when the alter ego leaves */
.morph.is-leaving .morph-glitch { animation: morphGlitch .75s steps(1) both; }
.morph.is-leaving .morph-g2 { animation-delay: .1s; }
.morph.is-leaving .morph-g3 { animation-delay: .04s; }
.morph.is-leaving .morph-g4 { animation-delay: .18s; }
.morph.is-leaving .morph-alt:not(.morph-glitch) { transition: opacity .5s steps(4) .2s, clip-path .8s cubic-bezier(.65,0,.35,1); }
@media (prefers-reduced-motion: reduce) { .morph.is-leaving .morph-glitch { animation: none; } }
.morph-alt:not(.morph-glitch) { filter: brightness(.82) contrast(1.08); }
.morph-cap { color: #ef4444; }
/* Why So Serious section: hovering it triggers the takeover too */
.jk-zone { cursor: crosshair; }
body.joker-on .jk-para { color: #d4d4d4; animation: jkPara 2.4s steps(1) infinite; }
@keyframes jkPara {
  0%, 100% { transform: none; text-shadow: none; }
  6% { transform: translateX(-3px); text-shadow: 2px 0 rgba(185,28,28,.8), -2px 0 rgba(34,197,94,.8); }
  9% { transform: translateX(2px); }
  12% { transform: none; text-shadow: none; }
  61% { transform: translateX(2px) skewX(-4deg); text-shadow: -2px 0 rgba(168,85,247,.8), 2px 0 rgba(34,197,94,.7); }
  64% { transform: none; text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { body.joker-on .jk-para { animation: none; } }
