/* =========================================================
   MakeGamesGood — one page
   1. Fonts
   2. Tokens & reset
   3. Base
   4. Utilities
   5. Navigation
   6. Hero
   7. Clients
   8. QA cards
   9. Platforms
   10. Process
   11. About
   12. Contact
   13. Footer
   14. Motion & responsive
   ========================================================= */

/* ---------- 1. Fonts ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-400.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: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-400-ext.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: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-500.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: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-500-ext.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: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-600.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: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-600-ext.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: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-500.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: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-500-ext.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: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-600.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: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-600-ext.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: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-700.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: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-700-ext.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;
}

/* ---------- 2. Tokens & reset ---------- */
:root {
  --bg: #08090b;
  --bg-deep: #050608;
  --surface: #0e1115;
  --surface-2: #12161b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --text: #f2f4ef;
  --muted: #9aa1a8;
  --muted-2: #77808a;
  --accent: #c9ff4a;
  --accent-soft: rgba(201, 255, 74, 0.12);
  --danger: #ff8a7a;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --nav-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

/* film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("../assets/img/noise.svg");
  background-size: 220px 220px;
  opacity: 0.035;
  mix-blend-mode: soft-light;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #08090b; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Base ---------- */
.container {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(72px, 9vw, 132px);
  border-top: 1px solid var(--line);
}

.section--clients { padding-block: clamp(56px, 7vw, 100px); }

.accent { color: var(--accent); }

/* ---------- 4. Utilities ---------- */
.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--accent);
  color: #08090b;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip:focus { transform: none; }

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Preloader ---------- */
/* Gated on html.js: without JavaScript the overlay never appears, so a broken
   script cannot trap the page behind it. */
.preloader { display: none; }
html.js .preloader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(22px, 3.6vh, 34px);
  background: var(--bg);
  transition: transform 0.72s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}
/* Monogram is drawn with stroke-dash and then fills in. Every path carries
   pathLength="1", so `stroke-dasharray: 1` covers the whole contour. */
.preloader__mark {
  width: clamp(212px, 25vw, 300px);
  height: auto;
}
.preloader__mark path {
  --d: 0s;
  fill: #fff;
  stroke: #fff;
  stroke-width: 8;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  /* paths are ordered left → right in the markup, 0.13 s apart; the whole mark
     fills in only after the last contour is drawn */
  animation:
    pre-draw 0.5s cubic-bezier(0.55, 0, 0.3, 1) var(--d) forwards,
    pre-fill 0.45s ease 1.05s both,
    pre-stroke-out 0.45s ease 1.05s both;
}
.preloader__mark path:nth-child(2) { --d: 0.13s; }
.preloader__mark path:nth-child(3) { --d: 0.26s; }
.preloader__mark path:nth-child(4) { --d: 0.39s; }
.preloader__mark path:nth-child(5) { --d: 0.52s; }
.preloader__bar {
  width: clamp(150px, 17vw, 208px);
  height: 2px;
  border-radius: 2px;
  background: rgba(242, 244, 239, 0.14);
  overflow: hidden;
}
.preloader__bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  animation: pre-bar 1.35s cubic-bezier(0.4, 0, 0.2, 1) 0.04s forwards;
}
.preloader.is-done { transform: translateY(-100%); }

