/* =========================================================
   D JUNIOR — neon football-tech theme
   ========================================================= */

:root {
  /* colour tokens */
  --bg: #05060f;
  --bg-2: #080a1a;
  --surface: rgba(18, 22, 48, 0.55);
  --surface-solid: #0d1026;
  --border: rgba(140, 160, 255, 0.14);
  --border-strong: rgba(140, 160, 255, 0.3);
  --text: #eef1ff;
  --muted: #a3acd1;
  --blue: #2f7bff;
  --cyan: #38bdf8;
  --purple: #8b5cf6;
  --violet: #a855f7;
  --pink: #ec4899;
  --success: #34d399;
  --danger: #f87171;
  --grad: linear-gradient(100deg, var(--cyan) 0%, var(--blue) 40%, var(--purple) 75%, var(--violet) 100%);
  --glow-blue: 0 0 24px rgba(47, 123, 255, 0.55);
  --glow-purple: 0 0 32px rgba(139, 92, 246, 0.45);

  /* type */
  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* layout */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(80px, 12vw, 150px);
  --nav-h: 76px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 800ms;

  /* z-index scale */
  --z-bg: 0;
  --z-content: 10;
  --z-nav: 100;
  --z-overlay: 200;
  --z-toast: 1000;

  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "locl" 0; /* standard Cyrillic glyphs instead of the Bulgarian cursive-style forms */
  overflow-x: hidden;
  touch-action: manipulation;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; font-feature-settings: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: var(--z-toast);
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--blue); color: #fff; font-weight: 700;
  transform: translateY(-150%); transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg[viewBox="0 0 24 24"] { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- background layers ---------- */
#bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: var(--z-bg); pointer-events: none; opacity: 0.8; }
.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 85% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(50vw 50vw at -10% 30%, rgba(47, 123, 255, 0.14), transparent 60%);
}
main, .footer { position: relative; z-index: var(--z-content); }

