/* PADRYZE website. The look of a padel broadcast: condensed scoreboard type,
   court lines, the glass, and one real ball. No frameworks, no web fonts to wait for. */
:root {
  --night: #071827; --abyss: #040f1a; --deep: #0b2135; --court: #12406a; --court-2: #0e3456; --line: #1d3850; --frost: #F3F7F8; --slate: #A8BCCB; --mist: #6f879c;
  --aqua: #2CCDC3; --aqua-2: #7ff0e8; --indigo: #4A62E8; --indigo-2: #8C9CF5; --rec: #ff5a4a; --ball: #DDEE2C;
  /* Condensed sports type from the system: DIN on Apple, Bahnschrift on Windows, condensed Roboto on Android. */
  --display: "DIN Condensed", "Bahnschrift", "Avenir Next Condensed", "Roboto Condensed", "sans-serif-condensed", "Arial Narrow", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1); --wrap: 1240px; --r: 6px;
  --arabic: "Segoe UI", "SF Arabic", "Geeza Pro", "Noto Kufi Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
/* Nothing may make the page wider than the screen. */
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body { margin: 0; background: var(--night); color: var(--frost); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
/* Old browsers without overflow: clip; "hidden" would stop sticky sections (the 3D stories) from sticking. */
@supports not (overflow: clip) { body { overflow-x: hidden; } }
img, svg { max-width: 100%; }
a { color: var(--aqua); text-decoration: none; }
h1, h2, h3, .h1, .h2, .h3 { font-family: var(--display); font-stretch: 75%; font-weight: 700; line-height: .95; letter-spacing: .005em; text-transform: uppercase; margin: 0; }
p { margin: 0 0 1em; }
::selection { background: var(--ball); color: var(--night); }
:focus-visible { outline: 3px solid var(--ball); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 200; background: var(--ball); color: var(--night); padding: 10px 16px; font-weight: 700; }
.muted { color: var(--slate); }
[hidden] { display: none !important; }

/* ---------- Buttons: square-cut, uppercase, a fill that sweeps in on hover ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 17px 26px 15px; border-radius: var(--r); border: 0;
  background: var(--aqua); color: var(--night); font: 700 19px/1 var(--display); font-stretch: 75%; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .3s var(--ease), transform .2s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--frost); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.btn:hover::before { transform: scaleX(1); }
.btn:active { transform: scale(.98); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--frost); box-shadow: inset 0 0 0 2px rgba(243, 247, 248, .4); }
.btn-ghost:hover { color: var(--night); }
.btn-sm { padding: 12px 16px 10px; font-size: 16px; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .35s var(--ease), box-shadow .35s; }
.site-header.scrolled { background: rgba(7, 24, 39, .94); box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--frost); font: 700 26px/1 var(--display); font-stretch: 75%; letter-spacing: .08em; }
.nav { display: flex; gap: 2px; margin-inline-start: auto; }
.nav a { position: relative; color: var(--slate); font: 700 18px/1 var(--display); font-stretch: 75%; letter-spacing: .06em; text-transform: uppercase; padding: 12px 14px 10px; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; background: var(--ball); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--frost); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-toggle { display: none; margin-inline-start: auto; width: 46px; height: 46px; border-radius: var(--r); border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.menu-toggle span:not(.sr) { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--frost); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle span:nth-child(1) { top: 17px; } .menu-toggle span:nth-child(2) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }
.mobile-menu { display: grid; gap: 0; padding: 8px 20px 28px; background: var(--night); border-bottom: 1px solid var(--line); }
.mobile-menu a:not(.btn) { color: var(--frost); font: 700 34px/1 var(--display); font-stretch: 75%; text-transform: uppercase; padding: 16px 0 12px; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 20px; }
/* Language switch: EN · ES · عربي in the header, full names in the mobile menu. */
.langs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r); }
.langs a { color: var(--slate); font: 700 15px/1 var(--display); font-stretch: 75%; letter-spacing: .06em; padding: 7px 8px 5px; border-radius: 4px; transition: color .2s, background-color .2s; }
.langs a:lang(ar) { font-family: var(--arabic); font-stretch: normal; letter-spacing: 0; font-size: 14px; padding-top: 5px; }
.langs a:hover { color: var(--frost); }
.langs a[aria-current] { background: var(--frost); color: var(--night); }
.langs-mobile { margin-top: 18px; padding: 4px; border: 0; gap: 6px; }
.mobile-menu .langs-mobile a { font: 700 19px/1 var(--display); font-stretch: 75%; letter-spacing: .04em; text-transform: none; padding: 12px 14px 10px; border: 1px solid var(--line); border-radius: 4px; }
.mobile-menu .langs-mobile a:lang(ar) { font-family: var(--arabic); font-stretch: normal; letter-spacing: 0; padding-top: 10px; }
.mobile-menu .langs-mobile a[aria-current] { background: var(--frost); color: var(--night); border-color: var(--frost); }
@media (max-width: 880px) { .nav, .header-cta, .header-row > .langs { display: none; } .menu-toggle { display: block; } }

/* ---------- Sections. A white court line, with the centre service mark, divides them. ---------- */
.section { position: relative; padding: clamp(80px, 10vw, 140px) 0; }
.section.alt { background: var(--abyss); }
.section.light { background: var(--frost); color: var(--night); }
.section.light .muted { color: #4b5f71; }
.section.light .eyebrow { color: var(--indigo); }
.section + .section::before, .statement + .section::before, .ticker + .section::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 46px; translate: -1px 0; background: rgba(243, 247, 248, .28); }
.section.light::before { background: rgba(7, 24, 39, .2) !important; }
.cut-top { border-top: 2px solid rgba(243, 247, 248, .16); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1 var(--display); font-stretch: 75%; letter-spacing: .14em; text-transform: uppercase; color: var(--aqua); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ball); flex: none; }
.h1 { font-size: clamp(60px, 11vw, 168px); }
.h2 { font-size: clamp(46px, 6.6vw, 96px); }
.h3 { font-size: clamp(26px, 2.6vw, 36px); }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--slate); max-width: 640px; }
.section.light .lead { color: #3c5163; }
.accent, .grad { color: var(--aqua); }
.section.light .grad { color: var(--indigo); }
.outline { -webkit-text-stroke: 2px var(--frost); color: transparent; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.section-head { max-width: 900px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lead { margin-top: 22px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="left"] { transform: translateX(-36px); } .js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal="zoom"] { transform: scale(.96); }
/* On phones everything rises instead of sliding in from the side: a sideways start would widen the page. */
@media (max-width: 900px) { .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(30px); } .js [data-reveal].in { transform: none; } }
/* ---------- Each kind of section moves in its own way ---------- */
/* Headings wipe in like a line drawn across the court; centred ones open from the middle.
   A big outlined section number sits behind the others. */
main { counter-reset: sec; }
.section-head:not(.center) { position: relative; isolation: isolate; }
.section-head:not(.center)::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); position: absolute; z-index: -1; top: -.32em; inset-inline-end: 0;
  font: 700 clamp(96px, 15vw, 220px)/1 var(--display); font-stretch: 75%; color: transparent; -webkit-text-stroke: 1.5px rgba(243, 247, 248, .09); pointer-events: none; }
