/* ============================================================
   LUDEO — landing page
   Reference design is specified in fixed px; values below are
   expressed fluidly so the layout scales as a ratio and stays
   responsive down to mobile.
   ============================================================ */

:root {
  /* Brand tokens */
  --off-black: #0c0c0c;
  --text-body: #404040;

  /* Palette */
  --dark-2: var(--off-black);
  --dark-3: var(--text-body);
  --dark-4: #6b6b6b;
  --light-1: #b8baca;
  --light-3: #efefef;
  --light-4: #ffffff;
  --yellow: #eca746;
  --dark-page: #1b1d24;

  /* Promo strip — Runway-style blue → indigo gradient (same in both themes) */
  --banner-grad: linear-gradient(90deg, #e0913a 0%, #eca746 48%, #c9792a 100%);

  --nav-bg: #ffffff;
  --nav-border: #ebe8e1;

  /* Surfaces */
  --surface: #ffffff;
  --line: #e7e4dd;
  --ink: var(--off-black);

  /* Layout */
  --banner-h: 48px;
  --nav-h: 72px;
  --container-max: 1556px;
  --container-pad: clamp(20px, 6vw, 100px);
  --section-y-sm: clamp(48px, 6vw, 96px);
  --section-y-md: clamp(80px, 10vw, 140px);
  --section-y-lg: clamp(112px, 14vw, 176px);

  font-family: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

html {
  background: #ffffff;
}

body {
  min-height: 100%;
  max-width: 1680px;
  margin: 0 auto;
  color: var(--text-body);
  background: #ffffff;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Max-width content wrapper (Runway-style rw-container) */
.site-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

a { text-decoration: none; color: inherit; }
img { display: block; }

/* ============================================================
   1. TOP BANNER
   ============================================================ */
.banner {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--banner-h);
  overflow: hidden;
  background: transparent;
  isolation: isolate;
  transition: opacity 0.45s linear;
  /* Full-bleed: break out of the 1680px body cap so the strip spans the
     whole viewport on large screens (content stays container-aligned). */
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.banner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--banner-grad);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.banner__inner {
  position: relative;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.banner__left {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  min-width: 0;
}

.banner__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.banner__grant {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 400;
}
.banner__grant::before {
  content: "·";
  color: rgba(255, 255, 255, 0.22);
  font-weight: 400;
  margin-right: 4px;
}
.banner__upto        { font-size: 11px; font-weight: 400; color: rgba(255, 255, 255, 0.9); }
.banner__amount      { font-size: 15px; font-weight: 700; color: #0f0f0f; }
.banner__grant-label { font-size: 13px; font-weight: 400; }

.banner__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.banner__deadline {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

/* whole banner is a link to the studios campaign landing; close sits above it */
.banner__link { position: absolute; inset: 0; z-index: 1; }
.banner__inner { position: relative; }

.banner__close {
  position: relative;
  z-index: 2;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(15, 15, 15, 0.4);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: rgba(15, 15, 15, 0.8);
  line-height: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.banner__close:hover {
  background: rgba(15, 15, 15, 0.1);
  border-color: rgba(15, 15, 15, 0.6);
  color: #0f0f0f;
}

.banner__x {
  font-family: inherit;
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
  display: block;
  transform: translateY(3px);
}

.banner.is-hidden { display: none; }

html[data-theme="dark"] .banner::before {
  background: var(--banner-grad);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
html[data-theme="dark"] .banner__amount { color: #0f0f0f; }

/* ============================================================
   2. NAV BAR
   ============================================================ */
.nav {
  position: sticky;
  top: var(--banner-h);
  z-index: 29;
  height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  isolation: isolate;
}

/* Full-bleed background layer — same geometry at rest and scrolled, only color changes */
.nav::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

/* Runway-style: solid bar once the page scrolls (color swap only, no size jump) */
.nav--scrolled {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

/* Light mode scrolled → black bar, light chrome */
html:not([data-theme="dark"]) .nav--scrolled::before {
  background: var(--off-black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
html:not([data-theme="dark"]) .nav--scrolled .nav__tab { color: #ffffff; }
html:not([data-theme="dark"]) .nav--scrolled .nav__logo img {
  filter: brightness(0) invert(1);
}
html:not([data-theme="dark"]) .nav--scrolled .nav__toggle span { background: #ffffff; }
html:not([data-theme="dark"]) .nav--scrolled .nav-btn--dark {
  background: #ffffff;
  color: var(--off-black);
}
html:not([data-theme="dark"]) .nav--scrolled .nav-btn--dark:hover { opacity: 0.88; }
html:not([data-theme="dark"]) .nav--scrolled .theme-toggle__track {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}
html:not([data-theme="dark"]) .nav--scrolled .theme-toggle__thumb {
  background: #ffffff;
  color: var(--off-black);
}

/* Dark mode scrolled → white bar, dark chrome */
html[data-theme="dark"] .nav--scrolled::before {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
html[data-theme="dark"] .nav--scrolled .nav__tab { color: var(--off-black); }
html[data-theme="dark"] .nav--scrolled .nav__logo img {
  filter: none;
}
html[data-theme="dark"] .nav--scrolled .nav__toggle span { background: var(--off-black); }
html[data-theme="dark"] .nav--scrolled .nav-btn--dark {
  background: var(--off-black);
  color: #ffffff;
}
html[data-theme="dark"] .nav--scrolled .nav-btn--dark:hover { opacity: 0.88; }
html[data-theme="dark"] .nav--scrolled .theme-toggle__track {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}
html[data-theme="dark"] .nav--scrolled .theme-toggle__thumb {
  background: var(--off-black);
  color: #ffffff;
}
.nav__inner {
  position: relative;
  height: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo { flex: none; }
.nav__logo img {
  height: 24px;
  width: auto;
  transition: filter 0.35s ease;
}

/* Tabs centered to the bar regardless of side widths */
.nav__tabs {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__tab {
  font-size: 12px;
  font-weight: 400;
  color: var(--dark-2);
  white-space: nowrap;
  transition: color 0.35s ease;
}
.nav__tab:hover { opacity: 0.7; }
.nav__tab--active { font-weight: 700; }

/* Nav buttons (right cluster) */
.nav-btn {
  display: inline-flex;
  align-items: center;
  height: 35px;
  padding: 10px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.nav-btn--dark { background: var(--dark-2); color: var(--light-4); }
.nav-btn--dark:hover { opacity: 0.88; }
.nav-btn--light { background: var(--light-3); color: var(--dark-2); }
.nav-btn--light:hover { background: #e4e4e4; }

/* Right cluster: 15px between buttons */
.nav__right { display: flex; align-items: center; gap: 15px; }

/* Mobile menu hamburger (hidden on desktop) */
.nav__toggle {
  display: none;
  width: 34px;
  height: 34px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark-2);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   3. HERO  (everything above the fold lives here)
   ============================================================ */
/* ---- Hero video banner ----
   Exactly 80px padding on each side; the media fills that width and keeps
   the video's 16:9 ratio (height follows). */
.hero {
  position: relative;
  --hero-pad: var(--container-pad);
  padding: 0;
  margin-bottom: 0;
}
/* The frame wraps the video + overlay so the overlay is anchored to the video,
   not the section. It is also the shared horizontal container: same max-width +
   side padding as the nav and partners, so the logo, the video's left edge and
   the partner row all line up at every screen width. */
.hero__frame {
  position: relative;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--hero-pad);
}
.hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1520 / 817;   /* shorter, cinematic band */
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #0c0b09;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Flat darkening layer so the overlay copy reads clearly over the video */
.hero__tint { position: absolute; inset: 0; background: rgba(15, 15, 15, 0.30); }
/* Darker fill (bottom + left) so the overlay text reads clearly */
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(15, 15, 15, 0.92) 0%, rgba(15, 15, 15, 0.55) 30%, rgba(15, 15, 15, 0.12) 62%, rgba(15, 15, 15, 0) 100%),
    linear-gradient(to right, rgba(15, 15, 15, 0.55) 0%, rgba(15, 15, 15, 0) 50%);
}

/* overlay sits 60px in from the video's bottom-left (anchored to the frame) */
.hero__overlay {
  position: absolute;
  left: 60px;
  bottom: 60px;
  z-index: 2;
  max-width: 600px;
}
.hero__title {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--light-4);
}
.hero__nowrap { white-space: nowrap; }

/* Animated switching word ("video" -> stream / VOD / clip ...) */
.word-switch {
  /* vertical distance the list scrolls per word = item height + gap.
     the gap keeps a neighbouring word's ascenders/descenders from
     peeking into the viewport. JS reads this value to stay in sync. */
  --ws-step: 1.3em;
  display: inline-block;
  vertical-align: bottom;
  color: inherit;
  font-weight: 400;
}
.word-switch__viewport {
  display: inline-block;
  overflow: hidden;
  height: 1em;
  vertical-align: bottom;
  /* width is set by JS to match the active word for a tight fit */
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.word-switch__list {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.word-switch__item {
  height: 1em;
  line-height: 1em;
  margin-bottom: calc(var(--ws-step) - 1em);
  white-space: nowrap;
}
.hero__title .word-switch,
.hero__title .word-switch__item { color: var(--yellow); }
.hero__sub {
  margin: 20px 0 0;
  max-width: 32em;
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 200;
  line-height: 1.5;
  color: var(--light-4);
}

/* Hero buttons: 50px below the tagline, 30px apart */
.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 5px;
  font-size: 15px;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.hero__btn--primary { background: var(--light-4); color: var(--dark-3); font-weight: 400; }
.hero__btn--primary:hover { opacity: 0.9; }
.hero__btn--ghost { background: transparent; border-color: var(--light-4); color: var(--light-4); font-weight: 300; }
.hero__btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* Hero stat callouts, bottom-right, 60px in from the video */
.hero__stats {
  position: absolute;
  right: calc(var(--hero-pad) + 60px);
  bottom: 60px;
  z-index: 2;
  display: flex;
  align-items: center;
}
.hstat {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--light-4);
}
.hstat__fig { display: inline-flex; align-items: baseline; }
.hstat__num { font-size: 20px; font-weight: 700; line-height: 1; }
.hstat__unit { font-size: 10px; font-weight: 700; }
.hstat__cap { font-size: 12px; font-weight: 300; line-height: 1.2; white-space: nowrap; color: var(--light-4); }
.hstat__div { width: 1px; height: 15px; background: var(--light-4); margin: 0 20px; flex: none; }

/* Section eyebrow label */
.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  text-align: center;
}

/* Forward chevron used on Get started / navigator buttons (inherits text color) */
.btn-chev {
  width: 7px;
  height: 12px;
  flex: none;
  display: inline-block;
  background: currentColor;
  -webkit-mask: url("/Chevron-right.svg") center / contain no-repeat;
  mask: url("/Chevron-right.svg") center / contain no-repeat;
}
.btn-chev--flip { transform: rotate(180deg); }

/* ---- CTA — solid ink button ---- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--ink);
  border: 1px solid var(--ink);
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  transition: opacity 0.15s ease, transform 0.08s ease;
}
.btn-cta:hover { opacity: 0.88; }
.btn-cta:active { transform: translateY(1px); }

/* Get started + For creators side by side */
.hero__cta-row {
  margin-top: 50px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.hero__cta-row .btn-cta { margin-top: 0; }
/* For creators — outline button */
.btn-creators {
  display: inline-grid;
  place-items: center;
  height: 50px;
  padding: 0 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: "Sora", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-2);
  transition: border-color 0.15s ease, transform 0.08s ease;
}
.btn-creators:hover { border-color: var(--dark-4); }
.btn-creators:active { transform: translateY(1px); }

/* ---- Right column (showcase + games navigator) ---- */
.hero__right {
  width: 100%;
  margin: 0 auto;
}

/* ---- Games navigator ---- */
.games-nav {
  position: relative;
  margin-top: 20px;
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.games-nav__chev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.games-nav__chev img { height: 30px; width: auto; display: block; }
.games-nav__chev--prev { left: 20px; }
.games-nav__chev--next { right: 20px; }
.games-nav__chev:hover { opacity: 0.5; }
.games-nav__chev:active { transform: translateY(-50%) scale(0.9); }

.games-nav__center {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.88; /* dimmed, but not too grey */
  transition: opacity 0.22s ease;
}

/* Cross-fade when switching Ludeos */
.ludeo__video,
.ludeo__meta { transition: opacity 0.22s ease; }
.hero__right.is-switching .ludeo__video,
.hero__right.is-switching .ludeo__meta,
.hero__right.is-switching .games-nav__center { opacity: 0; }
.games-nav__game,
.games-nav__studio {
  height: 22px;
  width: auto;
  display: block;
}
.games-nav__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dark-4);
  flex: none;
}

/* Reusable brush-stroke frame.
   The exported Figma stroke (Stroke.svg, 562x426, already Dark 4) is used
   as a border-image: the four corners stay pixel-fixed while only the
   edges stretch along their length, so the brush keeps a constant
   thickness on containers of any size. Drop .brush-frame inside any
   position:relative element to give it this stroke. */
.brush-frame {
  /* Retired in the clean redesign — replaced by hairline borders */
  display: none;
}
.brush-frame--hiw {
  /* stroke-only version — the original SVG also baked in the E4BC77 fill,
     which doubled with the CSS background and made a darker edge ring */
  --brush-src: url("/How it works stroke.svg");
  --brush-slice: 44;
  --brush-w: 44px;
}
.brush-frame--step {
  --brush-src: url("/Step container.svg");
  --brush-slice: 40;
  --brush-w: 40px;
}

/* Video */
/* Header: avatar + title + creator (above the video) */
.showcase__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.creator__avatar {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 300px;
  object-fit: cover;
}
.showcase__meta { min-width: 0; }
.showcase__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark-3);
}
.showcase__byline {
  margin: 6px 0 0;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 200;
  color: var(--dark-4);
}
.showcase__dot {
  flex: none;
  width: 5px;
  height: 5px;
  margin: 0 10px;
  border-radius: 50%;
  background: var(--dark-4);
}
.creator__name,
.creator__subs { font-weight: 200; color: var(--dark-4); }

/* Video */
.showcase__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}
.showcase__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Controls row: Click to Play (left) + like/dislike + share (right) */
.showcase__controls {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.showcase__play {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
  transition: transform 0.1s ease;
}
.showcase__play img { height: 42px; width: auto; display: block; }
.showcase__play:hover { transform: translateY(-1px); }
.showcase__actions { display: flex; align-items: center; gap: 12px; }
.showcase__action { height: 42px; width: auto; display: block; }
.showcase__share { padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; transition: transform 0.1s ease; }
.showcase__share:hover { transform: translateY(-1px); }

/* Like / dislike: SVG button that swaps between default / like / dislike states */
.ld { position: relative; display: inline-flex; line-height: 0; }
.ld__img { height: 42px; width: auto; display: block; }
.ld__zone {
  position: absolute;
  top: 0;
  bottom: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.ld__zone--like { left: 0; width: 64%; }       /* thumb-up + count */
.ld__zone--dislike { right: 0; width: 28%; }    /* thumb-down */
.ld__zone:active { transform: scale(0.92); }

/* ============================================================
   4. TRUSTED-BY LOGOS (Runway-style: contained marquee + edge fades)
   ============================================================ */
.logos {
  margin-top: 48px;
  margin-bottom: clamp(80px, 12vw, 128px);
  padding: 0;
  text-align: center;
}

.logos__wrap {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.logos__inner {
  width: 100%;
  max-width: 820px;   /* narrower centered row, clearly inside the hero's width */
  margin-inline: auto;
}

.logos__title {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: var(--text-body);
  opacity: 0.5;
}

.logos__marquee {
  position: relative;
  margin-top: 24px;
  overflow: hidden;
  min-height: 40px;
}

.logos__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(48px, 6vw, 96px);
  z-index: 2;
  pointer-events: none;
}
.logos__fade--left {
  left: 0;
  background: linear-gradient(to right, var(--logos-fade, #ffffff), transparent);
}
.logos__fade--right {
  right: 0;
  background: linear-gradient(to left, var(--logos-fade, #ffffff), transparent);
}

.logos__scale {
  transform: scale(1);
  transform-origin: center center;
}

.logos__track {
  display: flex;
  width: max-content;
  will-change: transform;
  align-items: center;
}

.logos__group {
  display: flex;
  align-items: center;
  gap: clamp(56px, 8vw, 80px);
  padding-inline: clamp(32px, 4vw, 40px);
  flex-shrink: 0;
}

/* Height-unified slots — wide wordmarks get more width, icons stay tight */
.logos__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: clamp(22px, 2.4vw, 32px);
}

.logos__item img {
  display: block;
  width: auto;
  height: 100%;
  max-width: clamp(88px, 12vw, 132px);
  object-fit: contain;
  object-position: center;
  filter: grayscale(100%) brightness(0);
  /* Light-mode weight: kept soft so solid-fill marks (Playtika, Relic)
     don't read as harsh black blobs next to thin-stroke logos.
     Dark mode overrides this opacity separately. */
  opacity: 0.62;
}

.logos__group .logo-themed--dark { display: none; }
html[data-theme="dark"] .logos__group .logo-themed--light { display: none; }
html[data-theme="dark"] .logos__group .logo-themed--dark { display: block; }

/* Detailed or plate-backed logos (Playtika, Relic, RS) can't survive the
   brightness(0) silhouette treatment — they collapse into solid blobs or the
   baked-in plate swallows the mark. Show their real artwork instead. Their
   per-theme asset is chosen so the plate/contrast blends into the marquee
   background (white in light, #1b1d24 in dark). Playtika has a single asset,
   so in dark mode it still falls through to the white-silhouette rule above. */
.logos__item img.logo-raw { filter: none; opacity: 0.82; }

/* ============================================================
   ABOVE-THE-FOLD FIT (desktop)
   The hero media has a fixed aspect ratio, so on wide screens it grows
   tall enough to push the partner-logos strip below the fold. Cap its
   height to whatever is left in the viewport after the banner, nav, hero
   top padding and the logos block, so nav + hero + logos always stay
   above the fold on every desktop size. Mobile keeps its own layout.
   ============================================================ */
@media (min-width: 1024px) {
  body { --af-banner: 0px; --af-logos-reserve: 132px; }
  /* Only subtract the banner height while the offer banner is actually shown */
  body:has(.banner:not(.is-hidden)) { --af-banner: var(--banner-h); }

  /* Contained, centered hero — NOT full-bleed. Cap the video to a comfortable
     fixed width and centre it so there are real margins on both sides (the
     "card" look big monitors get from the 1556 cap, which never engages on a
     ~1536 laptop). The height-budget term only shrinks it further on screens
     too short to fit the band above the fold — it never crops, just scales. */
  .hero__media {
    /* Floor 1080 keeps the ~1536 laptop exactly where it is; the cap grows on
       wider 1080p+ desktops, ceiling at 1280 so big monitors stay contained. */
    width: min(
      clamp(1080px, 63vw, 1280px),
      100%,
      calc(
        (100svh - var(--af-banner) - var(--nav-h) - var(--section-y-sm) - var(--af-logos-reserve))
        * 1520 / 817
      )
    );
    margin-inline: auto;
  }
}

/* ============================================================
   5. FULLSCREEN VIDEO OVERLAY (campaign stream)
   ============================================================ */
.ludeo-overlay {
  position: fixed;
  z-index: 1000;
  background: #000;
  overflow: hidden;
  /* growth animation handled inline / via class */
  transition: top 0.55s linear, left 0.55s linear,
              width 0.55s linear, height 0.55s linear,
              border-radius 0.55s linear;
}
.ludeo-overlay.is-full {
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  border-radius: 0 !important;
}
.ludeo-overlay iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.ludeo-overlay__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-family: "Pixelify Sans", monospace;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ============================================================
   6. MODALS (Get Started + EULA)
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.70);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  animation: modal-fade 0.2s linear;
}

.modal .gs-popup,
.modal .eula-popup {
  position: relative;
  z-index: 1;
  animation: modal-pop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* ---- Get Started popup (flat, matches the site's clean design) ---- */
.gs-popup {
  width: 460px;
  max-width: calc(100vw - 40px);
  padding: clamp(32px, 4vw, 48px);
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(15, 15, 15, 0.18);
}

.gs-box {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
}

.gs-title {
  margin: 0;
  text-align: center;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
}
.gs-eyebrow {
  margin: 10px 0 0;
  text-align: center;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.3;
  color: var(--dark-4);
}

.gs-field { margin-top: 26px; }

.gs-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--line);
  font-family: "Sora", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gs-input::placeholder { color: var(--dark-4); }
.gs-input:hover { border-color: var(--dark-4); }
.gs-input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(236, 167, 70, 0.28);
}
.gs-field.is-error .gs-input {
  border-color: #c62323;
  background: rgba(198, 35, 35, 0.06);
}
.gs-field.is-error .gs-input:focus {
  box-shadow: 0 0 0 3px rgba(198, 35, 35, 0.22);
}

.gs-error {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 300;
  color: #c62323;
}
.gs-field.is-error .gs-error { display: block; }

/* flat button base (was a layered 3D button) */
.btn-layered {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.gs-google {
  width: 100%;
  height: 50px;
  gap: 10px;
  margin-top: 16px;
  padding: 0 20px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--surface);          /* auto-contrasts: white-on-dark (light) / dark-on-light (dark) */
  font-family: "Sora", sans-serif;
  font-size: 14px;
  font-weight: 500;
}
.gs-google:hover { opacity: 0.9; }
.gs-google__logo { height: 20px; width: 20px; }

.gs-legal {
  margin: 18px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--dark-4);
}
.gs-eula-link {
  color: var(--yellow);
  text-decoration: underline;
  cursor: pointer;
}
.gs-eula-link:hover { opacity: 0.85; }

/* ---- EULA agreement gate: the box must be ticked before "Continue" ---- */
.gs-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0 0;
  padding: 2px;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
}
.gs-agree__check {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1.5px solid var(--dark-4);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.gs-agree__check::after {           /* checkmark */
  content: "";
  width: 5px;
  height: 9px;
  margin-top: -2px;
  border: solid #16181d;            /* dark tick on the yellow fill — clear in both themes */
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.12s ease;
}
.gs-agree__check:hover { border-color: var(--ink); }
.gs-agree__check:checked {
  background: var(--yellow);
  border-color: var(--yellow);
}
.gs-agree__check:checked::after { transform: rotate(45deg) scale(1); }
.gs-agree__check:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(236, 167, 70, 0.35);
}
.gs-agree__text {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--dark-4);
}

/* "Continue with Google" stays locked until the box is ticked */
.gs-google[aria-disabled="true"],
.gs-google[aria-disabled="true"]:hover {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Flash the agreement row if the user tries to continue without ticking it */
@keyframes gs-agree-nudge {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
.gs-agree--nudge { animation: gs-agree-nudge 0.4s ease; }
.gs-agree--nudge .gs-agree__check {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(236, 167, 70, 0.30);
}

/* ---- Contact ("Get in touch") popup ---- */
.contact-popup__close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
}
.contact-box { justify-content: flex-start; min-height: 0; }
.contact-form { margin-top: 4px; }
.gs-textarea {
  height: auto;
  min-height: 120px;
  padding: 14px 20px;
  line-height: 1.45;
  resize: vertical;
}
.contact-send {
  width: 100%;
  margin-top: 24px;
  margin-bottom: 5px; /* room for the layered drop shadow */
}
.contact-form__error {
  margin-top: 12px;
  text-align: center;
}

/* ---- EULA popup ---- */
.eula-popup {
  display: flex;
  flex-direction: column;
  width: 760px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 80px);
  padding: 40px;
  border-radius: 30px;
  background: var(--surface);
}
.eula-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.eula-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-4);
}
.eula-close {
  flex: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--dark-4);
  cursor: pointer;
  line-height: 0;
}
.eula-close span {
  font-family: "Pixelify Sans", monospace;
  font-size: 18px;
  transform: translateY(-1px);
}
.eula-close:hover { background: rgba(60, 60, 59, 0.10); }

.eula-body {
  overflow-y: auto;
  padding-right: 14px;
  color: var(--dark-4);
}
.eula-body h3 {
  margin: 22px 0 8px;
  font-size: 16px;
  font-weight: 700;
}
.eula-body h3:first-child { margin-top: 0; }
.eula-body h4 {
  margin: 16px 0 6px;
  font-size: 13px;
  font-weight: 600;
}
.eula-body p {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
}
.eula-body ul { margin: 0 0 10px; padding-left: 20px; }
.eula-body li {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
}
/* themed scrollbar */
.eula-body::-webkit-scrollbar { width: 8px; }
.eula-body::-webkit-scrollbar-thumb {
  background: rgba(60, 60, 59, 0.35);
  border-radius: 4px;
}

/* ---- Book a call popup ---- */
.book-popup {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 80vw;
  max-width: 80vw;
  padding: 20px;
  border-radius: 24px;
  background: var(--surface);
}
.book-popup__close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.book-iframe {
  width: 100%;
  height: 80vh;
  max-height: calc(100vh - 130px);
  border: 0;
  display: block;
  border-radius: 8px;
  background: #fff;
}
.book-fallback {
  text-align: center;
  font-size: 14px;
  font-weight: 300;
  color: var(--dark-4);
  text-decoration: underline;
}
.book-fallback:hover { color: var(--yellow); }

/* ---- Share popup ---- */
.share-popup {
  position: relative;
  width: 460px;
  max-width: calc(100vw - 40px);
  padding: 28px;
  border-radius: 24px;
  background: var(--surface);
}
.share-popup__close { position: absolute; top: 16px; right: 16px; }
.share-popup__title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-4);
}
.share-socials {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.share-social {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  transition: transform 0.1s ease, opacity 0.15s ease;
}
.share-social svg { width: 22px; height: 22px; }
.share-social:hover { transform: translateY(-2px); }
.share-social--x { background: #0f0f0f; }
.share-social--fb { background: #1877f2; }
.share-social--li { background: #0a66c2; }
.share-social--wa { background: #25d366; }
.share-social--mail { background: #6b6b6b; }

.share-link {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 6px 6px 14px;
  background: #f6f4f0;
}
.share-link__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-family: "Sora", sans-serif;
  font-size: 14px;
  color: var(--dark-4);
  outline: none;
}
.share-link__copy {
  flex: none;
  padding: 10px 18px;
  border: 1px solid var(--dark-3);
  border-radius: 5px;
  background: var(--dark-3);
  font-family: "Sora", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--light-4);
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.share-link__copy:hover { opacity: 0.88; }
.share-link__copy.is-copied { background: #2c7a3f; border-color: #2c7a3f; }

body.modal-open { overflow: hidden; }

/* ============================================================
   7. HOW IT WORKS
   ============================================================ */
.hiw {
  padding: var(--section-y-lg) var(--container-pad) var(--section-y-md);
}

.hiw__container {
  width: 100%;
  max-width: 1410px;   /* 3 × 450 cards + 2 × 30 gaps */
  margin: 0 auto;
  text-align: center;
}

/* small section label */
.hiw__label {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 25px);
  font-weight: 200;
  line-height: 1.2;
  color: var(--dark-4);
}
/* big section statement (the tagline) — spans the full steps width */
.hiw__title {
  margin: clamp(20px, 2.5vw, 32px) auto 0;
  max-width: 920px;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--dark-2);
}

/* 3-column grid, 60px below the statement */
.hiw__steps {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 30px;
}

.step {
  position: relative;
  min-width: 0;
  min-height: 500px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(15, 15, 15, 0.04);
}

/* Visual order: head -> art -> title -> text -> button */
.step__head  { order: 1; }
.step__art   { order: 2; }
.step__title { order: 3; }
.step__text  { order: 4; }
.step__foot  { order: 5; }

.step__head {
  display: flex;
  align-items: center;
  gap: 30px;
}
.step__num {
  font-family: "Sora", sans-serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  color: var(--dark-4);
}
.step__hr { width: 1px; height: 20px; background: var(--dark-4); flex: none; }
.step__tag {
  font-family: "Sora", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--dark-2);
}

/* key art — fixed 180px-tall box so every card's title starts on the same
   line; the image fits inside (wide arts scale down by width) and is centred */
.step__art {
  position: relative;
  margin: 25px auto 0;
  height: 180px;
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step__art-img {
  position: relative;
  z-index: 1;
  display: block;
  max-height: 180px;
  max-width: 100%;
  width: auto;
  height: auto;
}
.step__art-video { position: absolute; z-index: 0; object-fit: cover; }
.step__art--create .step__art-video {
  left: 6%; top: 13.5%; width: 34%; height: 70%;
  border-radius: 4px;
  transform: rotate(-3.42deg);
  transform-origin: center;
}
.step__art--play .step__art-video { left: 19%; top: 12.8%; width: 60%; height: 52.1%; border-radius: 8px; }

.step__title {
  margin: 50px 0 0;       /* 50px below the key art */
  font-size: 25px;
  font-weight: 700;
  color: var(--dark-2);
}
.step__text {
  margin: 20px 0 0;       /* 20px below the title */
  font-size: 15px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--dark-4);
}

.step__foot {
  margin-top: auto;       /* pin to the bottom so every button sits the
                             same distance (the card's 30px padding) up */
  padding-top: 50px;      /* never closer than 50px to the paragraph */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* text button — Light 3 fill, 1px Dark 3 stroke, Dark 3 text */
.step__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 22px;
  background: var(--light-3);
  border: 1px solid var(--dark-3);
  border-radius: 5px;
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  color: var(--dark-3);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.08s ease;
}
.step__btn:hover { opacity: 0.85; }
.step__btn:active { transform: translateY(1px); }
/* "Get started - free" — Dark 3 fill, no stroke, Light 4 text */
.step__btn--primary {
  background: var(--dark-3);
  border-color: var(--dark-3);
  color: var(--light-4);
}
/* image button (Click to Play) — full button baked into the SVG */
.step__btn--img { background: none; border: 0; padding: 0; min-height: 0; }
.step__btn--img img { height: 42px; width: auto; display: block; }

/* ============================================================
   8. DEVELOPER FRIENDLY
   ============================================================ */
.df {
  position: relative;
  padding: clamp(70px, 8vw, 120px) clamp(24px, 6vw, 100px);
}
.df__inner {
  max-width: 1490px;   /* 4 × 350 cards + 3 × 30 gaps */
  margin: 0 auto;
  text-align: center;
}

.df__title {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--dark-2);
  text-align: center;
}
.df__tagline {
  margin: 14px 0 0;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 300;
  line-height: 1.3;
  color: var(--dark-4);
  text-align: center;
}

.df__features {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
}

.feature {
  position: relative;
  min-width: 0; /* let the grid tracks shrink instead of overflowing */
  min-height: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(15, 15, 15, 0.04);
}
.feature__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
/* icons recoloured to Dark 4 via mask (each keeps its own aspect) */
.feature__icon {
  height: 22px;
  display: block;
  flex: none;
  background: var(--dark-4);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.feature__icon--lock   { width: 19px; -webkit-mask-image: url("/Lock icon.svg");        mask-image: url("/Lock icon.svg"); }
.feature__icon--branch { width: 19px; -webkit-mask-image: url("/Side branch icon.svg"); mask-image: url("/Side branch icon.svg"); }
.feature__icon--free   { width: 26px; -webkit-mask-image: url("/Free icon.svg");        mask-image: url("/Free icon.svg"); }
.feature__icon--fast   { width: 17px; -webkit-mask-image: url("/fast icon.svg");        mask-image: url("/fast icon.svg"); }
.feature__title {
  margin: 0;
  font-size: 25px;
  font-weight: 400;
  color: var(--dark-3);
}
.feature__text {
  margin: 15px 0 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--dark-4);
}
.feature__art {
  margin-top: auto; /* bottom-anchor so all feature arts align on one line */
  padding-top: 25px;
  width: 100%;
  max-width: 210px;
  height: auto;
  display: block;
}

.df__sizes {
  margin: 50px 0 0;
  text-align: center;
  font-size: 20px;
  font-weight: 200;
  color: var(--dark-4);
}
.df__cta {
  margin-top: 20px;
  text-align: center;
}
/* the shared CTA carries a 40px top margin from the hero — zero it here
   so the gap below "Built for game studios of all sizes" is exactly 20px */
.df__cta .btn-cta { margin-top: 0; }

/* ============================================================
   9. FAQ
   ============================================================ */
.faq {
  padding: clamp(70px, 8vw, 120px) clamp(24px, 8vw, 100px) 0;
}
.faq__container {
  max-width: none;   /* fill the section (100px from the screen sides) */
  margin: 0 auto;
  padding: clamp(28px, 3.5vw, 56px);
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fbfbfb;
  box-shadow: 0 1px 3px rgba(15, 15, 15, 0.04);
}
.faq__title {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--dark-2);
  text-align: center;
}
.faq__tagline {
  margin: 14px 0 0;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 300;
  line-height: 1.3;
  color: var(--dark-4);
  text-align: center;
}

.faq__list { margin-top: 30px; }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-q {
  width: 100%;
  height: 100px;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: "Sora", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--dark-4);
}
.faq-chev {
  flex: none;
  width: 16px;
  height: 16px;
  transition: transform 0.35s linear;
}
.faq-item.is-open .faq-chev { transform: rotate(180deg); }

/* Drawer: animate grid row from 0fr -> 1fr so it fits the answer exactly */
.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s linear;
}
.faq-item.is-open .faq-a-wrap { grid-template-rows: 1fr; }
/* the question keeps its 40px bottom padding; pull the answer up 10px so the
   real gap between question and answer is exactly 30px */
.faq-item.is-open .faq-a-wrap { margin-top: -10px; }
.faq-a { overflow: hidden; }
.faq-a p {
  margin: 0;
  padding: 0 20px 40px; /* 30px below the question (via the -10px pull), 40px before the divider */
  font-size: 20px;
  font-weight: 200;
  line-height: 1.5;
  color: var(--dark-4);
}

/* Book-a-call card, 50px below the FAQ list, left-aligned with the container */
.faq__after { max-width: 1480px; margin: 0 auto; }
.faq-cta {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.faq-cta__avatar {
  flex: none;
  width: 110px;
  height: 110px;
  border-radius: 300px;
  object-fit: cover;
}
.faq-cta__text { display: flex; flex-direction: column; align-items: flex-start; }
.faq-cta__title { margin: 0; font-size: 20px; font-weight: 600; color: var(--dark-4); }
.faq-cta__tag { margin: 10px 0 0; font-size: 20px; font-weight: 200; color: var(--dark-4); }
.faq-cta__book {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
  transition: transform 0.1s ease;
}
.faq-cta__book img { height: 46px; width: auto; display: block; }
.faq-cta__book:hover { transform: translateY(-1px); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta {
  margin-top: 40px;   /* 40px below the book-a-call card */
  padding: 0 clamp(20px, 4vw, 64px) clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--dark-4);   /* full-width divider */
}
.cta__container {
  position: relative;
  max-width: 1556px;
  margin: 0 auto;
  aspect-ratio: 1556 / 459;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 60px;
  text-align: center;
  background: #14110b;
}
/* hero footage, heavily blurred, half-speed (JS), muted */
.cta__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.4);     /* hide the blur bleed at the edges */
  filter: blur(100px);
  z-index: 0;
}
.cta__content { position: relative; z-index: 1; }
.cta__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--light-4);
}
.cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding: 10px 20px;
  border: 1px solid var(--light-4);
  border-radius: 5px;
  background: transparent;
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--light-4);
  transition: background 0.15s ease;
}
.cta__btn:hover { background: rgba(255, 255, 255, 0.12); }

