/* ==========================================================================
   DJ live stream — styles (mobile first)
   Near-black, monochrome, one accent. Smooch Sans (self-hosted) for text;
   the artist name is drawn as dots by assets/js/title.js.
   ========================================================================== */

@font-face {
  font-family: "Smooch Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/smooch-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Smooch Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/smooch-sans-latin.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;
}

:root {
  --bg: #050506;
  --ink: #e8e6e1;
  --ink-2: #b0aea9;
  --ink-3: #8f8d88;
  --hair: rgba(232, 230, 225, .12);
  --hair-2: rgba(232, 230, 225, .24);
  --accent: #ff5b3a;
  --accent-a: rgba(255, 91, 58, .35);

  --font: "Smooch Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --gutter: 16px;

  /* first-screen geometry — phones in portrait */
  --pad-top: calc(58px + var(--safe-t));
  --pad-bottom: calc(66px + var(--safe-b));
  --kicker-h: 30px;
  --title-h: clamp(40px, 13vw, 66px);
  --gap: 16px;
  --controls-h: 58px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: #2a2a2e var(--bg);
  /* pans and pinch-zoom stay native; only double-tap-to-zoom is turned off,
     because a double tap changes the visual mood */
  touch-action: manipulation;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font: 400 19px/1.45 var(--font);
  letter-spacing: .015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

::selection { background: var(--accent-a); color: var(--ink); }
button, input { font: inherit; }

/* ---------- visual field (canvas) ---------- */
.field {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  display: block;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2.4s var(--ease);
}
.field.is-ready { opacity: 1; }

main, .foot { position: relative; z-index: 1; }

/* legibility over busy visuals */
.kicker, .controls, .calm, .screen__panel, .enter, .toast {
  text-shadow: 0 0 14px rgba(5, 5, 6, .9), 0 0 3px rgba(5, 5, 6, .8);
}

/* ---------- shared bits ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.kicker__line { width: 26px; height: 1px; background: currentColor; opacity: .7; }

/* ==========================================================================
   1 · HERO / PLAYER
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--gap);
  padding: var(--pad-top) max(var(--gutter), calc(var(--safe-r) + 8px)) var(--pad-bottom) max(var(--gutter), calc(var(--safe-l) + 8px));
}

.hero__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

/* the dot-matrix name */
.artist {
  position: relative;
  width: var(--stage-w, 100%);       /* same width as the player */
  height: var(--title-h);
  margin: 0;
  font-weight: 300;
  font-size: var(--title-h);
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
}
.artist { --title-lines: 2; }
.hero:has(.artist.is-two-line) { --title-extra: calc(var(--title-h) * .9); }
.artist.is-two-line { height: calc(var(--title-h) * 1.9); }
.artist::before {               /* soft dark backing so the dots read over busy visuals */
  content: "";
  position: absolute;
  inset: -30% 0;
  background: radial-gradient(closest-side, rgba(5, 5, 6, .62), rgba(5, 5, 6, 0));
  pointer-events: none;
}
.js .artist__text {            /* stays in the page for screen readers; the dots draw it */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.artist__dots { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* calm toggle — a small square */
.calm {
  position: absolute;
  top: calc(6px + var(--safe-t));
  right: max(calc(var(--gutter) - 10px), var(--safe-r));
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 10px;
  background: none;
  border: 0;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .4s var(--ease);
}
.calm__box {
  position: relative;
  width: 12px;
  height: 12px;
  border: 1px solid var(--ink-3);
  transition: border-color .4s var(--ease);
}
.calm__box::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--ink);
  transform: scale(0);
  transition: transform .45s var(--ease-out);
}
.calm[aria-pressed="true"] { color: var(--ink-2); }
.calm[aria-pressed="true"] .calm__box { border-color: var(--ink); }
.calm[aria-pressed="true"] .calm__box::after { transform: scale(1); }
@media (hover: hover) {
  .calm:hover { color: var(--ink-2); }
}

/* ---------- stage ---------- */
.hero {
  /* the player's width: as wide as possible while the whole first screen fits */
  --chrome: calc(var(--pad-top) + var(--pad-bottom) + var(--kicker-h) + var(--title-h) + var(--title-extra, 0px) + var(--controls-h) + 2 * var(--gap));
  --stage-w: min(100%, 1180px, max(calc((100vh - var(--chrome)) * 16 / 9), 260px));
}
@supports (height: 100svh) {
  .hero { --stage-w: min(100%, 1180px, max(calc((100svh - var(--chrome)) * 16 / 9), 260px)); }
}
.stage {
  position: relative;
  width: var(--stage-w);
  -webkit-user-select: none;
  user-select: none;
}

.frame {
  --spread: 0;
  --glow: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(6, 6, 7, .42);
  outline: 1px solid var(--hair);
  isolation: isolate;
  transition: background-color 1.4s var(--ease);
}
@supports not (aspect-ratio: 1 / 1) {
  .frame { height: 0; padding-top: 56.25%; }
}
body[data-view="live"] .frame,
body[data-view="paused"] .frame { background: rgba(5, 5, 6, .82); }

.frame__corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 0 solid var(--ink-2);
  pointer-events: none;
  will-change: transform;
  z-index: 3;
}
.frame__corner--tl { left: -8px;  top: -8px;    border-left-width: 1px;  border-top-width: 1px;    transform: translate3d(calc(var(--spread) * -1px), calc(var(--spread) * -1px), 0); }
.frame__corner--tr { right: -8px; top: -8px;    border-right-width: 1px; border-top-width: 1px;    transform: translate3d(calc(var(--spread) * 1px),  calc(var(--spread) * -1px), 0); }
.frame__corner--bl { left: -8px;  bottom: -8px; border-left-width: 1px;  border-bottom-width: 1px; transform: translate3d(calc(var(--spread) * -1px), calc(var(--spread) * 1px),  0); }
.frame__corner--br { right: -8px; bottom: -8px; border-right-width: 1px; border-bottom-width: 1px; transform: translate3d(calc(var(--spread) * 1px),  calc(var(--spread) * 1px),  0); }

