:root {
  --bg: #07070a;
  --bg-2: #0f0f14;
  --line: #22222b;
  --text: #f2f0ea;
  --muted: #9a98a3;
  --accent: #ff2a2a;   /* red laser */
  --accent-gradient: linear-gradient(90deg, #ffffff 0%, #ff2a2a 60%); /* white into red */
  --accent-2: #2ee6ff; /* cyan wash */
  --radius: 14px;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .logo, .btn { font-family: "Space Grotesk", sans-serif; }
/* Cinematic display font for the big headings (same as the thumbnail titles) */
h1, h2 { font-family: "Anton", Impact, "Arial Narrow Bold", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.eyebrow {
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: .75rem;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(7,7,10,.85), rgba(7,7,10,0));
  backdrop-filter: blur(6px);
}
.logo { font-weight: 700; font-size: 1.15rem; letter-spacing: .08em; }
.logo span { color: var(--accent); }
/* Camera-style recording dot before the name */
.logo { display: inline-flex; align-items: center; }
.rec-dot {
  width: 9px; height: 9px; border-radius: 50%; margin-right: .6rem; flex-shrink: 0;
  background: var(--accent); box-shadow: 0 0 8px rgba(255,42,42,.8);
  animation: rec 1.6s ease-in-out infinite;
}
@keyframes rec { 0%, 45% { opacity: 1; } 60%, 90% { opacity: .15; } 100% { opacity: 1; } }
.nav nav { display: flex; gap: clamp(.9rem, 2.5vw, 2rem); align-items: center; font-size: .9rem; }
.nav nav a { color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--text); }
.nav .nav-cta {
  color: var(--text); border: 1px solid var(--accent);
  padding: .4rem 1rem; border-radius: 999px;
}
.nav .nav-cta:hover { background: var(--accent); }

/* ---------- PHONE MENU ---------- */
.menu-toggle {
  display: none; position: relative; width: 44px; height: 44px; margin-left: .25rem;
  background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; cursor: pointer;
}
.menu-toggle span {
  position: absolute; left: 13px; width: 16px; height: 1.5px; background: var(--text);
  transition: transform .3s ease, top .3s ease;
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 24px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 7rem clamp(1rem, 6vw, 2rem) 2.5rem;
  background: rgba(7,7,10,.97); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .3s ease;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.open { opacity: 1; }
.mobile-menu nav { display: flex; flex-direction: column; gap: .35rem; }
.mobile-menu nav a {
  font-family: "Anton", Impact, sans-serif; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(2.6rem, 13vw, 4rem); line-height: 1.1; color: var(--text);
  opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .4s ease, color .2s;
}
.mobile-menu.open nav a { opacity: 1; transform: none; }
.mobile-menu.open nav a:nth-child(2) { transition-delay: .04s; }
.mobile-menu.open nav a:nth-child(3) { transition-delay: .08s; }
.mobile-menu.open nav a:nth-child(4) { transition-delay: .12s; }
.mobile-menu.open nav a:nth-child(5) { transition-delay: .16s; }
.mobile-menu nav a:active { color: var(--accent); }
.mobile-menu .mobile-menu-cta {
  background: var(--accent-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent; margin-top: .5rem;
  align-self: flex-start; /* gradient spans just the words, so the red end shows fully */
}
.mobile-menu-foot { display: flex; gap: 1.5rem; color: var(--muted); font-size: .9rem; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 500; font-size: .95rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #ff4d4d; }
.btn-ghost { border-color: rgba(255,255,255,.3); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: min(100svh, 960px);
  display: flex; align-items: flex-end;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(4rem, 10vh, 7rem);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media iframe {
  position: absolute; top: 50%; left: 50%;
  width: 177.78vh; height: 56.25vw; min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%); pointer-events: none; border: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(7,7,10,.1) 50%, rgba(7,7,10,.35) 100%);
}
.hero-content { position: relative; max-width: 780px; }
.hero h1 {
  font-size: clamp(2.8rem, 7.5vw, 6rem);
  line-height: .98; letter-spacing: .01em; margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  background: var(--accent-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: #cfcdd6; font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 520px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; right: clamp(1rem, 4vw, 3rem); bottom: 2rem;
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  writing-mode: vertical-rl;
}

/* ---------- YUMA-STYLE MOVING HEADS ---------- */
.lightshow {
  --blue: 45, 90, 255;
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(ellipse 75% 60% at 62% 0%, rgba(30, 55, 200, .5), transparent 72%),
    radial-gradient(ellipse at 50% 110%, rgba(15, 25, 90, .5) 0%, var(--bg) 60%);
}
/* A ceiling fixture: glowing lens (hot spot) plus a short, soft cone of light.
   script.js sets its position, size (perspective), aim, and intensity every frame. */
.fx { position: absolute; width: 0; height: 0; }
.fx .lens {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: radial-gradient(circle, #eaf6ff 0%, rgba(150, 200, 255, .9) 35%, rgba(var(--blue), .35) 65%, transparent 75%);
  box-shadow: 0 0 22px 8px rgba(var(--blue), .7);
}
.fx .cone {
  position: absolute; top: 0; left: 0; width: 48px; height: 220px; margin-left: -24px;
  transform-origin: 50% 0;
  clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
  background: linear-gradient(to bottom, rgba(170, 210, 255, .95) 0%, rgba(var(--blue), .65) 28%, rgba(var(--blue), .2) 68%, transparent 100%);
  filter: blur(4px); mix-blend-mode: screen;
}
/* Dust / mirror-ball sparkle hanging in the haze */
.dust {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: #cfe4ff; box-shadow: 0 0 4px rgba(150, 200, 255, .8);
  opacity: 0; animation: twinkle var(--d, 4s) ease-in-out infinite; animation-delay: var(--delay, 0s);
}
@keyframes twinkle { 0%, 100% { opacity: 0; } 50% { opacity: var(--o, .6); } }

/* ---------- CREDITS ---------- */
.credits {
  display: flex; align-items: center; gap: 2rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.credits p { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .2em; white-space: nowrap; flex-shrink: 0; }
.credits-track {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.credits ul { display: flex; width: max-content; list-style: none; animation: marquee var(--marquee-duration, 30s) linear infinite; }
.credits-track:hover ul { animation-play-state: paused; }
.credits li { white-space: nowrap; font-family: "Space Grotesk", sans-serif; font-weight: 500; color: #d8d6de; padding-right: 2.5rem; }
.credits li::after { content: "·"; color: var(--accent); margin-left: 2.5rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 4vw, 3rem); }
.section-head { margin-bottom: 3rem; max-width: 640px; }
.section h2 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); line-height: 1.05; letter-spacing: .01em; }
.section-sub { color: var(--muted); margin-top: 1rem; }

/* ---------- WORK GRID ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.card { cursor: pointer; }
.card-thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2);
}
.card-thumb img, .card-thumb .thumb-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease;
}
.card:hover .card-thumb img, .card:hover .thumb-fallback { transform: scale(1.05); }
/* Logo PNGs have built-in transparent padding, so they're drawn a bit taller than the card */
.thumb-logo {
  position: absolute; inset: 0; background-color: #000;
  background-repeat: no-repeat; background-position: center; background-size: auto 115%;
  transition: transform .6s ease;
}
.card:hover .thumb-logo { transform: scale(1.05); }
/* Tall flyers: shown whole, on a blurred, darkened copy that fills the 16:9 frame */
.thumb-poster { position: absolute; inset: 0; overflow: hidden; background: #000; }
.thumb-poster::before {
  content: ""; position: absolute; inset: -10%;
  background: var(--poster) center / cover no-repeat;
  filter: blur(22px) brightness(.55) saturate(1.2);
}
.card-thumb .thumb-poster img {
  position: relative; inset: auto; display: block; margin: 0 auto;
  width: auto; height: 100%; object-fit: contain;
  box-shadow: 0 0 40px rgba(0,0,0,.6);
}
.card-thumb::after {
  content: "▶"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 1.6rem; color: #fff; background: rgba(7,7,10,.35);
  opacity: 0; transition: opacity .3s; z-index: 2;
}
.card:hover .card-thumb::after { opacity: 1; }
.card-link .card-thumb::after { content: "↗"; }

/* Cinematic title text over a thumbnail */
.thumb-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 1.25rem 1.1rem;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.25) 40%, transparent 65%);
}
.thumb-title {
  font-family: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: .95;
  text-transform: uppercase; letter-spacing: .02em; color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.6);
}
.thumb-sub {
  margin-top: .45rem; font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: rgba(255,255,255,.85);
}
.card-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: .9rem; gap: 1rem; }
.card-meta h3 { font-size: 1.1rem; font-weight: 500; }
.card-meta span { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.card-credit { color: var(--muted); font-size: .78rem; margin-top: .15rem; }
.card-tag { color: var(--accent-2); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- COLOR COMPARE ---------- */
.compare {
  position: relative; aspect-ratio: 21 / 9; border-radius: var(--radius); overflow: hidden;
  user-select: none; --pos: 50%;
}
.compare-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
/* Placeholder scene: swap for real stills via --still in script.js */
.compare-img {
  background-image: var(--still,
    radial-gradient(ellipse 18% 60% at 30% 0%, rgba(255,42,42,.9), transparent 70%),
    radial-gradient(ellipse 18% 60% at 70% 0%, rgba(46,230,255,.85), transparent 70%),
    radial-gradient(ellipse 30% 25% at 50% 45%, rgba(255,200,120,.9), transparent 70%),
    linear-gradient(to top, #050507 0%, #050507 22%, transparent 22%),
    radial-gradient(ellipse at 50% 100%, #3a0f4d 0%, #0a0612 70%));
}
.compare-before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  /* Emulates a flat, low-contrast log image when no real "before" still is provided */
  filter: saturate(.25) contrast(.55) brightness(1.25) sepia(.08);
}
.compare-before.real { filter: none; }
.compare-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.compare.has-video { aspect-ratio: 16 / 9; background: #000; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px;
  background: #fff; transform: translateX(-1px); pointer-events: none;
}
.compare-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: #000; display: grid; place-items: center; font-size: 1.1rem;
}
.compare input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.compare-tag {
  position: absolute; top: 1rem; padding: .3rem .7rem; border-radius: 999px;
  font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px); pointer-events: none;
}
.tag-before { left: 1rem; }
.tag-after { right: 1rem; }

/* ---------- ABOUT ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p:not(.eyebrow) { color: #cfcdd6; margin-bottom: 1rem; }
/* Keep the heading clear of the fixed nav when jumped to from the menu */
.packages { scroll-margin-top: 7rem; }
.section .packages-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; letter-spacing: .02em; margin-bottom: 1.25rem; }
.services { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { background: var(--bg); padding: 1.4rem 1.5rem; transition: background .25s; }
.service:hover { background: var(--bg-2); }
.service h3 { font-size: 1.05rem; font-weight: 500; margin-bottom: .3rem; }
.service p { color: var(--muted); font-size: .92rem; }

.kit { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem); }
.kit-rental { color: var(--text); font-size: .95rem; margin-top: .6rem; }
.kit-rental::before { content: "→ "; color: var(--accent); }
.kit-line { color: var(--muted); font-size: .95rem; border-top: 1px solid var(--line); padding-top: 1rem; }

/* ---------- CONTACT ---------- */
.contact { text-align: center; }
.contact h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.contact .section-sub { margin-bottom: 2.5rem; }
.contact-form { max-width: 640px; margin: 0 auto; display: grid; gap: 1rem; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input, .contact-form textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text); font: inherit; padding: .9rem 1rem; border-radius: 10px;
  color-scheme: dark;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form button { justify-self: center; margin-top: .5rem; }
.contact-form button:disabled { opacity: .6; cursor: wait; transform: none; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 1.5rem; font-size: .95rem; color: var(--muted); }
.form-status.ok { color: var(--text); }
.form-status.ok::before { content: "✓ "; color: var(--accent); }
.form-status.error { color: #ff8a8a; }
.form-status a { text-decoration: underline; }
.socials { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-top: 3rem; color: var(--muted); font-size: .9rem; }
.socials a:hover { color: var(--accent); }

.footer { text-align: center; padding: 2rem 1rem 3rem; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92);
  display: grid; place-items: center; padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox-frame { width: min(1200px, 100%); aspect-ratio: 16 / 9; }
.lightbox-frame.vertical { width: min(480px, 100%); aspect-ratio: auto; max-height: 90vh; overflow-y: auto; border-radius: 8px; }
.lightbox-frame.vertical iframe { display: block; height: 560px; background: #fff; }
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; }
.lightbox-empty { display: grid; place-items: center; height: 100%; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; text-align: center; padding: 1rem; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 1.1rem; cursor: pointer;
}

/* ---------- REVEAL ON SCROLL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- MOBILE ---------- */
@media (max-width: 800px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .menu-toggle { display: block; }
  .about { grid-template-columns: 1fr; }
  .compare:not(.has-video) { aspect-ratio: 4 / 3; }
  .contact-form .row { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dust { animation: none; opacity: .3; }
  .rec-dot { animation: none; }
  .credits ul { animation: none; }
  .credits-track { overflow-x: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
