/* soccasyria.com — one page, one stylesheet. Brand tokens mirror the Syria
   Rebuild identity (greens, deep green, white); the red is the flag's and is
   used only as the thinnest of accents. */

:root {
  --green: #016937;
  --green-bright: #03a14a;
  --green-deep: #012716;
  --red: #b52025;
  --ink: #1b1b1b;
  --paper: #f6f7f4;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.18);
  --font-ar: "Noor", "Tajawal", "Segoe UI", system-ui, sans-serif;
  --font-latin: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

@font-face {
  font-family: "Noor";
  src: url("fonts/Noor-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+0020-002F, U+003A-0040;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--green-deep);
  color: var(--white);
  font-family: var(--font-latin);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body {
  font-family: var(--font-ar);
  line-height: 1.75;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--white);
  color: var(--green-deep);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 1rem;
}

/* ---- header ------------------------------------------------------------ */

.top {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(1rem, env(safe-area-inset-top)) clamp(1rem, 4vw, 2.5rem) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-height: 44px;
}
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--white);
  padding: 2px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.brand span {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(1, 39, 22, 0.55);
  backdrop-filter: blur(8px);
}
.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  padding: 0 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.lang a:hover {
  color: var(--white);
}
.lang a[aria-current="page"] {
  background: var(--green-bright);
  color: var(--green-deep);
}

/* ---- hero -------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  /* Leave room for the record strip, so the first screen ends on the numbers. */
  min-height: calc(100svh - 6.5rem);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero picture,
.hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  z-index: -2;
}
.hero picture img {
  /* Cinematic grade: cooler, denser, so the type carries the frame. */
  filter: saturate(0.82) contrast(1.06) brightness(0.92);
}
.hero picture {
  overflow: hidden;
  will-change: transform;
}

/* Giant outlined wordmark straddling the hero's foot — typography as
   identity, the photograph showing through the strokes. */
.wordmark {
  position: absolute;
  inset-inline-end: -0.06em;
  bottom: -0.16em;
  z-index: 0;
  font-size: clamp(6rem, 24vw, 22rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.34);
  text-stroke: 1.5px rgba(255, 255, 255, 0.34);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
html[lang="ar"] .wordmark {
  letter-spacing: 0;
  inset-inline-end: -0.04em;
  bottom: -0.1em;
  font-size: clamp(6rem, 26vw, 24rem);
}

/* Directional scrim: dense where the copy sits, clearing to the far side so
   the photograph is seen. Flipped for RTL so it always follows the text. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(1, 39, 22, 0.94) 0%, rgba(1, 39, 22, 0.55) 45%, rgba(1, 39, 22, 0.15) 100%),
    linear-gradient(to right, rgba(1, 39, 22, 0.7) 0%, rgba(1, 39, 22, 0.25) 55%, rgba(1, 39, 22, 0) 100%);
}
html[dir="rtl"] .hero::before {
  background:
    linear-gradient(to top, rgba(1, 39, 22, 0.94) 0%, rgba(1, 39, 22, 0.55) 45%, rgba(1, 39, 22, 0.15) 100%),
    linear-gradient(to left, rgba(1, 39, 22, 0.7) 0%, rgba(1, 39, 22, 0.25) 55%, rgba(1, 39, 22, 0) 100%);
}

/* The one Syrian cue: a hairline of the flag's colours along the hero's foot. */
.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(to right, var(--green) 0 33.3%, var(--white) 33.3% 66.6%, var(--ink) 66.6% 100%);
  opacity: 0.85;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * clamp(1rem, 4vw, 2.5rem), 1200px);
  margin-inline: auto;
  padding: clamp(5rem, 9svh, 6.5rem) 0 4.25rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-bright);
}
.kicker::before {
  content: "";
  width: 2.25rem;
  height: 2px;
  background: var(--green-bright);
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.6rem, min(10.5vw, 12.5svh), 7.2rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}
h1 span {
  display: inline-block;
}
html[lang="ar"] h1 {
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
  max-width: 14ch;
  font-size: clamp(2.4rem, min(9.5vw, 11.5svh), 6.6rem);
}

.intro {
  margin: 1rem 0 0;
  max-width: 62ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.55;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
  margin-top: 1.5rem;
}

