/* =========================================
   CALIEXEC FILMS — Horizontal-scroll layout
   ========================================= */

:root {
  --black:    #060608;
  --dark-1:   #0e0e10;
  --dark-2:   #141418;
  --gold-1:   #c9a84c;
  --gold-2:   #e8c96b;
  --gold-3:   #f5e19a;
  --silver-1: #a0a8b0;
  --silver-2: #c8ced6;
  --text:     #e8e6e0;
  --muted:    #6b6f76;
  --border:   rgba(201,168,76,0.18);
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

/* --- CUSTOM CURSOR (desktop only) --- */
@media (pointer: fine) {
  * { cursor: none !important; }
}

#cursor {
  position: fixed;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(201,168,76,0.65);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease),
              height 0.35s var(--ease),
              border-color 0.35s var(--ease),
              opacity 0.3s ease;
  will-change: transform;
}
#cursor.cursor--hover {
  width: 70px;
  height: 70px;
  border-color: var(--gold-2);
}
#cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: var(--gold-2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* --- INTRO OVERLAY --- */
#intro {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

.intro-content {
  text-align: center;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s ease;
}
#intro.intro--show .intro-content {
  opacity: 1;
  transform: translateY(0);
}

.intro-logo-wrap { margin-bottom: 28px; }
.intro-logo { height: 56px; width: auto; margin: 0 auto; filter: brightness(1.1); }

.intro-line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
  margin: 0 auto 24px;
  transition: width 1s ease 0.4s;
}
#intro.intro--show .intro-line { width: 160px; }

.intro-sub {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.8s ease 0.7s;
}
#intro.intro--show .intro-sub { opacity: 1; }

.intro-curtain {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: var(--black);
  transform: translateY(0);
  transition: transform 0s;
  z-index: 1;
}
#intro.intro--out .intro-curtain {
  transform: translateY(-100%);
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
#intro.intro--out .intro-content {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Camera-flash burst before curtain lifts */
@keyframes introFlash {
  0%   { opacity: 0; }
  15%  { opacity: 0.9; }
  45%  { opacity: 0.5; }
  65%  { opacity: 0.9; }
  100% { opacity: 0; }
}
.intro-flash {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: #fff;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}
.intro-flash.flash--go {
  animation: introFlash 0.45s ease forwards;
}

body.no-scroll { overflow: hidden; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  overscroll-behavior-y: auto; /* allows pull-to-refresh on mobile */
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- NAV --- */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  pointer-events: none;
}
#nav > * { pointer-events: auto; }

.nav-logo img { height: 38px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 36px; }

.nav-email,
.nav-info {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--silver-1);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.25s ease;
  padding: 0;
}
.nav-email:hover,
.nav-info:hover { color: var(--gold-2); }

/* ==========================================
   HORIZONTAL TRACK — native overflow scroll
   ========================================== */
.h-track {
  display: flex;
  flex-direction: row;
  height: 100vh;
  height: 100dvh;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x; /* left/right swipe scrolls; pull-to-refresh preserved */
}
.h-track::-webkit-scrollbar { display: none; }

/* Block scroll during intro */
body.no-scroll .h-track { overflow: hidden; }

.panel {
  flex: 0 0 auto;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ==========================================
   HERO PANEL — full-screen video background
   ========================================== */
#hero {
  width: 100vw;
  padding: 0 48px;
  background: var(--black);
  overflow: hidden;
}

/* Full-viewport video layer */
.hero-video-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  overflow: hidden;
  z-index: 0;
  /* explicit position:relative so child iframes are positioned relative to this */
  /* (position:absolute already creates a containing block) */
}

/* Iframe fills the container — Vimeo background=1 handles aspect ratio internally */
.hero-video-bg iframe {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
  border: none;
}

/* Gradient overlay — keeps text legible */
.hero-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(
    135deg,
    rgba(6,6,8,0.72) 0%,
    rgba(6,6,8,0.28) 60%,
    rgba(6,6,8,0.55) 100%
  );
  z-index: 1;
}

/* Debris particle canvas */
#heroParticles {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding-top: 30px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text);
  padding-bottom: 0.15em;
}

.hero-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-2);
}

.hero-sub {
  margin-top: 40px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Watch Reel button */
.hero-reel-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
  padding: 14px 30px;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.45);
  color: var(--gold-2);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.hero-reel-btn:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold-2);
}

