/* =========================
   FONTS
========================= */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* =========================
   CSS VARIABLES
========================= */
:root {
  --bg:          #08080b;
  --bg-mid:      #0f0f14;
  --bg-card:     #111118;
  --text:        #e8e8e8;
  --text-dim:    rgba(232,232,232,0.5);
  --text-xdim:   rgba(232,232,232,0.28);
  --accent:      #c8a96e;       /* warm gold — cinematic, premium */
  --accent-dim:  rgba(200,169,110,0.15);
  --white:       #ffffff;
  --nav-bg:      rgba(8,8,11,0.88);
  --border:      rgba(232,232,232,0.08);
  --border-mid:  rgba(232,232,232,0.14);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

/* =========================
   BASE
========================= */
html {
  scroll-behavior: smooth;
}

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

/* Grain overlay for cinematic texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* =========================
   CONTAINER
========================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

/* =========================
   NAV
========================= */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 200;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease-out);
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 48px;
  max-width: 1200px;
  margin: auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 4px;
  color: var(--white);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 36px;
  margin-left: auto;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--white);
}

/* =========================
   HERO
========================= */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.38) contrast(1.15) saturate(0.8);
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(8,8,11,0.82) 0%, rgba(8,8,11,0.3) 60%, transparent 100%),
    linear-gradient(to top, rgba(8,8,11,0.9) 0%, transparent 40%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  bottom: 14%;
  left: 8%;
  max-width: 760px;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 108px);
  line-height: 0.95;
  letter-spacing: 2px;
  display: flex;
  flex-direction: column;
}

.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: lineIn 1s var(--ease-out) forwards;
}

.hero-title .line:nth-child(2) {
  animation-delay: 0.18s;
  color: var(--accent);
}

.hero-sub {
  margin-top: 20px;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  animation: lineIn 1s var(--ease-out) 0.45s forwards;
}

.hero-cta {
  display: inline-block;
  margin-top: 36px;
  padding: 14px 36px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
  opacity: 0;
  animation: lineIn 1s var(--ease-out) 0.65s forwards;
}

.hero-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 48px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: lineIn 1s var(--ease-out) 1.1s forwards;
}

.hero-scroll span {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-xdim);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out 1.5s infinite;
}

/* =========================
   KEYFRAMES
========================= */
@keyframes lineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* =========================
   FADE-IN (scroll triggered)
========================= */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* =========================
   SECTIONS
========================= */
.section {
  padding: 120px 48px;
  max-width: 1200px;
  margin: auto;
  overflow: visible;
}

.section-label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: 2px;
  margin-bottom: 48px;
}

/* =========================
   CINEMATIC STATEMENT
========================= */
.cinematic-section {
  padding: 180px 48px;
  text-align: center;
  position: relative;
}

.cinematic-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(200,169,110,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.cinematic-content p {
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 300;
  max-width: 720px;
  margin: auto;
  line-height: 1.55;
  color: var(--text);
  letter-spacing: 0.3px;
}

.cinematic-content em {
  font-style: italic;
  color: var(--accent);
}

/* =========================
   ABOUT TEXT
========================= */
.about-text {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  max-width: 680px;
  color: var(--text-dim);
}

/* =========================
   SELECTED WORK (scroll cards)
========================= */
.netflix-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: scroll;
  overflow-y: visible;
  padding: 20px 48px 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-left: -48px;
  margin-right: -48px;
  width: calc(100% + 96px);
}

.netflix-scroll::-webkit-scrollbar {
  display: none;
}

.netflix-card {
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  height: 200px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  flex: 0 0 320px;
  transition: transform 0.4s var(--ease-out);
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
}

.netflix-card:hover {
  transform: scale(1.03) translateY(-4px);
}

.netflix-card:hover .card-image {
  filter: brightness(0.55);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.7);
  transition: filter 0.4s;
}

.overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,11,0.92) 0%, transparent 55%);
}

.netflix-info {
  position: absolute;
  bottom: 0;
  padding: 20px;
}

.netflix-info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
}

.netflix-info p {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
}

/* =========================
   CREDITS HERO (shared header for inner pages)
========================= */
.credits-hero {
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  padding: 0 48px 72px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.credits-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-mid) 100%);
}

.credits-hero > div {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: auto;
}

.credits-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 96px);
  letter-spacing: 2px;
  line-height: 0.95;
}

.credits-hero p {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* =========================
   CREDITS LIST
========================= */
.credits-wrapper {
  max-width: 1200px;
  margin: auto;
  padding: 80px 48px;
}

.credits-section {
  margin-bottom: 80px;
}

.credits-section h2 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.credit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s, padding-left 0.3s var(--ease-out);
  gap: 24px;
}

.credit-item:hover {
  padding-left: 12px;
}

.credit-item:hover .title {
  color: var(--white);
}

.credit-item:hover .arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.credit-item > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.credit-item .title {
  font-size: 18px;
  font-weight: 400;
  transition: color 0.2s;
}

.credit-item .meta {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-xdim);
}

.credit-item .role {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: right;
}

.credit-item .arrow {
  font-size: 18px;
  color: var(--text-xdim);
  transition: color 0.3s, transform 0.3s var(--ease-out);
}

/* =========================
   EQUIPMENT GRID
========================= */
.gear-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.gear-item {
  background: var(--bg-card);
  padding: 36px 32px;
  border: 1px solid var(--border);
  transition: border-color 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}

.gear-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.gear-item:hover {
  border-color: var(--border-mid);
  background: rgba(200,169,110,0.03);
}

.gear-item:hover::before {
  opacity: 1;
}

