/* Final exhibition refinement: balanced titles, readable research copy, one incised thread. */
.route-section h2,
.person-copy h2,
.timeline-section h2,
.media-stage-head h2,
.compare-head h2,
.collection-head h2,
.archive-browser h3,
.sources-section h2 {
  text-wrap: balance;
}

/* Six research entrances: five galleries plus the archive support center. */
@media (min-width: 821px) {
  .route-stops {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(12px, 1.45vw, 24px);
  }
  .route-stops li:nth-child(6) { padding-top: 82px; }
  .route-stops b { font-size: clamp(14px, 1.08vw, 17px); }
}

.route-section h2 > span,
.person-copy h2 > span,
.timeline-section h2 > span {
  display: block;
}

.keep-together {
  white-space: nowrap;
}

.route-section > header > p,
.timeline-section > header > p:last-child,
.media-stage-head > p:last-child,
.guan-copy > p:not(.eyebrow):not(.guan-kicker) {
  color: rgba(242, 238, 229, .82);
}

.timeline-track p {
  color: rgba(242, 238, 229, .72);
  font-size: 15px;
  line-height: 2;
}

.timeline-track > li > span {
  color: rgba(242, 238, 229, .76);
  border-color: rgba(231, 223, 209, .34);
}

.scroll-rail {
  width: 66px;
}

.scroll-rail-cursor {
  right: -4px;
  width: 9px;
  height: 9px;
  border-radius: 1px;
  transform: translateY(-50%) rotate(45deg);
}

.scroll-rail-chapters li {
  right: -8px;
  width: 17px;
  height: 2px;
  border: 0;
  border-radius: 0;
  background: rgba(207, 117, 66, .46);
  box-shadow: none;
  transform: translateY(-50%);
  transition: width .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}

.scroll-rail-chapters li.is-passed {
  width: 12px;
  background: rgba(207, 117, 66, .72);
}

.scroll-rail-chapters li.is-active {
  width: 24px;
  background: linear-gradient(90deg, #e7a071, var(--thread-copper));
  box-shadow: 0 0 12px rgba(207, 117, 66, .34);
}

.scroll-rail-chapters b {
  right: 28px;
  min-width: 0;
  padding: 4px 0;
  color: rgba(242, 238, 229, .84);
  background: transparent;
  border: 0;
  letter-spacing: .16em;
}

.route-section::after,
.person-section::after,
.timeline-section::after,
.compare-section::after,
.guansheng-section::after,
.collection-section::after,
.sources-section::after,
.media-stage::after {
  width: clamp(170px, 24vw, 420px);
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(207, 117, 66, .25) 18%, var(--thread-copper) 74%, #e7a071 100%);
  clip-path: polygon(0 38%, 100% 0, 100% 100%, 0 62%);
}

.guansheng-section::before {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  height: clamp(76px, 10vh, 118px);
  content: "";
  background: linear-gradient(180deg, var(--paper) 0, rgba(207, 117, 66, .74) 2px, rgba(92, 24, 22, .3) 34%, transparent 100%);
  pointer-events: none;
}

@media (min-width: 901px) {
  .route-section h2 > span,
  .person-copy h2 > span,
  .timeline-section h2 > span {
    white-space: nowrap;
  }

  .media-scroll {
    height: 270vh;
  }

  .timeline-section {
    padding-top: clamp(112px, 12vh, 160px);
    padding-bottom: clamp(140px, 15vh, 190px);
  }

  .timeline-section > header {
    margin-bottom: clamp(52px, 6.5vh, 78px);
  }

  .compare-section {
    padding-top: clamp(112px, 12vh, 160px);
    padding-bottom: clamp(140px, 15vh, 190px);
  }

  .compare-head {
    margin-bottom: clamp(52px, 6.5vh, 78px);
  }

  .compare-frame {
    height: min(64vh, 700px);
    min-height: 540px;
  }
}

@media (min-width: 901px) and (max-width: 1400px) {
  .route-section > header {
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, .5fr);
    gap: 6vw;
  }

  .route-section h2 {
    font-size: clamp(56px, 5vw, 70px);
  }

  .person-copy {
    grid-column: 1 / 7;
  }

  .person-figure {
    grid-column: 7 / 13;
  }

  .person-copy h2 {
    font-size: clamp(50px, 4.15vw, 62px);
  }

  .timeline-section h2 {
    font-size: clamp(56px, 5vw, 72px);
  }

  .timeline-section > header > p:last-child,
  .route-section > header > p {
    font-size: 17px;
  }
}

@media (min-width: 1401px) {
  .person-copy {
    grid-column: 1 / 7;
  }

  .person-figure {
    grid-column: 7 / 13;
  }

  .person-copy h2 {
    font-size: clamp(76px, 4.25vw, 88px);
  }

  .timeline-section h2 {
    font-size: clamp(76px, 5.2vw, 106px);
  }

  .media-stage::before {
    width: 38%;
    background: rgba(7, 20, 17, .6);
  }

  .media-stage-head h2 {
    color: #faf2e3;
    text-shadow: 0 2px 22px rgba(0, 0, 0, .18);
  }

  .media-stage-head > p:last-child {
    color: rgba(250, 242, 227, .9);
  }

  .media-slide img {
    filter: saturate(1) contrast(1.08) brightness(1.08);
  }

  .media-slide figcaption {
    color: rgba(250, 242, 227, .96);
  }
}

@media (min-width: 1401px) and (max-width: 1700px) {
  .person-copy h2 {
    font-size: clamp(62px, 4.1vw, 72px);
    letter-spacing: -.035em;
  }
}

@media (max-width: 900px) {
  .route-section h2 > span,
  .person-copy h2 > span,
  .timeline-section h2 > span {
    white-space: normal;
  }

  .route-section::after,
  .person-section::after,
  .timeline-section::after,
  .compare-section::after,
  .guansheng-section::after,
  .collection-section::after,
  .sources-section::after,
  .media-stage::after {
    width: 24vw;
    height: 1px;
  }

  .timeline-track p {
    font-size: 14px;
  }

  .person-copy h2 {
    font-size: clamp(40px, 10.7vw, 46px);
    line-height: 1.08;
  }

  .timeline-section h2 {
    font-size: clamp(40px, 10.7vw, 48px);
    line-height: 1.06;
  }

  .collection-head h2 {
    font-size: clamp(36px, 9.4vw, 42px);
    line-height: 1.08;
  }

  .scroll-rail {
    width: 46px;
  }

  .scroll-rail-chapters b {
    display: none;
  }
}

.person-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
}

/* Archive evidence labels distinguish documentary portraits from object-only plates. */
.archive-card {
  position: relative;
}

.archive-image-label {
  position: absolute;
  top: 26px;
  left: 26px;
  z-index: 1;
  padding: 7px 10px 6px;
  color: rgba(248, 242, 230, .94);
  background: rgba(12, 27, 25, .84);
  border: 1px solid rgba(230, 194, 148, .34);
  font-family: var(--sans);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

@media (max-width: 900px) {
  .archive-image-label {
    top: 18px;
    left: 18px;
    padding: 6px 8px 5px;
    font-size: 9px;
  }
}
