/* =============================================
   VIOLIN — Design System
   ============================================= */

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

::selection {
  background-color: var(--c-blue);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto;
}

body {
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

blockquote {
  margin: 0;
}

/* ─── Design Tokens ─────────────────────────── */
:root {
  /* Colors */
  --c-bg: #000000;
  --c-primary: #CAC6BE;
  --c-secondary: #9A9388;
  --c-accent: #C2A24B;
  --c-blue: #1C39BB;

  /* Typography */
  --f-display: 'Cinzel', serif;
  --f-serif: 'Cormorant Garamond', Georgia, serif;
  --f-sans: 'BDO Grotesk', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --f-farsi: 'Dima Shekasteh', serif;

  /* Layout */
  --px: 80px;
  --gutter: 24px;
}

/* ─── BDO Grotesk @font-face ────────────────── */
@font-face {
  font-family: 'BDO Grotesk';
  src: url('fonts/BDOGrotesk-Regular.woff2') format('woff2'),
    url('fonts/BDOGrotesk-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ─── Dima Shekasteh @font-face ─────────────── */
@font-face {
  font-family: 'Dima Shekasteh';
  src: url('fonts/DimaShekastehFree2.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ─── Base ───────────────────────────────────── */
html,
body {
  background: var(--c-bg);
  color: var(--c-primary);
  font-family: var(--f-sans);
  cursor: none;
  min-height: 100%;
}

/* ─── Typography Scale ───────────────────────── */

/* H1 — Cinzel Regular 20px / lh 100% / ls 24% / uppercase */
.h1 {
  font-family: var(--f-display);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
}

/* H2 — Cinzel Regular 56px / lh 100% / ls -2% / uppercase */
.h2 {
  font-family: var(--f-display);
  font-size: clamp(40px, 2.375vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 400;
}

/* H3 — Cinzel Regular 24px / lh 100% / ls 3% / uppercase */
.h3 {
  font-family: var(--f-display);
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 400;
}

/* tagline — Amiri Regular 40px / lh 120% / ls 0% */
.tagline {
  font-family: var(--f-farsi);
  font-size: clamp(22px, 3.125vw, 40px);
  line-height: 1.3;
  letter-spacing: 0;
  font-weight: 200;
}

/* p-large — Cormorant Garamond Light 48px / lh 115% / ls 1% */
.p-large {
  font-family: var(--f-serif);
  font-size: clamp(24px, 3.75vw, 48px);
  line-height: 1.15;
  letter-spacing: -1.2%;
  font-weight: 200;
}

/* p-regular — BDO Grotesk Regular 14px / lh 180% / ls 6% */
.p-regular {
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  font-weight: 400;
}

/* underline-serif — Cinzel Regular 16px / lh 100% / ls 24% / uppercase */
.underline-serif {
  font-family: var(--f-display);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
}

/* underline-sans — BDO Grotesk Regular 14px / lh 100% / ls 24% / uppercase */
.underline-sans {
  font-family: var(--f-sans);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
}

/* nav-link — Cinzel Regular 14px / lh 100% / ls 8% / uppercase */
.nav-link {
  font-family: var(--f-display);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}

/* caption — BDO Grotesk Regular 12px / lh 100% / ls 8% */
.caption {
  font-family: var(--f-sans);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
  font-weight: 400;
  opacity: .7;
}

/* ─── Layout ─────────────────────────────────── */
.container {
  width: 100%;
  max-width: calc(1280px + 2 * var(--px));
  margin: 0 auto;
  padding: 0 var(--px);
}

/* ─── Interactive States ─────────────────────── */
a,
button {
  opacity: 0.8;
  transition: opacity 200ms ease-out;
  cursor: none;
}

a:hover,
button:hover {
  opacity: 1;
}

/* ─── Page Transition ────────────────────────── */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--c-bg);
  z-index: 9990;
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.page-transition.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ─── Custom Cursor ──────────────────────────── */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--c-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: left, top;
  opacity: 0;
  transition: width 0.25s ease, height 0.25s ease, opacity 0.15s ease;
}

.cursor.is-active {
  opacity: 1;
}

.cursor.is-hovering {
  width: 48px;
  height: 48px;
  border: 1px solid var(--c-accent);
}

.cursor.is-hovering .cursor-dot {
  background: var(--c-accent);
}

.cursor-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--c-primary);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

.cursor-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: bold;
  color: var(--c-accent);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

/* Drag state — crew track only */
.cursor.is-drag {
  width: 88px;
  height: 88px;
  border-color: var(--c-accent);
}

.cursor.is-drag .cursor-dot {
  opacity: 0;
}

.cursor.is-drag .cursor-label {
  opacity: 0;
}

/* Card hover: dot visible, no label */
.cursor.is-drag.is-card-hover .cursor-dot {
  opacity: 1;
  background: var(--c-accent);
}

/* Bio open: show Close label, hide dot */
.cursor.is-drag.is-bio-open .cursor-label {
  opacity: 1;
}

.cursor.is-drag.is-bio-open .cursor-dot {
  opacity: 0;
}

/* ─── Header ─────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 40px 0;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.5s ease,
    background-color 0.3s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.site-header.has-bg {
  background-color: var(--c-bg);
}

.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

/* Logo — top left */
.site-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-name-link {
  opacity: 1;
  transition: none;
}

.site-name-link:hover {
  opacity: 1;
}


.site-name {
  font-family: var(--f-display);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--c-primary);
  display: block;
}

/* Homepage: Farsi subtitle */
.site-subtitle {
  display: block;
  font-family: var(--f-farsi);
  font-size: 20px;
  line-height: 1;
  color: var(--c-accent);
}

/* Other pages: /PageName */
.site-subtitle.is-page-name {
  font-family: var(--f-display);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.15em !important;
  text-transform: uppercase;
  color: var(--c-accent);
  direction: ltr;
  text-align: left;
}

.persian {
  font-family: 'Dima Shekasteh', var(--f-farsi), serif;
  font-size: 24px;
  text-align: center;
  direction: rtl;
  text-align: right;
  padding-right: 5px;
}

/* Nav — top right */
.header-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Music player */
.music-player {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-accent);
}

.music-player:hover {
  opacity: 1;
}

.player-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  flex-shrink: 0;
}