.frame__glow {
  position: absolute;
  inset: -1px;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(232, 230, 225, .16), 0 0 56px 0 rgba(255, 91, 58, .14);
  opacity: var(--glow);
  will-change: opacity;
  z-index: 2;
}

.video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
body[data-view="live"] .video,
body[data-view="paused"] .video { opacity: 1; }

/* small transient label (mood changes, calm on/off) */
.toast {
  position: absolute;
  left: 12px;
  top: 10px;
  z-index: 5;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: 0;
  transform: translate3d(0, -4px, 0);
  transition: opacity .5s var(--ease), transform .8s var(--ease-out);
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: none; }

/* in-frame messages */
.screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 55% at center, rgba(5, 5, 6, .72), rgba(5, 5, 6, 0) 100%);
  opacity: 0;
  transition: opacity .9s var(--ease);
}
body[data-view="offline"] .screen::before,
body[data-view="connecting"] .screen::before,
body[data-view="lost"] .screen::before,
body[data-view="demo"] .screen::before { opacity: 1; }

.screen__panel {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  padding: 0 20px;
  text-align: center;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity .9s var(--ease), transform 1.2s var(--ease-out);
}
body[data-view="offline"]    .screen__panel--offline,
body[data-view="connecting"] .screen__panel--connecting,
body[data-view="lost"]       .screen__panel--lost,
body[data-view="paused"]     .screen__panel--paused,
body[data-view="demo"]       .screen__panel--demo { opacity: 1; transform: none; }

.screen__kicker {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.screen__title {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 6.5vw, 2.6rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.screen__text { margin: 0; font-size: 1.05rem; line-height: 1.3; color: var(--ink-2); }
.screen__bar {
  position: relative;
  display: block;
  width: 120px;
  height: 1px;
  margin: 14px auto 0;
  overflow: hidden;
  background: var(--hair);
}
.screen__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--ink-2), transparent);
  animation: scan 1.8s var(--ease-io) infinite;
}
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.screen__pause {
  display: block;
  width: 24px;
  height: 28px;
  border-left: 2px solid var(--ink-2);
  border-right: 2px solid var(--ink-2);
  opacity: .8;
}

