/* ==========================================================================
   nyteshift: light to dark — pass 3, as kept in pass 4
   How I work holds and plays step by step, and Start a project travels down
   as one. Unchanged from pass 3 (pass 3's crossing stories and Recent work
   reel were removed in pass 4; their replacements are in pass4.css).
   Static by default: everything here reads complete with no script and with
   reduced motion. The --live, --pin and --travel classes add the held,
   scroll-played versions. Geometry is measured by main.js and handed over
   as custom properties in px.
   ========================================================================== */

/* ==========================================================================
   HOW I WORK: held on wide screens while the light plays down the steps
   ========================================================================== */
.how--pin { height: calc(100svh + var(--how-run, 200svh)); padding: 0; }
.how--pin .how__stage {
  position: sticky; top: 0; height: 100svh;
  display: grid; align-content: center; padding-top: var(--nav-h);
}
.how--pin .sechead { padding-bottom: clamp(1rem, 3.4vh, 2.6rem); }
.how--pin .step { padding-block: clamp(1rem, 2.7vh, 2.1rem) clamp(1.2rem, 3.9vh, 3.1rem); }
.how--pin .step h3 { font-size: clamp(1.45rem, min(2.6vw, 4.3vh), 2.5rem); }
.how--pin .step p { font-size: clamp(.9688rem, min(1.18vw, 2.05vh), 1.25rem); }

/* a step lights the same way as in pass 2 (grey to full, its number to sodium), but by opacity on
   each text's own layer (the browser composites a running opacity transition by itself): colour
   transitions repainted the held stage on almost every frame.
   Unlit, the heading and paragraph sit at exactly pass 2's grey (#898882, 4.96:1 on carbon). */
.how--live .step h3 { color: var(--c-ink-1); opacity: .52; }
.how--live .step p { color: var(--c-ink-2); opacity: .72; }
.how--live .step .step-number { position: relative; color: var(--c-ink-4); }
.step__lit-n { position: absolute; left: 0; top: 0; padding-top: inherit; color: var(--sodium); opacity: 0; }
.how--live .step h3, .how--live .step p, .how--live .step__lit-n { transition: opacity .6s var(--e-io); }
.how--live .step.is-lit h3, .how--live .step.is-lit p, .how--live .step.is-lit .step__lit-n { opacity: 1; }
.how--live .step.is-lit .step-number { color: var(--c-ink-4); }

/* ==========================================================================
   START A PROJECT: both columns travel down as one and land level
   ========================================================================== */
.start--travel .start__shell { position: sticky; top: var(--start-top, 110px); }
.start--laying .form > * { will-change: transform, opacity; }
.start--travel::after { content: ""; display: block; height: var(--start-run, 40svh); }
