/* ════════════════════════════════════════════════════════════════
   Homepage: monochrome restyle (Refero "Nike.com" style reference).
   Loaded after home.css. Visual layer only: every section, image and
   scroll effect (hero video growth, sticky card stack, depth carousel)
   keeps the structure and sizing home.css and the scripts rely on.

   Rules: black / white / three greys; weights 400 and 500 only; one
   display face at hero scale (max 76px); 30px pill buttons; sharp-edged
   images; no shadows, glows or decorative gradients. Gold survives only
   as the small brand dot (AGENTS.md single-accent rule).
   ════════════════════════════════════════════════════════════════ */

:root {
  --obsidian: #111111;
  --paper: #ffffff;
  --concrete: #e5e5e5;
  --mist: #f5f5f5;
  --steel: #707072;
  --faint: #9e9ea0;
  --font-text: "Helvetica Neue", Helvetica, Inter, Arial, sans-serif;
  --font-display: "Futura PT", Futura, Jost, "Helvetica Neue", Arial, sans-serif;
  --radius-pill: 30px;

  /* Repoint home.css tokens so inherited rules (carousel edge fade,
     footer band, buttons) pick up the monochrome surfaces. */
  --cream: var(--paper);
  --ink: var(--obsidian);
  --muted: rgba(255, 255, 255, .78);
}

body {
  font-family: var(--font-text);
  background: var(--obsidian);
  -webkit-font-smoothing: antialiased;
}

/* ── Header: black utility strip + black nav bar; scrolls with the page ── */
.site-header.nk-header {
  position: relative;
  pointer-events: auto;
  background: var(--obsidian);
}
.nk-utility {
  height: 36px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
}
.nk-utility__links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nk-utility__links span { color: var(--steel); }
.nk-utility__links a:hover { color: var(--faint); }
.navbar,
.site-header.scrolled .navbar {
  position: relative;
  width: 100%;
  height: 60px;
  margin: 0;
  padding: 0 24px;
  border: 0;
  border-radius: 0;
  background: var(--obsidian);
  backdrop-filter: none;
  box-shadow: none;
  color: var(--paper);
}
.brand {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.brand-mark {
  width: 10px;
  height: 10px;
  box-shadow: none;
}
/* Links sit in the true centre of the bar, as in the reference. */
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links,
.nav-actions {
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { color: var(--paper); }
.nav-links a:hover { color: var(--faint); }

/* ── Buttons: one pill geometry, obsidian-on-white or white-on-obsidian ── */
.cta-link,
.primary-btn,
.secondary-btn,
.get-started__btn,
.dc-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 20px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
  box-shadow: none;
  transform: none;
  transition: opacity .15s ease;
}
.cta-link:hover,
.primary-btn:hover,
.secondary-btn:hover,
.get-started__btn:hover,
.dc-card__link:hover { opacity: .72; transform: none; }
/* Everything above the white sections sits on black: white pills. */
.cta-link,
.primary-btn,
.get-started__btn,
.get-started__btn:hover,
.dc-card__link { background: var(--paper); color: var(--obsidian); }
.secondary-btn {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}

/* ── Hero: full-width video in a black band, headline centred below ── */
.nk-hero {
  background: var(--obsidian);
  padding: 24px 0 32px;
}
.nk-hero__media {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 96px - 48px);
  width: 100%;
  overflow: hidden;
  background: var(--obsidian);
}
.nk-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nk-hero__toggle {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--obsidian);
  font: 500 14px/1 var(--font-text);
  cursor: pointer;
}
.nk-hero__toggle:hover { opacity: .8; }
.nk-hero__toggle:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.nk-hero__toggle .nk-icon-play,
.nk-hero__toggle.is-paused .nk-icon-pause { display: none; }
.nk-hero__toggle.is-paused .nk-icon-play { display: inline; }
.nk-hero__copy {
  padding: 56px 24px 0;
  text-align: center;
}
.nk-hero h1 {
  margin: 0;
  font-family: Anton, "Futura Condensed ExtraBold", Impact, var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 10vw, 76px);  /* reference display: 76px, line-height 1 */
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--paper);
}
.nk-hero .hero-copy {
  max-width: 520px;
  margin: 16px auto 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--paper);
}
.nk-hero .hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
  gap: 8px;
}
.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.section-kicker { color: var(--steel); }

h2,
.section-title-sm {
  font-family: var(--font-text);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: var(--obsidian);
}
.section-subtitle {
  max-width: 560px;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--steel);
}