.player-label {
  font-family: var(--f-display);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 16%;
  text-transform: uppercase;
  color: var(--c-primary);
}

/* INDEX / CLOSE trigger */
.menu-trigger {
  font-family: var(--f-display);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 16%;
  text-transform: uppercase;
  color: var(--c-primary);
}

@media (max-width: 768px) {
  .menu-trigger {
    font-size: 16px;
  }

  .player-icon {
    width: 24px;
    height: 24px;
  }
}

/* ─── Menu Overlay ───────────────────────────── */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.menu-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.menu-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.menu-label {
  color: var(--c-accent);
  margin-bottom: 28px;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-link {
  font-family: var(--f-display);
  font-size: clamp(28px, 4.2vw, 3vw);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--c-primary);
  display: block;
}

.menu-footer-bar {
  padding-bottom: 40px;
}

.menu-footer-bar .caption {
  color: var(--c-secondary);
}

/* ─── Interior Page Content ──────────────────── */
.page-content {
  padding-top: 60px;
  padding-bottom: 80px;
}

/* ─── Hero ───────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  height: 85vh;
  min-height: 500px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('img/home-hero-img.webp');
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  animation: heroBgReveal 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes heroBgReveal {
  from {
    opacity: 0;
    transform: scale(1.05);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  gap: 56px;
  transition: all .5s ease;
  padding-bottom: 72px;
}

@media (max-height: 800px) {
  .hero-bottom {
    gap: 32px;
  }
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 71%;
}

.hero-right {
  text-align: right;
}

/* Accent italics inside p-large (the quote) */
.p-large em {
  font-style: italic;
  color: var(--c-accent);
}

.cv-role-title em {
  color: var(--c-blue);
  font-style: normal;
}

.hero-quote-fa .tagline {
  direction: rtl;
  text-align: right;
}

/* Hero entrance: staggered after page-transition (0.6s) */
.hero-quote-en {
  opacity: 0;
  animation: fadeInUp 0.9s ease 0.7s both;
}

.hero-quote-en.chars-split {
  animation: none;
  opacity: 1;
}

.word-reveal {
  opacity: 0;
  animation: wordFadeIn 2s ease forwards;
}

