:root {
  --ink: #050916;
  --night: #0a1233;
  --night-2: #101b4d;
  --paper: #f2f3f7;
  --paper-2: #e6e8f0;
  --white: #ffffff;
  --swim: #1fb6f2;
  --bike: #3150ff;
  --run: #ff3b2f;
  --red: #ff3b2f;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.66);
  --text-faint: rgba(255, 255, 255, 0.38);
  --line: rgba(255, 255, 255, 0.12);
  --ink-text: #0a1233;
  --ink-muted: rgba(10, 18, 51, 0.62);
  --ink-line: rgba(10, 18, 51, 0.12);
  --radius: 22px;
  --radius-lg: 36px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

html.lenis,
html.lenis body {
  height: auto;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

::selection {
  background: var(--red);
  color: var(--white);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.display {
  font-weight: 900;
  font-style: italic;
  font-stretch: 68%;
  text-transform: uppercase;
  line-height: 0.93;
  letter-spacing: -0.01em;
  word-spacing: 0.06em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--swim) 0 33%, var(--bike) 33% 66%, var(--run) 66%);
}

.section-title {
  font-size: clamp(48px, 8.4vw, 132px);
  margin: 18px 0 0;
}

.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 56ch;
}

.btn {
  --btn-bg: var(--white);
  --btn-fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-hover, var(--red));
  transform: translateY(101%);
  border-radius: inherit;
  transition: transform 0.5s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  color: var(--white);
}

.btn:hover::after {
  transform: translateY(0);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px) rotate(-45deg);
}

.btn--red {
  --btn-bg: var(--red);
  --btn-fg: var(--white);
  --btn-hover: var(--white);
  box-shadow: 0 14px 40px -12px rgba(255, 59, 47, 0.7);
}

.btn--red:hover {
  color: var(--ink);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-hover: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
  color: var(--ink);
}

.btn--dark {
  --btn-bg: var(--night);
  --btn-fg: var(--white);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.tag i,
.tag svg {
  width: 14px;
  height: 14px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.c-swim { color: var(--swim); }
.c-bike { color: var(--bike); }
.c-run { color: var(--run); }

.grain {
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.06;
  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");
}

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
}

.no-js [data-reveal],
.reduced [data-reveal] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
