/* dmitry.rx base bricks: shell, tiles, buttons, fields, sheet, toast, player, motion states.
   Motion is driven by rx.js through custom properties; only transform, translate, opacity and
   filter ever animate. rx.js puts one <span class="rx-fx"> inside every [data-tilt] element for the
   cursor light, so ::before and ::after of your own elements stay free. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: #2a302d var(--bg); }
html, body { margin: 0; background: var(--bg); }
body {
  min-height: 100vh; min-height: 100dvh;
  color: var(--text);
  font: 400 16px/1.5 var(--font);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top));
  -webkit-tap-highlight-color: transparent;
}
body.has-player { padding-bottom: calc(var(--player-h) + 24px + env(safe-area-inset-bottom)); }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: rgb(var(--accent-rgb) / 0.3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }

/* film grain: one static composited layer, never repainted */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.045;   /* over the page (one even grain on canvas, photos and bg), under nav and player */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* soft light that follows the cursor behind the tiles (fine pointers only, rx.js moves it) */
.rx-cursor {
  position: fixed; left: 0; top: 0; width: 720px; height: 720px; margin: -360px 0 0 -360px; z-index: 0;
  pointer-events: none; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgb(var(--accent-rgb) / 0.11), rgb(var(--accent-2-rgb) / 0.05) 45%, rgb(var(--accent-2-rgb) / 0) 70%);
  transition: opacity 0.6s var(--ease-out);
  will-change: transform;
}
.rx-cursor.on { opacity: 1; }

/* ---------- shell ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: rgb(5 7 6 / 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--hairline);
}
.nav-in { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 900; font-stretch: 118%; font-size: 20px; letter-spacing: -0.04em;
}
.wordmark i { font-style: normal; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-weight: 600; font-size: 15px; color: var(--muted); border-radius: 999px;
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 2px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 12px var(--glow);
}
.nav-ic { display: none; width: 22px; height: 22px; }
/* phone: four links, the cart and the wordmark share 328px at 360px; Account turns into an icon */
@media (max-width: 599px) {
  .nav-in { gap: 6px; }
  .wordmark { font-size: 18px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 0 9px; font-size: 14px; }
  .nav-links a[aria-current="page"]::after { left: 9px; right: 9px; }
  .nav-links .nav-acc { justify-content: center; min-width: 44px; padding: 0 10px; }
  .nav-acc .nav-ic { display: block; }
  .nav-acc .nav-t { display: none; }
  .nav-links .nav-acc[aria-current="page"]::after { left: 12px; right: 12px; }
}
@media (max-width: 374px) {
  .nav-links a { padding: 0 7px; }
  .nav-links a[aria-current="page"]::after { left: 7px; right: 7px; }
}
.nav-bar { /* page-load line */
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent-2), var(--accent)); opacity: 0;
}
.nav-bar.go { opacity: 1; transform: scaleX(0.85); transition: transform 6s cubic-bezier(0.1, 0.7, 0.1, 1); }
.nav-bar.done { opacity: 0; transform: scaleX(1); transition: transform 0.2s ease-out, opacity 0.3s 0.15s; }

#view { position: relative; z-index: 1; display: block; min-height: calc(100dvh - var(--nav-h) - 120px); }
.foot { position: relative; z-index: 1; margin-top: 72px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; padding-block: 18px calc(18px + env(safe-area-inset-bottom)); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 6px; margin-inline: -10px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; transition: color var(--dur) var(--ease-out); }
.foot a:hover { color: var(--text); }

/* ---------- tile ---------- */
.tile {
  position: relative; isolation: isolate; display: block; overflow: hidden;
  padding: var(--pad);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--hairline), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --px: 0; --py: 0;   /* parallax of [data-depth] children, written by rx.js only when the tile has them */
  --c: var(--accent-rgb); /* tint of the cursor light, any "r g b" triple */
}
a.tile, .tile[role="link"] { cursor: pointer; }
/* rx.js writes the tilt transform inline while the tile is live (.rx-live); custom properties on the tile
   would make every node inside it recompute its style on each frame */
[data-tilt] { transform-origin: 50% 50%; }
[data-tilt].rx-live { will-change: transform; }
[data-tilt].rx-live img { will-change: transform; }   /* hover scale of the cover moves on the compositor, no repaint */
/* children that float over the tilt: style="--depth: 12" */
[data-tilt] [data-depth] { translate: calc(var(--px, 0) * var(--depth, 10) * 1px) calc(var(--py, 0) * var(--depth, 10) * 1px); }
/* cursor light and border ring: fixed-size gradients drawn once, moved by transform (rx.js), so the tile
   under them is never repainted while the cursor travels */
