/*
 * Landing pages (/ru/, /de/, /en/), built like a gig poster around the app's
 * own genre covers. The page is black; colour comes from the cover in the hero
 * and from --accent, which the demo re-tunes to the genre being shown
 * (amber for country, magenta for synthwave, red for rock).
 */
:root {
  --accent: #f0a64a;
  --ink: #000;
  --text: #fff;
  --soft: rgba(255, 255, 255, 0.74);
  --faint: rgba(255, 255, 255, 0.52);
  --line: rgba(255, 255, 255, 0.14);
  --poster: 'Alumni Sans', 'Arial Narrow', sans-serif;
  --body: 'Onest', system-ui, sans-serif;
  --code: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 18px/1.6 var(--body); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: #111; padding: 8px 12px; }

h1, h2 { font-family: var(--poster); font-weight: 900; margin: 0; line-height: 0.92; letter-spacing: -0.005em; }
h2 { font-size: clamp(52px, 7.5vw, 104px); margin-bottom: 40px; }
h3 { font: 600 22px/1.3 var(--body); margin: 0 0 10px; }
p { margin: 0; }

.btn {
  display: inline-block;
  padding: 17px 30px;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font: 600 17px/1 var(--body);
  text-decoration: none;
  transition: background-color 0.5s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

/* ---------- hero: the cover of the genre being shown, full bleed ---------- */

.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.9s ease, transform 6s ease; }
.hero-art img.on { opacity: 1; transform: scale(1); }
.hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.62) 42%, rgba(0, 0, 0, 0.25) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 25%, transparent 70%, #000 100%);
}

.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 1320px; margin: 0 auto; padding: 22px 24px; }
.brand { font: 800 28px/1 var(--poster); text-decoration: none; letter-spacing: 0.01em; }
.langs { display: flex; gap: 14px; font: 500 14px var(--body); }
.langs a { color: var(--faint); text-decoration: none; }
.langs a:hover { color: var(--text); }
.langs b { color: var(--accent); font-weight: 600; transition: color 0.5s ease; }

.hero-grid { flex: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; width: 100%; max-width: 1320px; margin: 0 auto; padding: 24px 24px 64px; }
h1 { font-size: clamp(54px, 6.2vw, 96px); max-width: 13ch; text-wrap: balance; }
.lead { margin: 28px 0 34px; max-width: 540px; font-size: 20px; line-height: 1.55; color: var(--soft); }
.trust { margin-top: 18px; max-width: 460px; font-size: 14px; color: var(--faint); }

.demo {
  padding: 24px 24px 20px;
  border-radius: 20px;
  background: rgba(8, 8, 12, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.13);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.demo-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; font-size: 15px; color: var(--faint); }
.tabs { display: flex; gap: 18px; }
.tabs button {
  padding: 4px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--soft);
  font: 500 16px var(--body);
  cursor: pointer;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected='true'] { color: var(--text); border-bottom-color: var(--accent); }

.params { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 20px; }
.params div { padding-top: 10px; border-top: 2px solid var(--accent); transition: border-color 0.5s ease; }
.params dt { font-size: 13px; color: var(--faint); }
.params dd { margin: 2px 0 0; font: 800 26px/1.05 var(--poster); }

.out-label { margin: 0 0 6px; font-size: 13px; color: var(--faint); }
.demo pre {
  margin: 0 0 14px;
  min-height: 3.4em;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.92);
  font: 13px/1.6 var(--code);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.out-note { font-size: 13px; color: var(--faint); }

/* ---------- body sections ---------- */

main { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
main > section { padding: 120px 0; }

.pain { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 0 64px; padding-top: 72px !important; }
.pain h2 { position: sticky; top: 40px; align-self: start; }
.pain ul { list-style: none; margin: 0; padding: 0; }
.pain li { padding: 26px 0; border-bottom: 1px solid var(--line); font: 500 clamp(21px, 2.2vw, 28px)/1.35 var(--body); }
.pain li:first-child { padding-top: 6px; }
.turn { grid-column: 2; margin-top: 36px; font: 600 clamp(22px, 2.3vw, 30px)/1.35 var(--body); color: var(--accent); transition: color 0.5s ease; }

.genres { padding-top: 40px !important; }
.reel { margin: 0 calc(50% - 50vw); overflow: hidden; }
.reel-track { display: flex; gap: 14px; width: max-content; animation: reel 100s linear infinite; }
.reel:hover .reel-track { animation-play-state: paused; }
.reel figure { position: relative; margin: 0; width: 320px; flex: none; }
.reel img { width: 100%; height: 190px; object-fit: cover; border-radius: 6px; }
.reel figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 16px 12px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
  font: 800 26px/1 var(--poster);
}
@keyframes reel { to { transform: translateX(-50%); } }