/* CTA card grows to fit the copy on narrower screens (fixed ratio is too short) */
@media (max-width: 900px) {
  .cta__container {
    aspect-ratio: auto;
    min-height: 360px;
    padding: clamp(40px, 8vw, 60px) clamp(24px, 6vw, 60px);
  }
  .cta__title { font-size: clamp(24px, 5vw, 40px); }
  .cta__btn { margin-top: 28px; }
}

/* ============================================================
   10. FOOTER
   ============================================================ */
.footer {
  padding: var(--section-y-lg) 0 0;
  background: transparent;
}
/* Main page: footer sits flush — no top padding */
body.page-home .footer { padding-top: 0; }
.footer__top {
  padding: 0 100px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(32px, 5vw, 80px);
}

.footer__brandcol { flex: 0 0 330px; }
.footer__logo { height: 50px; width: auto; }   /* Ludeo logo.svg is Dark 3 */
.footer__tagline {
  margin: 40px 0 0;
  max-width: 330px;
  font-size: 15px;
  font-weight: 200;
  line-height: 1.25;
  color: var(--dark-3);
}
.footer__socials {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer__socials img { height: 30px; width: auto; display: block; }
.footer__socials a:hover { opacity: 0.7; }

.footer__col { display: flex; flex-direction: column; }
.footer__col h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-3);
}
.footer__col > a {
  margin-top: 20px;
  font-size: 15px;
  font-weight: 200;
  color: var(--dark-3);
}
.footer__col h3 + a { margin-top: 40px; } /* 40px below the title */
.footer__col a:hover { opacity: 0.7; }