/* ---------- enter prompt ---------- */
.enter {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: radial-gradient(ellipse at center, rgba(5, 5, 6, 0) 0%, rgba(5, 5, 6, .4) 100%);
  color: var(--ink);
  cursor: pointer;
  transition: opacity 1s var(--ease), visibility 0s linear 1s;
}
.enter__ring {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(56px, 15vw, 88px);
  height: clamp(56px, 15vw, 88px);
  border-radius: 50%;
  transition: transform .9s var(--ease-out);
}
.enter__ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--hair-2);
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.enter__arc {
  position: absolute;
  inset: -7px;
  width: calc(100% + 14px);
  height: calc(100% + 14px);
  fill: none;
  stroke: var(--ink-2);
  stroke-width: .7;
  stroke-linecap: round;
  stroke-dasharray: 46 256;
  animation: spin 7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.enter__icon { width: 34%; height: 34%; margin-left: 6%; fill: var(--ink); }
.enter__label {
  margin-right: -.5em;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .5em;
  text-transform: uppercase;
}
.enter__note {
  margin-right: -.28em;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.enter:focus-visible { outline: none; }
.enter:focus-visible .enter__ring { transform: scale(1.07); }
.enter:focus-visible .enter__ring::before { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(255, 91, 58, .16); }
.enter:active .enter__ring { transform: scale(.96); }
@media (hover: hover) {
  .enter:hover .enter__ring { transform: scale(1.07); }
  .enter:hover .enter__ring::before { border-color: var(--ink-3); }
}

body.is-entered .enter {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------- controls ---------- */
.controls {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 48px;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-2);
  touch-action: manipulation;
  transition: opacity .6s var(--ease);
}

.ctl {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
  transition: color .3s var(--ease), background-color .3s var(--ease), transform .4s var(--ease-out);
}
.ctl:active { transform: scale(.92); color: var(--ink); }
@media (hover: hover) {
  .ctl:hover { color: var(--ink); background-color: rgba(232, 230, 225, .06); }
}

.ctl:focus-visible,
.calm:focus-visible,
.vol__range:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.i {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i--play { fill: currentColor; stroke: none; }
.i--pause { stroke-width: 2; }
.ctl--play .i--pause,
.ctl--play[data-playing="true"] .i--play { display: none; }
.ctl--play[data-playing="true"] .i--pause { display: block; }

.i__x { display: none; }
.ctl--mute.is-low .i__w2 { display: none; }
.ctl--mute[aria-pressed="true"] .i__w1,
.ctl--mute[aria-pressed="true"] .i__w2 { display: none; }
.ctl--mute[aria-pressed="true"] .i__x { display: inline; }

.i--fsx { display: none; }
.stage.is-full .i--fs { display: none; }
.stage.is-full .i--fsx { display: block; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin: 0 0 0 2px;
  padding: 5px 11px 5px 9px;
  border: 1px solid var(--hair);
  border-radius: 0;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink-2);
  transition: border-color .8s var(--ease), color .8s var(--ease);
}
.pill__text { margin-right: -.22em; padding-top: 1px; }
.pill__dot {
  position: relative;
  flex: none;
  width: 7px;
  height: 7px;
  border: 1px solid var(--ink-3);
  border-radius: 50%;
  transition: background-color .8s var(--ease), border-color .8s var(--ease);
}
.pill[data-state="live"] { color: var(--ink); border-color: rgba(255, 91, 58, .4); }
.pill[data-state="live"] .pill__dot { background: var(--accent); border-color: var(--accent); }
.pill[data-state="live"] .pill__dot::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 2.6s var(--ease-out) infinite;
}
@keyframes ping {
  0%   { transform: scale(1);   opacity: .55; }
  100% { transform: scale(3.4); opacity: 0; }
}

.meta {
  display: none;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 0 0 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink-3);
  letter-spacing: .1em;
  text-transform: none;
}

