/* BALL OS home page — premium layer.
   Loaded last (injected by build-site.mjs). Same content as index.html; only type, colour, spacing and motion change. */

:root {
  --ink: #07080b;
  --ink-2: #0c0e13;
  --ink-3: #12151b;
  --line: rgba(236, 232, 220, 0.07);
  --line-2: rgba(236, 232, 220, 0.14);
  --fg: #efece4;
  --fg-2: rgba(239, 236, 228, 0.66);
  --fg-3: rgba(239, 236, 228, 0.40);
  --gold: #cdaa63;
  --gold-deep: #a98644;
  --gold-soft: #e7d3a1;
  --cyan: #9db3c4;
  --green: #98bf9f;
  --red: #c9776f;

  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --pad-y: clamp(48px, 5.5vw, 84px);
}

html { scroll-padding-top: 72px; }
body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(205, 170, 99, 0.07), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(157, 179, 196, 0.05), transparent 60%),
    var(--ink);
  font-size: 15.5px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11", "tnum";
  letter-spacing: -0.003em;
}
::selection { background: rgba(205, 170, 99, 0.35); color: #fff; }

/* ── Rhythm: tighter, consistent ─────────────────────────── */
section { padding: var(--pad-y) 0; }
.wrap { padding: 0 clamp(20px, 4vw, 40px); }
p { margin-top: 0; }
.lede { font-size: 17px; line-height: 1.6; margin: 0 0 clamp(28px, 3.2vw, 44px); max-width: 640px; }
.h2 { margin: 0 0 14px; }
.bos-believe__list p, .bos-believe__line { margin: 0; }
.bos-believe__list { gap: 6px; margin-top: 28px; }
.bos-believe__turn { margin-top: 28px; }
.bos-flow { margin-top: 28px; gap: 8px; }
.bos-eco__grid { margin-top: 28px; }
.features__grid, .gallery__grid, .how__steps, .pricing__tiers, .math__grid { gap: 14px; }
.hero { padding: clamp(36px, 4vw, 56px) 0 var(--pad-y); }
.bos-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 72px); }

/* ── Typography ──────────────────────────────────────────── */
.bos-hero__h1, .hero__h1, .h2, .bos-eco__title, .bos-believe__line,
.bos-believe__os, .problem__quote, .coach__h, .network-card__logo,
.tier__price, .math__col-h, .stack__after-h, .step__h,
.feature__h, .gallery__h, .bos-buzzer, .math__total-val {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.012em;
}
.bos-hero__h1 { font-size: clamp(48px, 8.2vw, 112px); line-height: 0.96; letter-spacing: -0.025em; }
.hero__h1 { font-size: clamp(48px, 6.4vw, 92px); line-height: 0.98; letter-spacing: -0.022em; }
.h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.04; }
.bos-believe__line { font-size: clamp(22px, 3vw, 38px); line-height: 1.16; }
.feature__h, .gallery__h, .step__h, .math__col-h { font-size: clamp(21px, 2vw, 27px); line-height: 1.16; }
.bos-eco__t { font-family: var(--body); font-weight: 600; font-size: 15px; letter-spacing: 0; }
.bos-flow__s h3 { font-family: var(--body); font-weight: 600; font-size: 14px; letter-spacing: 0; }
.bos-hero__l1 { color: var(--gold-soft); }
.bos-hero__l2 { color: var(--fg); }
.bos-hero__l3 { color: var(--fg-2); font-style: italic; }
.hero__h1 .verb { color: var(--fg); }
.hero__h1 .verb:hover { color: var(--gold-soft); }
.hero__h1 .period { color: var(--gold); }
.bos-believe__line b, .coach__h em { font-style: italic; font-weight: 400; color: var(--gold-soft); }

