/* Ridweng Studios website — the studio pages (/, /games/, /studio/, /join/,
   /support-us/, /contact/, /privacy/, /terms/ and their /es/ twins).
   Bluffers keeps its own stylesheet (site.css).

   Palette from the approved logo (Docs/Brand/ridwengStudios.png): its night
   ground, the violet of the ribbon, the peach glow where the ribbon meets the
   star, and the cream of the star and wordmark. The logo has no transparency;
   the page background is its exact ground colour, and over glows it is blended
   with `lighten`, so its edge never shows.

   The star (#star in the page sprite) is the approved shape, never redrawn. It
   appears sparingly: on load in the hero, on button hover, on the next-project
   card and as the kicker mark. All motion is CSS and stops under
   prefers-reduced-motion. */

@font-face {
  font-family: "Unbounded";
  src: url(/assets/fonts/unbounded-var.woff2) format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url(/assets/fonts/inter-var.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --night: #05001a;
  --night-2: #0b0326;
  --surface: #120836;
  --surface-2: #1a0d47;
  --line: rgba(232, 222, 255, 0.12);
  --line-strong: rgba(232, 222, 255, 0.24);
  --violet: #7a5af8;
  --violet-hi: #a58bff;
  --lavender: #d9ccff;
  --plum: #9f5694;
  --peach: #ffbf9b;
  --peach-hi: #ffd8c0;
  --cream: #fdf0e7;
  --text: #f4ecf6;
  --text-muted: rgba(244, 236, 246, 0.72);
  --text-faint: rgba(244, 236, 246, 0.5);
  --radius: 16px;
  --radius-lg: 28px;
  --gutter: 16px;
  --header-h: 68px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-pop: cubic-bezier(0.24, 1.34, 0.38, 1);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --grad: linear-gradient(100deg, var(--lavender) 0%, var(--peach-hi) 55%, var(--peach) 100%);
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--night);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
main { flex: 1 0 auto; }
img, video { max-width: 100%; height: auto; display: block; }
::selection { background: rgba(122, 90, 248, 0.5); color: var(--cream); }

a { color: var(--peach-hi); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0; color: var(--cream); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--cream); color: var(--night); font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 8px; z-index: 100; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }

.icon { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.star { flex: none; fill: currentColor; stroke: none; }

/* ------------------------------------------------------------ Typography */

.display {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.02;
  font-size: clamp(29px, 9vw, 92px);
  text-wrap: balance;
  overflow-wrap: break-word;
}
.display--md { font-size: clamp(30px, 5.4vw, 58px); line-height: 1.06; }
.display--sm { font-size: clamp(22px, 3.4vw, 32px); line-height: 1.12; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--lavender);
}
.kicker .star { width: 14px; height: 14px; color: var(--peach); }

.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.6; color: var(--text-muted); max-width: 62ch; }
.prose { color: var(--text-muted); font-size: clamp(16px, 0.6vw + 14px, 18px); max-width: 64ch; container-type: inline-size; }
.prose strong { color: var(--cream); font-weight: 600; }

