:root {
  --rail-gold: rgba(238, 200, 128, .72);
  --rail-gold-soft: rgba(238, 200, 128, .18);
  --rail-ink: rgba(48, 43, 33, .68);
  --rail-ink-soft: rgba(48, 43, 33, .17);
}

#evidence-journey {
  position: relative;
  overflow: clip;
  background: #030608;
  color: #eee6d8;
  isolation: isolate;
}

.evidence-threshold {
  position: relative;
  min-height: 78dvh;
  display: grid;
  place-items: center;
  padding: 10vh clamp(24px, 7vw, 112px);
  background:
    radial-gradient(circle at 50% 16%, rgba(232, 196, 126, .055), transparent 25rem),
    linear-gradient(180deg, #020507 0%, #05080a 72%, #050709 100%);
}

.evidence-convergence {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.evidence-convergence path {
  fill: none;
  stroke: rgba(235, 203, 140, .09);
  stroke-width: .12;
  vector-effect: non-scaling-stroke;
}

.evidence-convergence .evidence-convergence-core {
  stroke: rgba(242, 210, 147, .34);
  stroke-width: .2;
  filter: drop-shadow(0 0 6px rgba(232, 196, 126, .16));
}

.evidence-threshold-copy {
  position: relative;
  z-index: 2;
  width: min(830px, 100%);
  text-align: center;
}

.evidence-threshold-kicker,
.evidence-station-label,
.evidence-return-kicker {
  margin: 0;
  color: rgba(238, 200, 128, .58);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(.58rem, .7vw, .68rem);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.evidence-threshold h2 {
  margin: 18px 0 0;
  font-size: clamp(3.8rem, 9vw, 8.5rem);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.055em;
}

.evidence-threshold-copy > p:last-child {
  max-width: 45ch;
  margin: 28px auto 0;
  color: rgba(238, 230, 216, .5);
  font-size: clamp(.88rem, 1.25vw, 1.1rem);
  line-height: 1.6;
}

.evidence-threshold-sigil {
  position: absolute;
  left: 50%;
  bottom: 8.5vh;
  width: 28px;
  height: 28px;
  transform: translateX(-50%) rotate(45deg);
  border: 1px solid rgba(232, 196, 126, .42);
  box-shadow: 0 0 26px rgba(232, 196, 126, .09);
}

.evidence-threshold-sigil::before,
.evidence-threshold-sigil::after {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(232, 196, 126, .22);
}
.evidence-threshold-sigil::after { inset: 12px; background: rgba(232,196,126,.55); border: 0; }

.evidence-station {
  --rail-color: var(--rail-gold);
  --rail-soft: var(--rail-gold-soft);
  position: relative;
  min-height: 100dvh;
  padding: 5dvh clamp(12px, 2.8vw, 44px) 5dvh clamp(58px, 6vw, 92px);
  display: flex;
  align-items: center;
  background: #050709;
}

.evidence-station--light {
  --rail-color: var(--rail-ink);
  --rail-soft: var(--rail-ink-soft);
  background: #efeee8;
  color: #1c1a15;
}

.evidence-mother-line {
  position: absolute;
  z-index: 5;
  left: clamp(25px, 3.1vw, 48px);
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--rail-soft), var(--rail-color) 20%, var(--rail-color) 78%, var(--rail-soft));
  box-shadow: 0 0 16px var(--rail-soft);
  pointer-events: none;
}

.evidence-mother-line::before {
  content: '';
  position: absolute;
  left: -5px;
  top: clamp(82px, 15vh, 140px);
  width: 11px;
  height: 11px;
  border: 1px solid var(--rail-color);
  transform: rotate(45deg);
  background: color-mix(in srgb, var(--rail-color) 8%, transparent);
  box-shadow: 0 0 18px var(--rail-soft);
}

.evidence-mother-line::after {
  content: '';
  position: absolute;
  left: -2px;
  top: calc(clamp(82px, 15vh, 140px) + 4px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rail-color);
}

.evidence-station-label {
  position: absolute;
  z-index: 6;
  left: clamp(12px, 1.2vw, 18px);
  top: clamp(118px, 20vh, 180px);
  writing-mode: vertical-rl;
  color: var(--rail-color);
  opacity: .72;
}

.evidence-station-frame {
  position: relative;
  width: 100%;
  min-height: 90dvh;
  overflow: hidden;
  border: 1px solid rgba(235, 203, 140, .14);
  border-radius: clamp(14px, 1.6vw, 24px);
  background: #06080a;
  box-shadow: 0 32px 100px rgba(0, 0, 0, .3);
}

.evidence-station--light .evidence-station-frame {
  border-color: rgba(45, 40, 31, .18);
  background: #f4f2eb;
  box-shadow: 0 32px 90px rgba(53, 45, 30, .12);
}

.evidence-station-frame iframe {
  display: block;
  width: 100%;
  height: 90dvh;
  border: 0;
  background: transparent;
}

.evidence-station::after {
  content: '';
  position: absolute;
  z-index: 4;
  left: clamp(25px, 3.1vw, 48px);
  top: clamp(82px, 15vh, 140px);
  width: clamp(30px, 4vw, 58px);
  height: 1px;
  background: linear-gradient(to right, var(--rail-color), transparent);
  pointer-events: none;
}

.evidence-station[data-station-active="true"] .evidence-mother-line::before {
  box-shadow: 0 0 30px var(--rail-color);
}

.evidence-return {
  position: relative;
  min-height: 54dvh;
  display: grid;
  place-items: center;
  padding: 12vh 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(232,196,126,.045), transparent 22rem),
    #030608;
}

.evidence-return::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  height: 27%;
  width: 1px;
  background: linear-gradient(to bottom, rgba(232,196,126,.32), rgba(232,196,126,.06));
}

.evidence-return::after {
  content: '';
  position: absolute;
  left: calc(50% - 6px);
  top: 27%;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(232,196,126,.36);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(232,196,126,.09);
}

.evidence-return h3 {
  max-width: 15ch;
  margin: 17px auto 0;
  color: rgba(245,237,224,.9);
  font-size: clamp(2.2rem, 4.8vw, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.04em;
}

.evidence-return p:last-child {
  max-width: 43ch;
  margin: 20px auto 0;
  color: rgba(238,230,216,.4);
  font-size: .82rem;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .evidence-threshold { min-height: 72dvh; padding-inline: 22px; }
  .evidence-threshold h2 { font-size: clamp(3.1rem, 17vw, 5rem); }
  .evidence-station {
    min-height: 100dvh;
    padding: 3dvh 8px 3dvh 32px;
  }
  .evidence-mother-line { left: 16px; }
  .evidence-station::after { left: 16px; width: 21px; }
  .evidence-station-label { left: 3px; font-size: .47rem; }
  .evidence-station-frame,
  .evidence-station-frame iframe { min-height: 94dvh; height: 94dvh; }
  .evidence-station-frame { border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  #evidence-journey *, #evidence-journey *::before, #evidence-journey *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
