/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   BASE
========================= */

:root {
  --bg: #050505;
  --text: #ffffff;
  --brightness: 1;
  --contrast: 1;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;


  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;

  filter: brightness(var(--brightness))
          contrast(var(--contrast));

  transition:
    filter 0.6s ease,
    opacity 0.5s ease;

  animation: pageFade 0.8s ease;

  overflow-x: hidden;
}

@keyframes pageFade {
  from {
    opacity: 0;
    transform: scale(1.01);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =========================
   CINEMATIC INTRO
========================= */

.intro-overlay {
  position: fixed;
  inset: 0;

  background: #000;

  z-index: 20000;

  display: flex;
  justify-content: center;
  align-items: center;

  animation: introExit 3.5s forwards;
}

.intro-title {
  text-align: center;

  animation: introText 2s ease;
}

.intro-title h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  letter-spacing: 0.1em;
}

.intro-title p {
  margin-top: 10px;
  letter-spacing: 0.4em;
  opacity: 0.8;
}

@keyframes introText {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introExit {
  0%, 70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* =========================
   FILM GRAIN
========================= */

body::before {
  content: "";

  position: fixed;
  inset: 0;

  pointer-events: none;

  opacity: 0.03;

  z-index: 9998;

  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.04) 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,.03) 1px, transparent 1px);

  background-size: 4px 4px;
}

/* =========================
   INTRO OVERLAY
========================= */

.intro-overlay {
  position: fixed;
  inset: 0;

  background: black;

  z-index: 10000;

  animation: introFade 1.5s ease forwards;
}

@keyframes introFade {
  0% {
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* =========================
   LUXURY NAVIGATION
========================= */

.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;

  height: 80px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 60px;

  z-index: 999999;

  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
}

.nav-left {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.08em;

  color: white;

  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.nav-left a {
  color: white;
  text-decoration: none;
}

.nav-left a:hover {
  opacity: 0.8;
}

.nav-right {
  display: flex;
  gap: 32px;
}

.nav-right a {
  text-decoration: none;

  color: rgba(255,255,255,0.75);

  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;

  transition:
    color 0.3s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
}

.nav-right a:hover {
  color: white;
  transform: translateY(-1px);
}

/* =========================
   HERO
========================= */

.hero {
  height: 100vh;

  position: relative;

  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  filter: brightness(0.55);
}

.overlay {
  position: absolute;
  inset: 0;

  background: rgba(0,0,0,.35);
}

.hero-content {
  position: relative;

  z-index: 2;

  text-align: center;

  animation: heroReveal 1.4s ease;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: scale(1.05);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;

  font-size: clamp(5rem, 10vw, 10rem);

  font-weight: 300;

  text-shadow: 0 10px 40px rgba(0,0,0,.8);
}

.hero p {
  margin-top: 12px;

  letter-spacing: .35em;

  opacity: .85;
}

/* =========================
   SECTION TITLES
========================= */

.section-title {
  font-family: 'Cormorant Garamond', serif;

  font-size: 2.8rem;

  font-weight: 300;

  margin-bottom: 2rem;
}

/* =========================
   SPOTLIGHT
========================= */

.spotlight {
  padding: 8rem 8vw;
}

.spotlight-container {
  max-width: 1200px;
  margin: 0 auto;
}

.spotlight-text {
  max-width: 700px;

  line-height: 1.8;

  opacity: .8;

  margin-bottom: 2rem;
}

.spotlight iframe {
  border-radius: 10px;
}

/* =========================
   PROJECT GRID
========================= */

.projects {
  padding: 6rem 8vw;
}

.grid {
  display: grid;

  grid-template-columns: repeat(4, minmax(180px, 240px));

  justify-content: center;

  gap: 2rem;
}

/* =========================
   POSTERS
========================= */

.card {
  position: relative;

  display: block;

  overflow: hidden;

  border-radius: 8px;

  text-decoration: none;

  transition:
    transform .45s ease,
    filter .45s ease,
    box-shadow .45s ease;
}

.card img {
  width: 100%;

  aspect-ratio: 2 / 3;

  object-fit: cover;

  display: block;

  border-radius: 8px;

  filter: brightness(.82);

  transition: filter .45s ease;
}

/* focused poster */

.card:hover {
  transform: scale(1.05);

  z-index: 5;

  box-shadow:
    0 30px 80px rgba(0,0,0,.6);
}

.card:hover img {
  filter: brightness(1);
}

/* dim neighbors */

.grid:hover .card:not(:hover) {
  filter: brightness(.45) blur(1px);
}

/* =========================
   REVEALS
========================= */

section.reveal {
  opacity: 0;
  transform: translateY(50px);

  transition:
    opacity 1s ease,
    transform 1s ease;
}

section.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   CURSOR LIGHT
========================= */

.cursor-light {
  position: fixed;

  left: 0;
  top: 0;

  width: 400px;
  height: 400px;

  border-radius: 50%;

  pointer-events: none;

  z-index: 9997;

  transform: translate(-50%, -50%);

  background: radial-gradient(
    circle,
    rgba(255,255,255,0.06),
    transparent 65%
  );
}

/* =========================
   PROJECT PAGE
========================= */

.back {
  position: fixed;

  top: 20px;
  left: 20px;

  z-index: 100;

  text-decoration: none;

  color: white;

  opacity: .75;
}

.project-hero {
  height: 100vh;

  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.project-bg {
  position: absolute;

  width: 100%;
  height: 100%;

  object-fit: cover;

  filter: brightness(.45);
}

.project-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0,0,0,.45);
}

.project-hero-content {
  position: relative;

  z-index: 2;

  text-align: center;
}

.project-hero-content h1 {
  font-family: 'Cormorant Garamond', serif;

  font-size: clamp(4rem, 8vw, 7rem);

  font-weight: 300;
}

.project-hero-content p {
  letter-spacing: .25em;

  opacity: .8;
}

.project-body {
  padding: 6rem 10vw;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 5rem;
}

.project-info h2,
.project-info h3 {
  font-family: 'Cormorant Garamond', serif;

  margin-bottom: 1rem;
}

.project-info p {
  line-height: 1.9;

  opacity: .85;

  margin-bottom: 1.5rem;
}

.project-modal {
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  padding: 5vw;
  align-items: center;
}

.project-left {
  height: 100%;
}

.project-img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  border-radius: 10px;
}

