Библиотека дизайна / Сайты целиком

Сайты целикомТёмный3DТипографикаЯркийБесплатно

Отзвук — сайт музыкального лейбла с колодцем из обложек и залом релизов

Сайт лейбла: спуск по колодцу из обложек в зал релизов, у каждой пластинки свой луп на Web Audio и пульсирующая обложка.

Отзвук — сайт музыкального лейбла с колодцем из обложек и залом релизов
Промпт
Сделай мне сайт по готовой странице «Отзвук» (Сергей Дургалян, MIT). Ниже один HTML-файл без библиотек: CSS и JS внутри, из сети только шрифты Google. Сначала перенеси его как есть, открой двойным щелчком и проверь: на первом экране колодец из колец обложек вращается, на дне светится оранжевый круг, поверх название «Отзвук»; при прокрутке камера спускается и поворачивается к стене зала; обложка активного релиза выплывает вперёд, слева номер, название, артист и треки, справа список; стрелки ← и →, свайп и клик по списку переключают релизы; кнопка «Слушать» включает луп, обложка пульсирует и показывает эквалайзер; при смене релиза звук стихает; форма без согласия на обработку данных не отправляется; на телефоне 390 px нет горизонтальной прокрутки. Потом меняй под меня.

Как устроен код:
- Сцена. Блок `#well` высотой 750vh, внутри липкий `.stage` с CSS `perspective`. Мир `.world` — точка нулевого размера с `transform-style: preserve-3d`, в ней шесть колец `.ring` по десять плиток `.tile`: каждая стоит через `rotateY(j * 36deg) translateZ(-R)` лицом к оси, поэтому изнутри видны все. На дне диск `.floor` с радиальным градиентом, повёрнутый `rotateX(90deg)`.
- Камера. В CSS камеры нет, поэтому двигается мир в обратную сторону: `translateZ(P) rotateX(наклон) rotateY(-поворот) translateY(-высота)`. Прогресс спуска `t` — прокрутка внутри `#well`, делённая на 1,5 экрана; в кадре он сглаживается, от него зависят высота камеры, наклон от −90° (вниз) до 0° (на стену), скорость вращения колец, ширина обзора и затемнение стен. После спуска каждые полэкрана прокрутки — следующий релиз, нижнее кольцо стоит на месте, и стена поворачивается так, чтобы плитка релиза оказалась за карточкой.
- Обложки. `drawCover` рисует квадрат 480 px: фон, один из десяти рисунков `ART`, зерно, номер по каталогу, год, название с переносом и артиста. Сначала ждём шрифты через `document.fonts.load` с кириллическим текстом (не дольше 2 секунд), потом каждая обложка превращается в blob-ссылку и ставится фоном плиткам своего релиза. Большая карточка — canvas 640 px, куда копируется обложка, а во время игры поверх рисуются столбики спектра из `AnalyserNode`.
- Звук. Один `AudioContext` создаётся по первому нажатию. Планировщик раз в 25 мс ставит ноты на 0,12 с вперёд: шестнадцатые для бочки (синус с падающей частотой), хэтов (шум через фильтр высоких частот), баса, мелодии и аккорда пэда в начале каждого такта; четыре такта по ступеням из `c`. Всё идёт через общую шину с компрессором и анализатором, громкость `out.gain` 0,32. Пульсация обложки — среднеквадратичная громкость сигнала: масштаб и оранжевое свечение.
- Доступность. Список релизов — кнопки с `aria-current`, смена релиза объявляется через `aria-live`, кнопка звука с `aria-pressed`, зал скрыт `visibility`, пока до него не спустились, поэтому фокус не попадает в невидимые кнопки.
- `prefers-reduced-motion`: кольца стоят, пролёта нет, камера переключается сразу, обложка без выплывания и пульсации.

Что менять: название и тексты лейбла; релизы в `REL` (название, артист, год, жанр, треки, рисунок `art` 0–9, палитра [фон, рисунок, акцент, текст], звук `s`: темп `b`, тоника `r`, лад maj/min/dor/phr, паттерны `k`, `h`, `ba`, `l` по 16 символов, ступени аккордов `c`, тембры `w`, `lw`, `p`, фильтр `cut`); акцентный цвет `--acc` и цвет свечения пола; размеры колодца `RINGS`, `PER`, `R`, `GAP` (плиток не больше 60); тексты «О лейбле», цифры и рассылку; ссылку на политику вместо `#privacy` и закомментированный `fetch`.

Если проект на React: сцену вынеси в компонент, плитки и кольца рендери из массива, а камеру двигай в `useEffect` через `requestAnimationFrame` и `ref.style.transform`, без state на каждый кадр. `AudioContext` держи в `useRef`, закрывай его в очистке эффекта. Активный релиз — состояние, от него меняются тексты и список.

Спроси, какой у меня лейбл, артист или студия, и предложи: название для первого экрана, 8–10 релизов с жанрами и цветами обложек и акцентный цвет для света на дне колодца.

Код скопируется вместе с промптом

Одностраничный сайт вымышленного независимого лейбла «Отзвук»: электроника, эмбиент и инди. На первом экране вы смотрите вниз в колодец, стены которого сложены из колец обложек. Кольца медленно вращаются в разные стороны, на дне светится оранжево-красный круг. Прокрутка опускает камеру на дно и разворачивает её к стене: там круглый зал, где активная пластинка выплывает вперёд крупной обложкой. Каждый релиз можно послушать, звук рождается прямо в браузере.

