/* ============================================
   EPIXX — Cinema Portfolio
   Inspired by premium video editor aesthetics
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cormorant+Garamond:ital,wght@1,300;1,400;1,600&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ---------- Variables ---------- */
:root {
  --bg:        #07090f;
  --bg-2:      #0d1120;
  --bg-3:      #111827;
  --surface:   #131726;
  --surface-2: #1a2035;
  --border:    rgba(255,255,255,0.06);
  --border-2:  rgba(255,255,255,0.10);

  --accent:    #ff5500;
  --accent-2:  #ff7733;
  --glow:      rgba(255,85,0,0.35);
  --glow-soft: rgba(255,85,0,0.12);

  --white:     #ffffff;
  --off:       #dde3f0;
  --gray:      #8892a4;
  --muted:     #3d4560;

  --display:   'Bebas Neue', sans-serif;
  --serif:     'Cormorant Garamond', serif;
  --body:      'Space Grotesk', sans-serif;

  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.83, 0, 0.17, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; cursor: none; }
button { font-family: inherit; border: none; background: none; color: inherit; cursor: none; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #000; }

/* ---------- Noise ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ---------- Cursor ---------- */
.cursor-dot {
  position: fixed; width: 7px; height: 7px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 99999;
  transform: translate(-50%,-50%);
}
.cursor-ring {
  position: fixed; width: 34px; height: 34px;
  border: 1.5px solid rgba(255,85,0,0.45); border-radius: 50%;
  pointer-events: none; z-index: 99998;
  transform: translate(-50%,-50%);
  transition: width .35s var(--ease), height .35s var(--ease), border-color .3s;
}
.cursor-ring.hover { width: 58px; height: 58px; border-color: var(--accent); }

/* ---------- Container ---------- */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px);
}

/* ============================================
   LOADER
   ============================================ */
/* New Premium Loader Styles */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
  opacity: 1;
  visibility: visible;
}
.loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-content {
  width: 100%;
  max-width: 320px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.loader-logo {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 64px);
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 24px;
  animation: logoGlow 2s ease-in-out infinite alternate;
}
.loader-logo em {
  color: var(--accent);
  font-style: normal;
  text-shadow: 0 0 12px var(--glow);
}
.loader-progress-container {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}
.loader-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 8px var(--glow);
  transition: width 0.1s linear;
}
.loader-status {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-family: var(--body);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gray);
  text-transform: uppercase;
}
#loaderCount {
  color: var(--accent);
  font-weight: 700;
}
@keyframes logoGlow {
  0% { transform: scale(0.98); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; text-shadow: 0 0 15px rgba(255,255,255,0.1); }
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 24px 0;
  transition: padding .5s var(--ease);
}
.nav.scrolled {
  padding: 14px 0;
  background: rgba(7,9,15,0.82);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--display);
  font-size: 26px; letter-spacing: 0.08em; line-height: 1;
}
.nav-logo em { color: var(--accent); font-style: normal; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gray);
  position: relative; overflow: hidden; display: inline-block;
  transition: color .3s;
}
.nav-links a::after {
  content: attr(data-text);
  position: absolute; top: 100%; left: 0; color: var(--white);
  transition: transform .4s var(--ease);
}
.nav-links a span { display: block; transition: transform .4s var(--ease); }
.nav-links a:hover span { transform: translateY(-100%); }
.nav-links a:hover::after { transform: translateY(-100%); }

.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-ig {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gray);
  transition: color .3s;
}
.nav-ig svg { width: 15px; height: 15px; fill: currentColor; }
.nav-ig:hover { color: var(--white); }

.nav-cta {
  padding: 11px 26px; background: var(--accent);
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; border-radius: 2px;
  position: relative; overflow: hidden;
  transition: box-shadow .3s;
}
.nav-cta::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent-2);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav-cta:hover::before { transform: scaleX(1); transform-origin: left; }
.nav-cta:hover { box-shadow: 0 0 36px var(--glow); }
.nav-cta span { position: relative; z-index: 1; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 28px; }
.nav-toggle span {
  display: block; height: 1.5px; background: var(--white);
  transition: all .4s var(--ease); transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================
   HERO — Cinema style
   ============================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: stretch;
  overflow: hidden; padding-top: 0;
}

