@font-face { font-family: "Figtree"; src: url("bala-brand-kit/fonts/Figtree-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("bala-brand-kit/fonts/Figtree-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("bala-brand-kit/fonts/Figtree-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("bala-brand-kit/fonts/Figtree-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --white: #FFFFFF;
  --tile: #F5F5F7;
  --ink: #0B1B2B;
  --body: #6E6E73;
  --muted: #86868B;
  --line: #D2D2D7;
  --accent: #F59300;
  --accent-dark: #FFB01F;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--body);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* Header: slim, turns to frosted glass once you scroll */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 18px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.header.scrolled {
  padding: 10px 0;
  background: rgba(10, 12, 16, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 26px; width: auto; }
.header-nav { display: flex; gap: 32px; font-size: 0.8rem; font-weight: 500; letter-spacing: 0; }
.header-nav a { color: rgba(255, 255, 255, 0.8); transition: color 0.2s; }
.header-nav a:hover { color: #fff; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  --hero-h: clamp(560px, 100vh, 1000px);
  height: var(--hero-h);
  background: #000;
  border-radius: 0 0 32px 32px;
  color: #fff;
}
/* 16:9 stage that always covers the hero, pinned right, so hotspots stay on the body */
.stage {
  position: absolute; right: 0; top: 50%;
  width: max(125%, calc(var(--hero-h) * 16 / 9 * 1.25)); aspect-ratio: 16 / 9;
  transform: translateY(-44%);
}
.stage-img { width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: fade 1.6s 0.1s ease forwards; }
.stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 45%), linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 40%);
}
.spot {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 50%;
  opacity: 0; animation: pop 0.8s var(--d) cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.spot::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--accent-dark); box-shadow: 0 0 12px rgba(255, 176, 31, 0.8);
  animation: glow 2.6s calc(var(--d) + 0.8s) ease-in-out infinite;
}
.s-lg { --s: clamp(90px, 11vw, 160px); }
.s-md { --s: clamp(64px, 8vw, 118px); }
.s-sm { --s: clamp(44px, 5vw, 76px); }
.metric {
  position: absolute; left: var(--x); top: var(--y);
  font-family: var(--sans); font-weight: 400; font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1;
  color: rgba(255, 255, 255, 0.8); letter-spacing: -0.01em;
  opacity: 0; animation: fadeup 0.9s var(--d) ease forwards;
}
.metric small { display: block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.5); margin-bottom: 6px; }
.metric sup { font-size: 0.42em; font-weight: 600; margin-left: 3px; vertical-align: top; position: relative; top: 0.2em; color: rgba(255, 255, 255, 0.55); }
.hero-copy { position: absolute; left: 0; right: 0; bottom: 64px; z-index: 3; }
h1 {
  font-family: var(--sans);
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  font-weight: 600; line-height: 1.08; letter-spacing: -0.025em;
  color: #fff; max-width: 20ch;
  opacity: 0; animation: fadeup 1s 0.4s ease forwards;
}
h1 span { color: var(--accent-dark); }

@keyframes fade { to { opacity: 1; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 6px rgba(255, 176, 31, 0.5); } 50% { box-shadow: 0 0 18px rgba(255, 176, 31, 1); } }