.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 2; pointer-events: none;
  width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14) 0%, rgba(139, 92, 246, 0.08) 35%, transparent 65%);
  transform: translate3d(-999px, -999px, 0);
  transition: opacity var(--dur);
  will-change: transform;
}
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: calc(var(--z-nav) + 1); pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); box-shadow: var(--glow-blue); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: 0.975rem; letter-spacing: 0.01em; white-space: nowrap;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur), background var(--dur), border-color var(--dur), color var(--dur);
  cursor: pointer; isolation: isolate; overflow: hidden;
}
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: 0.9rem; }
.btn--lg { min-height: 56px; padding: 14px 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary {
  color: #fff; background: linear-gradient(100deg, var(--blue), var(--purple));
  box-shadow: 0 8px 30px -8px rgba(47, 123, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--cyan), var(--blue) 45%, var(--violet));
  opacity: 0; transition: opacity var(--dur);
}
.btn--primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg); transition: left 700ms var(--ease-out);
}
.btn--primary:hover { box-shadow: 0 10px 40px -6px rgba(139, 92, 246, 0.8), 0 0 0 1px rgba(255,255,255,.1) inset; }
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover::after { left: 130%; }
.btn--primary:hover .icon { transform: translateX(3px); }
.btn .icon { transition: transform var(--dur) var(--ease-out); }
.btn--ghost { color: var(--text); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-strong); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan) inset, var(--glow-blue); }
.btn:active { transform: scale(0.97); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav); height: var(--nav-h); transition: background var(--dur), border-color var(--dur), backdrop-filter var(--dur); border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(5, 6, 15, 0.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--border); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand img { width: 44px; height: auto; filter: drop-shadow(0 0 10px rgba(47, 123, 255, 0.6)); transition: transform var(--dur-slow) var(--ease-spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.brand__text { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.08em; }
.brand__text span { margin-left: 0.35em; color: var(--muted); font-weight: 500; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative; padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 0.93rem; color: var(--muted);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}
.nav__cta-mobile { display: none; }
.nav__actions { display: flex; align-items: center; gap: 12px; }

.lang { position: relative; display: inline-flex; padding: 4px; border: 1px solid var(--border-strong); border-radius: 999px; background: rgba(255,255,255,.03); }
.lang__btn {
  position: relative; z-index: 1; min-width: 44px; min-height: 36px; padding: 0 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; color: var(--muted); transition: color var(--dur);
}
.lang__btn.is-active { color: #fff; }
.lang__pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: 44px; border-radius: 999px;
  background: linear-gradient(100deg, var(--blue), var(--purple)); box-shadow: var(--glow-blue);
  transition: transform var(--dur) var(--ease-spring);
}
.lang[data-active="en"] .lang__pill { transform: translateX(100%); }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text); transition: transform var(--dur) var(--ease-out), top var(--dur); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 20px var(--gutter) 28px; background: #070817; box-shadow: 0 30px 60px -20px rgba(0,0,0,.9);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform var(--dur) var(--ease-out), opacity var(--dur), visibility 0s linear var(--dur);
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav__links a { padding: 14px 16px; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .nav__links a.is-active::after { left: auto; right: 16px; top: 50%; bottom: auto; margin: -3px 0 0; }
  .nav__cta-mobile { display: block; margin-top: 8px; text-align: center; color: #fff !important; background: linear-gradient(100deg, var(--blue), var(--purple)); }
  .nav, .nav.is-scrolled { background: rgba(5, 6, 15, 0.94); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (max-width: 380px) { .brand__text { font-size: .9rem; } .brand img { width: 38px; } }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 90px; overflow: hidden; }
.hero__pitch { position: absolute; inset: 0; color: rgba(90, 130, 255, 0.09); pointer-events: none; mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 75%); }
.hero__pitch svg { width: 100%; height: 100%; transform: perspective(900px) rotateX(55deg) scale(1.5) translateY(10%); transform-origin: 50% 70%; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 40px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; margin-bottom: 28px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: rgba(47, 123, 255, 0.07);
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; color: #cfd7ff;
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

.hero__title { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.hero__name {
  position: relative; display: inline-block; width: fit-content;
  font-size: clamp(2.6rem, 6.6vw, 6rem); font-weight: 800; letter-spacing: 0.02em; line-height: 1; white-space: nowrap;
  background: linear-gradient(100deg, #fff 0%, #cfe0ff 25%, var(--cyan) 45%, var(--blue) 60%, var(--violet) 80%, #fff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 7s linear infinite;
  filter: drop-shadow(0 0 30px rgba(47, 123, 255, 0.35));
}
@keyframes shine { to { background-position: -250% 0; } }
.hero__name::after {
  content: attr(data-text); position: absolute; inset: 0; color: transparent;
  -webkit-text-stroke: 1px rgba(56, 189, 248, 0.45); transform: translate(6px, 6px); z-index: -1;
}
.hero__tagline { font-size: clamp(1.4rem, 3.4vw, 2.3rem); font-weight: 600; color: var(--text); }
.hero__tagline em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero__typed { font-family: var(--font-mono); font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted); min-height: 1.8em; margin-bottom: 18px; }
.typed { color: var(--cyan); text-shadow: 0 0 18px rgba(56, 189, 248, 0.6); }
.caret { display: inline-block; width: 10px; height: 1.15em; margin-left: 3px; vertical-align: -0.2em; background: var(--violet); box-shadow: var(--glow-purple); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lead { max-width: 540px; font-size: 1.1rem; color: var(--muted); margin-bottom: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.scoreboard {
  display: inline-grid; grid-template-columns: repeat(3, auto); margin: 0; border-radius: var(--radius);
  border: 1px solid var(--border-strong); background: linear-gradient(180deg, rgba(20, 26, 60, 0.7), rgba(8, 10, 26, 0.7));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 20px 50px -20px rgba(0,0,0,.8);
  overflow: hidden;
}
.scoreboard__item { padding: 14px 24px; display: flex; flex-direction: column-reverse; gap: 2px; }
.scoreboard__item + .scoreboard__item { border-left: 1px solid var(--border); }
.scoreboard dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-family: var(--font-mono); }
.scoreboard dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 20px rgba(56, 189, 248, 0.5); }

/* 3D ball */
.hero__visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: center; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; }
.orb--blue { width: 60%; height: 60%; left: 0; top: 10%; background: var(--blue); animation: drift 12s ease-in-out infinite; }
.orb--purple { width: 55%; height: 55%; right: 0; bottom: 5%; background: var(--purple); animation: drift 14s ease-in-out infinite reverse; }
@keyframes drift { 50% { transform: translate(8%, -6%) scale(1.1); } }
.ball-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.ball-stage canvas { width: 88%; height: 88%; filter: drop-shadow(0 0 30px rgba(47, 123, 255, 0.45)); cursor: grab; }
.ball-stage canvas:active { cursor: grabbing; }
.ball-ring { position: absolute; inset: 2%; border-radius: 50%; border: 1.5px solid transparent; pointer-events: none; }
.ball-ring--1 {
  border-top-color: var(--cyan); border-right-color: rgba(56,189,248,.2);
  transform: rotateX(72deg) rotateY(-14deg); animation: spin 9s linear infinite; box-shadow: 0 0 20px rgba(56,189,248,.25);
}
.ball-ring--2 { inset: -4%; border-bottom-color: var(--violet); border-left-color: rgba(168,85,247,.2); transform: rotateX(70deg) rotateY(18deg); animation: spin2 13s linear infinite reverse; }
@keyframes spin { to { transform: rotateX(72deg) rotateY(-14deg) rotateZ(360deg); } }
@keyframes spin2 { to { transform: rotateX(70deg) rotateY(18deg) rotateZ(360deg); } }

.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: rgba(13, 16, 38, 0.8); border: 1px solid var(--border-strong); backdrop-filter: blur(10px);
  font-family: var(--font-mono); font-size: 0.78rem; color: #dce3ff; white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.8);
  animation: float 6s ease-in-out infinite;
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.chip-dot--p { background: var(--violet); box-shadow: 0 0 10px var(--violet); }
.float-chip--1 { top: 8%; left: -4%; }
.float-chip--2 { top: 46%; right: -6%; animation-delay: -2s; }
.float-chip--3 { bottom: 6%; left: 8%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-14px); } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--border-strong); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 960px) {
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero__grid { grid-template-columns: 1fr; gap: 10px; }
  .hero__visual { order: -1; max-width: 340px; }
  .float-chip { font-size: 0.7rem; padding: 7px 11px; }
  .float-chip--1 { left: -2%; }
  .float-chip--2 { right: -2%; }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  .hero__visual { max-width: 230px; margin-bottom: 8px; }
  .hero { padding-bottom: 60px; }
  .eyebrow { margin-bottom: 20px; font-size: .72rem; }
  .hero__ctas .btn { width: 100%; }
  .scoreboard { display: grid; width: 100%; }
  .scoreboard__item { padding: 12px 12px; }
  .scoreboard dd { font-size: 1.45rem; }
  .scoreboard dt { font-size: 0.62rem; letter-spacing: 0.05em; }
}