/* Full-screen dark-navy gradient background */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(255,85,0,0.07) 0%, transparent 65%),
              radial-gradient(ellipse 50% 60% at 15% 60%, rgba(30,50,120,0.15) 0%, transparent 65%),
              var(--bg);
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 50%, black 30%, transparent);
}

/* Film grain lines at top */
.hero-film-strip {
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px; z-index: 2;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0px, var(--accent) 20px,
    transparent 20px, transparent 30px
  );
  opacity: 0.5;
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  width: 100%; max-width: none;
  margin: 0;
  padding: 0 0 0 clamp(20px, 5vw, 72px);
  min-height: 100vh;
}

/* LEFT — Typography */
.hero-left {
  max-width: 620px;
  padding-top: clamp(100px, 14vh, 160px);
  padding-bottom: clamp(60px, 8vh, 100px);
}

.hero-year-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--border-2); border-radius: 100px;
  background: rgba(255,255,255,0.03);
  margin-bottom: clamp(20px, 2.5vw, 32px);
  opacity: 0; transform: translateY(12px);
}
.hero-year-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 11px; color: #000;
  letter-spacing: 0.04em;
}
.hero-year-text {
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gray);
}

/* Giant name */
.hero-name {
  font-family: var(--display);
  font-size: clamp(80px, 11vw, 160px);
  line-height: 0.88;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
  overflow: hidden;
}
.hero-name .name-line {
  display: block; overflow: hidden;
}
.hero-name .name-inner {
  display: block;
  transform: translateY(110%);
  will-change: transform;
}
.hero-name .accent { color: var(--accent); }

/* Role / descriptor */
.hero-role {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 42px);
  color: var(--gray);
  letter-spacing: 0.01em;
  margin-bottom: clamp(24px, 3vw, 40px);
  overflow: hidden;
}
.hero-role span { display: block; transform: translateY(100%); }
.hero-role strong { color: var(--off); font-weight: 400; }

.hero-desc {
  font-size: clamp(14px, 1.1vw, 15px);
  line-height: 1.75;
  color: var(--gray);
  max-width: 420px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
  opacity: 0; transform: translateY(16px);
}
.hero-desc strong { color: var(--off); font-weight: 500; }

.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  opacity: 0; transform: translateY(16px);
}

.btn-main {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px;
  background: var(--accent);
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; border-radius: 2px;
  position: relative; overflow: hidden;
  transition: box-shadow .3s;
}
.btn-main::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent-2);
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.btn-main:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-main:hover { box-shadow: 0 6px 36px var(--glow); }
.btn-main span, .btn-main svg { position: relative; z-index: 1; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px;
  border: 1px solid var(--border-2);
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; border-radius: 2px;
  transition: all .4s var(--ease);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--glow-soft); }

/* Stats row */
.hero-stats {
  display: flex; gap: 0;
  border-top: 1px solid var(--border);
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: clamp(20px, 2.5vw, 32px);
  opacity: 0;
}
.hero-stat { flex: 1; padding-right: 28px; border-right: 1px solid var(--border); margin-right: 28px; }
.hero-stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.hero-stat-num {
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1; letter-spacing: 0.04em;
  color: var(--white);
}
.hero-stat-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  margin-top: 4px;
}

/* RIGHT — Edge-bleed cinematic photo */
.hero-right {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  margin-right: calc(-1 * clamp(20px, 5vw, 72px));
  align-self: stretch;
  min-height: 100%;
}

/* Photo container — bleeds to viewport edge */
.hero-photo-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  overflow: hidden;
}
.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 12s var(--ease);
  will-change: transform;
}
.hero-photo-wrap:hover img {
  transform: scale(1.03);
}