/* Play triangle inside button */
.hero-reel-icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent var(--gold-2);
  flex-shrink: 0;
}


/* --- WORK PANEL --- */
.panel-work {
  width: auto;
  background: var(--black);
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  position: relative;
}

.work-header { display: none; }

.work-eyebrow {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-1);
}

.work-grid {
  position: relative;
  width: 500vh;
  height: 100vh;
}

.work-item {
  cursor: pointer;
  position: absolute;
  transition: transform 0.5s var(--ease), filter 0.4s ease;
}

.work-item:hover { z-index: 10; }

.work-item:nth-child(1)  { width: 52vh; top: 5vh;   left: 4vh; }
.work-item:nth-child(2)  { width: 50vh; top: 10vh;  left: 64vh; }
.work-item:nth-child(3)  { width: 46vh; top: 50vh;  left: 10vh; }
.work-item:nth-child(4)  { width: 46vh; top: 52vh;  left: 76vh; }
.work-item:nth-child(5)  { width: 46vh; top: 6vh;   left: 130vh; }
.work-item:nth-child(6)  { width: 48vh; top: 50vh;  left: 140vh; }
.work-item:nth-child(7)  { width: 46vh; top: 8vh;   left: 196vh; }
.work-item:nth-child(8)  { width: 46vh; top: 10vh;  left: 250vh; }
.work-item:nth-child(9)  { width: 48vh; top: 54vh;  left: 258vh; }
.work-item:nth-child(10) { width: 54vh; top: 8vh;   left: 318vh; }
.work-item:nth-child(11) { width: 54vh; top: 52vh;  left: 332vh; }

.work-thumb {
  position: relative;
  overflow: hidden;
  background: var(--dark-2);
  aspect-ratio: 16 / 9;
}

.work-thumb iframe {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
  filter: grayscale(10%) brightness(0.85);
  transition: filter 0.4s ease;
}

.work-item:hover .work-thumb iframe {
  filter: grayscale(0%) brightness(1);
}

.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 2px 0;
}

.work-client {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text);
}

.work-type {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-1);
}

/* --- ABOUT PANEL --- */
.panel-text {
  width: 65vw;
  min-width: 500px;
  padding: 0 80px;
  background: var(--black);
  position: relative;
}

.panel-text::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(201,168,76,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.panel-text-inner { max-width: 700px; position: relative; }

.about-body {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.9rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
  color: var(--text);
}

.about-cta {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-2);
  border-bottom: 1px solid rgba(201,168,76,0.4);
  padding-bottom: 4px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.about-cta:hover { border-color: var(--gold-2); color: var(--gold-3); }

/* --- SERVICES PANEL --- */
.panel-services {
  width: 72vw;
  min-width: 600px;
  padding: 0 80px;
  background: var(--dark-1);
}

.services-inner { width: 100%; }

.services-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 60px;
  color: var(--text);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.service-col-title {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-1);
  margin-bottom: 18px;
}

.service-col ul { display: flex; flex-direction: column; gap: 10px; }

.service-col li {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--silver-2);
  line-height: 1.4;
}

/* --- CONTACT PANEL --- */
.panel-contact {
  width: 100vw;
  padding: 0 48px;
  background: var(--black);
  position: relative;
  justify-content: space-between;
  padding-top: 100px;
  padding-bottom: 0;
}

.panel-contact::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(201,168,76,0.04) 0%, transparent 65%);
  pointer-events: none;
}

.contact-inner { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; }

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 7.5rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 60px;
  color: var(--text);
  padding-bottom: 0.15em;
}

.contact-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-2);
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 36px;
}

.contact-item { display: flex; flex-direction: column; gap: 8px; }

.contact-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-1);
}

.contact-item a,
.contact-item span {
  font-size: 0.9rem;
  color: var(--silver-2);
  transition: color 0.2s ease;
}
.contact-item a:hover { color: var(--gold-2); }

/* --- FOOTER --- */
.h-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: auto;
}

.footer-copy,
.footer-tag {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ==========================================
   EXPAND OVERLAY
   Zooms from clicked work item to full screen
   ========================================== */
.expand-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0;
  background: rgba(4,4,6,0);
  transition: background 0.4s ease, opacity 0s 0.5s;
}