.how ol { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.how li { counter-increment: step; }
.how li::before {
  content: counter(step);
  display: block;
  margin-bottom: 12px;
  font: 900 150px/0.8 var(--poster);
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  transition: -webkit-text-stroke-color 0.5s ease;
}
.how p { color: var(--soft); }

.inside { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: start; }
.inside-shot { position: sticky; top: 32px; margin: 0; }
.inside-shot img, .shots img { border-radius: 12px; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line); }
.inside-shot figcaption, .shots figcaption { margin-top: 14px; font-size: 14px; color: var(--faint); }
.inside-list h2 { margin-bottom: 28px; }
.inside-list dl { margin: 0; display: grid; gap: 26px; }
.inside-list dt { font: 600 21px/1.3 var(--body); }
.inside-list dd { margin: 4px 0 0; color: var(--soft); }
.others { margin-top: 34px; font-size: 15px; color: var(--faint); }

.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 0 !important; }
.shots figure { margin: 0; }

.faq { max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font: 600 21px/1.35 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font: 400 30px/0.9 var(--body); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; max-width: 720px; color: var(--soft); }

.final { position: relative; display: grid; place-items: center; min-height: 80svh; padding: 80px 24px; text-align: center; overflow: hidden; isolation: isolate; }
.final > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.final::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.88) 70%), linear-gradient(180deg, #000, transparent 30%); }
.final h2 { font-size: clamp(72px, 12vw, 180px); margin-bottom: 18px; }
.final p { margin-bottom: 38px; font-size: 22px; color: var(--soft); }

.foot { max-width: 1320px; margin: 0 auto; padding: 36px 24px 48px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: var(--faint); }
.foot a { color: var(--faint); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot p { flex-basis: 100%; margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.36); }

/* ---------- smaller screens ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 24px; }
  .hero-art::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.72) 40%, #000 100%); }
  main > section { padding: 84px 0; }
  .pain { grid-template-columns: 1fr; }
  .pain h2 { position: static; margin-bottom: 24px; }
  .turn { grid-column: 1; }
  .how ol { grid-template-columns: 1fr; gap: 40px; }
  .how li::before { font-size: 110px; }
  .inside { grid-template-columns: 1fr; gap: 40px; }
  .inside-shot { position: static; }
  .shots { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .bar { padding: 16px 18px; }
  .hero-grid, main, .foot { padding-left: 18px; padding-right: 18px; }
  .lead { font-size: 18px; }
  .btn { display: block; text-align: center; }
  .demo { padding: 18px 16px 14px; }
  .params { grid-template-columns: repeat(2, 1fr); }
  .params dd { font-size: 23px; }
  .reel figure { width: 230px; }
  .reel img { height: 136px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reel { overflow-x: auto; }
}

/* ---------- demo progress: shows the examples change by themselves ---------- */

.demo-progress { height: 2px; margin: -8px 0 18px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.demo-progress::after { content: ''; display: block; width: 0; height: 100%; background: var(--accent); transition: background-color 0.5s ease; }
.demo-progress.run::after { animation: fill 6.5s linear forwards; }
@keyframes fill { to { width: 100%; } }

/* ---------- genre wall: every console family, two large, hover to look closer ---------- */

.wall { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 150px; gap: 10px; }
.tile { position: relative; overflow: hidden; border-radius: 8px; text-decoration: none; background: #111; }
.tile:nth-child(1), .tile:nth-child(2) { grid-column: span 3; grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.8); transition: transform 0.6s ease, filter 0.4s ease; }
.tile span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 14px 10px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
  font: 800 24px/1 var(--poster);
  transition: padding 0.3s ease;
}
.tile:nth-child(1) span, .tile:nth-child(2) span { font-size: 44px; padding: 60px 20px 16px; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.08); filter: saturate(1.15) brightness(1); }
.tile:hover span { padding-bottom: 16px; }
.tile::after { content: ''; position: absolute; inset: 0; border-radius: 8px; box-shadow: inset 0 0 0 0 var(--accent); transition: box-shadow 0.3s ease; }
.tile:hover::after { box-shadow: inset 0 0 0 2px var(--accent); }

/* ---------- inside: a large screen of the finished prompt, features beneath ---------- */

