.top nav [aria-current=page] { color: var(--accent); font-weight: 600; }
.tour-hero {
  background: radial-gradient(ellipse at 85% 12%, #27090b, transparent 54%), linear-gradient(var(--paper), var(--page));
  border-bottom: 1px solid var(--line);
}
.tour-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  padding-block: clamp(3rem, 8vw, 7rem);
}
.tour-hero h1 { margin: .65rem 0 1rem; font-size: clamp(2.8rem, 5.15vw, 5rem); line-height: 1.04; }
.tour-hero em { color: #ff8982; font-style: normal; }
.workflow-preview {
  min-width: 0;
  margin: 0;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 17px 64px #500c1138;
}
.workflow-preview figcaption { font-weight: 600; }
.flow-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 1.25rem 0; }
.flow-map li { min-width: 0; position: relative; padding-right: .5rem; }
.flow-map li:not(:last-child)::after { content: ""; position: absolute; left: 45px; right: 0; top: 21px; height: 1px; background: #663237; }
.map-icon { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: .6rem; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.flow-map strong, .flow-map small { display: block; line-height: 1.3; }
.flow-map strong { font-size: .9rem; font-weight: 600; }
.flow-map small, .flow-note { color: var(--muted); font-size: .875rem; }
.flow-map small { margin-top: .3rem; }
.flow-note { border-top: 1px solid var(--line); padding-top: .7rem; }
.tour-toolbar, .tour-toolbar nav { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.tour-toolbar { justify-content: space-between; margin-bottom: 1.25rem; }
.tour-toolbar nav a { border: 1px solid var(--line); border-radius: 999px; padding: .38rem .8rem; color: var(--muted); }
.tour-toolbar nav a:hover, .tour-toolbar nav [aria-current=location] { background: var(--accent-soft); color: var(--accent); border-color: #944747; }
#autoplay { min-height: 40px; font-size: .9rem; }
#autoplay[hidden], .tour-panel[hidden] { display: none; }
#autoplay[aria-pressed=true] { background: var(--accent-soft); color: var(--accent); }
.tour-story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: clamp(1.5rem, 6vw, 6rem); }
.tour-chapter { grid-column: 1; scroll-margin-top: 85px; padding-block: 1rem; }
.tour-chapter + .tour-chapter { border-top: 1px solid var(--line); }
.chapter-copy h3 { font-size: clamp(1.65rem, 3vw, 2.65rem); font-weight: 500; margin: .55rem 0 .75rem; }
.chapter-copy > p:not(.eyebrow) { color: var(--muted); }
.chapter-link { display: inline-block; margin-top: .8rem; font-weight: 600; color: var(--accent); }
.chapter-link:hover { text-decoration: underline; }
.tour-media { grid-column: 2; grid-row: 1 / span 2; min-width: 0; align-self: start; display: grid; gap: 1rem; }
.tour-panel { min-width: 0; margin: 0; padding: .65rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); box-shadow: 0 14px 32px #0005; }
.tour-panel video { aspect-ratio: 16/9; border-radius: 10px; background: #0e0f11; }
.tour-panel figcaption { padding: .55rem .15rem .08rem; color: var(--muted); font-size: .9rem; }
.tour-enhanced .tour-chapter { min-height: min(57vh, 29rem); display: grid; align-items: center; }
.tour-enhanced .tour-media { position: sticky; top: 105px; }
.tour-enhanced .tour-panel:not([hidden]) { animation: panel-in .36s ease both; }
@keyframes panel-in { from { opacity: .45; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.tour-final { background: var(--surface); border-block: 1px solid var(--line); }
.tour-final h2 { font-size: clamp(1.9rem, 4.2vw, 3.25rem); }
@media (max-width: 760px) {
  .tour-hero-inner, .tour-story { grid-template-columns: 1fr; }
  .tour-chapter { scroll-margin-top: 113px; }
  .tour-media { grid-column: 1; grid-row: auto; margin-top: 1rem; }
  .tour-enhanced .tour-story { gap: .25rem; }
  .tour-enhanced .tour-media { display: contents; }
  .tour-enhanced .tour-chapter { min-height: auto; }
  .tour-enhanced .tour-panel { grid-column: 1; }
  .tour-enhanced .tour-chapter:nth-child(1) { grid-row: 1; }
  .tour-enhanced .tour-chapter:nth-child(2) { grid-row: 3; }
  .tour-enhanced .tour-panel:nth-child(1) { grid-row: 2; }
  .tour-enhanced .tour-panel:nth-child(2) { grid-row: 4; }
  .tour-enhanced .tour-chapter + .tour-chapter { margin-top: 1rem; }
}
@media (max-width: 390px) {
  .flow-map { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; }
  .flow-map li:nth-child(2)::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-enhanced .tour-panel:not([hidden]) { animation: none; }
}
