/* Fonts are hosted on the site itself (Inter & Unbounded, SIL Open Font License) so nothing waits on Google. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../assets/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../assets/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(../assets/fonts/unbounded-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(../assets/fonts/unbounded-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ============================================================
   GLITCH STUDIOS — styles
   ============================================================ */

:root {
  --bg: #0A0A12;
  --bg-2: #10101C;
  --surface: #161626;
  --surface-2: #1E1E33;
  --line: rgba(255, 255, 255, .09);
  --text: #F5F5FB;
  --muted: #A1A1B8;
  --dim: #6B6B85;

  --accent: #B52CFF;
  --on-accent: #FFFFFF;
  --accent-light: #CB7BFF; /* purple for small text on dark */
  --pink: #FF3D8B;
  --cyan: #3DE8FF;
  --green: #B6FF3B;
  --orange: #FF8A3D;

  --radius: 22px;
  --radius-lg: 34px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

/* subtle noise + grid backdrop */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}
main, footer { position: relative; z-index: 1; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.section-tight { padding: clamp(56px, 8vw, 96px) 0; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -.02em; }
.display { font-size: clamp(44px, 8.4vw, 116px); line-height: .98; letter-spacing: -.035em; }
.h2 { font-size: clamp(34px, 5.4vw, 68px); }
.h3 { font-size: clamp(22px, 2.4vw, 30px); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 620px; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent-light);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: ""; width: 12px; height: 12px; border-radius: 3px; background: currentColor;
  box-shadow: 17px 0 0 -2px var(--pink), 31px 0 0 -3px var(--cyan);
  margin-right: 30px;
}
.hl { color: var(--accent); }
.hl-pink { color: var(--pink); }
.hl-cyan { color: var(--cyan); }
.squiggle {
  position: relative; white-space: nowrap; display: inline-block;
}
.squiggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 5 Q5 0 10 5 T20 5 T30 5 T40 5' fill='none' stroke='%23FF3D8B' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;
  background-size: .9em 100%;
  animation: squiggle 1.2s linear infinite;
}
@keyframes squiggle { to { background-position: .9em 0; } }

/* ---------- glitch text ---------- */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
}
.glitch::before { color: var(--cyan); }
.glitch::after { color: var(--pink); }
.glitch.is-glitching::before { opacity: .9; animation: glitch-a .45s steps(2) both; }
.glitch.is-glitching::after  { opacity: .9; animation: glitch-b .45s steps(2) both; }
@keyframes glitch-a {
  0% { clip-path: inset(10% 0 70% 0); transform: translate(-6px, -2px); }
  25% { clip-path: inset(55% 0 20% 0); transform: translate(5px, 1px); }
  50% { clip-path: inset(30% 0 45% 0); transform: translate(-4px, 2px); }
  75% { clip-path: inset(80% 0 5% 0); transform: translate(6px, -1px); }
  100% { clip-path: inset(0 0 100% 0); transform: none; }
}
@keyframes glitch-b {
  0% { clip-path: inset(65% 0 10% 0); transform: translate(6px, 2px); }
  25% { clip-path: inset(15% 0 60% 0); transform: translate(-5px, -1px); }
  50% { clip-path: inset(45% 0 35% 0); transform: translate(4px, -2px); }
  75% { clip-path: inset(5% 0 85% 0); transform: translate(-6px, 1px); }
  100% { clip-path: inset(100% 0 0 0); transform: none; }
}

/* images & logos: RGB split + horizontal slices */
.img-glitching { animation: img-glitch .55s steps(1) both; }
@keyframes img-glitch {
  0%   { filter: drop-shadow(-5px 0 var(--cyan)) drop-shadow(5px 0 var(--pink)); clip-path: inset(0 0 58% 0); transform: translateX(-4px); }
  14%  { filter: drop-shadow(5px 0 var(--cyan)) drop-shadow(-5px 0 var(--pink)); clip-path: inset(38% 0 22% 0); transform: translateX(5px); }
  28%  { clip-path: inset(72% 0 0 0); transform: translateX(-3px); }
  42%  { filter: drop-shadow(-3px 0 var(--cyan)) drop-shadow(3px 0 var(--pink)); clip-path: inset(8% 0 70% 0); transform: translateX(3px); }
  56%  { clip-path: inset(0); transform: translateX(-2px); filter: drop-shadow(-2px 0 var(--cyan)) drop-shadow(2px 0 var(--pink)); }
  72%  { clip-path: inset(0); transform: none; filter: drop-shadow(1px 0 var(--pink)); }
  100% { clip-path: inset(0); transform: none; filter: none; }
}

/* page transition: colored bars + scanlines flash */
.glitch-screen {
  position: fixed; inset: 0; z-index: 500; pointer-events: none; overflow: hidden;
  opacity: 0; visibility: hidden;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 2px, transparent 2px 5px);
}
.glitch-screen.play { visibility: visible; animation: gscreen .38s steps(4) both; }
.glitch-screen i { position: absolute; display: block; mix-blend-mode: screen; opacity: .9; }
.glitch-screen.play i { animation: gbar .38s steps(3) both; }
@keyframes gscreen { 0% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes gbar {
  0% { transform: translateX(-30%) scaleY(1); }
  33% { transform: translateX(25%) scaleY(.4); }
  66% { transform: translateX(-10%) scaleY(1.6); }
  100% { transform: translateX(60%) scaleY(.2); opacity: 0; }
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: var(--on-accent);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  border: 0;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .35s var(--ease-bounce), box-shadow .35s var(--ease-out), background .2s;
  box-shadow: 0 0 0 0 transparent, 4px 4px 0 0 var(--pink);
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -3px) rotate(-1.5deg); box-shadow: 0 10px 40px -10px var(--btn-bg), 7px 7px 0 0 var(--pink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 0 transparent, 1px 1px 0 0 var(--pink); }
.btn .arrow { transition: transform .35s var(--ease-bounce); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--text);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text); background: rgba(255,255,255,.05); }
.btn-sm { padding: 11px 18px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  transition: background .3s, border-color .3s, transform .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 18, .72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-color: var(--line);
}
.site-header.hidden { transform: translateY(-100%); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; transition: transform .4s var(--ease-bounce); }
.brand:hover img { transform: rotate(-3deg) scale(1.04); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative;
  display: block; padding: 10px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 2px; background: var(--accent);
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-btn {
  display: none;
  width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; position: relative;
}
.menu-btn span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .35s var(--ease-out), opacity .2s;
}
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 22px; }
.menu-btn span:nth-child(3) { top: 28px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 6px;
  clip-path: circle(0 at calc(100% - 40px) 38px);
  transition: clip-path .6s var(--ease-out);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display); font-size: clamp(30px, 9vw, 44px); font-weight: 700;
  padding: 6px 0; letter-spacing: -.03em;
  opacity: 0; transform: translateY(20px);
  transition: opacity .4s, transform .5s var(--ease-out), color .2s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--accent); }
