/* Home v2: real footage, real kits, depth by parallax and CSS 3D. */
body[data-page="home"] { overflow-x: clip; }
.h-sec { position: relative; padding: clamp(46px, 7vw, 90px) 0; }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-h h2 { margin: 0; font-size: clamp(22px, 2.6vw, 32px); font-weight: 900; }
.sec-h p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.sec-h .more { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 700; font-size: 14px; white-space: nowrap; }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #e9ecf3;
  background: rgba(8, 12, 22, .5); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); }
/* (the pulse is a ring behind the dot that grows and fades: a size and an opacity, which the graphics card animates by
   itself; the same pulse as a shadow had the page repaint it in every frame) */
.kicker .dot { position: relative; isolation: isolate; width: 8px; height: 8px; border-radius: 50%; background: var(--t1); }
.kicker .dot::after { content: ""; position: absolute; inset: -4px; z-index: -1; border-radius: 50%; background: color-mix(in oklab, var(--t1) 30%, transparent); animation: hring 1.8s infinite; }
@keyframes hring { 50% { transform: scale(1.625); opacity: 0; } }
video.bgv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }

/* ---------- hero ---------- */
/* the hero's film cover as the server drew it (front-page.php); home2.js moves it into the hero, the film plays over it */
.hero > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
html:not(.js) .hero-pre { display: none; }
.hero { position: relative; isolation: isolate; min-height: min(calc(100svh - 118px), 860px); display: grid; align-items: center; overflow: hidden; padding: 30px 0 70px; }
.hero .shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to left, rgba(5,8,15,.92) 0%, rgba(5,8,15,.65) 32%, rgba(5,8,15,.1) 62%, rgba(5,8,15,.35) 100%),
    linear-gradient(to top, var(--night) 0%, transparent 28%); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.hero-copy h1 { margin: 18px 0 14px; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.22; font-weight: 900; letter-spacing: -.5px; text-shadow: 0 6px 40px rgba(0,0,0,.6); }
.hero-copy h1 em { font-style: normal; color: var(--gold); }
.hero-copy { min-width: 0; }
.hero-copy > p { margin: 0 0 24px; max-width: 520px; color: #c9ced9; font-size: clamp(14px, 1.2vw, 16.5px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta .btn { height: 52px; padding: 0 24px; font-size: 15.5px; }
.hero-teams { display: flex; gap: 10px; margin-top: 28px; overflow-x: auto; overscroll-behavior-x: contain; padding: 4px 2px 8px; scrollbar-width: none; }
.hero-teams::-webkit-scrollbar { display: none; }
.hero-teams button { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(10, 14, 24, .55); backdrop-filter: blur(10px); transition: transform .25s, border-color .25s, background .25s; }
.hero-teams button img { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.hero-teams button:hover { transform: translateY(-3px); }
.hero-teams button.on { border-color: #fff; background: rgba(255,255,255,.14); }

/* the featured kit: real cut-out, tilts with the pointer, sits on a lit pitch spot */
.hero-kit { position: relative; height: min(64vh, 600px); perspective: 1200px; }
.hk { position: absolute; inset: 0; display: block; transform-style: preserve-3d; transition: transform .35s ease-out; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.hk-glow { position: absolute; left: 50%; top: 46%; width: 88%; aspect-ratio: 1; transform: translate(-50%, -50%) translateZ(-80px); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.16), transparent 70%); filter: blur(10px); opacity: .8; }
.hk-crest { display: none; position: absolute; left: 50%; top: 44%; width: 58%; transform: translate(-50%, -50%) translateZ(-60px); opacity: .16; filter: grayscale(.2) blur(.3px); }
.hk-img { position: absolute; left: 50%; top: 48%; width: min(84%, 470px); transform: translate(-50%, -50%) translateZ(60px); filter: drop-shadow(0 40px 40px rgba(0,0,0,.6)); animation: hfloat 6s ease-in-out infinite; }
@keyframes hfloat { 50% { translate: 0 -12px; } }
.hk-spot { position: absolute; left: 50%; bottom: 2%; width: 62%; height: 12%; transform: translateX(-50%) rotateX(70deg); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.65), transparent); }
/* (two names of one animation: the page switches between them to play it again, without taking it off and reading the
   layout, which laid the whole page out inside the tap) */
