/* The tour page. Loaded after scrollcraft.css and site.css: the bar, the beta form and the footer come from there. */
.tour-page { background: var(--shell); color: var(--paper); }
.tour-page .bar { grid-template-columns: 1fr auto; }
.tour-page .bar__links { display: flex; align-items: center; gap: 1.2rem; justify-self: end; }
.tour-page .bar__link { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; text-decoration: none; color: var(--paper); }
.tour-page .bar__link:hover { text-decoration: underline; }

/* ---------- top: the claim and the track list of jobs ---------- */
.t-top { background: var(--blue); padding: 5.6rem var(--sc-gutter) 1.8rem; }
.t-top__in, .t-ch, .t-end__in { max-width: 82rem; margin: 0 auto; }
.t-kicker { margin: 0 0 .5rem; font-family: var(--label); font-weight: 800; text-transform: uppercase; letter-spacing: .16em; font-size: .85rem; color: var(--blue-pale); }
.t-top h1 { margin: 0 0 .6rem; font-family: var(--wide); font-stretch: 125%; font-weight: 900; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); letter-spacing: -0.03em; line-height: .95; text-wrap: balance; }
.t-lede { margin: 0 0 1.3rem; max-width: 62ch; font-size: 1.12rem; line-height: 1.5; color: #DDE1FF; text-wrap: pretty; }
.t-jobs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; counter-reset: job; }
.t-jobs a {
  display: flex; gap: .6rem; align-items: baseline; height: 100%; padding: .6rem .75rem; border-radius: 6px; text-decoration: none;
  background: var(--blue-deep); border: 1px solid color-mix(in oklab, var(--paper) 16%, transparent);
  font-weight: 600; font-size: .98rem; line-height: 1.25; transition: background-color .15s, border-color .15s;
}
.t-jobs a:hover { background: #1522a0; border-color: var(--paper); }
.t-jobs .n { font-family: var(--label); font-weight: 800; letter-spacing: .08em; color: var(--blue-pale); font-variant-numeric: tabular-nums; }

/* ---------- a chapter: the job on the left, its steps on the right ---------- */
.t-ch { padding: 4.2rem var(--sc-gutter) 1rem; display: grid; grid-template-columns: minmax(17rem, 23rem) minmax(0, 1fr); gap: 2rem 3.5rem; align-items: start; scroll-margin-top: 3.2rem; }
.t-ch:first-of-type { padding-top: 2.4rem; }
.t-ch + .t-ch { border-top: 1px solid color-mix(in oklab, var(--paper) 12%, transparent); }
.t-ch__head { position: sticky; top: 4.6rem; }
.t-ch__n { margin: 0 0 .5rem; font-family: var(--label); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: .85rem; color: var(--rec); }
.t-ch h2 { margin: 0 0 1rem; font-family: var(--wide); font-stretch: 118%; font-weight: 850; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance; }
.t-job { margin: 0 0 1.2rem; font-size: 1.14rem; line-height: 1.5; color: #E9E4DA; text-wrap: pretty; }
.t-note { margin: .5rem 0 0; font-size: .9rem; line-height: 1.45; color: #A9A5B3; }
.t-note a { color: var(--paper); }
.t-steps { display: grid; gap: 2.6rem; min-width: 0; }
.t-step { margin: 0; min-width: 0; }
.t-step video { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 880; background: #0c0c10; border-radius: 10px; border: 1px solid color-mix(in oklab, var(--paper) 14%, transparent); }
.t-step__frame { position: relative; }
.t-step figcaption { display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; align-items: baseline; margin-top: .8rem; }
.t-step__pos { font-family: var(--label); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; color: var(--blue-pale); white-space: nowrap; }
.t-step__cap { margin: 0; font-weight: 700; font-size: 1.1rem; line-height: 1.35; }
.t-step__alt, .t-step__heard { grid-column: 2; margin: 0; font-size: .96rem; line-height: 1.5; color: #B9B5C2; }
.t-step__heard b { color: var(--paper); font-weight: 700; }
/* the clip's buttons sit under it, so they never cover the caption drawn in the clip */
.t-step__frame { display: flex; flex-wrap: wrap; gap: .5rem; }
.t-step__frame video { flex: 0 0 100%; }
.t-btn {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 2.25rem; padding: 0 .9rem; border-radius: 999px; cursor: pointer;
  border: 1px solid color-mix(in oklab, var(--paper) 35%, transparent); background: transparent; color: var(--paper);
  font-family: var(--label); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem;
}
.t-btn:hover { border-color: var(--paper); }
.t-btn[aria-pressed="true"] { background: var(--rec); color: var(--paper-ink); border-color: var(--rec); }

/* ---------- the end: sign-up, where to read more, credits ---------- */
.t-end { margin-top: 4rem; background: var(--blue); padding: 3.5rem var(--sc-gutter) 3rem; }
.t-end h2 { margin: 0 0 .6rem; font-family: var(--wide); font-stretch: 125%; font-weight: 900; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); letter-spacing: -0.03em; line-height: .95; }
.t-end__sub { margin: 0 0 1.4rem; max-width: 56ch; font-size: 1.1rem; line-height: 1.5; color: #DDE1FF; }
.t-end__more { margin: 1.6rem 0 0; font-size: 1rem; color: #DDE1FF; }
.t-credits { max-width: 82rem; margin: 0 auto; padding: 2.6rem var(--sc-gutter) 2rem; font-size: .94rem; line-height: 1.55; color: #B9B5C2; }
.t-credits h2 { margin: 0 0 1rem; font-family: var(--label); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: .85rem; color: var(--blue-pale); }
.t-credits p { margin: 0 0 .8rem; max-width: 80ch; }
.t-credits a { color: var(--paper); }
.tour-page .foot { background: var(--shell); border-top: 1px solid color-mix(in oklab, var(--paper) 12%, transparent); color: #B9B5C2; }

@media (max-width: 1080px) { .t-jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .t-ch { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; padding-top: 3rem; }
  .t-ch__head { position: static; }
  .t-steps { gap: 2.2rem; }
}
@media (max-width: 640px) {
  .t-jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-jobs a { font-size: .92rem; padding: .55rem .6rem; }
  .tour-page .bar__link { display: none; }
  .t-step figcaption { grid-template-columns: minmax(0, 1fr); }
  .t-step__alt, .t-step__heard { grid-column: 1; }
  .t-step video { border-radius: 6px; }
}
@media (prefers-reduced-motion: reduce) { .t-jobs a { transition: none; } }
