:root {
  color-scheme: light;
  --bg: #f6f0e6;
  --paper: #fffaf0;
  --ink: #070a35;
  --muted: #5e526f;
  --line: rgba(7, 10, 53, 0.16);
  --accent: #ff4d18;
  --balloon: #d7192d;
  --violet: #5b3493;
  --shadow: rgba(33, 19, 64, 0.24);
  --feature-tile-height: clamp(218px, 33vh, 306px);
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  min-height: 100%;
}

body {
  position: relative;
  isolation: isolate;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    linear-gradient(90deg, rgba(7, 10, 53, 0.04) 1px, transparent 1px) 0 0 / 42px
      42px,
    linear-gradient(rgba(7, 10, 53, 0.035) 1px, transparent 1px) 0 0 / 42px
      42px,
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      112deg,
      rgba(255, 77, 24, 0.17) 0 14%,
      transparent 14% 23%,
      rgba(0, 224, 255, 0.14) 23% 39%,
      transparent 39% 50%,
      rgba(255, 51, 204, 0.14) 50% 66%,
      transparent 66% 76%,
      rgba(255, 233, 154, 0.22) 76% 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 250, 240, 0.08),
      rgba(255, 250, 240, 0.68)
    ),
    repeating-linear-gradient(
      0deg,
      rgba(91, 52, 147, 0.12) 0 2px,
      transparent 2px 18px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(7, 10, 53, 0.08) 0 1px,
      transparent 1px 34px
    );
  opacity: 0.9;
  animation: vaporwavePanelDrift 14s steps(6, end) infinite;
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  display: grid;
  align-content: center;
  align-items: start;
  overflow: hidden;
  padding: clamp(8px, 1.8vh, 18px) 0 clamp(8px, 2vh, 22px);
}

.hero {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(340px, 0.94fr) minmax(420px, 1.06fr);
  grid-template-rows: minmax(0, auto) minmax(0, 1fr);
  gap: clamp(7px, 1.25vh, 14px) clamp(28px, 5vw, 72px);
  align-items: start;
}

.identity-panel {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: clamp(8px, 1.5vh, 16px);
  min-width: 0;
  align-self: start;
  animation: brandFloat 7s ease-in-out infinite;
}

.identity-panel::before {
  content: "";
  position: absolute;
  inset: 7% -3% 16% 9%;
  border: 2px solid rgba(91, 52, 147, 0.32);
  transform: rotate(-5deg);
  z-index: 0;
}

.identity-panel::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 18%;
  width: clamp(58px, 9vw, 96px);
  aspect-ratio: 1;
  border: 1px solid rgba(215, 25, 45, 0.44);
  background:
    linear-gradient(90deg, transparent 49%, rgba(215, 25, 45, 0.44) 50%, transparent 51%),
    linear-gradient(transparent 49%, rgba(215, 25, 45, 0.44) 50%, transparent 51%);
  transform: rotate(8deg);
  z-index: 0;
}

.brand-mark {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 610px);
  height: var(--feature-tile-height);
  background: var(--paper);
  background-image: url("bttlabslogo-web.jpg");
  background-image: image-set(
    url("assets/bttlabslogo-web.webp") type("image/webp"),
    url("bttlabslogo-web.jpg") type("image/jpeg")
  );
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border: 1px solid var(--line);
  box-shadow: 0 28px 60px var(--shadow);
  overflow: hidden;
  transition:
    transform 180ms ease,
    filter 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: -36%;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-conic-gradient(
      from 12deg,
      transparent 0 8deg,
      rgba(255, 77, 24, 0.54) 8deg 11deg,
      transparent 11deg 18deg,
      rgba(215, 25, 45, 0.42) 18deg 20deg,
      transparent 20deg 31deg,
      rgba(91, 52, 147, 0.46) 31deg 34deg,
      transparent 34deg 45deg
    );
  mix-blend-mode: multiply;
  opacity: 0;
  transform: scale(0.35) rotate(0deg);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      transparent 0 38%,
      rgba(255, 250, 240, 0.72) 46%,
      transparent 55% 100%
    );
  opacity: 0.58;
  transform: translateX(-115%);
  animation: labSweep 6.4s ease-in-out infinite;
}