.hk.swap .hk-img { animation: hswap .7s cubic-bezier(.2,.8,.2,1); }
.hk.swap2 .hk-img { animation: hswap2 .7s cubic-bezier(.2,.8,.2,1); }
/* the 3D hanging kit (kit3d hero mode) takes over from the flat photo once it is ready */
.hk-gl { position: absolute; left: 50%; top: 47%; width: min(96%, 560px); aspect-ratio: 1; transform: translate(-50%, -50%); }
.hk.gl-on { transform: none; }
.hk.gl-on .hk-img, .hk.gl-on .hk-spot { visibility: hidden; }
.hk.gl-on.swap .hk-gl { animation: hglin .6s ease; }
.hk.gl-on.swap2 .hk-gl { animation: hglin2 .6s ease; }
@keyframes hglin { from { opacity: .2; } }
@keyframes hglin2 { from { opacity: .2; } }
@keyframes hswap { from { opacity: 0; transform: translate(-50%, -50%) translateZ(60px) rotateY(-80deg) scale(.9); } }
@keyframes hswap2 { from { opacity: 0; transform: translate(-50%, -50%) translateZ(60px) rotateY(-80deg) scale(.9); } }
.hk-tag { position: absolute; left: 4%; bottom: 8%; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 20px;
  background: rgba(10, 14, 24, .62); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(14px); max-width: 330px; box-shadow: var(--shadow); }
.hk-tag:not(.ready) { visibility: hidden; }
.hk-tag .crest { flex: none; }
.hk-tag small { display: block; color: var(--muted); font-size: 12px; }
.hk-tag b { display: block; font-size: 14px; line-height: 1.55; }
.hk-tag .pr { color: var(--gold); font-weight: 800; font-size: 15px; }
.scroll-cue { z-index: 1; position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: #aeb4c2; }
.scroll-cue i { width: 22px; height: 34px; border-radius: 12px; border: 2px solid rgba(255,255,255,.35); position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: hwheel 1.6s infinite; }
@keyframes hwheel { 70% { transform: translateY(10px); opacity: 0; } }

/* ---------- crest ring: a 3D cylinder of real club badges ---------- */
.ring-sec { overflow: hidden; }
.ring3d { --tw: clamp(84px, 60px + 6vw, 146px); position: relative; height: calc(var(--tw) * 1.27 + 50px); perspective: 1500px; margin-top: 10px; cursor: grab; touch-action: pan-y; user-select: none; }
.ring3d:active { cursor: grabbing; }
/* the ring's radius follows the tile size and the number of tiles (--n, set by home2.js): computed here, so the script
   never has to read the screen's width for it (on a phone even innerWidth made the browser lay out the page at start-up) */
.ring { --r: calc(var(--tw) * 1.16 * var(--n) / 6.2832); position: absolute; left: 50%; top: 20px; width: var(--tw); height: calc(var(--tw) * 1.27); margin-left: calc(var(--tw) / -2); transform-style: preserve-3d; }
.rtile { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-radius: 26px;
  transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(var(--r, 560px));
  background: linear-gradient(160deg, #2a2c31, #1a1b1f); border: 1px solid rgba(255,255,255,.12);   /* no backdrop blur: 3D tiles + blur stalled scrolling on phones */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12); transition: background .25s; }
.rtile:hover { background: linear-gradient(160deg, #34363c, #1f2024); border-color: rgba(255,255,255,.24); }
.rtile img { width: calc(var(--tw) * .56); height: calc(var(--tw) * .56); object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.55)); pointer-events: none; }
.rtile b { font-size: var(--fs-sm); }
.ring-fade { display: none; }
/* the far tiles fade out at the sides by a mask (painting the page colour over them left a visible band) */
.ring3d { -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); }
/* stage light: a soft white cone from above and the pool it leaves on the floor under the ring */
.ring3d::before { content: ""; position: absolute; left: 50%; top: -24px; width: min(70%, 620px); height: calc(100% + 24px); transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side at 50% 42%, rgba(255,255,255,.1), transparent); }
.ring3d::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: min(64%, 560px); height: 46px; transform: translateX(-50%); pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.12), rgba(255,255,255,.03) 60%, transparent); }
/* each tile: shadow when it turns away (--shade), a glint when it faces the light (--glint, --gx) */
.rtile::before, .rtile::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; }
.rtile::before { z-index: 2; background: #05070c; opacity: var(--shade, 0); }
.rtile::after { z-index: 3; opacity: var(--glint, 0); background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.26) 49%, rgba(255,255,255,.06) 56%, transparent 66%) no-repeat;
  background-size: 260% 100%; background-position: var(--gx, 50%) 0; }