/* --------------------------------------------------------------- Buttons */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 10px 24px; border: 0; border-radius: 999px; text-align: center;
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.35s var(--ease-pop), box-shadow 0.35s var(--ease-out), background-color 0.3s, color 0.3s;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary {
  color: var(--night);
  background: linear-gradient(100deg, var(--cream) 0%, var(--peach-hi) 50%, var(--peach) 100%);
  box-shadow: 0 10px 34px -12px rgba(255, 191, 155, 0.65);
}
.btn--primary:hover { color: var(--night); transform: translateY(-2px); box-shadow: 0 16px 44px -12px rgba(255, 191, 155, 0.85); }
.btn--ghost { color: var(--cream); background: rgba(232, 222, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { color: var(--cream); background: rgba(232, 222, 255, 0.12); transform: translateY(-2px); }
.btn--lg { min-height: 58px; padding: 12px 30px; font-size: 14px; }
@media (max-width: 520px) { .btn { white-space: normal; padding-inline: 20px; } }
.btn:active { transform: translateY(0) scale(0.98); }

/* The hover star: a small sparkle that turns in at the button's corner. */
.btn__star {
  position: absolute; top: -7px; right: 10px; width: 18px; height: 18px;
  color: var(--peach-hi); opacity: 0; scale: 0.2; rotate: -90deg;
  filter: drop-shadow(0 0 6px rgba(255, 216, 192, 0.9));
  transition: opacity 0.3s, scale 0.45s var(--ease-pop), rotate 0.6s var(--ease-out);
  pointer-events: none;
}
.btn:hover .btn__star, .btn:focus-visible .btn__star { opacity: 1; scale: 1; rotate: 0deg; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .cta-row .btn { flex: 1 1 100%; } }

/* ---------------------------------------------------------------- Header */

.sh {
  position: sticky; top: 0; z-index: 40;
  background: rgba(5, 0, 26, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.sh__bar { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.sh__brand { display: block; margin-right: auto; flex: 0 1 auto; min-width: 0; padding: 4px 0; }
.sh__brand img { width: 254px; max-width: 100%; height: auto; }
@media (max-width: 480px) { .sh__bar { gap: 12px; } }

.sh__nav ul, .sh__menu ul { list-style: none; margin: 0; padding: 0; }
.sh__nav ul { display: flex; gap: 2px; }
.sh__nav a, .sh__menu a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 0.25s, background-color 0.25s;
}
.sh__nav a:hover, .sh__menu a:hover { color: var(--cream); background: rgba(232, 222, 255, 0.08); }
.sh__nav a[aria-current="page"], .sh__menu a[aria-current="page"] { color: var(--cream); background: rgba(122, 90, 248, 0.24); }

.sh__tools { display: flex; align-items: center; gap: 8px; flex: none; }
.lang-switch {
  display: inline-grid; place-items: center; min-width: 40px; height: 34px; padding: 0 10px;
  border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text-muted); font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-decoration: none; transition: color 0.25s, background-color 0.25s;
}
.lang-switch:hover { color: var(--cream); background: rgba(232, 222, 255, 0.1); }
@media (pointer: coarse) { .lang-switch { min-width: 44px; height: 40px; } }

/* Phones and tablets: the nav folds into a <details> menu, no script needed. */
.sh__menu { display: none; position: relative; }
.sh__menu summary {
  list-style: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  color: var(--cream); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-strong);
}
.sh__menu summary::-webkit-details-marker { display: none; }
.sh__menu[open] summary { background: rgba(122, 90, 248, 0.28); }
.sh__menu nav {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(280px, calc(100vw - 32px));
  padding: 8px; border-radius: var(--radius); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  max-height: calc(100svh - var(--header-h) - 20px); overflow-y: auto; overscroll-behavior: contain;
}
.sh__menu a { padding: 12px 14px; font-size: 16px; border-radius: 10px; }
@media (max-width: 980px) {
  .sh__nav { display: none; }
  .sh__menu { display: block; }
}

/* ------------------------------------------------------------------ Hero */

/* The home hero is the whole first screen: header and hero fill the viewport,
   and the next section starts below the fold. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding: clamp(32px, 6vh, 88px) 0;
}
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 45% at 72% 42%, rgba(122, 90, 248, 0.42), transparent 70%),
    radial-gradient(ellipse 26% 26% at 84% 30%, rgba(255, 191, 155, 0.24), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 0%, rgba(159, 86, 148, 0.22), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
.hero__copy { container-type: inline-size; }
.hero__copy .display { font-size: clamp(29px, 11.4cqi, 92px); }
.hero__copy .display:lang(es) { font-size: clamp(27px, 9.6cqi, 92px); }
.hero__copy .lede { margin: 26px 0 34px; font-size: clamp(18px, 0.5vw + 15px, 22px); }
.hero__logo { position: relative; margin: 0; }
.hero__art { position: relative; }
.hero__logo img {
  display: block; width: 100%; mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 72% 76% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 76% at 50% 50%, #000 62%, transparent 100%);
}
/* The star arrives once on load, centred on the star in the logo. It sits in
   the same box as the image (.hero__art), so the two always scale together.
   73.44% / 35.95% is the centre of the logo's own star (pixel 1211,343 of
   1649x954); 13% of the width spans its rays tip to tip. */
.hero__star {
  position: absolute; left: 73.44%; top: 35.95%; width: 13%; height: auto; aspect-ratio: 1;
  transform-origin: 50% 50%;
  translate: -50% -50%; color: var(--cream);
  filter: drop-shadow(0 0 14px rgba(255, 216, 192, 0.95)) drop-shadow(0 0 40px rgba(255, 191, 155, 0.6));
  opacity: 0; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__star { animation: star-arrive 1.8s var(--ease-out) 0.35s both; }
  .hero__copy > * { animation: rise 0.9s var(--ease-out) both; }
  .hero__copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero__copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero__copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero__logo img { animation: fade-in 1.4s var(--ease-out) both; }
}
@keyframes star-arrive {
  0% { opacity: 0; scale: 0.2; rotate: -180deg; }
  55% { opacity: 1; scale: 1.25; }
  100% { opacity: 0; scale: 1; rotate: 0deg; }
}
@keyframes rise { from { opacity: 0; translate: 0 22px; } }
@keyframes fade-in { from { opacity: 0; } }
/* Side by side, the logo is drawn a little past its column: its own dark
   margins fade out under the mask. */
@media (min-width: 901px) {
  .hero__art { width: 116%; margin-left: -8%; }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__logo { order: -1; max-width: 520px; margin: 0 auto; width: 100%; }
}

/* Inner-page hero */
.phero { position: relative; isolation: isolate; padding: clamp(56px, 9vw, 120px) 0 clamp(36px, 6vw, 72px); overflow: hidden; }
.phero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 160%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 42% 40% at 80% 20%, rgba(122, 90, 248, 0.34), transparent 70%),
    radial-gradient(ellipse 22% 24% at 92% 10%, rgba(255, 191, 155, 0.18), transparent 70%);
}
.phero .lede { margin-top: 24px; }
.phero--center { text-align: center; padding-block: clamp(36px, 5vw, 64px) clamp(24px, 3vw, 36px); }
.phero--center .display { font-size: clamp(26px, 3.4vw, 40px); }
.phero--center .lede { margin-top: 14px; }
.phero--center .lede { margin-inline: auto; }

