:root {
  --red: #e1123d;
  --red-deep: #c20d33;
  --ink: #24282c;
  --slate: #3d4247;
  --gray-1: #6c7176;
  --gray-2: #a9adb1;
  --gray-3: #d6d8db;
  --paper: #f3f4f5;
  --skew: 16deg;
  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }

/* ---------- Hero ---------- */
.hero {
  /* --pl: player left edge, --fy: height of his back foot, --h1: headline size.
     The headline is anchored to these so the "R" always sits over the cut-off foot. */
  --h1: clamp(44px, 5.8vw, 84px); --pl: 35%; --fy: 61.3%;
  position: relative;
  height: clamp(780px, 100vh, 880px);
  height: clamp(780px, 100svh, 880px);
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 46% 96%, rgba(255,255,255,.75), transparent 70%),
    linear-gradient(100deg, #555a5f 0%, #666b70 30%, #b4b8bc 56%, #d3d5d8 72%);
}

/* darker panel to the right of the stripes */
.hero__shade {
  position: absolute; inset: 0 0 0 66%;
  background: linear-gradient(180deg, #7d8287, #9a9ea2);
  transform: skewX(var(--skew)); transform-origin: top left;
  width: 60%;
}

/* nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: flex-start;
  height: 72px; padding: 0 clamp(20px, 3.4vw, 44px);
  background: rgba(52, 57, 62, .9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff;
}
.nav__links { display: flex; gap: clamp(16px, 3vw, 46px); }
.nav__links a { white-space: nowrap; }
.nav__links a {
  text-decoration: none; text-transform: uppercase;
  font-weight: 700; font-size: 13px; letter-spacing: .14em;
}
.nav__links a { position: relative; padding: 10px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s ease-out;
}
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__toggle { display: none; }

/* diagonal stripes */
.stripes {
  position: absolute; top: 0; bottom: 0; left: 56%; width: 22%;
  transform: skewX(var(--skew)); transform-origin: top left;
  z-index: 2;
}
.stripe { position: absolute; top: 0; }
.stripe--wide { left: 14%; width: 46%; height: 100%; background: var(--red); box-shadow: inset -10px 0 0 var(--red-deep); }
.stripe--mid  { left: 0; width: 8%; height: 100%; background: var(--red); }
.stripe--white { left: 86%; width: 2.2%; height: 46%; top: 0; background: #fff; }
.stripe--wide::after { /* white pinstripe through the wide band */
  content: ""; position: absolute; top: 0; bottom: 0; left: 22%; width: 5%; background: #fff;
}
.stripe-front {
  position: absolute; left: 50%; bottom: 0; width: clamp(6px, .7vw, 10px); height: 44%;
  background: var(--red); transform: skewX(var(--skew)); transform-origin: bottom left;
  z-index: 6;
}

/* player cutout */
.hero__player {
  position: absolute; z-index: 5;
  bottom: -1.6%; left: var(--pl);
  height: 84%; aspect-ratio: 995 / 1185;
  pointer-events: none;
}
.hero__player img {
  width: 100%; height: 100%; object-fit: contain; object-position: bottom;
  filter: grayscale(1) contrast(1.08) brightness(1.04) drop-shadow(0 18px 14px rgba(0,0,0,.22));
}

/* copy */
.hero__copy {
  position: absolute; z-index: 8;
  right: calc(100% - var(--pl) - var(--h1) * .16); top: calc(var(--fy) - var(--h1) / 2);
  color: #fff;
}
.hero__copy h1 {
  font-weight: 800; text-transform: uppercase; line-height: 1;
  font-size: var(--h1); letter-spacing: .14em; margin-right: -.14em; white-space: nowrap;
  text-shadow: 0 2px 18px rgba(0,0,0,.18);
}
.hero__copy h1 span { display: inline-block; }
.hero__sub {
  margin-top: 10px; text-transform: uppercase; font-weight: 600;
  font-size: clamp(13px, 1.5vw, 19px); letter-spacing: .34em;
}
.hero__sub, .hero__text { width: 0; min-width: 100%; }
.hero__text { margin-top: 14px; font-size: 14.5px; font-weight: 500; max-width: 50ch; text-shadow: 0 1px 10px rgba(0,0,0,.25); }

.btn {
  display: inline-block; margin-top: 22px; padding: 13px 26px; border-radius: 999px;
  background: var(--red); color: #fff; text-decoration: none; text-transform: uppercase;
  font-weight: 800; font-size: 12.5px; letter-spacing: .14em;
  transition: background-color .15s ease-out, transform .15s ease-out;
}
.btn:active { transform: scale(.97); }
.btn--lg { margin-top: 0; padding: 18px 34px; font-size: 14px; white-space: nowrap; }

@media (hover: hover) {
  .nav__links a:hover::after { transform: scaleX(1); }
  .btn:hover { background: var(--red-deep); }
  .btn--ghost:hover { background: rgba(255,255,255,.16); }
  .team a:hover { color: var(--red); }
}

/* entrance */
@media (prefers-reduced-motion: no-preference) {
  /* red bars: each one shoots in along its own angle, one after another */
  .stripe, .stripe-front { animation: drop 1s cubic-bezier(.16, 1, .3, 1) both; }
  .stripe--wide  { animation-delay: .15s; }
  .stripe--mid   { animation-name: rise; animation-delay: .4s; }
  .stripe--white { animation-delay: .7s; animation-duration: .8s; }
  .stripe-front  { animation-name: rise; animation-delay: .85s; animation-duration: .8s; }
  .hero__shade   { animation: shade 1.1s ease-out both; }
  .page-head::before { animation: drop .9s cubic-bezier(.16, 1, .3, 1) .15s both; }
  .page-head::after  { animation: rise .8s cubic-bezier(.16, 1, .3, 1) .45s both; }
  .hero__player { animation: slide .9s cubic-bezier(.2,.8,.2,1) .45s both; }
  .hero__copy > * { animation: fade .6s ease-out both; }
  .hero__copy > h1 { animation-delay: .45s; }
  /* headline letters: the last one arrives with the player and covers his cut-off foot,
     then the others fade in one by one from right to left */
  .hero__copy > h1.is-split { animation: none; }
  .hero__copy h1 span { animation: letter .5s ease-out both; animation-delay: calc(.45s + var(--n) * .09s); }
  .hero__copy h1 span:last-child { animation: slide .9s cubic-bezier(.2,.8,.2,1) .45s both; }
  .hero__sub  { animation-delay: 1.15s !important; }
  .hero__text { animation-delay: 1.25s !important; }
  .hero__copy > .btn { animation-delay: 1.35s !important; }
}
@keyframes letter { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes shade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop  { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes rise  { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes slide { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes fade  { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; scroll-margin-top: 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px;
  text-transform: uppercase; font-weight: 800; font-size: 12.5px; letter-spacing: .3em; color: var(--red);
}
.eyebrow::before { content: ""; width: 34px; height: 6px; background: var(--red); transform: skewX(calc(var(--skew) * -2)); }
h2 { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; line-height: 1.1; font-size: clamp(28px, 4vw, 46px); text-wrap: balance; }

.about { background: #fff; }
.about__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 6vw, 84px); align-items: start; }
.about__body p { font-size: 17px; color: #454a50; max-width: 56ch; }
.about__body p + p { margin-top: 16px; }
.about__body a { color: var(--red-deep); font-weight: 700; text-underline-offset: 3px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 36px; border-top: 3px solid var(--ink); }
.facts--3 { grid-template-columns: repeat(3, 1fr); }
.facts--wide { grid-column: 1 / -1; grid-template-columns: repeat(5, 1fr); column-gap: clamp(20px, 4vw, 56px); margin-top: 12px; }
.facts--wide div { padding-right: 0; }
.facts div { padding: 18px 14px 0 0; }
.facts dt { text-transform: uppercase; font-size: 11.5px; font-weight: 700; letter-spacing: .2em; color: var(--gray-1); }
.facts dd { font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; font-variant-numeric: tabular-nums; }
.facts dt { white-space: nowrap; }
.facts dd.facts__sm { font-size: clamp(16px, 1.7vw, 20px); line-height: 1.3; padding-top: 12px; }

.teams { background: var(--slate); color: #fff; position: relative; overflow: hidden; }
.teams::before, .teams::after {
  content: ""; position: absolute; top: 0; bottom: 0; background: var(--red);
  transform: skewX(var(--skew)); transform-origin: top;
}
.teams::before { right: 9%; width: 54px; }
.teams::after { right: calc(9% - 26px); width: 8px; background: #fff; opacity: .85; }
.teams .wrap { position: relative; }
.eyebrow--light { color: #fff; }
.teams__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.team { background: #fff; color: var(--ink); padding: 26px 26px 28px; display: flex; flex-direction: column; border-bottom: 6px solid var(--red); }
.team__logo { height: 150px; display: grid; place-items: center; margin-bottom: 22px; background: var(--paper); padding: 18px; }
.team__logo img { max-height: 114px; width: auto; max-width: 100%; object-fit: contain; }
.team__tag { text-transform: uppercase; font-size: 11.5px; font-weight: 700; letter-spacing: .22em; color: var(--red); }
.team h3 { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 22px; margin: 4px 0 8px; }
.team p:not(.team__tag) { font-size: 15px; color: #4a4f55; margin-bottom: 18px; }
.team a { margin-top: auto; font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em; text-decoration: none; padding: 8px 0; transition: color .15s; }

.contact { background: var(--paper); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 84px); align-items: start; }
.contact h2 { max-width: 16ch; }
.contact__intro p:not(.eyebrow) { margin: 18px 0 26px; font-size: 17px; color: #454a50; max-width: 36ch; }
.form { display: grid; gap: 18px; background: #fff; padding: clamp(22px, 3vw, 36px); border-top: 6px solid var(--red); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field span { font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #555a5f; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 14px; border: 2px solid var(--gray-3); border-radius: 0; background: var(--paper);
  transition: border-color .15s, background-color .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form button.btn { border: 0; cursor: pointer; font-family: inherit; }
.form__status { font-size: 14.5px; font-weight: 600; color: #2f3439; flex: 1 1 220px; }

.footer { background: var(--ink); color: #fff; padding: 26px 0; font-size: 12.5px; }
.footer__inner { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; }
.footer__fine { font-weight: 500; letter-spacing: .04em; text-transform: none; color: #aeb3b8; }

@media (max-width: 1150px) {
  .hero__text { font-size: 13.5px; line-height: 1.5; }
}

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .hero__text { font-size: 13px; }
  .hero__copy .btn { margin-top: 16px; }
  .nav__links a { font-size: 12px; letter-spacing: .1em; }
  .hero { --pl: 34%; --fy: 65.1%; height: clamp(840px, 100svh, 880px); }
  .hero__player { height: 76%; }
  .teams__grid { grid-template-columns: 1fr; max-width: 520px; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .facts--wide { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
}

/* ---------- Phone ---------- */
@media (max-width: 700px) {
  .nav { height: 62px; }
  .nav__toggle {
    display: grid; gap: 5px; width: 44px; height: 44px; place-content: center;
    background: none; border: 0; padding: 0; cursor: pointer; margin-left: -10px;
  }
  .nav__toggle span { width: 24px; height: 2.5px; background: #fff; }
  .nav__links {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #34393e; padding: 6px 20px 14px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { display: block; padding: 14px 0; font-size: 14px; letter-spacing: .14em; }

  .hero { height: clamp(770px, 100svh, 820px); background: linear-gradient(170deg, #555a5f 0%, #6a6f74 34%, #c4c7ca 64%, #dcdee0 100%); }
  .hero__copy { left: 22px; right: 22px; top: 92px; }
  .hero__copy h1 { margin-right: 0; }
  .hero__sub, .hero__text { width: auto; min-width: 0; }
  .hero__copy h1 { font-size: clamp(40px, 13vw, 58px); letter-spacing: .12em; }
  .hero__sub { letter-spacing: .26em; }
  .hero__text { font-size: 14px; line-height: 1.6; margin-top: 12px; max-width: none; padding-right: 8%; }
  .btn { margin-top: 20px; }

  .stripes { left: 72%; width: 40%; }
  .hero__shade { left: 84%; }
  .stripe-front { left: 20%; height: 30%; }
  .hero__player { left: -5.5vw; height: auto; width: min(90vw, 400px); bottom: -6px; }

  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 8px; }
  .facts--3 div:last-child, .facts--wide div:last-child { grid-column: 1 / -1; }
  .facts--wide { column-gap: 20px; }
  .teams::before { right: -10px; width: 34px; }
  .teams::after { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .btn--lg { white-space: normal; text-align: center; }
}

@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  @keyframes slide { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
}

/* ---------- Media page ---------- */

.page-head { position: relative; overflow: hidden; background: linear-gradient(100deg, #4f5459, #666b70); color: #fff; padding: calc(72px + clamp(56px, 8vw, 104px)) 0 clamp(48px, 7vw, 88px); }
.page-head::before, .page-head::after { content: ""; position: absolute; top: 0; bottom: 0; transform: skewX(var(--skew)); transform-origin: top; }
.page-head::before { right: 16%; width: clamp(40px, 7vw, 96px); background: var(--red); }
.page-head::after { right: calc(16% - 30px); width: 8px; background: #fff; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { font-weight: 800; text-transform: uppercase; letter-spacing: .14em; line-height: 1; font-size: clamp(40px, 6vw, 80px); }
.page-head p { margin-top: 14px; font-weight: 500; max-width: 40ch; }
.gallery { padding: clamp(48px, 7vw, 88px) 0; scroll-margin-top: 72px; }
.gallery--alt { background: var(--paper); }
.gallery h2 { margin-bottom: 32px; }
.gallery__grid.gallery__grid--video { grid-template-columns: repeat(2, 1fr); }
.gallery__grid.gallery__grid--video figure { aspect-ratio: 16 / 9; background: var(--ink); }
.gallery__grid.gallery__grid--video iframe, .gallery__grid.gallery__grid--video video { width: 100%; height: 100%; border: 0; display: block; }
.page-head__jump { display: flex; gap: 12px; margin-top: 26px; }
.page-head__jump .btn { margin-top: 0; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 2px #fff; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery__grid figure { margin: 0; aspect-ratio: 4 / 5; background: var(--paper); overflow: hidden; position: relative; }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery__grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-size: 13px; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.gallery__empty { display: grid; place-items: center; text-align: center; color: #555a5f; border: 2px dashed var(--gray-2); background: #fff !important; padding: 20px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
@media (max-width: 980px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .gallery__grid { gap: 10px; } .gallery__grid.gallery__grid--video { grid-template-columns: 1fr; } .page-head::before { right: 4%; } .page-head::after { display: none; }  }

/* ---------- Background soccer ball (moved and spun by site.js) ---------- */
.bgball { position: fixed; top: 0; left: 0; z-index: 20; pointer-events: none; width: clamp(220px, 34vw, 460px); aspect-ratio: 1; opacity: 0; will-change: transform, opacity; }
.bgball::before { content: ""; position: absolute; inset: 0; opacity: .16; background: url("assets/ball.webp") center / contain no-repeat; }
/* text, cards and forms sit above the ball, so it only shows on the section backgrounds */
main .wrap, .page-head .wrap, .footer .wrap { position: relative; z-index: 21; }
