/* LV1X studio site. No third-party resources: fonts, pictures and film are all local. */

@font-face {
  font-family: "Tajawal";
  src: url("/assets/fonts/tajawal-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Tajawal";
  src: url("/assets/fonts/tajawal-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #08090c;
  --ink-2: #0f1116;
  --ink-3: #171a21;
  --line: rgba(243, 240, 232, 0.12);
  --bone: #f3f0e8;
  --mute: #a3a5ae;
  --xp: #c9ff3b;
  --xp-ink: #0b0d04;
  --cut: 14px;
  --gut: clamp(18px, 4.5vw, 56px);
  --top-h: 74px;
  --sans: "Tajawal", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--xp); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gut); }
.hl { color: var(--xp); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--xp); color: var(--xp-ink); padding: 10px 14px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Top bar with the XP bar */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gut) 14px;
  transition: background-color .3s ease, backdrop-filter .3s ease;
}
.top.is-solid { background: rgba(8, 9, 12, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.top__logo { display: block; flex: none; }
.top__logo img { width: 92px; height: auto; }
.top__nav { display: flex; gap: clamp(14px, 3vw, 34px); }
.top__nav a {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--bone); opacity: .82; padding: 12px 0;
}
.top__nav a:hover { opacity: 1; color: var(--xp); }

.xp {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 0 var(--gut) 5px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--mute);
  pointer-events: none;
}
.xp__lv { color: var(--xp-ink); background: var(--xp); padding: 2px 6px; font-weight: 700; }
.xp__track { flex: 1; height: 3px; background: rgba(243, 240, 232, 0.16); overflow: hidden; }
.xp__fill { display: block; height: 100%; width: 100%; background: var(--xp); transform-origin: left center; transform: scaleX(0); }
.xp__pct { min-width: 8ch; text-align: right; color: var(--bone); }
.xp.is-full .xp__pct { color: var(--xp); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--top-h) + 40px);
  isolation: isolate;
  overflow: hidden;
}
.hero__media, .hero__shade { position: absolute; inset: 0; z-index: -1; }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity .8s ease; }
.hero__video.is-on { opacity: 1; }
.hero__shade {
  background:
    linear-gradient(to top, var(--ink) 0%, rgba(8, 9, 12, .78) 26%, rgba(8, 9, 12, .12) 58%, rgba(8, 9, 12, .5) 100%),
    linear-gradient(to right, rgba(8, 9, 12, .55), rgba(8, 9, 12, 0) 62%);
}
.hero__body { padding-bottom: clamp(20px, 4vh, 44px); }

.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bone);
  margin-bottom: clamp(14px, 2.4vh, 26px);
}
.tag__dot { width: 8px; height: 8px; background: var(--xp); flex: none; }

.hero__title {
  font-size: clamp(2.7rem, 9.4vw, 7.6rem);
  line-height: .96;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}
.hero__lead {
  margin-top: clamp(16px, 2.4vh, 26px);
  max-width: 34ch;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: rgba(243, 240, 232, .88);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3.4vh, 36px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--xp { background: var(--xp); color: var(--xp-ink); }
.btn--xp:hover { background: #dcff7a; }
.btn--ghost { background: rgba(243, 240, 232, .12); color: var(--bone); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { background: var(--bone); color: var(--ink); }

.hero__hud {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  padding-block: 18px clamp(22px, 4vh, 40px);
  border-top: 1px solid var(--line);
}
.hud { display: flex; flex-direction: column; gap: 2px; text-align: left; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.hud__k { font-size: 10px; color: var(--mute); }
.hud__v { font-size: 13px; color: var(--bone); }
.hud--btn { text-align: right; align-items: flex-end; padding: 6px 0; min-height: 44px; justify-content: center; }
.hud--btn:hover .hud__v { color: var(--xp); }
.hud--btn[hidden] { display: none; }

/* Shared section pieces */
section { position: relative; }
.game, .studio { padding-block: clamp(72px, 12vw, 150px); }
.stage {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--xp);
  margin-bottom: 14px;
}
.stage--center { text-align: center; }
.head { max-width: 760px; }
.head__title {
  font-size: clamp(3.2rem, 11vw, 8.5rem);
  line-height: .92; letter-spacing: -0.04em; font-weight: 700;
}
.head__title--sm { font-size: clamp(2.3rem, 6.2vw, 4.6rem); line-height: 1; letter-spacing: -0.03em; }
.head__lead { margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(243, 240, 232, .84); max-width: 56ch; }

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 24px; padding: 8px 14px;
  border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--xp); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.badge {
  display: inline-block; vertical-align: 1px; margin-right: 8px; padding: 2px 7px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--xp); color: var(--xp-ink); font-weight: 700;
}
.badge--cine { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1px rgba(243, 240, 232, .5); }

/* Game */
.wide { margin-top: clamp(36px, 6vw, 72px); }
.wide img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}
.wide figcaption { margin-top: 12px; font-size: .92rem; color: var(--mute); }