@keyframes pre-draw { to { stroke-dashoffset: 0; } }
@keyframes pre-fill { from { fill-opacity: 0; } to { fill-opacity: 1; } }
@keyframes pre-stroke-out { from { stroke-opacity: 1; } to { stroke-opacity: 0; } }
@keyframes pre-bar { to { transform: scaleX(1); } }

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: #08090b;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s, transform 0.25s var(--ease), border-color 0.25s, color 0.25s;
}
.btn .icon { transition: transform 0.25s var(--ease); }
.btn:hover { background: #d9ff74; transform: translateY(-2px); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--accent); color: var(--accent); }

.btn--sm { height: 42px; padding: 0 18px; font-size: 12.5px; }
.btn--full { width: 100%; }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.kicker__num {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lead {
  margin-top: 22px;
  max-width: 62ch;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.65;
  color: var(--muted);
}

.section-head { max-width: 920px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--wide { max-width: 1100px; }
.section-head__row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(200px, 0.55fr);
  gap: 32px;
  align-items: end;
}
.section-head__note {
  justify-self: end;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted-2);
  text-align: right;
}

.section-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 36px;
  font-size: 14px;
  color: var(--muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(201, 255, 74, 0.35);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.25s, border-color 0.25s;
}
.link-arrow .icon { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- 5. Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav.is-scrolled {
  background: rgba(8, 9, 11, 0.74);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}

.brand { display: inline-flex; align-items: center; gap: 10px; position: relative; z-index: 2; }
/* full lockup (monogram + wordmark), 1128×451 — height drives the size */
.brand__logo { display: block; height: 44px; width: auto; flex: none; }

.nav__links { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.nav__link {
  position: relative;
  padding: 6px 0;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after,
.nav__link[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="true"] { color: var(--accent); }

.nav__aside {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 4px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.lang { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; }
.lang__item { color: var(--muted-2); transition: color 0.2s; }
a.lang__item:hover { color: var(--accent); }
.lang__item.is-active { color: var(--text); }
.lang__sep { color: rgba(255, 255, 255, 0.2); }

.nav__toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav__toggle span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 19px; }
.nav__toggle span:nth-child(2) { top: 24px; }
.nav__toggle.is-open span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* ---------- 6. Hero ---------- */
/* Background video lives under the gradient overlay; the CSS grade keeps stock
   footage inside the dark, technical palette (the source clip stays untouched). */
.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + clamp(40px, 7vh, 84px));
  padding-bottom: 28px;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background-color: #0a0c10;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  filter: grayscale(0.35) brightness(0.9) contrast(1.06) saturate(0.85);
  transform: scale(1.04);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(120% 90% at 78% 72%, rgba(201, 255, 74, 0.16) 0%, rgba(201, 255, 74, 0) 55%),
    radial-gradient(80% 70% at 12% 8%, rgba(88, 128, 255, 0.1) 0%, rgba(88, 128, 255, 0) 60%);
  background-size: cover, cover;
  background-position: center, center;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.9) 0%, rgba(8, 9, 11, 0.7) 35%, rgba(8, 9, 11, 0.26) 62%, rgba(8, 9, 11, 0.1) 100%),
    linear-gradient(180deg, rgba(8, 9, 11, 0.55) 0%, rgba(8, 9, 11, 0.06) 30%, rgba(8, 9, 11, 0.8) 100%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(36px, 7vh, 72px);
}

.hero__main {
  display: grid;
  /* single column: the "Build verification" panel is hidden (see .hero__panel) */
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}

.hero__copy { max-width: 760px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: clamp(20px, 3vh, 30px);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c3cbc0;
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(201, 255, 74, 0.13);
  animation: pulse 2.6s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin-bottom: clamp(22px, 3vh, 32px);
}

.hero__sub {
  max-width: 54ch;
  font-size: clamp(15.5px, 1.3vw, 18.5px);
  line-height: 1.6;
  color: #c2c8c1;
  margin-bottom: 32px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 30px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}
.hero__meta li { display: flex; align-items: center; gap: 9px; }
.hero__meta li::before {
  content: "";
  width: 14px;
  height: 1px;
  background: rgba(201, 255, 74, 0.5);
}

/* "Build verification" panel is off by design — the video carries the hero alone.
   To bring it back: restore the second grid column above and drop this rule. */
.hero__panel { display: none; }

.panel {
  position: relative;
  padding: 20px;
  background: linear-gradient(160deg, rgba(22, 27, 20, 0.82), rgba(9, 11, 9, 0.78));
  border: 1px solid rgba(201, 255, 74, 0.2);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 34px 80px -30px rgba(0, 0, 0, 0.9);
}
.panel::after {
  content: "";
  position: absolute;
  inset: -11px -11px 11px 11px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 22px;
  pointer-events: none;
}
.panel__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #dde4d8;
}
.panel__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(201, 255, 74, 0.8);
  animation: pulse 2.6s ease-in-out infinite;
}
.panel__tag {
  margin-left: auto;
  padding: 2px 6px;
  border: 1px solid rgba(201, 255, 74, 0.35);
  border-radius: 4px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.panel__rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  font-size: 12.5px;
  color: #b8bfb5;
}
.panel__rows li:last-child { border-bottom: 0; padding-bottom: 4px; }
.panel__ok {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.panel__ok .icon { width: 12px; height: 12px; }
.panel__foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hero__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9d0c4;
}

.scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
}
.scroll:hover { color: var(--accent); }
.scroll i {
  position: relative;
  display: block;
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.scroll i::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  background: var(--accent);
  animation: scrollLine 2s var(--ease) infinite;
}

