/* Scroll scenes: the sideways career track, line reveals, the work list and its pointer card. */

/* statement text that fills as the visitor scrolls */
[data-fill] .word { display: inline-block; opacity: .16; will-change: opacity; }
.no-motion [data-fill] .word { opacity: 1; }

/* the sideways track */
.track { position: relative; background: var(--slate); color: var(--paper); --ground: var(--slate); --ink-on: var(--paper); }
.track__camera { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  background: var(--ground); color: var(--ink-on); padding-top: 70px; }
.track .eyebrow { position: absolute; top: 96px; left: var(--gutter); margin: 0; }
.track__rail { display: flex; gap: clamp(40px, 6vw, 110px); padding: 0 var(--gutter) 0 max(var(--gutter), 12vw); width: max-content; will-change: transform; align-items: flex-end; }
.stop { position: relative; flex: 0 0 auto; width: clamp(280px, 30vw, 460px); padding-top: 22px; border-top: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  transform: translateY(calc(var(--level, 0) * -3.2svh)); }
.stop b { display: block; font-size: clamp(88px, 12.5vw, 210px); line-height: .82; font-weight: 900; font-stretch: 75%; letter-spacing: -.03em; }
.stop h3 { margin-top: 18px; font-size: clamp(18px, 1.5vw, 24px); font-weight: 750; line-height: 1.15; text-transform: uppercase; letter-spacing: .01em; }
.stop p { margin-top: 10px; font-size: 16px; line-height: 1.45; opacity: .72; max-width: 26em; }
.stop::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--clay-fill); }
.runline { position: absolute; left: 0; top: 0; height: 100%; pointer-events: none; overflow: visible; }
.runline path { stroke: var(--clay); stroke-linejoin: round; }
.track__count { position: absolute; right: var(--gutter); bottom: 34px; font-size: 13px; font-weight: 700; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.track__count span { color: var(--clay); }

/* lines that rise into place */
[data-lines] li { clip-path: inset(0 0 0 0); }
.motion [data-lines] li { opacity: 0; transform: translateY(42%); }

/* work list */
.rows { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.rows li { border-bottom: 1px solid var(--rule); }
.rows a { display: grid; grid-template-columns: 4.5rem 1fr auto; align-items: baseline; gap: 12px; padding: clamp(18px, 2.4vw, 34px) 0; text-decoration: none;
  font-size: clamp(22px, 3.3vw, 54px); line-height: 1.02; font-weight: 800; font-stretch: 85%; letter-spacing: -.02em; text-transform: uppercase; transition: opacity .25s, padding-left .45s cubic-bezier(.65,.01,.05,.99); }
.rows i { font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--clay); }
.rows em { font-family: var(--sans); font-style: normal; font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  opacity: 0; transform: translateX(-12px); transition: opacity .3s, transform .45s cubic-bezier(.65,.01,.05,.99); }
.rows:hover a { opacity: .32; }
.rows a:hover, .rows a:focus-visible { opacity: 1; padding-left: 18px; }
.rows a:hover em, .rows a:focus-visible em { opacity: 1; transform: none; }
.peek { position: fixed; left: 0; top: 0; z-index: 40; width: clamp(150px, 15vw, 230px); aspect-ratio: 1; display: grid; place-items: center; background: var(--clay-fill); color: #fff;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .25s, scale .35s cubic-bezier(.2,.8,.2,1); }
.peek.is-on { opacity: 1; }
.peek b { font-size: clamp(30px, 3.6vw, 58px); font-weight: 900; font-stretch: 75%; letter-spacing: -.02em; text-transform: uppercase; text-align: center; line-height: .95; padding: 10px; }

/* closing scene rises from under the page */
.talk { position: relative; overflow: hidden; }
.talk h2 { display: inline-block; position: relative; }
.talk h2::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.02em; height: .05em; background: var(--clay-fill); transform: scaleX(var(--draw, 1)); transform-origin: left; }

/* phones: the track becomes a plain list, no pointer card */
@media (max-width: 760px) {
  .track__camera { position: static; height: auto; padding: 84px 0 64px; }
  .track .eyebrow { position: static; margin: 0 var(--gutter) 30px; }
  .track__rail { flex-direction: column; width: auto; gap: 44px; padding: 0 var(--gutter); align-items: stretch; }
  .stop { width: auto; transform: none; }
  .runline, .track__count, .peek { display: none; }
  .rows a { grid-template-columns: 2.6rem 1fr; } .rows em { display: none; }
}

/* layering: the first screen holds while the next scene slides over it, as on both references */
.hero { position: sticky; top: 0; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 9; background: var(--slate); opacity: var(--veil, 0); pointer-events: none; }
.band, .track { position: relative; z-index: 1; }
#strategy { border-radius: clamp(26px, 4.6vw, 78px) clamp(26px, 4.6vw, 78px) 0 0; }
#measures, #contact { border-radius: clamp(26px, 4.6vw, 78px) clamp(26px, 4.6vw, 78px) 0 0; margin-top: calc(clamp(26px, 4.6vw, 78px) * -1); }
#brands, #work, #book { padding-bottom: calc(clamp(72px, 11vw, 160px) + clamp(26px, 4.6vw, 78px)); }
@media (max-width: 760px) { .hero { position: relative; } }

/* every scene is opaque, so the held first screen never shows through */
.light { background: var(--paper); }

/* order of proof: measures straight after the statement, on paper; the work list on dark */
#work { border-radius: clamp(26px, 4.6vw, 78px) clamp(26px, 4.6vw, 78px) 0 0; margin-top: calc(clamp(26px, 4.6vw, 78px) * -1); }
#strategy { padding-bottom: calc(clamp(72px, 11vw, 160px) + clamp(26px, 4.6vw, 78px)); }
.dark .rows, .dark .rows li { border-color: rgba(246,244,238,.2); }
.dark .rows em { color: var(--paper); }
.light .statement { color: var(--ink); }

/* arrival wipe */
.wipe { position: relative; }
.wipe-bar { position: absolute; inset: 0; background: var(--clay-fill); transform-origin: right; pointer-events: none; }
.eyebrow.wipe { width: fit-content; }
.track__camera { transition: color .2s; }
.track__count { transition: opacity .3s; }
