/* =========================================================
   HOOKAH GAMES — Kinetic Editorial
   Desktop sizes are expressed in reference-design pixels:
   1 ref px = var(--u) = 100vw / 1024 (the mockup is 1024 wide).
   ========================================================= */
:root {
  --navy: #17142F;
  --navy-2: #1E1940;
  --ink: #120F28;
  --purple: #8049EF;
  --purple-2: #935EFF;
  --mint: #37F3BB;
  --lav: #DEBEFF;
  --lav-2: #EEE4FF;
  --yellow: #EDCB50;
  --white: #FFFFFF;
  --line: rgba(147, 94, 255, .55);

  --f-display: "Anton", "Impact", sans-serif;
  --f-head: "Barlow", "Arial Black", sans-serif;
  --f-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-semi: "Barlow Semi Condensed", "Barlow Condensed", sans-serif;
  --f-body: "Inter", system-ui, sans-serif;

  --u: calc(100vw / 1024);
  --gutter: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--lav-2);
  font: 400 16px/1.5 var(--f-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
svg { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--mint); color: var(--navy); }

/* film grain over everything */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- shared atoms ---------- */
.eyebrow {
  margin: 0;
  font: 600 calc(14.5 * var(--u))/1 var(--f-cond);
  letter-spacing: .03em; text-transform: uppercase; color: var(--white);
  word-spacing: .15em;
}
.eyebrow em { font-style: normal; color: var(--purple-2); margin-right: .1em; }

.display {
  margin: 0;
  font: italic 900 calc(68 * var(--u))/.8 var(--f-semi);
  text-transform: uppercase; letter-spacing: -.01em; color: var(--lav-2);
  transform: skewX(-6deg); transform-origin: 0 100%;
}