/* Tiles (Apple-style: centred copy, pill buttons, big image) */
.tiles { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  position: relative; overflow: hidden; border-radius: 24px; text-align: center;
  display: flex; flex-direction: column; min-height: 640px;
}
.tile-light { background: #F5F5F7; }
.tile-tint { background: linear-gradient(180deg, #FBF3EA 0%, #F5F5F7 70%); }
.tile-dark { background: #000; color: #F5F5F7; }
.tile-copy { position: relative; z-index: 2; padding: 56px 32px 0; }
.eyebrow { font-size: 1rem; font-weight: 600; color: var(--accent); margin-bottom: 4px; letter-spacing: 0; }
.tile-dark .eyebrow { color: var(--accent-dark); }
.tile h2 {
  font-size: clamp(2.1rem, 3.6vw, 3.4rem); font-weight: 600; line-height: 1.07; letter-spacing: -0.03em;
  color: var(--ink); margin-bottom: 8px;
}
.tile-dark h2 { color: #F5F5F7; }
.tile-wide h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.tile-sub { font-size: clamp(1.1rem, 1.6vw, 1.45rem); line-height: 1.3; color: var(--ink); font-weight: 400; }
.tile-dark .tile-sub { color: #F5F5F7; }
.btns { display: flex; justify-content: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 980px; font: inherit; font-size: 1rem; font-weight: 500;
  cursor: pointer; border: 1px solid transparent; transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn-fill { background: var(--accent-dark); color: #000; }
.btn-fill:hover { background: #FFC24D; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.tile-dark .btn-line { border-color: var(--accent-dark); color: var(--accent-dark); }
.tile-dark .btn-line:hover { background: var(--accent-dark); color: #000; }
.btn:active { transform: scale(0.97); }

.detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease), opacity 0.6s var(--ease); opacity: 0; }
.detail > p { overflow: hidden; max-width: 560px; margin: 0 auto; font-size: 1rem; line-height: 1.6; color: var(--body); }
.tile-dark .detail > p { color: #A1A1A6; }
.tile.open .detail { grid-template-rows: 1fr; opacity: 1; }
.tile.open .detail > p { padding-top: 22px; }

.media { position: relative; margin-top: auto; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.tile:hover .media img { transform: scale(1.03); }
.media-photo { height: 420px; margin-top: 36px; }
#leagues .media img { object-position: 50% 12%; }
.tile-wide { min-height: 0; }
.media-pitch { aspect-ratio: 16 / 9; margin: 36px 28px 28px; border-radius: 16px; overflow: hidden; }
.media-pitch video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.tile-cta { min-height: 0; padding-bottom: 64px; }
.tile-cta .tile-copy { padding-top: 72px; }

/* iPad mockup: rotates between a landscape and a portrait chart */
.media-ipad {
  --iw: min(440px, 34vw);
  height: calc(var(--iw) + 110px); margin: auto 0; perspective: 2000px;
  display: flex; justify-content: center; align-items: center;
}
.ipad-rot { width: var(--iw); aspect-ratio: 4 / 3; transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1); }
.portrait .ipad-rot { transform: rotate(90deg); }
.ipad {
  position: relative; width: 100%; height: 100%; padding: 3.2%;
  background: linear-gradient(145deg, #3a3a3c, #1c1c1e 40%, #2c2c2e); border-radius: 7% / 9.3%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 40px 80px -20px rgba(0, 0, 0, 0.9), 0 0 120px -30px rgba(255, 176, 31, 0.25);
  transform: rotateX(8deg) rotateY(-6deg);
  animation: ipad-float 7s ease-in-out infinite;
}
.ipad-screen {
  position: relative; width: 100%; height: 100%; border-radius: 4.5% / 6%; overflow: hidden; background: #181818;
  opacity: 0; transform: scale(0.9); filter: blur(6px);
  transition: opacity 1.2s var(--ease) 0.3s, transform 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, filter 1.2s var(--ease) 0.3s, background 1s var(--ease);
}
.in .ipad-screen { opacity: 1; transform: none; filter: none; }
.portrait .ipad-screen { background: #0B1B2B; }
.scr { position: absolute; }
.tile:hover .media-ipad .scr-a { transform: none; }
.media-ipad .scr-a { inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.5s var(--ease) 0.7s; }
/* pre-rotated so it is upright once the device turns to portrait */
.media-ipad .scr-b {
  left: 50%; top: 50%; width: 75%; height: 133.34%; object-fit: cover; opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg); transition: opacity 0.5s var(--ease);
}
.tile:hover .media-ipad .scr-b { transform: translate(-50%, -50%) rotate(-90deg); }
.media-ipad.portrait .scr-a { opacity: 0; transition-delay: 0s; }
.media-ipad.portrait .scr-b { opacity: 1; transition-delay: 0.7s; }
.ipad-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.13) 48%, transparent 60%);
  transform: translateX(-120%); animation: ipad-sheen 6s 1.8s ease-in-out infinite;
}
.ipad-cam { position: absolute; top: 50%; left: 1.5%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #0a0a0a; box-shadow: 0 0 0 1px #333; }
@keyframes ipad-float {
  0%, 100% { transform: rotateX(8deg) rotateY(-6deg) translateY(0); }
  50% { transform: rotateX(4deg) rotateY(6deg) translateY(-10px); }
}
@keyframes ipad-sheen { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* Tracking overlay */
.trk {
  position: absolute; left: var(--x); top: var(--y); width: 30px; height: 12px; margin: -6px 0 0 -15px;
  border: 1.5px solid rgba(255, 255, 255, 0.75); border-radius: 50%;
  opacity: 0; transform: scale(0.4); transition: opacity 0.6s var(--ease) var(--d), transform 0.6s var(--ease) var(--d);
}
.trk-hi { border-color: var(--accent-dark); box-shadow: 0 0 12px rgba(255, 176, 31, 0.7); width: 40px; height: 16px; margin: -8px 0 0 -20px; }
.trk-tag {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -150%) translateY(-34px);
  background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; font-size: 0.8rem; font-weight: 600; padding: 5px 10px; border-radius: 8px; white-space: nowrap;
  opacity: 0; transition: opacity 0.6s var(--ease) 1.2s;
}
.trk-tag small { color: var(--accent-dark); margin-right: 6px; font-weight: 600; }
.in .trk { opacity: 1; transform: none; }
.in .trk-tag { opacity: 1; }

/* Footer */
.footer { background: #F5F5F7; margin-top: 12px; padding: 22px 0 24px; font-size: 0.75rem; line-height: 1.4; color: var(--body); }
.footer-ways { padding: 12px 0 14px; border-bottom: 1px solid var(--line); }
.footer-ways a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.footer-ways a:hover { color: #C77700; }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 36px; padding-top: 16px; }
.footer-links { display: flex; flex-wrap: wrap; }
.footer-links a { color: var(--ink); opacity: 0.8; }
.footer-links a + a::before { content: "|"; margin: 0 10px; color: var(--line); }
.footer-links a:hover { text-decoration: underline; opacity: 1; }
.footer-region { margin-left: auto; color: var(--ink); opacity: 0.8; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 860px) {
  .header-nav { gap: 22px; }
  .m-hide, .br-d { display: none; }
  .stage { right: auto; left: 50%; transform: translate(-76%, -50%); width: calc(var(--hero-h) * 16 / 9); }
  .metric small { font-size: 0.62rem; }
  .grid { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .media-photo { height: 340px; }
  .media-ipad { --iw: min(360px, 72vw); height: calc(var(--iw) + 70px); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  body { font-size: 17px; }
  .tiles { padding: 8px; gap: 8px; }
  .grid { gap: 8px; }
  .tile { border-radius: 20px; }
  .tile-copy { padding: 44px 20px 0; }
  .media-pitch { margin: 28px 12px 12px; }
  .trk { width: 16px; height: 7px; margin: -3.5px 0 0 -8px; }
  .trk-hi { width: 22px; height: 9px; margin: -4.5px 0 0 -11px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { order: -1; }
  .footer-region { margin-left: 0; }
  .header-nav a:not(:last-child) { display: none; }
  .hero-copy { bottom: 40px; }
  .hero { border-radius: 0 0 22px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .stage-img, .spot, .metric, h1 { opacity: 1; animation: none; }
  .spot::after { animation: none; }
  .header, .media img, .btn, .detail, .trk, .trk-tag { transition: none; }
  .ipad, .ipad-sheen { animation: none; }
  .ipad-screen { opacity: 1; transform: none; filter: none; }
  .ipad-rot, .scr { transition: none; }
}