/* Full-bleed Ludeo wordmark watermark, bottom-aligned, very subtle on white */
.footer__brand {
  margin-top: var(--section-y-sm);
  width: 100%;
  aspect-ratio: 184 / 50;
  background-color: #f2f2f2;
  -webkit-mask: url("/Ludeo logo.svg") center / contain no-repeat;
  mask: url("/Ludeo logo.svg") center / contain no-repeat;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Short viewports: stop forcing the hero to cram into one screen — let it
   take its natural height with breathing room and scroll instead. */
@media (max-height: 920px) {
  .hero { min-height: 0; }
  .hero__content { padding-top: 48px; padding-bottom: 8px; justify-content: flex-start; }
  .logos { margin-top: 30px; margin-bottom: 48px; }
}

@media (max-width: 1180px) {
  .hero__content { padding: 40px clamp(24px, 6vw, 100px); }

  /* Section side padding shrinks */
  .hiw { padding: clamp(60px, 12vw, 150px) clamp(24px, 6vw, 100px); }
  .df  { padding: clamp(60px, 12vw, 150px) clamp(24px, 6vw, 100px); }
  .faq { padding: clamp(60px, 12vw, 150px) clamp(24px, 6vw, 100px); }
  .cta { padding: clamp(60px, 12vw, 150px) clamp(24px, 6vw, 100px); }
}

/* Hero: stack into one centered column once two columns get tight */
@media (max-width: 1000px) {
  .hero__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: start;
    gap: 48px;
  }
  .hero__copy { max-width: 600px; width: 100%; }
  .hero__right { justify-self: center; }
  .hero__showcase { min-height: 0; }
  .logos { margin-top: 30px; }
}