.brand-mark:hover {
  transform: translateY(-8px) rotate(-1.2deg) scale(1.025);
  filter: saturate(1.18) contrast(1.06);
  border-color: rgba(255, 77, 24, 0.66);
  box-shadow:
    0 26px 34px rgba(215, 25, 45, 0.2),
    0 34px 70px rgba(33, 19, 64, 0.3);
}

.brand-mark:hover::before {
  animation: pictureBurst 820ms cubic-bezier(0.18, 0.82, 0.2, 1) both;
}

.brand-mark:hover::after {
  opacity: 0.9;
  animation: labSweep 580ms ease-out 2;
}

.signal-strip {
  position: relative;
  z-index: 2;
  width: min(82%, 450px);
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 1fr;
  gap: 10px;
}

.signal-strip span {
  height: 8px;
  border: 1px solid rgba(7, 10, 53, 0.22);
  background: var(--paper);
  transform-origin: left center;
  animation: signalTap 2.6s steps(2, end) infinite;
}

.signal-strip span:nth-child(1) {
  background: var(--ink);
  animation-delay: -0.25s;
}

.signal-strip span:nth-child(2) {
  background: var(--accent);
  animation-delay: -0.6s;
}

.signal-strip span:nth-child(3) {
  background: var(--balloon);
  animation-delay: -0.95s;
}

body[data-radio="playing"] .signal-strip span {
  animation-duration: 1.15s;
}

.hero-copy {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: grid;
  gap: clamp(4px, 0.9vh, 9px);
  align-self: start;
  padding-top: 0;
}

.eyebrow,
.link-kicker {
  margin: 0;
  color: var(--violet);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1 {
  position: relative;
  margin: 0;
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(4.75rem, 7.05vw, 6.25rem);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 7px 0 rgba(91, 52, 147, 0.1);
}

h1::before,
h1::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

h1::before {
  inset: -0.18em -0.24em;
  z-index: -1;
  background:
    repeating-conic-gradient(
      from -18deg,
      transparent 0 7deg,
      rgba(255, 77, 24, 0.64) 7deg 10deg,
      transparent 10deg 18deg,
      rgba(215, 25, 45, 0.52) 18deg 21deg,
      transparent 21deg 32deg,
      rgba(91, 52, 147, 0.48) 32deg 36deg,
      transparent 36deg 48deg
    );
  opacity: 0;
  transform: scale(0.5) rotate(0deg);
}

h1::after {
  content: attr(data-burst);
  inset: 0;
  color: var(--accent);
  opacity: 0;
  text-shadow:
    3px 0 0 var(--balloon),
    -3px 0 0 var(--violet);
  transform: translate(0, 0);
}

.hero-copy:hover h1,
h1:hover {
  color: var(--ink);
  animation: titleKick 620ms cubic-bezier(0.18, 0.86, 0.2, 1) both;
}

.hero-copy:hover h1::before,
h1:hover::before {
  animation: titleRayBurst 780ms cubic-bezier(0.18, 0.82, 0.2, 1) both;
}

.hero-copy:hover h1::after,
h1:hover::after {
  animation: titleFlash 620ms steps(4, end) both;
}

.lede {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.93rem, 1.05vw, 1.04rem);
  line-height: 1.18;
}

.quick-links {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: 5px;
  isolation: isolate;
  min-height: 0;
  align-self: stretch;
}