.eyebrow, .hero__eyebrow, .math__col-label, .snapshot-label, .coach__label, .logos__label, .feature__num, .gallery__num, .step__num {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.eyebrow::before, .hero__eyebrow::before {
  width: 28px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform-origin: left;
  animation: lineDraw 1.1s var(--ease) both;
}
@keyframes lineDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.step__num { font-family: var(--display); font-size: 44px; letter-spacing: 0; color: var(--gold); line-height: 1; }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  padding: 14px 0;
  position: sticky; top: 36px; z-index: 60;
  background: rgba(7, 8, 11, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav__links a, .nav__login { font-size: 13px; letter-spacing: 0.01em; white-space: nowrap; }
.brand__wordmark { font-family: var(--display); font-size: 24px; letter-spacing: 0.02em; }
.ticker { background: #050608; opacity: 0.92; }
.ticker__rail span { font-size: 10.5px; letter-spacing: 0.14em; }

/* Small labels stay in the sans; the serif is for display sizes only */
.tier__name, .pickleball-tickler__link strong, .pickleball-tickler__headline,
.pickleball-snapshot__caption strong, .pricing-offer-stat strong {
  font-family: var(--body); font-weight: 600; letter-spacing: .06em;
}
.tier__name { font-size: 11px; text-transform: uppercase; color: var(--gold); letter-spacing: .2em; font-family: var(--mono); font-weight: 500; }
.pricing-offer-stat strong { font-family: var(--display); font-weight: 400; letter-spacing: 0; font-size: 26px; }
.tier__capacity-label { font-size: 20px; }
.pricing-context, .founders-counter, .pricing-custom-quote { border-radius: 12px; }

@media (min-width: 721px) {
  .nav__links { gap: 20px; }
  .nav__login { padding: 8px 12px; border-radius: 6px; }
  .nav__cta { padding: 10px 16px; }
}
@media (min-width: 1100px) {
  .nav__actions { flex-wrap: nowrap; gap: 8px; flex-shrink: 0; }
  .nav__cta { white-space: nowrap; }
  .nav__inner .brand { flex-shrink: 0; }
}
@media (min-width: 721px) and (max-width: 1099px) {
  .nav__links { display: none; }
}


/* ── Burger menu (below laptop width) ────────────────────── */
.nav__burger, .nav__cta--mini, .nav__sheet { display: none; }
@media (max-width: 1099px) {
  .nav { position: sticky; top: 34px; padding: 10px 0; }
  .nav__inner { flex-direction: row !important; align-items: center !important; justify-content: space-between; gap: 12px !important; }
  .nav__inner .brand { justify-content: flex-start !important; }
  .nav__links, .nav__actions { display: none !important; }
  .nav .nav__cta--mini { display: inline-flex; width: auto !important; flex: none; margin-left: auto; padding: 9px 14px; font-size: 12px; white-space: nowrap; }
  .nav__burger {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; flex: none;
    border: 1px solid var(--line-2); border-radius: 8px; background: rgba(255,255,255,.03); transition: border-color .3s, background .3s;
  }
  .nav__burger:hover, .nav__burger[aria-expanded="true"] { border-color: rgba(205,170,99,.55); background: rgba(205,170,99,.08); }
  .nav__burger span { display: block; width: 20px; height: 1.5px; background: var(--fg); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav__sheet:not([hidden]) {
    display: block; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 100px); overflow-y: auto;
    background: #07080b;
    border-bottom: 1px solid var(--line-2); box-shadow: 0 40px 60px -30px rgba(0,0,0,.9);
    animation: sheetIn .35s var(--ease) both;
  }
  @keyframes sheetIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .nav__sheet-in { display: grid; gap: 2px; padding-top: 10px; padding-bottom: 22px; }
  .nav__sheet-in > a {
    font-family: var(--display); font-size: 30px; line-height: 1.1; letter-spacing: -.01em; color: var(--fg); padding: 13px 4px;
    border-bottom: 1px solid var(--line); opacity: 0; animation: capIn .5s var(--ease) both;
  }
  .nav__sheet-in > a:nth-child(1) { animation-delay: .04s; } .nav__sheet-in > a:nth-child(2) { animation-delay: .08s; }
  .nav__sheet-in > a:nth-child(3) { animation-delay: .12s; } .nav__sheet-in > a:nth-child(4) { animation-delay: .16s; }
  .nav__sheet-in > a:nth-child(5) { animation-delay: .20s; } .nav__sheet-in > a:nth-child(6) { animation-delay: .24s; }
  .nav__sheet-in > a:nth-child(7) { animation-delay: .28s; }
  .nav__sheet-in > a:active { color: var(--gold-soft); }
  .nav__sheet-actions { display: grid; gap: 9px; margin-top: 16px; }
  .nav__sheet-actions .nav__login, .nav__sheet-actions .nav__cta { width: 100%; text-align: center; justify-content: center; padding: 13px 12px; font-size: 13px; }
}
@media (max-width: 420px) { .nav__inner .brand__wordmark { font-size: 21px; } .nav__cta--mini { padding: 9px 11px; } }
@media (prefers-reduced-motion: reduce) { .nav__sheet-in > a { opacity: 1; animation: none !important; } .nav__sheet { animation: none !important; } }

/* ── Buttons: refined, not bubbly ────────────────────────── */
.btn, .nav__cta, .coach__btn, .tier__cta {
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 13px 22px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s;
}
.btn--primary, .nav__cta, .coach__btn {
  color: #14110a;
  background: linear-gradient(180deg, #e3c985 0%, #c39f57 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 8px 24px -10px rgba(205, 170, 99, 0.55);
  position: relative; overflow: hidden;
}
.btn--primary::after, .nav__cta::after, .coach__btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}
.btn--primary:hover, .nav__cta:hover, .coach__btn:hover { transform: translateY(-1px); background: linear-gradient(180deg, #ecd491 0%, #cba761 100%); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 14px 34px -12px rgba(205, 170, 99, 0.7); }
.btn--primary:hover::after, .nav__cta:hover::after, .coach__btn:hover::after { transform: translateX(120%); }
.btn--ghost { border-color: var(--line-2); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: rgba(205, 170, 99, 0.55); background: rgba(205, 170, 99, 0.05); }

/* Login chips + support launcher */
.nav__login { border-radius: 6px; border-color: var(--line-2); background: rgba(255,255,255,.02); }
.nav__login:hover { border-color: rgba(205,170,99,.5); }
html body a.ball-support-launcher {
  border-radius: 8px !important; background: rgba(12,14,19,.88) !important; color: var(--fg) !important;
  border: 1px solid rgba(205,170,99,.4) !important; font: 600 12px/1 var(--body) !important; letter-spacing: .04em;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.9) !important;
}
html body a.ball-support-launcher:hover { border-color: var(--gold) !important; }
.eyebrow { margin-bottom: 18px; }
.bos-believe .eyebrow + .h2, .bos-believe .eyebrow + h2 { margin-top: 0; }

/* ── Surfaces: glass, hairlines, depth ───────────────────── */
.feature, .gallery__item, .step, .tier, .math__col, .network-card, .network-item, .bos-flow__s,
.bos-eco__node, .bos-eco__detail, .camchip, .stack__chip, .stack__after, .coach, .cmp__table {
  border-color: var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), var(--ink-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 24px 48px -32px rgba(0, 0, 0, 0.9);
  transition: border-color 0.35s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  position: relative;
}
.feature:hover, .gallery__item:hover, .step:hover, .tier:hover, .network-item:hover {
  border-color: rgba(205, 170, 99, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 34px 60px -30px rgba(0, 0, 0, 0.95);
}
/* cursor-follow light (set by premium.js) */
.feature::before, .gallery__item::before, .step::before, .tier::before, .math__col::before, .bos-eco__detail::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(205, 170, 99, 0.10), transparent 60%);
  transition: opacity 0.4s;
}
.feature:hover::before, .gallery__item:hover::before, .step:hover::before, .tier:hover::before,
.math__col:hover::before, .bos-eco__detail:hover::before { opacity: 1; }
.tier--featured { border-color: rgba(205, 170, 99, 0.5); box-shadow: 0 0 0 1px rgba(205, 170, 99, 0.18), 0 40px 80px -40px rgba(205, 170, 99, 0.35); }
.bos-eco__node.is-active { border-color: rgba(205, 170, 99, 0.55); background: linear-gradient(90deg, rgba(205, 170, 99, 0.10), transparent), var(--ink-2); }
.network-pill, .bos-eco__pills span, .cmp__tag { border-radius: 4px; letter-spacing: 0.08em; }
.bos-believe, .problem { background: transparent; border-color: var(--line); }

/* ── Imagery: cinematic, high-resolution presentation ───── */
.hero__shot img, .feature__shot img, .gallery__img img, .gallery__img {
  border-radius: 10px;
  image-rendering: auto;
}
.hero__shot, .feature__shot, .gallery__img {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px var(--line-2), 0 50px 90px -40px rgba(0, 0, 0, 0.95), 0 0 80px -30px rgba(205, 170, 99, 0.18);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.35s var(--ease), box-shadow 0.5s var(--ease);
}
.hero__shot::after, .feature__shot::after, .gallery__img::after {
  /* lens vignette + glass sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.10) 0%, transparent 30%),
    radial-gradient(120% 100% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.38) 100%);
}
.hero__shot img, .gallery__img img, .feature__shot img { transition: transform 1.2s var(--ease); }
.hero__shot:hover img, .gallery__item:hover img { transform: scale(1.025); }

/* ── Ambient motion ──────────────────────────────────────── */
.bos-hero::before, .hero::before {
  animation: drift 18s ease-in-out infinite alternate;
  background:
    radial-gradient(640px circle at 78% 14%, rgba(205, 170, 99, 0.13), transparent 60%),
    radial-gradient(820px circle at 6% 96%, rgba(157, 179, 196, 0.08), transparent 65%);
}
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-2.5%, 2%, 0) scale(1.06); } }
.bos-hero__court { opacity: 0.38; }
.bos-hero__court path, .bos-hero__court rect, .bos-hero__court line, .bos-hero__court circle {
  stroke: rgba(205, 170, 99, 0.35) !important;
  stroke-dasharray: 2400; stroke-dashoffset: 2400;
  animation: courtDraw 3.6s var(--ease) 0.2s forwards;
}
@keyframes courtDraw { to { stroke-dashoffset: 0; } }
.bos-anim .bos-hero__l1, .bos-anim .bos-hero__l2, .bos-anim .bos-hero__l3 { filter: blur(8px); animation-name: bosInBlur; }
@keyframes bosInBlur { to { opacity: 1; transform: none; filter: blur(0); } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.features__grid > *:nth-child(2n), .gallery__grid > *:nth-child(2n), .how__steps > *:nth-child(2n) { transition-delay: 0.08s; }
.how__steps > *:nth-child(3) { transition-delay: 0.16s; }
.how__steps > *:nth-child(4) { transition-delay: 0.24s; }

.ticker__rail { animation-duration: 90s; }

/* scroll progress (element added by premium.js) */
.ballx-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 100; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft)); pointer-events: none; }

