@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

body {
  background-color: #0C0708;
  color: #5C654F;
}


h1 {
  font-size: 11.5vh;
  font-family: 'Lora', serif;
  font-weight: lighter; 
  margin-top: 0;
  margin-left: 50px;
  margin-right: 50px;
  line-height: 1.15;
  margin-bottom: -50px;
  letter-spacing: -5px;
  z-index: 999;  
}

h2 {
  font-size: 9vh;
  font-family: 'Lora', serif;
  font-weight: 600; 
  margin-top: 0;
  margin-left: 50px;
  margin-right: 50px;
  line-height: 1.15;
  margin-bottom: -50px;
  letter-spacing: -5px;
}

h3 {
    font-size: 2vw;
    font-family: 'Lora', serif;
    font-weight: lighter; 
}

h4{ 
    color: black;
}

.nav_item {
  position: fixed;     
  top: 20px;         
  right: 30px;    
  z-index: 1000;  
}

.nav_item a {
  position: relative;             /* needed for pseudo-element positioning */
  text-decoration: none;          
  color: #710024;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav_item a:hover {
  color: #331b20;
  transform: scale(1.1);
  mix-blend-mode: screen;
}

/* Pseudo-element for animated line-through */
.nav_item a::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;                      
  transform: translateY(-50%);   
  height: 1.5px;                     
  background-color: currentColor; 
  width: 0;                     
  transition: width 0.4s ease;     
}

.nav_item a:hover::after {
  width: 100%;                  
}

.text-left {
  position: fixed;
  left: 30px;
  line-height: 1.1;
  z-index: 1000;
}

.text-left h1 {
  font-size: 6vw;
  margin: 0 0 -20px 0;
  font-weight:500;
}

.text-left h2 {
  font-size: 6vw;
  margin: 16vh 0 -20px 0;
  font-weight:500;
}

.text-left h3 {
  font-size: 3.5vw;
  margin: 20px 0 0 0;
  z-index: 1000;
}

/* Coordinates aligned with nav button */
.coords-right {
  position: fixed;      /* stays relative to viewport */
  top: 50vh;            /* same vertical as nav button */
  right: 30px;          /* same as nav button */
  font-size: 2.8vw;
  font-family: 'Lora', serif;
  font-weight: light;
  margin: 0;
  z-index: 1000;
}

/* Scroll text centered in middle of page */
.scroll-text {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* perfect centering */
  font-size: 2vw;
  font-family: 'Lora', serif;
  font-weight: lighter;
  margin: 0;
  z-index: 1000;
  mix-blend-mode: screen;
}

/* Headline row stays left as before */
.text-left .headline-row {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.text-left .headline-row h3 {
  font-size: 4vw;
  font-family: 'Lora', serif;
  font-weight: lighter;
  margin: 0;
}

.poster-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

/* === Second (scroll-revealed) poster === */
.poster-scroll {
  position: relative;
  height: 200vh; /* space for scroll to trigger */
}

.poster-one {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  height: 80vh;
}

.poster-two {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateX(100vw);
  z-index: 2; /* above for testing */
  height: 100vh;
  mix-blend-mode: saturation;
  transition: transform 1s ease-out;
}

.poster-two.active {
  transform: translate(-50%, -50%) translateX(0);
}


.text-content {
  position: relative;
  width: 50vw;
  margin: 0 auto;
  opacity: 1;
  transform: translateY(50px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
  line-height: 1.6;
  font-size: 1.1vw;
  z-index: 10;
  padding-top: 100vh; /* so it appears *after* posters section */
}

.text-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.poster-caption {
  position: fixed;
  width: 100%; /* gives space for bottom-left content */
  height: 100vh; /* span vertically for bottom alignment */
  transition: transform 1.2s ease-out;
  transform: translateX(100vw); /* start off-screen to the right */
  z-index: 1;
  mix-blend-mode: exclusion;
}

.poster-caption.active {
  transform: translateX(0);
}

.poster-caption .caption-line {
  position: absolute;
  top: 39%;
  right: 30px;
  font-size: 6vw;
  font-family: 'Lora', serif;
  font-weight: 500;
  color: #50031C;
  text-align: right;
  margin: 0;
}

.bottom-left {
  position: fixed;   /* not absolute */
  bottom: 8%;        /* this now works */
  left: 30px;
  font-size: 6vw;
  font-family: 'Lora', serif;
  font-weight: 500;
  color: #710024;
  mix-blend-mode: exclusion;
  opacity: 0;
  transform: translateX(100vw);
  transition: transform 1.2s ease-out, opacity 1.2s ease-out;
  margin:0;
}

/* Make bottom-left appear when poster-caption activates */
.poster-caption.active + .bottom-left {
  opacity: 1;
  transform: translateX(0);
}

.poster-caption .bottom-left {
  position: absolute;
  bottom: 5%;         /* anchor to bottom */
  left: 5%;           /* anchor to left */
  text-align: left;   /* align text properly */
  font-size: 4vw;
  color: #50031C;
  mix-blend-mode: exclusion;

  /* animation starting state */
  opacity: 0;
  transform: translateX(100px);
  transition: transform 1.2s ease-out, opacity 1.2s ease-out;
}

/* when the poster becomes active */
.poster-caption.active .bottom-left {
  opacity: 1;
  transform: translateX(0);
}

.fixed-bottom-text {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0; /* make sure flexbox spans full width */
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-left: 30px;  /* space from left */
  padding-right: 30px; /* add more space from right */
  font-size: 0.9rem;
  z-index: 999;
  pointer-events: none;
}

.fixed-bottom-text h3 {
  margin: 0;
  font-weight: normal;
  pointer-events: none;
}

@media (max-width:1400px){
.nav_item a {
  font-size: 1.5rem;
}
.headline {
width: 85vw;
}
}

@media (max-width:1050px){
.nav_item a {
  font-size: 1.5rem;
}
}

@media (max-width:768px){
.nav_item {
  right: 30px;    
  z-index: 1000;  
}
.nav_item a {
  font-size: 3vw;
}

}
