/* ---------- tokens ---------- */
:root {
  --bg: #07080a;
  --bg-2: #0c0e11;
  --panel: #111418;
  --line: rgba(255, 255, 255, .09);
  --ink: #f3f4f6;
  --muted: #9ba1aa;
  --silver: #c8ccd2;
  --blue: #3aa0ff;
  --glow: #d7dbe0;
  --display: 'Saira', sans-serif;
  --body: 'Barlow', sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* carbon grain over everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .055;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: .95; }
p { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
main, footer, .nav { position: relative; z-index: 1; }

section { padding: clamp(72px, 10vw, 140px) var(--gutter); max-width: var(--max); margin: 0 auto; }

/* ---------- section head ---------- */
.section-head { margin-bottom: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: baseline; }
.section-head__num { font-family: var(--display); font-weight: 600; font-style: italic; color: var(--muted); font-size: .95rem; letter-spacing: .12em; grid-row: 1 / span 2; padding-top: .35em; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: .5rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 14px 30px;
  font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .95rem;
  background: var(--ink); color: #000;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: transform .25s var(--ease), background .25s;
}
.btn:hover { transform: translateX(4px); background: #fff; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter); height: 64px;
  background: linear-gradient(rgba(7,8,10,.92), rgba(7,8,10,.6));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: 1.05rem; }
.nav__brand img { height: 18px; width: auto; }
.nav__links { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav__links a { font-family: var(--display); font-weight: 600; font-style: italic; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav__links { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; padding-top: 120px; padding-bottom: 48px;
  display: grid; grid-template-columns: 5fr 7fr; column-gap: clamp(24px, 4vw, 64px); align-items: center;
  overflow: visible;
}
.hero__streak {
  position: absolute; z-index: -1; pointer-events: none;
  right: -12%; top: 34%; width: 80%; height: 30%;
  background: linear-gradient(90deg, transparent 0%, rgba(200,204,210,.16) 45%, rgba(200,204,210,.03) 100%);
  transform: skewY(-11deg);
  filter: blur(6px);
}
.hero__copy { display: grid; gap: 28px; }
.hero__logo {
  width: min(470px, 100%); height: auto; margin: -7% 0 -5% -4%;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 66% 60% at 51% 50%, #000 50%, transparent 80%);
          mask-image: radial-gradient(ellipse 66% 60% at 51% 50%, #000 50%, transparent 80%);
}
.hero__title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.hero__lede { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 34ch; font-weight: 500; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__shoe { position: relative; }
.hero__shoe img { width: 100%; height: auto; filter: drop-shadow(0 40px 60px rgba(0,0,0,.7)); }
.hero__shoe figcaption {
  position: absolute; left: 4%; top: 10%;
  font-family: var(--display); font-style: italic; font-weight: 700; font-size: 1.05rem; line-height: 1.15;
  color: var(--silver); transform: rotate(-8deg);
}
.hero__shoe figcaption::after {
  content: ""; position: absolute; left: 30%; top: 115%; width: 34px; height: 34px;
  border-left: 1.5px solid var(--silver); border-bottom: 1.5px solid var(--silver);
  border-bottom-left-radius: 30px; transform: rotate(-20deg);
}
.hero__stats {
  grid-column: 1 / -1; margin-top: clamp(24px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.hero__stats li { padding: 22px 0; border-right: 1px solid var(--line); padding-left: 20px; }
.hero__stats li:first-child { padding-left: 0; }
.hero__stats li:last-child { border-right: 0; }
.hero__stats b { display: block; font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.hero__stats span { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 500; }

/* hero entrance */
.hero__copy > *, .hero__shoe, .hero__stats li { animation: rise .9s var(--ease) both; }
.hero__copy > :nth-child(1) { animation-delay: .05s }
.hero__copy > :nth-child(2) { animation-delay: .18s }
.hero__copy > :nth-child(3) { animation-delay: .3s }
.hero__copy > :nth-child(4) { animation-delay: .42s }
.hero__shoe { animation-name: slide-in; animation-duration: 1.2s; animation-delay: .15s; }
.hero__stats li:nth-child(1) { animation-delay: .5s } .hero__stats li:nth-child(2) { animation-delay: .6s }
.hero__stats li:nth-child(3) { animation-delay: .7s } .hero__stats li:nth-child(4) { animation-delay: .8s }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(60px) rotate(2deg); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 96px; row-gap: 24px; }
  .hero__shoe { order: -1; }
  .hero__shoe figcaption { display: none; }
  .hero__streak { top: 8%; height: 22%; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stats li:nth-child(2n) { border-right: 0; }
  .hero__stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero__stats li:nth-child(3) { padding-left: 0; }
}

/* ---------- sole swap ---------- */
.swap[data-sport="running"]    { --glow: #d7dbe0; }
.swap[data-sport="basketball"] { --glow: #d9873a; }
.swap[data-sport="football"]   { --glow: #8393a3; }
.swap[data-sport="tennis"]     { --glow: #9ad13c; }
.swap[data-sport="hiking"]     { --glow: #f0b23c; }

.swap__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.swap__stage {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: linear-gradient(160deg, #15181d, #090a0c 70%);
  border: 1px solid var(--line);
  user-select: none; touch-action: pan-y;
}
.swap__glow {
  position: absolute; left: 50%; top: 58%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  opacity: .28; filter: blur(30px);
  transition: background .8s;
}
.swap__word {
  position: absolute; left: 3%; bottom: -.12em;
  font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; line-height: 1;
  font-size: clamp(3.4rem, 12cqw, 9rem);
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.16);
  white-space: nowrap; pointer-events: none;
}
.swap__stage { container-type: inline-size; }
.swap__word.bump { animation: word-bump .7s var(--ease); }
@keyframes word-bump { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.swap__track {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent 24%, #000 41%, #000 59%, transparent 76%);
          mask-image: linear-gradient(transparent 24%, #000 41%, #000 59%, transparent 76%);
}
.swap__stack {
  position: absolute; left: 50%; top: 50%; width: 68%; max-width: none;
  transform: translate(-50%, calc(-1 * var(--cy, 14%)));
  transition: transform .9s var(--ease);
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.75));
  pointer-events: none;
}

.swap__nav { position: absolute; right: 4%; bottom: 5%; display: flex; align-items: center; gap: 10px; z-index: 2; }
.swap__arrow {
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--ink);
  transition: background .2s, transform .2s;
}
.swap__arrow svg { width: 20px; height: 20px; }
.swap__arrow:hover { background: rgba(255,255,255,.14); }
.swap__arrow:active { transform: scale(.94); }
.swap__count { font-family: var(--display); font-style: italic; font-weight: 700; font-size: .95rem; letter-spacing: .08em; color: var(--muted); padding: 0 6px; }
.swap__count b { color: var(--ink); font-weight: 900; }
.swap__count i { padding: 0 3px; font-style: normal; }

.swap__tabs { display: grid; grid-auto-rows: 1fr; gap: 6px; }
.tab {
  position: relative; display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; align-items: center; text-align: left;
  padding: 16px 18px; cursor: pointer; overflow: hidden;
  background: transparent; border: 1px solid transparent; border-left: 3px solid transparent; color: var(--ink);
  font-family: inherit; transition: background .25s, border-color .25s;
}
.tab svg { width: 30px; height: 30px; grid-row: 1 / span 2; color: var(--muted); transition: color .25s, transform .3s var(--ease); }
.tab b { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: 1.05rem; }
.tab span { color: var(--muted); font-size: .92rem; line-height: 1.4; }
.tab:hover { background: rgba(255,255,255,.04); }
.tab.is-active { background: rgba(255,255,255,.05); border-color: var(--line); border-left-color: var(--glow); }
.tab.is-active svg { color: var(--glow); transform: translateX(2px); }
/* autoplay progress under the active tab */
.tab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--glow); opacity: .7; }
.tab.is-active::after { animation: progress 4.5s linear; }
.swap.is-paused .tab.is-active::after { animation-play-state: paused; }
@keyframes progress { from { width: 0 } to { width: 100% } }

@media (max-width: 900px) {
  .swap__grid { grid-template-columns: 1fr; }
  .swap__stage { aspect-ratio: 1; }
  .swap__stack { width: 84%; }
  .swap__nav { top: 5%; left: 4%; right: auto; bottom: auto; }
  .tab { padding: 12px 14px; grid-template-columns: 28px 1fr; column-gap: 12px; }
  .tab svg { width: 26px; height: 26px; }
}

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); counter-reset: step; }
.step { counter-increment: step; position: relative; padding-top: 8px; }
.step::before {
  content: "0" counter(step);
  font-family: var(--display); font-style: italic; font-weight: 900; font-size: 3.2rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35);
  display: block; margin-bottom: 14px;
}
.step img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--line); background: var(--panel); margin-bottom: 18px; transition: transform .4s var(--ease); }
.step:hover img { transform: translateY(-4px); }
.step b { display: block; font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- the lock ---------- */
.lock { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.lock__media { position: relative; border: 1px solid var(--line); background: linear-gradient(160deg, #14171b, #090a0c 70%); overflow: hidden; }
.lock__media img { width: 100%; }
.lock__pin {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #000;
  display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-style: italic; font-size: .85rem;
  box-shadow: 0 0 0 4px rgba(58,160,255,.25);
}
.lock__pin::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--blue); animation: ping 2.2s ease-out infinite; }
.lock__pin:nth-child(3)::before { animation-delay: .7s } .lock__pin:nth-child(4)::before { animation-delay: 1.4s }
@keyframes ping { 0% { transform: scale(.7); opacity: .9 } 100% { transform: scale(1.9); opacity: 0 } }
.lock__copy h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin-top: 8px; }
.lock__lede { color: var(--muted); font-size: 1.1rem; margin: 14px 0 30px; }
.lock__list { display: grid; gap: 18px; }
.lock__list li { display: grid; grid-template-columns: 30px 1fr; gap: 16px; align-items: start; }
.lock__list i { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--blue); color: var(--blue); display: grid; place-items: center; font-family: var(--display); font-style: italic; font-weight: 800; font-size: .85rem; }
.lock__list b { display: block; font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 1.02rem; }
.lock__list span { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .lock { grid-template-columns: 1fr; } }

/* ---------- every sport ---------- */
.sports__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 24px); }
.sports__grid li { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.sports__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(.75) contrast(1.05); transition: transform .6s var(--ease), filter .4s; }
.sports__grid li:hover img { transform: scale(1.05); filter: saturate(1.05); }
.sports__grid b {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 1rem;
}
@media (max-width: 640px) { .sports__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- why ---------- */
.why { position: relative; padding-top: 0; }
.why::before {
  content: ""; position: absolute; left: -20vw; right: -20vw; top: 0; bottom: 0; z-index: -1;
  background: linear-gradient(90deg, #0f1216, #0a0c0f);
  transform: skewY(-3deg);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: clamp(40px, 6vw, 72px) 0; }
.why__grid li { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: start; }
.why__grid svg { width: 52px; height: 52px; padding: 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; grid-row: 1 / span 2; color: var(--ink); }
.why__grid b { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; }
.why__grid span { color: var(--muted); font-size: .9rem; display: block; }
@media (max-width: 900px) { .why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .why__grid { grid-template-columns: 1fr; } }

/* ---------- team ---------- */
.team__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; counter-reset: member; }
.team__grid li {
  counter-increment: member; position: relative;
  padding: 22px 22px 20px 64px; border: 1px solid var(--line); background: var(--panel);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transition: background .25s, transform .3s var(--ease);
}
.team__grid li:hover { background: rgba(255,255,255,.06); transform: translateY(-3px); }
.team__grid li::before {
  content: "0" counter(member); position: absolute; left: 20px; top: 20px;
  font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.5rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35);
}
.team__grid b { display: block; font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: 1rem; line-height: 1.2; text-wrap: balance; }
.team__grid span { display: block; margin-top: 8px; color: var(--muted); font-size: .9rem; letter-spacing: .14em; font-variant-numeric: tabular-nums; }

/* ---------- footer ---------- */
.foot {
  max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter) 40px;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px;
}
.foot__stamp {
  font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; line-height: .9;
  font-size: clamp(2.6rem, 7vw, 5.4rem); transform: rotate(-7deg); transform-origin: left bottom;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink);
}
.foot__stamp::first-line { color: var(--ink); -webkit-text-stroke: 0; }
.foot__brand { text-align: right; }
.foot__brand img {
  width: 260px; margin-left: auto; margin-bottom: -14%; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 66% 60% at 51% 50%, #000 50%, transparent 80%);
          mask-image: radial-gradient(ellipse 66% 60% at 51% 50%, #000 50%, transparent 80%);
}
.foot__brand p { margin-top: 10px; font-family: var(--display); font-style: italic; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; color: var(--muted); }
.foot__note { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: .85rem; }
@media (max-width: 640px) { .foot { grid-template-columns: 1fr; } .foot__brand { text-align: left; } .foot__brand img { margin-left: 0; } }

/* ---------- scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