/* ── Data blocks: calmer colour ──────────────────────────── */
.math__col--bad { background: var(--ink-2); }
.math__col--good { border-color: rgba(205, 170, 99, 0.35); }
.math__total-val { font-size: 34px; }
.math__line { font-size: 14px; }
.cmp__table tfoot td.cmp__ours b, .tier__price { color: var(--gold-soft); }
.tier__price { font-size: 44px; line-height: 1; }

footer { background: #050608; border-top: 1px solid var(--line); }


/* ── Product snapshots ───────────────────────────────────── */
.snap { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: clamp(20px, 3vw, 44px); align-items: start; }
.snap__tabs { display: flex; flex-direction: column; gap: 4px; }
.snap__tab {
  display: grid; grid-template-columns: 30px 1fr; gap: 10px; text-align: left; width: 100%;
  padding: 16px 16px 16px 18px; border: 0; border-left: 1px solid var(--line-2); border-radius: 0 10px 10px 0;
  background: transparent; color: var(--fg-2); position: relative; overflow: hidden;
  transition: background .4s var(--ease), color .3s, border-color .3s;
}
.snap__tab:hover { color: var(--fg); background: rgba(255,255,255,.025); }
.snap__tab[aria-selected="true"] { color: var(--fg); border-left-color: var(--gold); background: linear-gradient(90deg, rgba(205,170,99,.10), transparent); }
.snap__n { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; color: var(--fg-3); padding-top: 5px; }
.snap__tab[aria-selected="true"] .snap__n { color: var(--gold); }
.snap__t { display: block; font-family: var(--display); font-size: 25px; line-height: 1.1; letter-spacing: -.01em; }
.snap__d { display: block; max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; font-size: 13.5px; line-height: 1.55; color: var(--fg-2);
  transition: max-height .6s var(--ease), opacity .5s var(--ease), margin .5s var(--ease); }
.snap__tab[aria-selected="true"] .snap__d { max-height: 120px; opacity: 1; margin-top: 8px; }
.snap__tab::after { /* auto-advance progress */
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.snap.is-playing .snap__tab[aria-selected="true"]::after { animation: snapProgress var(--snap-ms, 7s) linear forwards; }
@keyframes snapProgress { to { transform: scaleX(1); } }

.snap__stage { position: relative; }
.snap__frame {
  border-radius: 12px; overflow: hidden; background: #08090c;
  box-shadow: 0 0 0 1px var(--line-2), 0 60px 110px -50px rgba(0,0,0,.95), 0 0 100px -40px rgba(205,170,99,.28);
  transform-style: preserve-3d; transition: transform .35s var(--ease);
}
.snap__bar { display: flex; align-items: center; gap: 14px; padding: 11px 16px; background: linear-gradient(180deg, #14171d, #0e1015); border-bottom: 1px solid var(--line); }
.snap__dots { display: inline-flex; gap: 6px; }
.snap__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.14); }
.snap__url { flex: 1; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--fg-3); }
.snap__bar em { font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(205,170,99,.35); border-radius: 4px; padding: 3px 7px; }
.snap__imgs { position: relative; aspect-ratio: 16 / 10; background: #08090c; }
.snap__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); filter: blur(4px);
  transition: opacity .8s var(--ease), transform 1.4s var(--ease), filter .8s var(--ease); }