.gear-visual {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-mid);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gear-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  filter: invert(1) grayscale(1) brightness(0.75);
  transition: filter 0.4s;
}

.gear-item:hover .gear-visual img {
  filter: invert(1) grayscale(0.4) brightness(0.9) sepia(0.3) hue-rotate(5deg);
}

.gear-item h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.gear-item p {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-xdim);
}

/* =========================
   CONTACT
========================= */
.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.contact-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 48px 40px;
  transition: border-color 0.3s;
}

.contact-block:hover {
  border-color: var(--border-mid);
}

.contact-block h3 {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.contact-block a,
.contact-block p {
  font-size: 18px;
  font-weight: 300;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.4;
}

.contact-block a:hover {
  color: var(--white);
}

/* =========================
   PROJECT EYEBROW / SUB
========================= */
.project-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.project-sub {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* =========================
   SOUND CARDS
========================= */
.sound-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px 28px;
  transition: border-color 0.3s, background 0.3s;
  position: relative;
}

.sound-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.sound-card:hover {
  border-color: var(--border-mid);
  background: rgba(200,169,110,0.03);
}

.sound-card:hover::before {
  opacity: 1;
}

.sound-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: var(--white);
}

.sound-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* =========================
   PROJECT NAV (prev/next)
========================= */
.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 48px 80px;
  border-bottom: 1px solid var(--border);
}

.project-nav-back,
.project-nav-next {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}

.project-nav-back:hover,
.project-nav-next:hover {
  color: var(--accent);
}

/* =========================
   PROJECT HERO
========================= */
.project-hero {
  height: 80vh;
  position: relative;
  overflow: hidden;
}

.project-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-hero-content {
  position: absolute;
  bottom: 10%;
  left: 8%;
  z-index: 2;
}

.project-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: 2px;
}

/* =========================
   PROJECT VIDEO
========================= */
.project-video {
  padding: 100px 48px;
  display: flex;
  justify-content: center;
}

.video-wrapper {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16/9;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
}

/* =========================
   PROJECT DETAILS
========================= */
.project-details {
  padding: 60px 48px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 960px;
  margin: auto;
  gap: 0;
  border: 1px solid var(--border);
}

.details-grid > div {
  padding: 28px 32px;
  border-right: 1px solid var(--border);
}

.details-grid > div:last-child {
  border-right: none;
}

.details-grid .detail-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.details-grid .detail-value {
  font-size: 15px;
  font-weight: 300;
}

/* =========================
   PROJECT DESCRIPTION
========================= */
.project-description {
  max-width: 720px;
  margin: auto;
  padding: 80px 48px;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-dim);
}

/* =========================
   PROJECT SOUND
========================= */
.project-sound {
  padding: 80px 48px;
  max-width: 1100px;
  margin: auto;
}

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

/* =========================
   CTA
========================= */
.cta {
  text-align: center;
  padding: 140px 48px;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--border-mid));
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: 2px;
  margin-bottom: 36px;
  font-weight: 400;
}

.cta a {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}

.cta a:hover {
  background: var(--accent);
  color: var(--bg);
}

/* =========================
   FOOTER
========================= */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

footer p {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-xdim);
}

footer nav a {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-xdim);
  text-decoration: none;
  margin-left: 28px;
  transition: color 0.2s;
}

footer nav a:hover {
  color: var(--text);
}

/* =========================
   MOBILE
========================= */
@media (max-width: 900px) {
  .nav-inner {
    padding: 20px 24px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 11px;
  }

  .credits-hero {
    padding: 0 24px 56px;
  }

  .section {
    padding: 80px 24px;
  }

  .credits-wrapper {
    padding: 60px 24px;
  }

  .gear-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .details-grid {
    grid-template-columns: 1fr 1fr;
  }

  .details-grid > div:nth-child(2) {
    border-right: none;
  }

  .sound-grid {
    grid-template-columns: 1fr;
  }

  .cinematic-section {
    padding: 100px 24px;
  }

  .cta {
    padding: 100px 24px;
  }

  footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 36px 24px;
  }

  footer nav a {
    margin: 0 12px;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 52px;
  }

  .hero-content {
    left: 5%;
    bottom: 16%;
  }

  .gear-grid {
    grid-template-columns: 1fr;
  }

  .netflix-card {
    min-width: 280px;
  }
}

/* =========================
   PROJECT HERO LABEL
========================= */
.project-hero-label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.project-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 100px);
  letter-spacing: 2px;
  line-height: 0.95;
}

/* =========================
   SOUND CARDS
========================= */
.sound-card {
  padding: 36px 32px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
  transition: border-color 0.3s, background 0.3s;
}

.sound-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.sound-card:hover {
  border-color: var(--border-mid);
  background: rgba(200,169,110,0.03);
}

.sound-card:hover::before {
  opacity: 1;
}

.sound-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1px;
  margin-bottom: 14px;
  color: var(--white);
}

.sound-card p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-dim);
}

/* =========================
   PROJECT NAV (next project)
========================= */
.project-nav {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
}

.project-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 48px;
  text-decoration: none;
  color: var(--text);
  transition: padding-left 0.35s var(--ease-out), background 0.3s;
}

.project-nav-link:hover {
  padding-left: 64px;
  background: rgba(200,169,110,0.03);
}

.project-nav-link:hover .project-nav-title {
  color: var(--white);
}

.project-nav-label {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.project-nav-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: 1px;
  color: var(--text-dim);
  transition: color 0.3s;
}

.project-nav-link > div {
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .project-nav-link {
    padding: 32px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .project-nav-link:hover {
    padding-left: 32px;
  }
}
