/* ═══════════════════════════════════════════════════
   BECKER v1 — WORK PAGE PROTOTYPE
   Cinematic / Dramatic Direction
   ═══════════════════════════════════════════════════ */

/* ─── RESET & BASE ─────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Dark Canvas */
  --bg-deep: #0A0A0C;
  --bg-surface: #121215;
  --bg-elevated: #1A1A1F;
  --bg-hover: #222228;

  /* Text */
  --text-primary: #F5F5F7;
  --text-secondary: #8A8A8F;
  --text-tertiary: #4A4A4F;

  /* Accents */
  --purple: hsl(260, 100%, 73%);
  --purple-dim: hsl(260, 60%, 40%);
  --purple-glow: hsl(260, 100%, 73% / 0.15);
  --purple-glow-strong: hsl(260, 100%, 73% / 0.25);
  --lavender: hsl(280, 100%, 86%);
  --gold: #D4A853;
  --gold-dim: hsl(43, 50%, 35%);
  --gold-glow: hsl(43, 70%, 55% / 0.12);
  --crimson: #8B1A1A;

  /* Type */
  --font-display: 'Anton', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;

  /* Easing */
  --ease-out-expo: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-cinematic: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Layout */
  --frame-x: max(5vw, 24px);
  --section-gap: clamp(80px, 12vh, 160px);
}

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-deep);
  overflow-x: hidden;
}

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

/* ─── REVEAL ANIMATION ───────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
  transition-delay: var(--delay, 0s);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── SHARED COMPONENTS ──────────────────────── */

.section-label {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 48px;
}

.gold { color: var(--gold); }

.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid var(--text-tertiary);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  transition: all 0.4s var(--ease-out-expo);
}
.btn-outline:hover {
  border-color: var(--purple);
  box-shadow: 0 0 24px var(--purple-glow);
  color: white;
}
.btn-outline--gold {
  border-color: var(--gold-dim);
  color: var(--gold);
}
.btn-outline--gold:hover {
  border-color: var(--gold);
  box-shadow: 0 0 24px var(--gold-glow);
  color: var(--gold);
}

.btn-primary {
  display: inline-block;
  padding: 16px 40px;
  background: var(--purple);
  border: none;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: white;
  transition: all 0.4s var(--ease-out-expo);
}
.btn-primary:hover {
  box-shadow: 0 0 40px var(--purple-glow-strong), 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════
   SITE HEADER
   ═══════════════════════════════════════════════════ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--frame-x);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1400px;
  margin: 0 auto;
}
.site-header__home {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}
.site-header__nav {
  display: flex;
  gap: 32px;
}
.site-header__nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}
.site-header__nav a:hover,
.site-header__nav a.is-active {
  color: var(--text-primary);
  letter-spacing: 0.1em;
}
.site-header__nav a.is-active {
  color: var(--lavender);
}
.site-header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.site-header__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .site-header__burger { display: flex; }
  .site-header__nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,10,12,0.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 99;
  }
  .site-header__nav.is-open { display: flex; }
  .site-header__nav a { font-size: 1.2rem; min-height: 44px; display: flex; align-items: center; }
}

/* ═══════════════════════════════════════════════════
   SECTION 1: WORK HERO
   ═══════════════════════════════════════════════════ */

.work-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 120px var(--frame-x) 80px;
  text-align: center;
  overflow: hidden;
}

.work-hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, var(--purple-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.work-hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 14rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.work-hero__tagline {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  margin-top: 24px;
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.work-hero__divider {
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════
   SECTION 2: FEATURED REELS
   ═══════════════════════════════════════════════════ */

.reels {
  padding: var(--section-gap) var(--frame-x);
  max-width: 1400px;
  margin: 0 auto;
}

.reels__grid {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.reels__divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-dim), transparent);
  flex-shrink: 0;
  margin: 40px 32px;
}

.reel-card {
  flex: 1;
  min-width: 0;
}
.reel-card--primary {
  flex: 1.2;
}

.reel-card__video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-surface);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.04);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.reel-card__video:hover {
  border-color: var(--purple-dim);
  box-shadow: 0 0 40px var(--purple-glow);
}

