/* ── INTRO HEADLINE ── */
#intro-headline-block {
  background: #000;
  padding: 2rem 2rem 2rem;
  text-align: center;
}

#intro-headline-block h1,
#intro-headline h1 {
  color: white;
  font-family: Georgia, serif;
  font-size: clamp(1.4rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  max-width: 900px;
  margin: 0 auto;
}

#intro-headline .bylines {
  color: #888;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  margin-top: 1rem;
  text-align: center;
  display: block;
}

#intro-headline .g-by {
  color: #888;
}

/* ── PARALLAX INTRO SCENE ── */
#intro-scene {
  position: relative;
  height: 150vh;
  background-color: #000;
}

#intro-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#trapped-gif-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 1200px;
  z-index: 1;
}

#trapped-gif {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease;
  display: block;
}

#trapped-gif-wrapper .g-credit {
  text-align: left;
  color: #888;
  font-size: 0.75rem;
  font-family: Arial, sans-serif;
  margin-top: 0.4rem;
  padding-left: 2px;
}

#black-room-quote {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  opacity: 0;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  z-index: 2;
  background-color: transparent;
  border-left: none;
  padding: 0;
  max-width: 700px;
  width: 90%;
  text-align: center;
  /* background-color: rgba(0, 0, 0, 0.55);
  border-left: 3px solid white;
  padding: 1.2rem 1.8rem;
  max-width: 580px;
  width: 90%; */
}

#black-room-quote p {
  color: white;
  font-family: Georgia, serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 700;
  text-align: center;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8); /* shadow so it reads over the gif */
}

#jaylyn-intro-overlay {
  position: absolute;
  top: 58%; /* just below the quote which is at 50% */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 2;
}

#jaylyn-intro-overlay p {
  color: rgba(255, 255, 255, 0.75);
  font-family: Georgia, serif;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  font-style: italic;
  margin: 0;
  line-height: 1.5;
}

/* ── BASE STYLES ── */
body {
  color: white;
  background-color: #000;
  font-family: Georgia, serif;
  margin: 0;
  padding: 0;
}

h2 {
  color: #f0f0f0;
}

p {
  color: #ddd7d7;
}

#main-container > *:not(#intro-scene) {
  opacity: 1;
  transform: none;
}

#main-container > *.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── ARTICLE BODY GIFS ── */
/* this is the default for all photo wrappers outside chapter scenes */
.g-photo-wrapper {
  margin: 2rem auto;
  max-width: 700px; /* smaller on wide screens */
}

.g-photo-wrapper img {
  width: 100%;
  display: block;
  max-height: 55vh; /* smaller height */
  object-fit: contain;
}

/* ── CHAPTER SCENES ── */
.chapter-scene {
  width: 100%;
  background: #000;
}

.chapter-header-block {
  background: #000 !important;
  padding: 4rem 2rem 1.5rem;
  text-align: center;
}

.chapter-eyebrow {
  color: #aaa;
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}

/* chapter scene overrides the default g-photo-wrapper */
.chapter-scene .g-photo-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.chapter-scene .g-photo-wrapper img {
  width: 100%;
  display: block;
  max-height: 450px; /* was 70vh, now smaller */
  object-fit: contain;
}

/* gradient overlay on chapter GIFs */
.chapter-scene .g-photo-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.1) 70%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

.chapter-title-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 90%;
  max-width: 700px;
  text-align: center;
  z-index: 2;
}

.chapter-title-overlay h2 {
  color: white;
  font-family: Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin: 0;
}

.chapter-scene .embed-wrapper {
  position: relative;
  width: 100%;
  background: transparent;
}

.chapter-scene .embed-wrapper::before {
  display: none;
}

/* ── VERTICAL PROGRESS NAV ── */
#progress-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  pointer-events: none; /* nav itself not clickable, items are */
}

.progress-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  pointer-events: all;
  flex-direction: row-reverse; /* dot on right, label on left */
}

/* dot */
.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
  flex-shrink: 0;
}

/* label — hidden by default, slides in on hover */
.progress-label {
  color: rgba(255, 255, 255, 0);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    color 0.3s ease,
    opacity 0.3s ease;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition:
    max-width 0.4s ease,
    opacity 0.4s ease,
    color 0.4s ease;
}

/* show label on hover */
.progress-item:hover .progress-label {
  opacity: 1;
  max-width: 200px;
  color: rgba(255, 255, 255, 0.9);
}

/* enlarge dot on hover */
.progress-item:hover .progress-dot {
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.3);
}

/* passed chapters — dot fills in dimly */
.progress-item.passed .progress-dot {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.35);
}

/* active chapter — dot fully lit */
.progress-item.active .progress-dot {
  background: white;
  border-color: white;
  transform: scale(1.4);
}

.progress-item.active .progress-label {
  opacity: 1;
  max-width: 200px;
  color: white;
}

/* hide on mobile — not enough room */
@media (max-width: 768px) {
  #progress-nav {
    display: none;
  }
}

/* .text-video-pair {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.text-col {
  flex: 1;
  min-width: 0;
}

.text-col .body-size {
  max-width: none;
  margin: 0 0 1.2rem 0;
}

.video-col {
  flex-shrink: 0;
  width: 340px;
  position: sticky;
  top: 5rem;
  align-self: flex-start;
}

.video-col video {
  width: 100%;
  display: block;
  border-radius: 3px;
}

@media (max-width: 768px) {
  .text-video-pair {
    flex-direction: column;
  }

  .video-col {
    position: relative; /* disable sticky on mobile */
/* top: auto;
    width: 100%;
  } */