.inside { display: block; }
.inside h2 { margin-bottom: 36px; }
.inside-shot { position: static; margin: 0 0 56px; }
.inside-shot img { width: 100%; border-radius: 14px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; margin: 0; }
.features div { padding-top: 16px; border-top: 2px solid var(--accent); transition: border-color 0.5s ease; }
.features dt { font: 600 21px/1.3 var(--body); }
.features dd { margin: 6px 0 0; color: var(--soft); }
.inside .others { margin-top: 44px; max-width: 760px; }

/* ---------- closing slideshow ---------- */

.final > img { display: none; }
.final-art { position: absolute; inset: 0; z-index: -2; }
.final-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 7s ease; }
.final-art img.on { opacity: 1; transform: scale(1); }

@media (max-width: 980px) {
  .wall { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 120px; }
  .tile:nth-child(1), .tile:nth-child(2) { grid-column: span 3; grid-row: span 2; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wall { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 104px; }
  .tile:nth-child(1), .tile:nth-child(2) { grid-column: span 2; }
  .tile:nth-child(1) span, .tile:nth-child(2) span { font-size: 34px; }
  .tile span { font-size: 21px; }
  .features { grid-template-columns: 1fr; }
}

/* The wall ends on a full row: 2 large + 22 small tiles in six columns leave four in the last row. */
.tile:nth-child(23), .tile:nth-child(24) { grid-column: span 2; }
@media (max-width: 980px) {
  .tile:nth-child(23) { grid-column: span 1; }
  .tile:nth-child(24) { grid-column: span 3; }
}
@media (max-width: 560px) {
  .tile:nth-child(n + 15) { display: none; }
  .tile:nth-child(23), .tile:nth-child(24) { grid-column: span 1; }
}

/* ---------- "Sound familiar?" illustration ---------- */

.pain-side { position: sticky; top: 40px; align-self: start; }
.pain .pain-side h2 { position: static; }
.pain-art { display: block; width: 100%; max-width: 380px; margin-top: 28px; overflow: visible; }
.pa-dot { fill: var(--accent); transition: fill 0.5s ease; }
.pa-line { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.pa-thick { stroke-width: 8; }
.pa-cable { stroke: rgba(255, 255, 255, 0.5); stroke-width: 3; }
.pa-fill { fill: var(--accent); stroke: #fff; stroke-width: 3; transition: fill 0.5s ease; }
.pa-body { fill: #121212; stroke: #fff; stroke-width: 4; stroke-linejoin: round; }
.pa-screen { fill: #070707; stroke: var(--accent); stroke-width: 3; transition: stroke 0.5s ease; }
.pa-scan { stroke: var(--accent); stroke-width: 1; opacity: 0.18; }
.pa-eye { fill: #fff; }
.pa-drop { fill: #8fd3ff; stroke: #fff; stroke-width: 2; }
.pa-led { fill: var(--accent); }
.pa-note { fill: #fff; font: 44px serif; }
.pa-q { fill: var(--accent); font: 900 54px var(--poster); transition: fill 0.5s ease; }
.pa-small { font-size: 32px; }
.pa-x { stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.pa-shake { transform-origin: 180px 300px; animation: fidget 4s ease-in-out infinite; }
.pa-float { animation: bob 3.2s ease-in-out infinite; }
.pa-f2 { animation-delay: -1.1s; }
.pa-f3 { animation-delay: -2.2s; }
@keyframes fidget { 0%, 70%, 100% { transform: rotate(0); } 74% { transform: rotate(-2deg); } 78% { transform: rotate(2deg); } 82% { transform: rotate(-1deg); } 86% { transform: rotate(0); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- genre mixing ---------- */

.mix { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; margin: -12px 0 32px; }
.mix p { max-width: 460px; font-size: 19px; color: var(--soft); }
.mix-row { display: flex; align-items: center; gap: 14px; }
.mix-card { position: relative; width: 150px; height: 84px; border-radius: 8px; overflow: hidden; }
.mix-card img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7); }
.mix-card b { position: absolute; left: 10px; bottom: 6px; font: 800 22px/1 var(--poster); }
.mix-sign { font: 900 40px/1 var(--poster); color: var(--accent); transition: color 0.5s ease; }
.mix-out { padding: 12px 18px; border-radius: 999px; border: 2px solid var(--accent); font: 800 26px/1 var(--poster); transition: border-color 0.5s ease; }

/* ---------- mouse trail canvas ---------- */

.trail { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }

@media (max-width: 980px) {
  .pain-side { position: static; }
  .pain-art { max-width: 280px; margin: 8px 0 24px; }
}
@media (max-width: 560px) {
  .mix-row { flex-wrap: wrap; }
  .mix-card { width: 120px; height: 68px; }
}

/* ---------- trial variant: the home-studio scene with an ask bar ---------- */

.studio { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.studio-art { position: absolute; inset: 0; z-index: -1; }
.studio-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.studio-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 6, 14, 0.88) 0%, rgba(4, 6, 14, 0.55) 38%, rgba(4, 6, 14, 0) 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 22%, transparent 55%, rgba(0, 0, 0, 0.82) 100%);
}
.studio-copy { width: 100%; max-width: 1320px; margin: 0 auto; padding: 32px 24px 0; }
.studio-copy h1 { font-size: clamp(50px, 5.4vw, 86px); max-width: 12ch; }
.studio-copy .lead { max-width: 500px; margin-bottom: 0; }

.ask { width: 100%; max-width: 860px; margin: auto auto 0; padding: 0 24px 56px; }
.ask-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 24px;
  border-radius: 999px;
  background: rgba(10, 12, 22, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.ask-bar:focus-within { border-color: var(--accent); }
.ask-bar input { flex: 1; min-width: 0; padding: 14px 0; border: 0; background: none; color: var(--text); font: 400 18px var(--body); outline: none; }
.ask-bar input::placeholder { color: var(--faint); }
.ask-bar button { flex: none; padding: 15px 24px; border: 0; border-radius: 999px; background: var(--accent); color: #000; font: 600 16px var(--body); cursor: pointer; transition: background-color 0.5s ease; }
.ask-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--soft); }
.ask-chips a { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(10, 12, 22, 0.45); color: var(--text); text-decoration: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ask-chips a:hover { border-color: var(--accent); }

/* the demo moves below, on its genre cover */
.stage { min-height: auto; padding: 96px 0; }
.stage-inner { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 24px; }
.stage-inner h2 { margin-bottom: 28px; text-align: center; font-size: clamp(44px, 5.5vw, 76px); }
.stage .hero-art::after { background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 25%, rgba(0, 0, 0, 0.55) 75%, #000 100%); }

@media (max-width: 900px) {
  .studio-art img { object-position: 78% 50%; }
  .studio-art::after { background: linear-gradient(180deg, rgba(4, 6, 14, 0.82) 0%, rgba(4, 6, 14, 0.45) 45%, rgba(0, 0, 0, 0.88) 100%); }
  .ask-bar { flex-direction: column; align-items: stretch; border-radius: 22px; padding: 10px; }
  .ask-bar input { padding: 10px 8px; }
}

/* On phones the scene sits on top, the words and the ask bar below it on black. */
@media (max-width: 900px) {
  .studio-art { bottom: auto; height: 54svh; }
  .studio-art img { object-position: 72% 50%; }
  .studio-art::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 25%, transparent 60%, #000 100%); }
  .studio-copy { padding-top: 40svh; }
  .studio-copy h1 { font-size: clamp(42px, 11vw, 60px); }
  .ask { margin-top: 28px; }
}

/* ---------- the illustration for "Sound familiar?" ---------- */

.pain-photo { width: 100%; max-width: 460px; height: auto; border-radius: 18px; }

/* ---------- smoother hand-over from the studio scene to the demo ---------- */

.studio-art::after {
  background:
    linear-gradient(90deg, rgba(4, 6, 14, 0.88) 0%, rgba(4, 6, 14, 0.55) 38%, rgba(4, 6, 14, 0) 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 22%, transparent 48%, rgba(0, 0, 0, 0.7) 78%, #000 100%);
}
.stage { margin-top: -1px; padding-top: 40px; }
.stage .hero-art::after { background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.7) 22%, rgba(0, 0, 0, 0.55) 60%, #000 100%); }

/* ---------- slow coloured light behind the plain black sections ---------- */

body { overflow-x: hidden; }
.how, .faq { position: relative; isolation: isolate; }
.how::before, .faq::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -10%;
  bottom: -10%;
  left: calc(50% - 50vw);
  width: 100vw;
  background:
    radial-gradient(40% 55% at 18% 35%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 70%),
    radial-gradient(35% 50% at 82% 65%, rgba(108, 92, 255, 0.28), transparent 70%);
  filter: blur(30px);
  opacity: 0.55;
  animation: drift 22s ease-in-out infinite alternate;
  transition: background 0.8s ease;
  pointer-events: none;
}
.faq::before { animation-delay: -9s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4%, -3%) scale(1.08); }
  100% { transform: translate(-4%, 3%) scale(1); }
}

/* ---------- the cursor: a soft light and sound-wave rings ---------- */

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent) 0%, transparent 62%);
  opacity: 0.2;
  mix-blend-mode: screen;
  pointer-events: none;
}
.cursor-ring {
  position: fixed;
  z-index: 51;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  pointer-events: none;
  animation: ring 1.2s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes ring {
  from { transform: scale(1); opacity: 0.75; }
  to { transform: scale(9); opacity: 0; }
}

/* A long fade at the foot of the studio scene, so it melts into the black of the next section. */
.studio::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 260px; background: linear-gradient(180deg, transparent, #000); pointer-events: none; }
.studio .ask, .studio .studio-copy, .studio .bar { position: relative; z-index: 1; }

/* The light behind the steps and the FAQ drifts by moving its gradients, not by scaling
   the layer: a scaled layer changed the page height and made the page jump. */
.how::before, .faq::before {
  top: 0;
  bottom: 0;
  transform: none;
  background-size: 150% 150%;
  animation: drift-light 24s ease-in-out infinite alternate;
}
@keyframes drift-light {
  from { background-position: 0% 0%; }
  to { background-position: 100% 100%; }
}

/* the cursor's thin trail */
.cursor-trail { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 51; pointer-events: none; }
.cursor-ring { display: none; }

/* ---------- language menu: a globe that opens the three languages ---------- */

.lang { position: relative; }
.lang summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 12, 22, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: 600 14px var(--body);
  list-style: none;
  cursor: pointer;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { border-color: var(--accent); }
.lang svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang[open] svg { animation: spin 0.6s ease; }
@keyframes spin { from { transform: rotate(-90deg); } to { transform: rotate(0); } }
.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 70;
  min-width: 160px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 12, 22, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.lang-list a { display: block; padding: 10px 14px; border-radius: 9px; color: var(--soft); text-decoration: none; font: 500 15px var(--body); }
.lang-list a:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.lang-list a[aria-current] { color: var(--accent); }
.bar { position: relative; z-index: 5; }

/* ---------- back to top ---------- */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 55;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: rgba(10, 12, 22, 0.7);
  color: var(--text);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.5s ease, background-color 0.2s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: #000; }
.to-top svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; } }

/* The illustration is toned to the page: a little less saturated, edges dissolving into
   the black, and tinted by the genre colour so it changes with the rest of the page. */
.pain-figure { position: relative; margin: 28px 0 0; max-width: 460px; isolation: isolate; }
.pain-figure .pain-photo { margin: 0; filter: saturate(0.72) contrast(1.06) brightness(0.92); -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 58%, transparent 100%); }
.pain-figure::after { content: ''; position: absolute; inset: 0; background: var(--accent); mix-blend-mode: color; opacity: 0.32; pointer-events: none; transition: background-color 0.5s ease; -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 58%, transparent 100%); }
.pain-figure::after { content: none; }
.pain-figure .pain-photo { filter: saturate(0.7) contrast(1.08) brightness(0.9) sepia(0.12); }

/* ---------- top menu ---------- */

.bar { gap: 24px; }
.menu { display: flex; gap: 28px; margin: 0 auto; }
.menu a { color: var(--soft); text-decoration: none; font: 500 15px var(--body); transition: color 0.2s ease; }
.menu a:hover { color: var(--text); }
.bar-end { display: flex; align-items: center; gap: 12px; }
.bar .btn-small { padding: 10px 18px; font-size: 14px; }
.burger { display: none; position: relative; }
.burger summary { display: grid; gap: 5px; place-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(10, 12, 22, 0.45); list-style: none; cursor: pointer; }
.burger summary::-webkit-details-marker { display: none; }
.burger summary span { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--text); }
.burger-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; min-width: 220px; padding: 6px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(10, 12, 22, 0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); }
.burger-list a { display: block; padding: 12px 14px; border-radius: 9px; color: var(--soft); text-decoration: none; font: 500 16px var(--body); }
.burger-list a:last-child { color: var(--accent); font-weight: 600; }
.burger-list a:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
html { scroll-padding-top: 20px; }

@media (max-width: 980px) {
  .menu, .bar-end > .btn-small { display: none; }
  .burger { display: block; }
}

/* ---------- the top menu stays on screen ---------- */

.studio .bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  max-width: none;
  margin: 0;
  padding: 14px max(24px, calc((100vw - 1320px) / 2 + 24px));
  transition: background-color 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
.studio .bar.solid {
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(8, 8, 14, 0.62);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}
.studio .studio-copy { padding-top: 108px; }
html { scroll-padding-top: 84px; }
@media (max-width: 900px) {
  .studio .bar { padding: 12px 18px; }
  .studio .studio-copy { padding-top: 40svh; }
}