/* Multi-directional gradient fade to blend into the dark background */
.hero-photo-fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    /* Left fade — strong, blends into text area */
    linear-gradient(to right, var(--bg) 0%, rgba(7,9,15,0.85) 15%, rgba(7,9,15,0.4) 40%, transparent 65%),
    /* Bottom fade */
    linear-gradient(to top, var(--bg) 0%, rgba(7,9,15,0.5) 20%, transparent 50%),
    /* Top fade — subtle */
    linear-gradient(to bottom, rgba(7,9,15,0.6) 0%, transparent 25%);
  pointer-events: none;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 2; opacity: 0;
}
.hero-scroll-label {
  font-size: 10px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
}
.hero-scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: linePulse 2s ease-in-out infinite;
}
@keyframes linePulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  background: var(--bg-2);
}
.marquee-track {
  display: flex; align-items: center;
  width: max-content;
  animation: marquee 28s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex; align-items: center; gap: 18px;
  padding: 0 36px; white-space: nowrap;
  font-family: var(--display); font-size: 18px;
  letter-spacing: 0.06em; color: var(--muted);
}
.marquee-item.lit { color: var(--off); }
.marquee-sep { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ============================================
   WORK — Premium Redesign
   ============================================ */
.work {
  padding: clamp(100px, 12vw, 180px) 0;
  position: relative;
  overflow: hidden;
}

/* Ambient background glow orbs */
.work-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.5;
}
.work-glow-1 {
  width: 600px; height: 600px;
  top: -100px; left: -200px;
  background: radial-gradient(circle, rgba(255,85,0,0.08) 0%, transparent 70%);
}
.work-glow-2 {
  width: 500px; height: 500px;
  bottom: 0; right: -150px;
  background: radial-gradient(circle, rgba(100,60,255,0.06) 0%, transparent 70%);
}

/* Large watermark text */
.work-watermark {
  position: absolute;
  top: clamp(60px, 8vw, 120px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: clamp(140px, 22vw, 360px);
  color: rgba(255,255,255,0.015);
  letter-spacing: 0.06em;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}

/* Section Head — Work-specific layout */
.work-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 64px;
}

.section-head {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px; gap: 32px;
  flex-wrap: wrap;
}
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.section-label::before { content: ''; width: 22px; height: 1px; background: var(--accent); }

.section-title {
  font-family: var(--display);
  font-size: clamp(48px, 6.5vw, 92px);
  line-height: 0.92; letter-spacing: 0.02em;
}

/* Subtitle */
.work-subtitle {
  font-size: clamp(14px, 1.1vw, 15px);
  color: var(--gray);
  line-height: 1.8;
  max-width: 480px;
  margin-top: 20px;
}

/* Project count badge */
.work-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.work-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
}
.work-count-num {
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: 0.04em;
  color: var(--accent);
  line-height: 1;
}
.work-count-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

/* Filter Pills — Premium */
.filter-pills {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.filter-pill {
  padding: 8px 20px;
  border: 1px solid var(--border); border-radius: 100px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gray);
  white-space: nowrap;
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.filter-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: var(--accent);
  transform: scale(0);
  transition: transform .4s var(--ease);
  z-index: -1;
}
.filter-pill.active {
  border-color: var(--accent);
  color: #000;
  font-weight: 700;
}
.filter-pill.active::before {
  transform: scale(1);
}
.filter-pill:hover:not(.active) {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255,85,0,0.06);
}

/* Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

/* Hidden class for filtering */
.hidden {
  display: none !important;
}

/* ============================================
   VIDEO CARD — Premium Glassmorphism
   ============================================ */
.video-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(135deg, rgba(19,23,38,0.8) 0%, rgba(13,17,32,0.9) 100%);
  transition: border-color .5s var(--ease), transform .6s var(--ease), box-shadow .5s var(--ease);
  cursor: none;
  position: relative;
  will-change: transform;
  transform-style: preserve-3d;
  perspective: 800px;
}

/* Mouse-following glow border */
.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y),
    rgba(255,85,0,0.15),
    transparent 40%
  );
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
  z-index: 0;
}

.video-card:hover .card-glow {
  opacity: 1;
}

.video-card:hover {
  border-color: rgba(255,85,0,0.25);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.4),
    0 0 80px rgba(255,85,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Card Thumbnail */
.card-thumb {
  position: relative; overflow: hidden; aspect-ratio: 9/16;
  z-index: 1;
}
.card-thumb video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), filter .6s var(--ease);
}
.video-card:hover .card-thumb video {
  transform: scale(1.05);
}

/* Overlay — premium gradient */
.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(7,9,15,0.95) 0%,
    rgba(7,9,15,0.4) 35%,
    rgba(7,9,15,0.1) 55%,
    rgba(7,9,15,0.05) 70%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity .5s var(--ease);
  z-index: 2;
}
.video-card:hover .card-overlay { opacity: 1; }