.quick-link {
  position: relative;
  z-index: 1;
  min-height: 0;
  display: grid;
  gap: 1px;
  align-content: center;
  isolation: isolate;
  padding: 6px 112px 6px 14px;
  overflow: hidden;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(33, 19, 64, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.quick-link > :not(.card-art) {
  position: relative;
  z-index: 2;
}

.quick-link:hover,
.quick-link:focus-visible {
  transform: translateY(-4px) translateX(2px);
  border-color: rgba(7, 10, 53, 0.34);
  box-shadow: 0 20px 38px rgba(33, 19, 64, 0.16);
  outline: none;
}

.quick-link:focus-visible {
  outline: 3px solid rgba(255, 77, 24, 0.48);
  outline-offset: 4px;
}

.quick-link strong {
  display: block;
  font-family: var(--font-display);
  overflow: hidden;
  font-size: clamp(0.96rem, 1.08vw, 1.08rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-link small {
  max-width: 44ch;
  display: -webkit-box;
  color: var(--muted);
  overflow: hidden;
  font-size: 0.61rem;
  line-height: 1.03;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.link-action {
  color: var(--ink);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-link--balloon {
  color: var(--balloon);
}

.quick-link--tommy {
  color: var(--accent);
}

.quick-link--market {
  color: #006f73;
}

.quick-link--blingo {
  color: #008b8f;
}

.quick-link--fund {
  color: #6b4a00;
}

.quick-link--oblation {
  color: var(--violet);
}

.card-art {
  position: absolute;
  right: 18px;
  top: 54%;
  z-index: 1;
  width: 86px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
  transform: translateY(-50%);
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.card-art::before {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px solid color-mix(in srgb, currentColor 42%, transparent);
  transform: rotate(5deg);
}

.card-art picture {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.card-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 10px rgba(33, 19, 64, 0.22));
}

.quick-link:hover .card-art,
.quick-link:focus-visible .card-art {
  transform: translateY(-50%) translateX(-5px) scale(1.04);
  filter: saturate(1.08);
}

.card-art--balloon {
  right: 42px;
  top: 56%;
  width: 54px;
  aspect-ratio: 111 / 174;
  --balloon-breath-scale: 1.07;
  --balloon-breath-squash: 0.985;
  --balloon-pump-scale: 1.15;
  --balloon-pump-squash: 0.94;
}

.card-art--balloon::before {
  inset: -6px -16px 6px;
  transform: rotate(-8deg);
}

.card-art--balloon img {
  transform-origin: 50% 82%;
  animation: balloonBreath 2.8s ease-in-out infinite;
}

.quick-link--balloon:hover .card-art--balloon img,
.quick-link--balloon:focus-visible .card-art--balloon img {
  animation: pumpKick 660ms cubic-bezier(0.2, 0.82, 0.24, 1) both;
}

.card-art--tommy {
  right: 12px;
  width: 88px;
}

.card-art--tommy img {
  animation: tommyHeadsetFloat 4.1s ease-in-out infinite;
}

.card-art--market {
  right: 10px;
  width: 92px;
}

.card-art--market img {
  animation: tommyMarketFloat 3.7s ease-in-out infinite;
}

.card-art--blingo {
  right: 18px;
  width: 78px;
  color: #008b8f;
}

.card-art--blingo::before {
  inset: 4%;
  background:
    linear-gradient(135deg, rgba(0, 139, 143, 0.12), rgba(255, 233, 154, 0.36)),
    var(--paper);
}

.blingo-board {
  position: relative;
  z-index: 1;
  width: 62px;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  padding: 5px;
  background: var(--ink);
  border: 2px solid currentColor;
  box-shadow: 0 10px 16px rgba(33, 19, 64, 0.18);
}

.blingo-board::before {
  content: "";
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  background:
    linear-gradient(90deg, #ffe99a 0 9px, transparent 9px 12px) 0 0 / 12px 12px,
    linear-gradient(#39e2e2 0 9px, transparent 9px 12px) 0 0 / 12px 12px;
  opacity: 0.88;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.quick-link--blingo:hover .blingo-board,
.quick-link--blingo:focus-visible .blingo-board {
  transform: rotate(-2deg) scale(1.05);
}

.card-art--oblation {
  right: 10px;
  width: 92px;
}

.card-art--oblation img {
  animation: tommyPopeFloat 4.8s ease-in-out infinite;
}

.card-art--fund {
  right: 8px;
  width: 92px;
}

.card-art--fund img {
  animation: tommyMarketFloat 4.2s ease-in-out infinite;
}

body[data-radio="playing"] .card-art--tommy img,
body[data-radio="playing"] .card-art--market img,
body[data-radio="playing"] .card-art--fund img,
body[data-radio="playing"] .card-art--oblation img {
  animation-duration: 2.6s;
}

body[data-radio="playing"] .card-art--balloon img {
  animation-duration: 1.7s;
}

.radio-panel {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  min-height: 0;
  height: 100%;
  display: grid;
  gap: 8px;
  align-content: start;
  margin-top: 0;
  padding: 16px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.94), rgba(255, 250, 240, 0.78)),
    var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(33, 19, 64, 0.12);
}

.radio-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(7, 10, 53, 0.055) 0 1px,
      transparent 1px 18px
    );
  opacity: 0.55;
}

.radio-panel::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 96px;
  height: 18px;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px),
    linear-gradient(90deg, var(--accent) 0 7px, transparent 7px 14px),
    linear-gradient(90deg, var(--balloon) 0 5px, transparent 5px 10px);
  background-size: 24px 6px, 28px 6px, 20px 6px;
  background-position: 0 0, 0 6px, 0 12px;
  background-repeat: repeat-x;
  opacity: 0.34;
  animation: radioBars 1.25s steps(4, end) infinite;
}

.radio-panel > * {
  position: relative;
  z-index: 1;
}

.radio-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.radio-header h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.46rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.radio-status {
  min-width: 86px;
  padding: 6px 9px;
  color: var(--paper);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  background: var(--ink);
}

.radio-drawer-toggle {
  display: none;
}

body[data-radio="playing"] .radio-status {
  background: var(--accent);
  animation: radioStatusPulse 1.05s steps(2, end) infinite;
}

.radio-title-line,
.radio-mode {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.radio-title-line {
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-mode {
  min-height: 0;
  max-height: 1.5em;
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-field,
.radio-sliders label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.radio-field select,
.radio-sliders input {
  min-width: 0;
}

.radio-field select {
  width: 100%;
  height: 36px;
  padding: 0 11px;
  color: var(--ink);
  font: 700 0.92rem var(--font-body);
  letter-spacing: 0;
  background: var(--paper);
  border: 1px solid var(--line);
}

.radio-controls {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.28fr) minmax(0, 0.78fr);
  gap: 8px;
  min-width: 0;
}

.radio-controls button {
  min-height: 46px;
  padding: 0 14px;
  color: var(--ink);
  font: 900 1rem var(--font-body);
  letter-spacing: 0.02em;
  background: var(--paper);
  border: 1px solid rgba(7, 10, 53, 0.2);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.radio-controls button:hover,
.radio-controls button:focus-visible,
.radio-drawer-toggle:focus-visible,
.radio-field select:focus-visible,
.radio-sliders input:focus-visible {
  border-color: rgba(255, 77, 24, 0.72);
  outline: 3px solid rgba(255, 77, 24, 0.26);
  outline-offset: 2px;
}

.radio-controls button:hover {
  transform: translateY(-1px);
}

#radio-play {
  color: var(--paper);
  background: var(--ink);
}

body[data-radio="playing"] #radio-play {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 77, 24, 0.2);
}

.radio-sliders input[type="range"] {
  accent-color: var(--accent);
}

.radio-sliders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.radio-mode-selectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.radio-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 250, 240, 0.84);
  border: 1px solid rgba(7, 10, 53, 0.2);
  cursor: pointer;
}

.radio-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.radio-toggle:has(input:checked) {
  color: var(--paper);
  background: var(--violet);
  border-color: var(--violet);
}

.radio-toggle:focus-within {
  border-color: rgba(255, 77, 24, 0.72);
  outline: 3px solid rgba(255, 77, 24, 0.26);
  outline-offset: 2px;
}

@media (min-width: 900px) {
  .radio-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px 12px;
  }

  .radio-header {
    grid-column: 1;
    grid-row: 1;
  }

  .radio-panel > .radio-field {
    grid-column: 1;
    grid-row: 4;
    align-self: end;
  }

  .radio-title-line {
    grid-column: 1;
    grid-row: 2;
  }

  .radio-mode {
    grid-column: 1;
    grid-row: 3;
  }

  .radio-controls {
    grid-column: 1;
    grid-row: 5;
  }

  .radio-mode-selectors {
    grid-column: 1;
    grid-row: 6;
    align-self: end;
  }

  .radio-sliders {
    grid-column: 1;
    grid-row: 7;
  }
}

@keyframes brandFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(-0.45deg);
  }
}