@keyframes wordFadeIn {
  to {
    opacity: 1;
  }
}

/* ─── Lazy image reveal ───────────────────── */
img[loading="lazy"]:not(.fade-in) {
  opacity: 0;
  transition: opacity 0.7s ease;
}

img[loading="lazy"]:not(.fade-in).is-loaded {
  opacity: 1;
}

.hero-quote-fa {
  animation: fadeInLeft 2s ease 0.95s both;
}

.hero-byline {
  animation: fadeInUp 2s ease 1.15s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ─── Site Footer ────────────────────────────── */
.site-footer {
  position: relative;
  height: 100vh;
  min-height: 500px;
  background-image: url('img/footer-background-img.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.footer-violin {
  width: 80%;
  max-width: 954px;
  height: auto;
}

.footer-tagline {
  color: var(--c-accent);
  text-align: center;
}

.footer-caption {
  position: absolute;
  bottom: 56px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--c-secondary);
  padding: 0 var(--px);
}

/* ─── Scroll Fade-in ─────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 2s ease, transform 0.8s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── 8-column grid utility ─────────────────── */
.grid-8 {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--gutter);
}

/* ─── Synopsis Page ──────────────────────────── */

.syn-hero {
  height: 100vh;
  min-height: 600px;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.syn-hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 72px;
}

.syn-scroll,
.bio-scroll {
  color: var(--c-secondary);
}

/* scroll-for-more fade on scroll — applied to .syn-scroll and .bio-scroll */
.syn-scroll,
.bio-scroll {
  transition: opacity 2s ease;
}

.syn-scroll.scroll-faded,
.bio-scroll.scroll-faded {
  opacity: 0;
}

/* Unified blue lines — flex child in heroes, full-width divider elsewhere */
.hr-lines {
  display: flex;
  flex-direction: column;
  gap: 40px;
  pointer-events: none;
  flex-shrink: 0;
}

.hr-lines hr {
  border: none;
  height: 1px;
  background: var(--c-secondary);
  opacity: 0.5;
  margin: 0;
  animation: hrReveal 4.6s ease both;
}

.hr-lines hr:nth-child(1) {
  animation-delay: .25s;
}

.hr-lines hr:nth-child(2) {
  animation-delay: .75s;
}

.hr-lines hr:nth-child(3) {
  animation-delay: 1.25s;
}

.hr-lines hr:nth-child(4) {
  animation-delay: 1.75s;
}

@keyframes hrReveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.5;
  }
}

.syn-text-block {
  height: 80vh;
  min-height: 400px;
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--px);
}

.syn-text-body {
  width: min(630px, 100%);
}

.syn-text-body.is-visible {
  opacity: 0.7;
}

.syn-img-full {
  height: clamp(280px, 52vw, 900px);
  overflow: hidden;
  margin: 0 auto;
}

.syn-img-full img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  display: block;
  background: #0a0a0a;
  will-change: transform;
}

.syn-img-8col {
  height: clamp(320px, 46vw, 800px);
  border-radius: 16px;
  overflow: hidden;
}

.syn-img-8col img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  display: block;
  background: #0a0a0a;
  will-change: transform;
}

.syn-img-caption {
  margin-top: 24px;
  text-align: center;
}

@media (max-width: 768px) {
  .syn-hero {
    min-height: 500px;
  }

  .syn-hero-content {
    gap: 48px;
  }

  .hr-lines {
    gap: 32px;
  }

  .syn-text-block {
    min-height: 0;
    padding: 80px var(--px);
  }

  .syn-img-8col {
    border-radius: 8px;
  }
}

/* ─── Casting Vision Page ────────────────────── */

.casting-vision {
  padding-top: 32px;
}

.cv-wrap {
  padding-top: clamp(130px, 18vh, 200px);
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 128px;
}