/* Primary button: bright-green pill, deep-green text (6.5:1), arrow in a
   dark puck that slides forward on hover. One vocabulary for every button. */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 56px;
  padding: 0.4rem 0.4rem 0.4rem 1.6rem;
  border-radius: 999px;
  background: var(--green-bright);
  color: var(--green-deep);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 18px 40px -16px rgba(3, 161, 74, 0.7);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.25s ease;
}
html[dir="rtl"] .cta {
  padding: 0.4rem 1.6rem 0.4rem 0.4rem;
  letter-spacing: 0;
}
.cta .puck {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--green-deep);
  color: var(--white);
  transition: transform 0.3s var(--ease), background-color 0.25s ease;
}
.cta svg {
  width: 20px;
  height: 20px;
}
html[dir="rtl"] .cta svg {
  transform: scaleX(-1);
}
.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  background: var(--white);
  box-shadow: 0 22px 46px -16px rgba(0, 0, 0, 0.55);
}
.cta:hover .puck,
.cta:focus-visible .puck {
  background: var(--green-bright);
  transform: translateX(4px);
}
html[dir="rtl"] .cta:hover .puck,
html[dir="rtl"] .cta:focus-visible .puck {
  transform: translateX(-4px);
}
.cta:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

/* ---- official accounts --------------------------------------------------- */

