:root {
  --bg: #0a0a0b;
  --panel: #141518;
  --panel-2: #1b1d21;
  --line: #2a2d33;
  --text: #f2f2f3;
  --muted: #9a9ca3;
  --accent: #5fe3f0;
  --accent-ink: #062a2e;
  --violet: #a08cff;
  --ok: #46d68a;
  --warn: #f0b44c;
  --bad: #ff6b6b;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
header.site .brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
header.site .brand img { width: 34px; height: 34px; }
header.site nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
header.site nav a { color: var(--muted); }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--text); text-decoration: none; }
main { padding: 48px 0 72px; }
h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.01em; }
h2 { font-size: 24px; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 8px; }
p.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hero { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.hero .logo { max-width: min(340px, 80vw); margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card.feature { display: flex; gap: 18px; align-items: center; }
.card.feature img { width: 96px; height: 96px; flex: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font: inherit; font-weight: 500; cursor: pointer;
}
.btn:hover { border-color: #3a3e46; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font: inherit;
}
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
textarea { min-height: 110px; resize: vertical; }
.key-input { font-family: ui-monospace, Menlo, monospace; letter-spacing: .05em; text-transform: uppercase; }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.notice.ok { border-color: #275c40; color: var(--ok); }
.notice.bad { border-color: #6a2a2a; color: var(--bad); }
.notice.warn { border-color: #6a4f1f; color: var(--warn); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; background: var(--panel-2); border: 1px solid var(--line); }
.badge.active { color: var(--ok); border-color: #275c40; }
.badge.expired, .badge.revoked { color: var(--bad); border-color: #6a2a2a; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.stat { background: var(--panel-2); border-radius: 10px; padding: 12px 14px; }
.stat .label { font-size: 13px; color: var(--muted); }
.stat .value { font-size: 22px; font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
.table-wrap { overflow-x: auto; }
.key-reveal { font-family: ui-monospace, Menlo, monospace; font-size: 18px; letter-spacing: .06em; word-break: break-all; }
.hidden { display: none !important; }
footer.site { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
section + section { margin-top: 40px; }
@media (min-width: 820px) {
  .hero { grid-template-columns: 1.2fr 1fr; }
  .hero .logo { margin: 0; justify-self: end; }
}
.link-card { color: inherit; }
.link-card:hover { text-decoration: none; border-color: #3a3e46; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.chip:focus-visible, .pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.releases { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; margin-top: 8px; }
.release { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.release .cover { aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #1d2a2d, var(--panel-2) 70%); display: grid; place-items: center; }
.release .cover img { width: 100%; height: 100%; object-fit: cover; }
.release .cover img.placeholder { width: 42%; height: auto; opacity: .35; }
.release-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.release-body h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.release-body p { margin: 0; }
.listen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.pill { font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); background: var(--panel-2); }
.pill:hover { border-color: var(--accent); text-decoration: none; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); max-width: 720px; }
.timeline li { position: relative; padding: 0 0 30px 18px; }
.timeline li::before { content: ""; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.timeline .when { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.timeline h3 { margin: 4px 0 6px; }
.timeline p { margin: 0; color: var(--muted); }
.release .cover { position: relative; }
.release .cover img.art.loading { position: absolute; inset: 0; opacity: 0; }
/* Animated background behind the header and hero (js/bg.js). */
.site-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: min(760px, 100vh);
  z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.site-bg + .wrap { position: relative; z-index: 1; }
/* Photos. */
.hero .portrait { width: min(360px, 100%); border-radius: var(--radius); border: 1px solid var(--line); margin: 0 auto; box-shadow: 0 30px 80px -30px rgba(95, 227, 240, .35); }
.card.feature img.thumb { object-fit: cover; border-radius: 10px; }
.timeline li.with-shot { display: grid; grid-template-columns: 1fr; gap: 14px; }
.timeline .shot { margin: 0; }
.timeline .shot img { width: 100%; max-width: 420px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.banner { margin: 40px 0 0; }
.banner img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: 50% 72%; border-radius: var(--radius); border: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
@media (min-width: 820px) {
  .hero .portrait { margin: 0; justify-self: end; }
  .timeline { max-width: none; }
  .timeline li.with-shot { grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: start; }
  .timeline .shot img { aspect-ratio: 4 / 5; }
}
/* Trial requirements in the tester area. */
.checklist { list-style: none; padding: 0; margin: 8px 0 0; }
.checklist li { padding: 6px 0 6px 30px; position: relative; color: var(--muted); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); }
.checklist li.done { color: var(--text); }
.checklist li.done::before { border-color: var(--ok); background: var(--ok); box-shadow: inset 0 0 0 3px var(--panel); }
.prose { max-width: 820px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose td:first-child { white-space: nowrap; font-weight: 600; }
.prose code { font-size: 0.92em; overflow-wrap: anywhere; }
