/* ───────── 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;
}
.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;
}
.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: uppercase;
  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);
  }
  .grid:has(.card:hover) .card: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: uppercase;
  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 */
  padding: .16em 0; /* no side padding: the word is fitted to this box exactly */
  margin: -.16em 0;
  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. */
.ht__title, .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));
}
.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: uppercase;
  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__video iframe { display: block; width: 100%; height: 100%; border: 0; }
/* 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: uppercase; 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: 500 11px/1.3 var(--serif); letter-spacing: .05em; text-transform: uppercase; 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(56px, 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: uppercase;
  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); }
  .player__bar { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 8px; padding: 14px 8px 8px; border-radius: 28px; }
  .player__info { padding: 0 8px; }
  .player__ctrl { gap: 6px; }
  .player__ctrl .ibtn { width: 44px; height: 44px; }
  .player__ctrl .pill { flex: 1; min-width: 0; height: 44px; padding: 0 8px; font-size: 13px; }
  .player__ctrl .pill span { display: none; }
}
/* 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 .ibtn, .player__ctrl .pill { height: 40px; }
  .player__ctrl .ibtn { width: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .card:hover, .card:hover video, .card:active { transform: none; }
  .card video { scale: 1; translate: none; }
}

.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__title, .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__title { animation: ht-in .6s var(--spring) backwards, ht-sweep 1.1s var(--ease) .15s backwards; }
  .ht__title { bottom: -5%; }
  .ht__artist { left: 14px; top: 13px; right: 14px; font-size: 10px; }
}
@keyframes ht-sweep { from { background-position: -30% 0, 0 0; } }
