/* JM Game Studios */
:root {
  --bg: #0a0a0d;
  --bg-2: #111116;
  --surface: #16161d;
  --surface-2: #1d1d26;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f4f4f6;
  --muted: #a3a3b2;
  --dim: #6e6e7e;
  --brand: #ff5a1f;
  --brand-2: #ff8a00;
  --brand-3: #e8290c;
  --grad: linear-gradient(120deg, var(--brand-2), var(--brand) 45%, var(--brand-3));
  --star: #ffc53d;
  --radius: 18px;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; font-style: italic; line-height: 1; letter-spacing: .01em; margin: 0; text-transform: uppercase; }
p { margin: 0 0 1em; }
ul { list-style: none; margin: 0; padding: 0; }
svg { width: 1em; height: 1em; flex: none; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.kicker {
  display: inline-flex; align-items: center; gap: .6em;
  font: 700 .8rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand-2); margin-bottom: 18px;
}
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(255, 90, 31, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 90, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); } }

.chip {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line);
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
}
.chip.new { background: rgba(255, 90, 31, .15); border-color: rgba(255, 90, 31, .4); color: var(--brand-2); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .page .site-header {
  background: rgba(10, 10, 13, .78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { border-radius: 10px; }
.brand-text { font: italic 800 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.brand-text b { color: var(--brand); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav .lang { margin-left: 6px; border: 1px solid var(--line-2); color: var(--text); font-weight: 700; font-size: .8rem; letter-spacing: .08em; }
@media (max-width: 720px) {
  .brand-text b { display: none; }
  .nav a:not(.lang) { padding: 8px 9px; font-size: .88rem; }
}
@media (max-width: 420px) {
  .nav a[href$="#studio"] { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 120px 0 clamp(64px, 10vh, 120px);
  isolation: isolate; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 13, .95) 0%, rgba(10, 10, 13, .7) 38%, rgba(10, 10, 13, .1) 70%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 13, 0) 40%),
    linear-gradient(180deg, rgba(10, 10, 13, .7) 0%, rgba(10, 10, 13, 0) 22%);
}
.hero-slash {
  position: absolute; z-index: -1; right: -6%; top: -10%; bottom: -10%; width: 22%;
  background: var(--grad); transform: skewX(-14deg); opacity: .9;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}
.hero-content { position: relative; max-width: var(--wrap); }
.hero-title-row { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5), 0 0 0 1px var(--line-2); }
.hero h1 { font-size: clamp(2.8rem, 7.5vw, 6.2rem); max-width: 15ch; text-shadow: 0 4px 30px rgba(0, 0, 0, .4); }
.hero-short { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #d8d8e0; max-width: 46ch; margin-bottom: 20px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 30px; color: #e7e7ee; font-weight: 600; }
.hero-meta li { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { color: var(--star); }
.hero-meta li:nth-child(3) svg { color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
@media (max-width: 600px) {
  .hero { align-items: flex-end; }
  .hero-media::after { background: linear-gradient(0deg, var(--bg) 8%, rgba(10, 10, 13, .75) 55%, rgba(10, 10, 13, .35) 100%); }
  .hero-icon { width: 64px; height: 64px; border-radius: 16px; }
  .hero-title-row { gap: 14px; }
  .hero-slash { width: 30%; right: -18%; opacity: .6; }
}

.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 600px) { .scroll-cue { display: none; } }

/* ---------- Buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 18px 0 14px; border-radius: 12px;
  background: #000; border: 1px solid rgba(255, 255, 255, .28); color: #fff;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.store-btn svg { width: 26px; height: 26px; }
.store-btn span { display: flex; flex-direction: column; font: 600 1.15rem/1.05 var(--body); letter-spacing: -.01em; }
.store-btn small { font-size: .62rem; font-weight: 500; letter-spacing: .04em; opacity: .85; }
.store-btn:hover { transform: translateY(-2px); border-color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
.stores.compact .store-btn { height: 40px; padding: 0 12px 0 10px; border-radius: 10px; gap: 7px; }
.stores.compact .store-btn svg { width: 19px; height: 19px; }
.stores.compact .store-btn span { font-size: .88rem; }
.stores.compact .store-btn small { font-size: .52rem; }

.btn-ghost, .btn-primary {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px;
  border-radius: 12px; font-weight: 600; transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.btn-ghost { background: rgba(255, 255, 255, .1); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.btn-ghost svg { color: var(--brand); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(255, 90, 31, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255, 90, 31, .5); }
.btn-primary svg { width: 20px; height: 20px; }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -10px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}
.stat { padding: 26px 24px; display: flex; flex-direction: column; gap: 6px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font: italic 800 clamp(2rem, 4vw, 2.8rem)/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat { padding: 20px 18px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 140px) 0 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section h2 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); margin-bottom: 18px; }
.lead { font-size: 1.12rem; color: var(--muted); }

/* ---------- Game cards ---------- */
.game-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 860px) { .game-grid { grid-template-columns: 1fr; } }
.game-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.game-card:hover { transform: translateY(-6px); border-color: rgba(255, 90, 31, .45); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 90, 31, .15); }
.card-link { display: block; flex: 1; }
.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .4s; }
.card-media video { opacity: 0; }
.card-media.playing video { opacity: 1; }
.game-card:hover .card-media img { transform: scale(1.05); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface) 0%, rgba(22, 22, 29, 0) 45%); pointer-events: none; }
.card-play {
  position: absolute; z-index: 1; right: 16px; top: 16px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px);
  border: 1px solid var(--line-2); transition: opacity .3s, background .3s;
}
.card-play svg { width: 18px; height: 18px; margin-left: 2px; }
.game-card:hover .card-play { background: var(--brand); }
.card-media.playing .card-play { opacity: 0; }
.card-body { position: relative; display: flex; gap: 18px; padding: 0 24px 8px; margin-top: -40px; z-index: 1; }
.card-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5), 0 0 0 1px var(--line-2); flex: none; }
.card-text { padding-top: 30px; min-width: 0; }
.card-text h3 { font-size: 1.9rem; margin-bottom: 8px; }
.card-short { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-weight: 600; font-size: .9rem; }
.card-meta li { display: inline-flex; align-items: center; gap: 5px; }
.card-meta svg { color: var(--star); }
.card-meta li:last-child svg { color: var(--muted); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px 24px; flex-wrap: wrap; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-2); }
.more svg { transition: transform .2s; }
.more:hover svg { transform: translateX(4px); }
@media (max-width: 520px) {
  .card-body { padding: 0 16px 6px; gap: 14px; }
  .card-icon { width: 60px; height: 60px; border-radius: 15px; }
  .card-text h3 { font-size: 1.6rem; }
  .card-foot { padding: 14px 16px 18px; }
}