/* ---------- rows ---------- */
.kcard { transform-style: preserve-3d; }
.kcard.tilt { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-5px); }
.kcard .flip img { translate: var(--px, 0) var(--py, 0); transition: translate .2s; }
.seeall { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; border-radius: 24px; overflow: hidden; min-height: 100%;
  background: linear-gradient(180deg, #25262a, #17181b); border: 1px solid var(--line-2); perspective: 900px; }
.seeall .fan { position: absolute; left: 50%; top: 40%; width: 60%; aspect-ratio: 1; transform-style: preserve-3d; transform: translate(-50%, -50%) rotateX(12deg); }
.seeall .fan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(0,0,0,.55));
  transform: rotate(calc((var(--i) - var(--mid)) * 7deg)) translateX(calc((var(--i) - var(--mid)) * -6px)) translateZ(calc(var(--i) * 6px)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.seeall:hover .fan img { transform: rotate(calc((var(--i) - var(--mid)) * 16deg)) translateX(calc((var(--i) - var(--mid)) * -22px)) translateY(-6px) translateZ(calc(var(--i) * 10px)); }
.seeall b { position: relative; font-size: 17px; }
.seeall small { position: relative; color: var(--muted); }
.seeall .go { position: absolute; top: 14px; left: 14px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold); color: #161000; }

/* ---------- 3D spin section over the studio footage ---------- */
.spin-sec { isolation: isolate; overflow: hidden; }
.spin-sec .shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(3,4,8,.2), rgba(3,4,8,.86) 55%), linear-gradient(to bottom, var(--night), transparent 18%, transparent 82%, var(--night)); }
.spin-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 34px; align-items: center; }
.spin-copy h2 { margin: 14px 0 10px; font-size: clamp(24px, 3vw, 40px); font-weight: 900; line-height: 1.3; }
.spin-copy > p { color: #c3c8d3; margin: 0 0 20px; }
.spin-pick { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.spin-pick button { width: 66px; height: 66px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); padding: 6px; transition: border-color .2s, transform .2s; }
.spin-pick button img { width: 100%; height: 100%; object-fit: contain; }
.spin-pick button.on { border-color: #fff; transform: translateY(-3px); }
.spin-info { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.spin-info .pr { color: var(--gold); font-weight: 800; font-size: 18px; }
.spin-view { position: relative; aspect-ratio: 1 / 1.05; border-radius: 30px; overflow: hidden;
  background: radial-gradient(55% 40% at 50% 20%, rgba(255,255,255,.09), transparent 72%), linear-gradient(180deg, rgba(42,43,47,.92), rgba(20,21,24,.94)); border: 1px solid rgba(255,255,255,.1); }
.spin-view .gl { position: absolute; inset: 0; }
.spin-view .ctrl { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 5px; border-radius: 16px; background: rgba(8,12,20,.7); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.spin-view .ctrl button { height: 38px; padding: 0 16px; border-radius: 12px; border: 0; background: none; color: #d4d8e2; font-weight: 600; }
.spin-view .ctrl button.on { background: #fff; color: #111; }
.spin-view .hint { position: absolute; top: 14px; right: 14px; font-size: 12.5px; color: #cfd3dc; padding: 6px 12px; border-radius: 999px; background: rgba(8,12,20,.6); }
.spin-view .wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }

/* ---------- stadium band ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(60px, 9vw, 120px) 0; }
.band .shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, var(--night), rgba(5,8,15,.55) 22%, rgba(5,8,15,.55) 78%, var(--night)); }
.band > .wrap { position: relative; z-index: 1; }
.band h2 { text-align: center; margin: 0 0 8px; font-size: clamp(24px, 3.2vw, 42px); font-weight: 900; text-shadow: 0 4px 30px rgba(0,0,0,.7); }
.band > .wrap > p { text-align: center; color: #d5d9e2; margin: 0 auto 30px; max-width: 560px; }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.trust div { padding: 18px; border-radius: 20px; background: rgba(8, 12, 22, .6); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(14px); }
.trust svg { width: 30px; height: 30px; color: var(--gold); }
.trust b { display: block; margin: 8px 0 2px; font-size: 15px; }
.trust small { color: #b8becb; font-size: 13px; line-height: 1.7; }

/* ---------- try-on: a phone filming a real person, kits landing on him ---------- */
.try-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.try-copy h2 { margin: 14px 0 10px; font-size: clamp(24px, 3vw, 40px); font-weight: 900; line-height: 1.3; }
.try-copy > p { color: #c3c8d3; margin: 0 0 18px; }
.try-copy ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.try-copy li { display: flex; gap: 10px; align-items: center; color: #dfe3ea; }
.try-copy li svg { color: var(--gold); flex: none; }
.phone { position: relative; width: clamp(190px, 120px + 16vw, 330px); aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px; background: linear-gradient(145deg, #2a2f3b, #0c0f16); box-shadow: 0 50px 90px -30px rgba(0,0,0,.9), inset 0 0 0 2px rgba(255,255,255,.08);
  transform: perspective(1400px) rotateY(-14deg) rotateX(4deg); transition: transform .6s; }
.phone:hover { transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); }
.phone .scr { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #000; }
.phone .scr video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 76% 50%; }
.phone .kit { position: absolute; left: 53%; top: var(--ky, 30%); width: var(--kw, 92%); transform: translateX(-50%); filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); transition: opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1); }
.phone .kit.out { opacity: 0; transform: translateX(-50%) translateY(-18px) scale(.94); }
.phone .ui-top { position: absolute; top: 14px; inset-inline: 14px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.phone .ui-top b { padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.45); }
.phone .rec { position: relative; isolation: isolate; width: 9px; height: 9px; border-radius: 50%; background: #ff3b3b; display: inline-block; margin-inline-end: 6px; }
.phone .rec::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; box-shadow: 0 0 10px #ff3b3b; animation: hglow 1.4s infinite; }
@keyframes hglow { 50% { transform: scale(3); opacity: 0; } }
/* the scanning line slides by transform (moving its «top» counted as the page shifting, many times a second) */
.phone .scan { position: absolute; inset: 26% 10% 30%; pointer-events: none; }
.phone .scan::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent) top / 100% 2px no-repeat; animation: hscan 2.6s ease-in-out infinite; will-change: transform; }
@keyframes hscan { 50% { transform: translateY(100%); } }
.phone .corners { position: absolute; inset: 22% 8% 18%; }
.phone .corners i { position: absolute; width: 26px; height: 26px; border: 3px solid rgba(255,255,255,.85); }
.phone .corners i:nth-child(1) { top: 0; left: 0; border-width: 3px 0 0 3px; border-radius: 10px 0 0 0; }
.phone .corners i:nth-child(2) { top: 0; right: 0; border-width: 3px 3px 0 0; border-radius: 0 10px 0 0; }
.phone .corners i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 3px 3px; border-radius: 0 0 0 10px; }
.phone .corners i:nth-child(4) { bottom: 0; right: 0; border-width: 0 3px 3px 0; border-radius: 0 0 10px 0; }
.phone .ui-bot { position: absolute; bottom: 16px; inset-inline: 0; display: flex; justify-content: center; align-items: center; gap: 10px; }
.phone .ui-bot span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); overflow: hidden; background: rgba(0,0,0,.4); }
.phone .ui-bot span img { width: 100%; height: 100%; object-fit: contain; }
.phone .ui-bot span.on { border-color: var(--gold); transform: scale(1.18); }
.phone .ui-bot .shutter { width: 56px; height: 56px; border-radius: 50%; border: 4px solid #fff; background: rgba(255,255,255,.25); }

/* ---------- the goal at the end ---------- */
.goal-sec { text-align: center; padding-bottom: 40px; }
.goal-sec h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 38px); font-weight: 900; }
.goal-sec > .wrap > p { color: var(--muted); margin: 0 0 26px; }
.goal { position: relative; width: min(620px, 88vw); aspect-ratio: 620 / 236; height: auto; margin: 0 auto; }
.goal > i { position: absolute; display: block; }
/* the net: a back wall set in from the posts, and the two sides and the roof running back to it */
.g-net { background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.3) 0 1.5px, transparent 1.5px 15px), repeating-linear-gradient(90deg, rgba(255,255,255,.3) 0 1.5px, transparent 1.5px 15px); }
.g-back { inset: 17% 9% 0; background-color: rgba(255,255,255,.03); transform-origin: 50% 100%; }
.g-left { inset: 0 auto 0 0; width: 9%; clip-path: polygon(0 0, 100% 17%, 100% 100%, 0 100%); background-size: auto, 60% 100%; opacity: .75; }
.g-right { inset: 0 0 0 auto; width: 9%; clip-path: polygon(0 17%, 100% 0, 100% 100%, 0 100%); background-size: auto, 60% 100%; opacity: .75; }
.g-top { inset: 0 0 auto; height: 17%; clip-path: polygon(0 0, 100% 0, 91% 100%, 9% 100%); background-size: 100% 60%, auto; opacity: .75; }
/* posts and crossbar: round white tube, lit from above */
.g-posts { inset: 0; border: 10px solid #f1f2f4; border-bottom: 0; border-radius: 8px 8px 0 0;
  box-shadow: 0 0 36px rgba(255,255,255,.16), inset 0 0 0 1px rgba(0,0,0,.28), inset 4px 4px 7px rgba(0,0,0,.2), 0 2px 0 rgba(0,0,0,.35); }