Что на сайте

  • Первый экран: колодец из шести колец по десять обложек, огромное название «Отзвук» антиквой Playfair Display и строка «Десять пластинок лейбла. Прокрутите, чтобы спуститься». Колодец слегка поворачивается вслед за мышью.
  • Спуск: камера опускается по оси колодца, кольца замедляются, взгляд поднимается от светящегося дна к стене зала.
  • Зал релизов: стена поворачивается к выбранной пластинке, обложка выплывает из глубины. Слева номер «03 / 10», название, артист, год, жанр и треклист, справа список всех релизов. Листать можно прокруткой, стрелками ← и →, свайпом и кликом по списку.
  • «Слушать»: у каждого из десяти релизов свой короткий луп на Web Audio (темп, лад, бочка, хэт, бас, пэд и мелодия). Пока играет, обложка пульсирует под громкость, светится и показывает эквалайзер. Звук включается только по кнопке и останавливается при смене релиза и на скрытой вкладке.
  • О лейбле с тремя цифрами, подписка на рассылку (почта и обязательное согласие на обработку персональных данных, своя проверка, сообщение после отправки) и подвал.

Один HTML-файл без библиотек и без картинок: колодец собран на CSS 3D-трансформациях, обложки рисуются кодом на canvas (закат, круги, растр, поток линий, волны, полосы, муар, баухаус, буквица, спектр), звук синтезируется Web Audio. Из сети грузятся только шрифты Google (Playfair Display и Manrope). Механика подсмотрена в интерактивном портфолио из рилса (колодец из сайтов, Parallel Studios): оттуда взят только приём, тексты, графика и звук свои.

Как получить такой же результат

  • Скопируйте промпт целиком вместе с кодом в чат с Claude: код рабочий, Claude его адаптирует, а не пишет заново. Сохраните результат как index.html и откройте двойным щелчком, сервер и сборка не нужны.
  • Релизы лежат в массиве REL в начале скрипта: название, артист, год, жанр, треки, номер рисунка обложки art (0–9), палитра из четырёх цветов и настройки звука s. Чтобы поставить настоящие обложки, попросите Claude загружать картинку в covers[i] вместо drawCover, тогда стены и большая карточка возьмут её сами.
  • Луп — это не запись, а ноты: темп b, тоника r (MIDI-номер), лад s, по 16 шагов для бочки, хэтов, баса и мелодии. Настоящий трек подключается через <audio> и createMediaElementSource: эквалайзер и пульсация останутся.
  • Форма никуда не отправляет данные: в обработчике submit есть закомментированный fetch. Подключите своего Telegram-бота, сервис рассылок или сервер и поставьте ссылку на настоящую политику конфиденциальности вместо #privacy.
  • В колодце 60 плиток, это предел для плавной работы на ноутбуке. Сцена рисуется, только пока видна, и стоит на скрытой вкладке. При prefers-reduced-motion кольца не вращаются, пролёта нет: камера сразу переключается с колодца на зал.
  • Проверено на ширине 1440 и 390 пикселей: на телефоне обложка сверху, текст снизу, вместо списка стрелки, горизонтальной прокрутки нет.