/* Play Button — premium */
.card-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0.6);
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,85,0,0.9);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: all .5s var(--ease);
  z-index: 4;
  box-shadow: 0 8px 32px rgba(255,85,0,0.3);
}
.video-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
}
.card-play:hover {
  transform: translate(-50%,-50%) scale(1.08) !important;
  box-shadow: 0 12px 48px rgba(255,85,0,0.45);
}
.card-play svg { width: 24px; height: 24px; fill: #000; margin-left: 3px; }

/* Category Tag — glassmorphism */
.card-tag {
  position: absolute; top: 16px; left: 16px; z-index: 4;
  padding: 6px 14px;
  background: rgba(7,9,15,0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--off);
  transition: all .4s var(--ease);
}
.video-card:hover .card-tag {
  background: rgba(255,85,0,0.15);
  border-color: rgba(255,85,0,0.3);
  color: var(--accent);
}

/* Card Info — bottom overlay */
.card-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px;
  transform: translateY(10px);
  opacity: 0;
  transition: all .5s var(--ease);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.video-card:hover .card-info {
  transform: translateY(0);
  opacity: 1;
}

.card-title {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.1;
}
.card-cat {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Watch CTA */
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off);
  width: fit-content;
  transition: all .35s var(--ease);
  transform: translateY(6px);
  opacity: 0;
}
.video-card:hover .card-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}
.card-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}
.card-cta svg {
  width: 10px;
  height: 10px;
}

/* Dynamic Stagger Translation */
@media (min-width: 1025px) {
  .work-grid > .video-card.vf-shift-4col {
    transform: translateY(60px);
  }
  .work-grid > .video-card.vf-shift-4col:hover {
    transform: translateY(54px);
  }
  .work {
    padding-bottom: clamp(160px, 16vw, 240px) !important;
  }
}

@media (max-width: 1024px) and (min-width: 541px) {
  .work-grid > .video-card.vf-shift-2col {
    transform: translateY(40px);
  }
  .work-grid > .video-card.vf-shift-2col:hover {
    transform: translateY(34px);
  }
  .work {
    padding-bottom: clamp(120px, 12vw, 180px) !important;
  }
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: clamp(80px,10vw,160px) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}

/* Large bg text */
.services-watermark {
  position: absolute; bottom: -20px; right: -20px;
  font-family: var(--display);
  font-size: clamp(100px,18vw,260px);
  color: rgba(255,255,255,0.015);
  letter-spacing: 0.04em; user-select: none;
  pointer-events: none; white-space: nowrap;
}

.services-layout {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(50px, 6vw, 110px);
  align-items: start;
}

.services-intro { padding-top: 8px; }
.services-desc {
  font-size: clamp(14px, 1.1vw, 15px);
  color: var(--gray); line-height: 1.8;
  margin-top: 20px;
}


.service-row {
  display: grid;
  grid-template-columns: 64px 1fr 40px;
  gap: 24px; align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.service-row:first-child { border-top: 1px solid var(--border); }

.service-row::before {
  content: ''; position: absolute; inset: 0;
  background: var(--glow-soft);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.service-row:hover::before { transform: scaleX(1); }

.s-num {
  font-family: var(--display);
  font-size: 44px; line-height: 1;
  color: rgba(255,255,255,0.06);
  letter-spacing: 0.02em;
  transition: color .4s;
  position: relative;
}
.service-row:hover .s-num { color: rgba(255,85,0,0.2); }

.s-body { position: relative; }
.s-name {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: 0.03em;
  transition: color .3s;
}
.service-row:hover .s-name { color: var(--accent); }
.s-desc {
  font-size: 13px; color: var(--gray); line-height: 1.6;
  margin-top: 4px;
}

.s-arrow {
  font-size: 28px; color: var(--muted);
  transition: all .4s var(--ease); position: relative;
  line-height: 1;
}
.service-row:hover .s-arrow { color: var(--accent); transform: rotate(-45deg); }

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: clamp(80px,10vw,160px) 0;
  position: relative; overflow: hidden;
}

.about-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px,6vw,96px);
  align-items: center;
}

/* Image */
.about-img {
  position: relative;
}
.about-img-inner {
  border-radius: 8px; overflow: hidden;
  aspect-ratio: 4/5; position: relative;
  border: 1px solid var(--border-2);
}
.about-img-inner img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  transition: transform 8s var(--ease);
}
.about-img-inner:hover img { transform: scale(1); }