.expand-overlay.open {
  pointer-events: all;
  opacity: 1;
  background: rgba(4,4,6,0.96);
  transition: background 0.4s ease 0.15s, opacity 0s 0s;
}

.expand-close {
  position: absolute;
  top: 28px; right: 36px;
  z-index: 10;
  background: none;
  border: none;
  color: var(--silver-1);
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease 0.4s, color 0.2s ease;
}
.expand-overlay.open .expand-close {
  opacity: 0.7;
}
.expand-close:hover { opacity: 1 !important; color: var(--gold-2); }

/* The frame starts at the card position (set by JS) and expands */
.expand-frame {
  position: fixed;
  overflow: hidden;
  background: var(--dark-2);
  /* JS sets top/left/width/height initially, then transitions to full screen */
  transition: top    0.55s cubic-bezier(0.76, 0, 0.24, 1),
              left   0.55s cubic-bezier(0.76, 0, 0.24, 1),
              width  0.55s cubic-bezier(0.76, 0, 0.24, 1),
              height 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}

.expand-frame iframe {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
  opacity: 0;
  transition: opacity 0.3s ease 0.4s;
}
.expand-overlay.open .expand-frame iframe {
  opacity: 1;
}

/* --- RESPONSIVE (mobile: stays horizontal) --- */
@media (max-width: 768px) {
  #nav { padding: 20px 24px; }
  .nav-right { gap: 18px; }
  .nav-email { display: none; }

  #hero { width: 100vw; padding: 0 24px; }
  .hero-headline { font-size: clamp(2.4rem, 9vw, 4rem); }
  .hero-reel-btn { margin-top: 28px; }

  .panel-work { padding-top: 0; }
  .work-header { display: block; padding: 60px 24px 16px; align-self: flex-start; }

  /* Horizontal card strip on mobile */
  .work-grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    width: auto;
    height: 100%;
    padding: 0 20px;
  }
  .work-item {
    position: relative !important;
    flex: 0 0 75vw;
    width: 75vw !important;
    top: auto !important;
    left: auto !important;
  }
  /* Tap-to-play hint visible on the dark placeholder before video loads */
  .work-item::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    color: var(--gold-1);
    font-size: 1.4rem;
    opacity: 0.55;
    pointer-events: none;
  }
  .work-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
  }

  .panel-text {
    width: 100vw;
    min-width: 100vw;
    padding: 0 28px;
  }
  .panel-text-inner { max-width: none; }
  .about-body { font-size: clamp(1.1rem, 4.5vw, 1.5rem); }

  .panel-services {
    width: 100vw;
    min-width: 100vw;
    padding: 40px 28px;
    justify-content: flex-start;
    overflow-y: auto;
  }
  .services-title { font-size: clamp(1.6rem, 6vw, 2.5rem); margin-bottom: 24px; }
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .service-col ul li { font-size: 0.9rem; padding: 5px 0; }

  .panel-faq { width: 100vw; padding: 40px 24px; }
  .panel-contact { width: 100vw; padding: 0 24px; }
  .contact-headline { font-size: clamp(2rem, 7vw, 3rem); margin-bottom: 32px; }
  .contact-details { grid-template-columns: 1fr 1fr; gap: 24px; }

  .h-footer { flex-direction: column; gap: 8px; text-align: center; }
  .expand-close { top: 16px; right: 20px; }
}

/* =========================================
   FAQ PANEL
   ========================================= */

.panel-faq {
  width: 100vw;
  background: var(--dark-1);
  padding: 0 80px;
  overflow-y: auto;
  justify-content: flex-start;
  padding-top: 80px;
  padding-bottom: 80px;
}

.faq-inner {
  max-width: 680px;
  width: 100%;
}

.faq-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-top: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  padding: 1.25rem 2rem 1.25rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  line-height: 1.45;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-1);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}

.faq-item[open] .faq-q::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--silver-1);
  line-height: 1.75;
  padding: 0 2rem 1.5rem 0;
}

/* Visually hidden (screen reader / crawler accessible) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Footer privacy link */
.footer-privacy {
  font-size: 0.6875rem;
  color: var(--muted);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
  margin-top: 0.25rem;
}
.footer-privacy:hover { opacity: 1; }