.links {
  position: relative;
  background: var(--green-deep);
  color: var(--white);
  padding: clamp(3.5rem, 9vh, 6.5rem) 0;
  border-top: 1px solid var(--line);
}
.links-inner {
  width: min(100% - 2 * clamp(1rem, 4vw, 2.5rem), 1200px);
  margin-inline: auto;
}
.links .kicker {
  margin-bottom: 0.75rem;
}
.links h2 {
  margin: 0 0 2rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
html[lang="ar"] .links h2 {
  letter-spacing: 0;
  line-height: 1.35;
}
.accounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Every channel is the same card: plate on top, handle, owner line, arrow
   puck pinned to the bottom. Height is uniform because the grid stretches
   rows and the puck takes the remaining space. */
.accounts a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  height: 100%;
  min-height: 212px;
  padding: 1.25rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  text-decoration: none;
  transition: transform 0.3s var(--ease), border-color 0.25s ease, background-color 0.25s ease;
}
.accounts a:hover,
.accounts a:focus-visible {
  transform: translateY(-3px);
  border-color: var(--green-bright);
  background: rgba(255, 255, 255, 0.08);
}
.accounts .plate {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: background-color 0.25s ease;
}
.accounts .primary .plate {
  background: var(--green);
}
.accounts a:hover .plate {
  background: var(--green-bright);
}
.accounts a[data-platform="instagram"]:hover .plate {
  background: linear-gradient(45deg, #f58529, #dd2a7b 55%, #8134af);
}
.accounts a[data-platform="facebook"]:hover .plate {
  background: #1877f2;
}
.accounts a[data-platform="youtube"]:hover .plate {
  background: #ff0000;
}
.accounts svg {
  width: 26px;
  height: 26px;
}
.accounts .text {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  width: 100%;
}
.accounts .platform {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.accounts .handle {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
/* The handle is LTR text; keep it on the card's reading edge in RTL. */
html[dir="rtl"] .accounts .handle {
  text-align: right;
}
.accounts .owner {
  font-size: 0.82rem;
  color: var(--green-bright);
  font-weight: 600;
}
.accounts .go {
  flex: none;
  margin-top: auto;
  align-self: flex-end;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: transform 0.3s var(--ease), background-color 0.25s ease, color 0.25s ease;
}
.accounts .go svg {
  width: 18px;
  height: 18px;
}
html[dir="rtl"] .accounts .go svg {
  transform: scaleX(-1);
}
.accounts a:hover .go {
  color: var(--green-deep);
  background: var(--green-bright);
  transform: translateX(4px);
}
html[dir="rtl"] .accounts a:hover .go {
  transform: translateX(-4px);
}
/* The team's own accounts are marked, not enlarged. */
.accounts .primary a {
  border-color: rgba(3, 161, 74, 0.55);
  background: rgba(3, 161, 74, 0.1);
}

@media (max-width: 720px) {
  .accounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .accounts a {
    min-height: 196px;
    padding: 1rem;
  }
}
@media (max-width: 420px) {
  .accounts {
    grid-template-columns: 1fr;
  }
  .accounts a {
    min-height: 0;
  }
}

/* ---- curtain (preloader) ------------------------------------------------ */
/* A brand curtain: crest, outlined wordmark filling in, slogan, progress
   hairline. Lifts when the hero image is decoded (900–1600 ms). Once per
   session, skipped under reduced motion, and self-lifting via CSS if the
   script never runs. */

.curtain {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--green-deep);
  color: var(--white);
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.85s var(--ease);
  overflow: hidden;
}
.curtain::before {
  /* soft green bloom behind the crest */
  content: "";
  position: absolute;
  width: 70vmin;
  height: 70vmin;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(3, 161, 74, 0.28), transparent);
  animation: curtain-bloom 1.6s var(--ease) both;
}
.curtain.is-lifted {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}
html.curtain-skip .curtain {
  display: none;
}
/* No JavaScript: lift on a timer instead of staying forever. */
html:not(.curtain-on):not(.curtain-skip) .curtain {
  animation: curtain-autolift 0.85s var(--ease) 2.4s forwards;
}
.curtain-inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  text-align: center;
}
.curtain-inner img {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: var(--white);
  padding: 6px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  animation: curtain-pop 0.9s var(--ease) both;
}
.curtain-word {
  margin: 0.75rem 0 0;
  font-size: clamp(3rem, 12vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55);
  text-stroke: 1.5px rgba(255, 255, 255, 0.55);
  animation: curtain-fill 1.1s var(--ease) 0.35s both;
}
html[lang="ar"] .curtain-word {
  letter-spacing: 0;
  line-height: 1.15;
}
.curtain-slogan {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-bright);
  animation: curtain-rise 0.8s var(--ease) 0.7s both;
}
html[lang="ar"] .curtain-slogan {
  letter-spacing: 0;
  text-transform: none;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
}
.curtain-bar {
  position: relative;
  width: 160px;
  height: 2px;
  margin-top: 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.curtain-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green-bright);
  transform-origin: 0 50%;
  transform: scaleX(0);
  animation: curtain-bar 1.5s var(--ease) 0.2s forwards;
}
html[dir="rtl"] .curtain-bar::after {
  transform-origin: 100% 50%;
}
/* Hold the hero's entrance until the curtain lifts, so it plays into view. */
html.curtain-on .reveal,
html.curtain-on h1 span,
html.curtain-on .hero picture img {
  animation-play-state: paused;
}
@keyframes curtain-pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes curtain-fill {
  from { color: transparent; transform: translateY(0.15em); }
  to { color: var(--white); transform: translateY(0); }
}
@keyframes curtain-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes curtain-bar {
  to { transform: scaleX(1); }
}
@keyframes curtain-bloom {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes curtain-autolift {
  to { clip-path: inset(0 0 100% 0); visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .curtain {
    display: none;
  }
}

/* ---- record strip (under the hero) ---------------------------------------- */

.record {
  position: relative;
  z-index: 2;
  width: min(100% - 2 * clamp(1rem, 4vw, 2.5rem), 1200px);
  margin: -2.75rem auto 0;
}
.record ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}
.record li {
  display: grid;
  gap: 0.15rem;
  padding: 1.1rem 1.25rem;
  background: rgba(1, 39, 22, 0.86);
  color: var(--white);
}
.record b {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
html[lang="ar"] .record b {
  letter-spacing: 0;
}
.record small {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
@media (max-width: 720px) {
  .hero {
    min-height: calc(100svh - 9rem);
  }
  /* The story is told by the record strip and results right below. */
  .intro .story {
    display: none;
  }
  .hero-inner {
    padding-top: 4.5rem;
  }
  .record {
    margin-top: -1.5rem;
  }
  .record ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .record li {
    padding: 0.9rem 1rem;
  }
}

/* ---- next-match card (takes the strip's place while a season is live) ---- */

.next-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: 20px;
  background: rgba(1, 39, 22, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  color: var(--white);
}
.next-kicker {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-bright);
}
.next-tie {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
}
.next-tie .side {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.next-tie .flag {
  font-size: 1.6rem;
}
.next-tie .vs {
  color: var(--muted);
}
.next-meta {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}
.next-meta dt {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.next-meta dd {
  margin: 0;
  font-weight: 700;
}
.next-meta small {
  font-weight: 500;
  color: var(--muted);
}
.cta.small {
  min-height: 48px;
  font-size: 0.95rem;
}
.cta.small .puck {
  width: 38px;
  height: 38px;
}
@media (max-width: 720px) {
  .next-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }
}

/* ---- results ----------------------------------------------------------- */

.results {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(3.5rem, 9vh, 6.5rem) 0 clamp(2.5rem, 6vh, 4rem);
}
.results-inner {
  width: min(100% - 2 * clamp(1rem, 4vw, 2.5rem), 1200px);
  margin-inline: auto;
}
.results .kicker {
  color: var(--green);
  margin-bottom: 0.75rem;
}
.results .kicker::before {
  background: var(--green);
}
.results h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--green-deep);
}
html[lang="ar"] .results h2 {
  letter-spacing: 0;
  line-height: 1.35;
}
.results .lead {
  margin: 0.75rem 0 2rem;
  max-width: 60ch;
  color: #4a5550;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
}
.fixtures {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fixture {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid #e3e8e3;
  border-inline-start: 4px solid #cfd6d0;
}
.fixture.win {
  border-inline-start-color: var(--green-bright);
}
.fixture.loss {
  border-inline-start-color: var(--red);
}
.fixture .meta {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.fixture .stage {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
}
.fixture time {
  font-size: 0.85rem;
  color: #61706a;
}
.fixture .tie {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}
.fixture .side {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  font-weight: 700;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}
.fixture .side.away {
  justify-content: flex-end;
  text-align: end;
}
.fixture .side.syria {
  color: var(--green-deep);
}
.fixture .flag {
  font-size: 1.4rem;
  line-height: 1;
}
.fixture .score {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--green-deep);
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  direction: ltr;
}
.fixture .tag {
  justify-self: end;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #e8f1ea;
  color: var(--green);
}
.fixture.loss .tag {
  background: #f8e9ea;
  color: var(--red);
}
.results .source {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
}
.results .source a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--green);
  font-weight: 600;
}
.results .source svg {
  width: 18px;
  height: 18px;
  flex: none;
}
html[dir="rtl"] .results .source svg {
  transform: scaleX(-1);
}
@media (max-width: 720px) {
  .fixture {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .fixture .tag {
    justify-self: start;
  }
}

/* ---- seasons archive ------------------------------------------------------ */

.seasons {
  background: var(--paper);
  color: var(--ink);
  padding: 0 0 clamp(3.5rem, 9vh, 6.5rem);
}
.seasons-inner {
  width: min(100% - 2 * clamp(1rem, 4vw, 2.5rem), 1200px);
  margin-inline: auto;
}
.seasons ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.seasons li {
  padding: 1.25rem;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid #e3e8e3;
}
.seasons li b {
  display: block;
  font-size: 1.1rem;
  color: var(--green-deep);
}
.seasons li small {
  color: #61706a;
}

/* ---- marquee ------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  background: var(--green);
  color: var(--white);
  border-block: 1px solid rgba(255, 255, 255, 0.12);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  padding: 0.85rem 0;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  padding-inline: 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
html[lang="ar"] .marquee-track span {
  letter-spacing: 0;
  text-transform: none;
  font-size: 1.05rem;
}
/* The team's own slogan, set as a highlighted line under the headline. */
.slogan {
  margin: 1.1rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--green-bright);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.slogan::before {
  content: "";
  width: 2.5rem;
  height: 3px;
  border-radius: 999px;
  background: var(--green-bright);
}
html[lang="ar"] .slogan {
  letter-spacing: 0;
  font-size: clamp(1.4rem, 2.9vw, 2.1rem);
}

.marquee-track span::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-inline-start: 1.75rem;
  border-radius: 999px;
  background: var(--green-bright);
}