.project-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.credits {
  opacity: 0.6;
  font-size: 0.9rem;
}
/* =========================
   PLAYER
========================= */

.player-ui {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

button {
  background: white;
  color: black;

  border: none;

  padding: .8rem 1.4rem;

  cursor: pointer;

  width: fit-content;

  transition: transform .2s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: scale(.96);
}

.timeline {
  height: 2px;

  background: rgba(255,255,255,.2);

  cursor: pointer;
}

.progress {
  height: 100%;

  width: 0;

  background: white;
}

/* =========================
   FILM MODE
========================= */

body.film-mode .hero,
body.film-mode .spotlight,
body.film-mode .projects {
  filter: brightness(.85);
}

@media (max-width: 900px) {
  .project-body {
    grid-template-columns: 1fr;
  }
}

/* =========================
   CONTACT
========================= */

.contact {
  padding: 8rem 10vw;
  text-align: center;
}

.contact-content {
  max-width: 700px;
  margin: 0 auto;
}

.contact-content p {
  opacity: 0.75;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-content a {
  color: white;
  text-decoration: none;

  font-size: 1.2rem;

  border-bottom: 1px solid rgba(255,255,255,0.3);

  transition: opacity 0.3s ease;
}

.contact-content a:hover {
  opacity: 0.7;
}

/* =========================
   FOOTER
========================= */

.footer {
  padding: 4rem 10vw;

  border-top: 1px solid rgba(255,255,255,0.08);

  text-align: center;
}

.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;

  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;

  margin-bottom: 1rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  opacity: 0.4;
  font-size: 0.8rem;
}

/* =========================
   ABOUT PAGE
========================= */

.about-hero {
  height: 100vh;
  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  filter: brightness(0.55);
}

.about-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0,0,0,.4);
}

.about-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.about-hero-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 300;
}

.about-hero-content p {
  letter-spacing: .3em;
  opacity: .8;
}

.about-section {
  padding: 8rem 10vw;
}

.about-grid {
  max-width: 1000px;
  margin: 0 auto;
}

.about-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;

  margin-bottom: 2rem;
}

.about-text p {
  line-height: 2;
  opacity: .85;
  margin-bottom: 2rem;

  font-size: 1.05rem;
}

.bio-quote {
  text-align: center;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
  font-size: 1.5rem; /* optional: makes it feel like a statement line */
}

.emphasis {
  font-style: italic;
  font-weight: 600;
}

/* =========================
   CONTACT PAGE
========================= */

.contact-hero {
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 0 10vw;
}

.contact-hero-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 300;
  margin-bottom: 1rem;
}

.contact-hero-content p {
  opacity: 0.8;
  letter-spacing: 0.2em;
}

