/* ============================================================
   ATAL SHETTY FILMS — shared cinematic design system
   ============================================================ */

/* ---- Fonts ---- */
/* fonts loaded via <link> in each page <head> for faster, non-blocking paint */

:root {
  /* palette */
  --black: #0A0A0A;
  --ink: #0d0d0c;
  --panel: #141311;
  --panel-2: #1b1916;
  --line: rgba(212, 175, 55, 0.16);
  --line-soft: rgba(255, 255, 255, 0.07);

  --gold: #D4AF37;
  --gold-light: #F0D78A;
  --gold-bright: #F6E4A6;
  --gold-deep: #A07D1E;
  --gold-grad: linear-gradient(120deg, #B8902E 0%, #D4AF37 28%, #F4E1A0 52%, #D4AF37 74%, #A8801F 100%);

  --white: #FFFFFF;
  --cream: #F3EFE6;
  --text: #C9C5BC;
  --text-dim: #8d8a82;
  --text-faint: #5e5c56;

  /* type */
  --display: 'Bebas Neue', 'Impact', sans-serif;        /* big poster titles + wordmark */
  --heading: 'League Spartan', system-ui, sans-serif;   /* sub-heads, labels, buttons */
  --sans: 'Hanken Grotesk', system-ui, sans-serif;      /* body copy */

  /* layout */
  --maxw: 1280px;
  --nav-h: 116px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--text);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* warm vignette base behind everything */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(60, 48, 22, 0.42) 0%, rgba(20, 16, 8, 0) 45%),
    radial-gradient(140% 120% at 50% 110%, rgba(40, 32, 14, 0.35) 0%, rgba(0,0,0,0) 50%),
    #07070688;
  z-index: -3;
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: rgba(212, 175, 55, 0.3); color: #fff; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0b0b0a; }
::-webkit-scrollbar-thumb { background: linear-gradient(#5a4a1c, #2b2410); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(#8a6f24, #4a3c16); }

/* ============================================================
   GLOBAL CINEMATIC OVERLAYS
   ============================================================ */
#particles {
  position: fixed; inset: 0;
  z-index: -2;
  pointer-events: none;
}
#spotlight {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(620px circle at var(--mx, 50%) var(--my, 30%),
    rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.03) 28%, transparent 60%);
  transition: background 0.18s ease-out;
}
/* letterbox vignette */
.vignette {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  box-shadow: inset 0 0 240px 30px rgba(0,0,0,0.9);
}

/* page transition curtain / cinematic loader */
#curtain {
  position: fixed; inset: 0; z-index: 99999;
  pointer-events: none;
  display: grid; place-items: center;
  background: var(--black);
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.62s var(--ease-in-out);
}
/* faster downward fall when covering on the way out */
#curtain.falling { transition: clip-path 0.34s var(--ease-in-out); }
/* faint film-grain / vignette so the black reads as a screen, not a void */
#curtain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,0.6));
}
#curtain.open { clip-path: inset(0 0 100% 0); }

#curtain .curtain__core {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  transition: opacity .45s ease, transform .9s var(--ease);
}
#curtain.open .curtain__core { opacity: 0; transform: translateY(-14px); }

#curtain .mark {
  width: 118px; opacity: 0; transform: scale(.9) translateY(6px);
  transition: opacity .38s ease, transform .55s var(--ease);
  filter: drop-shadow(0 0 28px rgba(212,175,55,0.45));
}
#curtain.show-mark .mark { opacity: 1; transform: scale(1) translateY(0); }

/* sweeping cinematic progress bar */
#curtain .curtain__progress {
  position: relative; width: 132px; height: 2px; overflow: hidden;
  background: rgba(212,175,55,0.14);
  opacity: 0; transition: opacity .4s ease .15s;
}
#curtain.show-mark .curtain__progress { opacity: 1; }
#curtain.open .curtain__progress { opacity: 0; }
#curtain .curtain__progress i {
  position: absolute; inset: 0; display: block; width: 45%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateX(-130%);
  animation: curtainLoad 1.15s var(--ease-in-out) infinite;
}
@keyframes curtainLoad {
  0% { transform: translateX(-130%); }
  100% { transform: translateX(320%); }
}
@media (prefers-reduced-motion: reduce) {
  #curtain, #curtain .curtain__core, #curtain .mark { transition-duration: .25s; }
  #curtain .curtain__progress i { animation: none; }
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }
.section { position: relative; padding: clamp(90px, 13vh, 170px) 0; }
.section--tight { padding: clamp(60px, 9vh, 110px) 0; }