.menu-open .mobile-menu a { opacity: 1; transform: none; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: .05s; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: .1s; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: .15s; }
.menu-open .mobile-menu a:nth-child(5) { transition-delay: .2s; }
.menu-open .mobile-menu a:nth-child(6) { transition-delay: .25s; }
.menu-open .mobile-menu a:nth-child(7) { transition-delay: .3s; }
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; font-size: 16px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: min(100svh, 1000px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 100px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.hero-inner > * { min-width: 0; }
.hero .display { font-size: clamp(42px, 6.4vw, 96px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-mascot { position: relative; justify-self: center; width: min(100%, 420px); }
.hero-mascot .mascot { width: 100%; filter: drop-shadow(0 30px 80px rgba(181,44,255, .25)); }
.hero-mascot .badge {
  position: absolute;
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  padding: 10px 16px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.hero-mascot .badge b { color: var(--accent); }
.hero-mascot .badge.b1 { top: 6%; left: -14%; transform: rotate(-6deg); }
.hero-mascot .badge.b2 { bottom: 12%; right: -10%; transform: rotate(5deg); }
.hero-mascot .badge.b3 { bottom: -2%; left: 2%; transform: rotate(-3deg); }

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(70px, 12vw, 140px)) 0 clamp(60px, 9vw, 110px);
  overflow: hidden;
}
.page-hero .display { max-width: 15ch; }
.page-hero .lead { margin-top: 26px; }

/* floating parallax shapes */
.floaters { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.floater { position: absolute; will-change: transform; }
.floater > * { animation: bob 6s ease-in-out infinite; }
.floater:nth-child(2n) > * { animation-duration: 7.5s; animation-delay: -2s; }
.floater:nth-child(3n) > * { animation-duration: 9s; animation-delay: -4s; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-18px) rotate(calc(var(--r, 0deg) + 8deg)); }
}
.shape-cube { width: var(--s, 60px); height: var(--s, 60px); border-radius: 30%; background: var(--c, var(--accent)); }
.shape-ring { width: var(--s, 80px); height: var(--s, 80px); border-radius: 50%; border: calc(var(--s, 80px) * .16) solid var(--c, var(--pink)); }
.shape-pill { width: calc(var(--s, 40px) * .55); height: var(--s, 40px); border-radius: 999px; background: var(--c, var(--cyan)); }
.shape-plus { width: var(--s, 50px); height: var(--s, 50px); position: relative; }
.shape-plus::before, .shape-plus::after { content: ""; position: absolute; background: var(--c, var(--green)); border-radius: 6px; }
.shape-plus::before { left: 35%; right: 35%; top: 0; bottom: 0; }
.shape-plus::after { top: 35%; bottom: 35%; left: 0; right: 0; }
.shape-pixel {
  width: 12px; height: 12px; background: var(--c, var(--accent)); border-radius: 2px;
  box-shadow: 18px 0 0 var(--c, var(--accent)), 0 18px 0 var(--c, var(--accent)), 36px 18px 0 var(--c, var(--accent)), 18px 36px 0 var(--c, var(--accent));
}
.glow {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; pointer-events: none; z-index: 0;
}

.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; z-index: 2;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim);
}
.scroll-hint .mouse { width: 24px; height: 38px; border: 2px solid var(--dim); border-radius: 14px; position: relative; }
.scroll-hint .mouse::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent);
  animation: wheel 1.8s var(--ease-out) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- marquee ---------- */
.marquee {
  position: relative; z-index: 2;
  overflow: hidden;
  padding: 22px 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #8E1AD6, var(--accent) 45%, #C462FF);
  color: var(--on-accent);
  transform: rotate(-2deg);
  margin: 0 -20px;
  box-shadow: 0 20px 60px rgba(181,44,255, .15);
}
.marquee.alt {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #D4246F, var(--pink) 45%, #FF79AE);
  color: var(--text); transform: rotate(1.5deg); margin-top: -12px;
}
.marquee-track { display: flex; width: max-content; will-change: transform; position: relative; z-index: 1; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 3.4vw, 42px);
  letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; padding-right: 36px;
  display: inline-flex; align-items: center; gap: 36px;
}
.marquee-track span::after { content: "✦"; font-size: .7em; }