/* ---------- marquee ---------- */
.marquee { position: relative; z-index: var(--z-content); overflow: hidden; padding: 22px 0; border-block: 1px solid var(--border); background: rgba(8, 10, 26, 0.6); transform: rotate(-1.5deg) scale(1.03); }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.6rem); letter-spacing: 0.04em; color: transparent; -webkit-text-stroke: 1px rgba(200, 210, 255, 0.5); white-space: nowrap; }
.marquee span:nth-of-type(3n+1) { color: var(--text); -webkit-text-stroke: 0; }
.marquee i { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, #fff, #b9c6ff 45%, #5b6bd6 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 0 3px, #000 3.5px); mask: radial-gradient(circle at 50% 50%, transparent 0 3px, #000 3.5px);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { position: relative; padding: var(--section-y) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__head--row > div:first-child { max-width: 700px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font-family: var(--font-mono); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--cyan); }
.kicker__num { padding: 3px 8px; border-radius: 6px; border: 1px solid rgba(56,189,248,.4); background: rgba(56,189,248,.08); letter-spacing: 0.05em; }
.section__title { font-size: clamp(1.9rem, 4.6vw, 3.3rem); margin-bottom: 18px; text-wrap: balance; }
.section__sub { font-size: 1.1rem; color: var(--muted); max-width: 620px; }
.section__head--center .section__sub { margin-inline: auto; }

/* ---------- cards / tilt ---------- */
.card {
  position: relative; border-radius: var(--radius-lg); padding: 30px;
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  overflow: hidden; isolation: isolate;
}
.tilt { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; transform-style: preserve-3d; }
.js .tilt.is-in { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform var(--dur) var(--ease-out), opacity var(--dur-slow) var(--ease-out), border-color var(--dur), box-shadow var(--dur); }
.tilt::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity var(--dur);
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(56, 189, 248, 0.16), transparent 45%);
}
.tilt:hover::before { opacity: 1; }
.tilt::after { /* gradient border on hover */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(56, 189, 248, 0.9), rgba(139, 92, 246, 0.5) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity var(--dur);
}
.tilt:hover::after { opacity: 1; }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service h3 { font-size: 1.2rem; margin: 22px 0 10px; }
.service p { color: var(--muted); margin: 0; }
.service__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(47,123,255,.25), rgba(139,92,246,.25)); border: 1px solid var(--border-strong);
  color: #cfe0ff; transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur);
}
.service__icon svg { width: 26px; height: 26px; }
.service:hover .service__icon { transform: translateZ(30px) rotate(-6deg) scale(1.08); box-shadow: var(--glow-blue); color: #fff; }
.service__pos { /* football position badge */
  position: absolute; top: 24px; right: 24px; font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(140, 160, 255, 0.2); transition: -webkit-text-stroke-color var(--dur);
}
.service:hover .service__pos { -webkit-text-stroke-color: rgba(56, 189, 248, 0.6); }
.service--cta { background: linear-gradient(145deg, rgba(47,123,255,.18), rgba(139,92,246,.2)); border-color: var(--border-strong); }
.link-arrow { display: inline-flex; margin-top: 16px; padding: 6px 0; font-weight: 700; color: var(--cyan); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } .card { padding: 24px; } }

