:root {
  --paper: #fff;
  --ink: #090a0b;
  --impact: #ed006f;
  --signal: #ed006f;
  --line: rgba(9, 10, 11, 0.24);
  --muted: #5e6064;
  --gutter: clamp(1.15rem, 4vw, 4.75rem);
  --header-h: 5.25rem;
  --display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
}

button,
a {
  color: inherit;
  font: inherit;
}

a:focus-visible,
button:focus-visible,
.path-panel:focus-visible {
  outline: 3px solid var(--impact);
  outline-offset: 4px;
}

.path-skip {
  position: fixed;
  z-index: 300;
  top: 0;
  left: 1rem;
  padding: 0.8rem 1rem;
  background: var(--signal);
  font-weight: 900;
  transform: translateY(-130%);
}

.path-skip:focus {
  transform: translateY(0);
}

.path-header {
  position: fixed;
  z-index: 200;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 0.75rem var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.path-brand {
  justify-self: start;
  display: grid;
  justify-items: center;
  font-style: italic;
  line-height: 0.75;
  text-decoration: none;
  transform: skewX(-5deg);
}

.path-brand span {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
  letter-spacing: -0.075em;
}

.path-brand small {
  margin-top: 0.4rem;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.3em;
}

.path-section {
  justify-self: center;
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.path-nav {
  justify-self: end;
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.6rem);
  font-size: 0.98rem;
  font-weight: 800;
}

.path-nav a {
  text-underline-offset: 0.35em;
}

.path-story {
  position: relative;
  padding-top: var(--header-h);
}

.path-pin {
  position: relative;
  background: var(--paper);
}

.path-status {
  position: sticky;
  z-index: 30;
  top: var(--header-h);
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) auto;
  gap: 2rem;
  align-items: center;
  min-height: 4.25rem;
  padding: 0.7rem var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.path-progress {
  height: 4px;
  overflow: hidden;
  background: var(--ink);
}

.path-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--impact);
  transform: scaleX(0);
  transform-origin: left;
}

.path-status p {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 850;
}

.path-status b {
  min-width: 3.6rem;
  text-align: right;
}

.path-route {
  display: none;
}

.path-track {
  display: block;
}

.path-panel {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding: clamp(7rem, 12vh, 9rem) var(--gutter) clamp(6rem, 10vh, 8rem);
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background: #fff;
}

.path-panel__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 91rem);
  margin: 0 auto;
}