/* Stack the steps into one column on narrow screens */
@media (max-width: 680px) {
  .hiw__steps { grid-template-columns: minmax(0, 550px); }
  .step { padding: 32px; min-height: 0; }
}

/* Developer-friendly feature grid reflows earlier so cards never go thin */
@media (max-width: 1280px) {
  .df__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 720px) {
  .df__features { grid-template-columns: 1fr; max-width: 420px; }
  .feature { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 720px) {
  /* Banner collapses to the offer; deadline hides, close stays */
  .banner__inner { padding: 0 16px; gap: 10px; }
  .banner__title { font-size: 12px; }
  .banner__grant { font-size: 12px; }
  .banner__amount { font-size: 14px; }
  .banner__grant-label { display: none; }
  .banner__deadline { display: none; }
  .banner__x { transform: none; } /* place-items already centers; drop the desktop optical nudge */

  .nav__inner { padding: 0 16px; }

  /* Hamburger replaces the inline tabs */
  .nav__toggle { display: flex; }
  .nav__right .nav-btn--light { display: none; } /* Enterprise Sales / Login hide on mobile */
  .nav__right .theme-toggle { display: none; } /* mobile is light-only — no dark switch */

  /* Tabs become a full-width dropdown anchored under the nav */
  .nav__tabs {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 16px;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: 0 8px 12px rgba(15, 15, 15, 0.10);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.28s ease, opacity 0.2s ease;
  }
  .nav.is-open .nav__tabs { max-height: 320px; opacity: 1; pointer-events: auto; }
  .nav__tabs .nav__tab {
    padding: 15px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--nav-border);
  }
  .nav__tabs .nav__tab:last-child { border-bottom: 0; }

  .nav--scrolled .nav__tabs {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
  }
  .nav--scrolled .nav__tabs::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
  }
  html:not([data-theme="dark"]) .nav--scrolled .nav__tabs::before {
    background: var(--off-black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.35);
  }
  html:not([data-theme="dark"]) .nav--scrolled .nav__tabs .nav__tab {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
  html[data-theme="dark"] .nav--scrolled .nav__tabs::before {
    background: #ffffff;
    border-bottom-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.08);
  }
  html[data-theme="dark"] .nav--scrolled .nav__tabs .nav__tab {
    color: var(--off-black);
    border-bottom-color: rgba(0, 0, 0, 0.08);
  }

  .hero__content { padding: 28px 20px; }
  .hero__stats { gap: 24px; }
  .logos__title { font-size: 16px; }

  /* Popups */
  .gs-popup { padding: 28px; border-radius: 18px; }
  .gs-title { font-size: 22px; }
  .eula-popup { padding: 24px; border-radius: 24px; max-height: calc(100svh - 40px); }
  .eula-title { font-size: 18px; }
  .eula-body { padding-right: 8px; }

  /* How it works */
  .hiw__container { padding: 28px; border-radius: 24px; }
  .hiw__title { font-size: 30px; }
  .tryl .hiw__title { font-size: 30px; }
  .hiw__tagline { font-size: 16px; }
  .hiw__steps { margin-top: 36px; }
  .df__title { font-size: 30px; }
  .df__tagline, .df__sizes { font-size: 16px; }
  .faq__container { padding: 24px; border-radius: 24px; }
  .faq__title { font-size: 30px; }
  .faq__tagline { font-size: 16px; }
  .faq-q { font-size: 16px; height: auto; padding: 28px 4px; }
  .faq-a p { font-size: 16px; padding: 24px 4px 28px; }
  .faq-cta { gap: 20px; padding: 16px; }
  .faq-cta__avatar { width: 80px; height: 80px; }
  .faq-cta__title, .faq-cta__tag { font-size: 16px; }

  /* Footer */
  .footer { padding-top: clamp(60px, 12vw, 150px); }
  .footer__top { padding: 0 20px; flex-wrap: wrap; gap: 36px; }
  .footer__brandcol { flex: 1 1 100%; }
  .footer__col { flex: 1 1 40%; }
  .footer__tagline, .footer__col h3 { font-size: 15px; }
}

