:root {
  --red: #C1272D;
  --red-dark: #8E1D22;
  --green: #006233;
  --forest: #073B2C;
  --forest-deep: #03271D;
  --forest-soft: #115540;
  --lime: #C7F36B;
  --mint: #DDF4E6;
  --sand: #F6F3EC;
  --sand-dark: #E5DED1;
  --ink: #17251F;
  --ink-soft: #52635B;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
svg { width: 1em; height: 1em; flex: none; }

h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.9rem, 8vw, 5.6rem);
  line-height: .9;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.eyebrow {
  margin-bottom: 18px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}
.lede {
  margin-top: 22px;
  max-width: 34ch;
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
}

/* Top bar */
.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) 16px;
  color: #fff;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.topbar-nav { display: none; gap: 28px; margin-inline-start: auto; }
.topbar-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  opacity: .82;
  transition: opacity .2s;
}
.topbar-nav a:hover { opacity: 1; }
.langs {
  direction: ltr;
  margin-inline-start: auto;
  display: flex;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  background: rgba(3, 39, 29, .35);
  backdrop-filter: blur(6px);
}
.lang {
  min-width: 36px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--display);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lang[lang="ar"] { font-family: "Cairo", sans-serif; font-size: 1rem; letter-spacing: 0; }
.lang.is-active { background: var(--lime); color: var(--forest-deep); }
.lang:hover:not(.is-active) { color: var(--lime); }
@media (min-width: 760px) {
  .topbar-nav { display: flex; }
  .langs { margin-inline-start: 4px; }
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px var(--gutter) clamp(40px, 8vh, 88px);
  overflow: hidden;
  background: var(--forest-deep) var(--poster, none) center / cover no-repeat;
  color: #fff;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero-video.is-playing { opacity: 1; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(1, 13, 9, .55) 0%, rgba(1, 13, 9, 0) 22%),
    linear-gradient(0deg, rgba(3, 39, 29, .96) 0%, rgba(3, 39, 29, .6) 38%, rgba(3, 39, 29, 0) 70%);
}
.hero-inner { width: 100%; max-width: var(--max); margin: 0 auto; }
.topbar-brand, .hero-brand, .footer-brand, .social-name, .social-handle, .footer-mail { direction: ltr; }
.hero-brand {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(5rem, 24vw, 15.5rem);
  line-height: .8;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.hero-brand span:last-child { color: var(--lime); }
.hero-tagline {
  margin-top: clamp(20px, 3vw, 32px);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1;
  text-transform: uppercase;
}
.hero-line {
  margin-top: 10px;
  max-width: 36ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, .78);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (min-width: 980px) {
  .hero-brand { flex-direction: row; gap: 0; font-size: clamp(8rem, 13.5vw, 13.5rem); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #D42F35; }
.btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: var(--lime); color: var(--forest-deep); box-shadow: none; }

/* Game sections */
.game {
  display: grid;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(80px, 12vw, 150px) var(--gutter);
}
.game-lharba {
  max-width: none;
  background: var(--forest-deep);
  color: #fff;
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2));
}
.game-lharba .eyebrow { color: var(--lime); }
.game-lharba .lede { color: rgba(255, 255, 255, .72); }
.game-shot { justify-self: center; width: min(100%, 280px); }
@media (min-width: 900px) {
  .game { grid-template-columns: 1.2fr 1fr; }
  .game-shot { width: 320px; }
  .game-lharba { grid-template-columns: 1fr 1.2fr; }
  .game-lharba .game-shot { order: -1; }
}

.facts { margin-top: 40px; max-width: 520px; }
.facts li {
  display: grid;
  grid-template-columns: minmax(130px, 38%) 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1.5px solid var(--sand-dark);
}
.facts li:last-child { border-bottom: 1.5px solid var(--sand-dark); }
.facts strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--green);
}
.facts span { color: var(--ink-soft); }