.cv-role {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cv-role-text {
  width: 628px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cv-role-title {
  color: var(--c-accent);
}

.cv-role-desc {
  opacity: 0.7;
}

.cv-role-img {
  width: 465px;
  height: 542px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.cv-role-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0a0a0a;
}


.cv-closing-text {
  opacity: 0.7;
}

@media (max-width: 1100px) {
  .cv-role {
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
  }

  .cv-role-text {
    width: 100%;
  }

  .cv-role-img {
    width: 100%;
    height: auto;
    aspect-ratio: 465 / 542;
  }
}

@media (max-width: 768px) {

  .casting-vision {
    padding-top: 128px;
  }

  .cv-wrap {
    padding-top: 110px;
    padding-bottom: 80px;
    gap: 80px;
  }

  .cv-role-img {
    border-radius: 8px;
  }
}


/* ─── Producer Page ────────────────────── */

.producer {
  display: flex;
  padding-top: 250px;
  flex-direction: column;
  gap: 72px;
}

/* ─── Crew / Filmmakers Page ─────────────────── */

.crew-page {
  background: var(--c-bg);
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
  gap: 40px;
}

.crew-page .hr-lines,
.loc-page .hr-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  justify-content: center;
}

.crew-track {
  display: flex;
  gap: var(--gutter);
  padding-left: max(var(--px), calc(50vw - 640px));
  padding-right: max(var(--px), calc(50vw - 640px));
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: none;
  position: relative;
  z-index: 1;
  user-select: none;
  width: 100%;
  padding-top: 64px;
}

.crew-track::-webkit-scrollbar {
  display: none;
}

.crew-track.is-dragging {
  cursor: none;
}

.crew-card {
  flex: 0 0 auto;
  width: 30vw;
  height: calc(100vh - 160px);
  max-height: 70vh;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid hsla(40, 10%, 77%, 0.2);
  transition: opacity 2s ease, transform 0.8s ease, padding .5s ease;
}

.loc-card.round {
  border-radius: 0;
  border: none;
}

.crew-card-bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: transform 0.8s ease;
}

.crew-card:hover .crew-card-bg-wrap {
  transform: scale(1.05);
}

.crew-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.crew-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 1) 110%);
  z-index: 1;
}

.crew-card-front {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 48px;
  padding-bottom: 96px;
  gap: 24px;
}

.crew-card-identity {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crew-card-name {
  font-family: var(--f-display);
  font-size: clamp(32px, 5.6vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--c-accent);
}

.crew-card-role {
  color: var(--c-primary);
  opacity: 0.85;
  line-height: 1.5;
}

.crew-card-cta {
  color: var(--c-accent);
  opacity: 0.7;
  text-align: left;
  padding-top: 48px;
  border-bottom: 1px solid var(--c-accent);
}

.crew-card-cta:hover {
  opacity: 1;
}

/* Bio panel */
.crew-card-bio-panel {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: hsla(0, 0%, 0%, 0.85);
  padding: 48px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease-out;
}

.crew-card-bio-panel.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.crew-bio-scroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: .5px solid var(--c-accent);
  padding-top: 12px;
}

.crew-bio-scroll::-webkit-scrollbar {
  display: none;
}

.crew-bio-name {
  font-size: clamp(32px, 4vw, 56px);
}

.crew-bio-body {
  opacity: 0.75;
}

.crew-bio-close-mobile {
  display: none;
}

/* Crew carousel nav buttons */
.crew-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 40px;
  position: relative;
  padding-right: max(var(--px), calc(50vw - 640px));
  z-index: 1;
}

.crew-nav-btn {
  font-family: var(--f-display);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-primary);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.crew-nav-btn:hover {
  opacity: 1;
}

/* Staggered entry — cards cascade in one by one */
.crew-card.fade-in:nth-child(1) {
  transition-delay: 0ms;
}

.crew-card.fade-in:nth-child(2) {
  transition-delay: 160ms;
}

.crew-card.fade-in:nth-child(3) {
  transition-delay: 320ms;
}

.crew-card.fade-in:nth-child(4) {
  transition-delay: 480ms;
}

.crew-card.fade-in:nth-child(5) {
  transition-delay: 640ms;
}

.crew-card.fade-in:nth-child(6) {
  transition-delay: 800ms;
}

.crew-card:nth-child(1) .crew-card-identity.fade-in {
  transition-delay: 180ms;
}

.crew-card:nth-child(2) .crew-card-identity.fade-in {
  transition-delay: 340ms;
}

.crew-card:nth-child(3) .crew-card-identity.fade-in {
  transition-delay: 500ms;
}

