:root {
  --bg: #07060f;
  --bg-2: #0d0b1c;
  --panel: rgba(22, 18, 48, 0.55);
  --line: rgba(160, 140, 255, 0.16);
  --text: #ecebff;
  --muted: #a3a0c8;
  --violet: #8b5cf6;
  --magenta: #d946ef;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --live: #ff3b6b;
  --grad: linear-gradient(100deg, #c084fc 0%, #818cf8 45%, #22d3ee 100%);
  --radius: 18px;
  --display: "Orbitron", system-ui, sans-serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(1200px 700px at 80% -10%, rgba(139, 92, 246, 0.22), transparent 60%),
              radial-gradient(900px 600px at -10% 30%, rgba(34, 211, 238, 0.10), transparent 60%),
              var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--mono); }
.dim { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .7; }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .025;
  background-image: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 3px);
}

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 48px);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7, 6, 15, 0.72); backdrop-filter: blur(14px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; letter-spacing: .12em; font-size: 14px; }
.brand img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(139, 92, 246, .6)); }
.brand em { font-style: normal; color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 24px; margin: 6px auto; background: var(--text); transition: transform .3s; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; color: #fff;
  background: linear-gradient(100deg, var(--violet), var(--blue) 60%, var(--cyan));
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 10px 40px -10px rgba(139, 92, 246, .8);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset, 0 14px 50px -8px rgba(34, 211, 238, .7); }
.btn-sm { padding: 9px 18px; font-size: 14px; color: #fff !important; }
.btn-lg { padding: 18px 32px; font-size: clamp(15px, 2.4vw, 19px); font-family: var(--mono); }
.btn-ghost { background: transparent; box-shadow: 0 0 0 1px var(--line) inset; }
.btn-ghost:hover { box-shadow: 0 0 0 1px rgba(34, 211, 238, .6) inset; }

/* HERO */
.hero {
  min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px);
  align-items: center; padding: 120px clamp(16px, 5vw, 72px) 60px; max-width: 1400px; margin: 0 auto;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.02); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255,59,107,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,59,107,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,107,0); } }
h1 { font-family: var(--display); font-weight: 900; font-size: clamp(38px, 6.2vw, 84px); line-height: 1.02; letter-spacing: -.01em; margin: 24px 0; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0 28px; }
.hero-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags li { font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 6px 12px; border-radius: 8px; border: 1px dashed var(--line); }

