/* ============================================================
   COACH ARTIE :: shared design system
   Tokens per DESIGN.md canon + BRIEF 60-30-10 rule
   ============================================================ */

:root {
  --ink: #1A1A1A;
  --slate: #6B7280;
  --orange: #ED174C;
  --orange-deep: #C40F3D;
  --navy: #002B5C;
  --navy-deep: #001730;
  --navy-tint: #006BB6;
  --cream: #F7F3EC;
  --paper: #FDFBF7;
  --charcoal: #111111;
  --green: #22C55E;

  --bebas: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --anton: 'Anton', 'Arial Black', sans-serif;
  --inter: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;

  --ease-out: cubic-bezier(0.625, 0.05, 0, 1);
  --radius: 28px;
  --radius-sm: 16px;
  --nav-h: 76px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: calc(var(--nav-h, 72px) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--inter);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, select { font: inherit; }
::selection { background: var(--orange); color: var(--paper); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- film grain overlay ---------- */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- typography ---------- */
h1, h2, h3, .bebas {
  font-family: var(--bebas);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.display-xl { font-size: clamp(4.4rem, 15vw, 13rem); }
.display-lg { font-size: clamp(3.2rem, 9vw, 8rem); }
.display-md { font-size: clamp(2.4rem, 6vw, 5rem); }
.display-sm { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.anton {
  font-family: var(--anton);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
}
.eyebrow {
  display: inline-block;
  font-family: var(--inter);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 22px;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.65; }
.small { font-size: 0.82rem; }
.accent { color: var(--orange); }

/* ---------- layout ---------- */
.container { width: min(1200px, 92vw); margin-inline: auto; }
.container--narrow { width: min(820px, 92vw); margin-inline: auto; }
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section--navy { background: var(--navy); color: var(--paper); }
.section--deep { background: var(--navy-deep); color: var(--paper); }
.section--cream { background: var(--cream); color: var(--ink); }
.section--navy .lede, .section--deep .lede { color: rgba(253, 251, 247, 0.82); }
.section--cream .lede { color: var(--slate); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 clamp(18px, 4vw, 44px);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(0, 23, 48, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.wordmark {
  font-family: var(--bebas);
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  color: var(--paper);
  line-height: 1;
}
.wordmark span { color: var(--orange); }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav__links a:not(.btn) {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253, 251, 247, 0.78);
  transition: color 0.25s ease;
}
.nav__links a:not(.btn):hover { color: var(--orange); }
@media (max-width: 860px) {
  .nav__links a:not(.btn):not(.nav__keep) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 42px;
  border-radius: 999px;
  font-family: var(--bebas);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out);
  will-change: transform;
}
.btn--primary { background: var(--orange); color: var(--paper); }
.btn--primary:hover { background: var(--orange-deep); }
.btn--ghost { border: 2px solid currentColor; background: transparent; }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn--paper { background: var(--paper); color: var(--navy-deep); }
.btn--paper:hover { background: var(--cream); }
.btn--sm { padding: 13px 30px; font-size: 1.05rem; }
.btn__arrow { width: 16px; height: 16px; flex: none; }

/* ---------- ticker marquee ---------- */
.ticker {
  background: var(--navy-deep);
  border-top: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  overflow: clip;
  padding: 16px 0;
}
.ticker__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
}
.ticker__group { display: flex; align-items: center; flex: none; }
.ticker__item {
  font-family: var(--bebas);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  letter-spacing: 0.08em;
  color: var(--orange);
  white-space: nowrap;
  padding: 0 18px;
}
.ticker__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--paper);
  opacity: 0.45;
  flex: none;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* ---------- stat counters ---------- */
.stat__num {
  font-family: var(--anton);
  font-size: clamp(4.2rem, 13vw, 11.5rem);
  line-height: 0.95;
  color: var(--navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.stat__num .accent { color: var(--orange); }
.stat__label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 10px;
  max-width: 300px;
}

/* ---------- sticky stacked cards ---------- */
.stack { display: flex; flex-direction: column; gap: 26px; }
.stack__card {
  position: sticky;
  background: var(--navy-tint);
  color: var(--paper);
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 60px);
  border: 1px solid rgba(253, 251, 247, 0.1);
  box-shadow: 0 -18px 50px rgba(0, 23, 48, 0.45);
}
.stack__card:nth-child(1) { top: calc(var(--nav-h) + 22px); }
.stack__card:nth-child(2) { top: calc(var(--nav-h) + 54px); }
.stack__card:nth-child(3) { top: calc(var(--nav-h) + 86px); }
.stack__index {
  font-family: var(--anton);
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--orange);
  line-height: 1;
}
.stack__card h3 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 14px 0 16px; }
.stack__card p { max-width: 56ch; color: rgba(253, 251, 247, 0.85); }
.stack__note { margin-top: 16px; font-size: 0.85rem; color: rgba(253, 251, 247, 0.62); }

