
.bk-journey {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "scene head"
    "scene panel";
  min-height: 100vh;
  padding-top: var(--nav-h);
  background: var(--bg-hero);
}

.bk-scene {
  grid-area: scene;
  position: sticky;
  top: var(--nav-offset, var(--nav-h));
  align-self: start;
  height: calc(100vh - var(--nav-offset, var(--nav-h)));
  min-height: 520px;
  overflow: hidden;
  background: var(--bg);
  --bs-x: .5;
  --bs-y: .42;
  --bs-sun: .15;
}
.bk-scene canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.bk-scene.is-still {
  background:
    linear-gradient(to bottom, transparent 42%, var(--bg) 42%),
    radial-gradient(circle at 50% 42%, var(--accent) 0 15vh, transparent calc(15vh + 1px)),
    radial-gradient(ellipse at 50% 42%, var(--accent-dim), transparent 60%),
    var(--bg);
}
.bk-scene::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 88%, transparent), transparent);
  pointer-events: none;
}

.bk-rail {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: var(--gutter);
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.bk-rail li {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color .4s ease;
}
.bk-rail li span {
  position: relative;
  width: 22px;
  color: inherit;
}
.bk-rail li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
  transition: background-color .4s ease, opacity .4s ease, transform .4s ease;
}
.bk-rail li.is-past { color: var(--text-muted); }
.bk-rail li.is-on { color: var(--text); }
.bk-rail li.is-on::before { background: var(--accent); opacity: 1; transform: scale(1.5); }

.bk-cap {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(28px, 5vh, 56px);
  pointer-events: none;
}
.bk-cap__n {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.bk-cap__t {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(1.5rem, 1rem + 1.3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  min-height: 2.2em;
}

.bk-head,
.bk-panel {
  padding-left: clamp(40px, 5.5vw, 104px);
  padding-right: var(--bleed);
}
.bk-head {
  grid-area: head;
  padding-top: clamp(32px, 5.5vh, 64px);
  max-width: calc(620px + clamp(40px, 5.5vw, 104px) + var(--bleed));
}
.bk-head .section-label { margin-bottom: 14px; }
.bk-head .page-title { margin-bottom: 14px; font-size: clamp(2.25rem, 1.5rem + 2vw, 3.25rem); }
.bk-head .page-lede { margin-bottom: 0; }
.bk-panel {
  grid-area: panel;
  padding-top: 28px;
  padding-bottom: 96px;
}
.bk-journey .form-progress__label { margin-bottom: 26px; }
.bk-journey .form-step__question { margin-bottom: 20px; }
.bk-journey .form-option { padding: 15px 20px; }
.bk-panel > * { max-width: 560px; }
.bk-journey .qualifier-form { max-width: 560px; }
.bk-journey [tabindex="-1"]:focus { outline: none; }

.form-step__hint {
  margin: -10px 0 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-option__tick {
  flex: none;
  width: 18px;
  height: 18px;
  margin-right: 14px;
  border: 1.5px solid var(--text-dim);
  border-radius: 5px;
  transition: background-color .15s ease, border-color .15s ease;
}
.form-option.is-selected .form-option__tick {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.form-continue { margin-top: 20px; }
.form-continue:disabled { opacity: .4; pointer-events: none; }

.bk-notyet .section-label { margin-bottom: 14px; }
.bk-notyet .bk-note { margin-top: -12px; }
.bk-notyet[hidden],
.qualifier-form[hidden],
#disqualForm[hidden],
#disqualSuccess[hidden] { display: none; }
.bk-notyet__back { margin-top: 22px; }

.bk-alt {
  margin: 44px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
}
.bk-alt a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.bk-alt a:hover { color: var(--accent); }

@media (max-width: 1024px) {
  .bk-journey {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas: "head" "scene" "panel";
  }
  .bk-head,
  .bk-panel { padding-left: var(--gutter); padding-right: var(--gutter); max-width: none; }
  .bk-head { padding-top: 48px; padding-bottom: 28px; }
  .bk-scene {
    z-index: 2;
    height: clamp(170px, 30vh, 320px);
    min-height: 0;
    --bs-y: .44;
    --bs-sun: .2;
  }
  .bk-rail { display: none; }
  .bk-cap { bottom: 20px; }
  .bk-cap__n { margin-bottom: 6px; }
  .bk-cap__t { font-size: clamp(1.25rem, .9rem + 1.6vw, 1.75rem); min-height: 0; }
  .bk-panel { padding-top: 32px; padding-bottom: 72px; }
}
@media (max-width: 640px) {
  .bk-head .page-title { font-size: clamp(2rem, 1.4rem + 3vw, 2.5rem); }
  .bk-head .page-lede { font-size: 15px; }
  .bk-cap { bottom: 14px; }
  .bk-cap__n { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bk-rail li,
  .bk-rail li::before { transition: none; }
}