.vol { display: flex; align-items: center; gap: 0; flex: 1 1 auto; justify-content: flex-end; min-width: 0; }
.vol__range {
  --val: 80%;
  -webkit-appearance: none;
  appearance: none;
  flex: 0 1 112px;
  min-width: 48px;
  height: 44px;
  margin: 0 8px 0 2px;
  background: transparent;
  cursor: pointer;
}
.vol__range::-webkit-slider-runnable-track {
  height: 1px;
  background: linear-gradient(to right, var(--ink-2) var(--val), var(--hair-2) var(--val));
}
.vol__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  margin-top: -6px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  transition: transform .35s var(--ease-out);
}
.vol__range:active::-webkit-slider-thumb,
.vol__range:focus-visible::-webkit-slider-thumb { transform: scale(1.3); }
.vol__range::-moz-range-track { height: 1px; background: var(--hair-2); }
.vol__range::-moz-range-progress { height: 1px; background: var(--ink-2); }
.vol__range::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: var(--ink); }

/* demo mode shows no status labels */
body[data-demo] .pill,
body[data-demo] .kicker--hero { display: none; }
body[data-demo] { --kicker-h: 0px; }

/* ---------- scroll cue ---------- */
.cue {
  position: absolute;
  left: 50%;
  bottom: calc(16px + var(--safe-b));
  width: 1px;
  height: 40px;
  overflow: hidden;
  background: var(--hair);
  transform: translateX(-50%);
}
.cue__line {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 40%;
  background: var(--ink-2);
  animation: cue 2.8s var(--ease-io) infinite;
}
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* ==========================================================================
   2 · ABOUT
   ========================================================================== */
.about {
  position: relative;
  padding: 88px max(var(--gutter), calc(var(--safe-r) + 8px)) 80px max(var(--gutter), calc(var(--safe-l) + 8px));
}
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(5, 5, 6, 0) 0%, rgba(5, 5, 6, .76) 22%, rgba(5, 5, 6, .86) 100%);
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 80px;
  max-width: 1120px;
  margin: 0 auto;
}
.about__title {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.4rem, 10vw, 4.2rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--ink);
}
.about__body p {
  max-width: 34em;
  margin: 0 0 1.2em;
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-2);
}
.about__body p:first-child {
  font-size: 1.45rem;
  line-height: 1.38;
  color: var(--ink);
}
.about__body p:last-child { margin-bottom: 0; }

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 1.4s var(--ease), transform 1.6s var(--ease-out);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.about__body .reveal:nth-child(2) { transition-delay: .1s; }
.about__body .reveal:nth-child(3) { transition-delay: .2s; }

/* ==========================================================================
   3 · FOOTER
   ========================================================================== */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 32px;
  padding: 22px max(var(--gutter), calc(var(--safe-r) + 8px)) calc(22px + var(--safe-b)) max(var(--gutter), calc(var(--safe-l) + 8px));
  border-top: 1px solid var(--hair);
  background: rgba(5, 5, 6, .86);
  font-size: 14px;
  font-weight: 600;
  line-height: 2;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.foot p { margin: 0; }
.foot__keys, .foot__touch { display: flex; flex-wrap: wrap; gap: 2px 22px; }
.foot__keys span, .foot__touch span { white-space: nowrap; }
.foot__keys kbd {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  border: 1px solid var(--hair);
  border-radius: 3px;
  font: inherit;
  line-height: 1.6;
  letter-spacing: .1em;
  color: var(--ink-2);
}
.foot__keys { display: none; }
@media (pointer: fine) {
  .foot__keys { display: flex; }
  .foot__touch { display: none; }
}

/* ==========================================================================
   Fullscreen and fill-screen
   .is-full is set on the stage both in real fullscreen (Fullscreen API on the
   player container) and in the in-page fill mode used where the API is
   missing (iPhone). The visuals stay alive around the picture in both.
   ========================================================================== */
