@font-face {
  font-family: "Geist Serif";
  src: url("fonts/GeistSerifVF.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bp: #141414;
  --bp-deep: #050505;
  --line: rgba(255, 255, 255, 0.9);
  --paper: #f3f1ea;
  --ink: #0c0c0d;
  --mute: rgba(255, 255, 255, 0.46);
  --fg: #fff;
  --fg-dim: rgba(255, 255, 255, 0.68);
  --rule: rgba(255, 255, 255, 0.28);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --serif: "Geist Serif", "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bp-deep);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: color 400ms ease;
}
body.is-paper {
  --fg: var(--ink);
  --fg-dim: rgba(12, 12, 13, 0.62);
  --rule: rgba(12, 12, 13, 0.18);
  --mute: rgba(12, 12, 13, 0.42);
}
a { color: inherit; }
.credit { white-space: nowrap; color: var(--fg); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; transition: text-decoration-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .credit:hover { text-decoration-color: currentColor; } }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Stage ---------- */
.backdrop { position: fixed; inset: 0; z-index: 0; background: radial-gradient(120% 90% at 60% 40%, var(--bp) 0%, var(--bp-deep) 75%); }
.backdrop__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  mask-image: radial-gradient(130% 100% at 50% 50%, #000 55%, transparent 100%);
}
.backdrop__paper {
  position: absolute; inset: 0; opacity: 0;
  background:
    linear-gradient(rgba(12,12,13,.045) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(12,12,13,.045) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(110% 90% at 50% 40%, #faf8f3 0%, var(--paper) 60%, #e8e4d9 100%);
  will-change: opacity;
}
.backdrop__night {
  position: absolute; inset: 0; opacity: 0; transition: opacity 500ms ease;
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(110% 90% at 50% 40%, #161616 0%, #0b0b0b 60%, #050505 100%);
}
body.is-paper.is-dark .backdrop__night { opacity: 1; }
#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1; display: block; cursor: grab; touch-action: pan-y; }
#stage.is-dragging { cursor: grabbing; }
#overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 2; pointer-events: none; overflow: visible; }
#overlay text { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; fill: #fff; text-transform: uppercase; }
#overlay .dim-line { stroke: rgba(255,255,255,.9); stroke-width: 1; fill: none; }
#overlay .dim-ext { stroke: rgba(255,255,255,.45); stroke-width: 1; stroke-dasharray: 3 4; }
#overlay .dim-label-bg { fill: var(--bp-deep); }
#overlay .co-line { stroke: rgba(255,255,255,.85); stroke-width: 1; fill: none; }
#overlay .co-dot { fill: var(--bp-deep); stroke: #fff; stroke-width: 1.5; }
#overlay .co-num { fill: rgba(255,255,255,.5); font-weight: 600; }

/* main itself doesn't stack, so the court title can sit under the shoe canvas (z 1) */
main { position: relative; pointer-events: none; }
main > * { position: relative; z-index: 3; }
main > .sec--court { z-index: auto; }
main a, main button, .titleblock, .card { pointer-events: auto; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--bp-deep); transition: opacity 500ms var(--ease-out), visibility 0s linear 500ms; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { width: 100%; display: grid; gap: 14px; justify-items: center; color: #fff; }
.loader__bar { width: 100%; height: 1px; background: rgba(255,255,255,.2); overflow: hidden; }
.loader__pct { font-family: var(--sans); font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: 0; color: rgba(255,255,255,.75); }
.loader__bar span { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform 200ms var(--ease-out); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 48px);
}
.nav::before {
  content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--nav-bg, rgba(5,5,5,.85)), transparent);
  transition: opacity 400ms ease;
}
body.is-paper .nav { --nav-bg: rgba(243,241,234,.92); }
.nav__brand { font-family: var(--sans); font-weight: 800; letter-spacing: .18em; font-size: 15px; text-decoration: none; font-style: italic; }
.nav__brand span { font-size: 9px; vertical-align: super; color: var(--fg-dim); }
.nav__links { display: flex; gap: 28px; font-size: 14px; }
.nav__links a { text-decoration: none; color: var(--fg-dim); transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--fg); } }
.nav__sheet { color: var(--fg-dim); }

