/* ───────── Fonts: served from this site (no requests to Google) ───────── */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-tight-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-tight-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-tight-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-tight-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/inter-tight-cyrillic-800-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/inter-tight-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/unbounded-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/unbounded-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ───────── Tokens ───────── */
:root {
  --bg: #050506;
  --fg: #f5f5f7;
  --dim: rgba(245, 245, 247, .62);
  --faint: rgba(245, 245, 247, .38);
  --pad: clamp(10px, 3vw, 44px);
  --gap: clamp(8px, 1.2vw, 18px);
  --r-card: clamp(16px, 2vw, 28px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.3, 1.55, .45, 1);
  --serif: "Unbounded", "Inter Tight", system-ui, sans-serif; /* the face for artist names */
  --font: "Inter Tight", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  /* no background here: html paints the base colour. A background on body would sit on top of
     the fixed backdrop (z-index -1) and hide it everywhere the content reaches. */
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
::selection { background: rgba(255, 255, 255, .9); color: #000; }
.defs { position: absolute; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ───────── Liquid glass ───────── */
.glass {
  --blur: 18px;
  position: relative;
  isolation: isolate;
  /* the solid tint is what browsers without backdrop-filter get */
  background-color: rgba(40, 40, 44, .72);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 42%, rgba(255, 255, 255, .09));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .5),
    inset 0 -1px 1px rgba(255, 255, 255, .14),
    inset 0 0 0 1px rgba(255, 255, 255, .07),
    inset 0 -14px 22px -14px rgba(255, 255, 255, .16),
    /* dispersion: thick glass splits the light a little, warm on one rim, cold on the other */
    inset 2px 0 3px -1px rgba(255, 255, 255, .2),
    inset -2px 0 3px -1px rgba(200, 208, 220, .24),
    0 14px 40px -10px rgba(0, 0, 0, .55);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass {
    background-color: transparent;
    -webkit-backdrop-filter: blur(var(--blur)) saturate(190%) brightness(1.08);
    backdrop-filter: blur(var(--blur)) saturate(190%) brightness(1.08);
  }
}
/* specular highlight that follows the pointer */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(180px circle at var(--mx, 30%) var(--my, -40%), rgba(255, 255, 255, .22), transparent 65%);
}
/* ripple: a ring of light running out from the point of touch (class and --rx/--ry/--rs set from JS) */
@property --rr { syntax: "<length>"; inherits: false; initial-value: 0px; }
.glass.is-ripple::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(circle var(--rr) at var(--rx, 50%) var(--ry, 50%), transparent 45%, rgba(255, 255, 255, .5) 82%, transparent 100%);
}
.glass.is-ripple::before { animation: ripple .7s ease-out; }
@keyframes sheen { from { background-position: 0 0, 220% 0; } to { background-position: 0 0, -120% 0; } }
@keyframes ripple { from { --rr: 0px; opacity: 1; } to { --rr: var(--rs, 200px); opacity: 0; } }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .45s var(--spring), background-color .25s, translate .45s var(--spring);
}
.pill:active { transform: scale(.93, .9); transition-duration: .12s; }

.ibtn {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transition: transform .45s var(--spring), background-color .25s, translate .45s var(--spring);
}
.ibtn:active { transform: scale(.86); transition-duration: .12s; }
@media (hover: hover) {
  .pill:hover { transform: scale(1.045); background-color: rgba(255, 255, 255, .1); }
  .ibtn:hover { transform: scale(1.08); background-color: rgba(255, 255, 255, .12); animation: wobble 2.600s ease-in-out infinite; }
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: lowercase;
  color: var(--dim);
}

/* ───────── Ambient background ───────── */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); contain: strict; pointer-events: none; }
.ambient__v {
  position: absolute;
  left: 50%; top: 50%;
  width: 26vw; height: 26vh;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(4.6);
  filter: blur(22px) saturate(1.9) brightness(.75);
  opacity: 0;
  transition: opacity 1.1s ease;
}
.ambient__v.is-on { opacity: .8; }
/* with a mouse the wall is plain black at rest; the colour only comes in under a hovered work */
@media (hover: hover) { .ambient__v.is-on { opacity: 0; } }
/* hovering a work turns the room's light up: the wall takes the colours of that video */
.ambient__veil { transition: opacity .7s ease; }
.is-hovering .ambient__v.is-on { opacity: 1; }
.is-hovering .ambient__veil { opacity: .5; }
.ambient__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 0%, rgba(5, 5, 6, .55) 70%, rgba(5, 5, 6, .9) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───────── Feed ───────── */
.works {
  position: relative;
  padding:
    max(var(--pad), env(safe-area-inset-top))
    max(var(--pad), env(safe-area-inset-right))
    0
    max(var(--pad), env(safe-area-inset-left));
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.glow {
  position: absolute;
  pointer-events: none;
  border-radius: var(--r-card);
  opacity: 0;
  transform: scale(1.16, 1.3);
  filter: blur(46px) saturate(2.3) brightness(1.25);
  transition: opacity .5s ease;
}
.glow.is-on { opacity: .95; }
.lite .glow, .lite .dock__tint { display: none; }
.card {
  --px: .5; --py: .5;
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-card);
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  contain: layout paint;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  transition: transform .6s var(--ease), opacity .4s;
}
.card[hidden] { display: none; }
.card.is-in { animation: card-in .8s var(--ease) backwards; }
/* until its preview arrives, a card is a pane of glass with light running across it */
.card.is-vis:not(:has(video.is-ready)) {
  background: linear-gradient(100deg, rgba(255, 255, 255, .03) 35%, rgba(255, 255, 255, .11) 50%, rgba(255, 255, 255, .03) 65%) 0 0 / 300% 100%;
  animation: card-in .8s var(--ease) backwards, shimmer 1.700s linear infinite;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -150% 0; } }