/* ---- squad ---------------------------------------------------------------- */

.squad {
  position: relative;
  isolation: isolate;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(3.5rem, 9vh, 6.5rem) 0;
}
/* Pattern ground: a fine green dot grid that fades out down the section,
   plus a soft green wash behind the heading. Pure CSS, no asset. */
.squad::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(1, 105, 55, 0.16) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
  pointer-events: none;
}
.squad::after {
  content: "";
  position: absolute;
  inset-inline-start: -10%;
  top: -10%;
  z-index: -1;
  width: 60%;
  height: 60%;
  background: radial-gradient(closest-side, rgba(3, 161, 74, 0.14), transparent);
  pointer-events: none;
}
.squad-inner {
  width: min(100% - 2 * clamp(1rem, 4vw, 2.5rem), 1200px);
  margin-inline: auto;
}
.squad .kicker {
  color: var(--green);
  margin-bottom: 0.75rem;
}
.squad .kicker::before {
  background: var(--green);
}
.squad h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--green-deep);
}
html[lang="ar"] .squad h2 {
  letter-spacing: 0;
  line-height: 1.35;
}
.squad .lead {
  margin: 0.75rem 0 0;
  max-width: 62ch;
  color: #4a4f48;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
}
.group {
  margin-top: clamp(2rem, 4vw, 3rem);
}
.group h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
}
.group h3::before,
.group h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dfe3dc;
}
/* Centred lineup: short rows (two keepers, four defenders) sit in the
   middle like a team sheet instead of hugging one edge. */
