/* ===== RED Production — theme tokens ===== */
:root, html[data-theme="dark"]{
  --bg:0 0 0;            /* page */
  --bg2:10 10 14;        /* panel */
  --panel:17 17 24;      /* panel2 / cards */
  --text:248 250 252;    /* foreground */
  --line:rgba(255,255,255,0.10);
  --grain:0.11;
}
html[data-theme="light"]{
  --bg:250 248 244;
  --bg2:243 240 234;
  --panel:255 255 255;
  --text:20 18 16;
  --line:rgba(20,18,16,0.12);
  --grain:0.06;
}
:root{ --brand:#F0411E; --brand-bright:#FF5A3C; }

*{ box-sizing:border-box; }
html,body{ background:rgb(var(--bg)); color:rgb(var(--text)); font-family:'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; -webkit-font-smoothing:antialiased; margin:0; transition:background-color .5s ease, color .5s ease; }
::selection{ background:var(--brand); color:#fff; }

::-webkit-scrollbar{ width:10px; }
::-webkit-scrollbar-track{ background:rgb(var(--bg2)); }
::-webkit-scrollbar-thumb{ background:rgb(var(--text)/0.18); border-radius:10px; }
::-webkit-scrollbar-thumb:hover{ background:var(--brand); }

.font-display{ font-family:'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-weight:700; }
.font-serif{ font-family:'Playfair Display', Georgia, serif; }
/* buttons + lang label in the mono face (a touch bolder) */
#langLabel, [data-i18n="nav.cta"], [data-i18n="hero.cta1"], [data-i18n="hero.cta2"], [data-i18n="services.cta"], [data-i18n="cat.cta.btn"], [data-i18n="cat.back"], [data-i18n="contact.f.send"], [data-i18n="showreel.cta"]{ font-family:var(--font-tech); font-weight:700; }
.display-tight{ letter-spacing:-0.03em; line-height:0.95; }

/* Technical / film mono labels */
:root{ --font-tech:'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }
.tech{ font-family:var(--font-tech); text-transform:uppercase; letter-spacing:0.12em; }
[data-i18n$="eyebrow"]{ font-family:var(--font-tech); }
#site-header nav .nav-links a, #site-header nav .nav-links #workBtn{ font-family:var(--font-tech); text-transform:uppercase; letter-spacing:0.1em; font-size:12px; }
/* Light theme: header sits over the dark hero — make the whole bar red so it stays visible */
html[data-theme="light"] #site-header .nav-links a,
html[data-theme="light"] #site-header #workBtn,
html[data-theme="light"] #site-header #langBtn,
html[data-theme="light"] #site-header #langLabel,
html[data-theme="light"] #site-header #themeBtn,
html[data-theme="light"] #site-header #menuBtn,
html[data-theme="light"] #site-header .brand-red,
html[data-theme="light"] #site-header .brand-tag-1,
html[data-theme="light"] #site-header .brand-tag-2,
html[data-theme="light"] #site-header svg{ color:#ffffff !important; }
/* scrolled header bar — the is-scrolled class is toggled on #site-header itself (the <header>).
   rgba() for cross-browser (Safari) reliability. */
#site-header.is-scrolled{ background:rgba(8,8,12,0.82) !important; }
html[data-theme="light"] #site-header.is-scrolled{ background:rgba(252,250,247,0.94) !important; }
html[data-theme="light"] #site-header.is-scrolled .nav-links a,
html[data-theme="light"] #site-header.is-scrolled #workBtn,
html[data-theme="light"] #site-header.is-scrolled #langBtn,
html[data-theme="light"] #site-header.is-scrolled #langLabel,
html[data-theme="light"] #site-header.is-scrolled #themeBtn,
html[data-theme="light"] #site-header.is-scrolled #menuBtn,
html[data-theme="light"] #site-header.is-scrolled .brand-tag-1,
html[data-theme="light"] #site-header.is-scrolled .brand-tag-2,
html[data-theme="light"] #site-header.is-scrolled svg{ color:rgba(20,18,16,0.9) !important; }
html[data-theme="light"] #site-header.is-scrolled .brand-red{ color:var(--brand) !important; }
/* …and niche pages have no dark hero at the top — header text must be dark from the start */
html[data-theme="light"] body[data-page] #site-header .nav-links a,
html[data-theme="light"] body[data-page] #site-header #workBtn,
html[data-theme="light"] body[data-page] #site-header #langBtn,
html[data-theme="light"] body[data-page] #site-header #langLabel,
html[data-theme="light"] body[data-page] #site-header #themeBtn,
html[data-theme="light"] body[data-page] #site-header #menuBtn,
html[data-theme="light"] body[data-page] #site-header .brand-tag-1,
html[data-theme="light"] body[data-page] #site-header .brand-tag-2,
html[data-theme="light"] body[data-page] #site-header svg{ color:rgb(var(--text) / .85) !important; }
html[data-theme="light"] body[data-page] #site-header .brand-red{ color:var(--brand) !important; }
/* film-frame caption: white is invisible over light sections */
html[data-theme="light"] .film-frame .fl,
html[data-theme="light"] .film-frame .fl.bc{ color:rgb(var(--text) / .8); text-shadow:0 1px 6px rgb(255 255 255 / .55); }

/* Coral film frame around the viewport (rosco-style passe-partout) */
.film-frame{ position:fixed; inset:0; z-index:70; pointer-events:none; }
.film-frame::before{ content:""; position:absolute; inset:0; border:5px solid var(--brand); border-radius:22px; }
.film-frame .fl{ position:absolute; font-family:var(--font-tech); text-transform:uppercase; letter-spacing:0.2em; font-size:10px; color:#fff; }
.film-frame .fl.bc{ left:50%; bottom:13px; transform:translateX(-50%); color:#fff; opacity:.85; }
@media (max-width:640px){ .film-frame::before{ border-width:2px; border-radius:12px; } .film-frame .fl{ font-size:9px; } }

/* Grunge: second static grain pass for grit */
body::after{ content:""; position:fixed; inset:0; z-index:61; pointer-events:none; opacity:.05; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }

/* Brand logo lockup — boxed "RED" + wide PRODUCTION (1820-style) */
.logo-mark{ display:inline-grid; place-items:center; width:34px; height:34px; border-radius:8px; background:var(--brand);
  font-family:'Archivo',sans-serif; font-weight:800; font-size:13px; color:#fff; letter-spacing:.3px; line-height:1; }
.logo-word{ font-family:'Archivo',sans-serif; font-weight:800; letter-spacing:-.01em; }

/* Logo: layered "RED" (coral offset = depth) + technical tag */
.brand-lockup{ display:inline-flex; align-items:center; line-height:1; }
.brand-red{ font-family:'Archivo',sans-serif; font-weight:800; font-size:25px; letter-spacing:.02em;
  color:rgb(var(--text)); text-shadow:2px 2px 0 var(--brand); transition:text-shadow .25s ease; }
.brand-tick{ width:2px; align-self:stretch; min-height:26px; background:var(--brand); margin:0 11px; }
.brand-tag{ display:flex; flex-direction:column; gap:2px; font-family:var(--font-tech); text-transform:uppercase; line-height:1.1; }
.brand-tag-1{ font-size:10px; letter-spacing:.1em; color:rgb(var(--text)/0.9); }
.brand-tag-2{ font-size:9px; letter-spacing:.1em; color:rgb(var(--text)/0.5); }
a:hover > .brand-lockup .brand-red{ text-shadow:3px 3px 0 var(--brand-bright); }
/* Hero slogan sits on the dark photo in BOTH themes — keep "RED" light there */
#home .brand-red{ color:#fff; }
/* logo on dark mobile-menu always light */
#mobile-menu .brand-red{ color:#fff; }
#mobile-menu .brand-tag-1{ color:rgba(255,255,255,.9); }
#mobile-menu .brand-tag-2{ color:rgba(255,255,255,.5); }
/* large variant (preloader) */
.brand-lockup.lg .brand-red{ font-size:48px; text-shadow:3px 3px 0 var(--brand); }
.brand-lockup.lg .brand-tick{ min-height:50px; margin:0 18px; }
.brand-lockup.lg .brand-tag-1{ font-size:14px; }
.brand-lockup.lg .brand-tag-2{ font-size:12px; }

/* Film grain */
.grain::before{ content:""; position:fixed; inset:-50%; z-index:60; pointer-events:none; opacity:var(--grain);
  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='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation:grain 8s steps(6) infinite; }
@keyframes grain{ 0%,100%{transform:translate(0,0)} 10%{transform:translate(-4%,-4%)} 30%{transform:translate(3%,-2%)} 50%{transform:translate(-2%,3%)} 70%{transform:translate(4%,2%)} 90%{transform:translate(-3%,1%)} }

/* Reveal */
.reveal{ opacity:0; transform:translateY(28px); transition:opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); will-change:opacity,transform; }
.reveal.in{ opacity:1; transform:none; }

/* Hero line mask */
.line-mask{ overflow:hidden; display:block; }
.line-inner{ display:block; transform:translateY(110%); transition:transform 1s cubic-bezier(.16,1,.3,1); }
.loaded .line-inner{ transform:none; }

.aurora{ position:absolute; filter:blur(90px); opacity:.5; border-radius:9999px; pointer-events:none; }
html[data-theme="light"] .aurora{ opacity:.32; }

/* Marquee */
.marquee{ display:flex; width:max-content; animation:marquee 32s linear infinite; }
@keyframes marquee{ to{ transform:translateX(-50%); } }
.marquee-wrap:hover .marquee{ animation-play-state:paused; }
.marquee-red{ display:flex; width:max-content; animation:marquee 26s linear infinite; }

/* Hero cinematic media — desaturated, colour on hover */
.hero-media img{ filter:grayscale(1) contrast(1.06); transition:filter .7s ease, transform .8s cubic-bezier(.16,1,.3,1); }
.hero-media:hover img{ filter:grayscale(0) contrast(1); }

/* Media cards */
.card-media{ transition:transform .8s cubic-bezier(.16,1,.3,1); }
.group:hover .card-media{ transform:scale(1.06); }
.card-overlay{ background:linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 100%); }

/* Buttons */
.btn-fill{ position:relative; overflow:hidden; z-index:0; }
.btn-fill::after{ content:""; position:absolute; inset:0; z-index:-1; background:var(--brand-bright); transform:translateY(101%); transition:transform .45s cubic-bezier(.16,1,.3,1); }
.btn-fill:hover::after{ transform:translateY(0); }
/* white button used on red bands */
.btn-onred{ position:relative; overflow:hidden; z-index:0; background:#fff; color:var(--brand); }
.btn-onred::after{ content:""; position:absolute; inset:0; z-index:-1; background:#000; transform:translateY(101%); transition:transform .45s cubic-bezier(.16,1,.3,1); }
.btn-onred:hover{ color:#fff; }
.btn-onred:hover::after{ transform:translateY(0); }

.ul{ background-image:linear-gradient(var(--brand),var(--brand)); background-size:0% 1.5px; background-repeat:no-repeat; background-position:0 100%; transition:background-size .35s ease; }
.ul:hover{ background-size:100% 1.5px; }

/* Lightbox */
#lightbox{ transition:opacity .4s ease; }

/* Dropdowns */
.lang-menu,.work-menu{ opacity:0; pointer-events:none; transition:all .25s cubic-bezier(.16,1,.3,1); }
.lang-menu{ transform:translateY(8px) scale(.96); transform-origin:top right; }
.work-menu{ transform:translateY(8px) scale(.97); transform-origin:top left; }
.lang-menu.open,.work-menu.open{ transform:none; opacity:1; pointer-events:auto; }

/* Niches carousel */
.niche-scroll{ scrollbar-width:none; -ms-overflow-style:none; }
.niche-scroll::-webkit-scrollbar{ display:none; }

/* Niche cards — red outline on hover, red blink on the centered card while scrolling */
.niche-card{
  border:2px solid transparent;
  box-shadow:inset 0 0 0 0 rgba(240,65,30,0);
  transition:border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.niche-card:hover{
  border-color:var(--brand);
  box-shadow:inset 0 0 0 1px var(--brand), inset 0 0 34px -6px rgba(240,65,30,.85);
  transform:translateY(-3px);
}
/* Centered card while the carousel is being scrolled (inset glow — never clipped by the scroller) */
.niche-card.is-center{
  border-color:var(--brand);
  animation:niche-center-blink 1s ease-in-out infinite;
}
@keyframes niche-center-blink{
  0%,100%{ border-color:var(--brand);        box-shadow:inset 0 0 0 1px var(--brand),        inset 0 0 38px -6px rgba(240,65,30,.85); }
  50%    { border-color:var(--brand-bright);  box-shadow:inset 0 0 0 2px var(--brand-bright), inset 0 0 56px -4px rgba(255,90,60,1); }
}
@media (prefers-reduced-motion: reduce){
  .niche-card.is-center{ animation:none; box-shadow:0 0 0 2px var(--brand); }
}

/* Filters active */
.filter-btn.is-active{ background:var(--brand); border-color:var(--brand); color:#fff; }

/* Theme toggle knob */
.theme-toggle .sun{ display:none; }
html[data-theme="light"] .theme-toggle .sun{ display:block; }
html[data-theme="light"] .theme-toggle .moon{ display:none; }

/* ===== HERO — living still (Ken Burns + parallax + glitch) ===== */
/* NB: no transition here — the parallax JS writes transform every frame with its own easing;
   a CSS transition on top of that restarts every frame and makes the image tremble */
.hero-media{ position:relative; overflow:hidden; }
.hero-media > *{ display:block; }

/* Ken Burns: slow drift + breathing zoom on the photo */
.hero-kenburns{
  transform-origin:60% 40%;
  animation:hero-kenburns 26s ease-in-out infinite alternate;
  will-change:transform;
}
@keyframes hero-kenburns{
  0%{   transform:scale(1.06) translate(0,0); }
  50%{  transform:scale(1.12) translate(-1.6%,-1.2%); }
  100%{ transform:scale(1.08) translate(1.2%,0.6%); }
}

/* Breathing: subtle figure rise/fall — reads as shoulders lifting on inhale */
.hero-breathe{
  transform-origin:50% 100%;
  animation:hero-breathe 4.6s ease-in-out infinite;
  will-change:transform;
}
@keyframes hero-breathe{
  0%{   transform:scaleY(1)      translateY(0); }
  42%{  transform:scaleY(1.016)  translateY(-0.5%); }  /* inhale — shoulders up */
  60%{  transform:scaleY(1.016)  translateY(-0.5%); }  /* brief hold */
  100%{ transform:scaleY(1)      translateY(0); }       /* exhale */
}

/* Breath vapor — soft puff rising near the head, synced to the exhale */
.hero-breath{
  position:absolute; z-index:2; pointer-events:none;
  left:26%; top:12%; width:90px; height:90px;
  border-radius:50%;
  background:radial-gradient(circle at 50% 60%, rgba(255,255,255,.5), rgba(255,255,255,.12) 45%, rgba(255,255,255,0) 70%);
  filter:blur(7px);
  opacity:0; transform:translateY(0) scale(.5);
  mix-blend-mode:screen;
  animation:hero-breath 4.6s ease-out infinite;
  will-change:transform, opacity;
}
@keyframes hero-breath{
  0%,55%{ opacity:0;  transform:translate(0,0) scale(.45); }       /* during inhale: nothing */
  62%{    opacity:.55; transform:translate(-2%,-8%) scale(.7); }   /* exhale starts — puff appears */
  100%{   opacity:0;  transform:translate(-8%,-40%) scale(1.5); }  /* drifts up & dissipates */
}
/* Wide screens: hero is now viewport-height with the image top-anchored and scaled by width,
   so the face sits at a width-relative offset — keep the puff at the mouth */
@media (min-aspect-ratio:3/2) and (min-width:768px){
  .hero-breath{ top:8vw; }
}

/* Faint moving scanlines for the cinematic/CRT feel */
.hero-scanlines{
  position:absolute; inset:0; pointer-events:none; z-index:2; opacity:.18;
  background:repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.55) 2px 3px);
  animation:hero-scan 7s linear infinite;
  mix-blend-mode:overlay;
}
@keyframes hero-scan{ 0%{ transform:translateY(0); } 100%{ transform:translateY(6px); } }

/* Glitchy red bar sweeping across the hero */
.hero-redbar{
  position:absolute; left:0; right:0; top:18%; height:7%; z-index:2; pointer-events:none;
  background:linear-gradient(90deg, rgba(240,65,30,0) 0%, var(--brand) 18%, var(--brand) 82%, rgba(240,65,30,0) 100%);
  mix-blend-mode:screen; opacity:.55;
  animation:hero-redbar 9s steps(1) infinite,
            hero-redbar-flicker 2.6s ease-in-out infinite,
            hero-redbar-breathe 4.6s ease-in-out infinite;  /* synced to .hero-breathe */
  will-change:transform, clip-path, opacity, filter;
}
/* Breathes in rhythm with the figure: glows on inhale, fades on exhale */
@keyframes hero-redbar-breathe{
  0%{   opacity:.42; filter:brightness(.85) saturate(.9); }
  42%{  opacity:.7;  filter:brightness(1.35) saturate(1.25); }  /* inhale — brightest */
  60%{  opacity:.7;  filter:brightness(1.35) saturate(1.25); }  /* hold */
  100%{ opacity:.42; filter:brightness(.85) saturate(.9); }      /* exhale */
}
@keyframes hero-redbar{
  0%,72%   { transform:translateX(0)   skewX(0deg);   clip-path:inset(0 0 0 0); }
  74%      { transform:translateX(-3%) skewX(-8deg);  clip-path:inset(0 0 60% 0); }
  76%      { transform:translateX(2%)  skewX(6deg);   clip-path:inset(40% 0 0 0); }
  78%,100% { transform:translateX(0)   skewX(0deg);   clip-path:inset(0 0 0 0); }
}
@keyframes hero-redbar-flicker{
  0%,100%{ opacity:.5; } 45%{ opacity:.62; } 50%{ opacity:.32; } 55%{ opacity:.6; }
}

/* Mobile: keep Ken Burns subtle, drop heavier effects (Facebook in-app browser) */
@media (max-width:768px){
  .hero-kenburns{ animation-duration:32s; }
  .hero-scanlines{ display:none; }
  .hero-breath{ display:none; }   /* object-cover crop shifts the head — puff would land off-target */
  .hero-redbar{ animation:hero-redbar-breathe 4.6s ease-in-out infinite; }
}

@media (prefers-reduced-motion: reduce){
  .hero-kenburns,.hero-scanlines,.hero-redbar,.hero-breathe,.hero-breath{ animation:none !important; }
  .hero-redbar{ opacity:.5; }
  .hero-breath{ opacity:0; }
  .hero-media{ transform:none !important; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
  .reveal{ opacity:1 !important; transform:none !important; }
  .line-inner{ transform:none !important; }
  .grain::before{ animation:none; }
  .marquee,.marquee-red{ animation:none; }
}

/* ===== Floating WhatsApp button ===== */
.wa-fab{
  position:fixed; right:20px; bottom:20px; z-index:80;
  display:inline-flex; align-items:center; gap:0;
  height:56px; padding:0; border-radius:9999px;
  background:var(--brand); color:#fff;
  box-shadow:0 8px 28px -6px rgba(240,65,30,.6), 0 2px 8px rgba(0,0,0,.35);
  overflow:hidden; text-decoration:none;
  transition:padding .3s cubic-bezier(.4,0,.2,1), background .25s, transform .25s;
}
.wa-fab svg{ width:30px; height:30px; flex:0 0 auto; margin:0 13px; }
.wa-fab .wa-label{
  max-width:0; opacity:0; white-space:nowrap; overflow:hidden;
  font-size:14px; font-weight:600; letter-spacing:.01em;
  transition:max-width .3s cubic-bezier(.4,0,.2,1), opacity .25s, padding .3s;
}
.wa-fab:hover{ background:var(--brand-bright); transform:translateY(-2px); }
.wa-fab:hover .wa-label{ max-width:180px; opacity:1; padding-left:16px; }
.wa-fab::after{
  content:""; position:absolute; inset:0; border-radius:9999px;
  border:2px solid var(--brand); animation:wa-pulse 2.6s ease-out infinite; pointer-events:none;
}
@keyframes wa-pulse{ 0%{transform:scale(1);opacity:.55;} 70%{transform:scale(1.45);opacity:0;} 100%{opacity:0;} }
@media (max-width:768px){
  .wa-fab{ right:16px; bottom:16px; height:54px; }
  .wa-fab .wa-label{ display:none; }
}
@media (prefers-reduced-motion: reduce){
  .wa-fab::after{ animation:none; }
}

/* ===== Custom cursor: coral dot + trailing ring ===== */
html.vf-on, html.vf-on *{ cursor:none !important; }
.cur-dot{
  position:fixed; left:0; top:0; width:6px; height:6px; border-radius:50%;
  background:var(--brand-bright); z-index:96; pointer-events:none; opacity:0;
  transition:opacity .2s ease, width .2s ease, height .2s ease;
}
.cur-ring{
  position:fixed; left:0; top:0; width:30px; height:30px; border-radius:50%;
  border:1.5px solid rgb(var(--text) / .4); z-index:95; pointer-events:none; opacity:0;
  transition:opacity .2s ease, width .25s ease, height .25s ease, border-color .25s ease;
}
.cur-ring.is-hot{ width:46px; height:46px; border-color:var(--brand-bright); }
.cur-dot.is-hot{ width:4px; height:4px; }

/* ===== Sound toggle (bottom-left) ===== */
.snd-fab{
  position:fixed; left:20px; bottom:20px; z-index:80;
  width:46px; height:46px; border-radius:9999px; display:grid; place-items:center;
  background:rgba(127,127,127,.12); border:1px solid var(--line); color:var(--text);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  transition:background .2s, color .2s, border-color .2s, transform .2s;
}
.snd-fab:hover{ border-color:var(--brand); color:var(--brand-bright); transform:translateY(-2px); }
.snd-fab.is-on{ background:var(--brand); border-color:var(--brand); color:#fff; }
.snd-fab svg{ width:20px; height:20px; }
@media (max-width:768px){ .snd-fab{ left:16px; bottom:16px; width:44px; height:44px; } }

/* ===== "Everything looks better in RED": photos develop from B&W on hover ===== */
@media (hover:hover) and (pointer:fine){
  .work-item .card-media, .niche-card img.card-bg, .niche-card > img{
    filter:grayscale(1) contrast(1.05);
    transition:filter .6s ease, transform .9s cubic-bezier(.16,1,.3,1), opacity .3s ease;
  }
  .work-item:hover .card-media, .niche-card:hover img.card-bg, .niche-card:hover > img{
    filter:grayscale(0) contrast(1); transform:scale(1.05);
  }
  .niche-card.is-center img.card-bg, .niche-card.is-center > img{ filter:grayscale(0); }
}

/* ===== Camera REC indicator + timecode on hero ===== */
.rec-dot{
  width:9px; height:9px; border-radius:50%; display:inline-block;
  background:var(--brand-bright); box-shadow:0 0 8px rgba(255,90,60,.8);
  animation:rec-blink 1.2s steps(1) infinite;
}
/* isolate the ticking timecode: text updates must never trigger layout of the hero
   (Safari re-snapshots the composited kenburns/breathe layers on reflow → image "trembles") */
.rec-wrap{ contain:layout paint; }
#heroTC{ display:inline-block; min-width:11ch; font-variant-numeric:tabular-nums; }
@keyframes rec-blink{ 0%,100%{ opacity:1; } 50%{ opacity:.15; } }
@media (prefers-reduced-motion: reduce){
  .rec-dot{ animation:none; }
  .work-item:hover .card-media, .niche-card:hover > img, .niche-card:hover img.card-bg{ transform:none; }
}

/* Empty-niche card background on the home carousel (branded, not a random photo) */
.niche-empty-bg{
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(240,65,30,.22), transparent 55%),
    linear-gradient(160deg, rgb(var(--panel)), rgb(var(--bg2)));
}

/* Touch devices (phones/tablets, no hover): galleries always in full color —
   the B&W→color reveal is a desktop-hover effect only */
@media (hover:none), (pointer:coarse){
  .work-item .card-media,
  .niche-card > img,
  .niche-card img.card-bg{ filter:none !important; }
}

/* Rotating niche covers: top layer crossfades over the base image */
.niche-card img.rot-top{
  transition:opacity .9s ease, filter .6s ease, transform .9s cubic-bezier(.16,1,.3,1);
}

/* Vertical (Shorts) video in the lightbox: 9:16 player centered */
#lbVid.lb-vert{
  width:auto; height:min(78vh, 640px); aspect-ratio:9/16; margin:0 auto; display:block;
}

/* ===== Showreel overlay: cinematic photo slideshow ===== */
#showreel-ov{ position:fixed; inset:0; z-index:96; background:#000; overflow:hidden; }
#showreel-ov .sr-img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; transition:opacity 1.1s ease; will-change:opacity,transform;
}
#showreel-ov .sr-img.on{ opacity:1; }
#showreel-ov .sr-img.zoom{ animation:sr-zoom 4.4s linear forwards; }
@keyframes sr-zoom{ from{ transform:scale(1); } to{ transform:scale(1.07); } }
#showreel-ov .sr-top{
  position:absolute; top:20px; left:22px; right:22px; z-index:2;
  display:flex; justify-content:space-between; align-items:center;
  font-family:var(--font-tech); text-transform:uppercase; letter-spacing:.25em; font-size:11px; color:var(--brand-bright);
  text-shadow:0 1px 8px rgba(0,0,0,.8);
}
#showreel-ov .sr-close{
  cursor:pointer; width:42px; height:42px; border-radius:9999px; font-size:15px; line-height:1;
  background:rgba(0,0,0,.45); border:1px solid rgba(255,255,255,.3); color:#fff;
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
}
#showreel-ov .sr-close:hover{ border-color:var(--brand); color:var(--brand-bright); }
#showreel-ov .sr-cap{
  position:absolute; bottom:28px; left:0; right:0; z-index:2; text-align:center;
  font-family:var(--font-tech); text-transform:uppercase; letter-spacing:.22em; font-size:11px; color:rgba(255,255,255,.85);
  text-shadow:0 1px 8px rgba(0,0,0,.8);
}
#showreel-ov .sr-cap b{ color:var(--brand-bright); }
@media (prefers-reduced-motion: reduce){ #showreel-ov .sr-img.zoom{ animation:none; } }

/* ===== Touch scroll performance =====
   Two full-screen FIXED grain layers (one animated, one mix-blended) force iOS Safari
   to re-composite the whole viewport every scroll frame → janky scrolling.
   On touch devices: freeze the grain animation and drop the second blend pass. */
@media (pointer:coarse), (max-width:768px){
  .grain::before{ animation:none; opacity:calc(var(--grain)*0.7); }
  body::after{ display:none; }
}

/* ===== FAQ accordion ===== */
.faq-item summary{ list-style:none; transition:background-color .2s ease; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary:hover{ background:rgb(var(--text)/0.03); }
.faq-item .faq-ico svg{ transition:transform .3s cubic-bezier(.4,0,.2,1); }
.faq-item[open] .faq-ico{ background:var(--brand); border-color:var(--brand); color:#fff; }
.faq-item[open] .faq-ico svg{ transform:rotate(180deg); }
.faq-item[open]{ border-color:rgb(var(--text)/0.2); }
.faq-item[open] .faq-a{ animation:faq-in .34s ease; }
@keyframes faq-in{ from{ opacity:0; transform:translateY(-6px); } to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce){ .faq-item[open] .faq-a{ animation:none; } }

/* ===== Red page-transition wipe ===== */
.page-wipe{
  position:fixed; inset:0; z-index:200; background:var(--brand);
  transform:translateX(-100%); pointer-events:none;
  display:flex; align-items:center; justify-content:center;
}
.page-wipe-mark{
  font-family:'Archivo','Arial Black',sans-serif; font-weight:800; font-size:clamp(48px,9vw,120px);
  letter-spacing:-.02em; color:#fff; text-shadow:4px 4px 0 rgba(0,0,0,.25);
}

/* ===== Letter-stagger headings (film credits) ===== */
.stagger .ch{
  display:inline-block; opacity:0; transform:translateY(0.5em) rotate(4deg);
  transition:opacity .5s ease, transform .55s cubic-bezier(.16,1,.3,1);
  will-change:opacity, transform;
}
.stagger.in .ch{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .stagger .ch{ opacity:1; transform:none; } }

/* stagger headings: container stays put, only the letters animate in */
.reveal.stagger{ opacity:1; transform:none; }

/* Letter-stagger: keep each word on one line (break only at spaces) */
.stagger .wd{ display:inline-block; white-space:nowrap; }

/* Mobile menu open → hide floating buttons so they don't cover the menu's bottom links */
body.menu-open .wa-fab, body.menu-open .snd-fab{ opacity:0; visibility:hidden; pointer-events:none; }

/* Lightbox: soft red neon halo behind the photo/video — nicer when swiping */
#lbImg, #lbVid{
  box-shadow:0 0 0 1px rgba(240,65,30,.28), 0 0 75px -6px rgba(240,65,30,.55), 0 14px 55px rgba(0,0,0,.5);
}