/* chrome: a thin rim of polished metal, its reflections running round the hovered card (and the lens) */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }
@keyframes lens-spin { to { rotate: 360deg; } }
@media (hover: hover) {
  .card:hover::before, .lens.is-on::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    padding: 2px;
    border-radius: inherit;
    pointer-events: none;
    background: conic-gradient(from var(--ang), #ffffff, #7c838d, #eef1f4, #3d4249, #d9dde3, #8b929c, #ffffff, #565c65, #f6f8fa, #9aa1ab, #ffffff);
    -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);
    opacity: .8;
    animation: spin 4s linear infinite, fade .5s ease;
  }
  /* on the round lens the ring simply turns (a compositor transform): no repaint per frame */
  .lens.is-on::before { padding: 1.5px; opacity: .65; animation: lens-spin 2.6s linear infinite, fade .5s ease; }
}
.lite .card::before { display: none; }
@keyframes card-in { from { opacity: 0; transform: translateY(28px) scale(.97); } }
.card--feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.card video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  /* slight overscan so the picture can drift inside its frame:
     --sk = scroll inertia, --gx/--gy = phone tilt (all set from JS, 0 at rest) */
  scale: 1.1;
  translate: calc(var(--gx, 0) * 1%) calc((var(--sk, 0) + var(--gy, 0)) * 1%);
  transition: transform .9s var(--ease), opacity .6s;
}
.card video.is-ready { opacity: 1; }
/* glass rim (+ pointer highlight on hover) */
.card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .4), inset 0 0 0 1px rgba(255, 255, 255, .1);
}


@media (hover: hover) {
  /* 3D tilt towards the pointer, with the video sliding the other way for depth */
  .card:hover {
    z-index: 2;
    transform: perspective(1000px) rotateX(calc((.5 - var(--py)) * 6deg)) rotateY(calc((var(--px) - .5) * 8deg)) scale(1.02);
    transition-duration: .2s, .4s;
    transition-timing-function: ease-out;
  }
  .card:hover video {
    transform: scale(1.04) translate(calc((.5 - var(--px)) * 3%), calc((.5 - var(--py)) * 3%));
    transition-duration: .25s, .6s;
    transition-timing-function: ease-out;
  }
  .card:hover::after {
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5), inset 0 0 0 1px rgba(255, 255, 255, .14),
      inset 3px 0 5px -2px rgba(255, 255, 255, .4), inset -3px 0 5px -2px rgba(200, 208, 220, .45);
    /* the pointer highlight, plus a band of light that sweeps across once as the pointer lands */
    background:
      radial-gradient(420px circle at var(--mx, 50%) var(--my, -60%), rgba(255, 255, 255, .2), transparent 60%),
      linear-gradient(105deg, transparent 43%, rgba(255, 255, 255, .2) 50%, transparent 57%) -120% 0 / 250% 100% no-repeat;
    animation: sheen .95s var(--ease);
  }
  /* .is-dim is set from the script while a card is hovered (see dim() in main.js) */
  /* only the cards on screen (.is-vis): the fade then runs on a dozen cards, not on the hundred
     and more laid out above and below */
  .grid.is-dim .card.is-vis:not(:hover) { opacity: .45; }
}
.card:active { transform: scale(.985); }
/* ───────── Big title (the hovered card with a mouse, the middle card on a phone) ───────── */
.ht {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.ht.is-on { opacity: 1; }
.ht__title {
  position: absolute;
  left: -3.5%; right: -3.5%;
  bottom: -7%;
  text-align: center;
  font-weight: 800;
  text-transform: lowercase;
  letter-spacing: -.012em; /* glass letters must not overlap: their rims would cross */
  line-height: .86;
  white-space: nowrap;
  /* room for Й, Ё and descenders inside the box the glass fill is clipped to */
  margin: -.16em 0;
  perspective: 1100px;
  translate: calc((var(--px, .5) - .5) * -22px) calc((var(--py, .5) - .5) * -12px);
}
/* Glass lettering: the letters are cut from clear glass. The video shows through the fill,
   a bright rim outlines every glyph, and a band of light crosses the word with the pointer. */
/* Volume: the word is a solid block of letters. Its face is the lit glass; behind it a stack
   of copies recedes into depth, each a little darker, and the whole block turns towards the
   pointer, so the sides come into view and the layers slide past each other (parallax).
   Touch screens, the lite mode and reduced motion get the face alone. */
.ht__3d {
  display: block;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(calc((var(--px, .5) - .5) * 30deg)) rotateX(calc((var(--py, .5) - .5) * -22deg));
  transition: transform .22s ease-out;
}
.ht__face, .ht__side {
  display: block;
  /* room for Й, Ё and descenders inside the box the glass fill is clipped to; no side
     padding: the word is fitted to this box exactly */
  padding: .16em 0;
}
.ht__face { position: relative; }
.ht__shade {
  display: block; position: absolute; inset: 0; padding: .16em 0;
  color: transparent; -webkit-text-fill-color: transparent;
  text-shadow: 0 .03em .12em rgba(0, 0, 0, .55), 0 .1em .5em rgba(0, 0, 0, .35);
  transform: translateZ(-.004em);
}
.ht__side {
  position: absolute; inset: 0;
  color: hsl(218 9% calc(66% - var(--k) * 3.6%));
  -webkit-text-fill-color: currentColor;
  transform: translateZ(calc(var(--k) * -.0125em));
}
.ht__side--shadow {
  color: rgba(0, 0, 0, .6);
  filter: blur(.06em);
  transform: translateZ(calc(var(--k) * -.0125em - .03em)) translateY(.04em);
}
.ht__face, .ht__artist {
  color: transparent;
  -webkit-text-fill-color: transparent;
  background:
    linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, .95) 50%, transparent 58%) calc((1 - var(--px, .5)) * 100%) 0 / 250% 100% no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .4) 44%, rgba(255, 255, 255, .22) 58%, rgba(255, 255, 255, .7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 .03em .12em rgba(0, 0, 0, .55)) drop-shadow(0 .1em .5em rgba(0, 0, 0, .35));
}
@media (hover: hover) {
  .ht__face {
    filter: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .4) 44%, rgba(255, 255, 255, .22) 58%, rgba(255, 255, 255, .7) 100%);
    -webkit-background-clip: text; background-clip: text;
  }
}
/* the streak: a window 40% of the word wide, centred at (-25% + 150% * --px) of the word */
.ht__sheen {
  position: absolute; left: 0; top: 0; bottom: 0; width: 40%;
  overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(100deg, transparent 5%, #000 50%, transparent 95%);
  mask-image: linear-gradient(100deg, transparent 5%, #000 50%, transparent 95%);
  transform: translateZ(.002em) translateX(calc((var(--px, .5) * 375 - 112.5) * 1%));
  will-change: transform;
}
.ht__sheen-in {
  display: block; width: 250%; padding: .16em 0;
  color: rgba(255, 255, 255, .95); -webkit-text-fill-color: rgba(255, 255, 255, .95);
  transform: translateX(calc((45 - var(--px, .5) * 150) * 1%));
  will-change: transform;
}
.ht.is-wrap .ht__title { white-space: normal; text-wrap: balance; }
.ht__artist {
  position: absolute;
  left: 18px; top: 17px;
  right: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 500 12.5px/1.3 var(--serif);
  letter-spacing: .05em;
  text-transform: lowercase;
  white-space: nowrap;
  padding: 3px 0;
  translate: calc((var(--px, .5) - .5) * -8px) calc((var(--py, .5) - .5) * -5px);
}
.ht.is-on .ht__title { animation: ht-in .6s var(--spring) backwards; }
.ht.is-on .ht__artist { animation: ht-artist .5s var(--ease) .1s backwards; }
@keyframes ht-in { from { opacity: 0; transform: translateY(24%) scale(.93); } }
@keyframes ht-artist { from { opacity: 0; transform: translateX(-14px); } }
.empty { padding: 80px 0 40vh; text-align: center; color: var(--dim); font-size: 18px; }
/* room under the last row so the dock never covers a caption for good */
.sentinel { height: calc(96px + env(safe-area-inset-bottom)); }

/* ───────── Dock ───────── */
.dock {
  position: fixed;
  z-index: 45;
  left: 50%;
  /* --kb: height of the on-screen keyboard, set from JS on phones */
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + var(--kb, 0px));
  translate: -50% 0;
  transform-origin: 50% 100%;
  transition: scale .6s var(--spring), opacity .4s, bottom .28s var(--ease);
  animation: dock-in 1s var(--spring) .3s backwards;
  max-width: calc(100% - 2 * var(--pad));
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
}
.dock__sep { width: 1px; align-self: stretch; margin: 12px 8px; background: rgba(255, 255, 255, .2); }
.dock__link, .dock__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dim);
  white-space: nowrap;
  transition: color .2s, background-color .2s, transform .18s ease-out;
}
.dock__link:active, .dock__contact:active { color: var(--fg); background: rgba(255, 255, 255, .14); }
@media (hover: hover) {
  .dock__link:hover, .dock__contact:hover { color: var(--fg); }
}
/* the drop of glass that slides under the hovered item */
.dock__blob {
  position: absolute;
  left: 0; top: 5px;
  z-index: -1;
  width: 46px; height: 46px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .55), inset 0 -1px 1px rgba(255, 255, 255, .12), 0 6px 18px -6px rgba(0, 0, 0, .5);
  transition: transform .55s var(--spring), width .45s var(--ease), opacity .25s;
}
.dock__blob.is-on { opacity: 1; }
@media (hover: none) { .dock__blob { display: none; } }
.dock__contact { display: none; }

