/* ==========================================================================
   FORM ATHLETICS — base: tokens, font, reset, type, utilities
   One variable typeface (Archivo, weight + width axes):
   condensed black for headlines, expanded for labels, normal width for text.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #0a0a0a;
  --ink: #121212;
  --graphite: #1b1b1b;
  --steel: #2a2a2a;
  --off: #eeece6;
  --paper: #e4e1d9;
  --stone: #cbc8bf;
  --mute-l: #6b6a66;
  --mute-d: #9b9a94;
  --volt: #d3ff2a;
  --volt-dk: #a9d000;
  --line-l: rgba(10, 10, 10, 0.16);
  --line-l-strong: rgba(10, 10, 10, 0.5);
  --line-d: rgba(238, 236, 230, 0.16);
  --line-d-strong: rgba(238, 236, 230, 0.4);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 3.6vw, 64px);
  --maxw: 1600px;
  --section-y: clamp(80px, 10vw, 168px);
  --header-h: 76px;

  --ease: cubic-bezier(0.2, 0.75, 0.15, 1);
  --ease-snap: cubic-bezier(0.7, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  background: var(--black);
}

body {
  margin: 0;
  background: var(--off);
  color: var(--black);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

address {
  font-style: normal;
}

::selection {
  background: var(--volt);
  color: var(--black);
}

:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
}

.on-dark :focus-visible,
.hero :focus-visible,
.site-header:not(.is-scrolled) :focus-visible,
.dark :focus-visible {
  outline-color: var(--volt);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 500;
  padding: 0.85em 1.3em;
  background: var(--volt);
  color: var(--black);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateY(-200%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.dark {
  background: var(--black);
  color: var(--off);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.display {
  font-family: var(--font);
  font-weight: 900;
  font-stretch: 66%;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(3.6rem, 10vw, 9.6rem);
}

/* highlighter: volt bar behind a word */
.mark {
  position: relative;
  display: inline-block;
  padding-inline: 0.08em;
  color: var(--black);
  z-index: 0;
}

.mark::before {
  content: "";
  position: absolute;
  inset: 0.08em 0 0.02em;
  background: var(--volt);
  z-index: -1;
  transform: skewX(-8deg);
}

.volt {
  color: var(--volt);
}

/* small expanded label */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-size: 0.72rem;
  font-weight: 700;
  font-stretch: 120%;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
}

.tag i {
  display: inline-block;
  width: 26px;
  height: 3px;
  background: var(--volt);
  box-shadow: 0 0 0 1px var(--black);
}

.dark .tag i {
  box-shadow: none;
}

.lede {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  line-height: 1.55;
  font-weight: 450;
  max-width: 30em;
}

.body-text {
  color: var(--mute-l);
  max-width: 34em;
}

.dark .body-text {
  color: var(--mute-d);
}

/* --------------------------------------------------------------------------
   Reveals (only when JS is running)
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Photography: a fast, hard wipe from the left, controlled and athletic */
.js [data-reveal="img"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 calc(100% - 2px) 0 0); /* 2px sliver keeps IntersectionObserver aware of the element */
  transition: clip-path 1s var(--ease-snap);
  transition-delay: var(--d, 0ms);
}

.js [data-reveal="img"] img {
  transform: scale(1.12);
  transition: transform 1.4s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js [data-reveal="img"].is-in {
  clip-path: inset(0 0 0 0);
}

.js [data-reveal="img"].is-in img {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal],
  .js [data-reveal="img"],
  .js [data-reveal="img"] img {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }
}