/* ============================================================
   CAREERS PAGE
   ============================================================ */
.crs-hero {
  padding: clamp(50px, 7vw, 90px) clamp(24px, 6vw, 100px) 0;
  text-align: center;
}
.crs-hero__title {
  margin: 0 auto;
  max-width: 1040px;
  font-size: clamp(28px, 2.9vw, 44px);
  font-weight: 400;
  line-height: 1.16;
  color: var(--dark-3);
}
.crs-hero__tagline {
  margin: 22px auto 0;
  max-width: 760px;
  font-size: clamp(15px, 1.2vw, 19px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--dark-3);
}

/* ---- Team photo strip ---- */
.crs-photos {
  padding: clamp(40px, 5vw, 70px) clamp(24px, 6vw, 100px) 0;
}
.crs-photos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.crs-photo {
  aspect-ratio: 6 / 5;
  overflow: hidden;
  border-radius: 4px;
}
.crs-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Offices + Open roles ---- */
.crs-roles {
  margin-top: clamp(60px, 7vw, 100px);
  padding: clamp(60px, 8vw, 110px) clamp(24px, 6vw, 100px) clamp(70px, 9vw, 130px);
  border-top: 1px solid var(--line); /* divider above offices line */
}
.crs-offices {
  margin: 0 0 clamp(40px, 5vw, 70px);
  text-align: center;
  font-size: clamp(18px, 1.55vw, 24px);
  font-weight: 300;
  color: var(--dark-3);
}

.crs-roles__card {
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(34px, 3.6vw, 60px) clamp(28px, 3.2vw, 60px);
  border-radius: 24px;
  background: #ffffff;
}
.crs-roles__title {
  margin: 0;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 600;
  color: var(--dark-3);
}

.crs-group {
  margin-top: clamp(22px, 2.4vw, 34px);
  padding-top: clamp(22px, 2.4vw, 34px);
  border-top: 1px solid var(--line);
}
.crs-group__name {
  margin: 0 0 6px;
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 600;
  color: var(--dark-3);
}

.crs-role {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) 80px;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  font-size: clamp(13px, 1vw, 15px);
}
.crs-role + .crs-role { border-top: 1px solid rgba(60, 60, 60, 0.22); }
.crs-role__title { color: var(--dark-3); font-weight: 400; }
.crs-role__dept,
.crs-role__loc  { color: var(--dark-4); font-weight: 300; }
.crs-role__apply {
  justify-self: end;
  color: var(--dark-3);
  font-weight: 400;
}
.crs-role:hover .crs-role__apply { text-decoration: underline; }

/* loading / empty / error state for the live Comeet feed */
.crs-roles__status {
  margin: clamp(22px, 2.4vw, 34px) 0 0;
  padding-top: clamp(22px, 2.4vw, 34px);
  border-top: 1px solid var(--line);
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 300;
  color: var(--dark-4);
}
.crs-roles__status a { color: var(--dark-3); text-decoration: underline; }

/* ---- Don't see your role ---- */
.crs-open {
  position: relative;
  max-width: 1480px;
  margin: clamp(28px, 3vw, 40px) auto 0;
  padding: clamp(40px, 4.2vw, 64px);
  text-align: center;
  border-radius: 24px;
  background: #ffffff;
}
.crs-open__title {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
  color: var(--dark-2);
}
.crs-open__text {
  margin: 16px auto 0;
  max-width: 44em;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 300;
  color: var(--dark-4);
}
.crs-open__btn {
  display: inline-grid;
  place-items: center;
  margin-top: 28px;
  height: 44px;
  padding: 0 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f4f0;
  font-size: 14px;
  font-weight: 400;
  color: var(--dark-3);
  transition: background 0.15s ease;
}
.crs-open__btn:hover { background: #eeeae2; }

@media (max-width: 760px) {
  .crs-photos__grid { grid-template-columns: 1fr; gap: 12px; }
  .crs-photo { aspect-ratio: 16 / 10; }
  .crs-role {
    grid-template-columns: 1fr auto;
    gap: 4px 16px;
    padding: 16px 0;
  }
  .crs-role__title { grid-column: 1; grid-row: 1; }
  .crs-role__dept  { grid-column: 1; grid-row: 2; }
  .crs-role__loc   { grid-column: 1; grid-row: 3; }
  .crs-role__apply { grid-column: 2; grid-row: 1 / 4; align-self: center; }
  .crs-hero__title { font-size: clamp(26px, 6vw, 34px); }
}

/* ============================================================
   NEWS PAGE
   ============================================================ */
.news-hero {
  padding: clamp(50px, 7vw, 90px) clamp(24px, 6vw, 100px) 0;
  text-align: center;
}
.news-hero__eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
}
.news-hero__title {
  margin: 14px auto 0;
  font-size: clamp(30px, 3.2vw, 52px);
  font-weight: 400;
  line-height: 1.12;
  color: var(--dark-3);
}
.news-hero__tagline {
  margin: 18px auto 0;
  max-width: 640px;
  font-size: clamp(15px, 1.2vw, 19px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--dark-3);
}

.news-wrap {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(44px, 5vw, 70px) clamp(24px, 6vw, 100px) clamp(70px, 9vw, 130px);
}

/* shared meta row */
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 300;
  color: var(--dark-4);
}
.news-tag {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--yellow);
}
.news-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--dark-4); opacity: 0.6; }
.news-readmore {
  margin-top: auto;
  font-size: 14px;
  font-weight: 400;
  color: var(--dark-3);
}

/* media helpers (real image + branded fallback tile) */
.news-img { width: 100%; height: 100%; max-width: 100%; object-fit: cover; display: block; }
.news-brand {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e7dcc4, #fbf3f0);
}
.news-brandmark { width: 34%; max-width: 120px; height: auto; opacity: 0.92; }

/* ---- Featured story ---- */
.news-featured {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  padding: clamp(24px, 2.4vw, 40px);
  border-radius: 24px;
  background: #ffffff;
  text-decoration: none;
  transition: transform 0.12s ease;
}
.news-featured:hover { transform: translateY(-3px); }
.news-featured:hover .news-readmore { text-decoration: underline; }
.news-featured__media {
  align-self: stretch;
  min-width: 0;
  min-height: 260px;
  overflow: hidden;
  border-radius: 14px;
}
.news-featured__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(8px, 1.6vw, 24px) 0;
}
.news-featured__kicker {
  margin: 16px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark-4);
  opacity: 0.7;
}
.news-featured__title {
  margin: 14px 0 0;
  font-size: clamp(24px, 2.3vw, 36px);
  font-weight: 400;
  line-height: 1.16;
  color: var(--dark-2);
}
.news-featured__excerpt {
  margin: 16px 0 26px;
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--dark-3);
}