/* --------------------------------------------------------------- Sections */

.section { padding: clamp(56px, 9vw, 120px) 0; }
.section--tight { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p:not(.kicker) { margin-top: 18px; color: var(--text-muted); font-size: 18px; }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.rule { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

/* -------------------------------------------------------------- Game card */

.game {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 60%);
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 90px -40px rgba(122, 90, 248, 0.55);
}
.game__media { position: relative; margin: 0; min-height: 320px; background: #000; }
.game__media video, .game__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game__media img { display: none; }
@media (prefers-reduced-motion: reduce) {
  .game__media video { display: none; }
  .game__media img { display: block; }
}
.game__body { padding: clamp(24px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; container-type: inline-size; min-width: 0; }
.game__title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 5vw, 56px); font-size: clamp(28px, 13.5cqi, 56px); letter-spacing: 0.02em; line-height: 1; }
.game__hook { margin: 14px 0 16px; font-size: 20px; font-weight: 600; color: var(--peach-hi); }
.game__body > p:not(.tags):not(.game__hook) { color: var(--text-muted); }
.game__body .cta-row { margin-top: 26px; }
@media (max-width: 900px) {
  .game { grid-template-columns: 1fr; }
  .game__media { min-height: 0; aspect-ratio: 16 / 9; }
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.tags li, .tags span {
  padding: 6px 12px; border-radius: 999px; font-family: var(--display); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--lavender); box-shadow: inset 0 0 0 1px var(--line-strong);
}
.tags .tags__live { color: var(--night); background: var(--peach); box-shadow: none; }

.starlist { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.starlist li { display: flex; gap: 12px; align-items: baseline; color: var(--text); }
.starlist .star { width: 13px; height: 13px; color: var(--peach); translate: 0 1px; }

/* Our games: on laptops and desktops the heading and the Bluffers card fill
   exactly the first screen, the card's content tightened to fit. */
@media (min-width: 1024px) and (min-height: 640px) {
  .games-view {
    display: flex; flex-direction: column; justify-content: center;
    min-height: calc(100svh - var(--header-h)); padding-block: clamp(16px, 3vh, 40px);
  }
  .games-view .phero { padding: 0 0 clamp(14px, 2.5vh, 28px); }
  .games-view .phero .lede { margin-top: 10px; }
  .games-view .section { padding: 0; }
  .games-view .display { font-size: clamp(28px, 5.4vh, 58px); }
  .games-view .phero .lede { font-size: clamp(16px, 2vh, 19px); }
  .games-view .game { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .games-view .game__body { padding: clamp(22px, 3.4vh, 40px) clamp(28px, 3vw, 44px); }
  .games-view .game__title { font-size: clamp(28px, 11cqi, 48px); }
  .games-view .game__hook { margin: 8px 0 10px; font-size: 18px; }
  .games-view .game__body > p { font-size: 15.5px; line-height: 1.55; margin-bottom: 0.7em; }
  .games-view .tags { margin-bottom: 12px; }
  .games-view .starlist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin-top: 10px; font-size: 15px; }
  .games-view .game__body .cta-row { margin-top: 18px; }
}
@media (min-width: 1024px) and (max-width: 1199px) and (min-height: 640px) {
  .games-view .game { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
}
@media (min-width: 1024px) and (min-height: 640px) and (max-height: 860px) {
  .games-view .game__body { padding-block: 20px; }
  .games-view .game__title { font-size: clamp(26px, 9cqi, 40px); }
  .games-view .tags { margin-bottom: 8px; }
  .games-view .game__hook { font-size: 16.5px; margin: 6px 0 8px; }
  .games-view .game__body > p { font-size: 14.5px; line-height: 1.5; margin-bottom: 0.55em; }
  .games-view .starlist { font-size: 14px; gap: 4px 16px; }
  .games-view .game__body .btn { min-height: 44px; padding-block: 8px; }
  .games-view .game__body .cta-row { margin-top: 14px; }
}

/* -------------------------------------------------- Next project teaser */

.next {
  position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(20px, 3vw, 32px);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(20px, 4vw, 48px);
  padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg);
  background: radial-gradient(ellipse 60% 120% at 0% 50%, rgba(122, 90, 248, 0.32), transparent 70%), var(--night-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.next__mark { position: relative; width: clamp(72px, 10vw, 112px); aspect-ratio: 1; color: var(--cream); }
.next__mark .star { width: 100%; height: 100%; filter: drop-shadow(0 0 18px rgba(255, 216, 192, 0.7)); }
@media (prefers-reduced-motion: no-preference) {
  .next__mark .star { animation: pulse 3.6s ease-in-out infinite; }
}
@keyframes pulse {
  0%, 100% { scale: 0.86; filter: drop-shadow(0 0 10px rgba(255, 216, 192, 0.5)); }
  50% { scale: 1; filter: drop-shadow(0 0 26px rgba(255, 216, 192, 0.95)); }
}
.next__label { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.2em; color: var(--peach); text-transform: uppercase; }
.next__q { color: var(--lavender); }
.next h2, .next h3 { margin-bottom: 12px; }
.next p { color: var(--text-muted); }
@media (max-width: 860px) {
  .next { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------- Statement strip */

.strip { padding: clamp(36px, 6vw, 64px) 0; border-block: 1px solid var(--line); overflow: hidden; }
.strip__text {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.4em 0.6em; margin: 0;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; text-align: center;
  font-size: clamp(24px, 5.2vw, 64px); line-height: 1.05; letter-spacing: -0.01em; color: var(--cream);
}
.strip__text .star { width: 0.6em; height: 0.6em; color: var(--peach); }

/* ------------------------------------------------------------ CTA cards */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .cards, .cards--2 { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.35s, transform 0.45s var(--ease-pop);
}
.card:hover { box-shadow: inset 0 0 0 1px var(--line-strong), 0 30px 70px -40px rgba(122, 90, 248, 0.8); transform: translateY(-3px); }
.card h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.15; }
.card p { color: var(--text-muted); }
.card .btn { align-self: flex-start; margin-top: auto; }
.card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--peach-hi); background: rgba(122, 90, 248, 0.18); }
.card__icon .icon { width: 22px; height: 22px; }

/* ------------------------------------------------------------- Gallery */

.trailer { border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px var(--line), 0 40px 90px -40px rgba(122, 90, 248, 0.55); }
.trailer video { width: 100%; aspect-ratio: 16 / 9; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.shots li { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.shots img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: scale 0.6s var(--ease-out); }
.shots li:hover img { scale: 1.04; }
@media (max-width: 720px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------ Studio page */

.pull {
  margin: 0; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(122, 90, 248, 0.26), rgba(159, 86, 148, 0.14) 60%, transparent), var(--night-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pull p { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.6vw, 30px); line-height: 1.3; color: var(--cream); text-wrap: balance; }
.platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.platforms li {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 12px; border-radius: var(--radius);
  background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-muted); font-size: 15px; text-align: center;
}
.platforms .icon { width: 30px; height: 30px; color: var(--peach-hi); }
@media (max-width: 560px) { .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- Chips */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.chips li { padding: 8px 14px; border-radius: 999px; background: rgba(122, 90, 248, 0.16); color: var(--lavender); font-size: 15px; font-weight: 500; }

/* ----------------------------------------------------------------- Form */

.panel {
  padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--surface-2), var(--night-2) 70%);
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 90px -50px rgba(122, 90, 248, 0.6);
}
.panel > h2 { margin-bottom: 10px; }
.panel > p { color: var(--text-muted); }
.form { margin-top: 28px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .form__grid { grid-template-columns: 1fr; } }
.field label { font-size: 14px; font-weight: 600; color: var(--cream); }
.opt { font-weight: 400; color: var(--text-faint); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 0; border-radius: 12px;
  background: rgba(5, 0, 26, 0.6); color: var(--text); font: inherit; font-size: 16px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow 0.2s, background-color 0.2s;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--lavender) 50%), linear-gradient(135deg, var(--lavender) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--surface); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: rgba(5, 0, 26, 0.85); box-shadow: inset 0 0 0 2px var(--violet-hi); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { box-shadow: inset 0 0 0 2px #ff8f8f; }

.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 15px; color: var(--text-muted); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--peach); cursor: pointer; }
.form__how { margin: 14px 0 0; color: var(--text-faint); font-size: 14px; }
.form__note { margin: 22px 0 26px; padding: 14px 16px; border-radius: 12px; background: rgba(122, 90, 248, 0.12); color: var(--text-muted); font-size: 14.5px; }
.form__sent { margin-top: 26px; padding: 22px 24px; border-radius: var(--radius); background: rgba(255, 191, 155, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 191, 155, 0.35); }
.form__sent h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-family: var(--display); font-size: 18px; text-transform: uppercase; }
.form__sent h3 .star { width: 18px; height: 18px; color: var(--peach); }
.form__sent p { color: var(--text-muted); }