.steps { margin-top: 40px; max-width: 540px; counter-reset: step; }
.steps li {
  position: relative;
  padding-block: 18px;
  padding-inline-start: 64px;
  border-top: 1.5px solid rgba(255, 255, 255, .14);
  counter-increment: step;
}
.steps li::before {
  content: "0" counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 16px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  color: var(--lime);
}
.steps h3 { font-size: 1.1rem; font-weight: 800; }
.steps p { margin-top: 4px; color: rgba(255, 255, 255, .68); font-size: 1rem; }

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 32px;
  max-width: 560px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.15;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
}
.cards li { display: flex; align-items: center; gap: 14px; }
.cards li + li::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--red);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

/* Screenshot frames */
.shot-frame {
  position: relative;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  border-radius: 34px;
  background: var(--forest);
  box-shadow: 0 30px 60px -24px rgba(3, 39, 29, .55), 0 0 0 1px rgba(3, 39, 29, .12);
}
.game-lharba .shot-frame { box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .14); }
.game-lharba .shot-placeholder {
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .04) 0 44px, transparent 44px 88px),
    radial-gradient(120% 60% at 50% 0%, #1E7255, var(--forest));
}
.shot-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 22px;
  color: #fff;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .035) 0 44px, transparent 44px 88px),
    radial-gradient(120% 60% at 50% 0%, var(--forest-soft), var(--forest-deep));
}
.shot-placeholder::before {
  content: "";
  position: absolute;
  top: 26%;
  left: 50%;
  width: 46%;
  aspect-ratio: 1;
  translate: -50% 0;
  border: 1.5px solid rgba(199, 243, 107, .3);
  border-radius: 50%;
}
.shot-placeholder strong {
  font-family: var(--display);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--lime);
}
.shot-placeholder code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .72rem;
  color: rgba(255, 255, 255, .55);
  word-break: break-all;
}
.shot figcaption, .gallery-item figcaption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 16px;
  font-weight: 800;
  font-size: .95rem;
}
.shot-index { font-family: var(--display); font-weight: 900; color: var(--red); }
.game-lharba .shot-index { color: var(--lime); }

/* Gallery */
.gallery { padding: clamp(80px, 11vw, 140px) 0; background: var(--sand-dark); }
.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto 44px;
  padding: 0 var(--gutter);
}
.gallery-head h2 { max-width: 13ch; }
.gallery-nav { display: none; gap: 10px; }
.gallery-nav button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--forest);
  border-radius: 50%;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.gallery-nav button:hover { background: var(--forest); color: var(--lime); }
.gallery-nav svg { width: 20px; height: 20px; }
[data-gallery="-1"] svg { transform: scaleX(-1); }
[dir="rtl"] [data-gallery="-1"] svg { transform: none; }
[dir="rtl"] [data-gallery="1"] svg { transform: scaleX(-1); }
@media (min-width: 760px) { .gallery-nav { display: flex; } }

.gallery-track {
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 64vw, 276px);
  gap: clamp(16px, 2.4vw, 28px);
  padding: 4px var(--edge) 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item { scroll-snap-align: start; }

/* Social */
.social {
  padding: clamp(80px, 11vw, 140px) max(var(--gutter), calc((100% - var(--max)) / 2));
  background: var(--red);
  color: #fff;
}
.social-head { display: grid; gap: 18px; margin-bottom: 48px; }
.social-head p { max-width: 40ch; font-size: 1.12rem; color: rgba(255, 255, 255, .85); }
@media (min-width: 900px) {
  .social-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; }
}
.social-links li { border-top: 1.5px solid rgba(255, 255, 255, .35); }
.social-links li:last-child { border-bottom: 1.5px solid rgba(255, 255, 255, .35); }
.social-links a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px 18px;
  padding: clamp(20px, 3vw, 30px) 0;
  text-decoration: none;
  transition: color .25s;
}
.social-icon { width: clamp(28px, 4vw, 44px); height: clamp(28px, 4vw, 44px); }
.social-name {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 6rem);
  line-height: .9;
  text-transform: uppercase;
}
.social-handle {
  grid-column: 2;
  font-weight: 700;
  color: rgba(255, 255, 255, .8);
}
.social-arrow {
  grid-column: 3;
  grid-row: 1 / span 2;
  width: clamp(28px, 4vw, 48px);
  height: clamp(28px, 4vw, 48px);
  transition: transform .3s var(--ease);
}
[dir="rtl"] .social-arrow { transform: scaleX(-1); }
.social-links a:hover { color: var(--lime); }
.social-links a:hover .social-arrow { transform: translateX(8px); }
[dir="rtl"] .social-links a:hover .social-arrow { transform: translateX(-8px) scaleX(-1); }
@media (min-width: 760px) {
  .social-links a { grid-template-columns: auto auto 1fr auto; }
  .social-handle { grid-column: 3; justify-self: end; font-size: 1.15rem; }
  .social-arrow { grid-column: 4; grid-row: 1; }
}