.snap__img.is-on { opacity: 1; transform: none; filter: none; }
.snap__imgs::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.07) 0%, transparent 28%), radial-gradient(130% 110% at 50% 50%, transparent 65%, rgba(0,0,0,.30) 100%); }
.snap__rim { position: absolute; left: 8%; right: 8%; bottom: -30px; height: 40px; background: radial-gradient(closest-side, rgba(205,170,99,.28), transparent); filter: blur(18px); pointer-events: none; }
@media (max-width: 900px) {
  .snap { grid-template-columns: 1fr; }
  .snap__tabs { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; }
  .snap__tabs::-webkit-scrollbar { display: none; }
  .snap__tab { flex: 0 0 auto; width: auto; border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 14px; grid-template-columns: auto; }
  .snap__tab[aria-selected="true"] { border-color: var(--gold); }
  .snap__n, .snap__d { display: none; }
  .snap__t { font-size: 18px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .snap__img { transition: none; filter: none; transform: none; } }

/* Pickleball preview: keep it distinct but calmer (no neon) */
.pickleball-tickler, .pickleball-launch__copy, .pickleball-launch__ambient, .pickleball-pricing { filter: saturate(0.55); }
.pickleball-launch__title { font-size: clamp(34px, 4vw, 54px); line-height: 1.06; letter-spacing: -0.015em; }
.pickleball-launch__features > div { border-radius: 10px; }
.btn--pickleball { border-radius: 6px; }


/* ── Icons ───────────────────────────────────────────────── */
.ico { width: 22px; height: 22px; color: var(--gold); flex: none; }

/* ── Roles: pick what you do ─────────────────────────────── */
.roles { padding-top: clamp(40px, 5vw, 72px); }
.roles__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.role-tab {
  display: grid; grid-template-columns: 26px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left;
  padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 12px; color: var(--fg-2);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--ink-2);
  position: relative; overflow: hidden;
  transition: border-color .4s var(--ease), color .3s, transform .4s var(--ease), box-shadow .5s var(--ease);
}
.role-tab .ico { grid-row: 1 / 3; width: 26px; height: 26px; opacity: .75; transition: opacity .3s, transform .5s var(--ease); }
.role-tab__t { font-family: var(--display); font-size: 23px; line-height: 1.1; letter-spacing: -.01em; }
.role-tab__s { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); margin-top: 3px; }
.role-tab:hover { color: var(--fg); transform: translateY(-2px); border-color: rgba(205,170,99,.4); }
.role-tab[aria-selected="true"] {
  color: var(--fg); border-color: rgba(205,170,99,.65);
  background: linear-gradient(135deg, rgba(205,170,99,.16), rgba(205,170,99,.02) 60%), var(--ink-2);
  box-shadow: 0 0 0 1px rgba(205,170,99,.15), 0 30px 60px -34px rgba(205,170,99,.45);
}
.role-tab[aria-selected="true"] .ico { opacity: 1; transform: scale(1.12); }
.role-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); animation: lineDraw .8s var(--ease) both; transform-origin: left; }