/* SCREEN MOCK */
.hero-visual { perspective: 1400px; min-width: 0; }
.hero-copy { min-width: 0; }
.screen {
  border-radius: 20px; padding: 14px; background: linear-gradient(160deg, rgba(30, 22, 70, .85), rgba(10, 9, 26, .9));
  border: 1px solid rgba(160, 140, 255, .28);
  box-shadow: 0 40px 120px -30px rgba(139, 92, 246, .55), 0 0 0 1px rgba(34, 211, 238, .08), inset 0 1px 0 rgba(255,255,255,.06);
  transform: rotateY(-10deg) rotateX(5deg); transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.hero-visual:hover .screen { transform: rotateY(0) rotateX(0); }
.screen-bar { display: flex; align-items: center; gap: 12px; padding: 4px 6px 12px; font-size: 12px; }
.screen-title { font-family: var(--display); letter-spacing: .14em; font-size: 11px; color: var(--muted); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen-clock { color: var(--cyan); }
.badge-live { font-family: var(--mono); font-size: 11px; font-weight: 600; background: var(--live); color: #fff; padding: 3px 8px; border-radius: 5px; letter-spacing: .08em; animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .65; } }
.screen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; }
.panel-h { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 8px; }
.panel-h .up { color: #4ade80; }
.panel-chart { grid-column: span 2; }
.panel-chart svg { width: 100%; height: 110px; display: block; }
.panel-bars { grid-row: span 1; }
.bars { list-style: none; display: grid; gap: 7px; }
.bars li { font-size: 10px; color: var(--muted); }
.bars .track { height: 6px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; margin-top: 3px; }
.bars .fill { height: 100%; border-radius: 4px; background: var(--grad); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.panel-stat { text-align: left; }
.stat-k { font-size: 11px; color: var(--muted); }
.stat-v { font-size: clamp(18px, 2.2vw, 26px); font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ticker { margin-top: 10px; overflow: hidden; min-width: 0; max-width: 100%; border-radius: 10px; background: rgba(139, 92, 246, .12); border: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: inline-flex; gap: 40px; white-space: nowrap; padding: 9px 0; font-family: var(--mono); font-size: 12px; animation: tick 40s linear infinite; }
.ticker-track span b { color: var(--cyan); font-weight: 600; margin-right: 6px; }
@keyframes tick { to { transform: translateX(-50%); } }
.demo-note { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; opacity: .7; }

/* SECTIONS */
.section { max-width: 1240px; margin: 0 auto; padding: clamp(72px, 10vw, 130px) clamp(16px, 5vw, 48px); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
.kicker::before { content: "// "; color: var(--violet); }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4.2vw, 52px); line-height: 1.1; }
.sub { color: var(--muted); font-size: 18px; margin-top: 18px; }
h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  overflow: hidden; transition: transform .3s, border-color .3s;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, .18), transparent 40%);
}
.card:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, .45); }
.card:hover::after { opacity: 1; }
.card p { color: var(--muted); font-size: 15px; }
.ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, .25), rgba(34, 211, 238, .15)); border: 1px solid var(--line); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* PIPELINE */
.pipeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.pipeline::before {
  content: ""; position: absolute; top: 34px; left: 6%; right: 6%; height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--violet)); background-size: 200% 100%;
  animation: flow 4s linear infinite; opacity: .6;
}
@keyframes flow { to { background-position: -200% 0; } }
.stage { position: relative; padding: 24px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.num { display: inline-grid; place-items: center; width: 22px; height: 22px; font-size: 13px; color: var(--cyan); margin-bottom: 18px;
  background: var(--bg-2); box-shadow: 0 0 0 8px var(--bg-2); }
.stage p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.stage code { font-size: 12px; color: #c4b5fd; background: rgba(139, 92, 246, .12); padding: 4px 8px; border-radius: 6px; }

/* WORK */
.work { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.project { border-radius: 22px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: transform .3s, border-color .3s; }
.project:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, .4); }
.project-art { position: relative; height: 230px; padding: 18px; overflow: hidden; }
.art-wdw { background: radial-gradient(circle at 80% 20%, rgba(217, 70, 239, .45), transparent 55%), linear-gradient(160deg, #1e1048, #0b0a1f); }
.art-ts { background: radial-gradient(circle at 20% 80%, rgba(34, 211, 238, .4), transparent 55%), linear-gradient(160deg, #0b2440, #0a0a1f); }
.mini-bar { display: flex; gap: 10px; align-items: center; font-size: 11px; color: var(--muted); letter-spacing: .14em; }
.mini-rows { display: grid; gap: 12px; margin-top: 28px; }
.mini-rows i { display: block; height: 12px; width: var(--w); border-radius: 6px; background: var(--grad); opacity: .85; transform-origin: left;
  animation: grow 3s ease-in-out infinite alternate; }
.mini-rows i:nth-child(2) { animation-delay: .4s; } .mini-rows i:nth-child(3) { animation-delay: .8s; }
.mini-rows i:nth-child(4) { animation-delay: 1.2s; } .mini-rows i:nth-child(5) { animation-delay: 1.6s; }
@keyframes grow { from { transform: scaleX(.55); } to { transform: scaleX(1); } }
.route { position: absolute; inset: 50px 18px 18px; width: calc(100% - 36px); height: calc(100% - 68px); }
.route path { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 6 6; animation: dash 3s linear infinite; }
.route circle { fill: #fff; filter: drop-shadow(0 0 6px var(--cyan)); }
@keyframes dash { to { stroke-dashoffset: -48; } }
/* Live World / London Live / Live Challenge art */
.art-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.project:hover .art-shot { transform: scale(1.04); }
.project-art:has(.art-shot)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,6,15,.65), transparent 35%, transparent 75%, rgba(7,6,15,.5)); pointer-events: none; }
.project-art .mini-bar { position: relative; z-index: 1; }
.project-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.project-wide .project-art { height: auto; min-height: 260px; }
.project-wide .project-body { align-self: center; }
.tile-world { background: radial-gradient(circle at 70% 40%, rgba(34, 211, 238, .35), transparent 55%), linear-gradient(160deg, #081a33, #0a0a1f); }
.tile-london { background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, .45), transparent 55%), linear-gradient(160deg, #150f33, #0a0a1f); }
.tile-challenge { background: radial-gradient(circle at 75% 30%, rgba(217, 70, 239, .4), transparent 55%), linear-gradient(160deg, #1a0f3a, #0a0a1f); }
.project-body { padding: 26px 28px 30px; }
.project-body h3 { font-family: var(--display); font-size: 22px; letter-spacing: .02em; }
.project-body p { color: var(--muted); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li { font-family: var(--mono); font-size: 12px; padding: 5px 10px; border-radius: 6px; background: rgba(34, 211, 238, .08); color: #a5f3fc; border: 1px solid rgba(34, 211, 238, .2); }

/* GAMES */
.game { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: transform .35s, border-color .35s, box-shadow .35s; }
.game:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, .5); box-shadow: 0 30px 80px -30px rgba(139, 92, 246, .5); }
.game-feature { min-height: clamp(560px, 52vw, 660px); display: flex; align-items: flex-end; margin-bottom: 22px; }
.game-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.game-feature:hover .game-bg { transform: scale(1.04); }
.game-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,6,15,.97) 0%, rgba(7,6,15,.85) 28%, rgba(7,6,15,.2) 58%, transparent 75%), linear-gradient(90deg, rgba(7,6,15,.6), transparent 55%); }
.game-feature .game-body { position: relative; width: 100%; padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px 48px; align-items: end; }
.game-feature .game-body > * { grid-column: 1; }
.game-feature .game-points { grid-column: 2; grid-row: 1 / span 4; align-self: end; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.game-body { padding: 26px 28px 30px; }
.game-body > p { color: var(--muted); }
.game-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.game-meta li { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; padding: 4px 9px; border-radius: 6px; color: var(--muted); border: 1px solid var(--line); background: rgba(7,6,15,.5); }
.game-meta .status { color: #86efac; border-color: rgba(74, 222, 128, .35); }
.game-meta .status.dev { color: #fcd34d; border-color: rgba(252, 211, 77, .35); }
.game-title { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 3vw, 34px); letter-spacing: .02em; margin-bottom: 4px; }
.game-title.tz { font-size: clamp(34px, 5vw, 58px); background: linear-gradient(100deg, #fff 30%, #67e8f9 60%, #c084fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.game-title.tz span { color: #a78bfa; -webkit-text-fill-color: #a78bfa; }
.game-title.pe { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: .04em; background: linear-gradient(180deg, #fde68a, #d4a017); -webkit-background-clip: text; background-clip: text; color: transparent; }
.game-title.cs { background: linear-gradient(100deg, #f5f5f5 0%, #f5f5f5 35%, #ef4444 65%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.game-tag { font-family: var(--mono); font-size: 13px; color: var(--cyan) !important; margin-bottom: 14px; }
.game-points { list-style: none; display: grid; gap: 8px; margin-top: 18px; }
.game-points li { position: relative; padding-left: 22px; font-size: 15px; }
.game-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--grad); transform: rotate(45deg); }
.game-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.game-media { position: relative; aspect-ratio: 16 / 8; overflow: hidden; border-bottom: 1px solid var(--line); }
.game-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.game-card:hover .game-media img { transform: scale(1.05); }
.pe-media img { object-position: center 20%; }
.cs-media img { object-position: center 40%; }

/* WHO */
.who { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.who-item { background: var(--bg); padding: 28px 22px; transition: background .3s; }
.who-item:hover { background: var(--bg-2); }
.who-item h3 { font-size: 18px; }
.who-item h3::before { content: "▸ "; color: var(--magenta); }
.who-item p { color: var(--muted); font-size: 14px; }

/* CONTACT */
.contact-card {
  text-align: center; padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 60px); border-radius: 28px; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 50% 0%, rgba(139, 92, 246, .35), transparent 70%), var(--bg-2);
  border: 1px solid rgba(160, 140, 255, .3);
}
.contact-logo { width: 140px; height: auto; margin: 0 auto 24px; filter: drop-shadow(0 0 30px rgba(139, 92, 246, .6)); }
.contact-card .sub { margin-bottom: 32px; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 30px clamp(16px, 5vw, 48px); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; max-width: 1240px; margin: 0 auto; }

/* SHARED: nav state, games accent, cross links */
.nav-links a[aria-current="page"] { color: var(--text); position: relative; }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--grad); }
.grad-games { background: linear-gradient(100deg, #f0abfc 0%, #d946ef 45%, #fb7185 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn-games { background: linear-gradient(100deg, #7c3aed, #d946ef 60%, #fb7185); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 10px 40px -10px rgba(217, 70, 239, .8); }
.kicker-games { color: #f0abfc; }
.play-dot { width: 0; height: 0; border-left: 9px solid #f0abfc; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--text); }
.crosslink-wrap { padding-top: 0; padding-bottom: 0; }
.crosslink { display: grid; gap: 6px; padding: 32px 36px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(100deg, rgba(34, 211, 238, .08), rgba(139, 92, 246, .08)); transition: border-color .3s, transform .3s; }
.crosslink-games { background: linear-gradient(100deg, rgba(217, 70, 239, .1), rgba(139, 92, 246, .08)); }
.crosslink:hover { transform: translateY(-3px); border-color: rgba(139, 92, 246, .5); }
.crosslink .kicker { margin: 0; }
.crosslink strong { font-family: var(--display); font-size: clamp(22px, 3vw, 32px); }
.contact-games { background: radial-gradient(600px 300px at 50% 0%, rgba(217, 70, 239, .3), transparent 70%), var(--bg-2); }

/* GAMES PAGE */
.page-games { background: radial-gradient(1200px 700px at 80% -10%, rgba(217, 70, 239, .2), transparent 60%), radial-gradient(900px 600px at -10% 30%, rgba(139, 92, 246, .14), transparent 60%), var(--bg); }
.page-hero { max-width: 1240px; margin: 0 auto; padding: 150px clamp(16px, 5vw, 48px) 20px; }
.page-hero .lede { max-width: 40em; }
.title-strip { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.title-strip a { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.title-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.title-strip a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,6,15,.9), transparent 55%); }
.title-strip span { position: absolute; left: 14px; bottom: 10px; z-index: 1; font-family: var(--mono); font-size: 13px; }
.title-strip a:hover img { transform: scale(1.06); }
.games-list { padding-top: clamp(48px, 6vw, 80px); }

/* HOME */
.studio-hero { min-height: 92vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px clamp(16px, 5vw, 48px) 40px; }
.studio-logo { width: clamp(150px, 20vw, 240px); height: auto; filter: drop-shadow(0 0 40px rgba(139, 92, 246, .55)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.studio-title { font-size: clamp(34px, 6vw, 80px); margin: 28px 0 22px; }
.studio-hero .lede { max-width: 38em; margin: 0 auto; }
.scroll-cue { margin-top: 44px; width: 28px; height: 46px; border-radius: 14px; border: 2px solid var(--line); display: grid; justify-items: center; padding-top: 8px; }
.scroll-cue span { width: 4px; height: 10px; border-radius: 2px; background: var(--cyan); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

.doors { display: flex; gap: 22px; max-width: 1400px; margin: 0 auto; padding: 20px clamp(16px, 4vw, 48px) 40px; }
.door { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); transition: flex-grow .6s cubic-bezier(.2,.8,.2,1), border-color .4s, box-shadow .4s; }
.doors:hover .door:hover { flex-grow: 1.3; }
.door-live:hover { border-color: rgba(34, 211, 238, .55); box-shadow: 0 40px 100px -40px rgba(34, 211, 238, .55); }
.door-games:hover { border-color: rgba(217, 70, 239, .55); box-shadow: 0 40px 100px -40px rgba(217, 70, 239, .55); }
.door-visual { position: relative; height: 300px; overflow: hidden; display: grid; place-items: center; }
.door-live .door-visual { background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, .28), transparent 60%), linear-gradient(160deg, #0b2440, #0a0a1f); }
.door-games .door-visual { background: radial-gradient(circle at 70% 30%, rgba(217, 70, 239, .32), transparent 60%), linear-gradient(160deg, #2a0f40, #0a0a1f); }
.door-body { padding: 30px clamp(22px, 3vw, 38px) 36px; display: flex; flex-direction: column; flex: 1; }
.door-body h2 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 14px; }
.door-body .kicker { margin-bottom: 12px; }
.door-text { color: var(--muted); max-width: 34em; }
.door-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 26px; }
.door-list li { font-family: var(--mono); font-size: 12px; padding: 5px 10px; border-radius: 6px; background: rgba(34, 211, 238, .08); color: #a5f3fc; border: 1px solid rgba(34, 211, 238, .2); }
.door-list-games li { background: rgba(217, 70, 239, .08); color: #f5d0fe; border-color: rgba(217, 70, 239, .25); }
.door-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.door-cta span { transition: transform .3s; }
.door:hover .door-cta span { transform: translateX(6px); }
.door-live .door-cta { color: var(--cyan); }
.door-games .door-cta { color: #f0abfc; }

.mini-screen { width: min(78%, 420px); padding: 14px; border-radius: 16px; background: rgba(10, 9, 26, .8); border: 1px solid rgba(34, 211, 238, .25); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.door-live:hover .mini-screen { transform: scale(1.05) translateY(-4px); }
.mini-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--cyan); }
.mini-spark { width: 100%; height: 70px; margin: 10px 0; display: block; }
.mini-cols { display: flex; align-items: flex-end; gap: 6px; height: 60px; }
.mini-cols i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: var(--grad); opacity: .85; transform-origin: bottom; animation: col 2.4s ease-in-out infinite alternate; }
.mini-cols i:nth-child(2n) { animation-delay: .5s; } .mini-cols i:nth-child(3n) { animation-delay: 1s; }
@keyframes col { from { transform: scaleY(.5); } to { transform: scaleY(1); } }

.fan { position: relative; width: min(70%, 380px); aspect-ratio: 16 / 9; }
.fan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 24px 50px -16px rgba(0,0,0,.8); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.fan img:nth-child(1) { transform: translate(-18%, 6%) rotate(-9deg) scale(.86); }
.fan img:nth-child(2) { transform: translate(18%, 6%) rotate(9deg) scale(.86); }
.fan img:nth-child(3) { transform: translateY(-4%); }
.door-games:hover .fan img:nth-child(1) { transform: translate(-30%, 8%) rotate(-13deg) scale(.86); }
.door-games:hover .fan img:nth-child(2) { transform: translate(30%, 8%) rotate(13deg) scale(.86); }
.door-games:hover .fan img:nth-child(3) { transform: translateY(-8%) scale(1.04); }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 330px; gap: 18px; }
.tile { position: relative; display: flex; align-items: flex-end; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); transition: transform .35s, border-color .35s, box-shadow .35s; }
.tile-wide { grid-column: span 2; }
.tile:hover { transform: translateY(-4px); }
.tile-game:hover { border-color: rgba(217, 70, 239, .55); box-shadow: 0 30px 70px -30px rgba(217, 70, 239, .55); }
.tile-live:hover { border-color: rgba(34, 211, 238, .55); box-shadow: 0 30px 70px -30px rgba(34, 211, 238, .55); }
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.tile:hover > img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,6,15,.95) 0%, rgba(7,6,15,.6) 35%, transparent 65%); pointer-events: none; }
.tile-art { position: absolute; inset: 0; padding: 26px 24px; }
.tile-wdw { background: radial-gradient(circle at 80% 20%, rgba(217, 70, 239, .4), transparent 55%), linear-gradient(160deg, #1e1048, #0b0a1f); }
.tile-ts { background: radial-gradient(circle at 20% 70%, rgba(34, 211, 238, .38), transparent 55%), linear-gradient(160deg, #0b2440, #0a0a1f); }
.tile-art .mini-rows { margin-top: 6px; }
.tile-art .route { inset: 24px 20px 110px; height: auto; }
.tile-body { position: relative; z-index: 1; padding: 22px 24px; }
.tile-body h3 { font-family: var(--display); font-size: 20px; margin: 10px 0 4px; }
.tile-body p { color: var(--muted); font-size: 14px; }
.tile-tag { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; }
.tag-live { background: var(--live); color: #fff; }
.tag-play { background: rgba(74, 222, 128, .15); color: #86efac; border: 1px solid rgba(74, 222, 128, .4); }
.game-actions { margin-top: 22px; }
.strip-play { position: absolute; right: 12px; top: 12px; z-index: 1; font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 6px; background: rgba(7,6,15,.75); color: #86efac; border: 1px solid rgba(74, 222, 128, .4); }
.tag-game { background: rgba(217, 70, 239, .2); color: #f5d0fe; border: 1px solid rgba(217, 70, 239, .4); }

/* ERROR PAGES */
.error-wrap { min-height: 100vh; max-width: 1240px; margin: 0 auto; padding: 130px clamp(16px, 5vw, 48px) 60px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.error-copy h1 { font-size: clamp(40px, 6vw, 80px); margin: 0 0 22px; }
.error-help { margin-top: 26px; font-size: 14px; }
.error-help a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.tv { border-radius: 20px; padding: 14px; background: linear-gradient(160deg, rgba(30, 22, 70, .85), rgba(10, 9, 26, .9)); border: 1px solid rgba(160, 140, 255, .28); box-shadow: 0 40px 120px -30px rgba(139, 92, 246, .55); min-width: 0; }
.tv-bar { display: flex; gap: 12px; align-items: center; padding: 4px 6px 12px; font-size: 12px; color: var(--muted); }
.tv-bar .mono:last-child { margin-left: auto; color: var(--cyan); }
.badge-off { font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 5px; letter-spacing: .08em; background: #3f3f46; color: #e4e4e7; animation: blink 1.2s infinite; }
.tv-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #000; }
#static { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: .35; }
.tv-screen .bars { position: absolute; inset: 0 0 32% 0; display: flex; opacity: .55; mix-blend-mode: screen; }
.tv-screen .bars i { flex: 1; }
.tv-screen .bars i:nth-child(1) { background: #c0c0c0; } .tv-screen .bars i:nth-child(2) { background: #c0c000; }
.tv-screen .bars i:nth-child(3) { background: #00c0c0; } .tv-screen .bars i:nth-child(4) { background: #00c000; }
.tv-screen .bars i:nth-child(5) { background: #c000c0; } .tv-screen .bars i:nth-child(6) { background: #c00000; }
.tv-screen .bars i:nth-child(7) { background: #0000c0; }
.tv-screen::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.35) 0 2px, transparent 2px 4px), radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.7)); pointer-events: none; animation: roll 6s linear infinite; }
@keyframes roll { 0% { background-position: 0 0, 0 0; } 100% { background-position: 0 100px, 0 0; } }
.tv-label { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.tv-sub { font-size: clamp(11px, 1.4vw, 14px); letter-spacing: .3em; padding: 6px 14px; background: rgba(0,0,0,.75); border-radius: 4px; }
.glitch { position: relative; font-family: var(--display); font-weight: 900; font-size: clamp(72px, 12vw, 150px); line-height: 1; color: #fff; text-shadow: 0 0 30px rgba(139, 92, 246, .8); }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; overflow: hidden; }
.glitch::before { color: var(--cyan); transform: translate(-3px, 0); clip-path: inset(0 0 55% 0); animation: gl1 2.2s infinite steps(1); mix-blend-mode: screen; }
.glitch::after { color: var(--magenta); transform: translate(3px, 0); clip-path: inset(50% 0 0 0); animation: gl2 1.8s infinite steps(1); mix-blend-mode: screen; }
@keyframes gl1 { 0%, 100% { transform: translate(-3px, 0); } 20% { transform: translate(-8px, -2px); } 40% { transform: translate(2px, 1px); } 60% { transform: translate(-5px, 2px); } }
@keyframes gl2 { 0%, 100% { transform: translate(3px, 0); } 25% { transform: translate(8px, 2px); } 50% { transform: translate(-2px, -1px); } 75% { transform: translate(5px, -2px); } }
.page-error .ticker-track span b { color: var(--live); }
@media (max-width: 900px) { .error-wrap { grid-template-columns: minmax(0, 1fr); padding-top: 110px; } .tv { order: 2; } }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 130px; }
  .screen { transform: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipeline::before { display: none; }
  .who { grid-template-columns: repeat(2, 1fr); }
  .game-pair { grid-template-columns: 1fr; }
  .doors { flex-direction: column; }
  .door { flex: none; }
  .doors:hover .door:hover { flex-grow: 1; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .who-item:last-child { grid-column: span 2; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: 72px 16px auto 16px; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px;
    background: rgba(13, 11, 28, .96); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 16px;
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .25s, transform .25s; }
  .nav-links a { padding: 12px; }
  .nav-links .btn { justify-content: center; margin-top: 6px; }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  .nav.open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .brand span { font-size: 12px; }
  .cards, .work, .pipeline, .who, .game-pair { grid-template-columns: 1fr; }
  .project-wide { grid-template-columns: 1fr; }
  .project-wide .project-art { min-height: 240px; }
  .title-strip { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .tile-wide { grid-column: auto; }
  .door-visual { height: 220px; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .game-feature { min-height: 0; flex-direction: column; align-items: stretch; }
  .game-feature .game-bg { position: relative; height: 220px; }
  .game-feature .game-shade { display: none; }
  .game-feature .game-body { display: block; }
  .game-feature .game-points { margin-top: 18px; }
  .who-item:last-child { grid-column: auto; }
  .screen-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-chart { grid-column: span 2; }
  .panel-bars { grid-column: span 2; }
  .panel-stat:last-child { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