.g-grass { left: -14%; right: -14%; bottom: -24px; height: 36px; border-radius: 50%; background: radial-gradient(closest-side, rgba(47, 160, 80, .5), transparent); }
.g-flash { inset: 17% 9% 0; background: radial-gradient(40% 55% at 50% 60%, rgba(255,255,255,.55), transparent 70%); opacity: 0; pointer-events: none; }
.goal .gol { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%) scale(.3); opacity: 0; font: 900 64px/1 Vazirmatn; color: var(--gold); text-shadow: 0 4px 18px rgba(0,0,0,.6); pointer-events: none; }
.goal.scored .g-back { animation: gnet 1s cubic-bezier(.2,.8,.2,1); }
@keyframes gnet { 18% { transform: scale(1.05, 1.12); } 45% { transform: scale(.99, .97); } 70% { transform: scale(1.01, 1.03); } }
.goal.scored .g-flash { animation: gflash .7s ease-out; }
@keyframes gflash { 15% { opacity: 1; } 100% { opacity: 0; } }
.goal.scored .gol { animation: hgol 1.6s cubic-bezier(.2,.8,.2,1) forwards; }
/* the goal: posts shiver, gold and white paper bursts out of the net */
.goal.scored .g-posts { animation: gshake .5s cubic-bezier(.3,.7,.4,1); }
@keyframes gshake { 15% { transform: translate(-3px, 1px) rotate(-.4deg); } 35% { transform: translate(3px, -1px) rotate(.3deg); } 55% { transform: translate(-2px, 0); } 75% { transform: translate(1px, 0); } }
.g-conf { left: 50%; top: 58%; width: 0; height: 0; pointer-events: none; }
.g-conf span { position: absolute; left: -4px; top: -6px; width: 8px; height: 12px; border-radius: 2px; background: var(--c); opacity: 0; }
.g-conf span:nth-child(3n) { width: 6px; height: 6px; border-radius: 50%; }
.goal.scored .g-conf span { animation: gconf 1.25s cubic-bezier(.15,.75,.3,1) var(--t) both; }
@keyframes gconf {
  0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(.6); }
  8% { opacity: 1; }
  55% { opacity: 1; transform: translate(calc(var(--x) * 1px), calc(var(--y) * 1px)) rotate(var(--r)) scale(1); }
  100% { opacity: 0; transform: translate(calc(var(--x) * 1.15px), calc(var(--y) * 1px + 70px)) rotate(calc(var(--r) * 2.2)) scale(.9); }
}
@media (prefers-reduced-motion: reduce) { .g-conf, .sball-trail { display: none; } .goal.scored .g-posts { animation: none; } }
@keyframes hgol { 30% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.goal-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; }