/* ---------- stats / counter ---------- */
.counter-block { text-align: center; position: relative; }
.big-count {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(58px, 14vw, 200px); line-height: .9; letter-spacing: -.05em;
  background: linear-gradient(100deg, var(--accent) 0%, var(--cyan) 45%, var(--pink) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
  margin: 14px 0 18px;
  display: inline-block;
}
/* a single digit breaking up while the big number counts (colours/offsets set by JS) */
.big-count .dg { position: relative; -webkit-text-fill-color: currentColor; }
.count-label { font-size: clamp(18px, 2vw, 24px); color: var(--muted); max-width: 640px; margin: 0 auto; }
.count-label b { color: var(--text); }
.progress {
  max-width: 720px; margin: 48px auto 0; text-align: left;
}
.progress-bar {
  height: 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; position: relative;
}
.progress-fill {
  position: absolute; inset: 0; width: 0%;
  border-radius: inherit;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #8E1AD6, var(--accent) 55%, #CB7BFF);
}
/* "corrupted data" blocks (progress fill, marquees), reshuffled by JS */
.glitch-noise { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; z-index: 0; }
.glitch-noise i { position: absolute; display: block; }

/* glitchy progress bar: cyan/pink ghost copies + torn slices, now and then */
.progress-fill::before, .progress-fill::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; mix-blend-mode: screen; pointer-events: none;
}
.progress-fill::before { background: var(--cyan); }
.progress-fill::after { background: var(--pink); }
.progress-bar.is-glitching .progress-fill { animation: bar-tear .4s steps(1) 1; }
.progress-bar.is-glitching .progress-fill::before { animation: bar-ghost-a .4s steps(1) 1; }
.progress-bar.is-glitching .progress-fill::after { animation: bar-ghost-b .4s steps(1) 1; }
@keyframes bar-tear {
  0%   { clip-path: inset(0 0 55% 0); transform: translateX(-7px); }
  20%  { clip-path: inset(45% 0 0 0); transform: translateX(9px); }
  40%  { clip-path: inset(0 10% 35% 0); transform: translateX(-4px); }
  60%  { clip-path: inset(60% 0 0 0); transform: translateX(6px); }
  80%  { clip-path: none; transform: translateX(-2px); }
  100% { clip-path: none; transform: none; }
}
@keyframes bar-ghost-a {
  0%   { opacity: .75; transform: translateX(-12px); clip-path: inset(0 0 60% 0); }
  25%  { opacity: .55; transform: translateX(7px); clip-path: inset(50% 0 0 0); }
  50%  { opacity: 0; }
  75%  { opacity: .65; transform: translateX(-5px); clip-path: inset(20% 0 40% 0); }
  100% { opacity: 0; }
}
@keyframes bar-ghost-b {
  0%   { opacity: .7; transform: translateX(12px); clip-path: inset(40% 0 0 0); }
  25%  { opacity: 0; }
  50%  { opacity: .6; transform: translateX(-8px); clip-path: inset(0 0 50% 0); }
  75%  { opacity: .5; transform: translateX(5px); clip-path: inset(55% 0 10% 0); }
  100% { opacity: 0; }
}
/* broken pixels flickering just past the end of the fill */
.progress-pixels { position: absolute; top: 0; bottom: 0; left: 100%; width: 34px; pointer-events: none; }
.progress-pixels i {
  position: absolute; width: 5px; height: 5px; border-radius: 1px; background: var(--c);
  animation: px-flicker var(--t, .9s) steps(1) infinite; animation-delay: var(--dl, 0s);
}
@keyframes px-flicker { 0% { opacity: 1; } 30% { opacity: 0; } 55% { opacity: .8; } 70% { opacity: 0; } 85% { opacity: 1; } }
.progress-meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; color: var(--dim); font-family: var(--font-display); }
.progress-meta .milestone.reached { color: var(--accent); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 72px; }
.stat {
  padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .4s var(--ease-bounce), border-color .3s;
}
.stat:hover { transform: translateY(-6px) rotate(-1deg); border-color: rgba(181,44,255,.4); }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--muted); font-size: 15px; margin-top: 4px; }
.stat:nth-child(1) .num { color: var(--accent); }
.stat:nth-child(2) .num { color: var(--cyan); }
.stat:nth-child(3) .num { color: var(--pink); }
.stat:nth-child(4) .num { color: var(--green); }