.section.light .section-head:not(.center)::before { -webkit-text-stroke-color: rgba(7, 24, 39, .08); }
.js .section-head[data-reveal] { opacity: 1; transform: none; }
.js .section-head[data-reveal] > * { clip-path: inset(-.2em 100% -.2em 0); transition: clip-path 1s var(--ease); }
[dir="rtl"].js .section-head[data-reveal] > *, [dir="rtl"] .js .section-head[data-reveal] > * { clip-path: inset(-.2em 0 -.2em 100%); }
.js .section-head.center[data-reveal] > * { clip-path: inset(-.2em 50% -.2em 50%); }
.js .section-head[data-reveal] > :nth-child(2) { transition-delay: .14s; }
.js .section-head[data-reveal] > :nth-child(3) { transition-delay: .28s; }
.js .section-head[data-reveal].in > * { clip-path: inset(-.2em -.2em -.2em -.2em); }
.js .section-head[data-reveal]::before { opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease) .2s, transform 1.4s var(--ease) .2s; }
.js .section-head[data-reveal].in::before { opacity: 1; transform: none; }

/* The numbers flip down one by one, like a stadium scoreboard. */
.js .stats[data-reveal] { opacity: 1; transform: none; perspective: 1000px; }
.js .stats[data-reveal] .stat { opacity: 0; transform: rotateX(-95deg); transform-origin: top center; backface-visibility: hidden;
  transition: transform .9s cubic-bezier(.2, .9, .25, 1.18), opacity .35s; transition-delay: calc(var(--i, 0) * .1s); }
.js .stats[data-reveal].in .stat { opacity: 1; transform: none; }

/* Cards pop up in a wave; the aqua bar sweeps across the top once they land. */
.js .card[data-reveal] { transform: translateY(46px) scale(.94) rotate(-1.5deg); transition-duration: .9s; }
.js .card[data-reveal].in { transform: none; }
.js .card[data-reveal].in::after { animation: bar-sweep 1.2s var(--ease) calc(var(--d, 0s) + .45s) backwards; }
@keyframes bar-sweep { 0% { transform: scaleX(0); transform-origin: left; } 45% { transform: scaleX(1); transform-origin: left; } 55% { transform: scaleX(1); transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
/* On hover, court-line corners frame the card. */
.card::before { content: ""; position: absolute; inset: 10px; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease), inset .35s var(--ease);
  background: linear-gradient(var(--ball), var(--ball)) left top / 16px 2px, linear-gradient(var(--ball), var(--ball)) left top / 2px 16px,
    linear-gradient(var(--ball), var(--ball)) right top / 16px 2px, linear-gradient(var(--ball), var(--ball)) right top / 2px 16px,
    linear-gradient(var(--ball), var(--ball)) left bottom / 16px 2px, linear-gradient(var(--ball), var(--ball)) left bottom / 2px 16px,
    linear-gradient(var(--ball), var(--ball)) right bottom / 16px 2px, linear-gradient(var(--ball), var(--ball)) right bottom / 2px 16px; background-repeat: no-repeat; }
.card:hover::before { opacity: 1; inset: 6px; }

/* Steps: the court line draws across, then each number lights up as it lands. */
.steps { position: relative; }
.steps::after { content: ""; position: absolute; top: -2px; inset-inline: 0; height: 2px; background: linear-gradient(90deg, var(--aqua), var(--ball)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
[dir="rtl"] .steps::after { transform-origin: right; }
.js .steps[data-reveal] { opacity: 1; transform: none; }
.js .steps.in::after { transform: scaleX(1); }
.js .step[data-reveal].in .num { animation: num-fill 1.4s var(--ease) calc(var(--d, 0s) + .5s) backwards; }
@keyframes num-fill { 0% { color: transparent; transform: scale(.8); } 40% { color: var(--aqua); transform: scale(1.06); } 100% { color: transparent; transform: none; } }

/* Pictures open like a camera shutter, then settle. */
.js .visual[data-reveal] { opacity: 1; transform: none; clip-path: inset(50% 0 50% 0); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1); transition-delay: var(--d, 0s); }
.js .visual[data-reveal].in { clip-path: inset(-30px -30px -30px -30px); }
.js .visual[data-reveal] svg { transform: scale(1.18); transition: transform 1.6s var(--ease) .2s; }
.js .visual[data-reveal].in svg { transform: none; }
.js .demo[data-reveal] { opacity: 1; transform: none; }
.js .demo[data-reveal] .demo-media { clip-path: inset(50% 0 50% 0); transition: clip-path 1s cubic-bezier(.7, 0, .2, 1); transition-delay: var(--d, 0s); }
.js .demo[data-reveal].in .demo-media { clip-path: inset(-20px -20px -20px -20px); }
.js .demo[data-reveal] figcaption { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0s) + .45s); }
.js .demo[data-reveal].in figcaption { opacity: 1; transform: none; }
.js .demo[data-reveal] .demo-num { transform: scale(0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--d, 0s) + .6s); }
.js .demo[data-reveal].in .demo-num { transform: none; }

/* The big statement snaps into focus. */
.js .statement [data-reveal] { opacity: 1; transform: none; }
.js .statement [data-reveal] .h1 { opacity: 0; letter-spacing: .3em; filter: blur(14px); transition: opacity 1s var(--ease), letter-spacing 1.4s var(--ease), filter 1.1s var(--ease); }
.js .statement [data-reveal].in .h1 { opacity: 1; letter-spacing: .005em; filter: none; }
.js .statement [data-reveal] .lead, .js .statement [data-reveal] .eyebrow { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease) .7s, transform .8s var(--ease) .7s; }
.js .statement [data-reveal].in .lead, .js .statement [data-reveal].in .eyebrow { opacity: 1; transform: none; }

/* Questions cascade in, one after another. */
.js .faq[data-reveal] { opacity: 1; transform: none; }
.js .faq[data-reveal] details { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .3s, border-color .3s; transition-delay: calc(var(--i, 0) * .08s); }
.js .faq[data-reveal].in details { opacity: 1; transform: none; }

/* The call to action bursts open from a point, like a ball's impact. */
.js .cta-band[data-reveal] { opacity: 1; transform: none; clip-path: circle(0% at 82% 50%); transition: clip-path 1.2s cubic-bezier(.7, 0, .2, 1); }
[dir="rtl"].js .cta-band[data-reveal] { clip-path: circle(0% at 18% 50%); }
.js .cta-band[data-reveal].in { clip-path: circle(150% at 82% 50%); }
[dir="rtl"].js .cta-band[data-reveal].in { clip-path: circle(150% at 18% 50%); }
.js .cta-band[data-reveal] > * { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease) .55s, transform .7s var(--ease) .55s; }
.js .cta-band[data-reveal] > :nth-child(2) { transition-delay: .7s; }
.js .cta-band[data-reveal].in > * { opacity: 1; transform: none; }

