/* ============================================================
   szyler.com V2 — cinematic dark mode (Higgsfield assets)
   Everything here is scoped to :root[data-theme="dark"] so the
   light theme renders exactly as before.
   ============================================================ */

/* ---------- Light mode: cinematic bits stay out of the way ---------- */
.cine, .contact-mark{ display:none; }

/* ---------- Fixed world layer ---------- */
:root[data-theme="dark"] .cine{ display:block; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:#0b0b0d url('../assets/cine/hero.jpg') center/cover no-repeat; }
:root[data-theme="dark"] .cine-canvas,
:root[data-theme="dark"] .cine-hero{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
:root[data-theme="dark"] .cine-hero{ will-change:opacity; }
:root[data-theme="dark"] .cine-scrim{ position:absolute; inset:0; background:#0b0b0d; opacity:.18; will-change:opacity; }
:root[data-theme="dark"] .cine-vignette{ position:absolute; inset:0;
  background:radial-gradient(120% 90% at 50% 45%,transparent 45%,rgba(5,5,7,.75) 100%),
             linear-gradient(to bottom,rgba(5,5,7,.55) 0,transparent 18%,transparent 78%,rgba(5,5,7,.7) 100%); }

/* The old CSS triangle field / glows / grid give way to the real 3D world */
:root[data-theme="dark"] .bg-scene{ background:transparent; z-index:-3; }
:root[data-theme="dark"] .tri-field,
:root[data-theme="dark"] .glow,
:root[data-theme="dark"] .bg-grid,
:root[data-theme="dark"] .bg-image{ display:none; }
:root[data-theme="dark"] body{ background:#0b0b0d; }
:root[data-theme="dark"] .bg-grain{ position:fixed; z-index:5; opacity:.035; }
:root[data-theme="dark"] .spotlight{ z-index:0; }

/* Hero text sits in the open space the shards left for it */
:root[data-theme="dark"] .hero-heading,
:root[data-theme="dark"] .hero-sub,
:root[data-theme="dark"] .hero-eyebrow{ text-shadow:0 2px 30px rgba(0,0,0,.65); }

/* ---------- Gallery / stats get glass so the world shows through ---------- */
:root[data-theme="dark"] .work-item{ border-color:rgba(255,255,255,.08); }
:root[data-theme="dark"] .filter{ background:rgba(14,14,17,.6); backdrop-filter:blur(8px); }
:root[data-theme="dark"] .stats{ position:relative; }
:root[data-theme="dark"] .stat{ position:relative; }
:root[data-theme="dark"] .stat-num{ position:relative; z-index:2; transition:text-shadow .6s var(--ease); }
:root[data-theme="dark"] .stat-num.locked{ animation:lock .9s var(--ease); text-shadow:0 0 30px rgba(255,92,0,.35); }
@keyframes lock{ 0%{ transform:scale(1); } 30%{ transform:scale(1.08); text-shadow:0 0 50px rgba(255,92,0,.9); } 100%{ transform:scale(1); } }
.shard{ position:absolute; left:50%; top:34%; z-index:1; aspect-ratio:1/.92; pointer-events:none;
  clip-path:polygon(50% 0,100% 100%,0 100%); margin-left:-10px;
  background:linear-gradient(160deg,rgba(255,255,255,.55),rgba(120,120,135,.35) 45%,rgba(40,40,48,.6));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.2); }
.shard.o{ background:linear-gradient(160deg,#ffb27a,#ff5c00 55%,#a83a00); filter:drop-shadow(0 0 6px rgba(255,92,0,.8)); }

/* ---------- Contact: the landing shot ---------- */
:root[data-theme="dark"] .contact{ min-height:100svh; display:flex; align-items:center; }
:root[data-theme="dark"] .contact-inner{ width:100%; }
:root[data-theme="dark"] .contact-mark{ display:block; width:min(440px,74vw); height:auto; margin:0 auto 34px;
  filter:drop-shadow(0 6px 30px rgba(0,0,0,.7)); opacity:0; transform:translateY(20px) scale(.96);
  transition:opacity 1.2s var(--ease) .2s,transform 1.2s var(--ease) .2s; }
:root[data-theme="dark"] .contact-inner.in .contact-mark{ opacity:1; transform:none; }
:root[data-theme="dark"] .contact-title,
:root[data-theme="dark"] .contact-sub{ text-shadow:0 2px 30px rgba(0,0,0,.8); }
:root[data-theme="dark"] .footer{ background:rgba(8,8,10,.8); max-width:none; padding-left:max(clamp(20px,6vw,90px),calc((100% - 1280px)/2 + clamp(20px,6vw,90px))); padding-right:max(clamp(20px,6vw,90px),calc((100% - 1280px)/2 + clamp(20px,6vw,90px))); }

/* ---------- Responsive ---------- */
@media (prefers-reduced-motion:reduce){
  :root[data-theme="dark"] .cine-hero{ display:none; }
  :root[data-theme="dark"] .contact-mark{ opacity:1; transform:none; }
}