/* search is just an icon until it is used, then it opens up */
.search {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px; height: 46px;
  padding: 0;
  border-radius: 999px;
  color: var(--dim);
  cursor: pointer;
  transition: width .5s var(--ease), padding .5s var(--ease), background-color .2s, color .2s;
}
.search svg { flex: none; }
.search input {
  flex: 0 1 0;
  width: 0; min-width: 0;
  padding: 0; margin: 0;
  background: none; border: 0; outline: 0;
  border-radius: 0;
  -webkit-appearance: none; appearance: none;
  color: var(--fg);
  font: 500 15px var(--font);
  opacity: 0;
  transition: opacity .3s;
}
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search:focus-within, .search.has-value {
  width: min(240px, 52vw);
  padding: 0 14px 0 15px;
  gap: 9px;
  justify-content: flex-start;
  color: var(--fg);
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5);
  cursor: text;
}
.search:focus-within input, .search.has-value input { flex: 1; opacity: 1; }
@media (hover: hover) { .search:hover { color: var(--fg); } }
/* iOS zooms the page when a focused field is under 16px */
@media (hover: none) { .search input { font-size: 16px; } }

/* ───────── Modals ───────── */
.modal {
  border: 0;
  padding: 0;
  margin: auto;
  background: none;
  color: var(--fg);
  overflow: visible;
  max-width: none;
  max-height: none;
}
.modal::backdrop {
  background: rgba(5, 5, 6, .6);
  -webkit-backdrop-filter: blur(34px) saturate(160%);
  backdrop-filter: blur(34px) saturate(160%);
  animation: fade .4s ease both;
}
.modal[open] { animation: pop .65s var(--spring) both; }
@keyframes fade { from { opacity: 0; } }
@keyframes dock-in { from { translate: -50% 150%; scale: .5; opacity: 0; } }
/* the sheet pours in like a drop: squashed at first, then it springs to shape */
@keyframes pop { from { opacity: 0; transform: scale(.9, .8) translateY(26px); } 45% { opacity: 1; } }
/* while it scrolls down, the dock pulls itself in; hover, focus or scrolling up opens it again */
.dock.is-compact:not(:hover):not(:focus-within) { scale: .8; opacity: .78; }
.dock__tint {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border-radius: inherit;
  z-index: -2;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity .7s ease;
}
.is-hovering .dock__tint { opacity: .42; }
/* light glides across the captions as the wall scrolls (--sk comes from the scroll inertia) */