/* ---------- section heads ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head .lead { margin-top: 18px; }

/* ---------- what we do cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  position: relative; overflow: hidden;
  padding: 36px 30px 32px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .5s var(--ease-bounce), border-color .3s;
}
.feature:hover { transform: translateY(-8px); border-color: var(--c, var(--accent)); }
.feature .icon {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  background: var(--c, var(--accent)); color: var(--bg); margin-bottom: 28px;
  transition: transform .5s var(--ease-bounce);
}
.feature:hover .icon { transform: rotate(-10deg) scale(1.08); }
.feature .icon svg { width: 30px; height: 30px; }
.feature h3 { font-size: 24px; margin-bottom: 12px; }
.feature p { color: var(--muted); margin: 0; }
.feature .num-bg {
  position: absolute; right: 18px; top: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: 90px; line-height: 1;
  color: rgba(255,255,255,.035);
}

/* ---------- game cards ---------- */
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.game-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out), border-color .3s, box-shadow .5s;
  will-change: transform;
}
.game-card:hover { border-color: rgba(255,255,255,.22); box-shadow: 0 30px 70px -30px var(--glow, rgba(181,44,255,.5)); }
.game-cover {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.game-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.game-card:hover .game-cover img { transform: scale(1.06); }
.game-cover .art { position: absolute; inset: 0; transition: transform .7s var(--ease-out); }
.game-card:hover .game-cover .art { transform: scale(1.08) rotate(-2deg); }
.game-cover .art i { position: absolute; display: block; border-radius: 28%; background: rgba(255,255,255,.18); }
.game-cover .art i:nth-child(1) { width: 46%; aspect-ratio: 1; right: -8%; top: -14%; transform: rotate(18deg); background: rgba(255,255,255,.14); }
.game-cover .art i:nth-child(2) { width: 22%; aspect-ratio: 1; left: 8%; bottom: 12%; transform: rotate(-14deg); background: rgba(0,0,0,.18); }
.game-cover .art i:nth-child(3) { width: 12%; aspect-ratio: 1; left: 42%; top: 18%; border-radius: 50%; background: rgba(255,255,255,.3); }
.game-cover .art i:nth-child(4) { width: 70%; aspect-ratio: 1; left: -22%; top: 55%; border-radius: 50%; background: transparent; border: 14px solid rgba(255,255,255,.1); }
.game-cover .title-art {
  position: absolute; left: 22px; right: 22px; bottom: 18px;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 2.6vw, 34px); line-height: .95;
  letter-spacing: -.04em; text-transform: uppercase; color: #fff;
  text-shadow: 3px 3px 0 rgba(0,0,0,.25);
}
.game-cover .players-pill {
  position: absolute; top: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(10,10,18,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 600;
}
.players-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(181,44,255,.6); } 70% { box-shadow: 0 0 0 10px rgba(181,44,255,0); } 100% { box-shadow: 0 0 0 0 rgba(181,44,255,0); } }
.game-card { display: flex; flex-direction: column; }
.game-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
/* badge + island code sit together at the bottom of every card */
.game-body .tags { margin-top: auto; margin-bottom: 14px; }
.game-body .tags + .code-btn { margin-top: 0; }
.game-body .code-btn { margin-top: auto; }
.game-body h3 { font-size: 21px; margin-bottom: 8px; }
.game-body p { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tag { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); }
/* highlight label under the game title (licensed IP / award) */
.ip-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(182,255,59,.12); color: var(--green);
  border: 1px solid rgba(182,255,59,.3);
  font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: -.01em;
}
.ip-badge.award { background: rgba(181,44,255,.14); color: var(--accent-light); border-color: rgba(181,44,255,.4); }
.ip-badge .star { font-size: 12px; }
.tag-peak { background: rgba(181,44,255,.14); color: var(--accent-light); }
.code-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px 12px 16px; border-radius: 14px;
  background: var(--bg); border: 1px dashed rgba(255,255,255,.18);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.code-btn:hover { border-color: var(--accent); background: rgba(181,44,255,.06); }
.code-btn .label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); display: block; }
.code-btn .code { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.code-btn .copy { font-size: 13px; font-weight: 600; color: var(--accent); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: all .25s var(--ease-out);
}
.chip:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.chip.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: rotate(-2deg); }
.game-card.is-hidden { display: none; }
.game-card.pop { animation: pop .6s var(--ease-bounce) both; }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- parallax band ---------- */
.parallax-band {
  position: relative; overflow: hidden;
  padding: clamp(100px, 16vw, 200px) 0;
}
.parallax-band .huge {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(70px, 15vw, 220px); line-height: .9; letter-spacing: -.05em;
  white-space: nowrap; will-change: transform;
  text-transform: uppercase;
}
.parallax-band .huge.outline { color: rgba(255,255,255,.07); }
.parallax-band .huge.fill { color: var(--text); }
.parallax-band .huge .hl { color: var(--accent); -webkit-text-stroke: 0; }

/* ---------- CTA panel ---------- */
.cta-panel {
  position: relative; overflow: hidden;
  border-radius: 44px;
  padding: clamp(48px, 8vw, 100px) clamp(28px, 6vw, 80px);
  background: var(--accent); color: var(--on-accent);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center;
}
.cta-panel h2 { font-size: clamp(36px, 5.6vw, 72px); letter-spacing: -.04em; }
.cta-panel p { font-size: 19px; max-width: 520px; margin: 20px 0 0; opacity: .8; }
.cta-panel .btn { --btn-bg: var(--bg); --btn-fg: var(--text); }
.cta-panel .mascot { width: 100%; max-width: 280px; justify-self: center; color: var(--bg); }
.cta-panel .mascot .eye { fill: var(--bg); }
.cta-panel.pink { background: var(--pink); color: var(--text); }
.cta-panel.pink .btn { --btn-bg: var(--text); --btn-fg: var(--bg); box-shadow: 4px 4px 0 0 var(--bg); }
.cta-panel.pink .mascot { color: var(--text); }
.cta-panel.pink .mascot .eye { fill: var(--text); }
.cta-panel .deco { position: absolute; border-radius: 30%; background: rgba(0,0,0,.07); pointer-events: none; }

/* ---------- mascot ---------- */
.mascot { color: var(--accent); overflow: visible; }
.mascot .body { fill: currentColor; }
.mascot .eye { fill: currentColor; transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
.mascot .eyes { transition: transform .15s linear; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.mascot-wrap { cursor: pointer; transition: transform .5s var(--ease-bounce); }
.mascot-wrap:active { transform: scale(.94) rotate(-4deg); }

/* ---------- logos strip ---------- */
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.logo-slot {
  min-width: 160px; flex: 1 1 160px; max-width: 220px; height: 84px;
  display: grid; place-items: center; border-radius: 18px;
  border: 1px dashed rgba(255,255,255,.14); color: var(--dim);
  font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .1em;
}

/* ---------- brand page ---------- */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service {
  display: flex; gap: 22px; padding: 32px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .5s var(--ease-bounce), border-color .3s;
}
.service:hover { transform: translateY(-6px); border-color: var(--c); }
.service .icon { flex-shrink: 0; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--c); color: var(--bg); }
.service .icon svg { width: 26px; height: 26px; }
.service h3 { font-size: 21px; margin-bottom: 8px; }
.service p { color: var(--muted); margin: 0; font-size: 16px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step { position: relative; padding-top: 80px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--accent);
}
.step::after {
  content: ""; position: absolute; top: 29px; left: 74px; right: -4px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 8px, transparent 8px 16px);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; }