/* ---------- forms ---------- */
.form-row { display: flex; flex-direction: column; gap: 14px; }
.input {
  width: 100%;
  padding: 17px 22px;
  border-radius: 14px;
  border: 1.5px solid rgba(0, 43, 92, 0.25);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.25s ease;
}
.input:focus { outline: none; border-color: var(--orange); }
.input::placeholder { color: var(--slate); }
.on-dark .input {
  background: rgba(253, 251, 247, 0.07);
  border-color: rgba(253, 251, 247, 0.25);
  color: var(--paper);
}
.on-dark .input::placeholder { color: rgba(253, 251, 247, 0.55); }
.form-note { font-size: 0.82rem; color: var(--slate); margin-top: 12px; }
.on-dark .form-note { color: rgba(253, 251, 247, 0.6); }
.form-success {
  display: none;
  padding: 22px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--green);
  color: var(--green);
  font-weight: 600;
}
form.sent .form-success { display: block; }
form.sent .form-body { display: none; }

/* ---------- footer ---------- */
.footer {
  background: var(--charcoal);
  color: rgba(253, 251, 247, 0.75);
  padding: clamp(60px, 8vw, 100px) 0 46px;
  font-size: 0.86rem;
}
.footer .wordmark { font-size: 2.1rem; }
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 38px;
  margin-bottom: 44px;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer__links a {
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: rgba(253, 251, 247, 0.75);
  transition: color 0.25s ease;
}
.footer__links a:hover { color: var(--orange); }
.footer__disclosure {
  border-top: 1px solid rgba(253, 251, 247, 0.14);
  padding-top: 26px;
  color: rgba(253, 251, 247, 0.5);
  font-size: 0.76rem;
  line-height: 1.7;
  max-width: 860px;
}

/* ---------- custom cursor: paper plane + flight path, basketball over
   clickables (JS injects, hover devices only) ---------- */
.cursor-trail {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9490;
}
.cursor-jet {
  position: fixed;
  top: 0; left: 0;
  width: 26px; height: 26px;
  pointer-events: none;
  z-index: 9500;
  will-change: transform;
}
.cursor-jet svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  transition: opacity 0.18s ease, transform 0.22s var(--ease-out);
}
.cursor-jet .cj-plane {
  transform: rotate(var(--cj-rot, 0deg));
  filter: drop-shadow(0 1px 4px rgba(0, 23, 48, 0.35));
}
.cursor-jet .cj-ball { opacity: 0; transform: scale(0.5); }
.cursor-jet.is-ball .cj-plane { opacity: 0; transform: scale(0.5) rotate(var(--cj-rot, 0deg)); }
.cursor-jet.is-ball .cj-ball { opacity: 1; transform: scale(1.25); }
.cursor-jet.is-pressed .cj-ball { transform: scale(0.9); }
html.has-cursor a, html.has-cursor button { cursor: none; }
html.has-cursor { cursor: none; }

/* ---------- sticky mobile CTA bar ---------- */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 850;
  display: none;
  gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(0, 23, 48, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease-out);
}
.mobile-bar.visible { transform: translateY(0); }
.mobile-bar .btn { flex: 1; padding: 15px 10px; font-size: 1.05rem; }
@media (max-width: 767px) {
  .mobile-bar { display: flex; }
}

/* ---------- reveal defaults (JS-gated so no-JS stays visible) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(30px); }
html.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 0.9s ease, transform 0.9s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- utility ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.divider-rule { width: 72px; height: 4px; background: var(--orange); border: 0; margin: 26px 0; }
.center .divider-rule { margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--orange); color: var(--paper);
  padding: 12px 20px; z-index: 9999;
}
.skip-link:focus { left: 12px; top: 12px; }

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