/* Basketball Biomechanics Shooting Calibration */

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --off-white: #f5f5f4;
  --gray-100: #ececea;
  --gray-400: #9c9c98;
  --gray-600: #55554f;
  --border: rgba(10, 10, 10, 0.12);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Reveal animations (gated on .js so content shows without JS) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
html.js .reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}
.wordmark {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: var(--black);
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 100px;
  transition: opacity 0.3s ease;
}
.nav-cta:hover { opacity: 0.75; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}
.btn:hover { transform: scale(1.03); opacity: 0.85; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--black); color: var(--white); }
.btn-light { background: var(--white); color: var(--black); }
.btn-block { width: 100%; }

/* ---------- Layout ---------- */
.section-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 40px;
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 60px;
  background: var(--white);
}
.hero-inner { max-width: 760px; }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(56px, 12vw, 120px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin-bottom: 28px;
}
.hero-sub {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3.4vw, 28px);
  line-height: 1.35;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-copy {
  max-width: 460px;
  margin: 0 auto 44px;
}
.hero-copy p {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 10px;
}

/* ---------- Social Proof ---------- */
.proof {
  background: var(--off-white);
  padding: 100px 0 110px;
}
.proof .section-inner { max-width: 880px; }
.proof .section-label { margin-bottom: 48px; }

.carousel {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.carousel-track {
  display: flex;
  width: max-content;
  animation: carousel-scroll 36s linear infinite;
}
.carousel:hover .carousel-track { animation-play-state: paused; }
@keyframes carousel-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track { animation: none; }
  .carousel { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

.athlete-card {
  position: relative;
  flex: none;
  width: 240px;
  height: 320px;
  margin-right: 16px;
  border-radius: 20px;
  overflow: hidden;
  background: #111;
}
.athlete-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(1);
}
.athlete-card.no-photo img { display: none; }
.athlete-card.logo-card { background: var(--white); border: 1px solid var(--border); }
.athlete-card.logo-card img {
  object-fit: contain;
  padding: 48px 36px 90px;
  box-sizing: border-box;
}
.athlete-card.logo-card figcaption {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.94), transparent);
}
.athlete-card.logo-card .athlete-name { color: var(--black); }
.athlete-card.logo-card .athlete-tag { color: var(--gray-400); }
.athlete-monogram {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.28);
}
.athlete-card.no-photo .athlete-monogram { display: flex; }
.athlete-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 44px 18px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.athlete-name {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.athlete-tag {
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 719px) {
  .athlete-card { width: 190px; height: 260px; }
}

/* ---------- How It Works ---------- */
.how { padding: 120px 0; }
.how .section-title { text-align: center; margin-bottom: 64px; }
.how-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 36px;
  background: var(--white);
}
.how-step {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gray-400);
  margin-bottom: 16px;
}
.how-card h3 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.how-card p { color: var(--gray-600); font-size: 17px; }
.how-note {
  margin-top: 20px;
  font-weight: 600;
  color: var(--black) !important;
  font-size: 14px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.how-list {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.how-list li {
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 18px;
  background: var(--off-white);
}
.how-arrow {
  text-align: center;
  font-size: 28px;
  color: var(--gray-400);
  padding: 20px 0;
}

/* ---------- What's Included ---------- */
.included {
  background: var(--black);
  color: var(--white);
  padding: 120px 0;
}
.included .section-title { text-align: center; margin-bottom: 56px; }
.included-list {
  list-style: none;
  max-width: 520px;
  margin: 0 auto;
}
.included-list li {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 500;
  padding: 24px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.included-list li:last-child { border-bottom: none; }

/* ---------- Application Form ---------- */
.apply { padding: 40px 0 120px; }
.apply .section-title { text-align: center; }
.apply-sub {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 56px;
}
.field { margin-bottom: 28px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--black);
  background: var(--off-white);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 16px 18px;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230a0a0a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--black);
  background: var(--white);
}
.field textarea { resize: vertical; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-status {
  text-align: center;
  font-size: 14px;
  margin-top: 16px;
  min-height: 20px;
  color: var(--gray-600);
}
.form-status.error { color: #b00020; }

.apply-success {
  text-align: center;
  padding: 60px 0;
}
.apply-success h3 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.apply-success p { color: var(--gray-600); font-size: 17px; }

/* ---------- Final CTA ---------- */
.final {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 140px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.final h2 {
  font-size: clamp(32px, 7vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 720px;
  margin: 0 auto 20px;
}
.final p {
  font-family: var(--font-serif);
  font-size: clamp(18px, 3vw, 24px);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 44px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 32px 24px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Desktop ---------- */
@media (min-width: 720px) {
  .how-card { padding: 64px 56px; }
}