.roles__stage { position: relative; }
.role-panel[hidden] { display: none; }
.role-panel.is-active { animation: panelIn .6s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.role-top { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(22px, 3.2vw, 48px); align-items: center; margin-bottom: 26px; }
.role-h { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.04; letter-spacing: -.015em; margin: 0 0 14px; }
.role-solves { color: var(--fg-2); font-size: 16.5px; line-height: 1.6; margin: 0 0 22px; max-width: 52ch; }
.role-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.role-visual { position: relative; }
.role-frame { box-shadow: 0 0 0 1px var(--line-2), 0 60px 110px -50px rgba(0,0,0,.95), 0 0 110px -40px rgba(205,170,99,.3); }

/* animated flow rail */
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 6px; align-items: center; }
.flow li { display: inline-flex; align-items: center; gap: 6px; }
.flow li:not(:last-child)::after { content: ""; width: 18px; height: 1px; background: var(--line-2); }
.flow li span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--fg-3); background: rgba(255,255,255,.02);
}
.role-panel.is-active .flow li span { animation: flowLit 8s ease-in-out infinite; animation-delay: calc(var(--n) * .75s); }
@keyframes flowLit {
  0%, 100% { color: var(--fg-3); border-color: var(--line-2); background: rgba(255,255,255,.02); box-shadow: none; }
  8%, 74% { color: #14110a; border-color: transparent; background: linear-gradient(180deg, #e3c985, #c39f57); box-shadow: 0 8px 22px -10px rgba(205,170,99,.8); }
  88% { color: var(--fg-3); border-color: var(--line-2); background: rgba(255,255,255,.02); box-shadow: none; }
}

/* capability cards */
.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cap {
  position: relative; padding: 20px 18px 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--ink-2);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 24px 48px -34px rgba(0,0,0,.9);
  transition: border-color .35s var(--ease), transform .5s var(--ease);
}
.role-panel.is-active .cap { animation: capIn .7s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes capIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cap:hover { border-color: rgba(205,170,99,.4); transform: translateY(-3px); }
.cap::before { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: linear-gradient(90deg, var(--gold), transparent 60%); opacity: 0; transition: opacity .4s; }
.cap:hover::before { opacity: 1; }
.cap .ico { margin-bottom: 12px; transition: transform .5s var(--ease); }
.cap:hover .ico { transform: translateY(-2px) scale(1.08); }
.cap h4 { font-family: var(--body); font-weight: 600; font-size: 15px; letter-spacing: 0; margin: 0 0 6px; color: var(--fg); }
.cap p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--fg-2); }
.cap__tag { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(205,170,99,.35); border-radius: 4px; padding: 3px 7px; }
.role-note { margin: 18px 0 0; font-size: 12.5px; color: var(--fg-3); max-width: 80ch; }