.people {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.people li {
  flex: 0 0 156px;
  max-width: 156px;
}
@media (max-width: 480px) {
  .people li {
    flex-basis: calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
  }
}
.people figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
}
.people picture,
.people .ph {
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 999px;
  overflow: hidden;
  /* One backdrop for every portrait: the registration photos come on white
     and grey; multiplied onto this disc they read as a single set. */
  background: #dfeee4;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 4px #d6ddd3, 0 14px 30px -18px rgba(1, 39, 22, 0.5);
}
.people img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  mix-blend-mode: multiply;
  transition: transform 0.4s var(--ease);
}
.people figure:hover img {
  transform: scale(1.04);
}
.people .ph {
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
}
.people figcaption {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.people b {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.people small {
  font-size: 0.8rem;
  color: #5b5f57;
}
.people .num {
  display: inline-grid;
  place-items: center;
  justify-self: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  margin-top: -1.9rem;
  margin-bottom: 0.35rem;
  border-radius: 999px;
  background: var(--green-deep);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 3px var(--paper);
  position: relative;
  z-index: 1;
}
.group.staff .people {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.group.staff .ph {
  background: var(--green-deep);
  color: var(--white);
}
@media (max-width: 640px) {
  .people {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem 0.5rem;
  }
  .people picture,
  .people .ph {
    width: 88px;
    height: 88px;
  }
  .people b {
    font-size: 0.86rem;
  }
  .group.staff .people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- footer -------------------------------------------------------------- */

.foot {
  background: var(--green-deep);
  color: var(--muted);
  padding: 1.75rem 0 max(1.75rem, env(safe-area-inset-bottom));
  font-size: 0.86rem;
}
.foot-inner {
  width: min(100% - 2 * clamp(1rem, 4vw, 2.5rem), 1200px);
  margin-inline: auto;
  display: grid;
  gap: 0.6rem;
}
.foot p {
  margin: 0;
}
.foot a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}
.foot a:hover {
  text-decoration-color: var(--white);
}
.foot .legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}
.foot .legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.foot .fine {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---- motion (opt-in only) --------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise 0.9s var(--ease) both;
  }
  .reveal:nth-child(2) { animation-delay: 0.08s; }
  .reveal:nth-child(3) { animation-delay: 0.42s; }
  .reveal:nth-child(4) { animation-delay: 0.52s; }
  .reveal:nth-child(5) { animation-delay: 0.62s; }
  /* Headline words land one after another. */
  h1 span {
    animation: word 0.8s var(--ease) both;
    animation-delay: calc(0.12s + var(--i) * 0.07s);
  }
  /* Time-based and scroll-driven animations live on different elements:
     Chrome 152 skipped painting the image entirely while both shared it. */
  .hero picture img {
    animation: settle 1.6s var(--ease) both;
  }
  .hero picture {
    animation: parallax linear both;
    animation-timeline: scroll(root);
    animation-range: 0 100vh;
  }
  .wordmark {
    animation: drift linear both;
    animation-timeline: scroll(root);
    animation-range: 0 100vh;
  }
  .marquee-track {
    animation: marquee 38s linear infinite;
  }
  html[dir="rtl"] .marquee-track {
    animation-name: marquee-rtl;
  }
  /* Fail-open: no fill outside the range, so nothing stays invisible if the
     scroll timeline never advances (occluded tabs, print, full-page capture). */
  .people li {
    animation: rise 0.7s var(--ease) none;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
  .accounts li {
    animation: rise 0.7s var(--ease) none;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes word {
  from { opacity: 0; transform: translateY(0.35em); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes settle {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}
@keyframes parallax {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(14%) scale(1.06); }
}
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-6%); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marquee-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

/* ---- breakpoints --------------------------------------------------------- */

@media (max-width: 640px) {
  .brand span {
    display: none;
  }
  .wordmark {
    font-size: 30vw;
    bottom: -0.12em;
  }
  .hero-inner {
    padding-bottom: 5rem;
  }
  .hero-inner {
    padding-top: 6rem;
  }
  .hero picture img {
    object-position: 60% 40%;
  }
  .cta {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 1800px) {
  .hero picture img {
    object-position: 50% 30%;
  }
}