.reel-card__poster {
  position: absolute;
  inset: 0;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Vimeo thumbnail backgrounds will be set via JS */

.reel-card__play {
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.reel-card__video:hover .reel-card__play {
  opacity: 1;
  transform: scale(1.08);
}

.reel-card__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.reel-card__title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.reel-card__badge {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 0;
}
.reel-card__badge--director {
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}
.reel-card__badge--choreographer {
  color: var(--lavender);
  border: 1px solid hsl(280, 40%, 45%);
}

@media (max-width: 768px) {
  .reels__grid { flex-direction: column; gap: 48px; }
  .reels__divider { display: none; }
  .reel-card--primary { flex: 1; }
}

/* ═══════════════════════════════════════════════════
   SECTION 3: CURATED HIGHLIGHTS
   ═══════════════════════════════════════════════════ */

.highlights {
  padding: var(--section-gap) var(--frame-x);
  max-width: 1400px;
  margin: 0 auto;
}

.highlights__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.highlight-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
}
.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

/* Large cards span 2 columns */
.highlight-card--large {
  grid-column: span 2;
}

.highlight-card__visual {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-surface);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
  transition: border-color 0.4s ease;
}
.highlight-card:hover .highlight-card__visual {
  border-color: var(--purple-dim);
}

.highlight-card__visual--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
}
.highlight-card__placeholder-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.highlight-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,12,0.7) 0%, transparent 50%);
  z-index: 1;
}

.highlight-card__play-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.highlight-card:hover .highlight-card__play-hint {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.highlight-card__meta {
  padding: 14px 0 4px;
}
.highlight-card__meta h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}

.highlight-card__role {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.highlight-card__role--director { color: var(--gold); }
.highlight-card__role--choreo { color: var(--lavender); }

.highlight-card__studio {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.highlight-card__format {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(10,10,12,0.7);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  z-index: 3;
}

@media (max-width: 1024px) {
  .highlights__grid { grid-template-columns: repeat(2, 1fr); }
  .highlight-card--large { grid-column: span 2; }
}
@media (max-width: 640px) {
  .highlights__grid { grid-template-columns: 1fr; }
  .highlight-card--large { grid-column: span 1; }
}

/* ═══════════════════════════════════════════════════
   SECTION 4+5: FILTERS
   ═══════════════════════════════════════════════════ */

.filters {
  padding: var(--section-gap) var(--frame-x) 0;
  max-width: 1400px;
  margin: 0 auto;
  position: sticky;
  top: 72px;
  z-index: 50;
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-left: auto;
  margin-right: auto;
  /* reset sticky padding */
  padding-top: 32px;
  padding-bottom: 24px;
}

/* First load — not yet sticky, add the big gap */
.filters:not(.is-stuck) {
  margin-top: var(--section-gap);
}

.filters__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.filters__role {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.filter-role {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 40px;
  border: 1px solid var(--text-tertiary);
  transition: all 0.3s var(--ease-out-expo);
  min-width: 180px;
}
.filter-role:hover {
  border-color: var(--text-secondary);
  background: var(--bg-elevated);
}
.filter-role.is-active {
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.08);
  box-shadow: 0 0 32px var(--purple-glow);
}

.filter-role__label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}
.filter-role.is-active .filter-role__label {
  color: var(--text-primary);
}
.filter-role__count {
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.filters__category {
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.filters__category::-webkit-scrollbar { display: none; }

.filter-pill {
  flex-shrink: 0;
  padding: 8px 20px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.filter-pill:hover {
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}
.filter-pill.is-active {
  color: white;
  background: var(--purple);
  border-color: var(--purple);
}

@media (max-width: 768px) {
  .filters__role {
    flex-direction: column;
    gap: 10px;
  }
  .filter-role {
    min-width: 0;
    width: 100%;
    padding: 12px 20px;
    flex-direction: row;
    justify-content: space-between;
  }
  .filter-role__count { margin-top: 0; }
  .filters__category {
    justify-content: flex-start;
    padding-left: 4px;
  }
}

/* ═══════════════════════════════════════════════════
   SECTION 6: BROWSING GRID
   ═══════════════════════════════════════════════════ */

.browse {
  padding: 48px var(--frame-x) var(--section-gap);
  max-width: 1400px;
  margin: 0 auto;
}

.browse__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Individual browse card */
.browse-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  animation: cardIn 0.5s var(--ease-out-expo) forwards;
  animation-delay: var(--stagger, 0s);
}
@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

.browse-card:hover {
  transform: translateY(-4px);
}
.browse-card:hover .browse-card__thumb {
  border-color: var(--purple-dim);
  box-shadow: 0 0 32px var(--purple-glow);
}

.browse-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-surface);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.5s var(--ease-out-expo);
}

.browse-card__thumb-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-out-expo);
}
.browse-card:hover .browse-card__thumb-bg {
  transform: scale(1.04);
}