Код
<!-- MIT License. Copyright (c) 2026 Sergei Durgalian, learn.create-products.com/design. Free to use, copy and modify with this notice kept. -->
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Отзвук — независимый лейбл</title>
<meta name="description" content="Отзвук — независимый лейбл электроники, эмбиента и инди. Десять пластинок, которые можно послушать прямо на сайте.">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=Manrope:wght@400;600;700&display=swap">
<style>
:root { --bg: #0d0a09; --ink: #f3ece4; --mute: #a39a91; --acc: #ff5a26; --line: rgba(243,236,228,.16); --pad: clamp(16px, 4vw, 56px); --serif: "Playfair Display", Georgia, serif; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 "Manrope", system-ui, sans-serif; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* top bar */
.top { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--pad); background: linear-gradient(rgba(13,10,9,.85), transparent); }
.logo { font: italic 400 22px var(--serif); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo i { width: 12px; height: 12px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 14px var(--acc); }
.top nav { display: flex; gap: clamp(14px, 2.4vw, 32px); font-size: 14px; }
.top nav a { text-decoration: none; opacity: .8; }
.top nav a:hover { opacity: 1; }

/* the well: sticky 3D scene, scroll drives the camera */
#well { position: relative; height: 750vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; --cy: 45%; overflow: hidden; perspective-origin: 50% var(--cy); background: radial-gradient(ellipse at 50% 60%, #1c120e, var(--bg) 70%); }
.world { position: absolute; left: 50%; top: var(--cy); width: 0; height: 0; transform-style: preserve-3d; }
.ring { position: absolute; transform-style: preserve-3d; }
.tile { position: absolute; left: -180px; top: -180px; width: 360px; height: 360px; border-radius: 4px; background: #241c18 center / cover; backface-visibility: hidden; }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(13,10,9,calc(var(--d) + var(--dim, 0))); }
.floor { position: absolute; left: -760px; top: -760px; width: 1520px; height: 1520px; border-radius: 50%; background: radial-gradient(circle, #ffd2b8 0, var(--acc) 14%, rgba(255,90,38,.5) 30%, rgba(255,90,38,.12) 50%, transparent 68%); }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(13,10,9,.85) 100%); }

/* first screen */
.hero { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--pad) 7vh; pointer-events: none; background: linear-gradient(20deg, rgba(13,10,9,.8), transparent 50%); }
.kicker { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.hero h1 { margin: .02em 0 .08em -.04em; font: italic 400 clamp(84px, 17vw, 250px)/.9 var(--serif); letter-spacing: -.02em; }
.lead { margin: 0; max-width: 30ch; font-size: clamp(16px, 1.5vw, 20px); color: var(--ink); }
.cue { position: absolute; right: var(--pad); bottom: 7vh; font-size: 13px; color: var(--mute); writing-mode: vertical-rl; letter-spacing: .1em; }
.cue::after { content: ""; display: inline-block; width: 1px; height: 56px; margin-top: 12px; background: var(--ink); animation: drip 2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* hall of releases */
.hall { position: absolute; inset: 0; z-index: 3; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.hall.on { opacity: 1; visibility: visible; }
.hall::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(13,10,9,.85), transparent 38%, transparent 70%, rgba(13,10,9,.7)); }
.card { position: absolute; left: 50%; top: 45%; width: min(52vh, 34vw); transform: translate(-50%, -50%); }
.card.in { animation: rise .8s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, -50%) perspective(900px) translateZ(-320px) rotateY(-24deg); } }
.card-in { --lvl: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 calc(var(--lvl) * 120px) rgba(255,90,38,.6); }
.card canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.info { position: absolute; left: var(--pad); bottom: 7vh; width: min(30vw, 400px); }
.num { margin: 0; font-size: 14px; color: var(--mute); display: flex; align-items: center; gap: 10px; }
.num b { color: var(--ink); font-weight: 600; }
.num::before { content: ""; width: 28px; height: 1px; background: var(--acc); }
.info h2 { margin: .1em 0 .1em; font: 400 clamp(36px, 4.4vw, 68px)/1 var(--serif); }
.meta { margin: 0 0 14px; color: var(--mute); }
.meta b { color: var(--ink); font-weight: 600; }
.tracks { margin: 0 0 22px; padding: 0; list-style: none; counter-reset: t; font-size: 14px; }
.tracks li { counter-increment: t; padding: 5px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; }
.tracks li::before { content: counter(t, decimal-leading-zero); color: var(--mute); }
.ctrl { display: flex; gap: 10px; }
.btn { min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: rgba(13,10,9,.5); }
.btn:hover { border-color: var(--ink); }
#play { background: var(--acc); border-color: var(--acc); color: #160a05; font-weight: 700; display: flex; align-items: center; gap: 10px; }
#play::before { content: ""; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
#play[aria-pressed="true"]::before { width: 10px; height: 12px; border: 0; border-left: 3px solid; border-right: 3px solid; }
.arrow { width: 44px; padding: 0; }
.list { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); }
.list ol { margin: 0; padding: 0; list-style: none; text-align: right; }
.list button { display: flex; align-items: center; justify-content: flex-end; gap: 10px; width: 100%; padding: 5px 0; border: 0; background: none; font-size: 14px; color: var(--mute); }
.list button::after { content: ""; width: 14px; height: 1px; background: currentColor; transition: width .3s; }
.list button:hover, .list button[aria-current="true"] { color: var(--ink); }
.list button[aria-current="true"]::after { width: 40px; background: var(--acc); }

/* below the scene */
.sec { padding: clamp(72px, 12vw, 150px) var(--pad); border-top: 1px solid var(--line); }
.sec h2 { margin: 0 0 24px; font: 400 clamp(40px, 6vw, 88px)/1 var(--serif); }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 8vw; }
.about p { margin: 0 0 1em; max-width: 52ch; font-size: 18px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.facts div { border-top: 1px solid var(--line); padding-top: 14px; }
.facts dt { font: 400 clamp(36px, 4vw, 56px)/1 var(--serif); color: var(--acc); }
.facts dd { margin: 6px 0 0; color: var(--mute); font-size: 14px; }
.news { background: #150f0c; }
.news p.sub { max-width: 46ch; color: var(--mute); margin: 0 0 32px; }
form { display: grid; grid-template-columns: 1fr auto; gap: 12px; max-width: 640px; }
form label.f { grid-column: 1 / -1; font-size: 14px; color: var(--mute); }
input[type="email"] { min-height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; }
input[type="email"][aria-invalid="true"] { border-color: var(--acc); }
form .btn { min-height: 52px; background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 700; }
.chk { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--mute); }
.chk input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--acc); flex: none; }
#err { grid-column: 1 / -1; min-height: 1.4em; margin: 0; color: var(--acc); font-size: 14px; }
#done { font: italic 400 clamp(24px, 3vw, 36px)/1.2 var(--serif); margin: 0; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px var(--pad); border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; }