/* ---------- portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border-strong); font-weight: 600; font-size: 0.9rem; color: var(--muted); transition: all var(--dur); }
.filter:hover { color: var(--text); border-color: var(--cyan); }
.filter.is-active { color: #fff; background: linear-gradient(100deg, var(--blue), var(--purple)); border-color: transparent; box-shadow: var(--glow-blue); }

.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.project { position: relative; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); overflow: hidden; isolation: isolate; }
.project.is-hidden { display: none; }
.project__media {
  display: block; position: relative; aspect-ratio: 16 / 11; padding: 22px 22px 0; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 0%, color-mix(in srgb, var(--c1) 45%, transparent), transparent 60%),
              radial-gradient(100% 90% at 100% 100%, color-mix(in srgb, var(--c2) 50%, transparent), transparent 60%), #0a0c20;
}
.mock {
  height: 100%; border-radius: 12px 12px 0 0; background: rgba(8, 10, 24, 0.92); border: 1px solid rgba(255,255,255,.08); border-bottom: 0;
  box-shadow: 0 -10px 40px -10px rgba(0,0,0,.6); transform: translateY(12px); transition: transform 600ms var(--ease-out);
  overflow: hidden;
}
.project:hover .mock { transform: translateY(0) scale(1.02); }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.mock__bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.mock__bar i:nth-child(2) { background: #febc2e; } .mock__bar i:nth-child(3) { background: #28c840; }
.mock__bar span { margin-left: 10px; padding: 2px 10px; border-radius: 6px; background: rgba(255,255,255,.05); font-family: var(--font-mono); font-size: 0.62rem; color: #8d97c4; }
.mock__body { position: relative; padding: 16px; height: calc(100% - 30px); }
.mock__line { height: 9px; border-radius: 5px; background: rgba(255,255,255,.14); margin-bottom: 9px; }
.mock__line:first-child { height: 14px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.mock__btn { width: 76px; height: 22px; border-radius: 11px; margin-top: 14px; background: linear-gradient(90deg, var(--c1), var(--c2)); box-shadow: 0 0 16px color-mix(in srgb, var(--c1) 60%, transparent); }
.mock__ball {
  position: absolute; right: 18px; bottom: 18px; width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #c8d2ff 40%, #5563c9);
  box-shadow: 0 0 30px var(--c1); animation: bounce 2.4s var(--ease-out) infinite;
}
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px) rotate(180deg); } }
.mock__body--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__body--grid span { border-radius: 8px; background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 35%, transparent), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.06); }
.mock__body--center { display: flex; flex-direction: column; align-items: center; }
.mock__body--center .mock__line { margin-inline: auto; }
.mock__circle { width: 56px; height: 56px; border-radius: 50%; margin-bottom: 14px; background: conic-gradient(var(--c1), var(--c2), var(--c1)); animation: rot 6s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.mock__body--split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: center; }
.mock__img { height: 100%; min-height: 80px; border-radius: 10px; background: linear-gradient(145deg, var(--c1), var(--c2)); opacity: .85; }
.mock__bars { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: flex-end; gap: 6px; height: 60px; }
.mock__bars span { width: 12px; border-radius: 3px; background: linear-gradient(180deg, var(--c2), var(--c1)); }
.mock__bars span:nth-child(1) { height: 40%; } .mock__bars span:nth-child(2) { height: 65%; } .mock__bars span:nth-child(3) { height: 50%; } .mock__bars span:nth-child(4) { height: 95%; }

/* live site preview inside the browser mock */
.mock__screen { position: relative; height: calc(100% - 30px); overflow: hidden; background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 25%, #0a0c20), #080a18); }
.mock__screen iframe {
  position: absolute; top: 0; left: 0; width: 1280px; height: 2600px; border: 0; background: #fff;
  transform-origin: 0 0; transform: scale(var(--s, 0.3)) translateY(0);
  pointer-events: none; opacity: 0;
  transition: opacity 600ms var(--ease-out), transform 7s cubic-bezier(.45, 0, .25, 1);
}
.mock__screen iframe.is-loaded { opacity: 1; }
.project:hover .mock__screen iframe, .project.is-playing .mock__screen iframe { transform: scale(var(--s, 0.3)) translateY(var(--shift, -1200px)); transition: opacity 600ms var(--ease-out), transform 7s cubic-bezier(.45, 0, .25, 1); }
.mock__loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .85rem; letter-spacing: .08em; color: rgba(220, 228, 255, .55);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.06) 50%, transparent 70%) 0 0 / 250% 100%;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { to { background-position: -250% 0; } }
.project__media::after { /* keeps the preview crisp-looking and hints it's clickable */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 70%, rgba(5, 6, 15, .55));
}
@media (prefers-reduced-motion: reduce) { .project:hover .mock__screen iframe, .project.is-playing .mock__screen iframe { transform: scale(var(--s, 0.3)); } }

