/* Akinbow Studios. Dark cinematic theme.
   Shape rule: buttons, chips and nav are pills; images and cards use 16px; full-screen chapters have no radius. */

@font-face {
  font-family: "Geist"; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist"; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Anton"; font-weight: 400; font-display: swap;
  src: url("assets/fonts/anton-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Anton"; font-weight: 400; font-display: swap;
  src: url("assets/fonts/anton-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --surface: #14171c;
  --surface-2: #1b1f26;
  --line: #262b33;
  --text: #eceef1;
  --muted: #a0a8b3;
  --accent: #ff7a3d;
  --accent-ink: #160f0a;
  --r-card: 16px;
  --r-input: 12px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Anton", "Haettenschweiler", "Impact", "Arial Narrow", sans-serif;
  --z-nav: 40;
  --z-modal: 60;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: clip;
  font: 400 1rem/1.6 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--r-pill); z-index: var(--z-modal); }
.skip:focus { top: 12px; }

h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: .95; font-size: clamp(2.4rem, 5.6vw, 4.8rem); text-wrap: balance; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 46ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--r-pill);
  border: 1px solid transparent; font-weight: 600; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #ff8f5a; }
.btn--ghost { background: rgb(11 13 16 / .35); border-color: #4a525d; color: var(--text); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.btn i { font-size: 1.15em; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); }
.link i { transition: transform .25s var(--ease); }
.link:hover i { transform: translate(2px, -2px); }

/* ---------- Floating nav ---------- */
.nav {
  position: fixed; z-index: var(--z-nav); top: 14px; left: 50%; transform: translateX(-50%);
  width: min(100% - 2 * var(--gutter), 980px); height: 60px; padding: 0 10px 0 16px;
  display: flex; align-items: center; gap: 16px;
  background: rgb(14 16 19 / .55); backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgb(255 255 255 / .1); border-radius: var(--r-pill);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand__mark { width: 36px; height: 36px; border-radius: 10px; }
.nav__links { display: flex; gap: 2px; margin-left: 8px; }
.nav__links a { padding: 8px 14px; border-radius: var(--r-pill); color: #c3c9d1; font-weight: 500; font-size: .95rem; transition: color .2s, background-color .2s; }
.nav__links a:hover { color: #fff; background: rgb(255 255 255 / .08); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; padding: 3px; border: 1px solid rgb(255 255 255 / .12); border-radius: var(--r-pill); }
.lang button { border: 0; background: none; padding: 4px 11px; border-radius: var(--r-pill); font-size: .78rem; font-weight: 600; color: #b3bac4; }
.lang button[aria-pressed="true"] { background: rgb(255 255 255 / .14); color: #fff; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid rgb(255 255 255 / .14); background: none; font-size: 1.4rem; align-items: center; justify-content: center; }

/* ---------- Hero (pinned) ---------- */
.hero { position: relative; }
.hero__pin { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #000; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.1) brightness(.62); will-change: transform; }
.hero__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgb(11 13 16 / .1) 0%, rgb(11 13 16 / .75) 100%); }
.hero__title {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  font-family: var(--display); font-weight: 400; text-transform: uppercase; color: #fff;
  font-size: clamp(4.5rem, 19vw, 18rem); line-height: .86; letter-spacing: .005em; will-change: transform;
}
.hero__title span { display: block; }
.hero__end { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 20px; text-align: center; padding: 0 var(--gutter); opacity: 0; }
.hero__end h2 { font-size: clamp(2.8rem, 8vw, 7.5rem); max-width: 14ch; }
.hero__end .lead { color: #c3c9d1; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* ---------- Games (pinned horizontal pan) ---------- */
.games { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #000; }
.games__head { position: absolute; z-index: 3; top: 92px; left: var(--gutter); }
.games__head h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); color: #fff; }
.games__track { display: flex; height: 100%; width: max-content; will-change: transform; }
.panel { position: relative; flex: 0 0 100vw; height: 100%; overflow: hidden; }
.panel img { position: absolute; top: 0; left: -10vw; width: 120vw; height: 100%; max-width: none; object-fit: cover; filter: grayscale(.2) contrast(1.1) brightness(.7); }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(11 13 16 / .92) 0%, rgb(11 13 16 / .2) 55%, rgb(11 13 16 / .35) 100%); }
.panel__body { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(36px, 9vh, 96px); width: min(720px, calc(100vw - 2 * var(--gutter))); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.panel h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .9; font-size: clamp(3.6rem, 11vw, 9.5rem); color: #fff; }
.panel__desc { color: #cfd4db; font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 44ch; }
.panel__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.status { display: inline-flex; padding: 3px 12px; border-radius: var(--r-pill); border: 1px solid #5a626d; color: #d3d8de; font-size: .78rem; font-weight: 600; letter-spacing: .02em; background: rgb(11 13 16 / .4); }
.status--live { border-color: var(--accent); color: var(--accent); }
.platforms { display: inline-flex; align-items: center; gap: 8px; color: #cfd4db; font-size: .95rem; }

/* ---------- Trailer (pinned zoom) ---------- */
.trailer { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--bg); }
.trailer__ghost { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: var(--display); text-transform: uppercase; font-size: clamp(3.4rem, 14vw, 13rem); line-height: .9; color: #1a1e25; white-space: nowrap; }
.trailer__frame { position: absolute; inset: 0; overflow: hidden; clip-path: inset(30% 32% round 20px); will-change: clip-path; }
.trailer__frame img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.1) brightness(.8); will-change: transform; }
.trailer__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(11 13 16 / .75), rgb(11 13 16 / .15)); }
.trailer__cta { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 24px; text-align: center; padding: 0 var(--gutter); opacity: 0; }
.trailer__cta h2 { font-size: clamp(3rem, 9vw, 8rem); color: #fff; }

/* ---------- Merch (sticky stack) ---------- */
.merch { position: relative; background: var(--bg); }
.merch__head { padding: clamp(72px, 10vw, 140px) var(--gutter) clamp(36px, 5vw, 64px); width: min(100%, 1240px); margin-inline: auto; }
.merch__head p { color: var(--muted); margin-top: 14px; font-size: 1.1rem; }
.mcard { position: sticky; top: 0; height: 100svh; min-height: 520px; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface); border-top: 1px solid var(--line); overflow: hidden; transform-origin: center top; }
.mcard__img { overflow: hidden; }
.mcard__img img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) brightness(.85); }
.mcard__text { align-self: center; padding: clamp(24px, 6vw, 96px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.mcard h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .92; font-size: clamp(2.6rem, 6vw, 5.4rem); }
.mcard__text > p:not(.price) { color: var(--muted); max-width: 36ch; font-size: 1.08rem; }
.price { font-size: 1.4rem; font-weight: 600; }
.price span { margin-left: 10px; color: var(--accent); font-size: .85rem; }
.mcard--flip { grid-template-columns: 1fr 1.1fr; }
.mcard--flip .mcard__img { order: 2; }
.mcard--wide { grid-template-columns: 1fr; }
.mcard--wide .mcard__img { position: absolute; inset: 0; }
.mcard--wide .mcard__img img { filter: contrast(1.05) brightness(.55); }
.mcard--wide .mcard__text { position: relative; z-index: 1; justify-self: start; }

/* ---------- Apps (pinned phone) ---------- */
.apps { position: relative; background: var(--surface); border-block: 1px solid var(--line); }
.apps__pin { height: 100svh; min-height: 620px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding: 84px var(--gutter) 32px; width: min(100%, 1240px); margin-inline: auto; }
.apps__phone { display: grid; place-items: center; }
.phone { position: relative; width: min(300px, 62vw, 33svh); aspect-ratio: 9 / 19; border: 10px solid #2b3038; border-radius: 42px; overflow: hidden; background: #000; box-shadow: 0 40px 90px -30px rgb(255 122 61 / .28); }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.phone img:first-child { opacity: 1; }
.apps__copy { display: flex; flex-direction: column; gap: 18px; }
.apps__copy .lead { margin-top: 0; }
.feats { display: grid; gap: 14px; margin-top: 8px; }
.feat { display: flex; gap: 16px; align-items: flex-start; }
.feat i { color: var(--accent); font-size: 1.6rem; margin-top: 2px; }
.feat h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.feat p { color: var(--muted); font-size: .98rem; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Assets ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section__head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 60ch; }
.section__head p { color: var(--muted); margin-top: 14px; font-size: 1.08rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { min-height: 40px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid #3a414b; background: none; font-weight: 500; color: var(--muted); transition: color .2s, border-color .2s, background-color .2s; }
.filters button:hover { color: var(--text); border-color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.masonry { columns: 4 220px; column-gap: 16px; }
.masonry li { break-inside: avoid; margin-bottom: 16px; }
.masonry li[hidden] { display: none; }
.tile { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface-2); text-align: left; will-change: transform; }
.tile img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile__name { display: block; padding: 12px 14px 2px; font-weight: 600; }
.tile__type { display: block; padding: 0 14px 12px; color: var(--muted); font-size: .85rem; }

/* ---------- About (scrubbed words) ---------- */
.about { min-height: 100svh; display: grid; place-items: center; padding: 0 var(--gutter); }
.about__text { max-width: 22em; font-size: clamp(1.9rem, 4.6vw, 4rem); line-height: 1.12; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.about__text .w { opacity: .14; }

/* ---------- Join + footer ---------- */
.join-band { padding: 0 var(--gutter) clamp(72px, 10vw, 140px); }
.join { width: min(100%, 640px); margin-inline: auto; display: grid; gap: 10px; }
.join h2 { margin-bottom: 14px; }
.join label { font-weight: 600; }
.join__row { display: flex; gap: 10px; }
.join input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; background: var(--surface-2); border: 1px solid #3a414b; border-radius: var(--r-input); }
.join input::placeholder { color: #7d8692; }
.join input[aria-invalid="true"] { border-color: #ff6b6b; }
.join__msg { color: var(--muted); font-size: .92rem; }
.join.is-error .join__msg { color: #ff8f8f; }

.footer { border-top: 1px solid var(--line); padding: 36px 0 0; overflow: hidden; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.social { display: flex; gap: 8px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 1.25rem; color: var(--muted); transition: color .2s, border-color .2s; }
.social a:hover { color: var(--text); border-color: var(--text); }
.copy { color: var(--muted); font-size: .9rem; }
.footer__word { font-family: var(--display); text-transform: uppercase; text-align: center; white-space: nowrap; font-size: clamp(3rem, 14.5vw, 15rem); line-height: .8; color: #161a20; margin-top: 32px; transform: translateY(12%); user-select: none; }

/* ---------- Lightbox ---------- */
.lightbox { border: 1px solid var(--line); border-radius: var(--r-card); padding: 0; background: var(--surface); color: var(--text); width: min(92vw, 1000px); max-height: 90dvh; overflow: hidden; z-index: var(--z-modal); }
.lightbox::backdrop { background: rgb(6 7 9 / .8); backdrop-filter: blur(6px); }
.lightbox img { width: 100%; max-height: calc(90dvh - 64px); object-fit: contain; background: #0a0c0e; }
.lightbox p { padding: 14px 20px; color: var(--muted); }
.lightbox__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid #3a414b; background: rgb(14 16 19 / .85); font-size: 1.3rem; display: grid; place-items: center; }

/* ---------- Simple reveal ---------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Static fallback (reduced motion or no GSAP): every final state is visible ---------- */
.static .hero__pin { height: auto; min-height: 100svh; }
.static .hero__title { display: none; }
.static .hero__end { position: relative; min-height: 100svh; opacity: 1; }
.static .trailer { height: auto; min-height: 70svh; }
.static .trailer__ghost { display: none; }
.static .trailer__frame { position: relative; min-height: 70svh; clip-path: none; }
.static .trailer__cta { opacity: 1; }
.static .about__text .w { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .nav__links { position: absolute; inset: 68px 0 auto 0; flex-direction: column; margin: 0; padding: 10px; background: rgb(14 16 19 / .92); backdrop-filter: blur(16px); border: 1px solid rgb(255 255 255 / .1); border-radius: 24px; display: none; }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 16px; font-size: 1.05rem; }
  .nav__toggle { display: inline-flex; }
}
@media (max-width: 767px) {
  .nav .btn--primary { display: none; }
  /* Games: stacked full-height chapters, no horizontal pan */
  .games { height: auto; overflow: visible; }
  .games__head { position: static; padding: 96px var(--gutter) 20px; }
  .games__track { flex-direction: column; width: 100%; }
  .panel { flex: none; width: 100%; height: 78svh; min-height: 460px; }
  .panel img { left: 0; width: 100%; }
  /* Merch: image on top, text below */
  .mcard, .mcard--flip { grid-template-columns: 1fr; grid-template-rows: 46% 1fr; }
  .mcard--flip .mcard__img { order: 0; }
  .mcard--wide { grid-template-rows: 1fr; }
  .mcard__text { padding: 22px var(--gutter) 32px; align-self: start; }
  .mcard--wide .mcard__text { align-self: end; }
  /* Apps: no pin, all features readable at once */
  .apps__pin { height: auto; grid-template-columns: 1fr; padding-block: 72px; }
  .phone { width: min(260px, 64vw); }
  .join__row { flex-direction: column; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { transition: none; }
  * { scroll-behavior: auto !important; }
}