.check-list li::before {
  content: ""; flex-shrink: 0; width: 24px; height: 24px; margin-top: 2px; border-radius: 8px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.metric-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.metric-stack .stat { min-width: 0; }
.metric-stack .num { white-space: nowrap; }
.metric-stack .stat:nth-child(2) { transform: translateY(40px); }
.metric-stack .stat:nth-child(4) { transform: translateY(40px); }
.metric-stack .stat:nth-child(2):hover, .metric-stack .stat:nth-child(4):hover { transform: translateY(34px) rotate(-1deg); }

/* ---------- forms ---------- */
.form-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.form-card {
  padding: clamp(26px, 4vw, 44px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 16px; border-radius: 14px;
  background: var(--bg); border: 1.5px solid var(--line);
  outline: none; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A1A1B8' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field select option { background: var(--bg); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(181,44,255,.12); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row input { position: absolute; opacity: 0; pointer-events: none; }
.choice-row label {
  padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg);
  font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .2s var(--ease-out);
}
.choice-row label:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.choice-row input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.choice-row input:focus-visible + label { box-shadow: 0 0 0 4px rgba(181,44,255,.25); }
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 28px 20px; text-align: center; border-radius: 16px;
  border: 2px dashed rgba(255,255,255,.16); background: var(--bg);
  color: var(--muted); font-size: 15px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: rgba(181,44,255,.05); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone b { color: var(--text); }
.dropzone .files { font-size: 13px; color: var(--accent); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.form-foot small { color: var(--dim); font-size: 13px; max-width: 340px; }
.form-status {
  display: none; margin-top: 20px; padding: 16px 18px; border-radius: 14px;
  background: rgba(181,44,255,.1); border: 1px solid rgba(181,44,255,.35); color: var(--accent); font-weight: 600;
}
.form-status.show { display: block; animation: pop .5s var(--ease-bounce); }
.form-status.error { background: rgba(255,61,139,.1); border-color: rgba(255,61,139,.4); color: var(--pink); }
.contact-alt { margin-top: 36px; display: grid; gap: 14px; }
.contact-alt a, .contact-alt div {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .3s var(--ease-bounce);
}
.contact-alt a:hover { border-color: var(--accent); transform: translateX(6px); }
.contact-alt .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); flex-shrink: 0; }
.contact-alt .ic svg { width: 20px; height: 20px; }
.contact-alt small { display: block; color: var(--dim); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.big-quote { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -.03em; }
.big-quote .hl { color: var(--accent); }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.value {
  padding: 34px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: transform .5s var(--ease-bounce);
}
.value:hover { transform: rotate(-1.2deg) translateY(-6px); }
.value .emoji { font-size: 40px; line-height: 1; margin-bottom: 22px; display: inline-block; transition: transform .5s var(--ease-bounce); }
.value:hover .emoji { transform: scale(1.25) rotate(-12deg); }
.value h3 { font-size: 24px; margin-bottom: 10px; }
.value p { color: var(--muted); margin: 0; }
.value::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 30%; background: var(--c); opacity: .12; transform: rotate(20deg); }

.timeline { position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--accent), var(--cyan), var(--pink)); opacity: .5; }
.tl-item { position: relative; padding: 0 0 54px 86px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item .dot {
  position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--c, var(--accent));
}
.tl-item h3 { font-size: 24px; margin: 12px 0 8px; }
.tl-item p { color: var(--muted); margin: 0; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member { perspective: 1000px; cursor: pointer; }
.member-inner {
  position: relative; aspect-ratio: 3 / 4;
  transform-style: preserve-3d;
  transition: transform .8s var(--ease-out);
}
.member:hover .member-inner, .member.flipped .member-inner { transform: rotateY(180deg); }
.member-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
}
.member-front { background: var(--surface); }
.member-front .avatar {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--c) 35%, transparent), transparent 65%);
}
.member-front .avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-front .avatar .mascot { width: 48%; color: var(--c); margin-top: -30%; }
.member-front .meta { position: relative; }
.member-front h3 { font-size: 19px; }
.member-front .role { color: var(--c); font-size: 14px; font-weight: 600; margin-top: 4px; }
.member-back { background: var(--c); color: var(--bg); transform: rotateY(180deg); justify-content: space-between; }
.member-back .q { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.member-back p { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.2; letter-spacing: -.02em; margin: 0; }
.member-back small { font-weight: 700; font-size: 13px; opacity: .7; }
.join-card .member-front {
  border: 2px dashed rgba(255,255,255,.2); background: transparent; justify-content: center; align-items: center; text-align: center; gap: 12px;
  transition: border-color .3s, background .3s;
}
.join-card:hover .member-inner { transform: none; }
.join-card:hover .member-front { border-color: var(--accent); background: rgba(181,44,255,.05); }
.join-card .plus { width: 64px; height: 64px; border-radius: 20px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 34px; font-weight: 800; transition: transform .5s var(--ease-bounce); }
.join-card:hover .plus { transform: rotate(90deg); }

/* ---------- careers ---------- */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perk { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.perk .emoji { font-size: 30px; margin-bottom: 14px; }
.perk h3 { font-size: 18px; margin-bottom: 6px; }
.perk p { margin: 0; color: var(--muted); font-size: 15px; }
/* ---------- brand lab (logo mockup) ---------- */
#brand-lab { --brand: #B52CFF; }
.lab { display: grid; grid-template-columns: 1.55fr .75fr; gap: 20px; align-items: start; }
.lab-stage {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: #140630;
  box-shadow: 0 40px 100px -40px var(--brand);
  transition: box-shadow .6s;
}
.lab-scene { width: 100%; height: auto; display: block; }
.lab-scene [style*="--brand"] { transition: fill .6s; }
.lab-tag {
  position: absolute; top: 16px; left: 16px;
  padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(10,10,18,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lab-blimp { animation: lab-float 6s ease-in-out infinite; }
.lab-cloud.c1 { animation: lab-drift 18s ease-in-out infinite alternate; }
.lab-cloud.c2 { animation: lab-drift 22s ease-in-out infinite alternate-reverse; }
.lab-island { animation: lab-float 7s ease-in-out infinite; animation-delay: -2s; }
.lab-player { animation: lab-hop 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
.lab-player.p2 { animation-delay: -.4s; } .lab-player.p3 { animation-delay: -.8s; } .lab-player.p4 { animation-delay: -1.1s; }
.lab-sparkles { animation: lab-twinkle 2.4s ease-in-out infinite; }
@keyframes lab-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes lab-drift { to { transform: translateX(60px); } }
@keyframes lab-hop { 0%, 60%, 100% { transform: translateY(0) scaleY(1); } 30% { transform: translateY(-14px) scaleY(1.05); } }
@keyframes lab-twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .3; } }
.lab-pop .lab-scene .brand-logo { animation: lab-logo-pop .7s var(--ease-bounce); transform-box: fill-box; transform-origin: center; }
@keyframes lab-logo-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.lab-side { display: grid; gap: 16px; }
.lab-controls { padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 16px; }
.lab-drop { padding: 24px 16px; }
.lab-color-row { display: flex; align-items: center; gap: 12px; }
.lab-color-row input[type=color] {
  width: 52px; height: 44px; padding: 4px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer;
}
.lab-color-row .muted { font-size: 13px; }
.lab-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lab-privacy { font-size: 12.5px; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.lab-tile { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.lab-tile-img {
  aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 18px;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 50%), linear-gradient(135deg, var(--brand), #140630);
  transition: background .6s;
}
.lab-tile-img img { max-width: 70%; max-height: 80%; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0,0,0,.35)); background: #fff; padding: 10px 14px; border-radius: 14px; }
.lab-tile-body { padding: 14px 16px; display: grid; gap: 2px; }
.lab-tile-title { font-family: var(--font-display); font-size: 15px; }
.lab-tile-body span { color: var(--dim); font-size: 13px; }
@media (max-width: 920px) { .lab { grid-template-columns: 1fr; } }

/* ---------- blog article ---------- */
.article-hero { padding-bottom: clamp(40px, 6vw, 70px); }
.article-head { max-width: 900px; }
.back-link { display: block; width: fit-content; margin-bottom: 26px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.back-link:hover { color: var(--text); }
.article-title { font-size: clamp(34px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -.035em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; color: var(--dim); font-size: 15px; }
.article-body { max-width: 720px; margin: 0 auto; padding-bottom: clamp(60px, 9vw, 110px); font-size: 19px; line-height: 1.75; color: #D6D6E4; }
.article-body p { margin: 0 0 1.3em; }
.article-lead { font-size: 22px; line-height: 1.6; color: var(--text); }
.article-big { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; letter-spacing: -.02em; color: var(--text); margin: 1.6em 0 !important; }
.article-quote {
  margin: 1.4em 0 1.6em; padding: 34px 36px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(181,44,255,.22), rgba(255,61,139,.12)); border: 1px solid rgba(181,44,255,.35);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.2; letter-spacing: -.03em; color: var(--text);
}
.article-cover { max-width: 1040px; margin: 0 auto clamp(40px, 6vw, 70px); }
.article-cover img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: 0 40px 100px -50px rgba(181,44,255,.6); }
.article-gallery { margin: 2em -60px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.article-gallery img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.article-gallery img.wide { grid-column: 1 / -1; }
.article-gallery figcaption { grid-column: 1 / -1; margin-top: 4px; font-size: 14px; color: var(--dim); line-height: 1.5; padding: 0 60px; }
.article-gallery figcaption a { color: var(--accent-light); }
@media (max-width: 860px) { .article-gallery { margin-left: 0; margin-right: 0; } .article-gallery figcaption { padding: 0; } }
.article-figure { margin: 2em 0; }
.article-figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); transition: transform .5s var(--ease-out); }
.article-figure a:hover img { transform: scale(1.015); }
.article-figure figcaption { margin-top: 12px; font-size: 14px; color: var(--dim); }
.article-stat {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; text-align: center;
  margin: 1.8em 0; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
}
.article-stat .n { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 52px); letter-spacing: -.04em; line-height: 1; color: var(--text); }
.article-stat .n small { font-size: .4em; margin-left: 4px; letter-spacing: 0; }
.article-stat .n.hl { color: var(--green); }
.article-stat .l { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.article-stat .vs { font-family: var(--font-display); color: var(--dim); font-size: 14px; }
.article-ending { margin-top: 2em; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; letter-spacing: -.035em; color: var(--text); }
.article-ending p { margin: 0 0 .2em; }
.article-ending .hl { color: var(--accent-light); }
@media (max-width: 620px) {
  .article-body { font-size: 17px; }
  .article-lead { font-size: 19px; }
  .article-quote { padding: 24px; }
  .article-stat { grid-template-columns: 1fr; }
}

/* blog card on brands page */
.blog-card {
  display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s, transform .5s var(--ease-out);
}
.blog-card:hover { border-color: rgba(181,44,255,.5); transform: translateY(-4px); }
.blog-card-img { position: relative; min-height: 280px; overflow: hidden; }
.blog-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.blog-card-body .meta { color: var(--dim); font-size: 14px; }
.blog-card-body h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; }
.blog-card-body p { margin: 0; color: var(--muted); }
.blog-card-body .read { margin-top: 6px; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--accent-light); }
@media (max-width: 920px) { .blog-card { grid-template-columns: 1fr; } .blog-card-img { min-height: 0; aspect-ratio: 16 / 9; } }

.pro-review {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 28px; padding: 22px 24px; border-radius: var(--radius);
  background: rgba(182,255,59,.08); border: 1px solid rgba(182,255,59,.3);
}
.pro-review .emoji { font-size: 30px; line-height: 1; }
.pro-review b { font-family: var(--font-display); font-size: 17px; color: var(--green); letter-spacing: -.01em; }
.pro-review p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.jobs { display: grid; gap: 12px; }
.job { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s; }
.job.open { border-color: rgba(181,44,255,.45); }
.job-head {
  width: 100%; display: flex; align-items: center; gap: 20px; padding: 24px 26px;
  background: none; border: 0; text-align: left; cursor: pointer;
}
.job-head h3 { font-size: clamp(18px, 2vw, 22px); }
.job-head .meta { color: var(--muted); font-size: 14px; margin-top: 4px; }
.job-head .dept { margin-left: auto; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); white-space: nowrap; }
.job-head .tog { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; transition: transform .4s var(--ease-bounce), background .2s; font-size: 22px; font-weight: 600; }
.job.open .tog { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); }
.job-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.job.open .job-body { grid-template-rows: 1fr; }
.job-body > div { overflow: hidden; }
.job-body .inner { padding: 0 26px 26px; color: var(--muted); }
.job-body ul { padding-left: 20px; margin: 14px 0 20px; }
.job-body li { margin-bottom: 6px; }

