/* ==========================================================================
   scroll-kit.css: shared parts of the scroll-told nav pages (Firings,
   Competitions, Journal, Info). Loads after site.css, before the page's own
   CSS. Uses the site's fonts and palette tokens only.
   Everything reads as a normal static page; the motion only switches on when
   scroll-kit.js adds .sk-on (JS present, motion allowed).
   ========================================================================== */

:root { --nav-h: 82px; --sk-ease: cubic-bezier(.2, .7, .2, 1); }
@media (max-width: 900px) { :root { --nav-h: 100px; } }

/* ---------- Shared type ---------- */
.sk-eyebrow, .sk-meta, .sk-link, .sk-jump {
  font-family: var(--mono); font-size: 12px; letter-spacing: .045em; line-height: 1.5; text-transform: uppercase;
}
.sk h1, .sk h2, .sk h3, .sk blockquote { font-family: var(--serif); font-weight: 400; margin: 0; }
.sk em { font-weight: 400; }
.sk h1, .sk h2 { word-spacing: .1em; }
.sk-dark a:focus-visible, .sk-dark summary:focus-visible { outline-color: var(--paper); }

/* ---------- Nav floats over the chapters so each one is a true full screen ---------- */
.sk-page .site-nav { left: 0; position: fixed; right: 0; top: 0; }
.sk-on .site-nav { transition: transform .45s var(--sk-ease); }
.sk-on .site-nav.is-tucked { transform: translateY(-101%); }
.sk-progress { height: 2px; left: 0; pointer-events: none; position: fixed; right: 0; top: 0; z-index: 30; }
.sk-progress span { background: var(--terracotta); display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; }

/* Chapters after the hero sit above it, so the hero can stay put underneath (curtain) */
.sk > :not(.sk-hero) { position: relative; z-index: 2; }

/* ==========================================================================
   Reveal (hero): copy left, portrait right
   ========================================================================== */
.sk-hero { background: var(--paper); height: 100vh; height: 100svh; overflow: clip; position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) and (min-width: 901px) { .sk-hero { position: sticky; top: 0; } }
.sk-hero__stage { display: grid; grid-template-columns: repeat(12, 1fr); height: 100%; }
.sk-hero__copy { align-items: flex-start; align-self: stretch; display: flex; flex-direction: column; grid-column: 1 / 7; grid-row: 1; justify-content: flex-end; padding: calc(var(--nav-h) + 24px) 0 clamp(34px, 6svh, 70px) var(--pad); position: relative; z-index: 2; }
.sk-hero h1 { color: var(--terracotta); font-size: var(--sk-h1, clamp(120px, 23vw, 390px)); letter-spacing: -.085em; line-height: .66; margin: 26px 0 clamp(26px, 5svh, 54px); }
.sk-hero h1 em { color: inherit; }
.sk-lede { font-size: clamp(17px, 1.7vw, 25px); line-height: 1.4; margin: 0 0 clamp(26px, 5svh, 52px); max-width: 30ch; }
.sk-jump { align-items: center; border-top: 1px solid var(--ink); display: flex; justify-content: space-between; min-height: 48px; width: min(260px, 100%); }
.sk-jump b { color: var(--terracotta); font-family: var(--serif); font-size: 26px; font-weight: 400; }
.sk-hero__photo { grid-column: 7 / -1; grid-row: 1; margin: 0; overflow: hidden; position: relative; }
.sk-hero__photo img { height: 100%; object-fit: cover; width: 100%; }
.sk-on .sk-hero__photo img { height: 114%; margin-top: -7%; will-change: transform; }
.sk-hero__photo figcaption { background: rgba(244, 230, 215, .94); bottom: 16px; display: flex; font-family: var(--mono); font-size: 12px; gap: 16px; left: 16px; letter-spacing: .045em; padding: 8px 12px; position: absolute; text-transform: uppercase; }

@media (prefers-reduced-motion: no-preference) {
  .has-js .sk-hero__photo { animation: sk-unveil 1.3s cubic-bezier(.7, 0, .2, 1) both; }
  .has-js .sk-hero__copy > * { animation: sk-rise 1s var(--sk-ease) both; }
  .has-js .sk-hero__copy > :nth-child(1) { animation-delay: .2s; }
  .has-js .sk-hero__copy > :nth-child(2) { animation-delay: .35s; }
  .has-js .sk-hero__copy > :nth-child(3) { animation-delay: .55s; }
  .has-js .sk-hero__copy > :nth-child(4) { animation-delay: .7s; }
}
@keyframes sk-unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sk-rise { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 900px) {
  .sk-hero { height: auto; min-height: 100svh; }
  .sk-hero__stage { display: flex; flex-direction: column; height: auto; min-height: 100svh; }
  .sk-hero__photo { flex: 0 0 auto; height: 60svh; order: 0; }
  .sk-hero__copy { flex: 1; order: 1; padding: 22px var(--pad) 34px; }
  .sk-hero h1 { font-size: var(--sk-h1-phone, 34vw); margin: 18px 0 22px; }
  .sk-lede { font-size: 17px; margin-bottom: 24px; }
}

/* ==========================================================================
   Band
   ========================================================================== */
.sk-band { background: var(--ink); border-bottom: 1px solid var(--ink); border-top: 1px solid var(--ink); color: var(--paper); overflow: hidden; padding: clamp(14px, 2vw, 28px) 0; user-select: none; }
.sk-band__track { display: flex; gap: .45em; white-space: nowrap; width: max-content; will-change: transform; }
.sk-band__track span { font-family: var(--serif); font-size: clamp(64px, 11vw, 190px); letter-spacing: -.05em; line-height: .9; }
.sk-band__track span:nth-child(even) { color: transparent; font-style: italic; -webkit-text-stroke: 1px var(--sk-stroke, var(--coral)); }
.sk-band__track span::after { color: var(--sk-dot, var(--terracotta)); content: '·'; font-style: normal; margin-left: .45em; -webkit-text-stroke: 0; }
.sk-band--terracotta { --sk-stroke: var(--paper); --sk-dot: var(--paper); background: var(--terracotta); border-color: var(--ink); color: var(--ivory); }

/* ---------- Entrance helper: split headings sit in masks ---------- */
.sk-on .sk-mask { display: block; overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; }

/* ---------- Reduced motion: static, fully visible ---------- */
@media (prefers-reduced-motion: reduce) {
  .sk-progress { display: none; }
  .sk-band__track { flex-wrap: wrap; white-space: normal; width: auto; }
}