/* BALLCrew illustration */
.crew-mock { border-radius: 12px; overflow: hidden; background: #0a0c10; box-shadow: 0 0 0 1px var(--line-2), 0 60px 110px -50px rgba(0,0,0,.95), 0 0 110px -40px rgba(205,170,99,.3); }
.crew-mock__bar { display: flex; align-items: center; gap: 14px; padding: 11px 16px; background: linear-gradient(180deg, #14171d, #0e1015); border-bottom: 1px solid var(--line); }
.crew-mock__bar em { font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(205,170,99,.35); border-radius: 4px; padding: 3px 7px; }
.crew-mock__body { padding: 22px; display: grid; gap: 12px; aspect-ratio: 16 / 10; align-content: center; background: radial-gradient(120% 90% at 80% 0%, rgba(205,170,99,.10), transparent 60%); }
.crew-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); }
.crew-role { display: block; font-weight: 600; font-size: 15px; color: var(--fg); }
.crew-role small { display: block; font-weight: 400; font-size: 12px; color: var(--fg-3); margin-top: 2px; }
.crew-status { position: relative; display: inline-block; min-width: 108px; height: 26px; }
.crew-status i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; border-radius: 999px; border: 1px solid; opacity: 0; animation: crewStatus 9s ease-in-out infinite; animation-delay: var(--d, 0s); }
.crew-status i:nth-child(1) { color: var(--fg-2); border-color: var(--line-2); }
.crew-status i:nth-child(2) { color: var(--gold-soft); border-color: rgba(205,170,99,.5); background: rgba(205,170,99,.10); animation-name: crewStatus2; }
.crew-status i:nth-child(3) { color: #14110a; border-color: transparent; background: linear-gradient(180deg, #e3c985, #c39f57); animation-name: crewStatus3; }
@keyframes crewStatus { 0%, 28% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes crewStatus2 { 0%, 30% { opacity: 0; } 36%, 62% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes crewStatus3 { 0%, 64% { opacity: 0; } 70%, 94% { opacity: 1; } 100% { opacity: 0; } }
.crew-rate { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border: 1px dashed rgba(205,170,99,.4); border-radius: 10px; color: var(--fg-2); font-size: 13.5px; }
.crew-rate small { color: var(--fg-3); font-size: 11.5px; }
.crew-stars { display: inline-flex; gap: 3px; }
.crew-stars b { font-weight: 400; font-size: 20px; color: rgba(255,255,255,.18); animation: starFill 9s ease-in-out infinite; animation-delay: calc(5.4s + var(--s, 0) * .18s); }
.crew-stars b:nth-child(1) { --s: 0; } .crew-stars b:nth-child(2) { --s: 1; } .crew-stars b:nth-child(3) { --s: 2; } .crew-stars b:nth-child(4) { --s: 3; } .crew-stars b:nth-child(5) { --s: 4; }
@keyframes starFill { 0% { color: rgba(255,255,255,.18); } 4%, 38% { color: var(--gold); text-shadow: 0 0 14px rgba(205,170,99,.6); } 48%, 100% { color: rgba(255,255,255,.18); text-shadow: none; } }

/* ── Try it: the scorer tablet (scorer-demo.css) ───────── */
.demo { padding-top: clamp(32px, 4vw, 56px); }
.demo__note { margin: 14px 0 0; font-size: 12.5px; color: var(--fg-3); max-width: 80ch; }

/* ── One game, one journey: lights up in order ───────────── */
.bos-flow { position: relative; counter-reset: step; }
.bos-flow__s { position: relative; transition: border-color .5s var(--ease), background .5s var(--ease), box-shadow .6s var(--ease), transform .5s var(--ease); cursor: default; }
.bos-flow__s .k { transition: color .4s; }
.bos-flow__s.is-lit { border-color: rgba(205,170,99,.55); background: linear-gradient(180deg, rgba(205,170,99,.12), rgba(205,170,99,.02)), var(--ink-2); box-shadow: 0 0 0 1px rgba(205,170,99,.12), 0 20px 40px -26px rgba(205,170,99,.6); }
.bos-flow__s.is-now { transform: translateY(-3px); border-color: var(--gold); }
.bos-flow__s.is-now .k { color: var(--gold-soft); }
.bos-flow__rail { height: 2px; margin: 26px 0 0; background: var(--line); border-radius: 2px; overflow: hidden; }
.bos-flow__rail i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft)); transition: width .8s var(--ease); }