/* Contact form (contact.js): inline errors, status messages, sending state. */
.req { color: var(--peach); font-weight: 700; }
.field [aria-invalid="true"], .field [aria-invalid="true"]:focus { box-shadow: inset 0 0 0 2px #ff8f8f; }
.field__error { margin: 0; color: #ffb3b3; font-size: 14px; line-height: 1.4; }
/* hcaptcha: the widget is hCaptcha's own frame (303x78, or 164x144 compact
   where that would not fit); the slot only reserves its height. */
.field--captcha { margin-top: 18px; }
.captcha__label { margin: 0; font-size: 14px; font-weight: 600; color: var(--cream); }
.captcha { min-height: 78px; max-width: 100%; }
/* The honeypot: out of sight and out of the tab order, but still in the form. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin-top: 22px; padding: 18px 20px; border-radius: var(--radius); outline: none; }
.form__status h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-family: var(--display); font-size: 17px; text-transform: uppercase; }
.form__status h3 .star { width: 18px; height: 18px; color: var(--peach); }
.form__status p { color: var(--text-muted); }
.form__status--ok { background: rgba(255, 191, 155, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 191, 155, 0.4); }
.form__status--error { background: rgba(255, 143, 143, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 143, 143, 0.45); }
.form__status--error h3 { color: #ffd0d0; }
.btn__spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; }
.is-sending .btn__spinner { display: inline-block; animation: spin 0.8s linear infinite; }
.is-sending .btn > .icon { display: none; }
.btn:disabled { cursor: progress; opacity: 0.75; transform: none; }
@keyframes spin { to { rotate: 1turn; } }

/* -------------------------------------------------------- Buy me a coffee */

/* Ko-fi's own panel is the centrepiece. Inside the frame is Ko-fi's page: its
   card, font and button colour come from the Ko-fi account and cannot be
   restyled from here. Between 288 and 400px wide that card fills the frame
   edge to edge and ends at 578px, with "Powered by Ko-fi" at 624px, so the
   frame is exactly as wide as the card and just as tall: one card in the
   site's glow, nothing boxed around it. The frame takes the light colour
   scheme so it stays see-through (Ko-fi's page background is translucent)
   onto the card's own light ground. support.js grows it once the visitor
   starts using it, to leave room for Ko-fi's checkout step. */
.coffee { display: grid; justify-items: center; gap: 18px; }
.coffee__head { display: flex; align-items: center; gap: 14px; margin: 0; max-width: 400px; width: 100%; }
.coffee__head strong { display: block; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream); }
.coffee__head small { display: block; margin-top: 2px; font-size: 14px; color: var(--text-faint); }
.kofi {
  width: 100%; max-width: 400px; border-radius: 14px; overflow: hidden; background: #f7f7f7;
  box-shadow: 0 0 0 1px rgba(253, 240, 231, 0.18), 0 0 0 7px rgba(122, 90, 248, 0.16),
    0 40px 90px -36px rgba(122, 90, 248, 0.95), 0 0 80px -20px rgba(255, 191, 155, 0.35);
}
.kofi__frame {
  display: block; width: 100%; height: 640px; border: 0;
  color-scheme: light; background: transparent;
  transition: height 0.5s var(--ease-out);
}
.kofi__frame.is-active { height: 780px; }
.coffee__alt { margin: 0; font-size: 14px; color: var(--text-faint); text-align: center; }
.coffee__copy { width: 100%; max-width: 620px; margin: clamp(32px, 5vw, 64px) auto 0; text-align: center; }
.coffee__copy .cta-row { justify-content: center; margin-top: 24px; }
.fine { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.6; color: var(--text-faint); }

/* -------------------------------------------------------------- Contact */

.mail {
  display: inline-block; margin: 8px 0 28px; max-width: 100%;
  font-family: var(--display); font-weight: 700; font-size: clamp(16px, 3.4vw, 34px); font-size: clamp(13px, 4.7cqi, 34px); line-height: 1.1;
  color: var(--cream); text-decoration: none; overflow-wrap: anywhere;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.mail:hover { -webkit-text-fill-color: var(--cream); }
.where { display: flex; align-items: center; gap: 10px; margin-top: 30px; color: var(--text-muted); }
.where .icon { width: 20px; height: 20px; color: var(--peach-hi); }

/* -------------------------------------------------------------- Legal */

.doc { padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(56px, 8vw, 104px); }
.paper {
  padding: clamp(24px, 5vw, 56px); border-radius: var(--radius-lg);
  background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line);
}
.policy { color: var(--text-muted); font-size: 16.5px; overflow-wrap: break-word; }
.policy h1 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 4.6vw, 42px); line-height: 1.1; margin-bottom: 14px; }
.policy h2 { font-family: var(--display); font-weight: 700; font-size: clamp(17px, 2.2vw, 20px); line-height: 1.3; margin: 2.2em 0 0.7em; scroll-margin-top: calc(var(--header-h) + 16px); }
.policy h3 { font-size: 17px; font-weight: 700; margin: 1.6em 0 0.5em; }
.policy .updated { color: var(--lavender); font-size: 15px; }
.policy ul { padding-left: 1.3em; }
.policy li { margin: 0.35em 0; }
.policy li::marker { color: var(--peach); }
.policy strong { color: var(--cream); }
.toc { margin: 26px 0 8px; padding: 20px 24px; border-radius: var(--radius); background: rgba(122, 90, 248, 0.1); }
.toc h2 { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lavender); }
.toc ol { margin: 0; padding: 0; list-style: none; columns: 2 260px; column-gap: 32px; }
.toc li { margin: 0.25em 0; break-inside: avoid; }
.toc a { display: inline-block; padding: 4px 0; color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--cream); text-decoration: underline; }
.notice { padding: 14px 16px; border-radius: 12px; background: rgba(255, 143, 143, 0.14); color: #ffd0d0; }

/* ------------------------------------------------------------ Not found */

.lost { padding: clamp(72px, 12vw, 160px) 0; text-align: center; }
.lost .star { width: 64px; height: 64px; margin: 0 auto 28px; color: var(--peach-hi); display: block; filter: drop-shadow(0 0 22px rgba(255, 216, 192, 0.7)); }
.lost h1 { margin-bottom: 18px; }
.lost p { color: var(--text-muted); }
.lost .cta-row { justify-content: center; margin-top: 30px; }
.lost__es { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }

/* --------------------------------------------------------------- Footer */

.sf { margin-top: auto; border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: 14.5px; color: var(--text-muted); background: linear-gradient(180deg, transparent, rgba(122, 90, 248, 0.07)); }
.sf__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 32px; }
@media (min-width: 640px) { .sf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sf__nav { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .sf__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1.4fr); } .sf__nav { grid-column: auto; } }
.sf__brand img { height: 32px; width: auto; margin-bottom: 14px; }
.sf p { margin: 0 0 6px; }
.sf a { color: var(--text-muted); text-decoration: none; overflow-wrap: anywhere; }
.sf__nav a, .sf__contact a { display: inline-block; padding: 7px 0; }
.sf a:hover { color: var(--cream); }
.sf__nav ul { list-style: none; margin: -7px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.sf__social { list-style: none; display: flex; gap: 14px; margin: 12px 0 0; padding: 0; }
.sf__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-faint); }
.sf__base p { margin: 0; }