.contact-page {
  padding: 6rem 10vw;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.contact-block h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-block a,
.contact-block p {
  display: block;
  margin-bottom: 0.8rem;

  color: white;
  opacity: 0.8;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.contact-block a:hover {
  opacity: 1;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* =========================
   CONTACT FORM STYLING
========================= */

.contact-page {
  padding: 8rem 10vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.contact-intro {
  text-align: center;
  max-width: 600px;
}

.contact-intro h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.contact-intro p {
  opacity: 0.75;
  line-height: 1.6;
}

.contact-form {
  width: 100%;
  max-width: 600px;

  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.2rem;

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);

  color: white;
  font-family: 'Inter', sans-serif;

  outline: none;

  transition: border 0.3s ease, background 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
}

.contact-form button {
  padding: 1rem 1.4rem;

  background: white;
  color: black;

  border: none;
  cursor: pointer;

  font-weight: 500;

  transition: transform 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
}

.contact-form button:active {
  transform: scale(0.97);
}

/* =========================
   SHOW MORE PROJECTS FIX
========================= */

#moreProjects {
  grid-column: 1 / -1;

  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 240px));
  justify-content: center;
  gap: 2rem;

  max-height: 0;
  overflow: hidden;
  opacity: 0;

  transition: all 0.6s ease;
  pointer-events: none;
}

#moreProjects.open {
  max-height: 10000px;
  opacity: 1;
  pointer-events: auto;
}

/* button wrapper */
.show-more-wrap {
  margin-top: 3rem;
  text-align: center;
}

/* button styling (this is what you lost) */
.show-more-btn {
  margin: 3rem auto 0;
  display: inline-block;

  padding: 0.9rem 1.6rem;

  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;

  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;

  cursor: pointer;

  transition: all 0.3s ease;
}

.show-more-btn:hover {
  border-color: white;
  transform: translateY(-2px);
}

/* =========================
   PROJECT CLEAN LAYOUT (NEW)
========================= */

.project-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  padding: 5vw;
}

.project-poster img {
  width: 320px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}

.project-content {
  max-width: 500px;
}

.project-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.project-content p {
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

/* =========================
   CINEMATIC PLAY BUTTON
========================= */

.play-btn {
  background: transparent;
  color: white;

  border: 1px solid rgba(255,255,255,0.3);

  padding: 1rem 1.8rem;

  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;

  cursor: pointer;

  transition: all 0.3s ease;
}

.play-btn:hover {
  border-color: white;
  background: rgba(255,255,255,0.08);

  transform: translateY(-2px);
}

.play-btn:active {
  transform: scale(0.98);
}

/* =========================
   WAVESURFER
========================= */

#waveform {
  width: 100%;
  margin: 1rem 0 1.5rem;
}

#waveform canvas {
  border-radius: 6px;
}

/* Studio Image Section */

.studio-section {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.studio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.studio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* Festival Image Section */

.festival-section {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.festival-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.festival-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* =========================
   MOBILE OPTIMIZATION
========================= */

@media (max-width: 768px) {

  /* NAV */

  .nav {
    height: 70px;
    padding: 0 20px;
  }

  .nav-left {
    font-size: 0.95rem;
    white-space: nowrap;
    letter-spacing: 0.05em;
  }

  .nav-right {
    gap: 16px;
  }

  .nav-right a {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }

  /* HERO */

  .hero h1 {
    font-size: clamp(3rem, 12vw, 4.5rem);
    line-height: 0.95;
    padding: 0 20px;
  }

  .hero p {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    padding: 0 20px;
  }

  /* SECTION SPACING */

  .spotlight,
  .projects,
  .about-section,
  .contact,
  .contact-page {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  /* SECTION HEADINGS */

  .section-title {
    font-size: 2.1rem;
  }

  /* PROJECT GRID */

  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card {
    max-width: 320px;
    margin: 0 auto;
  }

  #moreProjects {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  /* ABOUT */

  .about-text h2 {
    font-size: 2.2rem;
  }

  .about-text p {
    font-size: 1rem;
    line-height: 1.8;
  }

  .bio-quote {
    font-size: 1.15rem;
    line-height: 1.5;
  }

  /* CONTACT */

  .contact-intro h2 {
    font-size: 2.2rem;
  }

  /* FOOTER */

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-name {
    font-size: 1.7rem;
  }

  /* PROJECT PAGES */

  .project-container {
    flex-direction: column;
    height: auto;
    padding: 100px 6vw 60px;
    gap: 2rem;
  }

  .project-poster img {
    width: min(80vw, 320px);
  }

  .project-content {
    max-width: 100%;
    text-align: center;
  }

  .project-content h1 {
    font-size: 2.5rem;
  }

  /* EMBEDS */

  iframe {
    width: 100% !important;
    max-width: 100%;
  }

  /* PREVENT HORIZONTAL SCROLL */

  html,
  body {
    overflow-x: hidden;
  }

}