@keyframes pictureBurst {
  0% {
    opacity: 0;
    transform: scale(0.25) rotate(0deg);
  }
  32% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: scale(1.08) rotate(32deg);
  }
}

@keyframes titleKick {
  0% {
    transform: translateX(0) rotate(0deg);
    text-shadow: 0 7px 0 rgba(91, 52, 147, 0.1);
  }
  22% {
    transform: translateX(8px) rotate(1.2deg);
    text-shadow:
      8px 0 0 rgba(255, 77, 24, 0.3),
      -8px 0 0 rgba(91, 52, 147, 0.26);
  }
  52% {
    transform: translateX(-5px) rotate(-0.8deg);
    text-shadow:
      -6px 0 0 rgba(215, 25, 45, 0.28),
      7px 0 0 rgba(255, 77, 24, 0.22);
  }
  100% {
    transform: translateX(0) rotate(0deg);
    text-shadow: 0 7px 0 rgba(91, 52, 147, 0.1);
  }
}

@keyframes titleRayBurst {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
  }
  34% {
    opacity: 0.88;
  }
  100% {
    opacity: 0;
    transform: scale(1.2) rotate(-28deg);
  }
}

@keyframes titleFlash {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  18% {
    opacity: 0.72;
    transform: translate(7px, -2px);
  }
  38% {
    opacity: 0.44;
    transform: translate(-6px, 2px);
  }
  62% {
    opacity: 0.82;
    transform: translate(3px, 0);
  }
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

@keyframes labSweep {
  0%,
  32% {
    transform: translateX(-115%);
  }
  52%,
  100% {
    transform: translateX(115%);
  }
}

@keyframes signalTap {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
  50% {
    transform: scaleX(0.58);
    opacity: 0.64;
  }
}

@keyframes radioBars {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(8px);
  }
}