.eyebrow {
  font-family: var(--heading);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before {
  content: ""; width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow.center::after {
  content: ""; width: 34px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.eyebrow.center { justify-content: center; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; color: var(--cream); line-height: 0.9; letter-spacing: 0.012em; }
.h-display { font-size: clamp(58px, 11.5vw, 158px); font-weight: 400; line-height: 0.84; letter-spacing: 0.012em; }
.h-1 { font-size: clamp(46px, 7.6vw, 108px); line-height: 0.86; }
.h-2 { font-size: clamp(38px, 5.4vw, 78px); line-height: 0.88; }
.h-3, h3, h4 { font-family: var(--heading); font-weight: 700; line-height: 1.04; letter-spacing: -0.005em; }
.h-3 { font-size: clamp(22px, 2.7vw, 33px); }
.lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--text); line-height: 1.7; max-width: 60ch; }
.muted { color: var(--text-dim); }
.gold { color: var(--gold); }
.italic { font-style: normal; }   /* emphasis carried by gold, not slant (Bebas/Spartan have no true italic) */

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); border: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --bg: transparent;
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 34px;
  font-family: var(--heading); font-size: 14px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream);
  border: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  transition: color .5s var(--ease), border-color .5s var(--ease), transform .4s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--gold-grad);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.btn:hover { color: #1a1304; border-color: transparent; transform: translateY(-2px); }
.btn:hover::after { transform: translateY(0); }
.btn .ar { transition: transform .45s var(--ease); }
.btn:hover .ar { transform: translateX(5px); }

.btn--gold { background: var(--gold-grad); color: #1a1304; border-color: transparent; }
.btn--gold::after { background: #fff; }
.btn--gold:hover { color: #1a1304; }

.btn--ghost { border-color: rgba(255,255,255,0.18); }

/* link with animated underline */
.link-arrow {
  font-family: var(--heading);
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  position: relative;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }
.link-arrow .ar { transition: transform .4s var(--ease); }
.link-arrow:hover .ar { transform: translateX(4px); }

/* ============================================================
   NAVBAR  (centered-logo split nav)
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  /* permanent fade-to-transparent black so the menu never blends into the scene */
  background: linear-gradient(180deg, rgba(6,6,6,0.92) 0%, rgba(6,6,6,0.78) 38%, rgba(6,6,6,0.42) 72%, rgba(6,6,6,0) 100%);
  transition: background .5s var(--ease), backdrop-filter .5s var(--ease), height .4s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  height: 90px;
  background: linear-gradient(180deg, rgba(8,8,7,0.92), rgba(8,8,7,0.72));
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  width: 100%; max-width: 1360px; margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 48px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.nav__group { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 40px); }
.nav__group--l { justify-content: flex-end; }
.nav__group--r { justify-content: flex-start; }

.nav__item { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-dim); transition: color .35s var(--ease); position: relative; padding: 4px 2px; }
.nav__item .ic { width: 27px; height: 27px; stroke: currentColor; fill: none; transition: transform .4s var(--ease), filter .4s; }
.nav__item .lbl { font-family: var(--heading); font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.nav__item:hover { color: var(--gold-light); }
.nav__item:hover .ic { transform: translateY(-2px); filter: drop-shadow(0 4px 10px rgba(212,175,55,0.45)); }
.nav__item.active { color: var(--gold); }
.nav__item.active .ic { filter: drop-shadow(0 0 8px rgba(212,175,55,0.5)); }
.nav__item.active::after {
  content: ""; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 2px; background: var(--gold-grad); border-radius: 2px;
  box-shadow: 0 0 10px rgba(212,175,55,0.6);
}

.nav__logo { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.nav__logo img { width: 84px; height: auto; filter: drop-shadow(0 2px 14px rgba(212,175,55,0.35)); transition: transform .5s var(--ease); }
.nav__logo:hover img { transform: scale(1.06) rotate(-1deg); }
.nav.scrolled .nav__logo img { width: 66px; }

/* mobile nav */
.nav__burger { display: none; background: none; border: 0; color: var(--gold); width: 40px; height: 40px; }
.nav__burger svg { width: 26px; height: 26px; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 1001;
  background: rgba(7,7,6,0.97); backdrop-filter: blur(18px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity .5s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--display); font-size: clamp(30px, 8vw, 52px); color: var(--cream);
  padding: 8px 0; opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu a:nth-child(1){ transition-delay: .08s; }
.mobile-menu a:nth-child(2){ transition-delay: .14s; }
.mobile-menu a:nth-child(3){ transition-delay: .20s; }
.mobile-menu a:nth-child(4){ transition-delay: .26s; }
.mobile-menu a:nth-child(5){ transition-delay: .32s; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--gold); }
.mobile-menu .mm-close { position: absolute; top: 26px; right: 26px; background: none; border: 0; color: var(--gold); font-size: 34px; }

/* ============================================================
   SCROLL REVEAL primitives
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-44px); }
[data-reveal="right"] { transform: translateX(44px); }
[data-reveal="zoom"] { transform: scale(1.06); }
[data-reveal].in { transform: none; }
[data-delay="1"]{ transition-delay: .1s; }
[data-delay="2"]{ transition-delay: .2s; }
[data-delay="3"]{ transition-delay: .3s; }
[data-delay="4"]{ transition-delay: .4s; }
[data-delay="5"]{ transition-delay: .5s; }

/* clip reveal for images */
.clip-reveal { position: relative; overflow: hidden; }
.clip-reveal img, .clip-reveal .media { transform: scale(1.18); transition: transform 1.6s var(--ease); }
.clip-reveal::after {
  content: ""; position: absolute; inset: 0; background: var(--black); transform-origin: top;
  transition: transform 1.1s var(--ease-in-out);
}
.clip-reveal.in img, .clip-reveal.in .media { transform: scale(1); }
.clip-reveal.in::after { transform: scaleY(0); transform-origin: bottom; }

/* ============================================================
   INTERIOR PAGE HERO (shared by about/films/services/contact)
   ============================================================ */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(60px, 11vh, 130px)) 0 clamp(50px, 8vh, 90px); overflow: hidden; }
.page-hero__glow { position: absolute; top: -20%; left: 50%; transform: translateX(-50%); width: 100vw; height: 70vh; background: radial-gradient(50% 60% at 50% 30%, rgba(212,175,55,0.13), transparent 65%); pointer-events: none; }
.page-hero__inner { position: relative; z-index: 3; }
.page-hero .crumb { display: flex; gap: 12px; align-items: center; font-family: var(--heading); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 30px; }
.page-hero .crumb a { color: var(--text-dim); transition: color .3s; }
.page-hero .crumb a:hover { color: var(--gold); }
.page-hero .crumb i { color: var(--gold); font-style: normal; }
.page-hero__title { color: var(--cream); }
.page-hero__sub { margin-top: 24px; max-width: 60ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; border-top: 1px solid var(--line); padding: clamp(64px,9vh,110px) 0 40px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(20,16,8,0.4)); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; align-items: start; }
.footer__brand img { width: 64px; margin-bottom: 22px; filter: drop-shadow(0 0 18px rgba(212,175,55,0.3)); }
.footer__brand .wm { font-family: var(--display); font-size: 30px; letter-spacing: 0.12em; color: var(--cream); text-transform: uppercase; }
.footer__brand p { margin-top: 16px; max-width: 34ch; color: var(--text-dim); font-size: 15px; }
.footer__col h5 { font-family: var(--heading); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; font-weight: 600; }
.footer__col a, .footer__col p { display: block; color: var(--text-dim); font-size: 15px; padding: 6px 0; transition: color .3s, transform .3s var(--ease); }
.footer__col a:hover { color: var(--gold-light); transform: translateX(4px); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line-soft); font-size: 12.5px; letter-spacing: 0.06em; color: var(--text-faint); }
.socials { display: flex; gap: 12px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold); transition: all .4s var(--ease); }
.socials a:hover { background: var(--gold-grad); color: #1a1304; border-color: transparent; transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }

@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   RESPONSIVE NAV
   ============================================================ */
@media (max-width: 1024px) {
  .nav__group { display: none; }
  .nav__inner { grid-template-columns: auto 1fr auto; }
  .nav__group--l { display: none; }
  .nav__logo { align-items: flex-start; }
  .nav__logo { flex-direction: row; gap: 12px; }
  .nav__burger { display: block; justify-self: end; }
  .nav__inner > .nav__logo { grid-column: 1; justify-self: start; }
}

/* ---------- phone view ---------- */
@media (max-width: 640px) {
  :root { --nav-h: 76px; }
  .nav__logo img { width: 60px; }
  .nav.scrolled .nav__logo img { width: 50px; }
  .section { padding: 66px 0; }
  .section--tight { padding: 46px 0; }
  .wrap { padding: 0 20px; }
  .btn { padding: 15px 26px; font-size: 12px; }
  .footer__top { gap: 30px; }
  .footer__brand img { width: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.2s !important; }
  .clip-reveal::after { display: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  #particles { display: none; }
}
