:root {
  --primary: rgb(211, 0, 0);
}

::selection {
  color: black;
  background: red;
}

@font-face {
  font-family: 'HelveticaPro-Light';
  src: url(/font/font/HelveticaNowDisplay-Light.ttf) format('truetype');
}

@font-face {
  font-family: 'HelveticaPro-Medium';
  
  src: url(/font/font/HelveticaNowDisplay-Medium.ttf) format('truetype');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'HelveticaPro-Light', sans-serif;
}

body {
  background-color: #000000;
  color: #e0e0e0;
  height: 100%;
  cursor: crosshair; 
}


body.home-page {
  overflow: hidden; 
}


header {
  position: sticky;
  top: 0;
  z-index: 3000;
  width: 100%;
  padding:  20px 40px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background: transparent;
}


.hamburger {
  display: none;
  cursor: pointer;
  z-index: 4000; 
}

.hamburger .line {
  width: 25px;
  height: 2px;
  background-color: #e0e0e0;
  display: block;
  margin: 6px auto;
  transition: transform 0.4s cubic-bezier(0.8, 0, 0.2, 1), opacity 0.4s;
}

nav ul {
  list-style-type: none;
  margin-right: -20px;
}

nav ul li {
  display: inline-block;
  margin-right: 20px;
}


nav ul li a, #name a {
  font-family: 'HelveticaPro-Medium', sans-serif;
  font-weight: 500; 
  font-size: 20px;
  color: #e0e0e0; 
  text-decoration: none;
  transition: color 0.3s ease-in-out;
  cursor: pointer;
}

#name a:hover, nav li:hover a {
  color: var(--primary); 
}

#name a {
    color: inherit;
    text-decoration: none;
}


.grain-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 5; 
  opacity: 0.05; 
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.vignette {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 6; 
  box-shadow: inset 0 0 250px rgba(0,0,0,0.98);
}

.light-leak {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 45;
  background: radial-gradient(circle at 80% 20%, rgba(255, 100, 0, 0.7) 0%, rgba(200, 40, 0, 0.3) 30%, transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
}

.flash-anim {
  animation: projectorFlash 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
}

@keyframes projectorFlash {
  0% { opacity: 0; transform: scale(1) translateX(2%); }
  10% { opacity: 1; transform: scale(1.02) translateX(0); }
  100% { opacity: 0; transform: scale(1) translateX(-2%); }
}


.carousel-container.projector-screen {
  position: absolute;
  top: 55%; 
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1200px; 
  height: 75vh; 
  z-index: 10;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none; 
}

.slide.active {
  display: block; 
}


.slide img, .slide video {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  filter: contrast(1.1) grayscale(0.2) brightness(0.8); 
  -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 75%);
  mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 75%);
}


.click-zone {
  position: fixed;
  top: 0;
  height: 100vh;
  width: 20vw; 
  z-index: 20;
}
.click-zone.left { left: 0; }
.click-zone.right { right: 0; }


.light-leak-2 {
  position: fixed;
  bottom: 0; right: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 46;
  background: radial-gradient(circle at 20% 80%, rgba(220, 20, 0, 0.6) 0%, transparent 60%);
  mix-blend-mode: screen;
  opacity: 0;
}

.flash-anim-2 {
  animation: projectorFlash2 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
}

@keyframes projectorFlash2 {
  0% { opacity: 0; }
  30% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1); }
}

.slide.active img, .slide.active video {
  animation: focusPull 0.45s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}


@media (max-width: 768px) {
  
  
  header {
    position: relative; 
    padding: 25px 20px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    background: transparent;
  }

  #name {
    font-size: 18px; 
    margin: 0;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  }

  
  .hamburger {
    display: block;
    
  }

  
  
  nav {
    position: absolute;
    top: 50%;
    left: 50%; 
    
    
    transform: translate(calc(-50% + 20px), -50%); 
    
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  }

  nav ul {
    display: flex;
    flex-direction: row; 
    gap: 15px; 
    margin: 0;
    padding: 0;
  }

  nav ul li a {
    font-size: 18px; 
    letter-spacing: 2px;
  }

  
  
  
  .nav-active #name {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-25px);
  }

  
  
  .nav-active nav {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%); 
  }

  
  /* --- The 3-Line 'X' Animation --- */
  
  /* Top line tilts down */
  .nav-active .hamburger .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  /* Middle line completely fades out */
  .nav-active .hamburger .line:nth-child(2) {
    opacity: 0; 
  }
  
  /* Bottom line tilts up */
  .nav-active .hamburger .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  
  
  .click-zone {
    width: 30vw; 
  }

  
  .carousel-container.projector-screen {
    top: 53%; 
    height: 65vh;
    width: 95%;
  }

  
  .slide img, .slide video {
    -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 35%, rgba(0,0,0,0) 85%);
    mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 35%, rgba(0,0,0,0) 85%);
  }

  
  .vignette {
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.85); 
  }
}