.browse-card__gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(10,10,12,0.85) 0%, transparent 100%);
  z-index: 1;
}

.browse-card__title-overlay {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-primary);
}

.browse-card__role-badge {
  position: absolute;
  bottom: 12px;
  right: 14px;
  z-index: 2;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
}
.browse-card__role-badge--director { color: var(--gold); border: 1px solid var(--gold-dim); }
.browse-card__role-badge--choreo { color: var(--lavender); border: 1px solid hsl(280, 40%, 45%); }
.browse-card__role-badge--dual { color: var(--gold); border: 1px solid var(--gold-dim); }

.browse-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.browse-card:hover .browse-card__play {
  opacity: 1;
}

.browse-card__info {
  padding: 10px 0 4px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.browse-card__studio {
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.browse-card__format {
  font-size: 0.6rem;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.browse__empty {
  text-align: center;
  padding: 80px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.browse__load-more {
  text-align: center;
  padding-top: 48px;
}

@media (max-width: 1024px) {
  .browse__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .browse__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ═══════════════════════════════════════════════════
   SECTION 7: CREDITS BRIDGE
   ═══════════════════════════════════════════════════ */

.credits-bridge {
  padding: var(--section-gap) var(--frame-x);
  text-align: center;
}
.credits-bridge__inner {
  max-width: 700px;
  margin: 0 auto;
}
.credits-bridge__headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.credits-bridge__text {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

/* ═══════════════════════════════════════════════════
   SECTION 8: CONTACT CTA
   ═══════════════════════════════════════════════════ */

.contact-cta {
  position: relative;
  padding: var(--section-gap) var(--frame-x);
  text-align: center;
  overflow: hidden;
}
.contact-cta__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, var(--purple-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}
.contact-cta__headline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.contact-cta__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */

.site-footer {
  padding: 48px var(--frame-x);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.site-footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-footer__name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}
.site-footer__copy {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════
   VIDEO LIGHTBOX
   ═══════════════════════════════════════════════════ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.is-open {
  pointer-events: all;
  opacity: 1;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox__content {
  position: relative;
  width: 90vw;
  max-width: 1100px;
  z-index: 1;
  transform: scale(0.92);
  transition: transform 0.4s var(--ease-out-expo);
}
.lightbox.is-open .lightbox__content {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: -48px;
  right: 0;
  font-size: 2rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
}
.lightbox__close:hover { color: white; }

.lightbox__player {
  aspect-ratio: 16 / 9;
  background: black;
  width: 100%;
}
.lightbox__player iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.lightbox__info {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: var(--text-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  padding: 20px;
  transition: color 0.2s ease;
  line-height: 1;
}
.lightbox__nav:hover { color: white; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

@media (max-width: 768px) {
  .lightbox__content { width: 96vw; }
  .lightbox__nav { display: none; }
  .lightbox__close { top: -40px; right: 4px; }
}