/* ---------- footer ---------- */
.site-footer { padding: 90px 0 36px; border-top: 1px solid var(--line); margin-top: 40px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-top .footer-logo { width: 100%; max-width: 300px; height: auto; margin-bottom: 26px; }
.footer-top p { color: var(--muted); font-size: 15px; max-width: 320px; margin: 0; }
.footer-top h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; font-weight: 600; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-top ul a { display: inline-block; padding: 4px 8px; margin: -4px -8px; border-radius: 10px; color: var(--muted); transition: color .2s; }
.footer-top ul a:hover { color: var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.socials a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  transition: all .3s var(--ease-bounce);
}
.socials a:hover { color: var(--on-accent); background: var(--accent); border-color: var(--accent); transform: translateY(-4px) rotate(-6deg); }
.socials svg { width: 18px; height: 18px; }
/* big GLITCH wordmark from the logo */
.footer-word { position: relative; margin: 70px 0 34px; user-select: none; }
.footer-word img { width: 100%; height: auto; opacity: .06; transition: opacity .5s; }
.footer-word img.on { position: absolute; inset: 0; opacity: 0; }
.footer-word:hover img { opacity: 0; }
.footer-word:hover img.on { opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--dim); font-size: 13px; padding-top: 26px; border-top: 1px solid var(--line); }