.project__info { padding: 22px 24px 26px; }
.project__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.project__tags span { padding: 3px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 0.72rem; color: #cbd5ff; background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.3); }
.project h3 { font-size: 1.15rem; margin-bottom: 8px; }
.project p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.project__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--cyan); }
.project__link .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.project__link:hover .icon { transform: translate(3px, -3px); }

@media (max-width: 760px) { .work { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about__content > p { color: var(--muted); font-size: 1.06rem; max-width: 62ch; }
.jersey {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); display: grid; place-items: center; padding: 40px;
  background: linear-gradient(160deg, rgba(20, 26, 64, .9), rgba(8, 10, 26, .95));
  border: 1px solid var(--border-strong); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(47, 123, 255, .4);
}
.jersey::before { /* pitch stripes */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: repeating-linear-gradient(90deg, rgba(47,123,255,.05) 0 40px, transparent 40px 80px);
}
.jersey__glow { position: absolute; width: 70%; height: 70%; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,246,.45), transparent 65%); filter: blur(30px); animation: drift 10s ease-in-out infinite; }
.jersey img { position: relative; width: 100%; height: auto; animation: float 7s ease-in-out infinite; }
.jersey__number {
  position: absolute; top: 18px; right: 26px; font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 11vw, 8rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(56, 189, 248, .35);
}
.jersey__card {
  position: absolute; left: 20px; bottom: 20px; padding: 14px 18px; border-radius: var(--radius);
  background: rgba(8,10,26,.85); border: 1px solid var(--border-strong); backdrop-filter: blur(10px);
}
.jersey__label { display: block; font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--cyan); }
.jersey__card strong { font-family: var(--font-display); font-size: 1rem; }