.rx-fx { position: absolute; inset: 0; z-index: 3; border-radius: inherit; overflow: hidden; pointer-events: none; opacity: 0; }
.rx-fx-l, .rx-fx-b b { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.rx-fx-l { /* cursor light */
  width: 840px; height: 840px; margin: -420px 0 0 -420px;
  background: radial-gradient(closest-side, rgb(var(--c, 255 255 255) / 0.13), rgb(var(--c, 255 255 255) / 0.04) 40%, rgb(var(--c, 255 255 255) / 0) 68%);
}
.rx-fx-b { /* border glow: a gradient shown only through a 1px ring */
  position: absolute; inset: 0; border-radius: inherit; padding: 1px; overflow: hidden;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.rx-fx-b b {
  width: 600px; height: 600px; margin: -300px 0 0 -300px;
  background: radial-gradient(closest-side, rgb(var(--c, 255 255 255) / 0.95), rgb(var(--c, 255 255 255) / 0.2) 45%, rgb(var(--c, 255 255 255) / 0) 72%);
}
@media (hover: none) {
  .tile { transition: transform 0.18s var(--ease-out); }
  a.tile:active, .tile:has(.tile-link:active) { transform: scale(0.985); }
}
/* whole-tile link without nesting buttons inside <a>: <a class="tile-link" href> stretches over the tile */
.tile-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.tile :where(button, a:not(.tile-link), input, select, textarea, label) { position: relative; z-index: 2; }

[data-glow] { box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 26px 80px -34px var(--glow); }
[data-glow="2"] { --c: var(--accent-2-rgb); box-shadow: inset 0 0 0 1px rgb(var(--accent-2-rgb) / 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 26px 80px -34px var(--glow-2); }

/* ---------- buttons, chips, price ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em; line-height: 1; white-space: nowrap;
  color: var(--text); background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--hairline-2);
  cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), scale 0.18s var(--ease-out), opacity var(--dur);
}
.btn:hover { background: rgba(255, 255, 255, 0.12); }
.btn:active { scale: 0.97; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  color: var(--accent-ink); background: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 34px -10px var(--glow);
}
.btn-primary:hover { background: #6bff93; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 14px 44px -8px var(--glow); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn.is-busy { color: transparent; pointer-events: none; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--text); border-right-color: transparent; animation: rx-spin 0.7s linear infinite;
}
.btn-primary.is-busy::after { border-color: var(--accent-ink); border-right-color: transparent; }
@keyframes rx-spin { to { transform: rotate(360deg); } }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  color: var(--muted); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--hairline);
}
.chip svg { width: 13px; height: 13px; }
.chip-accent { color: var(--accent); background: rgb(var(--accent-rgb) / 0.1); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.25); }
.chip-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: rx-blink 1.8s ease-in-out infinite; }
@keyframes rx-blink { 50% { opacity: 0.35; } }

.price { font-weight: 800; font-stretch: 110%; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--text); }
.price small { font-size: 0.6em; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 0.35em; }

/* ---------- field ---------- */
.field { display: grid; gap: 8px; min-width: 0; }
.field > label, .field > span:first-child { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea, input.field, select.field, textarea.field {
  display: block; width: 100%; min-height: 50px; padding: 12px 16px;
  font-size: 16px; line-height: 1.4; color: var(--text);
  background: var(--surface-2); border: 0; border-radius: var(--radius-s); outline: 0;
  box-shadow: inset 0 0 0 1px var(--hairline-2);
  transition: box-shadow var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
  appearance: none; -webkit-appearance: none;
}
.field textarea, textarea.field { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder, input.field::placeholder { color: #5f6964; }
.field input:focus, .field select:focus, .field textarea:focus, input.field:focus, select.field:focus, textarea.field:focus {
  background: #171d1a; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 5px rgb(var(--accent-rgb) / 0.12);
}
.field.is-error input, .field.is-error select, .field.is-error textarea, .field[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--danger); }
.field .hint { font-size: 13px; color: var(--muted); }
.field.is-error .hint, .field .error { font-size: 13px; color: var(--danger); }
.field input[type="checkbox"], .field input[type="radio"] { width: 22px; min-height: 22px; height: 22px; padding: 0; display: inline-block; accent-color: var(--accent); appearance: auto; -webkit-appearance: auto; box-shadow: none; }
input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: inset 0 0 0 1px var(--hairline-2), inset 0 0 0 100px var(--surface-2); caret-color: var(--text); }

/* ---------- sheet (RX.sheet.open(el)) ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.62); opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.sheet-backdrop.open { opacity: 1; }
.sheet {
  position: fixed; z-index: 81; left: 50%; bottom: 0; width: min(560px, 100%); max-height: min(88dvh, 820px);
  overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 26px var(--pad) calc(var(--pad) + env(safe-area-inset-bottom));
  background: var(--surface-2); border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: inset 0 0 0 1px var(--hairline-2), 0 -30px 80px -20px rgba(0, 0, 0, 0.8);
  transform: translate(-50%, 104%); visibility: hidden;
  transition: transform 0.42s var(--ease-out), visibility 0s 0.42s;
}
.sheet::before { content: ""; position: absolute; top: 9px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); }
.sheet.open { transform: translate(-50%, 0); visibility: visible; transition: transform 0.42s var(--ease-out), visibility 0s; }
@media (min-width: 700px) {
  .sheet { bottom: auto; top: 50%; border-radius: var(--radius); padding-bottom: var(--pad); transform: translate(-50%, -46%) scale(0.96); opacity: 0; transition: transform 0.34s var(--ease-out), opacity 0.24s var(--ease-out), visibility 0s 0.34s; }
  .sheet.open { transform: translate(-50%, -50%) scale(1); opacity: 1; transition: transform 0.34s var(--ease-out), opacity 0.24s var(--ease-out), visibility 0s; }
  .sheet::before { display: none; }
}
body.sheet-lock { overflow: hidden; }

/* ---------- toast ---------- */
.rx-toasts { position: fixed; z-index: 90; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 8px; pointer-events: none; padding-inline: 16px; }
body.has-player .rx-toasts { bottom: calc(var(--player-h) + 28px + env(safe-area-inset-bottom)); }
.rx-toast {
  max-width: 460px; padding: 13px 18px; border-radius: 16px; font-size: 15px; font-weight: 600; line-height: 1.35;
  color: var(--text); background: #1c2320; box-shadow: inset 0 0 0 1px var(--hairline-2), var(--shadow);
  opacity: 0; transform: translateY(14px) scale(0.96); transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-out);
}
.rx-toast.in { opacity: 1; transform: none; }

/* ---------- player ---------- */
.player {
  position: fixed; z-index: 60; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(760px, calc(100% - 20px)); height: var(--player-h);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 0 10px 0 9px; border-radius: 22px;
  background: rgb(16 20 18 / 0.86);
  -webkit-backdrop-filter: saturate(170%) blur(22px); backdrop-filter: saturate(170%) blur(22px);
  box-shadow: inset 0 0 0 1px var(--hairline-2), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 22px 60px -18px rgba(0, 0, 0, 0.9);
  transform: translate(-50%, calc(100% + 40px)); opacity: 0; visibility: hidden;
  transition: transform 0.55s var(--ease-out), opacity 0.3s var(--ease-out), visibility 0s 0.55s;
}
/* beat glow on its own layer: only its opacity changes per frame, the blurred glass never repaints */
.pl-glow { position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; box-shadow: 0 0 46px -12px var(--glow); opacity: calc(0.35 + var(--beat) * 0.65); will-change: opacity; }
.player.on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform 0.55s var(--ease-out), opacity 0.3s var(--ease-out), visibility 0s; }
.pl-cover { position: relative; width: 50px; height: 50px; border-radius: 13px; overflow: hidden; background: var(--surface-2); flex: none; display: block; }
.pl-cover img { width: 100%; height: 100%; object-fit: cover; scale: calc(1 + var(--beat) * 0.06); will-change: scale; }
.pl-meta { min-width: 0; display: grid; gap: 5px; }
.pl-row { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.pl-title { min-width: 0; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.pl-title:hover { color: var(--accent); }
.pl-time { margin-left: auto; flex: none; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pl-seek { position: relative; height: 18px; margin-block: -4px; display: flex; align-items: center; touch-action: none; cursor: pointer; }
.pl-seek::before { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); }
.pl-seek i { position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.pl-seek b { position: absolute; left: 0; top: 50%; width: 100%; height: 0; transform: translateX(calc(var(--p, 0) * 100%)); }
.pl-seek b::after { content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px var(--glow); scale: 0; transition: scale 0.2s var(--ease-out); }
.pl-seek:hover b::after, .pl-seek.drag b::after { scale: 1; }
.pl-seek input { position: absolute; inset: -8px 0; width: 100%; height: auto; margin: 0; opacity: 0; cursor: pointer; }
.pl-ctl { display: flex; align-items: center; gap: 2px; }
.pl-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--text); transition: background-color var(--dur) var(--ease-out), scale 0.16s var(--ease-out), opacity var(--dur); }
.pl-btn:hover { background: rgba(255, 255, 255, 0.08); }
.pl-btn:active { scale: 0.9; }
.pl-btn[disabled] { opacity: 0.3; pointer-events: none; }
.pl-btn svg { width: 20px; height: 20px; fill: currentColor; }
.pl-play { background: var(--text); color: #050706; }
.pl-play:hover { background: #fff; }
.pl-play .i-pause, .player.playing .pl-play .i-play { display: none; }
.player.playing .pl-play .i-pause { display: block; }
.pl-eq { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 13px; background: rgba(0, 0, 0, 0.45); opacity: 0; transition: opacity 0.3s; }
.player.playing .pl-eq { opacity: 1; }
.pl-eq i { width: 4px; height: 100%; border-radius: 2px; background: var(--accent); transform-origin: 50% 100%; transform: scaleY(var(--s, 0.15)); }
@media (max-width: 520px) {
  .player { gap: 10px; }
  .pl-prev { display: none; }
  .pl-time { display: none; }
}

/* any play button: <button data-play='{…}' class="play"> gets .is-playing while its track plays */
.play { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--text); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--hairline-2); transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), scale 0.16s var(--ease-out); }
.play:hover { background: var(--accent); color: var(--accent-ink); }
.play:active { scale: 0.92; }
.play::before { content: ""; width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; }
.is-playing.play, .is-playing .play { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 calc(14px + var(--beat) * 22px) var(--glow); }
.is-playing.play::before, .is-playing .play::before { width: 12px; height: 13px; margin: 0; border: 0; background: linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px, currentColor 8px 12px); }

/* ---------- reveal ---------- */
html.rx-js [data-reveal]:not(.rx-in) { opacity: 0; }
.rx-revealing { will-change: translate, opacity, filter; }

/* ---------- page transitions ---------- */
@view-transition { navigation: none; }
::view-transition-group(*) { animation-duration: 0.5s; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
::view-transition-old(root) { animation: rx-vt-out 0.24s cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: rx-vt-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.06s both; }
html.rx-back::view-transition-new(root) { animation-name: rx-vt-in-back; }
@keyframes rx-vt-out { to { opacity: 0; transform: scale(0.985); filter: blur(6px); } }
@keyframes rx-vt-in { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } }
@keyframes rx-vt-in-back { from { opacity: 0; transform: translateY(-18px); filter: blur(8px); } }
/* shell stays put while the view changes */
.nav { view-transition-name: rx-nav; }
.player { view-transition-name: rx-player; }
::view-transition-group(rx-nav), ::view-transition-group(rx-player) { animation: none; z-index: 10; }
::view-transition-old(rx-nav), ::view-transition-old(rx-player) { display: none; }
::view-transition-new(rx-nav), ::view-transition-new(rx-player) { animation: none; }
/* tile → hero morph: rx.js names both ends "rx-morph"; the smear in the middle is the motion blur */
::view-transition-group(rx-morph) { animation-duration: 0.62s; z-index: 5; }
::view-transition-image-pair(rx-morph) { animation: rx-vt-smear 0.62s cubic-bezier(0.22, 1, 0.36, 1) both; }
::view-transition-old(rx-morph), ::view-transition-new(rx-morph) { height: 100%; width: 100%; object-fit: cover; overflow: clip; border-radius: var(--radius); }
::view-transition-old(rx-morph) { animation: rx-vt-fade-out 0.3s ease-out both; }
::view-transition-new(rx-morph) { animation: rx-vt-fade-in 0.3s ease-out both; }
@keyframes rx-vt-smear { 35% { filter: blur(7px); } }
@keyframes rx-vt-fade-out { to { opacity: 0; } }
@keyframes rx-vt-fade-in { from { opacity: 0; } }
/* fallback without the View Transitions API */
#view.rx-leave { opacity: 0; transform: translateY(-8px); filter: blur(4px); transition: opacity 0.16s ease-in, transform 0.16s ease-in, filter 0.16s ease-in; }
#view.rx-enter { animation: rx-vt-in 0.45s var(--ease-out) both; }

/* ---------- simple page furniture shared by every page ---------- */
.page { padding-block: clamp(24px, 5vw, 56px) 0; }
.page-head { display: grid; gap: 14px; margin-bottom: clamp(20px, 3vw, 36px); }
.page-title { font-size: clamp(40px, 8vw, 96px); font-weight: 900; font-stretch: 118%; letter-spacing: -0.05em; line-height: 0.92; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 56ch; }
.err-page { min-height: 62dvh; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; }

/* ---------- motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; scroll-behavior: auto !important; }
  html.rx-js [data-reveal] { opacity: 1 !important; translate: none !important; filter: none !important; }
  [data-tilt] { transform: none !important; }
  .rx-cursor { display: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*), ::view-transition-image-pair(*) { animation: none !important; }
}