/* ---------- side patterns (built by JS in the empty strips beside the content) ---------- */
/* z-index -1 inside <main>: paints behind every section, card, band and text of the page */
.side-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.deco { position: absolute; }
.deco i { position: absolute; display: block; }
.deco-pixels { opacity: .6; }
.deco-pixels i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.deco-bars { opacity: .42; }
.deco-bars i { border-radius: 1px; }
.deco-dots { background: radial-gradient(circle, rgba(255,255,255,.16) 1.6px, transparent 2px) 0 0 / 14px 14px; }
.deco-plus { opacity: .55; }
.deco-plus i { width: 14px; height: 14px; }
.deco-plus i::before, .deco-plus i::after { content: ""; position: absolute; background: var(--c); border-radius: 1px; }
.deco-plus i::before { left: 6px; top: 0; width: 2px; height: 14px; }
.deco-plus i::after { top: 6px; left: 0; height: 2px; width: 14px; }
.deco-circuit { opacity: .5; }
.deco-circuit::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--c), transparent); }
.deco-circuit i { left: 2px; width: 8px; height: 8px; border: 2px solid var(--c); border-radius: 2px; background: var(--bg); }
.deco-circuit i.end { background: var(--c); }
.deco-text {
  writing-mode: vertical-rl; font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 11px; letter-spacing: .14em; color: var(--dim); opacity: .55; white-space: nowrap; text-transform: uppercase;
}

/* spam trap field for Netlify forms: hidden from people, bots fill it in */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200;
  transform: translate(-50%, 140%);
  padding: 14px 22px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 15px;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  transition: transform .5s var(--ease-bounce);
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-pop { opacity: 0; transform: scale(.85) rotate(-3deg); transition: opacity .7s var(--ease-out), transform .8s var(--ease-bounce); transition-delay: var(--d, 0s); }
.reveal-pop.in { opacity: 1; transform: none; }

/* split-line headline */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 60ms + 100ms); }
.split-words.in .w > span { transform: none; }

/* cursor blob */
.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 4px;
  background: var(--pink);
  transition: width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out), border-radius .3s, opacity .3s;
  opacity: 0;
}
.cursor-dot.on { opacity: 1; }
.cursor-dot.on.hide { opacity: 0; }

/* pink square + green text that follows the mouse inside links & buttons */
.spot {
  position: absolute; inset: 0; z-index: 2;
  box-sizing: border-box;
  border-radius: inherit;
  background: var(--pink); color: var(--green);
  pointer-events: none;
  clip-path: inset(calc(var(--my, 50%) - 27px) calc(100% - var(--mx, 50%) - 27px) calc(100% - var(--my, 50%) - 27px) calc(var(--mx, 50%) - 27px) round 16px);
  opacity: 0;
  transition: opacity .2s;
}
.has-spot:hover > .spot { opacity: 1; }
.spot, .spot * { color: var(--green) !important; }/* over cards and other clickable areas: pink outline square */
.cursor-dot.big { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 16px; background: transparent; border: 2.5px solid var(--pink); }
@media (hover: none) { .cursor-dot { display: none; } }