.skills { display: grid; gap: 16px; margin: 30px 0 34px; }
.skills li { display: grid; gap: 8px; }
.skills span { font-weight: 600; font-size: .95rem; display: flex; justify-content: space-between; }
.skills b { position: relative; height: 6px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.skills b::after { content: ""; position: absolute; inset: 0; width: var(--v); border-radius: inherit; background: var(--grad); box-shadow: var(--glow-blue); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.4s var(--ease-out) .3s; }
.skills.is-in b::after, html:not(.js) .skills b::after { transform: scaleX(1); }

.about__values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.about__values div { padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.about__values strong { display: block; font-family: var(--font-display); font-size: .95rem; margin-bottom: 4px; }
.about__values span { font-size: .85rem; color: var(--muted); }

@media (max-width: 960px) { .about__grid { grid-template-columns: 1fr; } .jersey { max-width: 440px; margin: 0 auto; aspect-ratio: 1; } }
@media (max-width: 520px) { .about__values { grid-template-columns: 1fr; } }

/* ---------- process / tactics ---------- */
.process { overflow: hidden; }
.process::before { /* centre circle of a pitch */
  content: ""; position: absolute; left: 50%; top: 50%; width: min(780px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 1px solid rgba(90, 130, 255, .08); border-radius: 50%; pointer-events: none;
}
.process::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, rgba(90,130,255,.1), transparent); pointer-events: none; }
.tactics { position: relative; }
.tactics__path { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 120px; overflow: visible; pointer-events: none; }
.tactics__path path { fill: none; stroke: rgba(140, 160, 255, .25); stroke-width: 2; stroke-dasharray: 6 10; vector-effect: non-scaling-stroke; }
.tactics__path .tactics__path-fill { stroke: var(--cyan); vector-effect: none; stroke-dasharray: 1; stroke-dashoffset: var(--off, 1); filter: drop-shadow(0 0 6px var(--cyan)); }
.tactics__ball {
  position: absolute; top: 0; left: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; z-index: 2; pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, #0b0e24 0 4px, transparent 4.5px),
    radial-gradient(circle at 35% 30%, #fff, #dfe6ff 45%, #8d9bea);
  box-shadow: 0 0 20px rgba(56, 189, 248, .9), 0 0 40px rgba(139, 92, 246, .5);
  will-change: transform;
}
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; text-align: center; padding-top: 0; }
.step__node {
  position: relative; width: 84px; height: 84px; margin: 18px auto 26px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(47,123,255,.35), rgba(13,16,38,.95) 70%);
  border: 1px solid var(--border-strong); color: #d6e0ff;
  box-shadow: 0 0 0 8px rgba(5, 6, 15, .9), 0 10px 30px -10px rgba(47,123,255,.5);
  transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur), border-color var(--dur);
}
.step__node svg { width: 32px; height: 32px; }
.step.is-active .step__node, .step:hover .step__node { transform: scale(1.1); border-color: var(--cyan); color: #fff; box-shadow: 0 0 0 8px rgba(5,6,15,.9), 0 0 30px rgba(56,189,248,.7); }
.step__node--goal { background: radial-gradient(circle at 30% 30%, rgba(168,85,247,.45), rgba(13,16,38,.95) 70%); }
.step__num { display: block; font-family: var(--font-mono); font-size: .8rem; color: var(--cyan); letter-spacing: .1em; margin-bottom: 6px; }
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .95rem; max-width: 260px; margin: 0 auto; }

