/* ==========================================================================
   Entertainment Solutions — design tokens & bespoke components
   Tailwind (Play CDN) handles layout utilities; this file carries brand
   detail Tailwind utilities don't reach: type, texture, motion, lightbox.
   ========================================================================== */

:root{
  --ink:        #0B0906;
  --ink-2:      #14100A;
  --ink-3:      #211A10;
  --hairline:   #35291750;
  --gold:       #C9A24D;
  --gold-light: #E7C878;
  --gold-dim:   #8A7142;
  --ivory:      #F3EFE4;
  --ivory-dim:  #B7AF9D;
  --stage:      #6C7BFF;
  --stage-dim:  #6C7BFF80;
}

::selection{ background: var(--gold); color: var(--ink); }

html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* min-height with a plain-vh fallback for browsers that don't support svh */
.min-h-hero{ min-height: 100vh; min-height: 100svh; }

body{
  background: var(--ink);
  color: var(--ivory);
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.font-display{ font-family: 'Fraunces', ui-serif, Georgia, serif; }

/* Fine film-grain so large flat black areas don't look like a flat PNG */
.grain{
  position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- links / focus ---- */
a{ color: inherit; }
:focus-visible{ outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---- hairline divider used instead of boxed cards ---- */
.hairline{ border-color: var(--hairline); }

/* ---- gold gradient text, used once (hero) per restraint principle ---- */
.text-gold-foil{
  background: linear-gradient(115deg, #8A7142 0%, #E7C878 35%, #C9A24D 60%, #8A7142 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- nav ---- */
#site-header{ transition: background-color .4s ease, border-color .4s ease, transform .5s cubic-bezier(.4,0,.2,1); will-change: transform; }
#site-header.is-scrolled{ background-color: rgba(11,9,6,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hairline); }
#site-header.is-hidden{ transform: translateY(-100%); }

.nav-link{ position: relative; }
.nav-link::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .35s ease;
}
.nav-link:hover::after, .nav-link.is-active::after{ transform: scaleX(1); transform-origin: left; }
.nav-link.is-active{ color: var(--gold-light); }

/* ---- buttons ---- */
.btn-gold{
  display:inline-flex; align-items:center; gap:.6rem; background: var(--gold);
  color: var(--ink); font-weight: 600; padding: .85rem 1.6rem; border-radius: 2px;
  transition: background-color .25s ease, transform .25s ease;
}
.btn-gold:hover{ background: var(--gold-light); transform: translateY(-1px); }

.btn-outline{
  display:inline-flex; align-items:center; gap:.6rem; border: 1px solid var(--gold-dim);
  color: var(--ivory); padding: .8rem 1.5rem; border-radius: 2px; transition: border-color .25s ease, background-color .25s ease;
}
.btn-outline:hover{ border-color: var(--gold); background: rgba(201,162,77,.08); }

/* ---- hero entrance: the one orchestrated motion moment on the site ---- */
@keyframes rise{ from{ opacity:0; transform: translateY(18px);} to{ opacity:1; transform: translateY(0);} }
.hero-rise{ animation: rise .9s cubic-bezier(.16,1,.3,1) both; }
.hero-rise-1{ animation-delay: .05s; }
.hero-rise-2{ animation-delay: .2s; }
.hero-rise-3{ animation-delay: .35s; }
.hero-rise-4{ animation-delay: .5s; }

/* ---- hero / header image sliders ---- */
.hero-slider{ position:absolute; inset:0; z-index:0; }
.hero-slider .slide{ position:absolute; inset:0; opacity:0; transition: opacity 1.5s ease-in-out; overflow:hidden; }
.hero-slider .slide.is-active{ opacity:1; z-index:1; }
.hero-slider .slide img{ width:100%; height:100%; object-fit:cover; animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns{ 0%{ transform: scale(1.01) translate3d(0,0,0); } 100%{ transform: scale(1.12) translate3d(-1%,-1%,0); } }
@media (prefers-reduced-motion: reduce){
  .hero-slider .slide img{ animation: none; }
}

.slider-dots{ display:flex; align-items:center; gap:.5rem; z-index:20; }
.slider-dots button{ width:7px; height:7px; padding:0; border-radius:999px; background: rgba(243,239,228,.4); transition: background .3s ease, width .3s ease; }
.slider-dots button.is-active{ background: var(--gold-light); width:22px; }
.slider-dots button:hover{ background: var(--gold); }

/* ---- section background treatments ---- */
.panel-tint{ background: var(--ink-2); }

.glow-top{ position:relative; }
.glow-top::before{
  content:""; position:absolute; top:-160px; left:50%; transform: translateX(-50%);
  width:720px; height:420px; background: radial-gradient(circle, rgba(201,162,77,.16), transparent 72%);
  pointer-events:none; z-index:0;
}
.glow-top > *{ position:relative; z-index:1; }

.cta-photo{ position:relative; overflow:hidden; }
.cta-photo img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.cta-photo::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(155deg, rgba(11,9,6,.88) 20%, rgba(11,9,6,.7) 55%, rgba(11,9,6,.9) 100%);
}
.cta-photo > .cta-content{ position:relative; z-index:1; }

/* ---- marquee for client logos ---- */
.marquee-track{ display:flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track:hover{ animation-play-state: paused; }
@keyframes marquee{ from{ transform: translateX(0);} to{ transform: translateX(-50%);} }

/* ---- project grid tiles ---- */
.tile{ position: relative; overflow: hidden; }
.tile img{ transition: transform 1.1s cubic-bezier(.16,1,.3,1); }
.tile:hover img{ transform: scale(1.06); }
.tile-veil{
  position:absolute; inset:0; background: linear-gradient(180deg, rgba(11,9,6,0) 35%, rgba(11,9,6,.92) 100%);
}

/* ---- service category filter buttons ---- */
.filter-btn{ border: 1px solid var(--hairline); color: var(--ivory-dim); padding: .5rem 1.1rem; border-radius: 999px; transition: all .25s ease; }
.filter-btn.is-active,.filter-btn:hover{ border-color: var(--gold); color: var(--gold-light); }

/* ---- gallery thumb grid on project detail page ---- */
.gallery-item{ cursor: zoom-in; overflow:hidden; }
.gallery-item img{ transition: transform .6s ease, filter .6s ease; }
.gallery-item:hover img{ transform: scale(1.05); }

/* ---- lightbox ---- */
#lightbox{ position: fixed; inset:0; z-index: 100; background: rgba(6,5,3,.96); display:none; align-items:center; justify-content:center; }
#lightbox.is-open{ display:flex; }
#lightbox img{ max-width: min(92vw, 1200px); max-height: 84vh; object-fit: contain; }

/* ---- video modal (click-to-load YouTube embed) ---- */
#video-modal{ position: fixed; inset:0; z-index: 100; background: rgba(6,5,3,.96); display:none; align-items:center; justify-content:center; padding: 4vh 4vw; }
#video-modal.is-open{ display:flex; }
#video-modal .video-frame{ width:100%; max-width: 1100px; aspect-ratio: 16 / 9; background: #000; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
#video-modal iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }

/* ---- video poster / play trigger ---- */
.video-poster{ position:relative; cursor:pointer; overflow:hidden; }
.video-poster img{ transition: transform 1.1s cubic-bezier(.16,1,.3,1), filter .4s ease; filter: brightness(.75); }
.video-poster:hover img{ transform: scale(1.05); filter: brightness(.65); }
.video-poster::after{ content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(11,9,6,.15), rgba(11,9,6,.75)); }
.play-button{
  position:absolute; top:50%; left:50%; transform: translate(-50%,-50%); z-index:2;
  width:84px; height:84px; border-radius:999px; display:flex; align-items:center; justify-content:center;
  background: rgba(243,239,228,.14); border: 1px solid rgba(243,239,228,.4); backdrop-filter: blur(6px);
  transition: background-color .3s ease, border-color .3s ease, transform .3s ease;
}
.video-poster:hover .play-button{ background: var(--gold); border-color: var(--gold); transform: translate(-50%,-50%) scale(1.06); }
.play-button svg{ margin-left: 4px; transition: fill .3s ease; }
.video-poster:hover .play-button svg{ fill: var(--ink); }
.lb-btn{ position:absolute; color: var(--ivory); opacity:.75; transition: opacity .2s ease, color .2s ease; }
.lb-btn:hover{ opacity:1; color: var(--gold-light); }

/* ---- counters ---- */
.stat-value{ font-variant-numeric: tabular-nums; }

/* ---- form fields ---- */
.field{
  width:100%; background: transparent; border: 0; border-bottom: 1px solid var(--hairline);
  padding: .75rem .1rem; color: var(--ivory); font-family: 'Manrope', sans-serif;
}
.field:focus{ outline:none; border-color: var(--gold); }
.field::placeholder{ color: var(--ivory-dim); }
label.field-label{ font-size: .78rem; letter-spacing: .02em; color: var(--ivory-dim); }

/* ---- mobile menu ---- */
#mobile-menu{ transform: translateY(-8px); opacity:0; pointer-events:none; transition: opacity .3s ease, transform .3s ease; }
#mobile-menu.is-open{ transform: translateY(0); opacity:1; pointer-events:auto; }

/* ---- misc ---- */
.eyebrow-dot::before{ content:""; display:inline-block; width:6px; height:6px; border-radius:50%; background: var(--gold); margin-inline-end:.6rem; vertical-align:middle; }

::-webkit-scrollbar{ width:10px; }
::-webkit-scrollbar-track{ background: var(--ink); }
::-webkit-scrollbar-thumb{ background: var(--ink-3); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover{ background: var(--gold-dim); }
