/* Basketball Biomechanics Shooting Calibration — v2 */

:root {
  --black: #0a0a0a;
  --ink: #050506;
  --white: #ffffff;
  --off-white: #f5f5f4;
  --gray-100: #ececea;
  --gray-400: #9c9c98;
  --gray-600: #55554f;
  --border: rgba(10, 10, 10, 0.12);
  --border-inv: rgba(255, 255, 255, 0.14);
  --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;
}

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

/* ---------- Reveal (gated on .js so content shows without JS) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  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; }

@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(8, 8, 8, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-inv);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}
.brand-logo {
  height: 34px;
  width: auto;
  background: var(--white);
  border-radius: 3px;
}
.wordmark {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  background: var(--white);
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 100px;
  transition: opacity 0.3s ease;
}
.nav-cta:hover { opacity: 0.8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  padding: 16px 38px;
  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.88; }
.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%; }

/* ---------- Shared layout ---------- */
.section-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 22px;
}
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(30px, 6.4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 28px;
}

/* Shared stat treatment */
.stat-from { color: var(--gray-400); }
.stat-arrow { padding: 0 0.35em; color: var(--gray-400); }
.stat-to { font-weight: 700; }

/* ---------- 1 · Hero ---------- */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1) contrast(1.05);
}
.hero-video { position: absolute; inset: 0; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5, 5, 6, 0.55), rgba(5, 5, 6, 0.25) 40%, rgba(5, 5, 6, 0.88) 88%);
}
.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 140px 22px 56px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(44px, 10.5vw, 104px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: 20px;
}
.hero-sub {
  font-family: var(--font-serif);
  font-size: clamp(18px, 3.4vw, 26px);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin-bottom: 30px;
}
.hero-cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.hero-note { font-size: 13px; color: rgba(255, 255, 255, 0.55); }

/* ---------- 2 · Proof bar ---------- */
.proof {
  background: var(--ink);
  color: var(--white);
  padding: 26px 0 64px;
}
.carousel {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
  mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
}
.carousel-track {
  display: flex;
  width: max-content;
  animation: carousel-scroll 40s 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: 200px;
  height: 280px;
  margin-right: 14px;
  border-radius: 18px;
  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.logo-card { background: var(--white); border: 1px solid var(--border); }
.athlete-card.logo-card > img {
  object-fit: contain;
  padding: 40px 30px 96px;
  box-sizing: border-box;
  filter: grayscale(1);
}
.athlete-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 46px 16px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.athlete-name { color: var(--white); font-size: 14px; 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;
}
.athlete-hook { color: rgba(255, 255, 255, 0.8); font-size: 11.5px; margin-top: 4px; }
.athlete-card.logo-card figcaption { background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent); }
.athlete-card.logo-card .athlete-name { color: var(--black); }
.athlete-card.logo-card .athlete-tag { color: var(--gray-400); }
.proof-caption {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  padding: 28px 22px 0;
}

/* ---------- 3 · Case studies ---------- */
.cases { padding: 88px 0 72px; }
.case-row {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}
.case-card {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
}
.case-photo {
  flex: 0 0 118px;
  background: #111;
}
.case-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(1);
}
.case-body { padding: 20px 20px 18px; flex: 1; }
.case-body header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.case-name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.case-level {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.case-intervention { font-size: 13px; color: var(--gray-600); margin-bottom: 12px; }
.case-stat { font-size: clamp(28px, 6vw, 38px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.case-note { font-size: 13px; color: var(--gray-600); margin-top: 6px; }
.case-extra {
  margin-top: 26px;
  font-size: 14px;
  color: var(--gray-600);
}
.case-disclaimer {
  margin-top: 10px;
  font-size: 12px;
  color: var(--gray-400);
}

/* ---------- 4 · Testimonials ---------- */
.testimonials { padding: 88px 0; background: var(--off-white); }
.testimonial-featured {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #111;
}
.testimonial-featured video { width: 100%; }
.testimonial-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.testimonial-card {
  flex: 0 0 82%;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}
.testimonial-quote { font-family: var(--font-serif); font-size: 17px; line-height: 1.5; }
.testimonial-who { margin-top: 14px; font-size: 13px; color: var(--gray-600); font-weight: 600; }

/* ---------- 5 · The BB Difference ---------- */
.difference {
  background: var(--ink);
  color: var(--white);
  padding: 96px 0;
}
.difference .kicker { color: rgba(255, 255, 255, 0.45); }
.diff-grid {
  display: grid;
  gap: 16px;
  margin: 10px 0 30px;
}
.diff-col {
  border: 1px solid var(--border-inv);
  border-radius: 20px;
  padding: 26px 24px;
}
.diff-col h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 16px;
}
.diff-col ul { list-style: none; }
.diff-col li {
  font-family: var(--font-serif);
  font-size: 19px;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.85);
}
.diff-col-bb { background: var(--white); color: var(--black); border-color: var(--white); }
.diff-col-bb h3 { color: var(--gray-600); }
.diff-question {
  font-family: var(--font-serif);
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.25;
}
.diff-close {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin-bottom: 34px;
}
.method-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.method-strip .method-sep { color: rgba(255, 255, 255, 0.35); }

/* ---------- 7 · Process ---------- */
.process { padding: 88px 0 96px; background: var(--off-white); }
.steps { list-style: none; margin-top: 12px; }
.step {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  padding-top: 5px;
}
.step h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.step p { font-size: 15px; color: var(--gray-600); }
.loop-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
}

