.route-story {
  --route-ink: var(--ink, #1c1d1b);
  --route-gold: var(--gold, #ffcb39);
  --route-paper: #f5f3eb;
  --route-progress: 0;
  border-block: 1px solid var(--line, #cacac0);
  background: #ece9de;
  color: var(--route-ink);
  padding-block: clamp(42px, 6vw, 82px);
}

.route-story-header {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: end;
  gap: 12px clamp(22px, 5vw, 76px);
  margin-bottom: clamp(22px, 3vw, 36px);
}

.route-story-header h2 { max-width: 15ch; margin: 0; }
.route-story-header p { max-width: 38ch; margin: 0; color: #494b43; }

.route-story-board {
  overflow: clip;
  border: 1px solid var(--route-ink);
  border-radius: 12px;
  background: var(--route-ink);
}

.route-story-nav { padding: 9px clamp(9px, 4vw, 45px) 7px; }

.route-story-stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  isolation: isolate;
}

.route-story-stages::before,
.route-story-stages::after {
  position: absolute;
  z-index: -1;
  inset-inline: 16.6667%;
  top: 18px;
  height: 2px;
  content: '';
}

.route-story-stages::before { background: #767870; }
.route-story-stages::after {
  transform: scaleX(var(--route-progress));
  transform-origin: left center;
  background: var(--route-gold);
}

.route-story-stage {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  min-height: 61px;
  border-radius: 6px;
  padding: 10px 2px 6px;
  color: #e9e8df;
  font-size: clamp(14px, 1.7vw, 18px);
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

.route-story-stage:hover { text-decoration: underline; text-underline-offset: 4px; }
.route-story-stop {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid #a6a79e;
  border-radius: 50%;
  background: var(--route-ink);
}

.route-story-stage[data-route-reached] .route-story-stop { border-color: var(--route-gold); }
.route-story-stage[aria-selected='true'] { color: var(--route-gold); }
.route-story-stage[aria-selected='true'] .route-story-stop { box-shadow: inset 0 0 0 3px var(--route-ink); background: var(--route-gold); }

.route-story-stage:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid #fff;
  outline-offset: -3px;
  box-shadow: none;
}

.route-story-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 345px;
  background: var(--route-paper);
}

.route-story-panel[hidden] { display: none; }
.route-story-panel + .route-story-panel { border-top: 1px solid var(--line, #cacac0); }
.route-story[data-route-enhanced] .route-story-panel { border-top: 0; }
.route-story-panel:focus-visible { z-index: 1; position: relative; outline: 3px solid #0064bd; outline-offset: -3px; }

.route-story-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: clamp(23px, 4.5vw, 60px);
}

.route-story-copy h3 {
  max-width: 21ch;
  margin: 0;
  font-size: clamp(26px, 3.2vw, 46px);
  line-height: 1.07;
}

.route-story-copy > p { max-width: 41ch; margin: 12px 0 0; }
.route-story-copy ul { display: grid; gap: 10px; max-width: 47ch; margin: 19px 0 0; padding: 0; list-style: none; }
.route-story-copy li { position: relative; padding-left: 17px; }
.route-story-copy li::before { position: absolute; top: .63em; left: 0; width: 7px; height: 7px; border-radius: 50%; background: #866300; content: ''; }

.route-story-photo {
  position: relative;
  min-height: 245px;
  margin: 0;
  background: #d9d5c6;
  isolation: isolate;
}

.route-story-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.route-story-photo-preparation img { object-position: center 68%; }
.route-story-photo-transport img { object-position: center 52%; }
.route-story-photo-installation img { object-position: center 74%; }
.route-story-photo figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 25px 16px 12px;
  background: linear-gradient(transparent, #161714ec);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
}

.route-story-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px 26px;
  padding: 14px clamp(17px, 3vw, 38px);
  color: #f5f3eb;
}

.route-story-footer p { max-width: 56ch; margin: 0; }
.route-story-call {
  display: inline-flex;
  flex: none;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 9px 19px;
  background: var(--route-gold);
  color: var(--route-ink);
  font-weight: 720;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.route-story-call:hover { background: #ffda63; }
.route-story-call:focus-visible { outline: 3px solid #0064bd; outline-offset: 2px; box-shadow: 0 0 0 3px #fff; }

@media (max-width: 760px) {
  .route-story-header, .route-story-panel { grid-template-columns: minmax(0, 1fr); }
  .route-story-panel { min-height: 0; }
  .route-story-photo { order: -1; min-height: 0; aspect-ratio: 1.68; }
  .route-story-copy { padding: 23px 19px 27px; }
  .route-story-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .route-story-call { width: 100%; }
}
