/* ==========================================================================
   High Elm Studio — the guest journey
   A 1900vh pinned canvas following one guest. Without JavaScript the twelve
   chapters simply read down the page, because the pinned version stacks them
   all in one box and depends on the loop to tell them apart.
   ========================================================================== */

.gj {
  background: var(--ink);
  color: var(--bone);
  color-scheme: dark;
}
.gj a { color: var(--bone); }
.gj a:hover { color: var(--on-dark-lo); }

/* --------------------------------------------------------------------------
   01 Intro
   -------------------------------------------------------------------------- */

.gj-intro {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 6vw 14vh;
}

.gj-intro__in {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 720px;
}

.gj-intro .label { color: var(--on-dark); letter-spacing: 0.22em; font-size: 11px; }

.gj-intro h1 {
  margin: 0;
  font-family: var(--hd);
  font-weight: var(--hdw);
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1.04;
  letter-spacing: var(--hdls);
  text-wrap: balance;
}

.gj-intro p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--on-dark-lo);
  max-width: 520px;
  text-wrap: pretty;
}

.gj-intro__cue {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark);
  padding-top: 18px;
}
.gj-intro__cue span { width: 40px; height: 1px; background: var(--on-dark); }

/* --------------------------------------------------------------------------
   02 The journey — readable fallback first
   -------------------------------------------------------------------------- */

.gj-track { position: relative; }
.gj-sticky { position: relative; }
.gj-canvas { display: none; }
.gj-counter, .gj-rail { display: none; }

.gj-ch { padding: 0 6vw; }
.gj-ch__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto 96px;
}

.gj-ch__meta {
  display: flex;
  gap: 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.gj-ch h2 {
  margin: 0;
  font-family: var(--hd);
  font-weight: var(--hdw);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.06;
  text-wrap: balance;
}

.gj-ch p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--on-dark-lo);
  text-wrap: pretty;
}

.gj-ch__foot {
  font-size: 12px;
  letter-spacing: 0.04em;
  padding-top: 12px;
  border-top: 1px solid rgba(250, 248, 244, 0.18);
}
.gj-ch__svc { color: var(--on-dark); }
.gj-ch--last .gj-ch__foot { font-size: 11px; color: var(--on-dark); }

/* --- The pinned version ------------------------------------------------- */

.js .gj-track { height: 1900vh; }

.js .gj-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.js .gj-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.js .gj-counter {
  position: absolute;
  right: 6vw;
  top: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  pointer-events: none;
}

.gj-counter__day {
  font-family: var(--hd);
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.gj-counter__tp {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.js .gj-ch {
  position: absolute;
  inset: 0;
  padding: 0;
  pointer-events: none;
  opacity: 0;
}

.js .gj-ch__text {
  position: absolute;
  left: 6vw;
  bottom: 16vh;
  width: min(420px, 88vw);
  max-width: none;
  margin: 0;
}

.js .gj-rail {
  position: absolute;
  left: 6vw;
  right: 6vw;
  bottom: 5vh;
  height: 1px;
  background: rgba(250, 248, 244, 0.14);
  pointer-events: none;
  display: block;
}

.gj-rail__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  width: 0;
  background: rgba(250, 248, 244, 0.7);
}

/* --------------------------------------------------------------------------
   03 Close
   -------------------------------------------------------------------------- */

.gj-close {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 6vw;
}

.gj-close__in {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px 88px;
  align-items: end;
}

.gj-close__col { display: flex; flex-direction: column; gap: 22px; }
.gj-close__col--cta { align-items: flex-start; }
.gj-close .label { color: var(--on-dark); letter-spacing: 0.22em; font-size: 11px; }

.gj-close h2 {
  margin: 0;
  font-family: var(--hd);
  font-weight: var(--hdw);
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.06;
  text-wrap: balance;
}

.gj-close p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--on-dark-lo);
  max-width: 480px;
  text-wrap: pretty;
}

.gj-close__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
}

.gj-close__alt {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  font-size: 14px;
  color: var(--on-dark);
}
.gj-close__alt:hover { color: var(--bone); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.gj-footer {
  padding: 40px 6vw 48px;
  border-top: 1px solid rgba(250, 248, 244, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: var(--on-dark);
}

.gj-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.gj-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--on-dark);
}
.gj-footer nav a:hover { color: var(--bone); }

/* --------------------------------------------------------------------------
   Phones: a 24px gutter, smaller type, and the compact chapter text keeps
   its headline under 28px (guest-journey.js reads --gj-h for the shrink).
   -------------------------------------------------------------------------- */
.gj { --gj-h: clamp(28px, 3vw, 44px); }

@media (max-width: 599px) {
  .gj { --gj-h: 24px; }
  .gj-intro { padding: 0 var(--side-pad) 12vh; }
  .gj-intro__in { gap: 20px; }
  .gj-intro h1 { font-size: 26px; }
  .gj-intro p { font-size: 14px; line-height: 1.75; }
  .gj-ch { padding: 0 var(--side-pad); }
  .gj-ch h2 { font-size: var(--gj-h); }
  .gj-ch p { font-size: 14px; }
  .js .gj-ch__text { left: var(--side-pad); width: calc(100vw - var(--side-pad) * 2); gap: 10px; }
  .js .gj-counter { right: var(--side-pad); top: 96px; }
  .gj-counter__day { font-size: 14px; letter-spacing: 0.02em; }
  .gj-counter__tp { font-size: 11px; }
  .js .gj-rail { left: var(--side-pad); right: var(--side-pad); }
  .gj-close { padding: 0 var(--side-pad); }
  .gj-close__col { gap: 18px; }
  .gj-close h2 { font-size: 26px; }
  .gj-close p { font-size: 14px; line-height: 1.75; }
  .gj-close__alt { min-height: 44px; }
  .gj-footer { padding: 32px var(--side-pad) 40px; }
  .gj-footer nav a { min-height: 44px; }
}