.path-copy {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.path-copy h1,
.path-copy h2,
.path-copy p,
.path-watchboard h3,
.path-watchboard p {
  margin: 0;
}

.path-kicker {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.path-copy h1,
.path-copy h2 {
  max-width: 100%;
  font-family: var(--display);
  font-size: clamp(3.15rem, 5vw, 5.9rem);
  letter-spacing: -0.072em;
  line-height: 0.86;
  white-space: normal;
}

.path-copy h1 em,
.path-copy h2 em {
  color: var(--impact);
  font-style: italic;
}

.path-lead {
  max-width: 38rem;
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  font-weight: 650;
  line-height: 1.35;
}

.path-note {
  max-width: 34rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.path-opening,
.path-body-layout,
.path-branch-layout,
.path-route-layout,
.path-horizon-layout,
.path-watch-layout {
  display: grid;
  grid-template-columns: minmax(20rem, 0.82fr) minmax(30rem, 1.18fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
}

.path-hero-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: #fff;
}

.path-hero-visual::after {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 62%;
  width: 4px;
  background: var(--impact);
  transform: rotate(8deg);
}

.path-hero-visual img {
  width: 100%;
  min-height: 28rem;
  display: block;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.08);
}

.path-hero-visual figcaption {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1rem;
  border-top: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.93);
  font-size: 1rem;
  font-weight: 750;
}

.path-system {
  border-top: 2px solid var(--ink);
}

.path-system figure {
  height: 18rem;
  margin: 0;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}

.path-system img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.path-system ol,
.route-loop {
  padding: 0;
  margin: 0;
  list-style: none;
}

.path-system li,
.route-loop li {
  display: grid;
  grid-template-columns: minmax(7rem, 0.65fr) minmax(0, 1.35fr);
  gap: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.path-system strong,
.route-loop strong {
  font-size: 1.12rem;
}

.path-system span,
.route-loop span {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.4;
}

.path-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.path-choice {
  width: 100%;
  min-height: clamp(18rem, 26vw, 25rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 2.8vw, 2.8rem);
  border: 0;
  border-right: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, background 160ms ease, color 160ms ease;
}

.path-choice:last-child {
  border-right: 0;
}

.path-choice strong {
  max-width: 9ch;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 4.8rem);
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.path-choice span {
  max-width: 24rem;
  margin-top: auto;
  padding-top: 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.4;
}

.path-choice i {
  width: fit-content;
  margin-top: 1.4rem;
  padding: 0.78rem 1rem;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 900;
  text-align: left;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.path-choice.is-selected {
  background: var(--ink);
  color: #fff;
  transform: translateY(-0.75rem);
}

.path-choice.is-selected i,
.path-choice:hover i,
.path-choice:focus-visible i {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.path-choice.is-selected strong,
.path-choice:hover strong,
.path-choice:focus-visible strong {
  color: var(--impact);
}

.path-choice.is-selected span {
  color: rgba(255, 255, 255, 0.78);
}

.path-choice:hover,
.path-choice:focus-visible {
  position: relative;
  z-index: 3;
  background: var(--ink);
  color: #fff;
  transform: translateY(-0.45rem);
}

.path-choice.is-selected:hover,
.path-choice.is-selected:focus-visible {
  transform: translateY(-0.75rem);
}

.path-choice:hover span,
.path-choice:focus-visible span {
  color: rgba(255, 255, 255, 0.78);
}

.route-view {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(20rem, 0.82fr) minmax(30rem, 1.18fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
}

.route-view .path-copy h2 {
  font-size: clamp(3rem, 4.1vw, 5rem);
}

.route-loop {
  position: relative;
  border-top: 2px solid var(--ink);
}

.route-loop::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(31% - 1rem);
  width: 3px;
  background: var(--signal);
}

.path-panel--branches .path-branch-layout {
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.path-panel--branches .path-copy {
  grid-template-columns: minmax(19rem, 0.75fr) minmax(24rem, 1.25fr);
  column-gap: clamp(3rem, 8vw, 10rem);
  align-items: end;
}

.path-panel--branches .path-kicker {
  grid-column: 1 / -1;
}

.path-panel--branches .path-copy h2 {
  font-size: clamp(3.15rem, 4.8vw, 5.6rem);
}

.path-panel--branches .path-lead {
  grid-column: 2;
}

.path-panel--horizon {
  background: #f4f4f1;
}

.path-horizon-choices {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-top: 4.5rem;
}

.path-horizon-choices::before,
.path-horizon-choices::after {
  content: "";
  position: absolute;
  background: var(--ink);
  pointer-events: none;
}

.path-horizon-choices::before {
  top: 0;
  left: 50%;
  width: 2px;
  height: 2.5rem;
}

.path-horizon-choices::after {
  top: 2.5rem;
  right: 25%;
  left: 25%;
  height: 2px;
}

.path-horizon-choice {
  min-height: clamp(19rem, 28vw, 26rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.6rem, 3vw, 3rem);
  border: 2px solid var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 180ms ease;
}

.path-horizon-choice strong {
  max-width: 11ch;
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.8vw, 4.4rem);
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.path-horizon-choice span {
  max-width: 27rem;
  margin-top: auto;
  padding-top: 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  line-height: 1.4;
}

.path-horizon-choice i {
  width: fit-content;
  margin-top: 1.4rem;
  padding: 0.78rem 1rem;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 900;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.path-horizon-choice:hover,
.path-horizon-choice:focus-visible,
.path-horizon-choice.is-selected {
  background: var(--ink);
  color: #fff;
  transform: translateY(-0.45rem);
}

.path-horizon-choice:hover strong,
.path-horizon-choice:focus-visible strong,
.path-horizon-choice.is-selected strong {
  color: var(--impact);
}

.path-horizon-choice:hover span,
.path-horizon-choice:focus-visible span,
.path-horizon-choice.is-selected span {
  color: rgba(255, 255, 255, 0.78);
}

.path-horizon-choice.is-selected {
  border-color: var(--impact);
}

.path-horizon-choice:hover i,
.path-horizon-choice:focus-visible i,
.path-horizon-choice.is-selected i {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.path-current-route,
.path-selection-summary {
  width: fit-content;
  padding: 0.8rem 1rem;
  border: 2px solid currentColor;
  font-size: 1rem;
  font-weight: 700;
}

.path-current-route strong,
.path-selection-summary strong {
  color: var(--impact);
}

.path-panel--watch {
  background: var(--ink);
  color: #fff;
}

.path-panel--watch .path-copy h2 em {
  color: var(--signal);
}

.path-panel--watch .path-lead {
  color: #fff;
}

.path-end-link {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  max-width: 38rem;
  margin-top: 2rem;
  padding: 1.2rem 0;
  border-top: 2px solid #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 1.1rem;
  font-weight: 900;
  text-decoration: none;
}

.path-end-link span {
  font-size: 1.5rem;
}

.path-watchboard {
  border-top: 2px solid #fff;
}

.path-watchboard article {
  display: grid;
  grid-template-columns: minmax(10rem, 0.7fr) minmax(0, 1.3fr);
  gap: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.path-watchboard h3 {
  color: var(--signal);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.path-watchboard p {
  font-size: 1.05rem;
  line-height: 1.45;
}

.path-controls {
  display: none;
}

@media (min-width: 56rem) and (prefers-reduced-motion: no-preference) {
  .path-enhanced .path-story {
    height: calc(var(--path-panel-count, 6) * 118svh);
    padding-top: 0;
  }

  .path-enhanced .path-pin {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
    padding-top: var(--header-h);
  }

  .path-enhanced .path-status {
    position: absolute;
    top: var(--header-h);
    right: 0;
    left: 0;
  }

  .path-enhanced .path-track {
    display: flex;
    width: max-content;
    height: 100%;
    will-change: transform;
  }

  .path-enhanced .path-panel {
    flex: 0 0 100vw;
    width: 100vw;
    height: 100svh;
    min-height: 0;
    padding-top: calc(var(--header-h) + 5.4rem);
    padding-bottom: 7.6rem;
    border-right: 2px solid var(--ink);
    border-bottom: 0;
  }

  .path-enhanced .path-route {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 2.35rem;
    pointer-events: none;
  }

  .path-route__rail,
  .path-route__branches path,
  .path-route__accent,
  .path-route__progress {
    fill: none;
    vector-effect: non-scaling-stroke;
  }

  .path-route__rail,
  .path-route__branches path {
    stroke: rgba(9, 10, 11, 0.28);
    stroke-width: 1.5;
  }

  .path-route__branches circle {
    fill: #fff;
    stroke: var(--ink);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
  }

  .path-route__branches circle.is-selected {
    fill: var(--signal);
  }

  .path-route__accent {
    stroke: var(--impact);
    stroke-width: 9;
  }

  .path-route__progress {
    stroke: var(--ink);
    stroke-width: 3;
  }

  .path-route__origin {
    fill: var(--signal);
    stroke: var(--ink);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
  }

  .path-enhanced .path-panel--watch .path-route__rail {
    stroke: #fff;
  }

  .path-enhanced .path-panel__inner > *,
  .path-enhanced .path-copy > * {
    opacity: 0.32;
    transform: translateY(0.75rem);
    transition: opacity 420ms ease, transform 520ms ease;
  }

  .path-enhanced .path-panel.is-active .path-panel__inner > *,
  .path-enhanced .path-panel.is-active .path-copy > * {
    opacity: 1;
    transform: none;
  }

  .path-enhanced .path-controls {
    display: none;
  }

  .path-controls button {
    min-height: 2.9rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: #fff;
    font-weight: 850;
    cursor: pointer;
  }

  .path-controls button:disabled {
    opacity: 0.42;
    cursor: default;
  }

  .path-at-end .path-route__rail,
  .path-at-end .path-route__branches path,
  .path-at-end .path-route__progress {
    stroke: #fff;
  }

  .path-at-end .path-route__branches circle {
    stroke: #fff;
  }
}

@media (min-width: 56rem) and (max-height: 50rem) {
  .path-copy h1,
  .path-copy h2 {
    font-size: clamp(2.8rem, 4.4vw, 4.6rem);
  }

  .route-view .path-copy h2 {
    font-size: clamp(2.7rem, 3.75vw, 4.2rem);
  }

  .path-panel--branches .path-branch-layout {
    gap: 2rem;
  }

  .path-panel--branches .path-copy h2 {
    font-size: clamp(2.9rem, 4vw, 4.35rem);
  }

  .path-choice {
    min-height: 15rem;
  }

  .path-hero-visual img {
    min-height: 20rem;
  }

  .path-system figure {
    height: 12rem;
  }

  .path-system li,
  .route-loop li,
  .path-choice,
  .path-watchboard article {
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
  }

  .path-enhanced .path-route {
    height: 2.1rem;
  }
}

@media (max-width: 55.999rem) {
  :root {
    --header-h: 7.4rem;
  }

  .path-header {
    height: var(--header-h);
    grid-template-columns: 1fr auto;
  }

  .path-section {
    justify-self: end;
  }

  .path-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: space-between;
    padding-top: 0.55rem;
    border-top: 1px solid var(--line);
  }

  .path-status {
    top: var(--header-h);
  }

  .path-opening,
  .path-body-layout,
  .path-branch-layout,
  .path-route-layout,
  .path-horizon-layout,
  .path-watch-layout,
  .route-view {
    grid-template-columns: 1fr;
  }

  .path-panel {
    overflow: visible;
  }

  .path-hero-visual img {
    min-height: 24rem;
  }

  .path-panel--branches .path-copy {
    grid-template-columns: 1fr;
  }

  .path-panel--branches .path-lead {
    grid-column: auto;
  }

  .path-choices,
  .path-horizon-choices {
    grid-template-columns: 1fr;
  }

  .path-choice {
    min-height: 17rem;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .path-choice:last-child {
    border-bottom: 0;
  }

  .path-horizon-choices {
    padding-top: 0;
  }

  .path-horizon-choices::before,
  .path-horizon-choices::after {
    display: none;
  }
}

@media (max-width: 40rem) {
  .path-status {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .path-status p {
    justify-content: space-between;
  }

  .path-panel {
    min-height: 100svh;
    padding-top: 8.5rem;
  }

  .path-copy h1,
  .path-copy h2 {
    font-size: clamp(2.2rem, 8.4vw, 3.65rem);
  }

  .path-panel--branches .path-copy h2,
  .route-view .path-copy h2 {
    font-size: clamp(2.2rem, 8.4vw, 3.65rem);
  }

  .path-choice,
  .path-system li,
  .route-loop li,
  .path-watchboard article {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .path-choice i {
    text-align: left;
  }

  .route-loop::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