/* ---------- Progress rail ---------- */
.rail { position: fixed; left: clamp(20px, 4vw, 48px); bottom: 28px; z-index: 1; display: flex; align-items: center; gap: 14px; }
.rail__track { width: 120px; height: 1px; background: var(--rule); overflow: hidden; }
.rail__track span { display: block; height: 100%; background: var(--fg); transform-origin: left; transform: scaleX(0); }
.rail__label { color: var(--fg-dim); }

/* ---------- Colorway tabs ---------- */
.colorways {
  position: fixed; right: clamp(20px, 4vw, 48px); bottom: 22px; z-index: 11;
  display: flex; padding: 4px; border-radius: 999px;
  background: rgba(250, 248, 243, .78); border: 1px solid rgba(12,12,13,.1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}
body.is-paper .colorways { opacity: 1; transform: none; pointer-events: auto; }
body.is-paper.no-shoe .colorways { opacity: 0; transform: translateY(8px); pointer-events: none; }
.colorways__pill {
  position: absolute; top: 4px; left: 0; height: calc(100% - 8px); width: 0;
  border-radius: 999px; background: var(--ink);
  transition: transform 220ms var(--ease-out), width 220ms var(--ease-out);
}
.colorways button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 500 13px/1 var(--sans); color: rgba(12,12,13,.62);
  transition: color 200ms ease, transform 160ms var(--ease-out);
}
.colorways button[aria-selected="true"] { color: var(--paper); }
.colorways button:active { transform: scale(0.97); }
.colorways button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .colorways button[aria-selected="false"]:hover { color: var(--ink); } }
.colorways i {
  width: 12px; height: 12px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%);
  box-shadow: 0 0 0 1px rgba(127,127,127,.45);
}

/* ---------- Sections ---------- */
.sec { min-height: 120vh; display: flex; align-items: center; padding: 120px clamp(20px, 6vw, 96px); position: relative; }
.sec--hero { min-height: 100vh; align-items: flex-end; padding-bottom: 96px; }
.sec--tall { min-height: 220vh; align-items: flex-start; }
.eyebrow { color: var(--fg-dim); margin: 0 0 18px; }

.display { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 9.2vw, 148px); line-height: .92; letter-spacing: -0.035em; margin: 0; }
.display em, .title em { font-style: italic; color: var(--mute); }
.title { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 68px); line-height: 1; letter-spacing: -0.03em; margin: 0 0 22px; text-wrap: balance; }
.title--xl { font-size: clamp(52px, 7vw, 112px); line-height: .92; }

.hero { max-width: 640px; }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--fg-dim); max-width: 460px; margin: 28px 0 32px; }
.hero__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hint { color: var(--fg-dim); }