/* ── Straight answers: live / rolling out / next ─────────── */
.status__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; }
.status__col { padding: 24px 22px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--ink-2); }
.status__h { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 26px; margin-bottom: 14px; }
.status__h i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(152,191,159,.6); animation: livePulse 2.4s ease-out infinite; }
.status__col--roll .status__h i { background: var(--gold); animation-name: livePulseGold; }
.status__col--next .status__h i { background: var(--cyan); animation: none; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(152,191,159,.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(152,191,159,0); } }
@keyframes livePulseGold { 0% { box-shadow: 0 0 0 0 rgba(205,170,99,.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(205,170,99,0); } }
.status__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.status__col li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.45; color: var(--fg-2); }
.status__col li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: rgba(152,191,159,.55); }
.status__col--roll li::before { background: rgba(205,170,99,.6); }
.status__col--next li::before { background: rgba(157,179,196,.5); border-radius: 50%; }
.status__col.reveal.in li { animation: capIn .6s var(--ease) both; }
.status__col.reveal.in li:nth-child(1) { animation-delay: .05s; } .status__col.reveal.in li:nth-child(2) { animation-delay: .10s; } .status__col.reveal.in li:nth-child(3) { animation-delay: .15s; } .status__col.reveal.in li:nth-child(4) { animation-delay: .20s; }
.status__col.reveal.in li:nth-child(5) { animation-delay: .25s; } .status__col.reveal.in li:nth-child(6) { animation-delay: .30s; } .status__col.reveal.in li:nth-child(7) { animation-delay: .35s; } .status__col.reveal.in li:nth-child(8) { animation-delay: .40s; }
.status__col.reveal.in li:nth-child(n+9) { animation-delay: .45s; }

/* ── Responsive for the new sections ─────────────────────── */
@media (max-width: 1000px) {
  .roles__tabs { grid-template-columns: repeat(2, 1fr); }
  .role-top { grid-template-columns: 1fr; }
  .caps { grid-template-columns: repeat(2, 1fr); }
  .status__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .role-tab__t { font-size: 20px; }
  .role-tab { padding: 12px 14px; }
  .caps { grid-template-columns: 1fr; }
  .sb-clock { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .role-panel.is-active, .role-panel.is-active .cap, .status__col.reveal.in li { animation: none !important; }
  .role-panel.is-active .flow li span { animation: none !important; color: var(--fg-2); border-color: rgba(205,170,99,.4); }
  .bos-flow__s { transition: none; }
}

/* ── Tour video (click to play; premium.js swaps in the player, sound on) ── */
.tour { text-align: center; }
.tour .lede { margin-left: auto; margin-right: auto; }
.tour__player {
  position: relative; margin: 0 auto; max-width: 1120px; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--line-2); background: var(--ink-2);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(205, 170, 99, 0.06);
}
.tour__start { position: absolute; inset: 0; display: block; color: inherit; cursor: pointer; }
.tour__start img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.4s var(--ease); }
.tour__start:hover img, .tour__start:focus-visible img { transform: scale(1.015); filter: brightness(0.85); }
.tour__player video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.tour__start::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 55% at 50% 50%, rgba(7, 8, 11, 0.35), rgba(7, 8, 11, 0.7));
}
.tour__start:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
/* The animated play button: a gold disc with rings pulsing out from it, and "Click to Play" under it. */
.tour__cta {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 18px; pointer-events: none;
}
.tour__play {
  position: relative; width: 96px; height: 96px; display: grid; place-items: center; padding-left: 5px;
  border-radius: 50%; background: var(--gold); color: #120d04;
  box-shadow: 0 0 0 8px rgba(205, 170, 99, 0.18), 0 22px 50px rgba(0, 0, 0, 0.55);
  animation: tourBeat 2.4s var(--ease) infinite; transition: transform 0.25s var(--ease), background 0.25s;
}
.tour__play::before, .tour__play::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold);
  animation: tourRing 2.4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