@media (max-width: 860px) {
  .tactics__path, .tactics__ball { display: none; }
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 520px; margin: 0 auto; }
  .steps::before { content: ""; position: absolute; left: 41px; top: 40px; bottom: 40px; width: 2px; background: repeating-linear-gradient(180deg, rgba(56,189,248,.5) 0 6px, transparent 6px 14px); }
  .step { display: grid; grid-template-columns: 84px 1fr; column-gap: 20px; text-align: left; padding-bottom: 34px; }
  .step__node { grid-row: span 3; margin: 0; }
  .step p { margin: 0; max-width: none; }
}

/* ---------- testimonials ---------- */
.slider__controls { display: flex; gap: 10px; }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border-strong); color: var(--text); background: rgba(255,255,255,.03);
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur-fast);
}
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover { border-color: var(--cyan); box-shadow: var(--glow-blue); }
.round-btn:active { transform: scale(.94); }
.round-btn .i-play { display: none; }
.round-btn[aria-pressed="true"] .i-play { display: block; }
.round-btn[aria-pressed="true"] .i-pause { display: none; }

.slider { overflow: hidden; margin: 0 calc(var(--gutter) * -1); padding: 10px var(--gutter); --per: 2; }
.slider__track { display: flex; gap: 22px; transition: transform 700ms var(--ease-out); will-change: transform; }
.testi {
  flex: 0 0 calc((100% - 22px * (var(--per) - 1)) / var(--per)); margin: 0; padding: 34px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden;
  transition: opacity var(--dur), border-color var(--dur);
}
.testi::before { content: "“"; position: absolute; top: -30px; right: 20px; font-family: var(--font-display); font-size: 10rem; line-height: 1; color: rgba(139, 92, 246, .14); }
.testi.is-current { border-color: var(--border-strong); }
.stars { color: #fbbf24; letter-spacing: 3px; margin-bottom: 16px; text-shadow: 0 0 10px rgba(251,191,36,.5); }
.testi blockquote { margin: 0 0 26px; font-size: 1.12rem; line-height: 1.6; color: #e3e8ff; }
.testi figcaption { display: flex; align-items: center; gap: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: .85rem; font-weight: 700; background: linear-gradient(135deg, var(--blue), var(--purple)); box-shadow: var(--glow-blue); flex-shrink: 0; }
.testi strong { display: block; }
.testi small { color: var(--muted); font-size: .88rem; }
.slider__dots { display: flex; justify-content: center; gap: 4px; margin-top: 28px; }
.slider__dots button { width: 32px; height: 32px; display: grid; place-items: center; }
.slider__dots button::before { content: ""; width: 10px; height: 10px; border-radius: 5px; background: rgba(255,255,255,.2); transition: width var(--dur) var(--ease-out), background var(--dur); }
.slider__dots button[aria-current="true"]::before { width: 28px; background: var(--grad); box-shadow: var(--glow-blue); }
@media (max-width: 860px) { .slider { --per: 1; } .testi { padding: 26px; } }

/* ---------- contact ---------- */
.contact__box {
  position: relative; display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(32px, 5vw, 64px);
  padding: clamp(24px, 5vw, 60px); border-radius: 36px;
  background: linear-gradient(145deg, rgba(20, 26, 64, .75), rgba(8, 10, 26, .85));
  border: 1px solid var(--border-strong); overflow: hidden; isolation: isolate;
  box-shadow: 0 50px 100px -40px rgba(47, 123, 255, .45);
}
.contact__box::before { content: ""; position: absolute; width: 480px; height: 480px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,246,.35), transparent 65%); z-index: -1; }
.contact__box::after { /* goal net pattern */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; pointer-events: none;
  background-image: linear-gradient(45deg, rgba(140,160,255,.07) 1px, transparent 1px), linear-gradient(-45deg, rgba(140,160,255,.07) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(90deg, #000, transparent 55%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 55%);
}
.channels { display: grid; gap: 12px; margin-top: 30px; }
.channel {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--radius); min-height: 64px;
  border: 1px solid var(--border); background: rgba(255,255,255,.02);
  transition: border-color var(--dur), background var(--dur), transform var(--dur) var(--ease-out);
}
.channel:hover { border-color: var(--cyan); background: rgba(56,189,248,.06); transform: translateX(6px); }
.channel__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(47,123,255,.3), rgba(139,92,246,.3)); flex-shrink: 0; }
.channel__icon svg { width: 20px; height: 20px; }
.channel small { display: block; color: var(--muted); font-size: .8rem; }
.channel strong { font-size: 1rem; overflow-wrap: anywhere; }

