/* Adidas page: campaign headline, chapter headers, the Gauntlet as a story.
   Loads after page.css and only changes the Adidas page. */

@font-face {
  font-family: "Jost";
  src: url("assets/fonts/jost-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

.adidas-page {
  --ink: #1d1d1b;
  --ink-soft: rgba(29, 29, 27, 0.62);
  --ink-quiet: rgba(29, 29, 27, 0.36);
  --rule: rgba(28, 28, 26, 0.3);
  --cream: #f5f1e9;
  --campaign: "Jost", "Century Gothic", "Avenir Next", Futura, sans-serif;
}

/* page.css centers everything inside <main>; newer Chrome applies that to whole sections and shrinks
   them to their content (gray margins). Let sections run full width in every browser. */
.adidas-page .adidas-project {
  justify-items: normal;
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.adidas-page) {
    scroll-behavior: smooth;
  }
}

/* ---------- Opening ---------- */

.adidas-page .adidas-mark {
  width: min(8.5rem, 30vw);
  height: auto;
  margin: 0 0 2rem;
}

.adidas-page .adidas-line {
  margin: 0 0 2.6rem;
  color: var(--cream);
  font-family: var(--campaign);
  font-size: clamp(2.6rem, 7.2vw, 6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: none;
}

.adidas-down {
  display: inline-block;
  transform-origin: 10% 100%;
}

.adidas-page .adidas-brief {
  gap: 0.6rem;
  max-width: 44rem;
  color: rgba(245, 241, 233, 0.74);
}

.adidas-page .adidas-brief span {
  color: var(--cream);
}

.adidas-page .scroll-cue {
  margin-top: 2.2rem;
}

.adidas-page .adidas-hero {
  padding-bottom: 7.5rem;
}

/* Snapshot: the 5-second version for recruiters, across the bottom of the opening */
.adidas-snapshot {
  position: absolute;
  right: 4vw;
  bottom: 1.8rem;
  left: 4vw;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 1.5rem;
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(245, 241, 233, 0.16);
  text-align: left;
}

.adidas-snapshot div:nth-child(2) {
  text-align: center;
}

.adidas-snapshot div:last-child {
  text-align: right;
}

.adidas-snapshot dt {
  margin-bottom: 0.45rem;
  color: rgba(245, 241, 233, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.adidas-snapshot dd {
  margin: 0;
  color: var(--cream);
  font-size: 0.92rem;
  line-height: 1.3;
}

.adidas-snapshot a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(245, 241, 233, 0.35);
  text-underline-offset: 0.22em;
  transition: text-decoration-color 160ms ease;
}

.adidas-snapshot a:hover,
.adidas-snapshot a:focus-visible {
  text-decoration-color: var(--cream);
}

@media (prefers-reduced-motion: no-preference) {
  .adidas-page .adidas-mark,
  .adidas-page .adidas-line,
  .adidas-page .adidas-brief,
  .adidas-snapshot {
    animation: adidas-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .adidas-page .adidas-line {
    animation-delay: 0.12s;
  }

  .adidas-page .adidas-brief {
    animation-delay: 0.3s;
  }

  .adidas-snapshot {
    animation-delay: 0.5s;
  }

  /* "down" gets knocked down, stays there a beat, then gets back up. Once. */
  .adidas-down {
    animation: adidas-knockdown 2s 1.15s both;
  }
}

@keyframes adidas-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes adidas-knockdown {
  0% {
    transform: none;
    animation-timing-function: cubic-bezier(0.55, 0, 0.9, 0.4);
  }
  13% {
    transform: translateY(0.3em) rotate(10deg);
    animation-timing-function: ease-out;
  }
  19% {
    transform: translateY(0.25em) rotate(8deg);
    animation-timing-function: ease-in;
  }
  25% {
    transform: translateY(0.3em) rotate(10deg);
  }
  55% {
    transform: translateY(0.3em) rotate(10deg);
    animation-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1);
  }
  72% {
    transform: translateY(-0.06em) rotate(-1.5deg);
    animation-timing-function: ease-in-out;
  }
  86% {
    transform: translateY(0.01em) rotate(0.4deg);
  }
  100% {
    transform: none;
  }
}

/* ---------- Chapters ---------- */

.adidas-page .adidas-section {
  padding: 4rem 3vw 4.25rem;
}

.adidas-chapter {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  margin: 0 auto 1.6rem;
  text-align: center;
}

.chapter-num {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  line-height: 1;
}

.chapter-num::before,
.chapter-num::after {
  width: 2.4rem;
  border-top: 1px solid var(--rule);
  content: "";
}

.adidas-chapter h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.chapter-kicker {
  max-width: 40rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  text-wrap: balance;
}

/* ---------- 01 OOH ---------- */

.adidas-statement {
  max-width: 64rem;
  margin: 0 auto 2.4rem;
  color: var(--ink-quiet);
  font-family: var(--campaign);
  font-size: clamp(1.85rem, 4.4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-align: center;
  text-wrap: balance;
}

.adidas-statement em {
  color: var(--ink);
  font-style: normal;
}

/* keep each question with its answer when the line wraps */
.adidas-statement span {
  white-space: nowrap;
}

.adidas-page .adidas-image-grid {
  max-width: 96rem;
  gap: 0.75rem;
}

.adidas-page .adidas-image-grid img,
.adidas-page .gauntlet-grid img {
  height: auto;
  background: rgba(255, 255, 255, 0.22);
}

/* ---------- 02 The Gauntlet ---------- */

.adidas-page .gauntlet-note {
  max-width: 38rem;
  margin: 0 auto 2.2rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  text-wrap: balance;
}

.adidas-page .gauntlet-grid {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 1.25rem;
  max-width: 74rem;
}

.gauntlet-step {
  margin: 0;
}

.gauntlet-step figcaption {
  margin-top: 1rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.gauntlet-step figcaption span {
  margin-right: 0.3rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.gauntlet-arrow {
  align-self: center;
  margin-bottom: 2.3rem;
  color: var(--ink-soft);
  font-size: 1.6rem;
  line-height: 1;
}

/* ---------- 03 TV Spot ---------- */

.adidas-page .tv-spot-video {
  width: min(100%, 80rem);
}

.adidas-page .video-note {
  margin-top: 1rem;
  color: var(--ink-soft);
}

/* ---------- Phones ---------- */

@media (max-width: 760px) {
  .adidas-page .adidas-mark {
    width: min(7rem, 34vw);
    margin-bottom: 1.6rem;
  }

  .adidas-page .adidas-line {
    margin-bottom: 2rem;
    font-size: clamp(2.3rem, 11vw, 3.4rem);
  }

  .adidas-page .adidas-hero {
    padding-bottom: 3rem;
  }

  .adidas-snapshot {
    position: static;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    width: 100%;
    max-width: 22rem;
    margin-top: 2.2rem;
    text-align: center;
  }

  .adidas-snapshot div:nth-child(2),
  .adidas-snapshot div:last-child {
    text-align: center;
  }

  .adidas-page .adidas-section {
    padding: 3.25rem 1rem 3.5rem;
  }

  .adidas-chapter {
    margin-bottom: 1.4rem;
  }

  .adidas-statement {
    margin-bottom: 1.8rem;
    font-size: clamp(1.7rem, 8vw, 2.3rem);
  }

  .adidas-page .gauntlet-note {
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
  }

  .adidas-page .gauntlet-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .gauntlet-arrow {
    justify-self: center;
    margin: 0;
    transform: rotate(90deg);
  }
}

/* ======================================================================
   Dark finish: every chapter on black like the opening (Billy picked this 2026-11-10)
   ====================================================================== */

body.adidas-page,
.adidas-page .adidas-project {
  background: #08080a;
}

.adidas-page .adidas-section {
  color: var(--cream);
  background:
    linear-gradient(rgba(7, 7, 8, 0.9), rgba(7, 7, 8, 0.95)),
    url("assets/adidas-hero-steel.webp") center / cover;
}

.adidas-page .adidas-section::before {
  border-top-color: rgba(245, 241, 233, 0.1);
}

.adidas-page .chapter-num,
.adidas-page .chapter-kicker,
.adidas-page .gauntlet-step figcaption span,
.adidas-page .gauntlet-arrow,
.adidas-page .video-note {
  color: rgba(245, 241, 233, 0.58);
}

.adidas-page .chapter-num::before,
.adidas-page .chapter-num::after {
  border-top-color: rgba(245, 241, 233, 0.22);
}

.adidas-page .adidas-chapter h2,
.adidas-page .gauntlet-note,
.adidas-page .gauntlet-step figcaption,
.adidas-page .adidas-statement em {
  color: var(--cream);
}

/* questions quiet, answers bright, same idea as on the light version */
.adidas-page .adidas-statement {
  color: rgba(245, 241, 233, 0.34);
}

.adidas-page .adidas-image-grid img,
.adidas-page .gauntlet-grid img {
  background: rgba(255, 255, 255, 0.04);
}

/* bottom bar matches the dark page */
.adidas-page .project-footer {
  background: #0e0e10;
  border-top-color: rgba(245, 241, 233, 0.12);
}

.adidas-page .project-footer p {
  color: rgba(245, 241, 233, 0.6);
}

.adidas-page .project-footer a {
  color: var(--cream);
}

/* Gauntlet: text column on the left, the two photos on the right (wide screens only) */
@media (min-width: 1000px) {
  .adidas-page .gauntlet-section {
    display: grid;
    grid-template-columns: minmax(15rem, 21rem) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas:
      ".    photos"
      "head photos"
      "note photos"
      ".    photos";
    column-gap: 4rem;
    max-width: 96rem;
    margin: 0 auto;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .adidas-page .gauntlet-section .adidas-chapter {
    grid-area: head;
    justify-items: start;
    margin: 0 0 1.4rem;
    text-align: left;
  }

  .adidas-page .gauntlet-section .chapter-num::before {
    display: none;
  }

  .adidas-page .gauntlet-note {
    grid-area: note;
    max-width: none;
    margin: 0;
    text-align: left;
    text-wrap: pretty;
  }

  .adidas-page .gauntlet-grid {
    grid-area: photos;
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 760px) {
  .adidas-snapshot dt {
    font-size: 0.78rem;
  }

  .adidas-snapshot a {
    display: inline-block;
    margin: -0.55rem -0.3rem;
    padding: 0.55rem 0.3rem;
  }
}