.tour__play::after { animation-delay: 1.2s; }
.tour__play svg { position: relative; }
@keyframes tourRing { from { transform: scale(1); opacity: 0.75; } to { transform: scale(2.1); opacity: 0; } }
@keyframes tourBeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.08); } 24% { transform: scale(1); } }
.tour__start:hover .tour__play, .tour__start:focus-visible .tour__play { animation: none; transform: scale(1.1); background: var(--gold-soft); }
.tour__label {
  padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(205, 170, 99, 0.45); background: rgba(7, 8, 11, 0.72);
  font: 600 13px var(--mono); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-soft);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.tour__len {
  position: absolute; z-index: 1; left: 16px; bottom: 14px; padding: 6px 10px; border-radius: 8px;
  font: 500 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); background: rgba(7, 8, 11, 0.72);
}
.tour__more { margin: 18px 0 0; color: var(--fg-2); font-size: 15px; }
.tour__full { color: var(--gold); text-decoration: none; }
.tour__full:hover { color: var(--gold-soft); }
@media (max-width: 760px) {
  .tour__player { border-radius: 12px; }
  .tour__cta { gap: 12px; }
  .tour__play { width: 64px; height: 64px; padding-left: 4px; }
  .tour__play svg { width: 24px; height: 24px; }
  .tour__label { padding: 6px 12px; font-size: 11px; letter-spacing: 0.2em; }
}
@media (max-width: 480px) { .tour__len { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .tour__play, .tour__play::before, .tour__play::after { animation: none; }
  .tour__play::before, .tour__play::after { opacity: 0; }
}

/* ── Founders / Sports Facility Hackers ──────────────────── */
.founders { padding-top: clamp(24px, 3vw, 44px); padding-bottom: clamp(24px, 3vw, 44px); }
.founders__card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(22px, 3.4vw, 52px); align-items: center;
  padding: clamp(24px, 3.4vw, 46px); border: 1px solid rgba(205,170,99,.38); border-radius: 16px; overflow: hidden;
  background: radial-gradient(90% 120% at 100% 0%, rgba(205,170,99,.16), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--ink-2);
  box-shadow: 0 0 0 1px rgba(205,170,99,.10), 0 50px 100px -60px rgba(205,170,99,.45);
}
.founders__card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.05) 50%, transparent 62%); transform: translateX(-120%); animation: foundersSheen 7s ease-in-out 1.2s infinite; }
@keyframes foundersSheen { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
.founders .h2 { margin-bottom: 12px; }
.founders .lede { margin-bottom: 22px; max-width: 58ch; }
.founders__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.founders__link { color: var(--gold-soft); font-size: 13.5px; text-decoration: underline; text-underline-offset: 4px; margin-left: 4px; }
.founders__link:hover { color: #fff; }
.founders__fine { margin: 16px 0 0; font-size: 12.5px; color: var(--fg-3); max-width: 62ch; }
.founders__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.founders__list li { display: grid; gap: 3px; padding: 15px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(8,9,12,.55); }
.founders__list b { font-family: var(--display); font-weight: 400; font-size: 21px; color: var(--fg); }
.founders__list span { font-size: 13.5px; line-height: 1.5; color: var(--fg-2); }
@media (max-width: 900px) { .founders__card { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .founders__card::before { animation: none; } }

.network-watch { color: var(--gold); text-decoration: none; font-weight: 600; }
.network-watch:hover { color: var(--gold-soft); }

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 760px) {
  :root { --pad-y: 44px; }
  .nav { top: 0; position: relative; }
  .bos-hero__h1 { font-size: clamp(44px, 14vw, 64px); }
  .hero__h1 { font-size: clamp(44px, 13vw, 60px); }
  .lede { font-size: 16px; }
}

/* ── Respect reduced motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .bos-hero__court * { stroke-dashoffset: 0 !important; }
  .bos-anim .bos-hero__l1, .bos-anim .bos-hero__l2, .bos-anim .bos-hero__l3 { opacity: 1; transform: none; filter: none; }
}