/* Screen-reader-only text. */
.nk-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* ── Two-up tiles + image band (follows the hero) ── */
.nk-duo { background: var(--obsidian); }
.nk-duo__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.nk-tile {
  position: relative;
  aspect-ratio: 720 / 565;
  overflow: hidden;
  background: var(--obsidian);
  color: var(--paper);
}
.nk-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nk-tile:first-child .nk-tile__img { object-position: 50% 62%; }
.nk-tile:last-child .nk-tile__img { object-position: 50% 96%; }
/* Legibility fade behind the text only (functional, not decorative). */
.nk-tile::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0) 0%, rgba(17, 17, 17, .55) 100%);
  pointer-events: none;
}
.nk-tile__text {
  position: absolute;
  left: 44px;
  right: 44px;
  bottom: 44px;
  z-index: 1;
}
.nk-tile__eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.nk-tile__title {
  margin: 4px 0 0;
  font-family: var(--font-text);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: var(--paper);
}
.nk-tile__copy {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
}
.nk-tile__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.nk-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--obsidian);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: opacity .15s ease;
}
.nk-pill:hover { opacity: .72; }
.nk-pill:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
/* Thin white seam in place of the reference's multicolour stripe. */
.nk-duo__band {
  position: relative;
  border-top: 2px solid var(--paper);
  overflow: hidden;
}
/* Text and Get started on the clip, laid out like the tiles (reuses
   .nk-tile__text), with the same fade behind it for legibility. */
.nk-duo__band::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0) 0%, rgba(17, 17, 17, .6) 100%);
  pointer-events: none;
}
.nk-duo__band-text { max-width: 520px; }
.nk-duo__band img,
.nk-duo__band video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}
/* Josh: the whole photo shows, never cropped (any photo, any shape). The image sets the band's
   height from its own shape, at any width. */
.nk-duo__band img,
.nk-duo__band video { height: auto; }

/* ── Vertical slider (#tools, js/home-slider.js) ──
   Rounded panel on the black page. The panel colour comes from the active
   slide (--vs-bg / --vs-fg, set by the script) and cross-fades. Cards sit
   on --rel: 0 is centred, ±1 peek above/below blurred and tilted, ±2 are
   hidden off-panel. */
.vs-section {
  background: var(--obsidian);
  padding: 96px 24px 24px;
}
.vs-section__head { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.vs-section__head .section-kicker { color: var(--faint); }
.vs-section__head .section-title-sm { color: var(--paper); }
.vs {
  --vs-ease: cubic-bezier(.7, 0, .2, 1);
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(0, 46%);
  align-items: center;
  height: clamp(560px, 52vw, 760px);
  padding: 0 0 0 6%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--vs-bg);
  color: var(--vs-fg);
  transition: background-color .8s ease, color .8s ease;
  isolation: isolate;
}
.vs:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }

/* Words: every slide's copy shares one grid cell. */
.vs__text { position: relative; z-index: 2; min-width: 0; padding-right: 32px; }
/* minmax(0, 1fr) so a long word can't widen the column; home-slider.js
   shrinks it to fit instead. */
.vs__words { display: grid; grid-template-columns: minmax(0, 1fr); }
.vs__copy { grid-area: 1 / 1; }
.vs__word {
  margin: 0;
  padding: .04em 0 .12em;
  overflow: hidden;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: clamp(88px, 13vw, 210px);
  line-height: .9;
  letter-spacing: -.055em;
  white-space: nowrap;
  perspective: 800px;
}
.vs__ch {
  display: inline-block;
  transform-origin: 50% 50% -.3em;
  transition: transform .7s var(--vs-ease), opacity .45s ease;
  transition-delay: calc(var(--i, 0) * 45ms);
}
.vs__line {
  max-width: 34ch;
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.5;
  transition: opacity .5s ease, transform .6s var(--vs-ease);
}
.vs__copy[data-state="active"] .vs__ch { transform: none; opacity: 1; }
.vs__copy[data-state="above"] .vs__ch { transform: translateY(-105%) rotateX(80deg); opacity: 0; }
.vs__copy[data-state="below"] .vs__ch { transform: translateY(105%) rotateX(-80deg); opacity: 0; }
.vs__copy[data-state="active"] .vs__line { opacity: 1; transform: none; transition-delay: .2s; }
.vs__copy[data-state="above"] .vs__line,
.vs__copy[data-state="below"] .vs__line { opacity: 0; transition-duration: .2s, .6s; }
.vs__copy[data-state="above"] .vs__line { transform: translateY(-12px); }
.vs__copy[data-state="below"] .vs__line { transform: translateY(12px); }
.vs__copy:not([data-state="active"]) { pointer-events: none; }
.vs__copy.is-parked .vs__ch,
.vs__copy.is-parked .vs__line { transition: none; }
/* No transitions until the script has placed everything. */
.vs:not(.is-live),
.vs:not(.is-live) * { transition: none !important; }
/* Before the script runs, show the first slide only. */
.vs:not(.is-ready) .vs__copy:not(:first-child),
.vs:not(.is-ready) .vs__card:not(:first-child) { visibility: hidden; }