.crew-card:nth-child(4) .crew-card-identity.fade-in {
  transition-delay: 660ms;
}

.crew-card:nth-child(5) .crew-card-identity.fade-in {
  transition-delay: 820ms;
}

.crew-card:nth-child(6) .crew-card-identity.fade-in {
  transition-delay: 980ms;
}

@media (min-width: 768px) and (max-width: 1024px) {

  .crew-card {
    width: 50vw;
  }

}

@media (max-width: 768px) {

  .crew-track,
  .loc-track {
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--px);
    cursor: default;
    padding-top: 0;
  }

  .crew-card {
    width: calc(100vw - 2 * var(--px) - var(--gutter));
    height: calc(100vh - 300px);
    scroll-snap-align: start;
  }

  .crew-card-bio-panel {
    padding: 48px;
  }

  .crew-bio-close-mobile {
    display: block;
    position: absolute;
    bottom: 48px;
    right: calc(50% - 28px);
    width: 56px;
    height: 56px;
    z-index: 4;
  }

  .crew-nav {
    justify-content: center;
  }
}

/* ─── Director's Statement Page ──────────────── */

.stmt-text-body {
  width: min(630px, 100%);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stmt-text {
  opacity: 0.7;
}

.stmt-closing-inner {
  width: min(956px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.stmt-closing-quote {
  opacity: 0.7;
}

.stmt-attribution {
  color: var(--c-accent);
}

/* ─── Director's Biography Page ──────────────── */

.bio-hero {
  height: 100vh;
  min-height: 600px;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
}

.bio-hero-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 124px;
}

.bio-hero-text {
  flex: 1 1 280px;
  max-width: 628px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.bio-hero-tagline {
  color: var(--c-secondary);
}

.bio-hero-img {
  flex: 1 1 280px;
  max-width: 628px;
  height: clamp(400px, 68vh, 736px);
  border-radius: 16px;
  overflow: hidden;
}

.bio-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0a0a0a;
}

.bio-body {
  padding-bottom: 120px;
}

.bio-col {
  grid-column: 5 / 9;
  display: flex;
  flex-direction: column;
  gap: 128px;
  padding-top: 80px;
}

.bio-paras {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.bio-text {
  opacity: 0.7;
}

.bio-section-group {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.bio-section-title {
  color: var(--c-accent);
}

.bio-subs {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.bio-sub {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bio-sub-cat {
  color: var(--c-accent);
}

.bio-film-entries {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bio-roxana {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bio-roxana-rule {
  height: 1px;
  background: var(--c-accent);
  opacity: 0.35;
  margin-bottom: 8px;
}

.bio-roxana-eyebrow {
  color: var(--c-secondary);
}

.bio-roxana-title {
  color: var(--c-accent);
}

.bio-roxana-cta {
  color: var(--c-accent);
  margin-top: 4px;
}



@media (max-width: 768px) {
  .bio-hero {
    height: auto;
  }

  .bio-hero-content {
    padding-top: 256px;
    margin-bottom: 48px;
    align-items: flex-start;
  }

  .bio-hero-text {
    max-width: 100%;
    gap: 48px;
  }

  .bio-hero-img {
    max-width: 100%;
    height: auto;
    aspect-ratio: 628 / 736;
    border-radius: 8px;
  }

  .bio-col {
    grid-column: 1 / -1;
    padding-top: 60px;
    gap: 80px;
  }

  .bio-body {
    padding-bottom: 80px;
  }

  .bio-section-group {
    gap: 40px;
  }

  .bio-subs {
    gap: 40px;
  }

  .caption {
    font-size: 10px;
  }
}

/* ─── Locations Page ─────────────────────────── */

.loc-page {
  background: var(--c-bg);
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
  gap: 40px;
}

.loc-track {
  display: flex;
  gap: 48px;
  padding-left: max(var(--px), calc(50vw - 640px));
  padding-right: max(var(--px), calc(50vw - 640px));
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: none;
  position: relative;
  z-index: 1;
  user-select: none;
  width: 100%;
}

.location{
  font-size: 32px;
}

.round{
  border-radius: 500px;
}

.loc-track::-webkit-scrollbar {
  display: none;
}

.loc-track.is-dragging {
  cursor: none;
}

/* ─── Location Detail Overlay ─────────────────── */

body.detail-open {
  overflow: hidden;
}

.loc-detail {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--c-bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.loc-detail::-webkit-scrollbar {
  display: none;
}

.loc-detail.is-open {
  opacity: 1;
  pointer-events: auto;
}

.loc-detail-close {
  position: fixed;
  top: 32px;
  right: 40px;
  z-index: 10;
  width: 56px;
  height: 56px;
  display: none;
}

.loc-detail-inner {
  padding: 140px max(var(--px), calc(50vw - 640px)) 100px;
}

.loc-detail-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 56px;
  justify-content: center;
  align-items: center;
}

.loc-detail-title {
  font-family: var(--f-display);
  font-size: clamp(40px, 5.6vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--c-accent);
  text-align: center;
}

.loc-gallery {
  columns: 2;
  column-gap: 16px;
}

.loc-gallery img {
  width: 100%;
  height: auto;
  display: block;
  break-inside: avoid;
  margin-bottom: 16px;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 8px;
  filter: grayscale(1);
  transition: filter 2s ease;
  pointer-events: auto;
}

.loc-gallery img:hover {
  filter: grayscale(0);
  transition: filter 2s ease;
}

@media (max-width: 768px) {

  .loc-track {
    padding-top: 0;
    gap: 24px;
  }

  .loc-detail-close {
    display: block;
  }

  .loc-detail-inner {
    padding: 100px 24px 80px;
  }

  .loc-gallery {
    columns: 1;
  }

  .loc-gallery img{
    filter: grayscale(0);
  }
}

/* ─── Contact Page ───────────────────────────── */
.contact-section {
  height: 50vh;
  padding-top: 128px;
  align-content: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  color: var(--c-secondary);
}

.contact-info a {
  color: var(--c-accent);
}

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 1280px) {
  :root {
    --px: 64px;
  }
}

@media (max-width: 1024px) {
  :root {
    --px: 48px;
  }
}

@media (max-width: 640px) {
  :root {
    --px: 24px;
  }

  .site-header {
    padding: 24px 0;
  }

  .player-label {
    display: none;
  }

  .header-nav {
    gap: 20px;
    align-items: flex-start;
  }

  .music-player {
    flex-shrink: 0;
    margin-top: -4px;
  }
}

@media (max-width: 768px) {
  :root {
    --px: 24px;
  }

  .menu-links {
    gap: 16px;
  }

  /* Disable cursor on touch devices */
  .cursor {
    display: none;
  }

  html,
  body {
    cursor: auto;
  }

  a,
  button {
    cursor: pointer;
  }

  /* Header */
  .site-header {
    padding: 24px 0;
  }

  .header-nav {
    gap: 20px;
  }

  .player-label {
    display: none;
  }

  /* Interior pages */
  .hr-container {
    margin-top: 76px;
    width: 100vw !important;
  }

  /* Hero: stack columns */
  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .hero-right {
    text-align: right;
  }

  .hero-content {
    padding-bottom: 36px;
  }

  .hero-left {
    gap: 20px;
    width: 100%;
  }

  .p-large {
    font-size: 32px;
  }

  .hero::before {
    background-position: top;
    background-size: 160%;
  }

  /* Menu */
  .menu-body {
    padding-top: 108px;
    padding-bottom: 0;
  }

  /* Footer */
  .footer-violin {
    width: 88%;
    max-width: 88%;
  }

  /* Producer page */
  .producer {
    padding-top: 48px;
    gap: 72px;
  }
}

@media (max-width: 480px) {
  :root {
    --px: 20px;
  }

  .site-header {
    padding: 20px 0;
  }

  .hero {
    height: 85vh;
  }

  .hero-content {
    padding-bottom: 28px;
  }

  .hero-left {
    gap: 16px;
  }

  .menu-body {
    padding-top: 88px;
  }

  .hr-container {
    margin-top: 68px;
  }
}

@media (max-height: 700px) {
  .menu-body {
    padding-top: 100px;
    padding-bottom: 24px;
  }

  .menu-label {
    margin-bottom: 16px;
  }

  .menu-link {
    font-size: 6vh;
  }

  .menu-links {
    gap: 4px;
  }
}