@media (max-width: 760px) {
  .top nav a:not(:last-child) { display: none; }
  .cue { display: none; }
  .stage { --cy: 26%; }
  .card { top: 76px; width: min(72vw, 40vh); transform: translateX(-50%); }
  @keyframes rise { from { opacity: 0; transform: translateX(-50%) perspective(900px) translateZ(-320px) rotateY(-24deg); } }
  .hall::before { background: linear-gradient(0deg, rgba(13,10,9,.92) 30%, transparent 62%); }
  .info { left: var(--pad); right: var(--pad); bottom: 3.5vh; width: auto; }
  .info h2 { font-size: 36px; }
  .meta { margin-bottom: 8px; font-size: 14px; }
  .tracks { margin-bottom: 14px; font-size: 13px; }
  .tracks li { padding: 3px 0; }
  .tracks li:nth-child(n+4) { display: none; }
  .list { display: none; }
  .about, .facts { grid-template-columns: 1fr; }
  form { grid-template-columns: 1fr; }
}
@media (min-width: 761px) { .arrow { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .card.in, .cue::after { animation: none; }
  .hall { transition: none; }
}
</style>
</head>
<body>
<header class="top">
  <a class="logo" href="#well"><i aria-hidden="true"></i>Отзвук</a>
  <nav aria-label="Разделы">
    <a href="#hall" id="toHall">Релизы</a>
    <a href="#about">О лейбле</a>
    <a href="#news">Рассылка</a>
  </nav>
</header>

<main>
<section id="well" aria-label="Релизы лейбла">
  <div class="stage" id="stage">
    <div class="world" id="world" aria-hidden="true"></div>
    <div class="hero" id="hero">
      <p class="kicker">Независимый лейбл · электроника, эмбиент, инди</p>
      <h1>Отзвук</h1>
      <p class="lead">Десять пластинок лейбла. Прокрутите, чтобы спуститься</p>
      <span class="cue" aria-hidden="true">вниз</span>
    </div>
    <div class="hall" id="hall">
      <div class="card" id="card"><div class="card-in" id="cardIn"><canvas id="cv" width="640" height="640" role="img"></canvas></div></div>
      <div class="info">
        <p class="num"><span><b id="n">01</b> / <span id="total">10</span></span></p>
        <h2 id="title">Низкое солнце</h2>
        <p class="meta" id="meta"></p>
        <ol class="tracks" id="tracks"></ol>
        <div class="ctrl">
          <button class="btn arrow" id="prev" type="button" aria-label="Предыдущий релиз">←</button>
          <button class="btn" id="play" type="button" aria-pressed="false">Слушать</button>
          <button class="btn arrow" id="next" type="button" aria-label="Следующий релиз">→</button>
        </div>
      </div>
      <nav class="list" aria-label="Все релизы"><ol id="list"></ol></nav>
    </div>
    <p class="sr" id="live" aria-live="polite"></p>
  </div>
</section>

<section class="sec" id="about">
  <h2>О лейбле</h2>
  <div class="about">
    <div>
      <p>«Отзвук» выпускает электронику, эмбиент и инди, которые хочется слушать целиком, от первой дорожки до последней. Нас четверо, мы сами сводим, печатаем и упаковываем пластинки.</p>
      <p>Каждый релиз выходит на виниле тиражом 300 копий и на всех площадках в тот же день. Демо принимаем круглый год, отвечаем на каждое письмо.</p>
    </div>
    <dl class="facts">
      <div><dt>10</dt><dd>пластинок с 2019 года</dd></div>
      <div><dt>300</dt><dd>копий в тираже</dd></div>
      <div><dt>14</dt><dd>артистов в каталоге</dd></div>
    </dl>
  </div>
</section>

<section class="sec news" id="news">
  <h2>Рассылка</h2>
  <p class="sub">Одно письмо в месяц: новый релиз, предзаказ винила раньше всех и закулисье записи.</p>
  <form id="sub" novalidate>
    <label class="f" for="email">Почта</label>
    <input id="email" name="email" type="email" autocomplete="email" placeholder="you@example.ru" aria-describedby="err">
    <button class="btn" type="submit">Подписаться</button>
    <label class="chk"><input id="agree" type="checkbox"> <span>Соглашаюсь на обработку персональных данных по <a href="#privacy">политике конфиденциальности</a></span></label>
    <p id="err" role="alert"></p>
  </form>
  <p id="done" tabindex="-1" hidden>Готово. Первое письмо придёт вместе со следующим релизом.</p>
</section>
</main>

<footer>
  <span>© 2026 «Отзвук». Вымышленный лейбл, демо-страница.</span>
  <span>Обложки и звук сгенерированы кодом</span>
</footer>

<script>
// Releases. s = sound: b bpm, r root (MIDI), s scale, k kick, h hats (x closed, o open),
// ba bass degrees, l lead degrees (16 steps each), c chord degree per bar, w/lw/p waveforms, cut filter Hz
const REL = [
  { t: "Низкое солнце", a: "Мира Талая", y: 2026, g: "Эмбиент", tr: ["Пыль над полем", "Шесть утра", "Тёплый провод"], art: 0, pal: ["#2a1410", "#ffb36b", "#ff5a26", "#ffe8d2"],
    s: { b: 72, r: 50, s: "maj", k: "", h: "", ba: "0.......", l: "4...2...0.....2.", c: [0, 3, 5, 4], w: "sine", lw: "sine", p: "triangle", cut: 900 } },
  { t: "Бетон и мох", a: "Сухой док", y: 2026, g: "Даб-техно", tr: ["Причал", "Сырость", "Бетон и мох", "Отлив"], art: 5, pal: ["#1d2420", "#7fa38a", "#c9d6b0", "#eef2e6"],
    s: { b: 118, r: 41, s: "min", k: "x...x...x...x...", h: "..x...x...x...x.", ba: "0..0...0..0.0...", l: "", c: [0, 0, 5, 3], w: "sine", p: "sawtooth", cut: 700 } },
  { t: "Стеклянный сад", a: "Ольга Ветлугина", y: 2025, g: "Неоклассика", tr: ["Оранжерея", "Иней", "Стеклянный сад"], art: 1, pal: ["#e9eef0", "#5a8fa6", "#1f3b4d", "#16252f"],
    s: { b: 84, r: 45, s: "min", k: "", h: "", ba: "0.......4.......", l: "0.2.4.7.4.2.0.2.", c: [0, 5, 3, 4], w: "triangle", lw: "triangle", p: "sine", cut: 2000 } },
  { t: "Ночной рейс", a: "Тихоход", y: 2025, g: "Синти-поп", tr: ["Взлёт", "Ночной рейс", "Огни внизу", "Посадка"], art: 4, pal: ["#140f2e", "#ff4fa3", "#5ad1ff", "#f6e9ff"],
    s: { b: 108, r: 45, s: "min", k: "x...x...x...x...", h: "x.x.x.x.x.x.x.x.", ba: "0.0.0.0.0.0.0.0.", l: "0..2..4.7..4..2.", c: [0, 5, 2, 6], w: "sawtooth", lw: "square", p: "sawtooth", cut: 1100 } },
  { t: "Сигнал", a: "Пульсар Б", y: 2025, g: "Техно", tr: ["Несущая", "Сигнал", "Помехи"], art: 9, pal: ["#0b0b0b", "#e8ff3a", "#ff3b3b", "#f4f4f4"],
    s: { b: 128, r: 36, s: "phr", k: "x...x...x...x...", h: "..o...o...o...o.", ba: ".0.0.0.0.0.0.0.1", l: "", c: [0, 0, 1, 0], w: "square", p: "triangle", cut: 500 } },
  { t: "Озеро Ворон", a: "Кира Сон", y: 2024, g: "Фолктроника", tr: ["Берег", "Озеро Ворон", "Лодка без вёсел"], art: 3, pal: ["#0f2530", "#9fd0c7", "#f2c14e", "#e8f4f1"],
    s: { b: 96, r: 52, s: "dor", k: "x.....x...x.....", h: "....x.......x...", ba: "0...2...4...2...", l: "4.2.0...4.2.1...", c: [0, 3, 4, 3], w: "triangle", lw: "triangle", p: "sine", cut: 1500 } },
  { t: "Мелкий дождь", a: "Двор", y: 2024, g: "Лоу-фай хаус", tr: ["Капли", "Мелкий дождь", "Под козырьком", "Зонт"], art: 2, pal: ["#d9cbb4", "#3b5bdb", "#e8590c", "#1d1a16"],
    s: { b: 120, r: 48, s: "dor", k: "x...x...x...x...", h: "..x...x...x...x.", ba: "0..0..0.3..3..3.", l: "", c: [0, 3, 1, 4], w: "sine", p: "sawtooth", cut: 1300 } },
  { t: "Ртуть", a: "ЛОТОС-7", y: 2024, g: "Электро", tr: ["Ртуть", "Термометр", "Холодный цех"], art: 6, pal: ["#c7ccd1", "#262a2e", "#7a00ff", "#111111"],
    s: { b: 124, r: 40, s: "min", k: "x..x..x...x..x..", h: "x.x.x.x.x.x.x.x.", ba: "00.0.30.0.0.5.0.", l: "", c: [0, 0, 3, 3], w: "sawtooth", p: "square", cut: 1400 } },
  { t: "Север и юг", a: "Длинная тень", y: 2023, g: "Даунтемпо", tr: ["Север", "Перегон", "Юг"], art: 7, pal: ["#f0e6d2", "#1e4d8c", "#d9412b", "#14213d"],
    s: { b: 88, r: 43, s: "min", k: "x.......x.x.....", h: "..x...x...x...xx", ba: "0.....0.3.......", l: "..4...2...0.....", c: [0, 5, 3, 6], w: "triangle", lw: "sine", p: "triangle", cut: 1000 } },
  { t: "Последний трамвай", a: "Город спит", y: 2023, g: "Инди-электроника", tr: ["Кольцо", "Последний трамвай", "Депо", "Утро"], art: 8, pal: ["#3a0d12", "#ffcf99", "#ff5a26", "#fff1e0"],
    s: { b: 112, r: 50, s: "maj", k: "x...x...x...x...", h: "x.x.x.x.x.x.x.x.", ba: "0...0...0..30...", l: "7.4.2.4.7.4.9.7.", c: [0, 4, 5, 3], w: "triangle", lw: "triangle", p: "sawtooth", cut: 1200 } },
];
const N = REL.length, DESC = 1.5, STEP = .5;           // scroll in viewports: descent, one release
const RINGS = 6, PER = 10, R = 620, GAP = 400, FLOOR = RINGS * GAP + 20;
const reduce = matchMedia("(prefers-reduced-motion: reduce)").matches;
const $ = (id) => document.getElementById(id);
const well = $("well"), stage = $("stage"), world = $("world"), hero = $("hero"), hall = $("hall");
const clamp = (v, a, b) => Math.min(b, Math.max(a, v));
const smooth = (a, b, v) => { const x = clamp((v - a) / (b - a), 0, 1); return x * x * (3 - 2 * x); };

/* ---------- generative covers ---------- */
function rng(seed) { return () => (seed = (seed * 16807) % 2147483647) / 2147483647; }
const ART = [
  (x, S, p) => { // sunset with cut stripes
    const g = x.createLinearGradient(0, S * .22, 0, S * .82); g.addColorStop(0, p[1]); g.addColorStop(1, p[2]);
    x.fillStyle = g; x.beginPath(); x.arc(S / 2, S * .5, S * .3, 0, 7); x.fill();
    x.fillStyle = p[0]; for (let k = 0; k < 7; k++) x.fillRect(0, S * .52 + k * S * .042, S, 2 + k * 2.4);
  },
  (x, S, p) => { // concentric circles
    let i = 0; x.lineWidth = S * .012;
    for (let r = S * .44; r > 4; r -= S * .03) { x.strokeStyle = i++ % 3 ? p[1] : p[2]; x.beginPath(); x.arc(S * .5, S * .44, r, 0, 7); x.stroke(); }
  },
  (x, S, p, R) => { // halftone dots
    const cx = S * (.2 + R() * .6), cy = S * (.2 + R() * .4), n = 14, c = S / n;
    for (let i = 0; i < n; i++) for (let j = 0; j < n; j++) {
      const px = (i + .5) * c, py = (j + .5) * c, d = Math.hypot(px - cx, py - cy) / S;
      x.fillStyle = R() < .07 ? p[2] : p[1]; x.beginPath(); x.arc(px, py, Math.max(1, c * .48 * (1 - d * 1.4)), 0, 7); x.fill();
    }
  },
  (x, S, p, R) => { // flow field
    x.fillStyle = p[2]; x.beginPath(); x.arc(S * .72, S * .26, S * .09, 0, 7); x.fill();
    x.strokeStyle = p[1]; x.globalAlpha = .55; x.lineWidth = 1.2;
    for (let i = 0; i < 420; i++) {
      let px = R() * S, py = R() * S; x.beginPath(); x.moveTo(px, py);
      for (let k = 0; k < 26; k++) { const a = Math.sin(px * .011) * 2 + Math.cos(py * .016) * 2; px += Math.cos(a) * 4; py += Math.sin(a) * 4; x.lineTo(px, py); }
      x.stroke();
    }
    x.globalAlpha = 1;
  },
  (x, S, p) => { // waves
    x.lineWidth = 2.2;
    for (let k = 0; k < 22; k++) {
      const y0 = S * .1 + k * S * .034, amp = S * .0045 * k; x.strokeStyle = k % 5 ? p[1] : p[2]; x.beginPath();
      for (let px = 0; px <= S; px += 8) x.lineTo(px, y0 + Math.sin(px * .024 + k * .5) * amp);
      x.stroke();
    }
  },
  (x, S, p, R) => { // diagonal bands
    x.save(); x.translate(S / 2, S / 2); x.rotate(-Math.PI / 4);
    for (let v = -S; v < S;) { const w = S * (.02 + R() * .09); x.fillStyle = p[Math.floor(R() * 3)]; x.fillRect(v, -S, w, 2 * S); v += w; }
    x.restore();
  },
  (x, S, p) => { // moire
    x.lineWidth = 1.6;
    [[.42, .44, p[1]], [.58, .5, p[2]]].forEach(([u, v, c]) => {
      x.strokeStyle = c; for (let r = 6; r < S * .5; r += 8) { x.beginPath(); x.arc(S * u, S * v, r, 0, 7); x.stroke(); }
    });
  },
  (x, S, p, R) => { // bauhaus blocks
    const c = S / 3;
    for (let i = 0; i < 3; i++) for (let j = 0; j < 2; j++) {
      const px = i * c, py = j * c + S * .06, k = Math.floor(R() * 4); x.fillStyle = R() < .5 ? p[1] : p[2]; x.beginPath();
      if (k === 0) x.rect(px + 8, py + 8, c - 16, c - 16);
      else if (k === 1) { x.moveTo(px + 8, py + c - 8); x.arc(px + 8, py + c - 8, c - 16, -Math.PI / 2, 0); }
      else if (k === 2) x.arc(px + c / 2, py + c / 2, c / 2 - 8, 0, 7);
      else x.arc(px + c / 2, py + c - 8, c / 2 - 8, Math.PI, 0);
      x.fill();
    }
  },
  (x, S, p, R, r) => { // one huge letter
    x.textAlign = "center"; x.textBaseline = "middle"; x.font = `italic 400 ${S * .9}px "Playfair Display", serif`;
    x.lineWidth = 3; x.strokeStyle = p[2]; x.strokeText(r.t[0], S * .56, S * .42);
    x.fillStyle = p[1]; x.fillText(r.t[0], S * .5, S * .38); x.textAlign = "left"; x.textBaseline = "alphabetic";
  },
  (x, S, p, R) => { // spectrum bars
    const n = 24, w = S * .84 / n;
    for (let i = 0; i < n; i++) {
      const h = S * (.08 + R() * .5) * (1 - Math.abs(i - n / 2) / n), px = S * .08 + i * w;
      x.fillStyle = p[1]; x.fillRect(px, S * .62 - h, w * .6, h); x.fillStyle = p[2]; x.fillRect(px, S * .62 - h - 10, w * .6, 4);
    }
  },
];
function drawCover(r, i, S = 480) {
  const c = document.createElement("canvas"); c.width = c.height = S;
  const x = c.getContext("2d"), R = rng(i * 977 + 13), p = r.pal;
  x.fillStyle = p[0]; x.fillRect(0, 0, S, S);
  ART[r.art](x, S, p, R, r);
  for (let k = 0; k < 1600; k++) { x.fillStyle = R() < .5 ? "rgba(255,255,255,.07)" : "rgba(0,0,0,.09)"; x.fillRect(R() * S, R() * S, 1.5, 1.5); }
  x.fillStyle = p[3]; x.font = `600 ${S * .032}px Manrope, sans-serif`;
  x.fillText("ОТЗ " + String(i + 1).padStart(3, "0"), S * .06, S * .09);
  x.textAlign = "right"; x.fillText(r.y, S * .94, S * .09); x.textAlign = "left";
  x.font = `400 ${S * .092}px "Playfair Display", serif`;
  const lines = []; let line = "";
  for (const w of r.t.split(" ")) { const tryL = line ? line + " " + w : w; if (line && x.measureText(tryL).width > S * .84) { lines.push(line); line = w; } else line = tryL; }
  lines.push(line);
  lines.forEach((l, k) => x.fillText(l, S * .06, S * .84 - (lines.length - 1 - k) * S * .1));
  x.font = `500 ${S * .036}px Manrope, sans-serif`; x.fillText(r.a, S * .06, S * .93);
  return c;
}
let covers = [];
const tiles = [];

/* ---------- build the well ---------- */
const rings = [];
for (let k = 0; k < RINGS; k++) {
  const ring = document.createElement("div"); ring.className = "ring";
  for (let j = 0; j < PER; j++) {
    const t = document.createElement("div"), rel = (j + (RINGS - 1 - k) * 3) % N; // bottom ring: tile j = release j
    t.className = "tile"; t.style.setProperty("--d", (.08 + (RINGS - 1 - k) * .1).toFixed(2));
    t.style.transform = `rotateY(${j * 360 / PER}deg) translateZ(${-R}px)`;
    t.style.backgroundColor = REL[rel].pal[0]; t.dataset.rel = rel;
    ring.appendChild(t); tiles.push(t);
  }
  world.appendChild(ring); rings.push({ el: ring, y: k * GAP + GAP / 2, a: k === RINGS - 1 ? 0 : k * 17, v: k === RINGS - 1 ? 0 : (k % 2 ? -1 : 1) * (4 + k * 1.3) });
}
const floor = document.createElement("div"); floor.className = "floor";
floor.style.transform = `translateY(${FLOOR}px) rotateX(90deg)`; world.appendChild(floor);

function buildCovers() {
  covers = REL.map((r, i) => drawCover(r, i));
  covers.forEach((c, i) => c.toBlob((b) => {
    const url = URL.createObjectURL(b);
    tiles.forEach((t) => { if (+t.dataset.rel === i) t.style.backgroundImage = `url(${url})`; });
  }, "image/jpeg", .86));
  paintCard();
}
// canvas needs the webfonts (with Cyrillic) before drawing text
const fontsReady = Promise.all([
  document.fonts.load('400 40px "Playfair Display"', "Отзвук"), document.fonts.load('italic 400 40px "Playfair Display"', "О"), document.fonts.load("600 20px Manrope", "Отзвук"),
]).catch(() => {});
covers = REL.map((r, i) => drawCover(r, i));
Promise.race([fontsReady, new Promise((r) => setTimeout(r, 2000))]).then(buildCovers);

/* ---------- hall UI ---------- */
const list = $("list"), cv = $("cv"), cx = cv.getContext("2d"), cardIn = $("cardIn"), card = $("card"), playBtn = $("play");
$("total").textContent = N;
REL.forEach((r, i) => {
  const li = document.createElement("li"), b = document.createElement("button");
  b.type = "button"; b.textContent = r.t; b.addEventListener("click", () => go(i));
  li.appendChild(b); list.appendChild(li);
});
let active = -1;
function setRelease(i, announce) {
  if (i === active) return;
  active = i; stopSound();
  const r = REL[i];
  $("n").textContent = String(i + 1).padStart(2, "0");
  $("title").textContent = r.t;
  $("meta").innerHTML = `<b>${r.a}</b> · ${r.y} · ${r.g}`;
  $("tracks").innerHTML = r.tr.map((t) => `<li>${t}</li>`).join("");
  cv.setAttribute("aria-label", `Обложка релиза «${r.t}», ${r.a}`);
  list.querySelectorAll("button").forEach((b, k) => b.setAttribute("aria-current", k === i ? "true" : "false"));
  if (announce) $("live").textContent = `Релиз ${i + 1} из ${N}: «${r.t}», ${r.a}, ${r.y}`;
  if (!reduce) { card.classList.remove("in"); void card.offsetWidth; card.classList.add("in"); }
  paintCard();
}
function paintCard(level) {
  if (active < 0 || !covers[active]) return;
  const W = cv.width; cx.drawImage(covers[active], 0, 0, W, W);
  if (!playing) return;
  an.getByteFrequencyData(fdata);
  const g = cx.createLinearGradient(0, W * .6, 0, W); g.addColorStop(0, "rgba(0,0,0,0)"); g.addColorStop(1, "rgba(0,0,0,.65)");
  cx.fillStyle = g; cx.fillRect(0, W * .6, W, W * .4);
  const n = 32, bw = W / n; cx.fillStyle = REL[active].pal[2];
  for (let i = 0; i < n; i++) { const v = Math.min(1, fdata[1 + Math.floor(i * 1.6)] / 220); cx.fillRect(i * bw + 3, W - 10 - v * W * .32, bw - 6, 4 + v * W * .32); }
}

/* ---------- scroll -> camera ---------- */
let unit = innerHeight, top0 = 0, P = 800, pNow = 0, dimNow = -1, t = 0, tS = 0, yaw = -70, mx = 0, my = 0, last = 0, running = false, visible = true;
function measure() {
  unit = well.offsetHeight / (1 + DESC + N * STEP); top0 = well.offsetTop;
  P = Math.min(innerHeight * .95, innerWidth * 1.1);
  onScroll();
}
function onScroll() {
  const y = scrollY - top0;
  t = clamp(y / (DESC * unit), 0, 1);
  if (t >= 1) setRelease(clamp(Math.floor((y - DESC * unit) / (STEP * unit)), 0, N - 1), true);
}
function go(i) {
  i = (i + N) % N;
  scrollTo({ top: top0 + DESC * unit + (i + .3) * STEP * unit, behavior: reduce ? "auto" : "smooth" });
}
function frame(now) {
  if (!running) return;
  const dt = Math.min(.05, (now - last) / 1000 || 0); last = now;
  tS = reduce ? (t < .6 ? 0 : 1) : tS + (t - tS) * Math.min(1, dt * 6);
  const e = tS < .5 ? 2 * tS * tS : 1 - (-2 * tS + 2) ** 2 / 2;   // ease in-out
  const camY = -400 + (FLOOR - 220 + 400) * e;
  const pitch = -90 * (1 - smooth(.55, 1, tS)) + my * 4 * (1 - tS);
  const target = Math.max(active, 0) * 36 * smooth(.6, 1, tS) - 70 * (1 - e) + mx * 6 * (1 - tS);
  yaw = reduce ? target : yaw + (target - yaw) * Math.min(1, dt * 5);
  const spin = reduce ? 0 : 1 - smooth(.3, .95, tS);
  rings.forEach((r) => { r.a += r.v * dt * spin; r.el.style.transform = `translateY(${r.y}px) rotateY(${r.a}deg)`; });
  const pc = P * (1 - .28 * smooth(.6, 1, tS)), dim = (.5 * smooth(.7, 1, tS)).toFixed(2);
  if (Math.abs(pc - pNow) > .5) { pNow = pc; stage.style.perspective = pc + "px"; }
  if (dim !== dimNow) { dimNow = dim; world.style.setProperty("--dim", dim); }
  world.style.transform = `translateZ(${pNow}px) rotateX(${pitch}deg) rotateY(${-yaw}deg) translateY(${-camY}px)`;
  const h = 1 - smooth(0, .3, tS); hero.style.opacity = h; hero.style.visibility = h < .01 ? "hidden" : "visible";
  hall.classList.toggle("on", tS > .82);
  if (playing) {
    an.getFloatTimeDomainData(tdata); let s = 0; for (const v of tdata) s += v * v;
    level += (Math.min(1, Math.sqrt(s / tdata.length) * 8) - level) * .3;
    cardIn.style.setProperty("--lvl", level.toFixed(3));
    if (!reduce) cardIn.style.transform = `scale(${1 + level * .06})`;
    paintCard();
  }
  requestAnimationFrame(frame);
}
function updateLoop() {
  const want = visible && !document.hidden;
  if (want && !running) { running = true; last = performance.now(); requestAnimationFrame(frame); }
  running = want;
}
new IntersectionObserver(([en]) => { visible = en.isIntersecting; updateLoop(); }).observe(well);
document.addEventListener("visibilitychange", () => { if (document.hidden) stopSound(); updateLoop(); });
addEventListener("scroll", onScroll, { passive: true });
addEventListener("resize", measure);
addEventListener("pointermove", (ev) => { if (ev.pointerType === "mouse") { mx = ev.clientX / innerWidth * 2 - 1; my = ev.clientY / innerHeight * 2 - 1; } });
$("prev").addEventListener("click", () => go(active - 1));
$("next").addEventListener("click", () => go(active + 1));
$("toHall").addEventListener("click", (ev) => { ev.preventDefault(); go(0); });
document.addEventListener("keydown", (ev) => {
  if (!hall.classList.contains("on") || ev.target.closest("input, textarea")) return;
  if (ev.key === "ArrowRight") { ev.preventDefault(); go(active + 1); }
  if (ev.key === "ArrowLeft") { ev.preventDefault(); go(active - 1); }
});
let tx = 0, ty = 0;
stage.addEventListener("touchstart", (ev) => { tx = ev.touches[0].clientX; ty = ev.touches[0].clientY; }, { passive: true });
stage.addEventListener("touchend", (ev) => {
  const dx = ev.changedTouches[0].clientX - tx, dy = ev.changedTouches[0].clientY - ty;
  if (hall.classList.contains("on") && Math.abs(dx) > 50 && Math.abs(dx) > Math.abs(dy) * 1.5) go(active + (dx < 0 ? 1 : -1));
});

/* ---------- sound: a short generative loop per release (Web Audio) ---------- */
const SCALES = { maj: [0, 2, 4, 5, 7, 9, 11], min: [0, 2, 3, 5, 7, 8, 10], dor: [0, 2, 3, 5, 7, 9, 10], phr: [0, 1, 3, 5, 7, 8, 10] };
let ac, out, an, noise, bus, timer = 0, stp = 0, nt = 0, snd, playing = false, level = 0, fdata, tdata;
const hz = (m) => 440 * 2 ** ((m - 69) / 12);
const note = (d) => { const sc = SCALES[snd.s]; return snd.r + sc[((d % 7) + 7) % 7] + 12 * Math.floor(d / 7); };
function initAudio() {
  if (ac) return;
  ac = new (window.AudioContext || window.webkitAudioContext)();
  out = ac.createGain(); out.gain.value = .32;
  const comp = ac.createDynamicsCompressor(); an = ac.createAnalyser(); an.fftSize = 512;
  out.connect(comp); comp.connect(an); an.connect(ac.destination);
  fdata = new Uint8Array(an.frequencyBinCount); tdata = new Float32Array(an.fftSize);
  noise = ac.createBuffer(1, ac.sampleRate, ac.sampleRate); const d = noise.getChannelData(0);
  for (let i = 0; i < d.length; i++) d[i] = Math.random() * 2 - 1;
}
function envelope(g, t0, a, peak, dec) {
  g.gain.setValueAtTime(.0001, t0); g.gain.exponentialRampToValueAtTime(peak, t0 + a); g.gain.exponentialRampToValueAtTime(.0001, t0 + a + dec);
}
function voice(type, f, t0, a, peak, dec, cut) {
  const o = ac.createOscillator(), g = ac.createGain(); o.type = type; o.frequency.value = f;
  let n = o; if (cut) { const fl = ac.createBiquadFilter(); fl.frequency.value = cut; o.connect(fl); n = fl; }
  n.connect(g); g.connect(bus); envelope(g, t0, a, peak, dec); o.start(t0); o.stop(t0 + a + dec + .05); return o;
}
function kick(t0) { const o = voice("sine", 130, t0, .003, .8, .3); o.frequency.exponentialRampToValueAtTime(42, t0 + .12); }
function hat(t0, open) {
  const s = ac.createBufferSource(), f = ac.createBiquadFilter(), g = ac.createGain();
  s.buffer = noise; f.type = "highpass"; f.frequency.value = 7000; s.connect(f); f.connect(g); g.connect(bus);
  envelope(g, t0, .002, open ? .1 : .07, open ? .18 : .04); s.start(t0); s.stop(t0 + .25);
}
function tick() {
  const sp = 60 / snd.b / 4;                         // one 16th note, seconds
  while (nt < ac.currentTime + .12) {
    const i = stp % 16, c = snd.c[(stp >> 4) % 4], h = snd.h[i], b = snd.ba[i], l = snd.l[i];
    if (snd.k[i] === "x") kick(nt);
    if (h === "x" || h === "o") hat(nt, h === "o");
    if (b && b !== ".") voice(snd.w, hz(note(c + +b)), nt, .008, .26, sp * 1.8, snd.cut);
    if (l && l !== ".") voice(snd.lw, hz(note(c + +l) + 24), nt, .006, .07, sp * 2.5, 3200);
    if (i === 0) [0, 2, 4].forEach((d) => voice(snd.p, hz(note(c + d) + 12), nt, sp * 6, .045, sp * 12, snd.cut * 1.6));
    nt += sp; stp++;
  }
}
function playSound() {
  initAudio(); ac.resume();
  snd = REL[active].s; bus = ac.createGain(); bus.connect(out);
  stp = 0; nt = ac.currentTime + .06; tick(); timer = setInterval(tick, 25);
  playing = true; playBtn.setAttribute("aria-pressed", "true"); playBtn.textContent = "Пауза";
}
function stopSound() {
  if (!playing) return;
  clearInterval(timer); playing = false; level = 0;
  const b = bus; b.gain.setTargetAtTime(0, ac.currentTime, .03); setTimeout(() => b.disconnect(), 400);
  playBtn.setAttribute("aria-pressed", "false"); playBtn.textContent = "Слушать";
  cardIn.style.setProperty("--lvl", 0); cardIn.style.transform = ""; paintCard();
}
playBtn.addEventListener("click", () => (playing ? stopSound() : playSound()));

/* ---------- newsletter ---------- */
$("sub").addEventListener("submit", (ev) => {
  ev.preventDefault();
  const email = $("email"), agree = $("agree"), err = $("err");
  const okMail = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(email.value.trim());
  email.setAttribute("aria-invalid", okMail ? "false" : "true");
  if (!okMail) { err.textContent = "Проверьте почту: похоже, в адресе опечатка."; email.focus(); return; }
  if (!agree.checked) { err.textContent = "Без согласия на обработку данных мы не можем отправлять письма."; agree.focus(); return; }
  err.textContent = "";
  // fetch("/api/subscribe", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ email: email.value.trim() }) });
  ev.target.hidden = true; const done = $("done"); done.hidden = false; done.focus();
});

setRelease(0, false);
measure();
updateLoop();
</script>
</body>
</html>

Похожие