/* ---- Grid of stories ---- */
.news-grid {
  margin-top: clamp(28px, 3vw, 48px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 32px);
}
.news-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease;
}
.news-card:hover { transform: translateY(-4px); background: #f6f4f0; }
.news-card:hover .news-readmore { text-decoration: underline; }
.news-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: clamp(20px, 1.8vw, 28px);
}
.news-card__title {
  margin: 0;
  font-size: clamp(17px, 1.25vw, 20px);
  font-weight: 600;
  line-height: 1.28;
  color: var(--dark-2);
}
.news-card__excerpt {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--dark-3);
}

@media (max-width: 980px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .news-featured { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .news-featured__media { aspect-ratio: 16 / 9; min-height: 0; }
  .news-featured__body { padding: 0; }
}
@media (max-width: 560px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   TRY LUDEOS
   ============================================================ */
.tryl {
  padding: clamp(80px, 11vw, 150px) clamp(20px, 10vw, 150px) clamp(80px, 9vw, 130px);
  text-align: center;
}
/* Why Ludeo (homepage) sits flush — no top padding */
body:not(.page-studios) .tryl { padding-top: 0; }

/* Why Ludeo intro — homepage typography matches main */
.tryl .hiw__title {
  margin: 20px 0 0;
  max-width: none;
  font-size: clamp(17px, 3.2vw, 30px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: normal;
  color: var(--dark-2);
}

/* player + navigator wrapper, 60px below the tagline */
.tryl__body { margin-top: 60px; text-align: left; }

/* ---- The Ludeo grid — 3 playable cards, one per Ludeo ---- */
.ludeo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.lcard { display: flex; flex-direction: column; align-items: flex-start; }

/* square video stage */
.lcard__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #0c0b09;
  cursor: pointer;
  display: block;
}
.lcard__stage > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: filter 0.35s ease, transform 0.35s ease;
}
.lcard__stage:hover > video,
.lcard__stage:focus-visible > video {
  filter: blur(2px);
  transform: scale(1.3);
}

/* hover: grey wash + game / studio logos centered */
.lcard__hover {
  position: absolute; inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(42, 44, 49, 0.62);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.lcard__hover-logo {
  height: 26px; width: auto;
  filter: brightness(0) invert(1);   /* render any logo solid white over the wash */
}
/* some logos (e.g. metallic game emblems) carry their own light/dark detail —
   flattening them to a single white silhouette turns them into an unreadable
   blob, so keep their original artwork over the wash. */
.lcard__hover-logo--raw { filter: none; }
.lcard__hover-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  flex: none;
}
.lcard__stage:hover .lcard__hover,
.lcard__stage:focus-visible .lcard__hover { opacity: 1; }

/* "Click to play" button, bottom-left below the video */
.lcard__play {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: var(--ink);
  color: #fff;
  border: 0;
  font-family: "Sora", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.18s ease;
}
.lcard__play-logo {
  width: 15px; height: 15px; flex: none;
  background: #fff;
  -webkit-mask: url("/Ludeo pentagon logo.svg") center / contain no-repeat;
  mask: url("/Ludeo pentagon logo.svg") center / contain no-repeat;
}
.lcard__play:hover { opacity: 0.9; }

/* Try Ludeos responsiveness */
@media (max-width: 900px) {
  .ludeo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .tryl { padding-left: clamp(16px, 5vw, 40px); padding-right: clamp(16px, 5vw, 40px); }
}
@media (max-width: 560px) {
  /* side-by-side, swipe horizontally to see them (Ludeos play on desktop only) */
  .ludeo-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-inline: 0;
    max-width: none;
    scrollbar-width: none; /* hide the scrollbar — swipe still works */
  }
  .ludeo-grid::-webkit-scrollbar { display: none; }
  .lcard { flex: 0 0 80%; scroll-snap-align: start; }
  .lcard__stage, .lcard__play { cursor: default; }
}