.player {
  width: min(1180px, calc(100vw - 24px), calc((100vh - 150px) * 16 / 9));
  width: min(1180px, calc(100vw - 24px), calc((100svh - 150px) * 16 / 9));
}
/* the player is two pieces: the video, glowing with its own colours, and a bar of glass under it */
.player__frame { position: relative; isolation: isolate; }
.player__glow {
  /* a quarter-size copy sitting in the middle of the video and scaled up (cheap to blur);
     the mask fades it out to nothing, so the blur never ends in a visible edge */
  position: absolute;
  left: 50%; top: 0;
  margin-top: 21.100%;
  z-index: -1;
  width: 25%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  pointer-events: none;
  transform: translateX(-50%) scale(5.400);
  filter: blur(12px) saturate(2.200) brightness(1.1);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 52%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 52%, transparent 100%);
  opacity: .85;
  animation: fade 1.200s ease both;
}
.lite .player__glow { display: none; }
.player__video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: clamp(16px, 2.400vw, 30px);
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
  view-transition-name: work;
}
.player__embed { position: absolute; inset: 0; }
.player__embed iframe { display: block; width: 100%; height: 100%; border: 0; }
/* credits: end titles over the picture, which keeps playing behind the dark glass */
.credits {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(12px, 4%, 44px) clamp(14px, 5%, 56px);
  overflow-y: auto;
  font-size: clamp(11px, 1.45vw, 17px);
  line-height: 1.35;
  background: rgba(5, 5, 6, .9);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility 0s .45s;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .credits { background: rgba(5, 5, 6, .66); -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); }
}
.lite .credits { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(5, 5, 6, .92); }
.credits.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.credits__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: baseline;
  gap: .75em 1.3em;
  width: min(100%, 44em);
  margin: auto 0 0;
}
.credits__list dt { text-align: right; font: 500 .66em/1.5 var(--serif); letter-spacing: .09em; text-transform: lowercase; color: var(--dim); }
.credits__list dd { margin: 0; font-weight: 600; letter-spacing: .005em; text-wrap: balance; }
.credits__foot { margin: 1.9em 0 auto; font: 500 .66em/1.5 var(--serif); letter-spacing: .16em; text-transform: lowercase; color: var(--dim); text-align: center; }
.credits.is-on .credits__list > *, .credits.is-on .credits__foot { animation: credit-in .7s var(--ease) backwards; }
.credits__list > :nth-child(n+3) { animation-delay: .07s; }
.credits__list > :nth-child(n+5) { animation-delay: .14s; }
.credits__list > :nth-child(n+7) { animation-delay: .21s; }
.credits__list > :nth-child(n+9) { animation-delay: .28s; }
.credits.is-on .credits__foot { animation-delay: .4s; }
@keyframes credit-in { from { opacity: 0; transform: translateY(14px); filter: blur(5px); } }
.player__credits { flex: none; }
.player__credits[hidden] { display: none; }
.player__credits.is-active { background-color: rgba(255, 255, 255, .22); }
/* glass rim over the picture: a bright top edge and a little dispersion on the sides */
.player__video::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .45), inset 0 0 0 1px rgba(255, 255, 255, .1),
    inset 3px 0 5px -2px rgba(255, 255, 255, .28), inset -3px 0 5px -2px rgba(200, 208, 220, .32);
}
.player__bar {
  --blur: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 9px 9px 9px 24px;
  border-radius: clamp(26px, 3.400vw, 40px);
  animation: bar-in .8s var(--spring) .12s backwards;
}
/* the bar drops out from under the video and springs into place */
@keyframes bar-in { from { opacity: 0; transform: translateY(-34px) scale(.7, .5); } 40% { opacity: 1; } }
.is-swap .player__video { animation: swap .6s var(--spring); }
.is-swap .player__info > * { animation: swap-text .55s var(--ease) backwards; }
.is-swap .player__info > :nth-child(2) { animation-delay: .07s; }
@keyframes swap { from { opacity: .3; transform: translateX(calc(var(--dir, 1) * 46px)) scale(.95); } }
@keyframes swap-text { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 18px)); filter: blur(6px); } }
.player__info { min-width: 0; flex: 1; }
.player__info h2 {
  font-size: clamp(16px, 1.8vw, 24px); font-weight: 800; letter-spacing: -.02em; text-transform: lowercase; line-height: 1.15;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.player__info p { margin-top: 5px; font-weight: 500; font-size: 15px; line-height: 1.3; letter-spacing: .01em; text-transform: lowercase; color: var(--dim); }
.player__artist { letter-spacing: inherit; text-transform: inherit; text-align: left; border-radius: 4px; transition: color .2s; }
.player__artist:active { color: var(--fg); }
@media (hover: hover) { .player__artist:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; } }
.player__ctrl { display: flex; gap: 8px; flex: none; }

/* card → player morph */
::view-transition-group(work) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(work), ::view-transition-new(work) { height: 100%; object-fit: cover; }

