/**
 * Lost in Burg — About / documentary journey
 * Visual language matches brand system + existing About patterns.
 */

.reveal-wrap { overflow: hidden; }
.reveal-line { display: block; will-change: transform; }

/* ── Chapter film strip (sticky index) ── */
.chapter-rail {
  position: sticky;
  top: var(--nav-h, 64px);
  z-index: 30;
  background: rgba(254, 245, 237, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--charcoal);
}
.chapter-rail__inner {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.chapter-rail__inner::-webkit-scrollbar { display: none; }
.chapter-rail a {
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.45);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.chapter-rail a:hover,
.chapter-rail a.is-active {
  color: var(--charcoal);
  border-color: var(--orange);
}

/* ── Hero ── */
.about-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #080808;
}
.about-hero--compact {
  height: 68vh;
  min-height: 420px;
  max-height: 620px;
}
.about-hero-img { position: absolute; inset: 0; }
.about-hero-img img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  filter: brightness(0.4) contrast(1.2) saturate(0.7);
  transform: translateY(-8%);
  will-change: transform;
}
.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 1) 0%, rgba(26, 26, 26, 0.2) 55%, transparent 100%);
}
.about-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 clamp(1.5rem, 6vw, 6rem) clamp(3rem, 6vw, 6rem);
}

/* ── Chapters ── */
.chapter {
  scroll-margin-top: calc(var(--nav-h, 64px) + 52px);
}
.chapter-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.chapter-num {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
}

.story-img-wrap { position: relative; overflow: hidden; }
.story-img-wrap img,
.story-img-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.07);
  transition: transform 0.85s var(--ease-soft);
  display: block;
}
.story-img-wrap:hover img,
.story-img-wrap:hover video { transform: scale(1); }
.story-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange);
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transition: clip-path 0.6s var(--ease-wipe);
  mix-blend-mode: soft-light;
  opacity: 0.4;
  pointer-events: none;
}
.story-img-wrap:hover::after {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* ── Shared tall split bands ── */
.chapter-band__grid { min-height: 520px; }
@media (min-width: 1024px) {
  .chapter-band__grid { min-height: 620px; }
}
.chapter-band__media {
  min-height: 360px;
}
@media (min-width: 1024px) {
  .chapter-band__media { min-height: 100%; }
}

/* ── Intertitle / pull band ── */
.intertitle {
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--charcoal);
  border-bottom: 2px solid var(--charcoal);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
  background: #080808;
}
@media (min-width: 768px) {
  .intertitle {
    min-height: 400px;
    padding: 6rem 2rem;
  }
}
.intertitle__media {
  position: absolute;
  inset: 0;
}
.intertitle__media video,
.intertitle__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) contrast(1.15) saturate(0.85);
}
.intertitle__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8, 8, 8, 0.75) 0%, rgba(8, 8, 8, 0.35) 50%, rgba(8, 8, 8, 0.55) 100%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 87, 34, 0.22) 0%, transparent 55%);
}
.intertitle__ghost {
  font-family: var(--font-display);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(6rem, 16vw, 14rem);
  color: rgba(254, 245, 237, 0.05);
  text-transform: uppercase;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 1;
}
.endcard-loop {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin: 1.75rem 0 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.55);
}
.endcard-loop span {
  color: var(--orange);
  margin-right: 0.4rem;
}

/* ── People mosaic ── */
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
@media (min-width: 768px) {
  .people-grid { grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
}
.people-grid .story-img-wrap { aspect-ratio: 3 / 4; }
.people-grid .story-img-wrap:nth-child(even) { margin-top: 1.5rem; }
@media (max-width: 767px) {
  .people-grid .story-img-wrap:nth-child(even) { margin-top: 0; }
}

/* ── Loop close ── */
.loop-steps {
  display: grid;
  grid-template-columns: 1fr;
  border: 3px solid var(--charcoal);
}
@media (min-width: 768px) {
  .loop-steps { grid-template-columns: repeat(3, 1fr); }
}
.loop-step {
  padding: 2.25rem 1.75rem;
  border-bottom: 2px solid var(--charcoal);
}
@media (min-width: 768px) {
  .loop-step {
    border-bottom: 0;
    border-right: 2px solid var(--charcoal);
  }
  .loop-step:last-child { border-right: 0; }
}
.loop-step:last-child { border-bottom: 0; }
.loop-step__n {
  font-family: var(--font-display);
  font-size: 2.75rem;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 1rem;
}

.ch01-photo {
  aspect-ratio: 4 / 5;
  max-height: 440px;
}
.ch01-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chapter-loop-end {
  background: linear-gradient(180deg, #FEF5ED 0%, #F5EDE3 100%);
}
.loop-steps--light {
  border-color: var(--charcoal);
}
.loop-steps--light .loop-step {
  border-color: rgba(26, 26, 26, 0.15);
}

.story-endcard {
  background: var(--cream);
  border-bottom: 0;
}
.story-endcard__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
  text-align: center;
}
@media (min-width: 768px) {
  .story-endcard__inner { padding: 4.5rem 2rem 5rem; }
}