/* Feature in-card link (e.g. Read our License Agreement) */
.feature__link {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dark-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.feature__link:hover { color: var(--yellow); }

/* Clean outline "Book a call" button (replaces the brush PNG button) */
/* Book a call — styled like the "Try Ludeo" nav button, with a phone icon */
.btn-book {
  gap: 10px;
  margin-top: 10px;
  padding: 0 14px;
}
.btn-book__icon {
  width: 16px;
  height: 16px;
  flex: none;
  background: var(--dark-3);
  -webkit-mask: url("/phone.svg") center / contain no-repeat;
  mask: url("/phone.svg") center / contain no-repeat;
}

/* ---- Hero responsive ---- (copy stays overlaid on the landscape video) */
/* Below full-desktop the one-line stats would reach the buttons — stack them
   vertically on the right instead, and reserve that space from the overlay. */
@media (max-width: 1240px) {
  .hero__overlay { left: 40px; bottom: 40px; right: 250px; }
  .hero__stats {
    right: calc(var(--hero-pad) + 40px);
    bottom: 40px;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    max-width: 200px;
    text-align: right;
  }
  .hero__stats .hstat__div { display: none; }
  .hero__stats .hstat { align-items: baseline; }
  .hero__stats .hstat__cap { white-space: normal; }
}
@media (max-width: 1100px) {
  /* free up the right side so centered tabs never collide with buttons */
  .nav__right .nav-btn--light { display: none; }
}
@media (max-width: 900px) {
  .hero__overlay { left: 32px; bottom: 32px; right: 220px; }
  .hero__stats { right: calc(var(--hero-pad) + 32px); bottom: 32px; }
  .hero__title { font-size: clamp(24px, 4.4vw, 38px); }
  .hero__sub { font-size: clamp(14px, 2vw, 17px); margin-top: 12px; }
  .hero__cta-row { margin-top: 20px; gap: 12px; }
}
/* Small screens: copy stays on the (taller) video; the stats become a
   deliberate, framed "key metrics" card just below it. */
@media (max-width: 760px) {
  .hero__overlay { right: 22px; }
  .hero__stats {
    position: static;
    max-width: 520px;
    margin: 26px clamp(20px, 6vw, 80px) 6px;
    padding: 6px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
  }
  .hero__stats .hstat {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 18px 0;
    color: var(--ink);
  }
  .hero__stats .hstat__fig { min-width: 56px; }
  .hero__stats .hstat__num { font-size: 28px; font-weight: 700; color: var(--ink); }
  .hero__stats .hstat__unit { font-size: 14px; font-weight: 700; color: var(--yellow); margin-left: 1px; }
  .hero__stats .hstat__cap { font-size: 15px; font-weight: 400; color: var(--dark-4); white-space: normal; }
  /* reuse the in-video separators as full-width hairlines between rows */
  .hero__stats .hstat__div {
    display: block;
    width: auto;
    height: 1px;
    margin: 0;
    background: var(--line);
    align-self: stretch;
  }
}
@media (max-width: 640px) {
  .hero { padding: 0; }
  .hero__media { aspect-ratio: 4 / 3; border-radius: 16px; }
  .hero__scrim {
    background: linear-gradient(to top, rgba(15, 15, 15, 0.90) 0%, rgba(15, 15, 15, 0.45) 38%, rgba(15, 15, 15, 0) 78%);
  }
  .hero__overlay { left: 22px; right: 22px; bottom: 24px; }
  .hero__title { font-size: clamp(19px, 5.6vw, 26px); }
  .hero__sub { font-size: 14px; margin-top: 10px; }
  .hero__cta-row { margin-top: 18px; gap: 12px; }
  .hero__btn { height: 40px; padding: 0 18px; }
  .hero__stats { margin: 22px 22px 6px; padding: 4px 18px; }
}
/* Step grid reflow for the clean 3-col layout */
@media (max-width: 1040px) {
  .hiw__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  /* steps become a swipeable carousel (like Try Ludeos), no visible scrollbar */
  .hiw__steps {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    margin-top: 36px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hiw__steps::-webkit-scrollbar { display: none; }
  .hiw__steps { align-items: stretch; } /* every card stretches to the tallest */
  .step { flex: 0 0 82%; scroll-snap-align: start; padding: 22px; height: auto; }

  /* condense the card height for mobile: smaller art box + tighter vertical
     rhythm. Nothing removed — same head, art, title, text, button, just denser */
  .step__head { gap: 16px; }
  .step__num { font-size: 19px; }
  .step__tag { font-size: 16px; }
  .step__hr { height: 16px; }
  .step__art { height: 120px; margin-top: 18px; }
  .step__art-img { max-height: 120px; }
  .step__title { margin-top: 22px; font-size: 19px; }
  .step__text { margin-top: 10px; font-size: 14px; }
  .step__foot { padding-top: 24px; }
}

/* ============================================================
   THEME TOGGLE (nav switch)
   ============================================================ */
.theme-toggle {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  flex: none;
}
.theme-toggle__track {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: var(--light-3);
  border: 1px solid var(--line);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.theme-toggle__thumb {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--dark-3);
  box-shadow: 0 1px 2px rgba(15, 15, 15, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  transition: transform 0.24s cubic-bezier(0.4, 0.1, 0.3, 1), background 0.2s ease, color 0.2s ease;
}
.theme-toggle__ic { width: 13px; height: 13px; display: block; }
.theme-toggle__ic--moon { display: none; }

/* ============================================================
   DARK MODE — Retool-style soft slate (not pure black)
   ============================================================ */
html[data-theme="dark"] {
  /* page surfaces */
  --page: var(--dark-page);
  --logos-fade: var(--dark-page);
  --surface: #23262e;       /* cards / popups */
  --surface-2: #2a2e37;     /* inputs / inset panels */
  --line: #31363f;          /* hairlines */
  --nav-bg: var(--dark-page);
  --nav-border: #2a2e37;

  /* text (palette names flip from dark -> light) */
  --dark-2: #eceef1;        /* strongest text + inverted button fills */
  --dark-3: #ccd0d7;        /* body text */
  --dark-4: #969ba5;        /* muted text + masked icons */
  --light-1: #6e7480;
  --light-3: #2a2e37;       /* was light bg → dark subtle */
  --light-4: #ffffff;       /* keep: white text/icons over the video */
  --ink: #eceef1;           /* primary button fill (inverted: light) */

  background: var(--dark-page);
}
html[data-theme="dark"] body { background: var(--page); }

/* Inverted primary buttons: flipped tokens make their fill light, so make
   their label + baked-in icons read dark again. */
html[data-theme="dark"] .nav-btn--dark,
html[data-theme="dark"] .btn-cta,
html[data-theme="dark"] .step__btn--primary,
html[data-theme="dark"] .share-link__copy,
html[data-theme="dark"] .lcard__play { color: #16181d; }
html[data-theme="dark"] .lcard__play-logo { background: #16181d; }
/* hero white button stays white on the video → keep its label dark */
html[data-theme="dark"] .hero__btn--primary { color: #16181d; }
html[data-theme="dark"] .nav-btn--light:hover { background: #343a45; }

/* Hardcoded light surfaces → dark equivalents */
html[data-theme="dark"] .share-link { background: var(--surface-2); }
html[data-theme="dark"] .faq__container { background: #1e2128; }
html[data-theme="dark"] .crs-roles__card,
html[data-theme="dark"] .crs-open,
html[data-theme="dark"] .news-featured,
html[data-theme="dark"] .news-card { background: var(--surface); }
html[data-theme="dark"] .crs-open__btn { background: var(--surface-2); }
html[data-theme="dark"] .crs-open__btn:hover,
html[data-theme="dark"] .news-card:hover,
html[data-theme="dark"] .ludeo__share:hover { background: #343a45; }
html[data-theme="dark"] .news-brand { background: linear-gradient(135deg, #2a2e37, #23262e); }
html[data-theme="dark"] .footer__brand { background-color: #262a33; }
html[data-theme="dark"] .footer__logo,
html[data-theme="dark"] .footer__socials img {
  filter: brightness(0) invert(1);
  opacity: 1;
}

/* Dark line-art logos → light so they stay visible */
html[data-theme="dark"] .nav:not(.nav--scrolled) .nav__logo img { filter: brightness(0) invert(1); }

html[data-theme="dark"] .logos__item img:not(.logo-themed--dark) {
  filter: brightness(0) invert(1);
  opacity: 0.55;
}
html[data-theme="dark"] .logos__item img.logo-themed--dark {
  display: inline-block;
  filter: none;
  opacity: 0.8;
}
/* Relic uses one plated asset: clean black mark on white in light mode, and
   inverted in dark so its plate goes dark and blends into the marquee bg. */
html[data-theme="dark"] .logos__item img.logo-relic {
  filter: invert(1);
  opacity: 0.82;
}
/* Playtika ships a single light-toned raster asset (white disc + dark panther +
   dark wordmark). The brightness(0) silhouette flattens the disc to a solid
   white blob and erases the panther, so invert it instead: the panther and
   wordmark lift to white and the logo reads correctly on the dark marquee. */
html[data-theme="dark"] .logos__item img.logo-playtika {
  filter: invert(1) brightness(1.6);
  opacity: 0.8;
}

html[data-theme="dark"] .logos__title {
  color: var(--light-4);
  opacity: 1;
}

/* Toggle visual state */
html[data-theme="dark"] .theme-toggle__track { background: #2a2e37; border-color: #343a45; }
html[data-theme="dark"] .theme-toggle__thumb { transform: translateY(-50%) translateX(24px); background: #e7e8ea; color: #16181d; }
html[data-theme="dark"] .theme-toggle__ic--sun { display: none; }
html[data-theme="dark"] .theme-toggle__ic--moon { display: block; }

/* ============================================================
   FOR-STUDIOS HERO — split layout over an xbox-style backdrop
   ============================================================ */
.shero {
  position: relative;
  padding: 40px clamp(20px, 8vw, 100px) 0;   /* 40px below nav, fills to 100px side padding */
  background: transparent;
}
/* the stroke frame the content sits within — always full width minus the
   section's side padding (100px on desktop) */
.shero__inner {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 30px clamp(24px, 5vw, 70px);       /* 30px top/bottom, 70px sides */
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fbfaf7;                 /* light: warm off-white */
  display: flex;
  flex-direction: column;
}
.shero__inner::before {                /* warm radial glow, top-right (inside frame) */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 58% at 100% -6%, rgba(236, 167, 70, 0.10), transparent 60%);
}
.shero__logo { position: relative; z-index: 1; align-self: flex-start; height: 30px; width: auto; }
.shero__grid {
  position: relative;
  z-index: 1;
  margin-top: clamp(28px, 3.5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(28px, 4vw, 60px);
}
.shero__left,
.shero__right { position: relative; z-index: 1; }

/* ---- left column ---- */
.shero__title {
  margin: 0;
  font-size: clamp(33px, 3.9vw, 48px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--dark-2);
}
.shero__sub {
  margin: 30px 0 0;                     /* 30px below the title */
  max-width: 30em;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--dark-4);
}
.shero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(26px, 3.5vw, 52px);
  margin: 50px 0 0;                     /* 50px below the tagline */
}
.sstat { display: flex; flex-direction: column; gap: 9px; }
.sstat__fig { display: flex; align-items: baseline; gap: 2px; color: var(--dark-2); line-height: 1; }
.sstat__num { font-size: clamp(30px, 3vw, 42px); font-weight: 400; line-height: 1; }
.sstat__unit { font-size: clamp(13px, 1vw, 16px); font-weight: 400; }
.sstat__cap { font-size: 12px; font-weight: 300; line-height: 1.4; color: var(--dark-4); }
.shero__cta-row { margin-top: 30px; }       /* 30px below the stats */
.shero__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--light-4);
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.15s ease, transform 0.08s ease;
}
.shero__btn:hover { opacity: 0.88; }
.shero__btn:active { transform: translateY(1px); }

/* ---- right column: player card ---- */
.shero__right { display: flex; justify-content: center; width: 100%; }
.splayer {
  width: 100%;
  max-width: 540px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(118, 118, 118, 0.05);     /* 767676 @ 5% */
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(15, 15, 15, 0.10);
}
.splayer__head { display: flex; align-items: center; gap: 12px; padding: 4px 6px 14px; }
.splayer__avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line); }
.splayer__meta { min-width: 0; }
.splayer__title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--dark-2); }
.splayer__byline { margin: 4px 0 0; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 300; color: var(--dark-4); }
.splayer__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--dark-4); flex: none; }
.splayer__video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0c0b09; }
.splayer__video > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.splayer__actions { display: flex; align-items: center; justify-content: space-between; padding: 14px 6px 4px; }
.splayer__play {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px;
  border-radius: 9px;
  /* liquid-glass: translucent fill + stroke + blur, no solid fill */
  background: rgba(118, 118, 118, 0.10);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--dark-2);
  font-size: 12px; font-weight: 500;
  transition: background 0.15s ease;
}
.splayer__play:hover { background: rgba(118, 118, 118, 0.16); }
.splayer__play-logo {
  width: 14px; height: 14px; flex: none;
  background: var(--dark-2);
  -webkit-mask: url("/Ludeo pentagon logo.svg") center / contain no-repeat;
  mask: url("/Ludeo pentagon logo.svg") center / contain no-repeat;
}
.splayer__share {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 0; cursor: pointer;
  font-family: "Sora", sans-serif; font-size: 14px; font-weight: 400; color: var(--dark-4);
}
.splayer__share-icon {
  width: 14px; height: 13px; flex: none;
  background: var(--dark-4);
  -webkit-mask: url("/Button/Share.svg") center / contain no-repeat;
  mask: url("/Button/Share.svg") center / contain no-repeat;
}

@media (max-width: 900px) {
  .shero__grid { grid-template-columns: 1fr; gap: 34px; }
}

/* For Studios + Studios landing: first screen = hero card + partner marquee only */
body.page-studios .shero-fold {
  --studios-chrome: calc(var(--banner-h) + var(--nav-h));
  --fold-card-scale: 1.3;
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--studios-chrome));
  max-height: calc(100dvh - var(--studios-chrome));
  box-sizing: border-box;
}
/* Studios landing has no banner/nav, so the fold fills the full viewport */
body.page-landing .shero-fold { --studios-chrome: 0px; }
body.page-landing .hiw { padding-top: 0; }
/* Landing page: these sections sit flush — no top gap above them */
body.page-landing .tryl,
body.page-landing .df,
body.page-landing .faq { padding-top: 0; }
body.page-landing .cta { margin-top: 0; }
body.page-studios .shero-fold > .shero {
  flex: 1 1 auto;            /* grow to fill the space above the partners */
  min-height: 0;
  display: flex;
  align-items: stretch;     /* stretch the card to the full available height */
  padding: clamp(12px, 2vh, 24px) var(--container-pad) clamp(16px, 2.4vh, 28px);
}
body.page-studios .shero-fold .shero__inner {
  flex: 1;
  width: 100%;
  justify-content: center;  /* keep the card content vertically centered as it grows */
  padding: calc(24px * var(--fold-card-scale)) clamp(24px, 5vw, 70px);
}
body.page-studios .shero-fold .shero__grid {
  margin-top: 0;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
}
body.page-studios .shero-fold .shero__sub {
  margin-top: calc(24px * var(--fold-card-scale));
}
body.page-studios .shero-fold .shero__stats {
  margin-top: calc(36px * var(--fold-card-scale));
  gap: clamp(24px, 3.5vw, 48px);
}
body.page-studios .shero-fold .shero__cta-row {
  margin-top: calc(24px * var(--fold-card-scale));
}
body.page-studios .shero-fold .splayer {
  max-width: 580px;
  width: 100%;
  padding: calc(16px * var(--fold-card-scale));
}
body.page-studios .shero-fold .logos {
  flex: 0 0 auto;
  margin-top: auto;
  margin-bottom: calc((100dvh - var(--studios-chrome)) * 0.15);
  padding-top: clamp(12px, 2vh, 24px);
}
@media (max-height: 820px) {
  body.page-studios .shero-fold .shero__inner {
    padding: calc(18px * var(--fold-card-scale)) clamp(20px, 4vw, 56px);
  }
  body.page-studios .shero-fold .shero__stats {
    margin-top: calc(24px * var(--fold-card-scale));
  }
  body.page-studios .shero-fold .shero__sub,
  body.page-studios .shero-fold .shero__cta-row {
    margin-top: calc(16px * var(--fold-card-scale));
  }
}
/* Mobile: stop cramming the studios hero into one 100dvh screen as a 2-col
   grid (looked squished/smudged). Let it stack and size to its content. */