.sheet { width: min(820px, calc(100vw - 24px)); }
.sheet__panel {
  --ds: clamp(44px, 14.500vw, 104px);
  --dg: clamp(10px, 2.600vw, 30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 6vw, 64px);
  padding: 48px 0 24px;
  outline: 0;
}
/* contacts are drops of glass: they split off from one blob, float, and swell under the pointer */
.drops { display: flex; justify-content: center; gap: var(--dg); }
.drops li {
  animation: drop-in .95s var(--spring) backwards, bob 5.200s ease-in-out infinite;
  animation-delay: calc(var(--n) * 60ms), calc(var(--n) * -1.300s);
}
.drops li:nth-child(1) { --n: 0; } .drops li:nth-child(2) { --n: 1; } .drops li:nth-child(3) { --n: 2; }
.drops li:nth-child(4) { --n: 3; } .drops li:nth-child(5) { --n: 4; }
@keyframes drop-in { from { opacity: 0; transform: translateX(calc((2 - var(--n)) * (var(--ds) + var(--dg)))) scale(.25); } 35% { opacity: 1; } }
@keyframes bob { 50% { translate: 0 -9px; } }
.drop {
  --blur: 14px;
  display: grid;
  place-items: center;
  width: var(--ds);
  aspect-ratio: 1;
  border-radius: 50%;
  transition: transform .55s var(--spring), border-radius .6s var(--ease);
}
.drop svg { width: 38%; height: 38%; filter: drop-shadow(0 1px 5px rgba(0, 0, 0, .45)); }
.drop__label {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  translate: -50% 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: lowercase;
  white-space: nowrap;
  color: var(--dim);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, translate .45s var(--spring);
}
.drop:active { transform: scale(.88); transition-duration: .12s; }
.drop:focus-visible .drop__label { opacity: 1; translate: -50% 0; }
@media (hover: hover) {
  .drop:hover { transform: scale(1.3) translateY(-6px); animation: wobble 2.600s ease-in-out infinite; }
  .drop:hover .drop__label { opacity: 1; translate: -50% 0; color: var(--fg); }
  .drops li:has(+ li .drop:hover) .drop, .drops li:has(.drop:hover) + li .drop { transform: scale(1.1) translateY(-2px); }
  .drop:hover:active { transform: scale(1.12) translateY(-2px); }
}
@keyframes wobble {
  0%, 100% { border-radius: 50%; }
  33% { border-radius: 46% 54% 55% 45% / 54% 46% 54% 46%; }
  66% { border-radius: 54% 46% 45% 55% / 46% 55% 45% 54%; }
}
@media (hover: none) { .drop__label { opacity: 1; translate: -50% 0; font-size: 9px; letter-spacing: .06em; top: calc(100% + 9px); } }
.sheet__foot { font-size: 13px; color: var(--faint); }

/* ───────── Cursor lens ───────── */
.lens {
  --blur: 4px;
  position: fixed;
  left: 0; top: 0;
  z-index: 40;
  width: 96px; height: 96px;
  margin: -48px 0 0 -48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  scale: .4;
  background-color: transparent;
  /* a small hard glint and a soft glow; both slide round the lens as it moves (--hx/--hy from JS) */
  background-image:
    radial-gradient(circle at var(--hx, 35%) var(--hy, 25%), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 9%),
    radial-gradient(circle at var(--hx, 35%) var(--hy, 25%), rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 55%);
  transition: opacity .3s, scale .45s var(--ease);
}
.lens.is-on { opacity: 1; scale: 1; }
.lens.is-on.is-press { scale: .74; transition-duration: .3s, .12s; }
.lens svg { filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .5)); rotate: calc(var(--a, 0rad) * -1); }
@media (hover: none) { .lens { display: none; } }

/* ───────── Lite mode: slow device, data saver or dropped frames (class set from JS) ───────── */
.lite .ambient__v { display: none; }
.lite .card video { scale: 1; translate: none; }
.lite .modal::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(5, 5, 6, .9); }
.lite .dock, .lite .player__frame, .lite .sheet__panel { --blur: 12px; }

/* ───────── Responsive ───────── */
@media (max-width: 1020px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Here the feature card is as wide as the grid. Spanning two rows that hold nothing else
     gave it no height (it showed as a thin strip): it is one full-width 16:9 frame instead. */
  .card--feature { grid-row: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 900px) {
  .dock__link, .dock__sep { display: none; }
  .dock__contact { display: inline-flex; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card--feature { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 9; }
  .player { width: calc(100vw - 16px); }
  /* Phone: the bar is a small sheet. Title and artist on top with the close button in the
     corner, the actions as full-width buttons underneath. Works are changed by swiping
     (the arrows and Copy link are left to wider screens). */
  .player__bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 14px 8px; margin-top: 8px; padding: 18px 10px 10px; border-radius: 30px; }
  .player__info { grid-column: 1 / -1; padding: 0 58px 0 12px; }
  .player__info h2 { font-size: 21px; line-height: 1.1; }
  .player__info p { margin-top: 6px; }
  .player__ctrl { display: contents; }
  .player__ctrl [data-act="prev"], .player__ctrl [data-act="next"], .player__ctrl [data-act="copy"] { display: none; }
  .player__ctrl [data-act="close"] { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; }
  .player__credits, .player__ctrl .player__yt { width: 100%; height: 50px; padding: 0 12px; font-size: 15px; }
  .player__credits[hidden] + .player__ctrl .player__yt { grid-column: 1 / -1; }
}
/* phones held sideways: the video takes the height, the bar goes beside it */
@media (max-height: 480px) and (orientation: landscape) {
  .player { width: min(calc(100vw - 24px), calc((100vh - 96px) * 16 / 9)); }
  .player__bar { margin-top: 6px; padding: 5px 5px 5px 18px; }
  .player__info p { display: none; }
  .player__ctrl [data-act="prev"], .player__ctrl [data-act="next"], .player__ctrl [data-act="copy"] { display: none; }
  .player__ctrl .ibtn, .player__ctrl .pill, .player__credits { height: 40px; }
  .player__ctrl .ibtn { width: 40px; }
}


.noscript { padding: 20vh 0; text-align: center; color: var(--dim); }
.noscript a { color: var(--fg); text-decoration: underline; }

/* ───────── Phones: the big title ───────── */
@media (hover: none) {
  /* no pointer light here, so the letters carry more fill and a soft bright edge of their own */
  .ht__face, .ht__artist {
    background:
      linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%) 130% 0 / 250% 100% no-repeat,
      linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .62) 46%, rgba(255, 255, 255, .5) 60%, rgba(255, 255, 255, .86) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 .6px rgba(255, 255, 255, .9)) drop-shadow(0 .04em .16em rgba(0, 0, 0, .6)) drop-shadow(0 .1em .5em rgba(0, 0, 0, .4));
  }
  /* the band of light crosses the word once as it appears */
  .ht.is-on .ht__face { animation: ht-sweep 1.1s var(--ease) .15s backwards; }
  /* inside the frame: on touch several cards are titled at once, a word hanging below would sit on the next card */
  .ht__title { bottom: 2%; }
  .ht__artist { left: 14px; top: 13px; right: 14px; font-size: 11px; }
  /* on touch the word lies flat (no 3D scene): the glass fill, clipped to the letters, is safe in every mobile browser */
  .ht__3d { transform: none; transform-style: flat; transition: none; }
}
@keyframes ht-sweep { from { background-position: -30% 0, 0 0; } }