.stage.is-full {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 0;
  background: var(--bg);
}
.stage.is-filling {
  position: fixed;
  inset: 0;
  z-index: 50;
  width: auto;
  height: 100vh;
  height: 100dvh;
  background: transparent;
}
.stage.is-full .frame {
  flex: 1 1 auto;
  z-index: 1;
  aspect-ratio: auto;
  height: auto;
  padding: 0;
  outline: 0;
  background: rgba(5, 5, 6, .25);
}
.stage.is-full .frame__corner,
.stage.is-full .frame__glow { display: none; }
.stage.is-full .controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  margin: 0;
  padding: 26px max(12px, calc(var(--safe-r) + 6px)) calc(10px + var(--safe-b)) max(12px, calc(var(--safe-l) + 6px));
  background: linear-gradient(to top, rgba(5, 5, 6, .82), rgba(5, 5, 6, 0));
}
.stage.is-full .toast { top: calc(10px + var(--safe-t)); left: max(12px, calc(var(--safe-l) + 6px)); }
.stage.is-full .meta { display: block; }
.stage.is-full.is-still { cursor: none; }
.stage.is-full.is-still .controls { opacity: 0; }
html.is-filling, html.is-filling body { overflow: hidden; overscroll-behavior: none; }
html.is-filling .hero__head,
html.is-filling .calm,
html.is-filling .cue,
html.is-filling .about,
html.is-filling .foot { visibility: hidden; }

/* ==========================================================================
   Larger screens
   ========================================================================== */
@media (min-width: 480px) {
  :root { --gutter: 22px; }
  .meta { display: block; }
}

@media (min-width: 700px) {
  :root {
    --gutter: clamp(24px, 4vw, 48px);
    --pad-top: calc(70px + var(--safe-t));
    --pad-bottom: calc(76px + var(--safe-b));
    --kicker-h: 32px;
    --title-h: clamp(54px, 8.5vw, 96px);
    --gap: clamp(16px, 2.6vh, 32px);
  }
  .calm { top: calc(12px + var(--safe-t)); }
  .frame__corner { width: 18px; height: 18px; }
  .frame__corner--tl, .frame__corner--bl { left: -9px; }
  .frame__corner--tr, .frame__corner--br { right: -9px; }
  .frame__corner--tl, .frame__corner--tr { top: -9px; }
  .frame__corner--bl, .frame__corner--br { bottom: -9px; }
  .controls { gap: 6px; }
  .about { padding-top: clamp(96px, 18vh, 200px); padding-bottom: clamp(88px, 16vh, 170px); }
  .about__body p { font-size: 1.3rem; }
  .about__body p:first-child { font-size: 1.6rem; }
}

@media (min-width: 900px) {
  .about__inner { grid-template-columns: 5fr 7fr; }
}

/* ==========================================================================
   Phones in landscape (short screens): everything tighter so the whole
   player stays on the first screen
   ========================================================================== */
@media (orientation: landscape) and (max-height: 540px) {
  :root {
    --pad-top: calc(8px + var(--safe-t));
    --pad-bottom: calc(6px + var(--safe-b));
    --kicker-h: 0px;
    --title-h: 30px;
    --gap: 8px;
    --controls-h: 54px;
  }
  .kicker--hero, .cue { display: none; }
  .calm { top: calc(2px + var(--safe-t)); }
  .artist { --title-lines: 1; width: calc(100% - 150px); min-width: 200px; }   /* one line, clear of the toggle */
  .calm { min-width: 44px; justify-content: center; }
  .calm__label {                /* only the square here; the label stays for screen readers */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .controls { margin-top: 6px; }
}

/* ==========================================================================
   Calm visuals / reduced motion
   ========================================================================== */
.is-calm .enter__arc,
.is-calm .pill[data-state="live"] .pill__dot::after,
.is-calm .cue__line,
.is-calm .screen__bar::after { animation: none; }
.is-calm .cue__line { transform: translateY(70%); }
.is-calm .screen__bar::after { left: 30%; }
.is-calm.js .reveal { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .enter__arc,
  .pill[data-state="live"] .pill__dot::after,
  .cue__line,
  .screen__bar::after { animation: none; }
  .js .reveal { transform: none; }
}