@media (max-width: 900px) {
  body.page-studios .shero-fold {
    --fold-card-scale: 1;
    height: auto;
    max-height: none;
  }
  /* minmax(0,1fr) lets the column shrink to the screen; without it the
     nowrap title forces the column wider than the viewport and clips everything */
  body.page-studios .shero-fold .shero__grid { grid-template-columns: minmax(0, 1fr); }
  body.page-studios .shero-fold .logos { margin-bottom: 0; }
}
/* Mobile: studios hero — more width, smaller title that keeps
   "Transforming any <word>" on one line, stats squeezed onto one row. */
@media (max-width: 640px) {
  /* trim the nested paddings so the hero gets more room */
  body.page-studios .shero-fold > .shero { padding-left: 12px; padding-right: 12px; }
  body.page-studios .shero-fold .shero__inner { padding: 22px 16px; }

  .shero__title { font-size: clamp(19px, 5.4vw, 25px); } /* small enough to fit one line; nowrap kept */
  .shero__sub { margin-top: 16px; }
  .shero__cta-row { margin-top: 22px; }

  /* 5K / 18% / 1 day on a single row */
  body.page-studios .shero-fold .shero__stats { flex-wrap: nowrap; gap: 12px; margin-top: 24px; }
  .shero__stats .sstat { flex: 1 1 0; min-width: 0; }
  .sstat__num { font-size: 24px; }
  .sstat__cap { font-size: 10.5px; }
  .sstat__pre { font-size: 10.5px; }
  /* align $5K / 18% / 1 day on one baseline: $5K has an "up to" line above it,
     so reserve that height on the others and bottom-anchor every number */
  /* top-align the columns (overrides the global flex-end) so unequal caption
     line counts don't scatter the figures; then bottom-anchor every number to
     a fixed-height figure so $5K / 18% / 1 day share one baseline */
  body.page-studios .shero__stats { align-items: flex-start; }
  .shero__stats .sstat__fig { min-height: 37px; }
  .shero__stats .sstat__fig--col { justify-content: flex-end; }
  .shero__stats .sstat:not(:first-child) .sstat__fig { align-items: flex-end; }

  .splayer__share { display: none; } /* remove share from the hero Ludeo on mobile */
}

/* hero card logo removed on /for-studios — nav logo is enough */
body.page-studios:not(.page-landing) .shero__logo {
  display: none !important;
}

/* ============================================================
   FOR-STUDIOS PAGE — dark mode (uniform page + stroke frame)
   ============================================================ */
html[data-theme="dark"]:has(body.page-studios) { background: var(--dark-page); }
html[data-theme="dark"] body.page-studios { background: var(--dark-page); }
html[data-theme="dark"] body.page-studios .banner::before {
  background: var(--banner-grad);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
html[data-theme="dark"] body.page-studios .nav:not(.nav--scrolled)::before {
  background: var(--dark-page);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* hero stroke frame */
html[data-theme="dark"] .shero__inner {
  background: var(--dark-page);           /* same as page → frame reads as a clean stroke */
  border-color: #3c3c3b;
}
html[data-theme="dark"] .shero__logo { filter: brightness(0) invert(1); }   /* Light 4 wordmark */
html[data-theme="dark"] .shero__title { color: #ffffff; }                   /* Light 4 */
html[data-theme="dark"] .shero__sub { color: #b8baca; }                     /* Light 1 */
html[data-theme="dark"] .shero__inner::before {
  background: radial-gradient(ellipse 52% 60% at 100% -6%, rgba(245, 166, 35, 0.08), transparent 60%);
}
html[data-theme="dark"] .shero__inner::after {  /* very subtle film grain */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* the player card keeps its translucent fill in dark too */
html[data-theme="dark"] .splayer { border-color: rgba(255, 255, 255, 0.12); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
/* hero primary CTA stays a light button with dark label */
html[data-theme="dark"] .shero__btn { color: #16181d; }
/* the glass Click-to-Play keeps light text/icon (Light 4) in dark mode */
html[data-theme="dark"] .splayer__play { color: #ffffff; border-color: rgba(255, 255, 255, 0.22); }
html[data-theme="dark"] .splayer__play-logo { background: #ffffff; }

/* logos section fade edges on for-studios */
html[data-theme="dark"] body.page-studios .logos__fade--left {
  background: linear-gradient(to right, var(--dark-page), transparent);
}
html[data-theme="dark"] body.page-studios .logos__fade--right {
  background: linear-gradient(to left, var(--dark-page), transparent);
}

/* How it works / Developer friendly / FAQ all sit on page color */
html[data-theme="dark"] body.page-studios .faq__container { background: var(--dark-page); }
/* key-art line work: lighten the dark strokes while preserving the yellow.
   Photo-based arts (Create) are excluded so their footage keeps natural colors. */
html[data-theme="dark"] body.page-studios .step__art-img:not(.step__art-img--photo),
html[data-theme="dark"] body.page-studios .feature__art { filter: invert(1) hue-rotate(180deg); }

/* footer: Ludeo wordmark + social icons inherit global dark-mode white treatment */

/* ---- For-studios layout fixes (both themes) ---- */
/* "Still have questions" aligns its left edge with the FAQ box */
body.page-studios .faq__after { max-width: none; }
/* "Ready to make…" CTA spans the same width as the FAQ section */
body.page-studios .cta { padding-left: clamp(24px, 8vw, 100px); padding-right: clamp(24px, 8vw, 100px); }
body.page-studios .cta__container { max-width: none; }
/* logos sit 50px below the hero component */
body.page-studios .logos { margin-top: 48px; }

/* ============================================================
   FOR-STUDIOS / LANDING — review refinements
   ============================================================ */
/* Match page + cards to one surface (borders only for separation). */
html[data-theme="dark"] body.page-studios {
  --page: var(--dark-page);
  --logos-fade: var(--dark-page);
  --nav-bg: var(--dark-page);
  --surface: var(--dark-page);
  --surface-2: #22252d;
  --line: #2e2e2e;
}

/* Brand-yellow primary CTAs — every one except the final
   "Ready to make videos…" CTA button (.cta__btn). */
body.page-studios .shero__btn,
body.page-studios .step__btn--primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #0f0f0f;
}
body.page-studios .shero__btn:hover,
body.page-studios .step__btn--primary:hover { opacity: 0.9; background: var(--yellow); }

/* studios-landing hero player: yellow "Click to Play" to match the primary CTA */
body.page-landing .splayer__play {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #0f0f0f;
}
body.page-landing .splayer__play:hover { background: var(--yellow); opacity: 0.9; }
body.page-landing .splayer__play-logo { background: #0f0f0f; }

/* the cycling hero word in brand yellow */
body.page-studios .shero__title .word-switch,
body.page-studios .shero__title .word-switch__item { color: var(--yellow); }

/* Try Ludeos / Why Ludeo navigator: game + studio logos light in dark mode (all pages) */
html[data-theme="dark"] .games-nav__game,
html[data-theme="dark"] .games-nav__studio { filter: brightness(0) invert(1); }

/* The hero card + partner marquee fold (.shero-fold) now handles the first
   screen on both studios pages — see the .shero-fold rules above. */

/* ============================================================
   FOR-STUDIOS / LANDING — review refinements (round 2)
   ============================================================ */
/* Stats bottom-align so the big values + captions line up even when one
   stat has an "up to" label stacked above its value. */
.shero__stats { align-items: flex-end; }
.sstat__fig--col { flex-direction: column; align-items: flex-start; gap: 2px; }
.sstat__pre { font-size: 13px; font-weight: 300; line-height: 1; color: var(--dark-4); }
html[data-theme="dark"] body.page-studios .sstat__pre { color: #b8baca; }   /* Light 1 */

/* Outline the secondary buttons — remove their fill (everything except the
   yellow "Get started - free" buttons keeps just a stroke). */
body.page-studios .nav-btn--light,
body.page-studios .step__btn:not(.step__btn--primary) {
  background: transparent;
  border-color: var(--line);
}
body.page-studios .nav-btn--light:hover,
body.page-studios .step__btn:not(.step__btn--primary):hover {
  background: rgba(118, 118, 118, 0.10);
}

/* ============================================================
   OUR THESIS — blurred gameplay backdrop (home)
   ============================================================ */
.thesis {
  padding: 0 var(--container-pad) var(--section-y-lg);
}
.thesis__container {
  position: relative;
  max-width: 1556px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  min-height: clamp(360px, 40vw, 460px);
  display: grid;
  place-items: center;
  padding: clamp(48px, 7vw, 100px) clamp(24px, 7vw, 110px);
  text-align: center;
  background: #0f0f0f;
}
/* gameplay loop — soft ambient blur so color/motion reads through the text */
.thesis__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.35);
  filter: blur(80px) saturate(1.15);
  z-index: 0;
}
.thesis__tint { position: absolute; inset: 0; background: rgba(15, 15, 15, 0.28); z-index: 1; }
.thesis__content { position: relative; z-index: 2; max-width: 1100px; }
.thesis__label {
  margin: 0 0 clamp(18px, 2.6vw, 32px);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
}
.thesis__body {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 300;
  line-height: 1.32;
  color: var(--light-4);
}
.thesis__body strong { font-weight: 700; }
