/* -------------------------------------------
   BASE PAGE SETTINGS
-------------------------------------------- */
body {
  margin: 0;
  padding: 0;
  /* font-family: Arial, sans-serif; */
  overflow-x: hidden;
}

/* -------------------------------------------
   FIXED BACKGROUND
-------------------------------------------- */
#bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: rgb(17, 17, 17);
  overflow: hidden;

  /* center the image whether it's full or 95% */
  display: flex;
  align-items: center;
  justify-content: center;
}

#bg-container img {
  opacity: 1;
  filter: brightness(1);
  transition: opacity 1.2s ease-in-out,
              filter 0.7s ease-in-out;
}

/* full-screen background (index-image, silo) */
#bg-container img.full-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 95% photo (all other photo panels) */
#bg-container img.small-bg {
  width: 95vw;
  max-height: 95vh;
  height: auto;
  object-fit: contain;
}

/* Dimmed version used ONLY on opening section */
#bg-container img.dimmed {
  filter: brightness(0.5);  /* ← 50% brightness */
}

/* -------------------------------------------
   PANELS
-------------------------------------------- */
.story {
  position: relative;
  z-index: 10;
}

.panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* TEXT OVER IMAGES */
.overlay {
  max-width: 900px;
  text-align: left;
  color: white;
}

.plain-overlay h2 {
  font-size: 2.5rem;
  text-align: center;;
}

/* -------------------------------------------
   TYPOGRAPHY (UPDATED OPENING FONTS)
-------------------------------------------- */
.opening-overlay {
  margin-left: -20px;
  text-align: left;
  margin: 0.2em auto;
}

.opening-overlay h1 { 
  font-size: 4rem;
  margin-bottom: 1rem;
  font-weight: 900;
  font-family: 'Utopia Std Bold', serif;
}

/* Small phones */
@media (max-width: 500px) {
  .opening-overlay h1 {
    font-size: 2.5rem;
  }
}

.opening-overlay h2 { 
  font-weight: 400;
  font-size: 2rem;
  margin-bottom: 0.75rem;
  font-family: 'Utopia Std', serif;
  line-height: 1.4;
}

/* Small phones */
@media (max-width: 500px) {
  .opening-overlay h2 {
    font-size: 1.2rem;
  }
}

.opening-overlay h3 { 
  font-weight: 400;
  font-size: 1.5rem;
  font-family: 'Utopia Std', serif;
  line-height: 1.3;
  color: #b8b8b8;
}

/* Small phones */
@media (max-width: 500px) {
  .opening-overlay h3 {
    font-size: 0.8rem;
  }
}

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

a:visited {
  color: inherit;          
}

a:hover {
  text-decoration-thickness: 2px; 
}

/* LEFT-ALIGNED FINAL PARAGRAPHS */
.text-left {
  text-align: left;
  max-width: 800px;
}

/* -------------------------------------------
   PLAIN SECTIONS (black)
-------------------------------------------- */
.plain {
  position: relative;
  min-height: 100vh;   /* ✅ FULL HEIGHT (was 40vh) */
}

.plain::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 120px;
  width: 100%;
  pointer-events: none;
  z-index: 3;
}

/* ✅ Adds breathing room before subtitle text */
.plain-overlay {
  padding-top: 20vh;
}

/* -------------------------------------------
   PHOTO FRAME MASK
   (still used as a layout box; photo is background)
-------------------------------------------- */
.photo-frame {
  width: 90vw;
  height: 90vh;
  background: transparent;
  position: relative;
  overflow: hidden;
}

/* -------------------------------------------
   READ MORE
-------------------------------------------- */

.readmore-panel {
  display: block;
  text-align: left;
}

/* Uniform left anchor for all Read More buttons */
.readmore-container {
  position: absolute;
  left: 15vw;          /* ✅ same offset on every panel */
  bottom: 8vh;         /* ✅ keeps it visually grounded */
  max-width: 600px;
}

/* Button */
.readmore-btn {
  background: transparent;
  border: none;
  padding: 10px 0;
  font-size: 16px;
  cursor: pointer;
  color: rgb(215, 212, 212);
}

/* Hidden text */
.readmore-text {
  overflow: hidden;
  max-height: 0;          /* ✅ Hidden by default */
  transition: max-height 0.4s ease;
  color: rgb(236, 224, 6);
  font-size: 1.1em;
  line-height: 1.4;
  margin-top: 0.6em;
}

/* When opened */
.readmore-text.open {
  max-height: 500px;     /* ✅ Smooth reveal */
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .readmore-container {
    left: 5vw;
    transform: translateY(-40%);
  }
}

/* -------------------------------------------
   PHOTO SEQUENCE
-------------------------------------------- */
.sequence-group {
  position: relative;
}

.sequence-photo {
  position: relative;
  z-index: 1;
}

/* sticky read more */
.sequence-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  background: transparent;
}

/* Smooth blend where the sequence transitions to text */
.sequence-group::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 150px;
  pointer-events: none;
  z-index: 4;
}

.quote {
  font-family: 'Utopia Std', serif;
  font-size: 2rem;
  font-style: italic;
  line-height: 1.4;
  color: rgb(236, 224, 6);
  max-width: 500px;
  display: block; 
  margin-left: 2em auto;
  text-align: right;
}

@media (min-width: 1200px) {
  .quote {
    transform: translateX(420px);
  }
}

@media (max-width: 900px) {
  .overlay {
    justify-content: center;
  }

  .quote {
    margin-left: 0;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .quote {
    font-size: 1.6rem;
    max-width: 90%;
  }
}

.text-left p {
  font-size: 22px;
  line-height: 1.65;
}

.hed-line {
  border: none;
  height: 1px;
  background-color: yellow;
  opacity: 0.5;
  width: 60%;
  margin: 1em 0;
}

.soy {
  width: 120px;
  height: 120px;
  margin: 2em auto;
  border: none;
  background-image: url("images/soy.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.85;
  text-align: center;
}

.tbc {
  width: 120px;
  height: 120px;
  margin: 2em auto;
  border: none;
  background-image: url("images/leaf2.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.85;
}

.logo {
  width: 120px;
  height: 120px;
  margin: 2em auto;
  border: none;
  background-image: url("images/vcij-logo2.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.85;
}

/* -------------------------------------------
   CHART SEQUENCE (smaller, sticky, fade swap)
-------------------------------------------- */
.chart-wrapper {
  position: relative;
  min-height: 330vh;
  background: #111;
}

.chart-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart {
  position: absolute;
  width: 60vw;
  max-width: 700px;
  height: auto;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.chart.active {
  opacity: 1;
  z-index: 2;
}

.chart-text {
  position: relative;
  top: 120vh;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: white;
  font-size: 26px;
  line-height: 1.6;
  padding: 0 20px;
}

.panel,
.sequence-sticky,
.sequence-photo {
  position: relative;
}

/* -------------------------------------------
   ROTATE GIF — MOBILE ONLY
-------------------------------------------- */
.rotate-mobile {
  display: none;               /* hidden by default */
  text-align: center;
  margin-top: 1.5rem;
}

.rotate-mobile img {
  width: 100px;
  height: auto;
  opacity: 0.9;
}

/* ✅ Only show on mobile */
@media (max-width: 600px) {
  .rotate-mobile {
    display: block;
  }
}