/* Controls: outline down, filled up, n / 5. */
.vs__controls { display: flex; align-items: center; gap: 12px; margin-top: 40px; }
.vs__btn {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: var(--vs-fg);
  cursor: pointer;
  transition: background-color .8s ease, color .8s ease, border-color .8s ease, transform .2s ease;
}
.vs__btn--next { background: var(--vs-fg); border-color: var(--vs-fg); color: var(--vs-bg); }
.vs__btn:hover { transform: scale(1.06); }
.vs__btn:active { transform: scale(.96); }
.vs__btn:focus-visible { outline: 2px solid var(--vs-fg); outline-offset: 3px; }
.vs__count { margin: 0 0 0 20px; font-size: 18px; font-variant-numeric: tabular-nums; }
.vs__count-sep { margin: 0 4px; opacity: .5; }

/* Cards. */
.vs__stage { position: relative; height: 100%; margin-right: 4%; }
.vs__card {
  --rel: 0;
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  aspect-ratio: 1672 / 941; /* Josh's posters, uncropped */
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #1c1c1c;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .35);
  transform: translateY(calc(-50% + var(--rel) * 106%)) rotate(calc(var(--rel) * -4deg)) scale(.94);
  filter: blur(14px);
  opacity: .85;
  transition: transform .9s var(--vs-ease), filter .9s var(--vs-ease), opacity .6s ease;
  will-change: transform, filter;
}
.vs__card[data-rel="0"] { transform: translateY(-50%); filter: none; opacity: 1; }
.vs__card[data-rel="2"],
.vs__card[data-rel="-2"] { opacity: 0; }
.vs__card img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Reduced motion: no rolling letters or sliding cards, just a cross-fade. */
@media (prefers-reduced-motion: reduce) {
  .vs__ch, .vs__line { transition: opacity .4s ease !important; transition-delay: 0s !important; transform: none !important; }
  .vs__card { transition: opacity .4s ease; transform: translateY(-50%); filter: none; }
  .vs__card:not([data-rel="0"]) { opacity: 0; }
  .vs__btn:hover, .vs__btn:active { transform: none; }
}

/* ── Get started: full-bleed photo, flat scrim ── */
.get-started { background: var(--obsidian); }
.get-started::after { background: rgba(17, 17, 17, .62); }
.get-started__heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}
.get-started__btn { margin-top: 24px; }

/* ── Footer: white, hairline seam ── */
.cl-footer.cl-footer--home {
  background: var(--paper);
  color: var(--obsidian);
  font-family: var(--font-text);
}

@media (max-width: 900px) {
  .nk-utility { padding: 0 16px; }
  .nk-hero { padding: 16px 0 24px; }
  .nk-hero__toggle { left: 16px; bottom: 16px; }
  .nk-hero__copy { padding: 40px 16px 0; }
  .navbar,
  .site-header.scrolled .navbar { padding: 0 16px; }
  .nk-duo__tiles { grid-template-columns: 1fr; }
  .nk-tile { aspect-ratio: 4 / 5; }
  .nk-tile:last-child .nk-tile__img { object-position: 50% 72%; }
  .nk-tile__text { left: 16px; right: 16px; bottom: 24px; }
  .nk-tile__title { font-size: 20px; }
  .vs-section { padding: 72px 16px 16px; }
  .vs-section__head { margin-bottom: 24px; }
  .vs {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    padding: 40px 0 0;
    border-radius: 20px;
  }
  .vs__text { padding: 0 20px; }
  .vs__word { font-size: clamp(72px, 24vw, 140px); }
  .vs__line { font-size: 16px; }
  .vs__controls { margin-top: 24px; }
  .vs__btn { width: 56px; height: 56px; }
  .vs__stage { height: calc((100vw - 32px) * .86 * 941 / 1672 * 1.75); margin: 16px 0 0; overflow: hidden; }
  .vs__card { left: 7%; width: 86%; border-radius: 12px; }
}