/* ---------- the scroll ball ---------- */
.sball { position: fixed; left: 0; top: 0; z-index: 40; width: var(--size); height: var(--size); pointer-events: none; opacity: 0; transition: opacity .35s; will-change: transform; }
.sball.on { opacity: 1; }
/* the ball itself (its stretch at speed is set by the script); a plain round shadow instead of a filter, which would be
   painted again on every frame of a rolling ball */
.sball-body { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 11px 16px -5px rgba(0,0,0,.5); will-change: transform; }
.sball canvas, .sball img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.sball-shadow { position: absolute; left: 12%; right: 12%; bottom: -16px; height: 12px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); transform: scale(var(--sh, 1)); }
/* the streak behind a shot: it points back along the way the ball came */
.sball-trail { position: absolute; left: 50%; top: 50%; width: 260%; height: 62%; margin-top: -31%; transform-origin: 0 50%; transform: rotate(calc(var(--ang, 0deg) + 180deg)); opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.5), rgba(255,255,255,.14) 45%, transparent); border-radius: 50%; filter: blur(7px); }
.sball.shot .sball-trail, .sball.fast .sball-trail { opacity: var(--trail, 0); }
.sball.fast:not(.shot) .sball-trail { width: 190%; height: 54%; margin-top: -27%; }
.sball.in-net .sball-shadow { opacity: .5; }
.sball.shot .sball-shadow { opacity: 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  /* phone hero = exactly one screen between the header and the bottom bar: the footage fills it edge to
     edge, the kit sits in the upper part, the headline and the two buttons at the bottom */
  .hero { min-height: calc(100svh - 62px - 64px - env(safe-area-inset-bottom)); padding: 8px 0 14px; align-items: stretch; }
  .hero-in { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 4px; height: 100%; }
  .hero-kit { order: -1; height: auto; min-height: clamp(200px, 38svh, 460px); }
  .hk-img { width: min(78%, 46svh, 470px); }
  .hk-gl { width: min(92%, 52svh, 540px); }
  .hk-tag { left: 50%; transform: translateX(-50%); bottom: 0; width: max-content; max-width: 92%; padding: 8px 10px 8px 14px; gap: 10px; border-radius: 16px; }
  .hk-tag .crest { --s: 38px !important; width: 38px; height: 38px; }
  .hk-tag b { font-size: var(--fs-sm); } .hk-tag .pr { font-size: var(--fs-sm); } .hk-tag small { display: none; }
  .hero .shade { background: linear-gradient(to top, var(--night) 4%, rgba(5,8,15,.62) 34%, rgba(5,8,15,.12) 70%, rgba(5,8,15,.3) 100%); }
  .hero-copy { text-align: center; min-width: 0; }
  .hero-copy h1 { margin: 6px 0 8px; font-size: var(--fs-h1); }
  .hero-copy > p { margin: 0 auto 14px; font-size: var(--fs-sm); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-copy .kicker { display: none; }
  .hero-cta { gap: 8px; } .hero-cta .btn { height: var(--btn-h); padding: 0 18px; font-size: var(--fs-base); flex: 1 1 0; max-width: 220px; }
  .hero-teams { margin-top: 14px; gap: 8px; } .hero-teams button { width: 46px; height: 46px; border-radius: 14px; } .hero-teams button img { width: 28px; height: 28px; }
  .hero-cta { justify-content: center; }
  /* «safe»: when the badges are wider than the screen, the first ones stay reachable instead of being cut off */
  .hero-teams { justify-content: safe center; }
  .scroll-cue { display: none; }
  .spin-grid, .try-grid { grid-template-columns: minmax(0, 1fr); }
  .spin-view { order: -1; }
  .try-grid .phone { margin: 0 auto; order: -1; transform: none; }
  .trust { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 600px) {
  /* phones: the four promises as a compact 2 × 2, icon and title only */
  .trust { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .trust div { padding: 12px; border-radius: 14px; }
  .trust svg { width: 22px; height: 22px; }
  .trust b { font-size: var(--fs-sm); margin-top: 6px; }
  .trust small { display: none; }
  .band { padding: clamp(40px, 10vw, 60px) 0; }
  .band > .wrap > p { font-size: var(--fs-sm); }
  .sec-h { flex-direction: column; align-items: start; gap: 6px; }
  .sec-h p { font-size: var(--fs-xs); }
  .try-copy ul { display: none; }
  .spin-copy > p, .try-copy > p { font-size: var(--fs-sm); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .spin-pick button { width: 52px; height: 52px; border-radius: 14px; }
  .phone { border-radius: 34px; padding: 9px; } .phone .scr { border-radius: 26px; }
  .g-posts { border-width: 6px; }
}
@media (prefers-reduced-motion: reduce) { .hk-img, .phone .scan::before, .kicker .dot::after { animation: none; } }