.form { display: grid; gap: 18px; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .92rem; }
.field abbr { color: var(--cyan); text-decoration: none; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 14px; font-size: 1rem;
  background: rgba(5, 6, 15, .65); border: 1px solid var(--border-strong); color: var(--text);
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2338bdf8' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; cursor: pointer; }
.field select option { background: var(--surface-solid); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(140,160,255,.5); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(56, 189, 248, .18); background: rgba(5,6,15,.9); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(248, 113, 113, .15); }
.field__error { margin: 0; min-height: 0; font-size: .85rem; color: var(--danger); }
.field__error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: rot .7s linear infinite; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .spinner { display: block; }
.btn.is-loading .icon { display: none; }
.form__status { margin: 0; font-weight: 600; min-height: 1.5em; }
.form__status.is-success { color: var(--success); }
.form__status.is-error { color: var(--danger); }
.form__status a { text-decoration: underline; }

@media (max-width: 960px) { .contact__box { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } .contact__box { border-radius: 26px; } }

/* ---------- footer ---------- */
.footer { padding: 40px 0; border-top: 1px solid var(--border); background: rgba(5,6,15,.8); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .brand img { width: 36px; }
.footer__copy { margin: 0; color: var(--muted); font-size: .9rem; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-strong); transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur) var(--ease-spring); }
.footer__social a:hover { border-color: var(--cyan); box-shadow: var(--glow-blue); transform: translateY(-3px); }
.footer__social svg { width: 18px; height: 18px; }
@media (max-width: 620px) { .footer__inner { flex-direction: column; text-align: center; } }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: var(--z-overlay); width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--purple)); box-shadow: var(--glow-blue);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity var(--dur), transform var(--dur) var(--ease-spring);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; color: #fff; }

/* GOAL celebration */
.goal-toast {
  position: fixed; left: 50%; top: 50%; z-index: var(--z-toast); pointer-events: none;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 12vw, 9rem); letter-spacing: .02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 40px rgba(56, 189, 248, .8));
  transform: translate(-50%, -50%) scale(.3); opacity: 0;
}
.goal-toast.is-on { animation: goal 1.9s var(--ease-out) forwards; }
@keyframes goal {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(-8deg); }
  25% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(2deg); }
  40% { transform: translate(-50%, -50%) scale(1) rotate(0); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -60%) scale(1.05); }
}
.confetti { position: fixed; top: 0; left: 0; width: 10px; height: 10px; z-index: var(--z-toast); pointer-events: none; border-radius: 2px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .cursor-glow { display: none; }
}