@keyframes radioStatusPulse {
  0%,
  100% {
    color: var(--paper);
  }
  50% {
    color: #ffe99a;
  }
}

@keyframes vaporwavePanelDrift {
  0%,
  100% {
    background-position:
      0 0,
      0 0,
      0 0,
      0 0;
  }
  50% {
    background-position:
      24px 0,
      0 0,
      0 18px,
      34px 0;
  }
}

@keyframes balloonBreath {
  0% {
    transform: translateY(3px) scaleX(var(--balloon-breath-squash)) scaleY(1);
  }
  48% {
    transform: translateY(-7px) scaleX(1) scaleY(var(--balloon-breath-scale));
  }
  100% {
    transform: translateY(3px) scaleX(var(--balloon-breath-squash)) scaleY(1);
  }
}

@keyframes pumpKick {
  0% {
    transform: translateY(0) scale(1);
  }
  22% {
    transform: translateY(-10px) scale(var(--balloon-pump-scale));
  }
  46% {
    transform: translateY(5px) scaleX(1.02) scaleY(var(--balloon-pump-squash));
  }
  70% {
    transform: translateY(-3px) scale(1.035);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes tommyHeadsetFloat {
  0%,
  100% {
    transform: translateY(2px) rotate(-1deg);
  }
  45% {
    transform: translateY(-6px) rotate(1.2deg);
  }
}

@keyframes tommyMarketFloat {
  0%,
  100% {
    transform: translateY(2px) rotate(1.4deg);
  }
  46% {
    transform: translateY(-7px) rotate(-1deg);
  }
}

@keyframes tommyPopeFloat {
  0%,
  100% {
    transform: translateY(1px) rotate(1deg);
  }
  50% {
    transform: translateY(-5px) rotate(-1.2deg);
  }
}

@media (max-width: 860px) {
  body {
    --mobile-radio-collapsed-height: 92px;
    --mobile-radio-expanded-height: min(76dvh, 438px);
  }

  .site-shell {
    width: min(100% - 20px, 1180px);
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    align-items: start;
    padding: 10px 0 calc(var(--mobile-radio-collapsed-height) + 12px);
  }

  body[data-radio-drawer="expanded"] .site-shell {
    padding-bottom: calc(var(--mobile-radio-collapsed-height) + 12px);
  }

  .hero {
    height: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, auto) minmax(0, auto) minmax(0, 1fr) auto;
    gap: 8px;
    align-content: start;
  }

  .identity-panel,
  .hero-copy,
  .radio-panel,
  .quick-links {
    grid-column: 1;
    grid-row: auto;
  }

  .quick-links {
    margin-top: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 6px;
  }

  .radio-panel {
    position: fixed;
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 30;
    width: auto;
    min-height: 0;
    max-height: var(--mobile-radio-collapsed-height);
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: auto auto;
    align-content: center;
    gap: 3px 7px;
    padding: 8px;
    overflow: hidden;
    box-shadow:
      0 -12px 34px rgba(33, 19, 64, 0.16),
      0 16px 34px rgba(33, 19, 64, 0.12);
    transition:
      max-height 180ms ease,
      box-shadow 180ms ease;
  }

  body[data-radio-drawer="expanded"] .radio-panel {
    max-height: var(--mobile-radio-expanded-height);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    align-content: start;
    padding: 12px;
    overflow-y: auto;
  }

  .radio-panel::after {
    display: none;
  }

  .radio-header {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 34px;
    gap: 6px;
    align-items: start;
  }

  .radio-header h2 {
    margin-top: 2px;
    font-size: 1.03rem;
  }

  .radio-status {
    min-width: 0;
    width: max-content;
    max-width: 86px;
    padding: 5px 7px;
    font-size: 0.62rem;
  }

  .radio-drawer-toggle {
    position: relative;
    width: 34px;
    height: 30px;
    display: block;
    padding: 0;
    background: rgba(255, 250, 240, 0.88);
    border: 1px solid rgba(7, 10, 53, 0.2);
    cursor: pointer;
  }

  .radio-drawer-toggle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--ink);
    border-right: 2px solid var(--ink);
    transform: translate(-50%, -35%) rotate(-45deg);
  }

  body[data-radio-drawer="expanded"] .radio-drawer-toggle::before {
    transform: translate(-50%, -65%) rotate(135deg);
  }

  .radio-title-line {
    grid-column: 1 / 2;
    grid-row: 2;
    align-self: center;
    font-size: 0.76rem;
  }

  .radio-controls {
    grid-column: 2 / -1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    align-self: center;
  }

  #radio-prev,
  #radio-next,
  .radio-mode,
  .radio-field,
  .radio-mode-selectors,
  .radio-sliders {
    display: none;
  }

  #radio-play {
    min-width: 78px;
    min-height: 34px;
  }

  body[data-radio-drawer="expanded"] .radio-title-line,
  body[data-radio-drawer="expanded"] .radio-mode,
  body[data-radio-drawer="expanded"] .radio-field,
  body[data-radio-drawer="expanded"] .radio-controls,
  body[data-radio-drawer="expanded"] .radio-mode-selectors,
  body[data-radio-drawer="expanded"] .radio-sliders {
    grid-column: auto;
    grid-row: auto;
  }

  body[data-radio-drawer="expanded"] .radio-mode,
  body[data-radio-drawer="expanded"] .radio-field,
  body[data-radio-drawer="expanded"] .radio-mode-selectors,
  body[data-radio-drawer="expanded"] .radio-sliders {
    display: grid;
  }

  body[data-radio-drawer="expanded"] #radio-prev,
  body[data-radio-drawer="expanded"] #radio-next {
    display: block;
  }

  body[data-radio-drawer="expanded"] .radio-controls {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.28fr) minmax(0, 0.78fr);
  }

  .brand-mark {
    width: 100%;
    height: min(28dvh, 190px);
    aspect-ratio: 1280 / 853;
  }

  h1 {
    max-width: none;
    font-size: clamp(3.2rem, 12vw, 5.1rem);
  }

  .identity-panel {
    width: min(100%, 270px);
    margin-inline: auto;
  }

  .signal-strip {
    width: 86%;
    gap: 7px;
  }

  .signal-strip span {
    height: 5px;
  }

  .hero-copy {
    gap: 7px;
  }

  .eyebrow,
  .link-kicker {
    font-size: 0.58rem;
    line-height: 1.12;
  }

  .lede {
    max-width: 100%;
    font-size: clamp(0.78rem, 2.9vw, 0.94rem);
    line-height: 1.18;
  }

  .quick-link {
    min-height: clamp(78px, 11.8dvh, 104px);
    align-content: start;
    gap: 2px;
    padding: 7px 52px 7px 8px;
  }

  .quick-link strong {
    font-size: clamp(0.78rem, 3.1vw, 0.96rem);
    line-height: 1;
  }

  .quick-link small {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(0.57rem, 2.25vw, 0.66rem);
    line-height: 1.05;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .link-action {
    font-size: clamp(0.56rem, 2.15vw, 0.66rem);
    line-height: 1.05;
  }

  .card-art {
    right: 5px;
    width: 50px;
  }

  .card-art::before {
    inset: 7%;
  }

  .card-art--balloon {
    right: 16px;
    width: 34px;
  }

  .card-art--tommy,
  .card-art--market,
  .card-art--blingo,
  .card-art--fund,
  .card-art--oblation {
    right: 1px;
    width: 56px;
  }

  .blingo-board {
    width: 44px;
    gap: 2px;
    padding: 4px;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    gap: 7px;
  }

  .identity-panel {
    width: min(100%, 218px);
    margin-inline: auto;
  }

  .identity-panel::before,
  .identity-panel::after {
    display: none;
  }

  .hero-copy {
    gap: 6px;
  }

  h1 {
    font-size: clamp(2.92rem, 14vw, 3.42rem);
  }

  .quick-link {
    min-height: clamp(76px, 11.2dvh, 98px);
    padding: 7px 48px 7px 8px;
  }

  .quick-link strong {
    font-size: clamp(0.76rem, 3.45vw, 0.92rem);
  }

  .quick-link small {
    overflow: hidden;
    font-size: clamp(0.55rem, 2.55vw, 0.64rem);
    line-height: 1.04;
  }

  .quick-link--fund .link-action,
  .quick-link--oblation .link-action {
    font-size: 0.52rem;
  }

  .radio-panel {
    min-height: 0;
    padding: 10px;
  }

  .radio-header {
    display: grid;
  }

  .radio-status {
    width: max-content;
  }

  .radio-sliders {
    grid-template-columns: 1fr;
  }

  body[data-radio-drawer="expanded"] .radio-panel {
    padding: 12px;
  }

  .card-art {
    right: 4px;
    width: 50px;
  }

  .card-art::before {
    inset: 9%;
  }

  .card-art--balloon {
    right: 16px;
    width: 32px;
  }

  .card-art--tommy {
    right: 1px;
    width: 55px;
  }

  .card-art--blingo {
    right: 1px;
    width: 52px;
  }

  .card-art--fund {
    right: 1px;
    width: 56px;
  }

  .card-art--oblation {
    right: 1px;
    width: 56px;
  }
}