/* clickable floating shapes + their shatter pieces */
html.on-shape, html.on-shape * { cursor: pointer !important; }
html.on-shape .cursor-dot { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 16px; background: transparent; border: 2.5px solid var(--pink); }
.shard { position: absolute; left: 0; top: 0; overflow: hidden; pointer-events: none; will-change: transform; }
.shard > * { animation: none !important; margin: 0; }
.shard-wrap { position: absolute; left: 0; top: 0; pointer-events: none; }
.shard.ghost, .glitch-ghost { mix-blend-mode: screen; pointer-events: none; }
.glitch-ghost { position: fixed; z-index: 249; }
.glitch-ghost > * { animation: none !important; margin: 0; }
.glitch-bar { position: fixed; z-index: 251; pointer-events: none; mix-blend-mode: screen; }
.glitch-twitch > .container { animation: glitch-twitch .3s steps(1) 1; }
@keyframes glitch-twitch {
  0%   { transform: translate(4px, 0); filter: drop-shadow(-3px 0 var(--cyan)) drop-shadow(3px 0 var(--pink)); }
  25%  { transform: translate(-5px, 1px); filter: drop-shadow(3px 0 var(--cyan)) drop-shadow(-3px 0 var(--pink)); }
  50%  { transform: translate(2px, -1px); filter: none; }
  75%  { transform: translate(-2px, 0); filter: drop-shadow(-2px 0 var(--cyan)) drop-shadow(2px 0 var(--pink)); }
  100% { transform: none; filter: none; }
}
.shard-pixel { position: fixed; z-index: 250; pointer-events: none; border-radius: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .step:nth-child(2)::after { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 1180px) {
  .nav-links a { padding: 10px 10px; font-size: 14px; }
}
@media (max-width: 1060px) {
  .nav-links, .nav-cta .btn { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mascot { width: min(70%, 320px); order: -1; justify-self: start; margin-top: 10px; }
  .hero-mascot .badge.b1 { left: auto; right: -40%; top: 10%; }
  .hero-mascot .badge.b2 { right: -55%; bottom: 30%; }
  .hero-mascot .badge.b3 { display: none; }
  .games-grid, .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .service-grid, .values { grid-template-columns: 1fr; }
  .cta-panel { grid-template-columns: 1fr; }
  .cta-panel .mascot { max-width: 160px; justify-self: start; order: -1; }
  .why-list, .split, .form-wrap { grid-template-columns: 1fr; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .games-grid, .cards-3, .perks { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 22px 18px; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .metric-stack .stat:nth-child(2), .metric-stack .stat:nth-child(4) { transform: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .job-head .dept { display: none; }
  .team-grid { gap: 12px; }
  .member-face { padding: 16px; }
  .member-front h3 { font-size: 16px; }
  .member-back p { font-size: 15px; }
  .hero-mascot .badge { font-size: 11px; padding: 8px 12px; }
  .hero-mascot .badge.b1 { right: -62%; }
  .hero-mascot .badge.b2 { right: -78%; }
  .scroll-hint { display: none; }
  .eyebrow { font-size: 13px; letter-spacing: .12em; flex-wrap: wrap; }
  .hero-mascot { width: 180px; }
  .page-hero .floaters { opacity: .35; }
  .member-front .avatar .mascot { width: 40%; margin-top: -45%; }
}

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

/* phones & tablets only: the top of the page is there right away instead of sliding in
   (the glitch flicker still plays on it) */
@media (hover: none) and (pointer: coarse) {
  .hero .reveal, .page-hero .reveal, .hero .reveal-pop, .page-hero .reveal-pop { opacity: 1; transform: none; transition: none; }
  .hero .split-words .w > span, .page-hero .split-words .w > span { transform: none; transition: none; }
  .floaters { display: none; } /* no floating / smashable shapes on phones */
  /* heavy blur effects are slow on phones (iPhone Safari especially): use cheap look-alikes */
  .glow { filter: none; opacity: .5; -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }
  .site-header.scrolled { background: rgba(10, 10, 18, .94); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .game-cover .players-pill, .lab-tag { background: rgba(10, 10, 18, .82); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .players-pill .dot { animation: none; }
  /* the big text band slides on its own instead of following the scroll */
  .parallax-band .huge { animation: band-slide 16s ease-in-out infinite alternate; }
  .parallax-band .huge.fill { animation-direction: alternate-reverse; }
  .parallax-band .huge:nth-child(3) { animation-duration: 20s; }
}

/* white text/icons on purple accent surfaces */
[style*="--c:var(--accent)"] .icon,
[style*="--c:#B52CFF"] .member-back { color: var(--on-accent); }

/* home: studio text + FAQ */
.studio-split { align-items: start; }
.studio-text p { color: var(--muted); font-size: 17px; line-height: 1.75; margin: 0 0 18px; }
.studio-text p:last-child { margin-bottom: 0; }
.studio-text b { color: var(--text); font-weight: 600; }
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 26px; transition: border-color .3s; }
.faq details[open] { border-color: rgba(181, 44, 255, .45); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 36px 22px 0; position: relative; font-family: var(--font-display); font-weight: 600; font-size: clamp(16px, 1.6vw, 19px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--accent-light); transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); line-height: 1.7; margin: 0 0 22px; }
.faq details a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }

/* cookie banner */
.cookie-banner { position: fixed; left: 24px; bottom: 24px; z-index: 400; max-width: 420px; padding: 20px 22px; background: var(--surface); border: 1px solid rgba(181, 44, 255, .4); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); transform: translateY(calc(100% + 40px)); opacity: 0; visibility: hidden; transition: transform .5s var(--ease-out), opacity .3s, visibility 0s .5s; }
.cookie-banner.show { transform: none; opacity: 1; visibility: visible; transition: transform .5s var(--ease-out), opacity .3s; }
.cookie-banner p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.cookie-banner p b { color: var(--text); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-link { background: none; border: 0; padding: 0; margin-left: 10px; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cookie-link:hover { color: var(--text); }
@media (max-width: 620px) { .cookie-banner { left: 16px; right: 16px; bottom: 16px; max-width: none; } }

/* nothing may stick out sideways (the tilted marquee is wider than the screen on purpose) */
main { overflow-x: clip; }

@keyframes band-slide { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-55%, 0, 0); } }