/* ---------- Studio ---------- */
.studio-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.studio-copy p:not(.lead):not(.kicker) { color: var(--muted); }
.features { display: grid; gap: 16px; }
.feature { position: relative; padding: 24px 24px 22px 84px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.feature-num { position: absolute; left: 24px; top: 20px; font: italic 800 2rem/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feature h3 { font-size: 1.45rem; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 860px) { .studio-grid { grid-template-columns: 1fr; gap: 36px; } }

.marquee { margin-top: clamp(64px, 9vw, 110px); overflow: hidden; transform: rotate(-2deg); padding: 10px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 70s linear infinite; }
.marquee img { height: 150px; width: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 600px) { .marquee img { height: 100px; } }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(80px, 12vw, 140px); }
.contact-box {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  padding: clamp(32px, 6vw, 64px); border-radius: 26px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 90, 31, .35), transparent 55%), var(--surface);
  border: 1px solid var(--line);
}
.contact-box::before { content: ""; position: absolute; right: -40px; top: -20%; bottom: -20%; width: 90px; background: var(--grad); transform: skewX(-14deg); opacity: .9; }
.contact-box h2 { margin-bottom: 14px; }
.contact-box .lead { margin: 0; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; position: relative; }
.contact-mail { color: var(--muted); font-size: .95rem; border-bottom: 1px solid var(--line-2); word-break: break-all; }
.contact-mail:hover { color: var(--text); }
@media (max-width: 760px) { .contact-box { grid-template-columns: 1fr; } .contact-box::before { width: 50px; right: -30px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand.small { gap: 10px; }
.brand.small img { border-radius: 7px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a:hover { color: var(--text); }

/* ---------- Modal ---------- */
.modal {
  width: min(980px, calc(100% - 32px)); max-height: calc(100% - 48px);
  padding: 0; border: 1px solid var(--line-2); border-radius: 22px;
  background: var(--bg-2); color: var(--text); overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7);
}
.modal[open] { display: flex; flex-direction: column; animation: modal-in .4s var(--ease); }
.modal::backdrop { background: rgba(5, 5, 8, .75); backdrop-filter: blur(6px); animation: fade .3s; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.modal-body { overflow-y: auto; overscroll-behavior: contain; outline: none; }
.modal-close {
  position: absolute; z-index: 3; right: 14px; top: 14px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, .6); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
  backdrop-filter: blur(6px); transition: background .2s;
}
.modal-close:hover { background: var(--brand); }
@media (max-width: 600px) {
  .modal { width: 100%; max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; border: 0; }
}

.m-trailer { position: relative; aspect-ratio: 16 / 9; background: #000; }
.m-trailer img, .m-trailer iframe, .m-trailer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.m-trailer-btn {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; cursor: pointer;
  background: linear-gradient(0deg, var(--bg-2) 0%, rgba(17, 17, 22, 0) 40%); color: #fff;
}
.m-trailer-btn span {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px 14px 18px; border-radius: 999px;
  background: var(--grad); font: 600 1rem var(--body); box-shadow: 0 12px 30px rgba(255, 90, 31, .45); transition: transform .2s var(--ease);
}
.m-trailer-btn:hover span { transform: scale(1.06); }
.m-trailer-btn svg { width: 20px; height: 20px; }

.m-head { display: flex; gap: 22px; align-items: flex-end; padding: 0 32px; margin-top: -56px; position: relative; z-index: 1; }
.m-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6), 0 0 0 1px var(--line-2); flex: none; }
.m-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 8px; }
.m-head p { color: var(--muted); margin: 0; }
.m-section { padding: 26px 32px 0; }
.m-section:last-child { padding-bottom: 36px; }
.m-section h3 { font-size: 1.5rem; margin-bottom: 14px; }
.m-stats { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.m-stat { flex: 1 1 130px; padding: 14px 16px; border-right: 1px solid var(--line); margin-right: -1px; }
.m-stat b { display: flex; align-items: center; gap: 5px; font-size: 1.1rem; }
.m-stat b svg { color: var(--star); }
.m-stat span { display: block; color: var(--dim); font-size: .8rem; margin-top: 2px; }
.m-shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
.m-shots button { flex: none; padding: 0; border: 0; background: none; cursor: zoom-in; scroll-snap-align: start; border-radius: 12px; overflow: hidden; }
.m-shots img { height: 200px; width: auto; transition: transform .3s var(--ease), opacity .3s; }
.m-shots button:hover img { transform: scale(1.03); opacity: .9; }
.m-desc { color: #c9c9d4; position: relative; }
.m-desc.clamped { max-height: 11.2em; overflow: hidden; }
.m-desc.clamped::after { content: ""; position: absolute; inset: auto 0 0; height: 4em; background: linear-gradient(0deg, var(--bg-2), transparent); }
.m-more { margin-top: 10px; background: none; border: 0; padding: 0; color: var(--brand-2); font: 600 .95rem var(--body); cursor: pointer; }
@media (max-width: 600px) {
  .m-head { padding: 0 18px; gap: 14px; margin-top: -40px; }
  .m-icon { width: 80px; height: 80px; border-radius: 20px; }
  .m-section { padding: 22px 18px 0; }
  .m-shots img { height: 150px; }
  .m-stat { flex-basis: 50%; }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(0, 0, 0, .92); animation: fade .25s; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 10px; }
.lb-close, .lb-nav { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 30px; line-height: 1; }
.lb-close { right: 16px; top: 16px; }
.lb-nav { top: 50%; translate: 0 -50%; font-size: 38px; }
.lb-nav.prev { left: 16px; } .lb-nav.next { right: 16px; }
.lb-close:hover, .lb-nav:hover { background: var(--brand); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Simple pages (privacy policy) ---------- */
.page main { padding: 130px 0 90px; }
.prose { max-width: 780px; }
.prose h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 10px; }
.prose .updated { color: var(--brand-2); font-weight: 600; margin-bottom: 36px; }
.prose h2 { font-size: 1.6rem; margin: 42px 0 12px; color: var(--text); }
.prose p { color: #c4c4cf; }
.prose a { color: var(--brand-2); border-bottom: 1px solid rgba(255, 138, 0, .4); word-break: break-word; }
.prose ul.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 24px; margin-bottom: 1em; }
.prose ul.partners li { color: #c4c4cf; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}