.feat { margin-top: clamp(56px, 9vw, 120px); display: grid; gap: clamp(48px, 8vw, 110px); }
.feat__row { display: grid; gap: 22px; align-items: center; }
.feat__pic { background: var(--ink-2); }
.feat__pic img {
  width: 100%; aspect-ratio: 13 / 6; object-fit: cover;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.feat__txt h3 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.05; letter-spacing: -0.02em; }
.feat__txt p:last-child { margin-top: 14px; color: rgba(243, 240, 232, .8); max-width: 44ch; }

@media (max-width: 859px) { .feat__pic img { aspect-ratio: 16 / 9; } }
@media (min-width: 860px) {
  .feat__row { grid-template-columns: 1.45fr 1fr; gap: clamp(32px, 5vw, 72px); }
  .feat__row--flip { grid-template-columns: 1fr 1.45fr; }
  .feat__row--flip .feat__pic { order: 2; }
}

.nums {
  margin-top: clamp(64px, 10vw, 130px);
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.nums > div { display: flex; flex-direction: column-reverse; padding: 22px 0 20px; border-bottom: 1px solid var(--line); }
.nums > div:nth-child(odd) { padding-right: 16px; }
.nums dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.nums dd { font-size: clamp(2.8rem, 8vw, 5rem); line-height: 1; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.nums > div:last-child { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .nums { grid-template-columns: repeat(5, 1fr); }
  .nums > div, .nums > div:last-child { grid-column: auto; padding: 28px 20px 24px 0; border-bottom: 0; }
  .nums > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
}

/* Postcards */
.cards { padding-block: clamp(64px, 10vw, 120px); background: var(--ink-2); }
.cards__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.cards__nav { display: none; gap: 10px; }
.arrow {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--bone);
  transition: background-color .18s ease, color .18s ease;
}
.arrow:hover { background: var(--xp); color: var(--xp-ink); border-color: var(--xp); }
@media (min-width: 860px) { .cards__nav { display: flex; } }

.rail {
  margin-top: clamp(28px, 4vw, 48px);
  display: flex; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-inline: var(--gut);
  scroll-padding-inline: var(--gut);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.card { flex: none; width: min(82vw, 560px); scroll-snap-align: start; }
.card img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink-3);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.card p { margin-top: 12px; font-size: .95rem; color: rgba(243, 240, 232, .86); }
.cards__note { margin-top: 26px; font-size: .82rem; color: var(--mute); max-width: 70ch; }

/* Studio */
.rules { margin-top: clamp(40px, 7vw, 84px); display: grid; gap: 14px; }
.rule {
  position: relative; padding: 26px 24px 28px; background: var(--ink-2);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.rule__n { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--xp); margin-bottom: 34px; }
.rule h3 { font-size: 1.55rem; line-height: 1.1; letter-spacing: -0.02em; }
.rule p { margin-top: 10px; color: rgba(243, 240, 232, .78); font-size: 1rem; }
@media (min-width: 860px) { .rules { grid-template-columns: repeat(3, 1fr); gap: 18px; } .rule { padding: 30px 28px 36px; } }

/* End + footer */
.end { padding-block: clamp(90px, 16vw, 200px); text-align: center; border-top: 1px solid var(--line); }
.end__title { font-size: clamp(2.8rem, 10.5vw, 8rem); line-height: .95; letter-spacing: -0.04em; font-weight: 700; }
.end__lead { margin: 20px auto 34px; color: var(--mute); max-width: 36ch; }

.foot { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom)); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.foot img { width: 84px; height: auto; }
.foot p { font-size: .82rem; color: var(--mute); }

/* Trailer */
.modal {
  width: min(1100px, 100vw - 24px); max-width: none; padding: 0; border: 0;
  background: #000; color: var(--bone); overflow: visible;
}
.modal::backdrop { background: rgba(4, 5, 7, .9); }
.modal video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.modal__close {
  position: absolute; right: 0; top: -54px;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--bone); color: var(--ink);
}
.modal__close:hover { background: var(--xp); }

/* Small screens */
@media (max-width: 520px) {
  body { font-size: 17px; }
  :root { --top-h: 68px; }
  .top__logo img { width: 78px; }
  .top__nav a { font-size: 11px; letter-spacing: .08em; }
  .btn { flex: 1 1 auto; padding: 0 18px; }
  .hero__shade {
    background: linear-gradient(to top, var(--ink) 0%, rgba(8, 9, 12, .86) 34%, rgba(8, 9, 12, .2) 66%, rgba(8, 9, 12, .55) 100%);
  }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero__title { font-size: clamp(2.2rem, 7vw, 3.6rem); }
  .hero__hud { display: none; }
}

/* Motion */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .chip__dot { animation: none; }
  .btn, .hero__video { transition: none; }
}