/* very narrow phones: contact labels stay apart */
@media (max-width: 350px) { .drop__label { font-size: 8px; letter-spacing: .03em; } }

/* share button: the icon turns into a tick for a moment after the link is copied */
.ibtn .ico-done, .ibtn.is-done .ico-share { display: none; }
.ibtn.is-done .ico-done { display: block; }

/* lite mode can switch on mid-session: the title goes back to its flat face */
.lite .ht__side { display: none; }
.lite .ht__3d { transform: none; }

/* ───────── Boom: after 30 seconds the wall blows apart and the word КУРС lands ───────── */
/* Chaos on purpose: every card, the dock and each shard gets its own random path, spin and
   timing from the script (Web Animations), nothing flies in step with anything else. */
.boomed .card { pointer-events: none; }
/* cards that scroll into view after the blast stay out of the picture */
.boomed .card:not(.is-fly) { opacity: 0; }
.boomed .grid { perspective: 1300px; }
/* cards thrown past the edge must not widen the page (a phone would zoom out to fit them) */
.boomed .works { overflow: clip; }
.boomed body { overflow-x: clip; }
.boomed .ht { opacity: 0 !important; }
.boomed .works { animation: boom-shake 1s linear; }
@keyframes boom-shake {
  5% { transform: translate(-16px, 10px) rotate(-1.4deg) scale(1.03); } 12% { transform: translate(14px, -12px) rotate(1.6deg) scale(1.05); }
  20% { transform: translate(-12px, -8px) rotate(-1.1deg) scale(1.02); } 29% { transform: translate(11px, 9px) rotate(1.2deg) scale(1.04); }
  38% { transform: translate(-9px, 4px) rotate(-.8deg); } 48% { transform: translate(8px, -6px) rotate(.7deg) scale(1.02); }
  60% { transform: translate(-5px, 5px) rotate(-.4deg); } 74% { transform: translate(4px, -3px) rotate(.3deg); } 88% { transform: translate(-2px, 1px); }
}
.boom {
  position: fixed; inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 50%, rgba(5, 5, 6, .35), rgba(5, 5, 6, .86));
  opacity: 0;
  transition: opacity .5s ease;
}
.boom[hidden] { display: none; }
.boom.is-on { opacity: 1; }
/* two blinks of a negative: the picture behind glitches */
.boom__glitch { position: absolute; inset: 0; pointer-events: none; opacity: 0; -webkit-backdrop-filter: invert(1) hue-rotate(150deg) saturate(3); backdrop-filter: invert(1) hue-rotate(150deg) saturate(3); }
.boom.is-on .boom__glitch { animation: boom-glitch .62s steps(1, end); }
@keyframes boom-glitch { 0% { opacity: 1; } 11% { opacity: 0; } 34% { opacity: 1; transform: translate(14px, -8px) skewX(6deg); } 44% { opacity: 0; } 100% { opacity: 0; } }
.boom__flash {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, #fff 0%, rgba(255, 255, 255, .85) 18%, rgba(255, 236, 200, .35) 45%, transparent 72%);
  opacity: 0;
  pointer-events: none;
}
.boom.is-on .boom__flash { animation: boom-flash .8s ease-out; }
@keyframes boom-flash { 0% { opacity: 0; transform: scale(.2); } 10% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
/* shockwaves: several, each from its own point */
.boom__ring {
  position: absolute; left: var(--rx, 50%); top: var(--ry, 50%);
  width: 40vmax; height: 40vmax;
  margin: -20vmax 0 0 -20vmax;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 60px rgba(255, 255, 255, .6), inset 0 0 60px rgba(255, 255, 255, .35);
  opacity: 0;
  pointer-events: none;
}
.boom.is-on .boom__ring { animation: boom-ring 1.1s cubic-bezier(.1, .7, .2, 1) var(--rd, 0s) backwards; }
@keyframes boom-ring { 0% { opacity: 1; transform: scale(.02); } 100% { opacity: 0; transform: scale(3.6); border-width: .5px; } }
/* debris: shards of glass, splinters and sparks; path and spin come from the script */
.boom__shard {
  position: absolute; left: 50%; top: 50%;
  width: var(--w); height: var(--h);
  margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2);
  background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .15) 60%, rgba(255, 255, 255, .5));
  clip-path: polygon(8% 0, 100% 22%, 78% 100%, 0 70%);
  opacity: 0;
  pointer-events: none;
}
.boom__shard--b { clip-path: polygon(50% 0, 100% 100%, 0 80%); }
.boom__shard--c { clip-path: polygon(0 30%, 60% 0, 100% 60%, 35% 100%); background: linear-gradient(200deg, hsl(var(--hue) 100% 70% / .95), rgba(255, 255, 255, .2)); }
.boom__shard--spark { clip-path: none; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #fff 40%, hsl(var(--hue) 100% 75%)); box-shadow: 0 0 10px hsl(var(--hue) 100% 70%); }
.boom__link {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vh, 34px);
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.boom__word {
  display: block;
  font-weight: 800;
  font-size: clamp(38px, min(14.5vw, 20vh), 230px);
  line-height: .9;
  text-align: center;
  letter-spacing: -.02em;
  white-space: nowrap;
  perspective: 1300px;
}
.boom__3d {
  display: block;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(calc((var(--px, .5) - .5) * 44deg)) rotateX(calc((var(--py, .5) - .5) * -30deg));
  transition: transform .25s ease-out;
}
/* each letter is its own block (face + a stack of copies behind): they arrive one by one, tumbling */
.boom__line { display: block; white-space: nowrap; transform-style: preserve-3d; }
.boom__gap { display: inline-block; width: .3em; }
.boom__letter { display: inline-block; position: relative; transform-style: preserve-3d; }
.boom__face, .boom__side { display: block; padding: .12em 0; }
.boom__face {
  position: relative;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background:
    linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .95) 50%, transparent 60%) calc((1 - var(--px, .5)) * 100%) 0 / 260% 100% no-repeat,
    linear-gradient(180deg, #fff 0%, #dfe2e8 38%, #9097a4 56%, #c9cdd6 70%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.boom__side {
  position: absolute; inset: 0;
  color: hsl(220 10% calc(60% - var(--k) * 2.6%));
  transform: translateZ(calc(var(--k) * -.011em));
}
.boom__side--shadow { color: rgba(0, 0, 0, .7); filter: blur(.05em); transform: translateZ(calc(var(--k) * -.011em - .04em)) translateY(.05em); }
/* no pointer: the word sways by itself */
@media (hover: none) {
  .boom__3d { animation: boom-sway 5.5s ease-in-out infinite alternate; transition: none; }
}
@keyframes boom-sway { from { transform: rotateY(-20deg) rotateX(9deg); } to { transform: rotateY(20deg) rotateX(-9deg); } }
.boom__hint {
  font-weight: 500;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .85);
  padding: .9em 1.9em;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  transition: background-color .25s, color .25s, border-color .25s;
}
.boom.is-on .boom__hint { animation: boom-hint .7s var(--ease) 10.1s backwards; }
@keyframes boom-hint { from { opacity: 0; transform: translateY(16px); } }
@media (hover: hover) { .boom__link:hover .boom__hint { background: #fff; color: #000; border-color: #fff; } }
.boom__link:focus-visible { outline: none; }
.boom__link:focus-visible .boom__hint { outline: 2px solid #fff; outline-offset: 4px; }
.boom__close { position: absolute; top: calc(16px + env(safe-area-inset-top)); right: calc(16px + env(safe-area-inset-right)); z-index: 1; }
.boom.is-on .boom__close { animation: boom-hint .6s var(--ease) 1.2s backwards; }
@media (prefers-reduced-motion: reduce) {
  .boomed .works, .boom.is-on .boom__flash, .boom.is-on .boom__ring, .boom.is-on .boom__glitch, .boom__3d { animation: none; }
  .boom__3d { transform: none; }
  .boomed .card { opacity: 0; transition: opacity .4s; }
}

/* Safari can lose text that is clipped to a gradient when it sits in a 3D scene: there the
   lettering gets a solid face (the depth layers and the light from the filter stay) */
.safari .boom__face { background: none; color: #eceef2; -webkit-text-fill-color: #eceef2; }

/* everything on the site is set in lowercase: names, buttons, captions, credits. Form controls
   don't inherit text-transform by default, so they are named here too */
html, button, input, textarea, select, ::placeholder { text-transform: lowercase; }

/* ───────── More liquid glass ─────────
   Seven small pieces. Every one of them moves with transform and opacity only (the browser's
   compositor does the work, nothing is laid out or repainted per frame), none runs at rest. */
/* 1. splash: pressing a work sends a ring of light across its glass from the point of touch */
.splash {
  position: absolute;
  z-index: 2;
  width: 48px; height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, transparent 46%, rgba(255, 255, 255, .55) 62%, rgba(255, 255, 255, .12) 70%, transparent 74%);
  animation: splash .75s cubic-bezier(.1, .6, .2, 1) forwards;
}
@keyframes splash { from { transform: scale(.2); opacity: 1; } to { transform: scale(var(--s, 12)); opacity: 0; } }
/* 2. magnet: a glass button leans towards the pointer (translate set from the script) */
.is-mag { transition-duration: .45s, .25s, .12s !important; }
/* 3. droplets: three beads of glass trail behind the cursor lens */
.bead {
  position: fixed; left: 0; top: 0;
  z-index: 39;
  width: var(--d); height: var(--d);
  margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .85), rgba(255, 255, 255, .16) 42%, rgba(255, 255, 255, .05) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 4px 12px -4px rgba(0, 0, 0, .5);
  transition: opacity .35s;
}
.lens.is-on ~ .bead { opacity: var(--o); }
.lite .bead { display: none; }
/* 4. squish: the dock is a drop too — it spreads and flattens with the speed of the wall (--q from the scroll loop) */
.dock { transform: scale(calc(1 + var(--q, 0) * .014), calc(1 - var(--q, 0) * .024)); }
/* 5. toast: a pill of glass drops in from the top with a word of confirmation */
.toast {
  position: fixed;
  z-index: 70;
  left: 50%; top: calc(14px + env(safe-area-inset-top));
  padding: 12px 20px;
  border-radius: 999px;
  font: 500 12px/1 var(--serif);
  letter-spacing: .12em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -160%) scale(.8, .6);
  transition: transform .55s var(--spring), opacity .3s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.boomed .toast { opacity: 0 !important; pointer-events: none; }

/* The artist line in the corner of a titled card: plain small text in the site's own face —
   no display font, no glass fill, just white with a soft shadow so it reads on any picture */
.ht__artist {
  font-size: 15px;
  font-family: inherit;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .9);
  -webkit-text-fill-color: rgba(255, 255, 255, .9);
  background: none;
  filter: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .55);
}