/* Timeline: the line fills as you scroll, and each step lights up when reached. */
.timeline::after { content: ""; position: absolute; inset-inline-start: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--aqua), var(--ball));
  transform: scaleY(var(--p, 0)); transform-origin: top; }
.tl .dot { transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease); }
.tl.lit .dot { background: var(--aqua); color: var(--night); box-shadow: 0 0 0 6px rgba(44, 205, 195, .18); transform: scale(1.06); }
.section.alt .tl.lit .dot { background: var(--aqua); }

/* Values tilt in like cards turned over. */
.js .value[data-reveal] { transform: perspective(900px) rotateY(-24deg) translateY(30px); transform-origin: left center; transition-duration: 1s; }
.js .value[data-reveal].in { transform: none; }

/* Darker sections carry a faint court-surface stripe. */
.section.alt { background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .012) 0 60px, transparent 60px 120px); }

/* The hero's court drifts as you scroll (set by site.js). */
.hero::before { translate: 0 var(--par, 0px); }
.hero .stage { translate: 0 calc(var(--par, 0px) * -.35); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 90px; overflow: hidden; isolation: isolate; }
/* The court, drawn to scale and seen at an angle, behind everything. */
.hero::before { content: ""; position: absolute; z-index: -1; width: min(70vw, 900px); aspect-ratio: 208 / 408; right: -8vw; top: 50%; translate: 0 -50%;
  background: url("/assets/court-lines.svg") center / contain no-repeat; opacity: .07; transform: perspective(900px) rotateX(58deg) rotateZ(-24deg); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero h1 { font-size: clamp(64px, 8.6vw, 136px); line-height: .86; white-space: nowrap; }
.hero h1 .line { display: block; overflow: hidden; padding-top: .04em; }
.hero h1 .line > span { display: inline-block; animation: word-up .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes word-up { from { transform: translateY(105%); } to { transform: none; } }
.hero .lead { margin: 30px 0 36px; animation: fade-in 1s .5s var(--ease) both; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; animation: fade-in 1s .65s var(--ease) both; }
.hero .eyebrow { animation: fade-in .8s .1s var(--ease) both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero-note { margin-top: 26px; font: 700 15px/1.3 var(--display); font-stretch: 75%; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); animation: fade-in 1s .8s var(--ease) both; }
.scroll-cue { display: none; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 110px; } }

/* The broadcast frame: the court from the camera's view, with a live HUD. */
.stage { position: relative; aspect-ratio: 16 / 10.5; border-radius: 4px; overflow: hidden; isolation: isolate; background: #061626;
  box-shadow: 0 0 0 1px rgba(243, 247, 248, .14), 14px 14px 0 0 var(--court-2); animation: fade-in 1s .3s var(--ease) both; }
.stage .court { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage .glass { display: none; }
.hud { position: absolute; inset: 14px 16px auto; display: flex; align-items: center; justify-content: space-between; font: 700 15px/1 var(--display); font-stretch: 75%; letter-spacing: .12em; text-transform: uppercase; color: rgba(243, 247, 248, .9); }
.hud .rec { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 5px; background: var(--rec); color: #fff; }
.hud .rec i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
@media (max-width: 560px) { .hud { font-size: 12px; inset: 10px 10px auto; } .hud > span:nth-child(2) { display: none; } .saved { bottom: 56px; font-size: 14px; } }
.hud .clock { font-variant-numeric: tabular-nums; font-size: 18px; background: rgba(4, 15, 26, .8); padding: 6px 10px 5px; }
.saved { position: absolute; left: 50%; bottom: 70px; translate: -50% 0; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 9px; background: var(--frost); color: var(--night);
  font: 700 17px/1 var(--display); font-stretch: 75%; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; opacity: 0; animation: saved 7s 2.4s var(--ease) infinite; }
.saved b { color: var(--rec); }
@keyframes saved { 0%, 8% { opacity: 0; transform: translateY(12px); } 14%, 40% { opacity: 1; transform: none; } 48%, 100% { opacity: 0; transform: translateY(-8px); } }
.scrub { position: absolute; left: 16px; right: 16px; bottom: 18px; height: 30px; display: flex; align-items: center; gap: 12px; color: rgba(243, 247, 248, .8); font: 700 14px/1 var(--display); font-stretch: 75%; letter-spacing: .1em; text-transform: uppercase; }
.scrub .bar { position: relative; flex: 1; height: 4px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.scrub .bar::before { content: ""; position: absolute; inset: 0; transform-origin: left; background: var(--aqua); animation: scrub 7s linear infinite; }
@keyframes scrub { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.court .ball-trail { stroke-dasharray: 900; stroke-dashoffset: 900; animation: trail 3.5s var(--ease) infinite; }
@keyframes trail { 0% { stroke-dashoffset: 900; opacity: 0; } 10% { opacity: 1; } 60% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.court .bounce { transform-box: fill-box; transform-origin: center; animation: ring 3.5s var(--ease) infinite; }
@keyframes ring { 0%, 55% { opacity: 0; transform: scale(.2); } 62% { opacity: .9; } 100% { opacity: 0; transform: scale(2.6); } }

/* ---------- Ticker: cities where padel is booming ---------- */
.ticker { border-block: 2px solid rgba(243, 247, 248, .12); background: var(--court); overflow: hidden; padding: 18px 0 14px; }
.ticker-track { display: flex; gap: 40px; width: max-content; animation: ticker 45s linear infinite; }
.ticker span { font: 700 clamp(26px, 3vw, 40px)/1 var(--display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .04em; color: var(--frost); white-space: nowrap; display: inline-flex; align-items: center; gap: 40px; }
.ticker span::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--ball); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Numbers band: a scoreboard ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.stat { background: #020a12; padding: 26px 22px 24px; border-top: 4px solid var(--aqua); }
.stat:nth-child(even) { border-top-color: var(--ball); }
.stat b { display: block; font: 700 clamp(64px, 7vw, 104px)/.9 var(--display); font-stretch: 75%; color: var(--frost); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 14px; color: var(--slate); font-size: 15px; line-height: 1.4; }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:last-child { grid-column: 1 / -1; } }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.card { position: relative; padding: 34px 30px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; transition: background-color .35s var(--ease); }
.card::after { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: var(--aqua); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.card:hover { background: rgba(243, 247, 248, .035); }
.card:hover::after { transform: scaleX(1); }
.card h3 { font-size: 32px; margin: 22px 0 12px; }
.card p { color: var(--slate); margin: 0; font-size: 16px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--court); color: var(--frost); }
.icon svg { width: 24px; height: 24px; }
.section.light .card { background: #fff; }
.section.light .card p { color: #4b5f71; }
.tag { display: inline-block; font: 700 15px/1 var(--display); font-stretch: 75%; letter-spacing: .12em; text-transform: uppercase; padding: 7px 10px 6px; background: var(--ball); color: var(--night); margin-bottom: 16px; }

/* Two audiences: big panels, each with its half of the court */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.panel { position: relative; padding: clamp(32px, 4vw, 56px); overflow: hidden; min-height: 480px; display: flex; flex-direction: column; isolation: isolate; }
.panel.players { background: var(--court); }
.panel.clubs { background: #1c2f86; }
.panel::after { content: ""; position: absolute; z-index: -1; width: 320px; aspect-ratio: 208 / 408; right: -60px; bottom: -200px; background: url("/assets/court-lines.svg") center / contain no-repeat; opacity: .14; transform: rotate(-12deg); transition: transform .8s var(--ease); }
.panel:hover::after { transform: rotate(-6deg) translateY(-20px); }
.panel h2, .panel h3 { font-size: clamp(40px, 4.4vw, 64px); margin-bottom: 16px; }
.panel .muted, .panel .lead { color: rgba(243, 247, 248, .78); }
.panel ul { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 12px; }
.panel li { display: flex; gap: 12px; align-items: flex-start; color: rgba(243, 247, 248, .86); }
.panel li::before { content: ""; flex: none; width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; background: var(--ball); }
.panel .btn { margin-top: auto; align-self: flex-start; }
.panel .tag { align-self: flex-start; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } .panel { min-height: 0; } }

/* Steps: huge outlined numerals */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid rgba(243, 247, 248, .2); }
.step { position: relative; padding: 30px 30px 10px 0; }
.step + .step { padding-left: 30px; border-left: 1px solid var(--line); }
.step .num { font: 700 120px/.8 var(--display); font-stretch: 75%; color: transparent; -webkit-text-stroke: 2px var(--aqua); margin-bottom: 22px; transition: color .3s; }
.step:hover .num { color: var(--aqua); }
.step h3 { font-size: 36px; margin-bottom: 10px; }
.step p { color: var(--slate); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* Statement band */
.statement { position: relative; text-align: center; padding: clamp(100px, 14vw, 190px) 0; background: var(--court); overflow: hidden; isolation: isolate; }
.statement::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/assets/court-lines.svg") center / auto 170% no-repeat; opacity: .1; transform: rotate(90deg); }
.statement .h1 { font-size: clamp(60px, 10vw, 170px); line-height: .88; }
.statement .grad { color: var(--ball); }
.statement p { margin: 26px auto 0; max-width: 620px; }
.statement .lead { color: rgba(243, 247, 248, .8); }

/* Phone mock: the players' page */
.phone { width: min(330px, 86vw); margin-inline: auto; aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px; background: #1a2836; box-shadow: 0 0 0 2px #2b3c4d, 18px 18px 0 0 var(--court-2); }
.phone .screen { height: 100%; border-radius: 34px; overflow: hidden; background: #F3F7F8; color: #071827; padding: 26px 18px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.phone .screen small { font: 700 13px/1 var(--display); font-stretch: 75%; letter-spacing: .14em; color: #4A62E8; }
.phone .screen h4 { font: 700 34px/.95 var(--display); font-stretch: 75%; text-transform: uppercase; margin: 0 0 4px; }
.phone .clip { background: #fff; border-radius: 12px; padding: 12px 12px 12px 16px; border: 1px solid #d7e2ea; position: relative; overflow: hidden; }
.phone .clip::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--aqua); }
.phone .clip b { display: block; font: 700 18px/1.1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.phone .clip span { color: #586B7D; font-size: 11px; }
.phone .row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.phone .row i { font-style: normal; text-align: center; padding: 8px 0; border-radius: 8px; font-weight: 700; font-size: 11px; background: #071827; color: #fff; }
.phone .row i + i { background: transparent; color: #071827; box-shadow: inset 0 0 0 1px #8193A3; }

/* Feature rows (service page) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; padding: clamp(50px, 7vw, 90px) 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature.flip > :first-child { order: 2; }
.feature .h2 { font-size: clamp(44px, 5vw, 76px); margin-bottom: 18px; }
.feature ul { padding: 0; list-style: none; display: grid; gap: 10px; margin: 22px 0 0; }
.feature li { padding-inline-start: 26px; position: relative; color: var(--slate); }
.feature li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--ball); }
.visual { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; background: var(--court); box-shadow: 14px 14px 0 0 var(--court-2); isolation: isolate; }
.visual::before { content: ""; position: absolute; inset: -10%; z-index: -1; background: url("/assets/court-lines.svg") center / auto 140% no-repeat; opacity: .08; transform: rotate(90deg); }
.visual svg { width: 72%; height: auto; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature.flip > :first-child { order: 0; } .visual, .stage { box-shadow: 0 0 0 1px rgba(243, 247, 248, .14), 8px 8px 0 0 var(--court-2); } }

/* FAQ */
.faq { max-width: 900px; margin-inline: auto; display: grid; gap: 0; border-top: 2px solid var(--night); }
.faq details { border-bottom: 1px solid #c9d6e0; }
.faq summary { cursor: pointer; list-style: none; padding: 24px 4px 22px; font: 700 26px/1.1 var(--display); font-stretch: 75%; text-transform: uppercase; display: flex; justify-content: space-between; gap: 20px; align-items: center; transition: color .2s; }
.faq summary:hover { color: var(--indigo); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; display: grid; place-items: center; background: var(--night); color: var(--frost); font: 400 24px/1 var(--sans); transition: transform .3s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--indigo); }
.faq details p { padding: 0 4px 26px; margin: 0; color: #3c5163; max-width: 760px; }

/* Global call to action */
.cta-band { position: relative; padding: clamp(44px, 6vw, 84px); overflow: hidden; isolation: isolate; background: var(--aqua); color: var(--night);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.cta-band::before { content: ""; position: absolute; z-index: -1; width: 380px; aspect-ratio: 208 / 408; right: -40px; top: -120px; background: url("/assets/court-lines.svg") center / contain no-repeat; filter: invert(1); opacity: .08; transform: rotate(28deg); }
.cta-band .h2 { font-size: clamp(48px, 6vw, 92px); }
.cta-band .eyebrow { color: var(--night); }
.cta-band .eyebrow::before { background: var(--night); }
.cta-band .lead { color: rgba(7, 24, 39, .8); }
.cta-band .actions { display: grid; gap: 12px; justify-items: start; }
.cta-band .btn { background: var(--night); color: var(--frost); }
.cta-band .btn:hover { color: var(--night); }
.cta-band .btn-ghost { background: transparent; color: var(--night); box-shadow: inset 0 0 0 2px var(--night); }
.cta-band .btn-ghost::before { background: var(--night); }
.cta-band .btn-ghost:hover { color: var(--frost); }
@media (max-width: 900px) { .cta-band { grid-template-columns: 1fr; } }

/* Page hero (inner pages) */
.page-hero { position: relative; padding: 160px 0 80px; overflow: hidden; isolation: isolate; border-bottom: 2px solid rgba(243, 247, 248, .12); }
.page-hero::before { content: ""; position: absolute; z-index: -1; width: min(52vw, 620px); aspect-ratio: 208 / 408; right: -4vw; top: 40%; translate: 0 -50%;
  background: url("/assets/court-lines.svg") center / contain no-repeat; opacity: .07; transform: perspective(900px) rotateX(58deg) rotateZ(-24deg); }
.page-hero h1 { font-size: clamp(64px, 9.5vw, 148px); line-height: .88; max-width: 1100px; }
.page-hero .lead { margin-top: 28px; }
.crumbs { font: 700 15px/1 var(--display); font-stretch: 75%; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); margin-bottom: 26px; display: flex; gap: 10px; }
.crumbs a { color: var(--slate); } .crumbs a:hover { color: var(--ball); }

/* Timeline (how it works) */
.timeline { position: relative; display: grid; gap: 0; max-width: 900px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 27px; top: 10px; bottom: 10px; width: 2px; background: rgba(243, 247, 248, .2); }
.tl { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 26px; padding: 24px 0; }
.tl .dot { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--night); border: 2px solid var(--aqua); font: 700 28px/1 var(--display); font-stretch: 75%; color: var(--aqua); z-index: 1; transition: background-color .3s, color .3s; }
.tl:hover .dot { background: var(--aqua); color: var(--night); }
.section.alt .tl .dot { background: var(--abyss); }
.section.alt .tl:hover .dot { background: var(--aqua); }
.tl h3 { font-size: 34px; margin: 10px 0 8px; }
.tl p { color: var(--slate); margin: 0; }
.tl .who { font: 700 15px/1 var(--display); font-stretch: 75%; letter-spacing: .14em; text-transform: uppercase; color: var(--ball); }

/* Values (about) */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.value { padding: 34px 30px; background: var(--deep); border-top: 4px solid var(--aqua); }
.value:nth-child(2) { border-top-color: var(--ball); } .value:nth-child(3) { border-top-color: var(--indigo-2); }
.value h3 { font-size: 46px; margin-bottom: 10px; }
.value blockquote { margin: 18px 0 0; color: var(--frost); font: 700 22px/1.15 var(--display); font-stretch: 75%; text-transform: uppercase; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr; } }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { padding: clamp(28px, 4vw, 48px); background: var(--deep); border-top: 4px solid var(--aqua); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }
.field label { display: block; font: 700 16px/1.2 var(--display); font-stretch: 75%; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; color: var(--frost); }
.field label .opt { color: var(--mist); font-weight: 400; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 13px; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 14px; border-radius: 4px; border: 1px solid #2a4660; background: var(--night); color: var(--frost); font: inherit; font-size: 16px;
  transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #3d6383; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(44, 205, 195, .25); }
.field select option { background: var(--night); }
.consent-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--slate); }
.consent-check input { width: 20px; height: 20px; accent-color: var(--aqua); margin-top: 2px; flex: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-status { margin: 0; font-weight: 700; }
.form-status.ok { color: var(--aqua); } .form-status.err { color: #ff8f7a; }
.form-done { text-align: center; padding: 40px 10px; animation: fade-in .8s var(--ease) both; }
.form-done .big-check { width: 86px; height: 86px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ball); color: var(--night); }
.contact-grid .h2 + .lead { margin-top: 22px; }
.contact-points { display: grid; gap: 18px; margin-top: 34px; }
.contact-points div { display: flex; gap: 16px; align-items: flex-start; }
.contact-points .icon { width: 46px; height: 46px; flex: none; }
.contact-points p { margin: 0; }
.contact-points b { display: block; font: 700 22px/1.1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.contact-points span { color: var(--slate); font-size: 15px; }

/* Prose (privacy) */
.prose { max-width: 780px; }
.prose h2 { font-size: 38px; margin: 48px 0 14px; }
.prose p, .prose li { color: var(--slate); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.site-footer { background: var(--abyss); border-top: 2px solid rgba(243, 247, 248, .12); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h2 { font: 700 17px/1 var(--display); font-stretch: 75%; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); margin-bottom: 18px; }
.footer-grid nav { display: grid; gap: 10px; align-content: start; }
.footer-grid nav a { color: var(--slate); transition: color .2s; justify-self: start; }
.footer-grid nav a:hover { color: var(--ball); }
.footer-brand .slogan { font: 700 34px/1 var(--display); font-stretch: 75%; text-transform: uppercase; margin: 20px 0 12px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--mist); font-size: 14px; }
.footer-base a { color: var(--slate); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Cookie consent */
.consent { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 90; max-width: 560px; margin-inline: auto; padding: 18px 20px; background: var(--deep);
  border-top: 4px solid var(--aqua); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; animation: fade-in .6s var(--ease) both; }
.consent p { margin: 0; font-size: 14px; color: var(--slate); flex: 1 1 260px; }
.consent-actions { display: flex; gap: 8px; }

/* ---------- The ball: rolls down the side of the page as you scroll, bouncing off the glass ---------- */
.scroll-ball { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; will-change: transform; }
.scroll-ball .squash { width: var(--size, 34px); height: var(--size, 34px); transform-origin: center; }
.scroll-ball img { display: block; width: 100%; height: 100%; }
.scroll-ball .shadow { position: absolute; left: 12%; right: 12%; bottom: -8px; height: 6px; border-radius: 50%; background: rgba(0, 0, 0, .45); filter: blur(3px); }

/* ---------- Arabic: right to left, Arabic fonts, no letter spacing (it breaks the joined script) ---------- */
:root:lang(ar) { --display: var(--arabic); --sans: var(--arabic); }
:lang(ar) body, :lang(ar) body * { letter-spacing: 0 !important; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) .h1, :lang(ar) .h2, :lang(ar) .h3, :lang(ar) .btn, :lang(ar) .nav a, :lang(ar) .eyebrow, :lang(ar) .tag { font-stretch: normal; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) .h1, :lang(ar) .h2, :lang(ar) .h3 { line-height: 1.22; font-weight: 700; }
:lang(ar) .hero h1, :lang(ar) .page-hero h1, :lang(ar) .statement .h1 { line-height: 1.15; }
:lang(ar) .hero h1 { font-size: clamp(56px, 7.4vw, 116px); }
:lang(ar) .page-hero h1 { font-size: clamp(48px, 7vw, 108px); }
:lang(ar) .statement .h1 { font-size: clamp(48px, 7.6vw, 128px); }
:lang(ar) .h2 { font-size: clamp(38px, 5.2vw, 76px); }
:lang(ar) .lead, :lang(ar) p { line-height: 1.75; }
[dir="rtl"] .btn::before, [dir="rtl"] .nav a::after, [dir="rtl"] .card::after { transform-origin: right; }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .stage, [dir="rtl"] .visual { box-shadow: 0 0 0 1px rgba(243, 247, 248, .14), -14px 14px 0 0 var(--court-2); }
[dir="rtl"] .visual { box-shadow: -14px 14px 0 0 var(--court-2); }
[dir="rtl"] .phone { box-shadow: 0 0 0 2px #2b3c4d, -18px 18px 0 0 var(--court-2); }
[dir="rtl"] .hero::before, [dir="rtl"] .page-hero::before { right: auto; left: -8vw; transform: perspective(900px) rotateX(58deg) rotateZ(24deg); }
[dir="rtl"] .panel::after { right: auto; left: -60px; transform: rotate(12deg); }
[dir="rtl"] .cta-band::before { right: auto; left: -40px; transform: rotate(-28deg); }
/* The ticker and video timelines keep running left to right. */
.ticker-track { direction: ltr; }
[dir="rtl"] .stage .hud, [dir="rtl"] .stage .scrub { direction: rtl; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .section-head[data-reveal] > *, .js .visual[data-reveal], .js .demo .demo-media, .js .cta-band[data-reveal] { clip-path: none !important; }
  .js .stats .stat, .js .faq details, .js .demo figcaption, .js .demo .demo-num, .js .statement .h1, .js .statement .lead, .js .statement .eyebrow, .js .cta-band > *, .js .value[data-reveal], .js .card[data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; letter-spacing: inherit; }
  .hero::before, .hero .stage { translate: none !important; }
  .timeline::after { transform: none; }
}

/* How it works: the product in four animated steps (swap an <img> for a real photo or video any time). */
.demo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.demo { margin: 0; }
.demo-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--court); box-shadow: 0 0 0 1px rgba(243, 247, 248, .12), 10px 10px 0 0 var(--court-2); }
.demo-media img, .demo-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 4px; align-items: baseline; margin-top: 20px; }
.demo figcaption b { font: 700 28px/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.demo figcaption span:last-child { grid-column: 2; color: var(--slate); font-size: 15px; line-height: 1.5; }
.demo-num { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ball); color: var(--night); font: 700 18px/1 var(--display); }
.demo-club { margin-top: 34px; max-width: 520px; }
[dir="rtl"] .demo-media { box-shadow: 0 0 0 1px rgba(243, 247, 248, .12), -10px 10px 0 0 var(--court-2); }
:lang(ar) .demo figcaption b { font-stretch: normal; font-size: 24px; }
@media (max-width: 1000px) { .demo-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 18px; } }
@media (max-width: 600px) { .demo-grid { grid-template-columns: 1fr; } }

/* Contact form: a message under each field that needs fixing, and the message counter. */
.field-error { margin: 6px 0 0; font-size: 13px; color: #ff8f7a; min-height: 0; }
.field-error:empty { display: none; }
.field [aria-invalid="true"] { border-color: #ff8f7a; box-shadow: 0 0 0 3px rgba(255, 143, 122, .18); }
.field-count { float: inline-end; font: 400 12px/1.6 var(--sans); color: var(--mist); letter-spacing: 0; text-transform: none; }
.field-count.near { color: var(--ball); }
.consent-check .field-error { flex-basis: 100%; }
.consent-check { flex-wrap: wrap; }

/* Decorative frames clip their overflow without becoming scrollable (find-in-page can't shift them). */
.cta-band, .panel, .statement, .visual, .hero, .page-hero, .stage, .demo-media, .card { overflow: clip; }

/* ---------- Home page: the 3D court behind the page (court3d.js) ----------
   The canvas sits behind everything; sections turn partly see-through so the
   court shows between them while the camera flies round it as you scroll.
   Without the script (or before it loads) the page keeps its usual look. */
.court3d { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; display: block; }
.has-court3d .page-01-home .hero { background: linear-gradient(90deg, rgba(5, 18, 30, .94) 0%, rgba(5, 18, 30, .78) 34%, rgba(5, 18, 30, .2) 62%, rgba(5, 18, 30, 0) 80%); }
[dir="rtl"].has-court3d .page-01-home .hero { background: linear-gradient(270deg, rgba(5, 18, 30, .94) 0%, rgba(5, 18, 30, .78) 34%, rgba(5, 18, 30, .2) 62%, rgba(5, 18, 30, 0) 80%); }
.has-court3d .page-01-home .hero::before, .has-court3d .page-01-home .hero .stage { display: none; }
.has-court3d .page-01-home .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
/* Text over the court: solid enough to read, with the court glimpsed through. No blur:
   blurring a moving picture costs every frame. */
.has-court3d .page-01-home .section:not(.light) { background-color: rgba(6, 20, 33, .84); }
.has-court3d .page-01-home .section.alt { background-color: rgba(4, 15, 26, .88); }
.has-court3d .page-01-home .hero + .ticker + .section { background-color: rgba(6, 20, 33, .7); }
.has-court3d .page-01-home .statement { background: linear-gradient(180deg, rgba(6, 20, 33, .55), rgba(18, 64, 106, .5) 50%, rgba(6, 20, 33, .55)); }
.has-court3d .page-01-home .statement::before { display: none; }
.has-court3d .page-01-home .ticker { background: #12406a; }
.has-court3d .page-01-home .site-footer { background-color: var(--abyss); }
.has-court3d .page-01-home .card { background: rgba(7, 24, 39, .55); }
.has-court3d .page-01-home .hero h1, .has-court3d .page-01-home .hero .lead, .has-court3d .page-01-home .hero .eyebrow, .has-court3d .page-01-home .hero-note,
.has-court3d .page-01-home .statement .h1, .has-court3d .page-01-home .statement .lead, .has-court3d .page-01-home .statement .eyebrow { text-shadow: 0 2px 18px rgba(3, 12, 21, .85), 0 1px 3px rgba(3, 12, 21, .9); }
.has-court3d .page-01-home .hero .lead { color: #E6EEF3; }
@media (max-width: 960px) {
  .has-court3d .page-01-home .hero { background: linear-gradient(180deg, rgba(5, 18, 30, .35) 0%, rgba(5, 18, 30, .85) 45%, rgba(5, 18, 30, .95) 100%); }
  .has-court3d .page-01-home .hero-grid { grid-template-columns: 1fr; }
}/* The camera's name, like a broadcast feed, cut in when the shot changes. */
.court3d-tag { position: fixed; z-index: 30; inset-inline-start: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 9px; pointer-events: none;
  padding: 7px 12px 5px; background: rgba(4, 15, 26, .9); border: 1px solid rgba(243, 247, 248, .16); border-radius: 4px; 
  font: 700 14px/1 var(--display); font-stretch: 75%; letter-spacing: .1em; text-transform: uppercase; color: var(--frost); }
.court3d-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 3px rgba(255, 90, 74, .25); animation: rec-blink 1.6s steps(1) infinite; }
.court3d-tag.cut span { animation: tag-cut .5s var(--ease); }
@keyframes tag-cut { 0% { opacity: 0; transform: translateY(6px); } 100% { opacity: 1; transform: none; } }
@keyframes rec-blink { 50% { opacity: .25; } }
:lang(ar) .court3d-tag { font-stretch: normal; letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) { .court3d-tag i, .court3d-tag.cut span { animation: none; } }
@media (max-width: 600px) { .court3d-tag { font-size: 12px; inset-inline-start: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); } }
/* ---------- 3D scroll stories (court3d.js): pictures only, held on screen while
   the section scrolls past; the words come after. ---------- */
.story3d { position: relative; height: 430vh; background: #04101c; }
.story3d-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.story3d-stage canvas { display: block; width: 100%; height: 100%; }
.story3d-progress { position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); width: min(240px, 50vw); height: 3px; translate: -50% 0;
  background: rgba(243, 247, 248, .18); border-radius: 2px; overflow: hidden; }
.story3d-progress i { display: block; height: 100%; background: var(--aqua); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .story3d-progress i { transform-origin: right; }
.story3d-cue { position: absolute; left: 50%; bottom: calc(44px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; width: 22px; height: 34px; border: 2px solid rgba(243, 247, 248, .5); border-radius: 12px; }
.story3d-cue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; translate: -50% 0; border-radius: 2px; background: var(--aqua); animation: story-cue 1.6s var(--ease) infinite; }
@keyframes story-cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
/* Until the script draws it (or without it), the section takes no room. */
.story3d:not(.is-ready) { height: 0; overflow: hidden; }
@media (max-width: 700px) { .story3d { height: 340vh; } }
@media (prefers-reduced-motion: reduce) { .story3d { height: 100vh; height: 100svh; } .story3d-cue, .story3d-progress { display: none; } }
/* "What you just saw": the five moments of a 3D story, in order. */
.steps.saw { grid-template-columns: repeat(5, 1fr); }
.steps.saw .step h3 { font-size: 26px; }
.steps.saw .step p { font-size: 15px; }
@media (max-width: 1100px) { .steps.saw { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .steps.saw { grid-template-columns: 1fr; } }
/* How it works: the phone with the player's game slides in as the story ends. */
.story3d-phone { --p: var(--phone, 0); position: absolute; inset-inline-end: max(6vw, 24px); top: 50%; width: 280px; pointer-events: none;
  opacity: var(--p); transform: translateY(calc(-50% + (1 - var(--p)) * 80px)) rotate(calc((1 - var(--p)) * -4deg)); will-change: transform, opacity; }
.story3d-phone .phone { width: 100%; box-shadow: 0 0 0 2px #2b3c4d, 0 30px 80px -20px rgba(0, 0, 0, .7); }
@media (max-width: 700px) {
  .story3d-phone { width: 210px; top: auto; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 50%;
    transform: translate(50%, calc((1 - var(--p)) * 80px)); }
  [dir="rtl"] .story3d-phone { transform: translate(-50%, calc((1 - var(--p)) * 80px)); }
  .story3d-phone .phone .screen { padding: 18px 12px; gap: 8px; }
  .story3d-phone .phone .screen h4 { font-size: 26px; }
}
/* Contact form: what they're asking about, as two cards. */
.interest { border: 0; padding: 0; margin: 0; min-width: 0; }
.interest legend { padding: 0; margin-bottom: 10px; font: 700 15px/1.2 var(--display); font-stretch: 75%; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border-radius: var(--r); border: 2px solid rgba(243, 247, 248, .18); background: rgba(243, 247, 248, .03);
  transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.choice b { font: 700 20px/1.1 var(--display); font-stretch: 75%; text-transform: uppercase; color: var(--frost); }
.choice small { color: var(--slate); font-size: 13px; line-height: 1.4; }
.choice:hover span { border-color: rgba(44, 205, 195, .5); }
.choice input:checked + span { border-color: var(--aqua); background: rgba(44, 205, 195, .1); }
.choice input:focus-visible + span { outline: 3px solid var(--ball); outline-offset: 3px; }
.interest-note { margin: 10px 0 0; font-size: 13px; color: var(--aqua); }
:lang(ar) .choice b, :lang(ar) .interest legend { font-stretch: normal; letter-spacing: 0; }
@media (max-width: 520px) { .choice-row { grid-template-columns: 1fr; } }
/* ---------- Story overlays: the court touchscreen, step captions, the phone ---------- */
.story3d-overlays { position: absolute; inset: 0; pointer-events: none; }
.story3d-overlays [data-show] { opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.story3d-overlays [data-show].on { opacity: 1; transform: none; }
/* The court touchscreen, as players and referees see it. */
.tscreen { position: absolute; inset-inline-start: max(5vw, 20px); top: 50%; margin-top: -150px; width: min(470px, 42vw); }
.ts-glass { aspect-ratio: 16 / 10; border-radius: 14px; border: 10px solid #121c26; box-shadow: 0 0 0 2px #2b3c4d, 0 30px 80px -20px rgba(0, 0, 0, .75); background: #071827; color: #F3F7F8;
  padding: 18px 20px; display: grid; overflow: hidden; }
.ts-glass small { font: 700 12px/1 var(--display); font-stretch: 75%; letter-spacing: .16em; color: var(--aqua); }
.ts-idle { grid-template-columns: 1fr auto; align-items: center; gap: 16px; background: radial-gradient(120% 90% at 0% 0%, #0f2c45, #071827); }
.ts-idle b { display: block; margin: 8px 0; font: 700 clamp(22px, 2.6vw, 34px)/.95 var(--display); font-stretch: 75%; text-transform: uppercase; }
.ts-idle p { margin: 0; font-size: 13px; color: var(--slate); }
.ts-qr { width: clamp(84px, 9vw, 120px); background: #fff; padding: 8px; border-radius: 8px; box-shadow: 0 0 0 4px rgba(44, 205, 195, .35); }
.ts-live { align-content: space-between; }
.ts-top { display: flex; justify-content: space-between; align-items: center; }
.ts-rec { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--rec); font: 700 12px/1 var(--display); letter-spacing: .1em; }
.ts-rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: rec-blink 1.4s steps(1) infinite; }
.ts-timer { font: 700 clamp(34px, 4.4vw, 58px)/1 var(--display); font-stretch: 75%; font-variant-numeric: tabular-nums; }
.ts-btns { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.ts-btns span { padding: 10px 6px; border-radius: 8px; text-align: center; font: 700 13px/1.1 var(--display); font-stretch: 75%; text-transform: uppercase; box-shadow: inset 0 0 0 1px rgba(243, 247, 248, .3); }
.ts-btns .ts-save { background: var(--aqua); color: var(--night); box-shadow: none; }
.ts-points { display: flex; gap: 8px; font-size: 11px; color: var(--slate); }
.ts-points span { padding: 4px 8px; border-radius: 6px; background: rgba(243, 247, 248, .06); border-inline-start: 3px solid var(--aqua); }
.ts-replay { padding: 0; grid-template-rows: 1fr auto; }
.ts-video { position: relative; background: linear-gradient(180deg, #2a5a86 0 38%, #1f5f96 38%); overflow: hidden; }
.ts-line { position: absolute; left: 0; right: 0; top: 62%; height: 3px; background: rgba(255, 255, 255, .9); }
.ts-ball { position: absolute; left: 54%; top: 57%; width: 14px; height: 14px; border-radius: 50%; background: var(--ball); box-shadow: 0 0 0 6px rgba(221, 238, 44, .25); animation: ts-bounce 1.6s ease-in-out infinite alternate; }
@keyframes ts-bounce { from { transform: translate(-40px, -46px); } to { transform: translate(6px, 2px); } }
.ts-badge { position: absolute; inset-inline-start: 12px; top: 12px; padding: 4px 10px; border-radius: 6px; background: rgba(7, 24, 39, .8); font: 700 12px/1 var(--display); letter-spacing: .1em; color: var(--ball); }
.ts-ctl { display: flex; justify-content: space-around; align-items: center; padding: 10px; background: #0b1621; font: 700 13px/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.ts-ctl .ts-boom { padding: 6px 10px; border-radius: 6px; background: var(--aqua); color: var(--night); }
/* Step captions: what's happening, one at a time. */
.story3d-steps { list-style: none; margin: 0; padding: 0; position: absolute; inset-inline-start: max(5vw, 20px); bottom: calc(64px + env(safe-area-inset-bottom, 0px)); width: min(520px, 90vw); display: grid; }
.story3d-steps li { grid-area: 1 / 1; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 10px; background: rgba(4, 15, 26, .86); border: 1px solid rgba(243, 247, 248, .14);
  font-size: 17px; line-height: 1.35; color: var(--frost); }
.story3d-steps b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--aqua); color: var(--night); font: 700 18px/1 var(--display); }
/* The phone: more of the player's page. */
.phone .ph-note { margin: -4px 0 2px; font-size: 11px; color: #0B6B63; }
.phone .clip em { display: block; margin-top: 6px; font-style: normal; font-size: 10.5px; color: #4A62E8; text-decoration: underline; }
.phone .ph-share { margin-top: auto; padding: 9px; border-radius: 10px; text-align: center; font: 700 13px/1 var(--display); font-stretch: 75%; text-transform: uppercase; box-shadow: inset 0 0 0 1px #8193A3; color: #071827; }
@media (max-width: 760px) {
  .tscreen { inset-inline-start: 50%; top: calc(76px + env(safe-area-inset-top, 0px)); margin-top: 0; width: min(360px, 88vw); translate: -50% 0; }
  [dir="rtl"] .tscreen { translate: 50% 0; }
  .ts-glass { border-width: 7px; padding: 12px 14px; }
  .story3d-steps { inset-inline-start: 50%; translate: -50% 0; bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  [dir="rtl"] .story3d-steps { translate: 50% 0; }
  .story3d-steps li { font-size: 14px; padding: 10px 12px; }
  .story3d--play .story3d-phone, .story3d-phone { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .story3d-overlays [data-show] { transition: none; } .ts-ball, .ts-rec::before { animation: none; } }
:lang(ar) .ts-idle b, :lang(ar) .ts-btns span, :lang(ar) .ts-timer, :lang(ar) .ts-ctl { font-stretch: normal; }
/* ══ Real screens (2026-11): the court screen and the phone page as they really
   look, from a demo court (no camera footage), in the page's language. ══ */
.shot-screen { position: relative; margin: 0; padding: 10px; border-radius: 14px; background: #121c26; box-shadow: 0 0 0 2px #2b3c4d, 14px 14px 0 0 var(--court-2); }
.shot-screen img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 6px; }
.shot-phone { width: min(300px, 78vw); margin-inline: auto; padding: 11px; border-radius: 44px; background: #1a2836; box-shadow: 0 0 0 2px #2b3c4d, 18px 18px 0 0 var(--court-2); }
.shot-phone img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; border-radius: 34px; object-fit: cover; object-position: top; }
.shot-phone--short img { aspect-ratio: 390 / 700; }
/* A court screen with the player's phone in front of it. */
.shot-pair { position: relative; padding-bottom: 9%; }
.shot-pair .shot-phone { position: absolute; inset-inline-end: -2%; bottom: 0; width: 30%; padding: 6px; border-radius: 24px; box-shadow: 0 0 0 2px #2b3c4d, 0 24px 60px -18px rgba(0, 0, 0, .75); }
.shot-pair .shot-phone img { border-radius: 19px; }
.shot-caption { margin-top: 14px; font-size: 14px; color: var(--slate); text-align: center; }
/* The 3D stories: real screens in the touchscreen and phone overlays. */
.ts-glass.ts-shot { aspect-ratio: 16 / 9; padding: 0; display: block; background: #071827; }
.ts-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story3d-phone .shot-phone { width: 100%; box-shadow: 0 0 0 2px #2b3c4d, 0 30px 80px -20px rgba(0, 0, 0, .7); }
/* The 4 moments on How it works: court screens and phones fit their frame. */
.demo-media.is-shot { background: #071827; display: grid; place-items: center; }
.demo-media.is-shot img { object-fit: contain; }
.demo-media.is-phone img { width: auto; height: 100%; margin-inline: auto; object-fit: cover; object-position: top; }
/* Steps with a picture of that moment. */
.step .step-shot { margin: 0 0 18px; }
.step .step-shot img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 0 0 1px rgba(243, 247, 248, .12); }/* The home hero without the 3D court: the real screens, not cropped. */
.stage.shot-pair { aspect-ratio: auto; overflow: visible; background: none; margin: 0; }
.stage.shot-pair::before, .stage.shot-pair::after { display: none; }

/* ---------- Phones: easy on the eye. No all-caps (headings, buttons, labels and menus
   in normal case), headings a little smaller with room between lines, calmer letter
   spacing, and no floating camera tag over the text. ---------- */
@media (max-width: 760px) {
  body *, body *::before, body *::after { text-transform: none !important; }
  h1, h2, h3, .h1, .h2, .h3 { line-height: 1.02; letter-spacing: 0; }
  .h1, .page-hero h1, .statement .h1 { font-size: clamp(44px, 12vw, 56px); line-height: 1; }
  .hero h1 { font-size: clamp(50px, 14vw, 62px); line-height: .98; white-space: normal; }
  .h2, .feature .h2, .cta-band .h2 { font-size: clamp(34px, 9.4vw, 42px); }
  .panel h2, .panel h3 { font-size: clamp(32px, 8.6vw, 40px); }
  .h3 { font-size: 26px; }
  .eyebrow { font-size: 17px; letter-spacing: .03em; }
  .btn { font-size: 20px; letter-spacing: .02em; white-space: nowrap; }
  .cta-band .h2 { margin-bottom: 16px; }
  .hero-note, .crumbs, .tl .who, .footer-grid h2, .interest legend, .tag, .hud, .scrub { letter-spacing: .03em; }
  .field label { letter-spacing: .01em; font-size: 17px; }
  .faq summary { font-size: 23px; line-height: 1.2; }
  .contact-points b, .choice b { font-size: 21px; }
  .footer-brand .slogan { font-size: 30px; }
  .mobile-menu a:not(.btn) { font-size: 30px; }
  .ticker span { letter-spacing: .01em; }
  .court3d-tag, .scroll-ball { display: none; }
}