/* ---------- 8 · Show the work ---------- */
.work {
  background: var(--ink);
  color: var(--white);
  padding: 96px 0;
}
.work-head { text-align: center; margin-bottom: 0; }
.work-head h2 {
  font-size: clamp(34px, 8vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 10px;
}
.work-head p {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.work-grid {
  display: grid;
  gap: 10px;
  padding: 0 10px;
  max-width: 1200px;
  margin: 0 auto;
}
.work-item {
  border-radius: 14px;
  overflow: hidden;
  background: #111;
}
.work-item img, .work-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  aspect-ratio: 4 / 3;
}

/* ---------- 9 · Who this is for ---------- */
.who { padding: 96px 0; text-align: center; }
.who .section-title { margin-bottom: 12px; }
.who-sub {
  font-family: var(--font-serif);
  font-size: clamp(18px, 3.6vw, 24px);
  color: var(--gray-600);
  margin-bottom: 34px;
}
.who-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.who-chips span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 22px;
}

/* ---------- 10 · Final proof ---------- */
.final-proof {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 100px 0;
  border-bottom: 1px solid var(--border-inv);
}
.fp-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
}
.fp-stat {
  font-size: clamp(64px, 16vw, 140px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.fp-stat .stat-from { color: rgba(255, 255, 255, 0.35); }
.fp-stat .stat-arrow { color: rgba(255, 255, 255, 0.35); }
.fp-note {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: clamp(16px, 3.2vw, 22px);
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- 11 · Final CTA + Application ---------- */
.apply { background: var(--ink); padding-bottom: 96px; }
.apply-head {
  color: var(--white);
  text-align: center;
  padding: 96px 22px 56px;
}
.apply-head h2 {
  font-size: clamp(34px, 8vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.apply-head p {
  font-family: var(--font-serif);
  font-size: clamp(17px, 3.2vw, 22px);
  color: rgba(255, 255, 255, 0.7);
}
#application-form, .apply-success {
  background: var(--white);
  border-radius: 24px;
  padding: 30px 22px;
}
.field { margin-bottom: 22px; }
.field-row { display: grid; gap: 0; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.field .opt { color: var(--gray-400); font-weight: 500; text-transform: none; letter-spacing: 0; }
.field input,
.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: 15px 16px;
  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 16px 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: 14px;
  min-height: 20px;
  color: var(--gray-600);
}
.form-status.error { color: #b00020; }

.apply-success { text-align: center; padding: 56px 24px; }
.apply-success h3 {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.apply-success p { color: var(--gray-600); font-size: 16px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 28px 22px 44px;
  border-top: 1px solid var(--border-inv);
}

/* ---------- Desktop ---------- */
@media (min-width: 720px) {
  .hero { align-items: center; }
  .hero-inner { padding-bottom: 120px; }
  .athlete-card { width: 230px; height: 320px; }
  .case-row { grid-template-columns: repeat(3, 1fr); }
  .cases .section-inner,
    .difference .section-inner { max-width: 960px; }
  .case-card { flex-direction: column; }
  .case-photo { flex: none; height: 210px; }
  .diff-grid { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  #application-form, .apply-success { padding: 44px 40px; }
  .testimonial-card { flex-basis: 44%; }
}