.btn {
  display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 999px;
  background: #fff; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #e6e6e6; } }
.btn--ink { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .btn--ink:hover { background: #26262a; } }

.titleblock {
  position: absolute; right: clamp(20px, 4vw, 48px); bottom: 28px; margin: 0;
  display: grid; grid-template-columns: repeat(3, auto); border: 1px solid var(--rule);
}
.titleblock div { padding: 8px 14px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.titleblock div:nth-child(3n) { border-right: 0; }
.titleblock div:nth-last-child(-n+3) { border-bottom: 0; }
.titleblock dt { color: var(--fg-dim); font-size: 9.5px; }
.titleblock dd { margin: 2px 0 0; font-size: 11.5px; }

.copy { max-width: 440px; }
.copy p { color: var(--fg-dim); margin: 0 0 18px; }
.copy--right { margin-left: auto; }
.copy--center { margin: 0 auto; text-align: center; max-width: 900px; }
.sticky { position: sticky; top: 13vh; }
.build__pct { color: var(--fg-dim); }
#buildPct { color: var(--fg); font-variant-numeric: tabular-nums; }

.specs { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--rule); }
.specs li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.specs span { color: var(--fg-dim); }
.specs b { font-weight: 500; font-variant-numeric: tabular-nums; }

.parts { list-style: none; counter-reset: p; padding: 0; margin: 26px 0 0; }
.parts li { counter-increment: p; position: relative; padding: 12px 0 12px 44px; border-top: 1px solid var(--rule); color: var(--fg-dim); font-size: 15px; }
.parts li::before { content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: 13px; font-family: var(--mono); font-size: 11px; color: var(--mute); letter-spacing: .08em; }
.parts b { display: block; color: var(--fg); font-weight: 500; font-size: 16px; }

/* ---------- Metrics ---------- */
.sec--metrics { min-height: 150vh; padding-top: 90px; padding-bottom: 90px; }
.metrics { width: min(640px, 100%); }
.note { color: var(--fg-dim); max-width: 440px; margin: 0 0 24px; font-size: 15px; }
.metrics__head .title { margin-bottom: 14px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.card { background: rgba(250, 248, 243, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 22px; display: flex; flex-direction: column; gap: 10px; min-height: 150px; }
.card--big, .card--bars { grid-column: span 2; }
.card__k { color: var(--fg-dim); }
.card__s { color: var(--fg-dim); font-size: 10.5px; margin-top: auto; }
.card__v { font-family: var(--serif); font-size: clamp(44px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.card__v--sm { font-size: 40px; }
.card__v small { font-family: var(--sans); font-size: 15px; letter-spacing: 0; margin-left: 6px; color: var(--fg-dim); }

.card--big { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; }
.card--big .card__k { width: 100%; }
.shaft { width: 240px; max-width: 50%; }
.shaft rect { fill: rgba(12,12,13,.08); transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform 900ms var(--ease-out); }
.shaft rect.is-on { fill: var(--ink); }
.shaft rect:nth-of-type(2) { transition-delay: 80ms; } .shaft rect.is-on { transition-delay: 160ms; }
.in-view .shaft rect { transform: scaleY(1); }
.shaft text { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-anchor: middle; fill: var(--fg-dim); }

.gauge { width: 140px; }
.gauge path { fill: none; stroke-width: 6; stroke-linecap: round; }
.gauge__track { stroke: rgba(12,12,13,.1); }
.gauge__fill { stroke: var(--ink); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1200ms var(--ease-out); }

.bars { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 110px 1fr 36px; align-items: center; gap: 14px; font-size: 14px; }
.bars i { height: 6px; background: rgba(12,12,13,.08); border-radius: 3px; overflow: hidden; }
.bars i b { display: block; height: 100%; background: var(--ink); border-radius: 3px; transform-origin: left; transform: scaleX(0); transition: transform 1000ms var(--ease-out); }
.bars li:nth-child(2) b { transition-delay: 60ms; } .bars li:nth-child(3) b { transition-delay: 120ms; }
.bars li:nth-child(4) b { transition-delay: 180ms; } .bars li:nth-child(5) b { transition-delay: 240ms; }
.bars em { font-style: normal; text-align: right; color: var(--fg-dim); }

.swatches { display: flex; gap: 10px; margin-top: auto; }
.swatches span { flex: 1; aspect-ratio: 1; max-height: 74px; background: var(--c); border: 1px solid rgba(12,12,13,.15); border-radius: 4px; position: relative; }
.swatches em { position: absolute; left: 0; top: calc(100% + 6px); font-style: normal; font-size: 9px; color: var(--fg-dim); white-space: nowrap; }
.card--palette { padding-bottom: 40px; }

/* ---------- Origin ---------- */
.timeline { list-style: none; margin: 30px 0 0; padding: 0 0 0 18px; border-left: 1px solid var(--rule); display: grid; gap: 18px; }
.timeline li { position: relative; display: grid; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: -22px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); }
.timeline li:nth-child(3)::before { background: var(--ink); }
.timeline b { font-weight: 500; color: var(--fg); font-size: 13px; }
.timeline span { color: var(--fg-dim); text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 15px; }

.outro { min-height: 110vh; padding-bottom: 64px !important; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 18px; padding: 0 20px 80px; text-align: center; }
.outro .mono { color: var(--fg-dim); margin: 0; }
.display--outro { font-size: clamp(48px, 11vw, 180px); }

/* ---------- On court (cutout over type) ---------- */
.sec--court { min-height: 120vh; padding-left: 0; padding-right: 0; }
.court { width: 100%; }
.court__head, .court__cap { position: relative; z-index: 3; }
.court__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding: 0 clamp(20px, 6vw, 96px); margin-bottom: 8px; }
.court__head .eyebrow { margin: 0; }
.court__lede { color: var(--fg-dim); max-width: 360px; margin: 0; }
.court__stage { position: relative; height: min(74vh, 820px); display: grid; place-items: center; }
.court__name {
  position: absolute; z-index: 0; left: 0; right: 0; top: 50%; transform: translateY(-38%);
  margin: 0; text-align: center; white-space: nowrap; pointer-events: none;
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.045em; line-height: .8;
  font-size: 15.2vw; color: var(--fg); transition: color 400ms ease;
}
.court__name span { display: inline-block; }
.court__cap { display: flex; justify-content: space-between; gap: 16px; margin: 8px 0 0; padding: 0 clamp(20px, 6vw, 96px); color: var(--fg-dim); }
@media (max-width: 860px) {
  .court__head { flex-direction: column; align-items: flex-start; }
  .court__stage { height: 56vh; padding: 2vh 0; }
  .court__cap { flex-direction: column; }
}

/* ---------- Reveal-on-view text ---------- */
.reveal { opacity: 0; transform: translateY(14px); filter: blur(4px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), filter 700ms var(--ease-out); }
.reveal.in-view { opacity: 1; transform: none; filter: none; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .titleblock { display: none; }
  .sec { padding: 96px 20px; align-items: flex-end; }
  .copy, .copy--right { margin: 0; max-width: none; background: linear-gradient(transparent, rgba(5,5,5,.6) 30%); padding-top: 40vh; }
  body.is-paper .copy { background: linear-gradient(transparent, rgba(243,241,234,.85) 30%); }
  .copy--center { background: none !important; padding-top: 0; }
  .metrics { margin-top: 50vh; }
  .bars li { grid-template-columns: 90px 1fr 30px; }
  .rail { display: none; }
  .colorways { left: 50%; right: auto; transform: translate(-50%, 8px); bottom: 16px; }
  body.is-paper .colorways { transform: translate(-50%, 0); }
  .colorways button { padding: 0 11px; font-size: 12px; }
  .metrics__head { background: rgba(243,241,234,.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 20px; margin: 0 -20px 0; }
  .swatches em { white-space: normal; line-height: 1.2; }
  .card--palette { padding-bottom: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; filter: none; transition: opacity 300ms ease; }
  .shaft rect, .bars i b, .gauge__fill { transition-duration: 1ms; }
}

/* ---------- Dark mode (navy / black colorways) ---------- */
body.is-paper.is-dark {
  --fg: #fff;
  --fg-dim: rgba(255, 255, 255, 0.64);
  --rule: rgba(255, 255, 255, 0.16);
  --mute: rgba(255, 255, 255, 0.45);
  --nav-bg: rgba(8, 8, 8, .9);
}
body.is-paper.is-dark .nav { --nav-bg: rgba(8, 8, 8, .9); }
body.is-dark .card { background: rgba(18, 18, 18, .82); }
body.is-dark .shaft rect { fill: rgba(255,255,255,.1); }
body.is-dark .shaft rect.is-on, body.is-dark .bars i b { fill: #fff; background: #fff; }
body.is-dark .bars i, body.is-dark .gauge__track { background: rgba(255,255,255,.1); stroke: rgba(255,255,255,.12); }
body.is-dark .gauge__fill { stroke: #fff; }
body.is-dark .swatches span { border-color: rgba(255,255,255,.2); }
body.is-dark .timeline li::before { background: #0b0b0b; border-color: #fff; }
body.is-dark .timeline li:nth-child(3)::before { background: #fff; }
body.is-dark .btn--ink { background: #fff; color: var(--ink); }
body.is-dark .colorways { background: rgba(20,20,20,.78); border-color: rgba(255,255,255,.12); }
body.is-dark .colorways__pill { background: #fff; }
body.is-dark .colorways button { color: rgba(255,255,255,.62); }
body.is-dark .colorways button[aria-selected="true"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { body.is-dark .colorways button[aria-selected="false"]:hover { color: #fff; } }
body.is-dark .colorways button:focus-visible { outline-color: #fff; }
@media (max-width: 860px) {
  body.is-paper.is-dark .copy { background: linear-gradient(transparent, rgba(8,8,8,.85) 30%); }
  body.is-dark .metrics__head { background: rgba(12,12,12,.88); }
}