/* Touch: the title looks like the one on a computer — the lit glass face over a solid block
   of letters — but is built flat, the way phones draw it reliably: the copies behind the face
   are simply shifted down and to the right, each a little darker, and the whole word then
   sways as one sheet. No outline, no separate shadow copy. Transform and opacity only. */
@media (hover: none) {
  .ht__title { perspective: 640px; }
  .ht.is-on .ht__title { animation: ht-flip .9s var(--spring) backwards; }
  .ht__3d { transform-style: flat; animation: ht-sway 4.2s ease-in-out infinite alternate; }
  .ht__side {
    color: hsl(218 9% calc(74% - var(--k) * 7%));
    -webkit-text-fill-color: currentColor;
    -webkit-text-stroke: 0;
    transform: translate(calc(var(--k) * .0075em), calc(var(--k) * .011em));
  }
  .ht__side--shadow { display: none; }
  /* the blast on a phone: no negative blink over the whole screen and no blurred shadow copies
     of the letters (both misdraw on mobile GPUs), no 3D depth on the flying pieces */
  .boom__glitch, .boom__side--shadow { display: none; }
  .boomed .grid, .boom__word { perspective: none; }
}
@keyframes ht-sway { from { transform: rotateY(-9deg) rotateX(7deg); } to { transform: rotateY(9deg) rotateX(-5deg); } }
@keyframes ht-flip { from { opacity: 0; transform: rotateX(85deg) translateY(45%) scale(.75); } 60% { opacity: 1; } }
.lite .ht__3d { animation: none; }