/* ---------- 7. Clients ---------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.logo {
  display: grid;
  place-items: center;
  min-height: clamp(96px, 11vw, 132px);
  padding: 22px;
  background: var(--bg);
  transition: background 0.3s;
}
@media (hover: hover) {
  .logo:hover { background: #0b0e12; }
}

.wm {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.45vw, 20px);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: #c9cec8;
  opacity: 0.6;
  transition: opacity 0.3s, color 0.3s;
}
@media (hover: hover) {
  .logo:hover .wm { opacity: 1; color: var(--text); }
  .logo:hover .wm__dot,
  .logo:hover .wm__accent { color: var(--accent); }
}
.wm__dot { color: #c9cec8; transition: color 0.3s; }
.wm__accent { margin-left: 0.35em; transition: color 0.3s; }
.wm__light {
  margin-left: 0.4em;
  font-size: 0.78em;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wm--superkami { letter-spacing: -0.04em; }
.wm--at { letter-spacing: 0.03em; font-weight: 700; }
.wm--huuuge { letter-spacing: -0.055em; font-weight: 700; }
.wm--huuuge .wm__light { letter-spacing: 0.1em; }
.wm--monster {
  font-size: clamp(11px, 1.05vw, 14px);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.wm--robot {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.5vw, 21px);
  font-weight: 700;
  letter-spacing: 0.005em;
}
.wm--cdpr {
  font-size: clamp(12px, 1.15vw, 16px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.wm--reality {
  font-family: var(--font-body);
  font-size: clamp(11.5px, 1.1vw, 14.5px);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.wm--jettoast { letter-spacing: -0.04em; font-weight: 700; }

/* ---------- 8. QA cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
  background: linear-gradient(170deg, #0f1216 0%, #0a0c0f 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s var(--ease), background 0.35s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 255, 74, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 255, 74, 0.28);
    background: linear-gradient(170deg, #12161a 0%, #0b0e11 100%);
  }
  .card:hover::before { opacity: 1; }
}
.card__top { display: flex; align-items: flex-start; justify-content: space-between; }
.card__num {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}
.card__icon { width: 34px; height: 34px; color: var(--accent); }
.card h3 {
  font-family: var(--font-display);
  font-size: clamp(23px, 2.2vw, 29px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.card p { flex: 1; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.tags li {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #a7aea6;
}

/* ---------- 9. Platforms ---------- */
.section--platforms { background: linear-gradient(180deg, #0a0c0f 0%, var(--bg) 100%); }
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.platform { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.platform__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.platform__icon { width: 36px; height: 36px; color: var(--accent); }
.platform__index {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}
.platform h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(25px, 2.5vw, 33px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.platform p { max-width: 36ch; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.platform__meta {
  margin-top: 20px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7c847b;
}

/* ---------- 10. Process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.step { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.step__num {
  display: block;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: clamp(42px, 4.6vw, 58px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 255, 74, 0.5);
}
@supports not (-webkit-text-stroke: 1px black) {
  .step__num { color: rgba(201, 255, 74, 0.25); }
}
.step h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.step p { font-size: 14px; line-height: 1.65; color: var(--muted); }

/* ---------- 11. About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.about__media { max-width: 460px; }

.poster {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 4 / 5;
  padding: clamp(24px, 3vw, 36px);
  background: var(--accent);
  color: #070a05;
  border-radius: 6px;
  overflow: hidden;
  transform: rotate(-1.25deg);
  box-shadow: 0 40px 90px -45px rgba(201, 255, 74, 0.3);
  transition: transform 0.7s var(--ease);
}
.about__media:hover .poster { transform: rotate(0deg); }
.poster::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(7, 10, 5, 0.2);
  pointer-events: none;
}
.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(7, 10, 5, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 10, 5, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.poster__tag,
.poster__foot,
.poster__big { position: relative; z-index: 1; }
.poster__tag {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.poster__big {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 62px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.poster__big span { color: transparent; -webkit-text-stroke: 1.4px #070a05; }
.poster__foot {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.about__body .kicker { margin-bottom: 18px; }
.about__body .h2 { max-width: 20ch; margin-bottom: 22px; font-size: clamp(30px, 3.6vw, 48px); }
.about__body p { max-width: 58ch; margin-bottom: 14px; font-size: 15.5px; line-height: 1.7; color: var(--muted); }

.checks { display: grid; gap: 10px; margin: 26px 0 28px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: #d7dcd4; }
.checks .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }

/* ---------- 12. Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.contact__intro .h2 { max-width: 16ch; font-size: clamp(32px, 4vw, 52px); }
.contact__intro .lead { max-width: 44ch; }

.contact__links { display: grid; gap: 18px; margin-top: 34px; }
.contact__links li { display: flex; flex-direction: column; gap: 6px; }
.contact__label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.contact__links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  font-size: 15px;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}
.contact__links a:hover { color: var(--accent); }
.contact__links .icon { width: 16px; height: 16px; color: var(--accent); opacity: 0.85; }
.contact__note {
  max-width: 40ch;
  margin-top: 28px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-2);
}

.contact__panel {
  padding: clamp(22px, 3vw, 34px);
  background: linear-gradient(170deg, #101318 0%, #0a0c0f 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form { display: grid; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.field input,
.field textarea {
  width: 100%;
  padding: 8px 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: #5e6660; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent);
}
.field.is-invalid input,
.field.is-invalid textarea {
  border-bottom-color: var(--danger);
  box-shadow: 0 1px 0 0 var(--danger);
}
.field__error { font-size: 11.5px; line-height: 1.4; color: var(--danger); }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  cursor: pointer;
}
.consent input {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.consent input:checked { background: var(--accent); border-color: var(--accent); }
.consent input:checked::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #08090b;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent.is-invalid input { border-color: var(--danger); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
  margin-bottom: 20px;
  padding: 13px 16px;
  border: 1px solid rgba(201, 255, 74, 0.3);
  border-radius: 10px;
  background: rgba(201, 255, 74, 0.1);
  color: #dfffa0;
  font-size: 13.5px;
  line-height: 1.5;
}
.form-alert.is-error {
  border-color: rgba(255, 138, 122, 0.35);
  background: rgba(255, 138, 122, 0.08);
  color: #ffb4a9;
}
.form-alert[hidden] { display: none; }

/* ---------- 13. Footer ---------- */
.footer { padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
}
.footer__brand .brand__logo { height: 54px; }
.footer__brand p { max-width: 30ch; margin-top: 14px; font-size: 13px; color: var(--muted-2); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-content: flex-start; }
.footer__nav a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.footer__nav a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted-2);
}
.footer__top-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); transition: color 0.2s; }
.footer__top-link:hover { color: var(--accent); }
.footer__top-link .icon { width: 13px; height: 13px; }

/* ---------- 14. Motion ---------- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes scrollLine {
  0% { transform: translateY(-14px); }
  60%, 100% { transform: translateY(36px); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero__copy > * { animation: rise 0.9s var(--ease) both; }
.hero__copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero__copy > *:nth-child(2) { animation-delay: 0.12s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.2s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.28s; }
.hero__copy > *:nth-child(5) { animation-delay: 0.36s; }
.hero__panel { animation: rise 1s var(--ease) 0.4s both; }
.hero__bottom { animation: fade 0.9s ease 0.6s both; }

html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
@media (max-width: 1080px) {
  .hero__main { grid-template-columns: 1fr; margin-block: auto; }
  .hero__panel { display: none; }
  .hero__copy { max-width: 860px; }
}

@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; }
  .card p { flex: none; }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__media { max-width: 400px; order: 2; }
  .about__body { order: 1; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .section-head__row { grid-template-columns: 1fr; gap: 16px; }
  .section-head__note { justify-self: start; text-align: left; }
}

@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
    background: #08090b;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.45s var(--ease);
    visibility: hidden;
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav__link {
    padding: 8px 0;
    font-family: var(--font-display);
    font-size: clamp(28px, 7vw, 40px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--text);
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="true"] { color: var(--accent); }
  .nav__aside {
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
    margin: 26px 0 0;
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav__inner { position: relative; z-index: 2; }

  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 64px); padding-bottom: 26px; }
  /* copy runs the full width on phones, so the veiled video needs a flatter wash */
  .hero__bg::after {
    background:
      linear-gradient(180deg, rgba(8, 9, 11, 0.86) 0%, rgba(8, 9, 11, 0.52) 45%, rgba(8, 9, 11, 0.94) 100%),
      linear-gradient(90deg, rgba(8, 9, 11, 0.8) 0%, rgba(8, 9, 11, 0.55) 72%, rgba(8, 9, 11, 0.42) 100%);
  }
  .hero__inner { gap: 44px; }
  .hero__title { font-size: clamp(42px, 12vw, 78px); }
  .platform-grid, .steps { grid-template-columns: 1fr; gap: 30px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .section-foot { flex-direction: column; align-items: flex-start; }
  .footer__top { flex-direction: column; gap: 28px; }
  .nav__cta { height: 46px; }
}

@media (max-width: 620px) {
  :root { --nav-h: 68px; }
  .brand__logo { height: 36px; }
  .hero__title { font-size: clamp(40px, 13.2vw, 64px); }
  .hero__sub { font-size: 15.5px; }
  .hero__meta { gap: 10px 18px; font-size: 11px; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .scroll i { height: 26px; }
  .section { padding-block: 64px; }
  .section--clients { padding-block: 52px; }
  .logo { min-height: 86px; padding: 16px 8px; }
  .wm { font-size: 13px; }
  .wm--monster { font-size: 10.5px; letter-spacing: 0.18em; }
  .wm--cdpr { font-size: 11px; }
  .wm--reality { font-size: 10.5px; letter-spacing: 0.14em; }
  .card { padding: 24px; }
  .contact__panel { padding: 20px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__legal { order: 3; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 37px; }
  .wm { font-size: 12px; }
  .wm--robot { font-size: 13.5px; }
}

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

@media print {
  .preloader,
  .nav, .hero__bg, .hero__panel, .scroll, .footer__top-link { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; }
  .section { border-color: #ddd; }
}
