/* v4, from KG's three hero frames (intake/kg-hero-frames-2026-10-21.webp): the name opens around a window of work. */
@font-face { font-family: 'PP Pangram Sans Narrow'; src: url('fonts/PPPangramSans-NarrowExtrabold.woff2') format('woff2'); font-weight: 800; font-display: block; }   /* KG's pick, 2026-10-21 */
@font-face { font-family: 'PP Right Grotesk Compact'; src: url('fonts/PPRightGrotesk-CompactRegular.woff2') format('woff2'); font-weight: 400; font-display: block; }
@font-face { font-family: 'PP Neue Montreal'; src: url('fonts/PPNeueMontreal-Book.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'PP Neue Montreal'; src: url('fonts/PPNeueMontreal-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --bg: #000; --ink: #F2F0EC; --ink2: #A9A49C; --line: #262523; --rule: rgba(242,240,236,.22);
  --head: 'PP Pangram Sans Narrow', 'PP Right Grotesk Compact', 'Arial Narrow', sans-serif;
  --head-w: 800; --track: -0.01em;
  --sans: 'PP Neue Montreal', system-ui, sans-serif;
  --m: max(16px, 5.7vw);                         /* KG's frame margin: 33 of 582 */
  --cap: 13px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); overflow-x: clip; }
body { overflow-x: clip; }
body { background: var(--bg); color: var(--ink); transition: none; font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, video { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 8px; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* chrome: arrives once the name has opened */
.chrome { position: fixed; left: 0; right: 0; top: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; height: 58px; padding: 0 var(--m); font-size: var(--cap); line-height: 1; color: var(--ink); transition: transform 0.45s var(--ease-energy, ease-out), background-color 0.3s; }
.chrome.band { background: var(--bg); }
.chrome.away { transform: translateY(-100%); }
.chrome nav { display: flex; gap: 28px; }
.chrome a { padding: 6px 0; }

/* the hero: KG's lockup and its window, placed by v4.js from measured type */
.hero { position: relative; height: 260vh; }
.hero .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.name { position: absolute; inset: 0; font-family: var(--head); font-weight: var(--head-w); text-transform: uppercase; line-height: 1; color: var(--ink); }
.name .wd { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform; }
.name .rc { position: absolute; left: 0; top: 0; overflow: hidden; background: #2a2826; }
.name .rc .g { position: absolute; inset: -40%; background-size: 100% 100%; will-change: transform; }
.rc.win video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }   /* the reel whole: a client's title is never cut by the window */
.rc.win video.on { opacity: 1; }
.rc.win .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .cap { position: absolute; left: var(--m); bottom: 22px; font-size: var(--cap); line-height: 1.35; color: var(--ink); z-index: 3; }
.hero .cap span { display: block; color: var(--ink2); }
.hero .cue { position: absolute; right: var(--m); bottom: 22px; font-size: var(--cap); line-height: 1.35; color: var(--ink2); z-index: 3; }
.loading .chrome, .loading .hero .cap, .loading .hero .cue { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero .stage { position: relative; }
}
.name:not(.ready) { visibility: hidden; }
.name .rc.win { z-index: 0; background: #000; }
.name .rc.win .g { z-index: 2; }
.name .rc.win .shade { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0) 72%, rgba(0,0,0,.5)); opacity: 0; z-index: 3; pointer-events: none; }
.name .wd { z-index: 5; }

/* type experiments: ?face= swaps the headline face, ?track= its letter-spacing (v4.js) */
.name, .comp, .big, .index .n, .steps h3 { letter-spacing: var(--track, 0); }