/* Film strip decoration */
.film-strip {
  position: absolute; right: -24px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 4px; z-index: 2;
}
.film-hole {
  width: 14px; height: 10px;
  border: 1px solid rgba(255,85,0,0.25);
  border-radius: 1px; background: var(--bg);
}

.about-img-tag {
  position: absolute; bottom: 20px; left: 20px; z-index: 3;
  padding: 12px 18px;
  background: rgba(7,9,15,.8); backdrop-filter: blur(16px);
  border: 1px solid var(--border-2); border-radius: 6px;
}
.about-img-tag-name {
  font-family: var(--display); font-size: 20px;
  letter-spacing: 0.06em; line-height: 1;
}
.about-img-tag-role {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-top: 3px;
}

/* Content */
.about-heading {
  font-family: var(--display);
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.92; letter-spacing: 0.02em;
  margin: 16px 0 24px;
}
.about-heading .accent { color: var(--accent); }
.about-heading .italic {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.68em;
  letter-spacing: 0.01em;
}

.about-bio {
  font-size: clamp(14px,1.1vw,15px);
  color: var(--gray); line-height: 1.85; margin-bottom: 24px;
}
.about-bio strong { color: var(--off); font-weight: 500; }

.skills-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.skills-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.skill-chip {
  padding: 7px 16px;
  border: 1px solid var(--border-2); border-radius: 2px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--gray); transition: border-color .3s, color .3s, background-color .3s;
}
.skill-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--glow-soft); }

.about-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--white);
  border-bottom: 1px solid var(--border-2); padding-bottom: 12px;
  transition: all .4s var(--ease);
}
.about-link .arrow {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  transition: transform .4s var(--ease);
}
.about-link:hover .arrow { transform: rotate(-45deg); }
.about-link:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: clamp(80px,10vw,160px) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  position: relative; overflow: hidden;
}

/* Decorative circles */
.contact-circle {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255,85,0,0.08);
  pointer-events: none;
}
.contact-circle-1 { width: 600px; height: 600px; top: -200px; right: -200px; }
.contact-circle-2 { width: 400px; height: 400px; top: -100px; right: -100px; border-color: rgba(255,85,0,0.12); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(50px,7vw,120px);
  align-items: center;
  position: relative; z-index: 2;
}

/* Left — Big text */
.contact-heading {
  font-family: var(--display);
  font-size: clamp(52px, 7vw, 108px);
  line-height: 0.88; letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.contact-heading .accent { color: var(--accent); }

.contact-sub {
  font-size: clamp(14px,1.1vw,15px);
  color: var(--gray); line-height: 1.8;
  max-width: 380px; margin-bottom: 36px;
}

.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gray); transition: all .4s var(--ease);
}
.contact-link svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.contact-link:hover { border-color: var(--accent); color: var(--accent); background: var(--glow-soft); padding-left: 30px; }

/* Right — Form */
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-input {
  width: 100%; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; color: var(--white);
  font-family: var(--body); font-size: 14px;
  outline: none; transition: all .3s;
}
.form-input::placeholder { color: var(--muted); }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow-soft); background: var(--surface-2); }
textarea.form-input { resize: none; height: 130px; }