.btn-tag {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: calc(34 * var(--u)); padding: 0 1.15em 0 1.05em;
  font: italic 800 calc(15 * var(--u))/1 var(--f-cond); text-transform: uppercase; letter-spacing: .01em;
  color: var(--navy); background: var(--yellow);
  clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
  transition: transform .35s var(--ease), background .25s;
}
.btn-tag svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: square; flex: none; }
.btn-tag svg.play { fill: currentColor; stroke: none; width: .9em; height: .9em; }
.btn-tag:hover { transform: translateY(-3px) rotate(-1.5deg); background: var(--mint); }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: calc(14 * var(--u)); }
.brand__icon { height: calc(66 * var(--u)); width: auto; }
.brand__word { width: calc(150 * var(--u)); height: auto; margin-top: calc(2 * var(--u)); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: calc(76 * var(--u));
  padding: calc(4 * var(--u)) calc(27 * var(--u)) 0 calc(40 * var(--u));
  transition: background .4s, backdrop-filter .4s, height .4s;
}
.nav.is-scrolled {
  background: rgba(23, 20, 47, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
}
.nav__links { position: absolute; left: calc(368 * var(--u)); top: calc(22 * var(--u)); display: flex; gap: calc(36 * var(--u)); }
.nav__links a {
  position: relative;
  font: 500 calc(14.5 * var(--u))/1 var(--f-cond); text-transform: uppercase; letter-spacing: .02em; color: var(--white);
}
.nav__links em { font-style: normal; color: var(--purple-2); margin-right: calc(15 * var(--u)); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--mint);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { position: absolute; left: calc(862 * var(--u)); top: calc(14 * var(--u)); width: calc(136 * var(--u)); height: calc(34 * var(--u)); font-size: calc(16 * var(--u)); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: calc(450 * var(--u));
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
}
.hero__smoke { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__fallback { display: none; }
.no-webgl .hero__fallback {
  position: absolute; inset: calc(80 * var(--u)) 0 0 -2vw; display: flex; flex-direction: column; z-index: 0;
  font: 400 calc(270 * var(--u))/.74 var(--f-display); text-transform: uppercase; letter-spacing: -.02em; font-style: italic;
  background: linear-gradient(120deg, var(--lav-2), var(--purple) 40%, var(--lav) 60%, var(--yellow));
  background-size: 300% 300%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fallbackFlow 12s ease-in-out infinite alternate;
}
.no-webgl .hero__fallback span:last-child { padding-left: 22vw; }
@keyframes fallbackFlow { to { background-position: 100% 100%; } }

.hero__tag {
  position: absolute; z-index: 2;
  left: calc(30 * var(--u)); top: calc(256 * var(--u));
  transform: rotate(-6deg);
  --ts: calc(54 * var(--u));
}
.hero__tag p {
  margin: 0; padding: .1em .36em .2em .3em;
  font: italic 900 var(--ts)/.86 var(--f-head); letter-spacing: -.015em;
  color: var(--navy); background: var(--mint);
  clip-path: polygon(0 2%, 100% 0, 98% 100%, 1% 98%);
  transform: skewX(-9deg);
  animation: tagIn 1s .5s var(--ease) both;
}
@keyframes tagIn { from { opacity: 0; transform: translateY(30px) rotate(6deg) scale(.9) skewX(-9deg); } }
.hero__crown {
  position: absolute; left: -.48em; top: -.95em; width: 1.3em; font-size: var(--ts);
  fill: none; stroke: var(--yellow); stroke-width: 3.5; stroke-linejoin: round; transform: rotate(-4deg);
  animation: bob 4s ease-in-out infinite;
}
.hero__halo {
  position: absolute; left: .7em; bottom: -.6em; width: 2.9em; font-size: var(--ts);
  fill: none; stroke: var(--yellow); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 1.4s 1.2s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bob { 50% { transform: rotate(4deg) translateY(-6px); } }

.hero__side {
  position: absolute; z-index: 2;
  left: calc(864 * var(--u)); top: calc(237 * var(--u)); width: calc(150 * var(--u));
  animation: fadeUp 1s .8s var(--ease) both;
}
.hero__kicker {
  margin: 0;
  font: 500 calc(14.5 * var(--u))/1.19 var(--f-body); letter-spacing: .15em; text-transform: uppercase; color: var(--white);
}
.hero__kicker span { display: inline-block; width: calc(32 * var(--u)); height: 1.5px; background: var(--white); vertical-align: middle; margin-left: calc(10 * var(--u)); }
.hero__desc { margin: calc(30 * var(--u)) 0 0 calc(-3 * var(--u)); font-size: calc(11.8 * var(--u)); line-height: 1.38; color: var(--white); }
.hero__side .btn-tag { position: absolute; left: calc(-32 * var(--u)); top: calc(146 * var(--u)); width: calc(173 * var(--u)); height: calc(36 * var(--u)); font-size: calc(13.5 * var(--u)); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } }

/* ---------- MARQUEE ---------- */
.marquee {
  position: relative; z-index: 3;
  display: flex; align-items: stretch;
  height: calc(37 * var(--u));
  border-top: 1px solid rgba(147, 94, 255, .7);
  border-bottom: 2px solid rgba(128, 73, 239, .9);
  background: var(--ink);
  overflow: hidden;
}
.marquee__label {
  flex: none; display: flex; align-items: center; gap: calc(9 * var(--u));
  width: calc(132 * var(--u)); padding-left: calc(18 * var(--u));
  font: 600 calc(16 * var(--u))/1 var(--f-cond); text-transform: uppercase; color: var(--lav-2); letter-spacing: .01em;
  background: var(--purple);
  clip-path: polygon(0 0, calc(100% - 12 * var(--u)) 0, 100% 50%, calc(100% - 12 * var(--u)) 100%, 0 100%);
  position: relative; z-index: 2;
}
.marquee__label svg { width: calc(13 * var(--u)); height: calc(13 * var(--u)); fill: none; stroke: currentColor; stroke-width: 2.6; }
.marquee__track { display: flex; flex: 1; min-width: 0; padding-left: calc(24 * var(--u)); }
.marquee__row {
  flex: none; display: flex; align-items: center; gap: calc(21 * var(--u)); padding-right: calc(21 * var(--u));
  animation: marquee 38s linear infinite;
  font: 500 calc(15.8 * var(--u))/1 var(--f-cond); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; color: var(--white);
}
.marquee__row i { font-style: normal; color: var(--lav); }
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- GAMES ---------- */
.games {
  position: relative;
  padding: calc(30 * var(--u)) calc(4 * var(--u)) calc(17 * var(--u)) calc(213 * var(--u));
}
.games__intro { position: absolute; left: calc(22 * var(--u)); top: calc(32 * var(--u)); width: calc(180 * var(--u)); }
.games__intro .eyebrow { margin-left: calc(11 * var(--u)); }
.games__intro .display { margin-top: calc(9 * var(--u)); }
.scribble { width: calc(122 * var(--u)); margin: calc(8 * var(--u)) 0 0 calc(18 * var(--u)); fill: none; stroke: var(--mint); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.games__lead { margin: calc(26 * var(--u)) 0 0 calc(6 * var(--u)); width: calc(168 * var(--u)); font-size: calc(12.4 * var(--u)); line-height: 1.26; color: var(--white); }
.arrow-big { width: calc(40 * var(--u)); margin: calc(22 * var(--u)) 0 0 calc(3 * var(--u)); fill: none; stroke: var(--purple-2); stroke-width: 5; }

.games__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  column-gap: calc(18 * var(--u)); row-gap: calc(19 * var(--u));
  perspective: 1200px;
}

.card {
  --rx: 0deg; --ry: 0deg;
  --ch: calc(9 * var(--u));
  position: relative; cursor: pointer;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
  filter: drop-shadow(0 calc(10 * var(--u)) calc(18 * var(--u)) rgba(0, 0, 0, .35));
}
.card:hover { transition: transform .12s linear; }
.card__frame {
  padding: 2px; background: var(--lav-2);
  clip-path: polygon(0 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% calc(100% - 22 * var(--u)), calc(100% - 22 * var(--u)) 100%, 0 100%);
  transition: background .3s;
}
.card__media {
  position: relative; height: calc(151 * var(--u)); overflow: hidden; background: var(--navy-2);
  clip-path: polygon(0 0, calc(100% - var(--ch) + 1px) 0, 100% calc(var(--ch) - 1px), 100% 100%, 0 100%);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.card__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .22), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.card:hover .card__media img { transform: scale(1.08); }
.card:hover .card__media::after { opacity: 1; }

.card__dl {
  position: absolute; left: calc(-8 * var(--u)); top: calc(-4 * var(--u)); z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(4 * var(--u)) calc(9 * var(--u)) calc(5 * var(--u));
  font: italic 900 calc(25 * var(--u))/.84 var(--f-cond); color: var(--navy); background: var(--yellow);
  transform: rotate(-9deg) translateZ(30px);
  clip-path: polygon(3% 0, 100% 2%, 97% 100%, 0 97%);
}
.card__dl small { font: italic 800 calc(10.5 * var(--u))/1 var(--f-cond); text-transform: uppercase; letter-spacing: 0; margin-top: calc(2 * var(--u)); }
.card__rate {
  position: absolute; right: 2px; top: 2px; z-index: 2;
  height: calc(31 * var(--u)); display: flex; align-items: center;
  padding: 0 calc(10 * var(--u)) 0 calc(20 * var(--u));
  font: 600 calc(18 * var(--u))/1 var(--f-semi); color: var(--white); background: var(--navy);
  clip-path: polygon(calc(12 * var(--u)) 0, calc(100% - var(--ch) + 2px) 0, 100% calc(var(--ch) - 2px), 100% 100%, 0 100%);
  letter-spacing: .02em;
}
.card__play {
  position: absolute; left: 50%; top: 38%; z-index: 2;
  width: calc(54 * var(--u)); height: calc(54 * var(--u)); border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(23, 20, 47, .55); border: 2px solid var(--mint);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transform: translate(-50%, -50%) scale(.6); opacity: 0;
  transition: transform .4s var(--ease), opacity .3s;
}
.card__play svg { width: 40%; height: 40%; fill: var(--mint); margin-left: 3px; }
.card:hover .card__play, .card__play:focus-visible { transform: translate(-50%, -50%) scale(1) translateZ(40px); opacity: 1; }

.card__title {
  margin: 0; display: flex; align-items: center;
  height: calc(42 * var(--u)); padding: 0 calc(16 * var(--u)) 0 calc(10 * var(--u));
  font: italic 800 calc(18.5 * var(--u))/.92 var(--f-cond); color: var(--navy); letter-spacing: -.005em;
  background: var(--lav-2);
  transition: background .3s;
}
.card__title span { display: inline; }
.card__title .nw { white-space: nowrap; }
.card__title svg { display: inline-block; vertical-align: -.1em; width: .9em; height: .9em; margin-left: .15em; fill: none; stroke: currentColor; stroke-width: 3.2; transition: transform .35s var(--ease); }
.card__title > span + svg { flex: none; }
.card:nth-child(n+4) .card__media { height: calc(129 * var(--u)); }
.card:nth-child(n+4) .card__title { height: calc(38 * var(--u)); }
/* flagship game takes two columns */
.card--wide { grid-column: span 2; }
.card--wide .card__media img { object-position: 50% 35%; }
.card__new {
  position: absolute; right: calc(-6 * var(--u)); bottom: calc(30 * var(--u)); z-index: 3;
  padding: calc(5 * var(--u)) calc(10 * var(--u));
  font: italic 900 calc(15 * var(--u))/1 var(--f-cond); text-transform: uppercase; letter-spacing: .04em;
  color: var(--navy); background: var(--mint);
  transform: rotate(-6deg) translateZ(30px);
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  animation: bob 3.5s ease-in-out infinite;
}
.card:hover .card__frame, .card:hover .card__title { background: var(--mint); }
.card:hover .card__title svg { transform: translate(3px, -3px); }

/* ---------- STATS ---------- */
.numbers {
  position: relative; z-index: 4;
  height: calc(129 * var(--u));
  overflow-x: clip;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.numbers__title { position: absolute; left: calc(22 * var(--u)); top: calc(14 * var(--u)); }
.numbers__title .eyebrow { margin-left: calc(11 * var(--u)); }
.numbers__title .display { margin-top: calc(6 * var(--u)); font-size: calc(52 * var(--u)); line-height: .84; }
.numbers__list {
  position: absolute; left: calc(283 * var(--u)); top: calc(22 * var(--u));
  display: grid; grid-template-columns: calc(172 * var(--u)) calc(135 * var(--u)) calc(178 * var(--u)) auto;
}
.stat { position: relative; padding-left: calc(35 * var(--u)); }
.stat:first-child { padding-left: 0; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: calc(-2 * var(--u)); height: calc(92 * var(--u)); width: 1.5px; background: var(--lav-2);
  transform: skewX(-24deg); transform-origin: 50% 50%; opacity: .85;
}
.stat b {
  display: block;
  font: italic 900 calc(60 * var(--u))/.82 var(--f-semi); color: var(--mint);
  letter-spacing: -.005em; white-space: nowrap;
}
.stat b i { font-style: normal; font-size: .62em; vertical-align: .38em; margin-left: .04em; }
.stat span { display: block; margin-top: calc(12 * var(--u)); font: 500 calc(12.2 * var(--u))/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--white); }
.stat--text { padding-left: calc(32 * var(--u)); }
.stat--text b { font-family: var(--f-cond); font-size: calc(27 * var(--u)); line-height: .9; letter-spacing: -.01em; text-transform: uppercase; padding-top: calc(3 * var(--u)); }
.stat--text span { margin-top: calc(9 * var(--u)); }
.numbers__globe { position: absolute; left: calc(926 * var(--u)); top: calc(4 * var(--u)); width: calc(176 * var(--u)); height: calc(176 * var(--u)); pointer-events: none; }

/* ---------- STUDIO ---------- */
.studio { position: relative; height: calc(281 * var(--u)); border-bottom: 1px solid var(--line); overflow: hidden; }
.studio__visual {
  position: absolute; left: 0; top: 0; bottom: 0; width: calc(574 * var(--u));
  clip-path: polygon(0 0, 100% 0, calc(100% - 20 * var(--u)) 100%, 0 100%);
  overflow: hidden; background: #E2C8FF;
}
/* soft lavender → deep purple duotone: multiply onto #E2C8FF (highlights), lighten with #2A1650 (shadows) */
.studio__photo { position: absolute; inset: 0; isolation: isolate; background: #E2C8FF; }
.studio__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  filter: grayscale(1) contrast(1.12) brightness(1.05);
  mix-blend-mode: multiply;
  transform: scale(1.04);
  animation: studioDrift 18s ease-in-out infinite alternate;
}
@keyframes studioDrift { to { transform: scale(1.1) translate(-1.5%, -1%); } }
.studio__photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: #2A1650;
  mix-blend-mode: lighten;
}
.studio__visual::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: #8B4DF6; mix-blend-mode: color; opacity: .6;
}
.studio__note {
  position: absolute; left: calc(2 * var(--u)); top: calc(134 * var(--u)); z-index: 3;
  width: calc(108 * var(--u)); height: calc(112 * var(--u)); color: var(--navy);
  transform: rotate(-5deg);
  filter: drop-shadow(0 calc(8 * var(--u)) calc(10 * var(--u)) rgba(0, 0, 0, .4));
}
.studio__note::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 18% 78%, rgba(23, 20, 47, .5) 0 1px, transparent 1.6px) 0 0 / calc(13 * var(--u)) calc(11 * var(--u)),
    radial-gradient(circle at 70% 30%, rgba(23, 20, 47, .35) 0 .8px, transparent 1.4px) 0 0 / calc(17 * var(--u)) calc(19 * var(--u)),
    var(--yellow);
  clip-path: polygon(0 3%, 9% 1%, 16% 4%, 27% 0, 38% 3%, 52% 1%, 63% 4%, 76% 0, 88% 3%, 100% 1%, 98% 14%, 100% 27%, 97% 41%, 100% 56%, 98% 70%, 100% 84%, 97% 100%, 85% 97%, 72% 100%, 58% 96%, 44% 100%, 30% 97%, 17% 100%, 6% 96%, 0 99%, 2% 80%, 0 62%, 2% 44%, 0 26%);
}
.studio__note svg { position: absolute; left: 12%; top: 18%; width: 74%; fill: none; stroke: var(--navy); stroke-width: 2.6; stroke-linejoin: round; }
.studio__note::before { content: ""; position: absolute; z-index: 1; left: 22%; top: calc(-7 * var(--u)); width: 44%; height: calc(16 * var(--u)); background: rgba(238, 228, 255, .62); transform: rotate(-8deg); clip-path: polygon(3% 0, 97% 6%, 100% 100%, 0 92%); }
.studio__crown { position: absolute; z-index: 3; left: calc(234 * var(--u)); top: calc(44 * var(--u)); width: calc(56 * var(--u)); fill: none; stroke: var(--mint); stroke-width: 3.5; stroke-linejoin: round; transform: rotate(6deg); animation: bob 5s ease-in-out infinite; }