/* Footer */
.footer {
  padding: 56px max(var(--gutter), calc((100% - var(--max)) / 2)) max(36px, env(safe-area-inset-bottom));
  background: var(--forest-deep);
  color: #fff;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.8rem;
  text-transform: uppercase;
}
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 46px;
  height: 46px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  transition: background .2s, color .2s;
}
.footer-links a:hover { background: var(--lime); color: var(--forest-deep); }
.footer-links svg { width: 20px; height: 20px; }
.footer-mail { padding: 0 18px !important; }
.footer-legal {
  margin-top: 24px;
  max-width: 80ch;
  font-size: .82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .5);
}

/* Film dialog */
.film {
  width: min(1100px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: visible;
  background: transparent;
}
.film::backdrop { background: rgba(1, 13, 9, .9); backdrop-filter: blur(4px); }
.film[open] { animation: film-in .35s var(--ease); }
.film-stage {
  --ratio: 1.7778;
  position: relative;
  aspect-ratio: var(--ratio);
  width: min(100%, calc((100vh - 100px) * var(--ratio)));
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
}
.film-stage video, .film-stage iframe { width: 100%; height: 100%; border: 0; background: #000; }
.film-soon {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  color: #fff;
  background: linear-gradient(rgba(3, 39, 29, .78), rgba(3, 39, 29, .78)), var(--poster, none) center / cover;
}
.film-soon strong {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--lime);
}
.film-close {
  position: absolute;
  inset-inline-end: 0;
  bottom: calc(100% + 10px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
}
.film-close:hover { background: var(--lime); color: var(--forest-deep); }
.film-close svg { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .film { margin-top: auto; margin-bottom: auto; }
}
@keyframes film-in { from { opacity: 0; transform: scale(.97); } }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-brand span, .hero-tagline, .hero-line, .hero-actions {
    animation: rise .9s var(--ease) both;
  }
  .hero-brand span:last-child { animation-delay: .08s; }
  .hero-tagline { animation-delay: .2s; }
  .hero-line { animation-delay: .28s; }
  .hero-actions { animation-delay: .36s; }
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@keyframes rise { from { opacity: 0; transform: translateY(32px); } }

/* Arabic */
html[lang="ar"] {
  --display: "Cairo", sans-serif;
  --body: "IBM Plex Sans Arabic", "Cairo", sans-serif;
}
html[lang="ar"] body { font-size: 18px; line-height: 1.75; }
html[lang="ar"] :is(h2, .hero-tagline, .eyebrow, .facts strong, .cards, .film-soon strong, .shot-placeholder strong) {
  letter-spacing: 0;
  text-transform: none;
}
html[lang="ar"] h2 { line-height: 1.25; font-weight: 800; }
html[lang="ar"] .gallery-head h2 { max-width: 14ch; }
html[lang="ar"] .hero-tagline { line-height: 1.35; font-size: clamp(1.55rem, 3.2vw, 2.3rem); }
html[lang="ar"] .lede { max-width: 38ch; }
html[lang="ar"] .facts { max-width: 560px; }
html[lang="ar"] .facts li { grid-template-columns: minmax(8.5rem, 42%) 1fr; }
html[lang="ar"] .facts strong { font-size: 1.35rem; line-height: 1.25; }
html[lang="ar"] .steps { max-width: 580px; }
html[lang="ar"] .cards { max-width: 640px; line-height: 1.4; }
html[lang="ar"] :is(.topbar-brand, .hero-brand, .footer-brand, .social-name) {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
html[lang="ar"] .hero-brand { line-height: .8; }
html[lang="ar"] .social-name { line-height: .9; }
html[lang="ar"] :is(.steps li::before, .shot-index) { font-family: "Big Shoulders Display", "Arial Narrow", sans-serif; }
