/* STARS NETWORK · /campaign
   The campaign journey, told as a route. A title split round the record; one
   long pinned act that travels sideways through the four stops (the copy
   rides the route with the scene, a rail below keeps the place); then the
   brief, set out like a printed sheet whose index ticks off as it fills. */

/* ------------------------------------------------------------------ hero */
.c-hero { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + 2vh) var(--pad) calc(44px + env(safe-area-inset-bottom, 0px)); }
.c-hero__title {
  display: grid; grid-template-rows: auto 1fr auto; min-height: calc(100svh - var(--nav-h) - 2vh - 44px);
  font-size: clamp(50px, 7.4vw, 138px); line-height: .9; letter-spacing: -0.022em; margin: 0;
}
.c-hero__a { grid-row: 1; justify-self: start; }
.c-hero__b { grid-row: 3; justify-self: end; text-align: right; padding-bottom: 2px; }
.c-hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.c-hero__title .line > span { display: block; }
.c-hero__foot { position: absolute; left: var(--pad); bottom: calc(44px + env(safe-area-inset-bottom, 0px)); width: min(30rem, 38%); }
.c-hero__lead { margin: 0; font-family: var(--serif); font-size: clamp(18px, 1.35vw, 23px); line-height: 1.32; color: var(--bone); max-width: 26ch; }
.c-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 26px; }

.js .c-hero__title .line > span { transform: translate3d(0, 108%, 0); }
.intro .c-hero__title .line > span { transform: none; transition: transform 1.1s var(--ease-out) calc(var(--i, 0) * 90ms + 180ms); }

/* ----------------------------------------------------------------- route */
/* 100vh of scroll per stop; the pin holds one screen while the track moves */
.c-route { position: relative; height: 500vh; }
.c-route__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.c-route__track { display: flex; width: 500vw; height: 100%; will-change: transform; }
.c-stop {
  position: relative; flex: 0 0 100vw; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 4vh) var(--pad) calc(150px + env(safe-area-inset-bottom, 0px));
}
.c-stop > * { max-width: 32rem; }
.c-stop__n {
  margin: 0 0 14px; font-family: var(--serif); font-size: clamp(88px, 11vw, 196px); line-height: .78; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(236, 230, 216, .5); font-variant-numeric: lining-nums;
}
.c-stop__title { font-size: clamp(34px, 3.9vw, 68px); line-height: .98; letter-spacing: -0.016em; max-width: 11ch; }
.c-stop__body { margin: 20px 0 0; font-size: clamp(15px, 1.06vw, 17px); line-height: 1.64; color: var(--bone-dim); max-width: 40ch; }
.c-stop__go { margin-top: 24px; align-self: flex-start; }
.c-stop--start .c-stop__title { font-size: clamp(46px, 6vw, 108px); max-width: 9ch; line-height: .94; }
/* a soft pool of ink under each stop's copy, so it reads over the scene */
.c-stop::before {
  content: ''; position: absolute; left: 0; bottom: 0; width: min(760px, 70vw); height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 72% 70% at 22% 78%, rgba(8, 8, 10, .82), rgba(8, 8, 10, .5) 55%, rgba(8, 8, 10, 0));
}
/* where each stop is centred, for the scene's beats (see page.js) */
.c-mark { position: absolute; left: 0; width: 1px; height: 0; top: calc(50vh + var(--k) * (100% - 100vh) / 4); pointer-events: none; }

/* the rail: the route drawn small, a star riding it, each stop a way back in */
.c-rail {
  position: absolute; left: var(--pad); right: var(--pad); bottom: calc(26px + env(safe-area-inset-bottom, 0px)); z-index: 3;
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: start; height: 64px;
}
.c-rail__line { position: absolute; left: 0; right: 0; top: 21px; height: 1px; background: var(--line); }
.c-rail__fill { position: absolute; inset: 0; background: var(--bone); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.c-rail__stop {
  justify-self: center; position: relative; display: grid; justify-items: center; gap: 13px; min-height: 44px; padding: 17px 10px 6px;
  background: none; border: 0; color: var(--bone-dim); cursor: pointer;
  font: 600 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; transition: color .2s ease;
}
.c-rail__dot { width: 9px; height: 9px; border: 1px solid var(--bone-dim); border-radius: 50%; background: var(--ink);
  transition: background-color .2s ease, border-color .2s ease, transform .25s var(--ease-out); }
.c-rail__stop.is-passed .c-rail__dot { background: var(--bone); border-color: var(--bone); }
.c-rail__stop.is-here { color: var(--bone); }
.c-rail__stop.is-here .c-rail__dot { transform: scale(1.5); }
@media (hover: hover) and (pointer: fine) { .c-rail__stop:hover { color: var(--bone); } }
.c-rail__head { position: absolute; left: 0; top: 12px; width: 19px; height: 19px; color: var(--bone); pointer-events: none;
  transform: translate3d(calc(var(--x, 0px) - 50%), 0, 0) rotate(var(--r, 0deg)); filter: drop-shadow(0 0 6px rgba(255, 250, 240, .45)); }

/* ----------------------------------------------------------------- brief */
/* the brief is the plain form (pages.css), one column on the left, the
   record resting in the scene beside it */
.c-brief .pg-copy { width: min(620px, 100%); }
.c-brief .form { max-width: none; }

/* --------------------------------------------------------- without script */
.no-js .c-route { height: auto; }
.no-js .c-route__pin { position: static; height: auto; overflow: visible; }
.no-js .c-route__track { flex-direction: column; width: auto; }
.no-js .c-stop { flex: none; min-height: 80vh; }
.no-js .c-rail { display: none; }

/* --------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .js .c-hero__title .line > span { transform: none; opacity: 0; }
  .intro .c-hero__title .line > span { opacity: 1; transition: opacity .5s linear .1s; }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 760px) {
  .c-hero { padding-top: calc(var(--nav-h) + 12px); }
  .c-hero__title { font-size: clamp(46px, 13.4vw, 64px); min-height: calc(100svh - var(--nav-h) - 250px); }
  .c-hero__foot { position: static; width: auto; margin-top: 26px; }
  .c-hero__actions .cta { flex: 1 1 100%; justify-content: space-between; }
  .c-stop { justify-content: flex-end; padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px)); }
  .c-stop::before { width: 100%; height: 62%; background: linear-gradient(0deg, rgba(8, 8, 10, .9) 30%, rgba(8, 8, 10, .6) 70%, rgba(8, 8, 10, 0)); }
  .c-stop__n { font-size: 74px; margin-bottom: 8px; }
  .c-stop__title { font-size: clamp(32px, 9vw, 44px); }
  .c-stop--start .c-stop__title { font-size: clamp(44px, 12vw, 60px); }
  .c-rail { height: 60px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .c-rail__stop { font-size: 8.5px; letter-spacing: .16em; padding-inline: 4px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .c-stop { padding-bottom: 96px; }
  .c-stop__n { font-size: 60px; }
  .c-hero__title { font-size: clamp(38px, 9vh, 60px); }
}