/* the contact button in the dock is an icon */
.dock__contact svg { display: block; }

/* ───────── Phones and tablets: calm version ─────────
   The title is plain text: white, bold, a soft shadow to read on any picture. No 3D, no
   layers, no swaying, no fill clipped to the letters, no filters — nothing a mobile browser
   can misdraw. It simply fades in. */
@media (hover: none) {
  .ht__title { perspective: none; }
  .ht.is-on .ht__title { animation: ht-fade .3s ease-out backwards; }
  .ht__3d { transform: none !important; transform-style: flat; animation: none !important; }
  .ht__side { display: none; }
  .ht__face {
    background: none;
    color: #fff;
    -webkit-text-fill-color: #fff;
    -webkit-text-stroke: 0;
    filter: none;
    text-shadow: none;
    animation: none !important;
  }
  /* the blast: letters arrive without their depth copies, debris has no coloured glow */
  .boom__side { display: none; }
  .boom__3d { animation: none; transform: none; }
  .boom__shard--spark { box-shadow: none; }
  .boom__ring { box-shadow: none; }
}
@keyframes ht-fade { from { opacity: 0; } }

/* track titles carry no shadow anywhere: not the blurred copy behind the 3D block, not a text shadow */
.ht__side--shadow { display: none; }
.ht__face { text-shadow: none; }

/* ───────── Search on phones and tablets ─────────
   A plain bar fixed to the top of the screen: opaque (no blur to recompute), a fixed size (no
   animation of its width), and no script following the keyboard — a field at the top can't be
   covered by it. The dock just hides while the bar is open. */
.msearch {
  position: fixed;
  z-index: 46;
  left: 0; right: 0; top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
  background: #0b0b0d;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.msearch[hidden] { display: none; }
.msearch__field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: var(--fg);
}
.msearch__field svg { flex: none; opacity: .7; }
.msearch input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 16px; /* under 16px iOS zooms the page on focus */
  -webkit-appearance: none; appearance: none;
}
.msearch input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.msearch__close {
  flex: none;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--fg);
}
.msearch-open .dock { visibility: hidden; }
@media (hover: none) {
  .search input { pointer-events: none; }               /* the dock's field only opens the bar */
  .searching .works { padding-top: calc(62px + env(safe-area-inset-top)); } /* results start below the bar */
}

/* artist names a touch larger; phones keep them a step smaller so long line-ups still fit */
@media (max-width: 700px) { .ht__artist { font-size: 13.5px; } }

/* ───────── Test look: warm evening sky (only with ?look=sky in the address) ─────────
   Colours and type only; the layout is the usual wall.
   Indigo #2a1f5c, lavender #8f7be8, orchid #e58fd2, peach #ffb38a, amber #ffd08a, cream #fff6ee. */
.look-sky { --bg: #2a1f5c; --fg: #fff6ee; --dim: rgba(255, 246, 238, .78); --faint: rgba(255, 246, 238, .5); }
html.look-sky {
  background:
    radial-gradient(80vw 34vh at 50% 100%, rgba(255, 176, 160, .55), transparent 72%),
    linear-gradient(180deg, #3d3582 0%, #5546a6 22%, #8468cc 46%, #b983d8 64%, #ea93c8 82%, #f7a3bd 100%);
  background-attachment: fixed;
}
.look-sky .ambient { background: transparent; }
.look-sky .ambient__v { display: none; }
.look-sky .ambient__veil { background: linear-gradient(180deg, rgba(42, 31, 92, .28), rgba(42, 31, 92, 0) 45%, rgba(255, 150, 120, .12)); opacity: 1; }
.look-sky .card { box-shadow: 0 0 0 1px rgba(255, 246, 238, .28), 0 18px 40px -18px rgba(42, 31, 92, .7); }
@media (hover: hover) {
  .look-sky .card:hover { box-shadow: 0 0 0 2px #fff6ee, 0 0 44px 4px rgba(255, 179, 138, .7), 0 30px 70px -18px rgba(42, 31, 92, .8); }
  .look-sky .is-dim .card:not(:hover) { filter: none; }
}
.look-sky .ht__face {
  background:
    linear-gradient(180deg, #fff6ee 10%, #ffd08a 52%, #ffa98c 78%, #e58fd2 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.look-sky .ht__shade { text-shadow: 0 .04em .16em rgba(42, 31, 92, .6); }
.look-sky .ht__side { color: #4a3aa6; -webkit-text-fill-color: #4a3aa6; }
.look-sky .ht__artist { background: none; color: #fff6ee; -webkit-text-fill-color: #fff6ee; filter: drop-shadow(0 1px 6px rgba(42, 31, 92, .7)); }
.look-sky .glow { filter: blur(46px) saturate(1.8) brightness(1.2) sepia(.35) hue-rotate(-20deg); }
.look-sky .dock { box-shadow: 0 0 0 1px rgba(255, 246, 238, .45), 0 18px 44px -12px rgba(42, 31, 92, .75); }
.look-sky .dock__link:hover, .look-sky .dock__link:focus-visible { color: #ffd08a; }
.look-sky .player__frame { box-shadow: 0 0 0 1px rgba(255, 246, 238, .4), 0 0 70px rgba(255, 179, 138, .4); }
.look-sky ::selection { background: #ffb38a; color: #2a1f5c; }
@media (hover: none) { .look-sky .ht__face { background: none; color: #fff6ee; -webkit-text-fill-color: #fff6ee; } }