@media (max-width: 860px) and (max-height: 740px) {
  body {
    --mobile-radio-collapsed-height: 84px;
  }

  .site-shell {
    padding-top: 6px;
    padding-bottom: calc(var(--mobile-radio-collapsed-height) + 8px);
  }

  .hero {
    gap: 5px;
  }

  .identity-panel {
    width: min(100%, 182px);
    gap: 5px;
  }

  .brand-mark {
    height: min(23dvh, 144px);
  }

  .signal-strip span {
    height: 4px;
  }

  .eyebrow {
    display: none;
  }

  h1 {
    font-size: clamp(2.5rem, 12.5vw, 3rem);
  }

  .lede {
    font-size: 0.73rem;
    line-height: 1.12;
  }

  .quick-link {
    min-height: clamp(65px, 10.6dvh, 86px);
    padding: 6px 42px 6px 7px;
  }

  .quick-link strong {
    font-size: 0.74rem;
  }

  .quick-link small {
    font-size: 0.53rem;
    -webkit-line-clamp: 2;
  }

  .link-action,
  .quick-link--fund .link-action,
  .quick-link--oblation .link-action {
    font-size: 0.49rem;
  }

  .card-art {
    width: 43px;
  }

  .card-art--balloon {
    right: 14px;
    width: 28px;
  }

  .blingo-board {
    width: 38px;
  }

  .radio-header h2 {
    font-size: 0.92rem;
  }

  .radio-title-line {
    font-size: 0.68rem;
  }

  #radio-play {
    min-width: 72px;
    min-height: 31px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