/* --------------------------------------------------------- Landing scenes */
/* The home page moves block by block (.landing-scene sections). scenes.js
   switches it on with html.is-landing-entry; without the script, or with
   reduced motion (html.scenes-static), the page scrolls as it always has.
   Snapping only where there is room: wider than 900px and at least 700px
   tall. A block taller than its space is marked .is-flow by the script and
   scrolls freely inside. The footer gets a snap point of its own, so the
   end of the page is always reachable. */

.landing-scene { position: relative; isolation: isolate; scroll-snap-align: start; --scene-enter-y: 24px; --scene-enter-scale: 0.988; }
@media (max-width: 900px) { .landing-scene { --scene-enter-y: 20px; --scene-enter-scale: 0.99; } }

@media (min-width: 901px) and (min-height: 700px) {
  html.is-landing-entry:not(.scenes-static) {
    scroll-snap-type: y mandatory; scroll-padding-top: var(--header-h); overscroll-behavior-y: none;
  }
  html.is-landing-entry .landing-scene--viewport { min-height: calc(100svh - var(--header-h)); display: grid; align-content: center; }
  /* Grid children may not grow past the block (the marquee's track is wider than the screen). */
  html.is-landing-entry .landing-scene--viewport > * { min-width: 0; }
  html.is-landing-entry .landing-scene--snap-stop:not(.is-flow) { scroll-snap-stop: always; }
  html.is-landing-entry .sf { scroll-snap-align: end; }
}

/* The block in view settles into place. */
html.is-landing-entry:not(.scenes-static) .landing-scene > .scene-inner {
  opacity: 0.9; transform: translate3d(0, var(--scene-enter-y), 0) scale(var(--scene-enter-scale));
  transform-origin: center; transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
html.is-landing-entry .landing-scene.is-scene-active > .scene-inner { opacity: 1; transform: none; }

/* Items fade up once, staggered (scenes.js turns .reveal into [data-reveal]). */
[data-reveal] { animation: none !important; opacity: 0; translate: 0 24px; transition: opacity 0.6s var(--ease-out), translate 0.6s var(--ease-out); }
[data-reveal].is-visible { opacity: 1; translate: none; }

/* ------------------------------------------------------- Scroll reveal */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
  }
}
@keyframes reveal { from { opacity: 0; translate: 0 36px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .sh, .sf, .toc, .skip-link { display: none; }
  body { background: #fff; color: #000; }
  .paper { box-shadow: none; padding: 0; background: none; }
  .policy, .policy h1, .policy h2, .policy h3, .policy strong { color: #000; }
}