.studio__copy { position: absolute; left: calc(587 * var(--u)); top: calc(17 * var(--u)); right: 0; }
.studio__copy .eyebrow { margin-left: calc(17 * var(--u)); }
.studio__copy .display { margin-top: calc(-17 * var(--u)); font-size: calc(76 * var(--u)); line-height: .71; color: var(--white); margin-left: calc(-2 * var(--u)); }
.studio__the { font-size: .7em; margin-left: .16em; }
.studio__badge {
  position: absolute; left: calc(234 * var(--u)); top: calc(2 * var(--u));
  width: calc(172 * var(--u)); height: calc(112 * var(--u)); transform: rotate(-6deg);
}
.studio__badge span { position: absolute; left: 12%; top: 13%; width: 64%; font: italic 900 calc(23 * var(--u))/.86 var(--f-semi); text-transform: uppercase; color: var(--mint); text-align: center; letter-spacing: -.01em; }
.studio__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--mint); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.studio__text { margin: calc(12 * var(--u)) 0 0 calc(17 * var(--u)); font-size: calc(13.3 * var(--u)); line-height: 1.2; color: var(--white); white-space: nowrap; }
.studio__pillars { list-style: none; padding: 0; margin: calc(12 * var(--u)) 0 0; display: flex; gap: calc(26 * var(--u)); }
.studio__pillars li { display: flex; align-items: center; gap: calc(12 * var(--u)); font: 500 calc(12 * var(--u))/1.08 var(--f-cond); letter-spacing: .02em; text-transform: uppercase; color: var(--white); }
.studio__pillars svg { width: calc(30 * var(--u)); height: calc(30 * var(--u)); fill: none; stroke: var(--white); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- CONTACT ---------- */
.contact { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); height: calc(306 * var(--u)); }
.contact__smoke {
  position: absolute; left: 0; top: 0; width: 62%; height: 100%; z-index: -1;
  -webkit-mask-image: linear-gradient(100deg, #000 0, #000 58%, transparent 74%);
  mask-image: linear-gradient(100deg, #000 0, #000 58%, transparent 74%);
}
.contact__inner { position: absolute; inset: 0; }
.contact__title { position: absolute; left: calc(24 * var(--u)); top: calc(20 * var(--u)); }
.display--xl { font: italic 900 calc(64 * var(--u))/.77 var(--f-head); color: var(--white); letter-spacing: -.01em; transform: scaleX(1.28) skewX(-8deg); transform-origin: 0 100%; }
.contact__body { position: absolute; left: calc(495 * var(--u)); top: calc(40 * var(--u)); }
.contact__body::before, .contact__brand::before {
  content: ""; position: absolute; left: calc(-15 * var(--u)); top: 0; height: calc(96 * var(--u)); width: 1.5px; background: var(--lav-2); transform: skewX(-22deg); opacity: .85;
}
.contact__body::before { left: calc(-16 * var(--u)); top: calc(-4 * var(--u)); }
.contact__body p { margin: 0 0 0 calc(30 * var(--u)); font-size: calc(12.4 * var(--u)); line-height: 1.28; color: var(--white); }
.btn-tag--lg { margin-top: calc(13 * var(--u)); width: calc(215 * var(--u)); height: calc(42 * var(--u)); font-size: calc(18 * var(--u)); gap: .65em; }
.btn-tag--lg svg { width: 1.1em; height: 1.1em; stroke-width: 2.2; }
.contact__brand { position: absolute; left: calc(795 * var(--u)); top: calc(33 * var(--u)); }
.contact__brand::before { left: calc(-50 * var(--u)); top: calc(4 * var(--u)); }
.brand--lg .brand__icon { height: calc(62 * var(--u)); }
.brand--lg .brand__word { width: calc(124 * var(--u)); }
.brand--lg { gap: calc(8 * var(--u)); }
.socials { list-style: none; margin: calc(14 * var(--u)) 0 0; padding: 0; display: flex; gap: calc(15 * var(--u)); }
.socials a { width: calc(22 * var(--u)); height: calc(22 * var(--u)); display: grid; place-items: center; transition: transform .3s var(--ease); }
.socials svg { width: 100%; height: 100%; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s, fill .2s; }
.socials svg .fill { fill: var(--white); stroke: none; }
.socials a:hover { transform: translateY(-3px) rotate(-6deg); }
.socials a:hover svg { stroke: var(--yellow); }
.socials a:hover svg .fill { fill: var(--yellow); }

.contact__meta {
  position: absolute; left: calc(470 * var(--u)); right: calc(24 * var(--u)); top: calc(160 * var(--u));
  margin: 0; padding-top: calc(16 * var(--u)); border-top: 1px solid rgba(147, 94, 255, .4);
  display: grid; grid-template-columns: 1.75fr 1fr .85fr; gap: calc(24 * var(--u));
}
.contact__meta dt { margin-bottom: calc(5 * var(--u)); font: 700 calc(9.5 * var(--u))/1 var(--f-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.contact__meta dd { margin: 0; font: 400 calc(10.5 * var(--u))/1.55 var(--f-body); color: var(--lav-2); }
.contact__meta dd b { font-weight: 600; color: var(--white); }
.contact__meta dd span { white-space: nowrap; }
.contact__meta a { color: var(--white); transition: color .2s; }
.contact__meta a:hover { color: var(--mint); }
.footer {
  position: absolute; left: 0; right: 0; bottom: calc(23 * var(--u));
  font: 500 calc(9 * var(--u))/1 var(--f-body); letter-spacing: .04em; text-transform: uppercase; color: var(--white);
}
.footer > span { position: absolute; left: calc(457 * var(--u)); bottom: 0; }
.footer nav { position: absolute; left: calc(810 * var(--u)); bottom: calc(-1 * var(--u)); display: flex; gap: calc(16 * var(--u)); font: 500 calc(11.5 * var(--u))/1 var(--f-cond); letter-spacing: .03em; }
.footer i { font-style: normal; }
.footer a:hover { color: var(--yellow); }

/* ---------- MODAL ---------- */
.modal {
  width: min(1000px, calc(100% - 32px)); max-width: none; max-height: none; padding: 16px 16px 0 0; border: 0; background: transparent; color: var(--white);
  overflow: visible;
}
.modal::backdrop { background: rgba(10, 8, 26, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal[open] .modal__box { animation: modalIn .45s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.modal__box { position: relative; background: var(--navy); border: 1px solid var(--line); }
.modal__close {
  position: absolute; right: -16px; top: -16px; z-index: 2;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--yellow); color: var(--navy); font-weight: 800; font-size: 20px; line-height: 1;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  transition: background .2s, transform .3s var(--ease);
}
.modal__close:hover { background: var(--mint); transform: rotate(-6deg); }
.modal__video { aspect-ratio: 16 / 9; background: #000; }
.modal__video { position: relative; }
.modal__video iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__video iframe[hidden] { display: none; }
.modal__video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal__video img[hidden] { display: none; }
.modal__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; }
.modal__bar h3 { margin: 0; font: italic 900 clamp(24px, 3vw, 36px)/1 var(--f-cond); text-transform: uppercase; }
.modal__stores { display: flex; gap: 10px; }
.store {
  padding: 10px 16px; font: 700 15px/1 var(--f-cond); text-transform: uppercase; letter-spacing: .04em;
  border: 1.5px solid var(--mint); color: var(--mint); transition: background .2s, color .2s;
}
.store:hover { background: var(--mint); color: var(--navy); }
.store[hidden] { display: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.games__grid .card.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.games__grid .card.reveal.is-in { transform: rotateX(var(--rx)) rotateY(var(--ry)); }

/* =========================================================
   MOBILE / TABLET (< 900px): stacked flow layout
   ========================================================= */
@media (max-width: 900px) {
  :root { --u: 1px; }
  .nav { height: 64px; padding: 0 var(--gutter); }
  .brand__icon { height: 44px; }
  .brand__word { width: 104px; }
  .nav__links { display: none; }
  .nav__cta { position: static; width: auto; height: 36px; font-size: 15px; padding: 0 16px; }

  .hero { height: auto; padding-bottom: 40px; }
  .hero__tag { position: relative; left: auto; top: auto; margin: var(--stack-top, 64vw) 0 0 calc(var(--gutter) + 18px); display: inline-block; --ts: clamp(32px, 9vw, 52px); }
  .hero__side { position: relative; left: auto; top: auto; width: auto; margin: 44px var(--gutter) 0; }
  .hero__kicker br { display: none; }
  .hero__kicker { font-size: 15px; }
  .hero__desc { margin: 14px 0 0; font-size: 15px; max-width: 360px; }
  .hero__side .btn-tag { position: relative; left: auto; top: auto; margin-top: 20px; width: auto; height: 42px; font-size: 16px; padding: 0 22px; }

  .marquee { height: 44px; }
  .marquee__label { width: auto; padding: 0 26px 0 var(--gutter); font-size: 16px; }
  .marquee__label svg { width: 14px; height: 14px; }
  .marquee__row { font-size: 16px; gap: 20px; padding-right: 20px; }

  .eyebrow { font-size: 15px; }
  .display { font-size: clamp(52px, 14vw, 80px); }

  .games { padding: 56px var(--gutter) 56px; }
  .games__intro { position: static; width: auto; margin-bottom: 36px; }
  .games__intro .eyebrow { margin-left: 0; }
  .games__intro .display br { display: none; }
  .games__intro .display { margin-top: 12px; }
  .scribble { width: 120px; margin: 14px 0 0; }
  .games__lead { width: auto; max-width: 420px; margin: 18px 0 0; font-size: 15px; }
  .arrow-big { display: none; }
  .games__grid { grid-template-columns: repeat(2, 1fr); column-gap: 18px; row-gap: 28px; }
  .card { --ch: 10px; }
  .games__grid .card .card__media { height: auto; aspect-ratio: 16 / 10; }
  .games__grid .card .card__title { height: 54px; font-size: 17px; padding: 0 24px 0 10px; }
  .games__grid .card--wide .card__media { aspect-ratio: 16 / 8; }
  .card__new { font-size: 13px; padding: 5px 9px; right: -4px; bottom: 64px; }
  .card__dl { font-size: 22px; }
  .card__dl small { font-size: 10.5px; }
  .card__rate { height: 30px; font-size: 16px; }

  .numbers { height: auto; padding: 48px var(--gutter) 56px; overflow: hidden; }
  .numbers__title { position: static; }
  .numbers__title .eyebrow { margin-left: 0; }
  .numbers__title .display { font-size: clamp(48px, 13vw, 72px); }
  .numbers__list { position: static; margin-top: 32px; grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stat, .stat--text { padding-left: 22px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(3)::before { display: none; }
  .stat + .stat::before { height: 86px; }
  .stat b { font-size: clamp(48px, 13vw, 64px); }
  .stat--text b { font-size: 26px; }
  .stat span { font-size: 12.5px; }
  .numbers__globe { left: auto; right: -70px; top: 20px; width: 200px; height: 200px; opacity: .55; }

  .studio { height: auto; overflow: visible; }
  .studio__visual { position: relative; width: 100%; height: 66vw; clip-path: none; }
  .studio__note { width: 96px; height: 100px; top: auto; bottom: 22px; left: 4px; }
  .studio__crown { left: 40%; top: 10%; width: 46px; }
  .studio__copy { position: relative; left: auto; top: auto; padding: 44px var(--gutter) 52px; }
  .studio__copy .eyebrow { margin-left: 0; }
  .studio__copy .display { font-size: clamp(56px, 15vw, 80px); margin: 12px 0 0; line-height: .82; }
  .studio__badge { position: relative; left: auto; top: auto; margin: 18px 0 0 auto; width: 170px; height: 110px; }
  .studio__badge span { font-size: 21px; }
  .studio__text { white-space: normal; margin: 8px 0 0; font-size: 15px; line-height: 1.5; }
  .studio__text br { display: none; }
  .studio__pillars { flex-wrap: wrap; display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 18px 28px; margin-top: 28px; }
  .studio__pillars li { font-size: 14px; }

  .contact { height: auto; }
  .contact__smoke { width: 100%; height: 340px; -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent); mask-image: linear-gradient(180deg, #000 50%, transparent); }
  .contact__inner { position: relative; inset: auto; padding: 48px var(--gutter) 24px; display: grid; gap: 40px; }
  .contact__title, .contact__body, .contact__brand { position: relative; left: auto; top: auto; }
  .contact__body::before, .contact__brand::before { display: none; }
  .contact__meta { position: relative; left: auto; right: auto; top: auto; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 22px; }
  .contact__meta dt { font-size: 12px; margin-bottom: 6px; }
  .contact__meta dd { font-size: 13.5px; }
  .display--xl { font-size: clamp(44px, 11vw, 64px); transform: scaleX(1.25) skewX(-8deg); }
  .contact__body p { margin: 0; font-size: 16px; }
  .contact__body p br { display: none; }
  .btn-tag--lg { margin-top: 20px; width: auto; height: 48px; font-size: 18px; padding: 0 26px; }
  .brand--lg .brand__icon { height: 56px; }
  .brand--lg .brand__word { width: 120px; }
  .socials { margin-top: 20px; gap: 22px; }
  .socials a { width: 26px; height: 26px; }
  .footer { position: relative; bottom: auto; display: flex; flex-direction: column-reverse; gap: 14px; padding: 18px var(--gutter) 28px; border-top: 1px solid var(--line); font-size: 12px; }
  .footer > span, .footer nav { position: static; }
  .footer nav { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- COMPANY ---------- */
.company { border-top: 1px solid var(--line); background: var(--ink); }
.company__list {
  margin: 0; display: grid; grid-template-columns: 1.1fr 1.6fr 1.3fr .9fr;
  gap: calc(24 * var(--u)); padding: calc(22 * var(--u)) calc(24 * var(--u)) calc(26 * var(--u));
}
.company dt { margin-bottom: calc(6 * var(--u)); font: 700 calc(11 * var(--u))/1 var(--f-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.company dd { margin: 0; font: 400 calc(11.5 * var(--u))/1.5 var(--f-body); color: var(--lav-2); }
.company a { color: var(--white); transition: color .2s; }
.company a:hover { color: var(--mint); }
@media (max-width: 900px) {
  .company__list { grid-template-columns: 1fr 1fr; gap: 22px; padding: 28px var(--gutter) 32px; }
  .company dt { font-size: 12px; margin-bottom: 6px; }
  .company dd { font-size: 13px; }
}
@media (max-width: 600px) { .company__list { grid-template-columns: 1fr; } }

/* ---------- custom cursor (hover devices only) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
  html.native-cursor, html.native-cursor * { cursor: auto !important; }
  html.native-cursor .cursor { opacity: 0; }
  .cursor { display: block; position: fixed; inset: 0; z-index: 200; pointer-events: none; transition: opacity .3s; }
  .cursor.is-hidden { opacity: 0; }
  .cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; will-change: transform; }
  .cursor__dot {
    width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
    background: var(--yellow); box-shadow: 0 0 12px rgba(237, 203, 80, .8);
    transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), opacity .2s;
  }
  .cursor__ring { width: 0; height: 0; }
  .cursor__ring svg {
    position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; overflow: visible;
    fill: transparent; stroke: var(--mint); stroke-width: 5; stroke-linejoin: round;
    animation: cursorSpin 6s linear infinite;
    transition: left .35s var(--ease), top .35s var(--ease), width .35s var(--ease), height .35s var(--ease), fill .3s, stroke .3s, stroke-width .3s;
  }
  @keyframes cursorSpin { to { transform: rotate(360deg); } }
  .cursor__label {
    position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.4); opacity: 0; white-space: nowrap;
    font: italic 900 15px/1 var(--f-cond); letter-spacing: .04em; text-transform: uppercase; color: var(--navy);
    transition: opacity .25s, transform .35s var(--ease);
  }
  /* links / buttons: hexagon swells and fills */
  .cursor.is-link .cursor__ring svg { left: -34px; top: -34px; width: 68px; height: 68px; fill: rgba(55, 243, 187, .18); stroke-width: 3.5; }
  .cursor.is-link .cursor__dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; }
  /* game cards: becomes a PLAY badge */
  .cursor.is-play .cursor__ring svg { left: -46px; top: -46px; width: 92px; height: 92px; fill: var(--yellow); stroke: var(--yellow); animation-duration: 14s; }
  .cursor.is-play .cursor__dot { opacity: 0; }
  .cursor.is-play .cursor__label, .cursor.is-stir .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  /* hero smoke: STIR hint */
  .cursor.is-stir .cursor__ring svg { left: -40px; top: -40px; width: 80px; height: 80px; stroke: var(--lav); stroke-width: 2.5; stroke-dasharray: 10 8; }
  .cursor.is-stir .cursor__label { color: var(--lav); font-size: 13px; }
  .cursor.is-down .cursor__ring svg { left: -16px; top: -16px; width: 32px; height: 32px; }
}