.form-btn {
  display: inline-flex; align-items: center;
  justify-content: center; gap: 10px;
  padding: 16px 40px; background: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; border-radius: 2px;
  position: relative; overflow: hidden; align-self: flex-start;
  transition: box-shadow .3s;
}
.form-btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent-2);
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.form-btn:hover::before { transform: scaleX(1); transform-origin: left; }
.form-btn:hover { box-shadow: 0 6px 36px var(--glow); }
.form-btn span, .form-btn svg { position: relative; z-index: 1; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.footer .container {
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--display); font-size: 22px; letter-spacing: 0.08em;
}
.footer-logo em { color: var(--accent); font-style: normal; }
.footer-copy { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.footer-copy span { color: var(--accent); }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a {
  font-size: 11px; color: var(--muted); letter-spacing: 0.08em;
  text-transform: uppercase; transition: color .3s;
}
.footer-nav a:hover { color: var(--white); }

/* ============================================
   MODAL — Enhanced
   ============================================ */
.modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-bg {
  position: absolute; inset: 0;
  background: rgba(7,9,15,.96);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
}
.modal-box {
  position: relative; z-index: 2;
  width: 100%; max-width: 1100px;
  border-radius: 14px; overflow: hidden;
  background: #000;
  transform: scale(.88) translateY(30px);
  transition: transform .6s var(--ease);
  box-shadow:
    0 50px 140px rgba(0,0,0,.9),
    0 0 100px rgba(255,85,0,0.06),
    0 0 0 1px rgba(255,255,255,0.06);
}
.modal.open .modal-box { transform: scale(1) translateY(0); }
.modal-box video { width: 100%; max-height: 84vh; outline: none; }

.modal-close {
  position: absolute; top: clamp(16px, 4vw, 32px); right: clamp(16px, 4vw, 32px);
  width: clamp(44px, 5vw, 52px); height: clamp(44px, 5vw, 52px);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  background: rgba(7,9,15,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all .35s var(--ease); z-index: 10;
}
.modal-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(90deg);
}
.modal-close svg {
  width: clamp(16px, 2vw, 20px); height: clamp(16px, 2vw, 20px);
  stroke: white; stroke-width: 2; fill: none;
}

/* Modal Metadata */
.modal-meta {
  position: absolute;
  bottom: clamp(16px, 4vw, 32px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
  opacity: 0;
  transition: opacity .4s var(--ease) .2s;
}
.modal.open .modal-meta { opacity: 1; }

.modal-title {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--white);
  background: rgba(7,9,15,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.08);
}
.modal-pos {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  background: rgba(7,9,15,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.06);
}

/* Modal Navigation */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(44px, 5vw, 56px);
  height: clamp(44px, 5vw, 56px);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  background: rgba(7,9,15,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all .35s var(--ease);
  z-index: 10;
  opacity: 0;
  cursor: none;
}
.modal.open .modal-nav { opacity: 1; transition-delay: .3s; }
.modal-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.08);
}
.modal-nav svg {
  width: 20px; height: 20px;
  stroke: var(--white);
  fill: none;
}
.modal-nav:hover svg { stroke: #000; }
.modal-prev { left: clamp(12px, 3vw, 28px); }
.modal-next { right: clamp(12px, 3vw, 28px); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; text-align: center; padding: 0 clamp(20px, 5vw, 72px); max-width: 1360px; margin: 0 auto; }
  .hero-left { padding-top: clamp(120px, 16vh, 180px); max-width: none; }
  .hero-right { display: none; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-desc { margin: 0 auto clamp(24px,3vw,40px); }
  .hero-year-tag { margin-left: auto; margin-right: auto; }
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .services-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; gap: 56px; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Work section responsive */
  .work-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .work-head-right {
    align-items: flex-start;
  }
  .work-subtitle { max-width: none; }
  .work-count { align-self: flex-start; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; inset: 0;
    background: rgba(7,9,15,.97);
    backdrop-filter: blur(30px);
    flex-direction: column; justify-content: center; align-items: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform .5s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 15px; }
  .nav-cta, .nav-ig { display: none; }
  .nav-toggle { display: flex; }

  .work-grid { gap: 14px; }

  /* Filter pills scroll */
  .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .filter-pills::-webkit-scrollbar { display: none; }

  .form-row { grid-template-columns: 1fr; }
  .modal { padding: 16px; }
  .modal-meta { display: none; }
  .modal-nav { width: 40px; height: 40px; }
  .footer .container { flex-direction: column; align-items: flex-start; gap: 14px; }

  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }

  /* Disable 3D tilt on touch */
  .video-card { transform-style: flat !important; }
}

@media (max-width: 540px) {
  .work-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .hero-stat { border-right: none; padding-right: 0; margin-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 0; }
  .hero-stat:last-child { border-bottom: none; }

  .video-card { border-radius: 10px; }
  .card-glow { border-radius: 10px; }
  .card-play { width: 56px; height: 56px; }
  .card-play svg { width: 18px; height: 18px; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
  .video-card { transition: none; }
}

/* GSAP init */
.g-hidden { opacity: 0; }

/* Prevent FOUC / flash of unstyled content for animated elements */
.js .gsap-init {
  opacity: 0;
  transform: translateY(50px);
}
.js .service-row.gsap-init {
  opacity: 0;
  transform: translate(-40px, 0);
}
.js .video-card {
  opacity: 0;
}
.js .title-line-inner {
  transform: translateY(105%);
}
.js .skill-chip {
  opacity: 0;
  transform: scale(0.85) translateY(10px);
}
.js .nav {
  opacity: 0;
  transform: translateY(-40px);
}

