:root {
  color-scheme: light;
  --ink: #111125;
  --ink-soft: #343451;
  --paper: #fff9dc;
  --white: #ffffff;
  --blue: #7eb5ff;
  --blue-dark: #1a2b77;
  --pink: #f28ad1;
  --green: #9cf5ad;
  --yellow: #ffeb73;
  --cyan: #66fff3;
  --orange: #ff9b54;
  --shadow: #101026;
  --line: #101026;
  --max: 1160px;
  --radius: 6px;
  --mood-grid-rgb: 16, 16, 38;
  --mood-grid-alpha: 0.08;
  --mood-bg-a: #7eb5ff;
  --mood-bg-b: #8cc5ff;
  --mood-bg-c: #fff2a9;
  --mood-bg-d: #f28ad1;
  --mood-glow-a: rgba(255, 249, 220, 0.9);
  --mood-glow-b: rgba(102, 255, 243, 0.5);
  --mood-glow-c: rgba(156, 245, 173, 0.55);
  --mood-crt-opacity: 0.24;
  --mood-grid-glow-opacity: 1;
  font-family:
    ui-monospace, "SFMono-Regular", "Cascadia Mono", "Segoe UI Mono", Menlo,
    monospace;
}

html[data-mood="morning"] {
  --mood-grid-alpha: 0.07;
  --mood-bg-a: #8ec7ff;
  --mood-bg-b: #b8dcff;
  --mood-bg-c: #ffe6a3;
  --mood-bg-d: #f08bc8;
  --mood-glow-a: rgba(255, 249, 220, 0.98);
  --mood-glow-b: rgba(255, 235, 115, 0.42);
  --mood-glow-c: rgba(102, 255, 243, 0.45);
  --mood-crt-opacity: 0.2;
}

html[data-mood="evening"] {
  --mood-grid-alpha: 0.1;
  --mood-bg-a: #6fa6ff;
  --mood-bg-b: #9589ff;
  --mood-bg-c: #ffce84;
  --mood-bg-d: #f27abf;
  --mood-glow-a: rgba(255, 235, 115, 0.68);
  --mood-glow-b: rgba(255, 155, 84, 0.46);
  --mood-glow-c: rgba(242, 138, 209, 0.5);
  --mood-crt-opacity: 0.28;
  --mood-grid-glow-opacity: 0.9;
}

html[data-mood="night"] {
  --mood-grid-alpha: 0.14;
  --mood-bg-a: #283e87;
  --mood-bg-b: #1f2865;
  --mood-bg-c: #3847a7;
  --mood-bg-d: #c56bc2;
  --mood-glow-a: rgba(102, 255, 243, 0.26);
  --mood-glow-b: rgba(126, 181, 255, 0.46);
  --mood-glow-c: rgba(255, 235, 115, 0.2);
  --mood-crt-opacity: 0.32;
  --mood-grid-glow-opacity: 0.72;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(var(--mood-grid-rgb), var(--mood-grid-alpha)) 2px, transparent 2px),
    linear-gradient(90deg, rgba(var(--mood-grid-rgb), var(--mood-grid-alpha)) 2px, transparent 2px),
    linear-gradient(135deg, var(--mood-bg-a) 0%, var(--mood-bg-b) 42%, var(--mood-bg-c) 42% 58%, var(--mood-bg-d) 58% 100%);
  background-size:
    28px 28px,
    28px 28px,
    100% 100%;
  overflow-x: hidden;
  transition: background 900ms ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 18% 18%, var(--mood-glow-a), transparent 21rem),
    radial-gradient(circle at 90% 10%, var(--mood-glow-b), transparent 18rem),
    radial-gradient(circle at 50% 90%, var(--mood-glow-c), transparent 22rem);
  transition: background 900ms ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

.crt-noise,
.grid-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.crt-noise {
  z-index: 10;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.12) 0 1px,
    rgba(0, 0, 0, 0.05) 1px 3px,
    transparent 3px 5px
  );
  mix-blend-mode: soft-light;
  opacity: var(--mood-crt-opacity);
  transition: opacity 900ms ease;
}

.grid-glow {
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 11%, rgba(255, 255, 255, 0.34) 11% 12%, transparent 12%),
    linear-gradient(180deg, transparent 0 18%, rgba(255, 255, 255, 0.3) 18% 19%, transparent 19%);
  opacity: var(--mood-grid-glow-opacity);
  transition: opacity 900ms ease;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 24px, var(--max));
  margin: 0 auto;
  padding: 14px 0;
}

.logo-card,
.nav-rail,
.ticker,
.avatar-panel,
.quick-panels article,
.story-console,
.module-card,
.music-console,
.xp-card,
.lab-card,
.room-computer-bay,
.signal-section,
.chat-toggle,
.chat-panel {
  border: 4px solid var(--line);
  box-shadow: 8px 8px 0 var(--blue-dark);
}

.logo-card {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px 14px 10px 10px;
  background: var(--paper);
}

.logo-chip {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(16, 16, 38, 0.18) 0 8px, transparent 8px),
    var(--yellow);
  border: 4px solid var(--line);
  box-shadow: 4px 4px 0 var(--shadow);
  font-weight: 900;
}

.logo-card span:last-child {
  display: grid;
  gap: 2px;
}

.logo-card strong {
  font-size: 0.98rem;
}

.logo-card small {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 900;
}

.nav-rail {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: var(--pink);
}

.nav-rail a {
  min-width: 94px;
  padding: 12px 16px;
  text-align: center;
  background: var(--paper);
  border: 4px solid var(--line);
  font-weight: 900;
  transition:
    transform 120ms ease,
    background 120ms ease;
}

.nav-rail a:hover,
.nav-rail a:focus-visible {
  background: var(--green);
  outline: none;
  transform: translate(-2px, -2px);
}

main {
  position: relative;
  z-index: 1;
}

.hero,
.story-section,
.work-section,
.music-section,
.beat-section,
.experience-section,
.lab-section,
.signal-section,
.site-footer {
  width: min(100% - 24px, var(--max));
  margin: 0 auto;
}

.hero {
  display: grid;
  gap: 18px;
  min-height: calc(100vh - 116px);
  padding: 8px 0 34px;
}

.ticker {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 8px;
  overflow: hidden;
  background: var(--green);
}

.ticker span {
  flex: 0 0 auto;
  padding: 10px 14px;
  background: var(--paper);
  border: 4px solid var(--line);
  box-shadow: 4px 4px 0 rgba(16, 16, 38, 0.22);
  font-size: 0.8rem;
  font-weight: 900;
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: 18px;
  align-items: stretch;
}

.hero-copy {
  position: relative;
  min-height: 486px;
  padding: clamp(22px, 3.3vw, 42px);
  background:
    linear-gradient(90deg, rgba(255, 249, 220, 0.72) 0 2px, transparent 2px 26px),
    linear-gradient(0deg, rgba(255, 249, 220, 0.42) 0 2px, transparent 2px 26px),
    var(--ink);
  border: 4px solid var(--line);
  box-shadow: 8px 8px 0 var(--blue-dark);
  color: var(--paper);
  overflow: hidden;
}

.hero-copy::after {
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 190px;
  height: 190px;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 36px, var(--cyan) 36px 72px, transparent 72px),
    linear-gradient(0deg, transparent 0 36px, var(--orange) 36px 72px, transparent 72px),
    var(--pink);
  border: 4px solid var(--line);
  opacity: 0.9;
  transform: rotate(8deg);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: clamp(0.72rem, 0.66rem + 0.25vw, 0.9rem);
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 12ch;
  margin-bottom: 24px;
  font-size: clamp(3.6rem, 8vw, 7.2rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    6px 6px 0 var(--blue-dark),
    10px 10px 0 rgba(0, 0, 0, 0.28);
}

.hero-copy p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-bottom: 28px;
  color: #fff8cd;
  font-size: clamp(1.02rem, 0.94rem + 0.36vw, 1.25rem);
  font-weight: 800;
  line-height: 1.65;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 18px;
  border: 4px solid var(--line);
  box-shadow: 6px 6px 0 var(--shadow);
  font-weight: 900;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
}

.button:hover,
.button:focus-visible {
  outline: none;
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--shadow);
}

.button-primary {
  color: var(--ink);
  background: var(--yellow);
}

.button-secondary {
  color: var(--ink);
  background: var(--cyan);
}

.lost-main {
  display: grid;
  width: min(100% - 24px, var(--max));
  min-height: calc(100vh - 96px);
  margin: 0 auto;
  padding: 20px 0 48px;
}

.lost-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 18px;
  align-items: stretch;
  min-height: min(670px, calc(100vh - 160px));
  padding: clamp(20px, 4vw, 42px);
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(255, 249, 220, 0.12) 0 2px, transparent 2px 26px),
    linear-gradient(0deg, rgba(255, 249, 220, 0.08) 0 2px, transparent 2px 26px),
    var(--ink);
  border: 4px solid var(--line);
  box-shadow: 10px 10px 0 var(--blue-dark);
  overflow: hidden;
}

.lost-copy {
  display: grid;
  align-content: center;
  max-width: 720px;
}

.lost-console h1 {
  max-width: 11ch;
  margin-bottom: 24px;
}

.lost-console p:not(.eyebrow) {
  max-width: 660px;
  margin-bottom: 24px;
  color: #fff8cd;
  font-size: clamp(1rem, 0.94rem + 0.32vw, 1.22rem);
  font-weight: 800;
  line-height: 1.65;
}

.lost-terminal {
  max-width: 620px;
  margin-bottom: 22px;
  padding: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 4px solid var(--line);
  box-shadow: 6px 6px 0 rgba(16, 16, 38, 0.28);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.6;
  text-transform: uppercase;
}

.lost-console .lost-terminal p {
  margin: 0;
  color: var(--ink);
  font-size: inherit;
  line-height: inherit;
}

.lost-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lost-machine {
  position: relative;
  min-height: 410px;
  background:
    linear-gradient(rgba(16, 16, 38, 0.06) 2px, transparent 2px),
    linear-gradient(90deg, rgba(16, 16, 38, 0.06) 2px, transparent 2px),
    var(--paper);
  background-size: 22px 22px;
  border: 4px solid var(--line);
  box-shadow: 8px 8px 0 rgba(126, 181, 255, 0.5);
  overflow: hidden;
}

.lost-screen {
  position: absolute;
  left: 34px;
  right: 34px;
  top: 34px;
  display: grid;
  min-height: 172px;
  place-items: center;
  color: var(--cyan);
  background:
    linear-gradient(0deg, rgba(102, 255, 243, 0.08) 0 2px, transparent 2px 10px),
    #050510;
  border: 4px solid var(--line);
  box-shadow:
    inset 0 0 0 6px rgba(126, 181, 255, 0.12),
    6px 6px 0 var(--blue-dark);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 6px 6px 0 var(--blue-dark);
}

.lost-screen::before,
.lost-screen::after {
  position: absolute;
  content: "";
  background: var(--pink);
  border: 3px solid var(--line);
}

.lost-screen::before {
  right: 22px;
  bottom: 20px;
  width: 54px;
  height: 12px;
}

.lost-screen::after {
  left: 24px;
  top: 20px;
  width: 12px;
  height: 42px;
  background: var(--green);
}

.lost-cable {
  position: absolute;
  left: 48px;
  bottom: 98px;
  width: 190px;
  height: 80px;
  border-bottom: 10px solid var(--line);
  border-left: 10px solid var(--line);
  transform: rotate(-6deg);
}

.lost-cable::before,
.lost-cable::after {
  position: absolute;
  content: "";
}

.lost-cable::before {
  right: -34px;
  bottom: -24px;
  width: 52px;
  height: 32px;
  background: var(--orange);
  border: 4px solid var(--line);
  box-shadow: 4px 4px 0 var(--blue-dark);
}

.lost-cable::after {
  right: -52px;
  bottom: -10px;
  width: 24px;
  height: 6px;
  background: var(--line);
  box-shadow: 0 14px 0 var(--line);
}

.lost-spark {
  position: absolute;
  right: 66px;
  bottom: 92px;
  width: 64px;
  height: 64px;
  background: var(--yellow);
  border: 4px solid var(--line);
  clip-path: polygon(47% 0, 59% 31%, 94% 13%, 72% 44%, 100% 54%, 65% 61%, 80% 98%, 50% 72%, 19% 100%, 34% 62%, 0 54%, 29% 43%, 7% 14%, 41% 31%);
}

.lost-keyboard {
  position: absolute;
  right: 34px;
  bottom: 28px;
  width: min(70%, 240px);
  height: 56px;
  background:
    repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 14px),
    var(--cyan);
  border: 4px solid var(--line);
  box-shadow: 6px 6px 0 var(--blue-dark);
}

.avatar-panel {
  display: grid;
  grid-template-rows: minmax(352px, 1fr) auto;
  background: var(--yellow);
}

.avatar-screen {
  position: relative;
  display: grid;
  min-height: 392px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 2px, transparent 2px 24px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 24px),
    linear-gradient(180deg, #17172e, #24154a 55%, #0f1226);
  border-bottom: 4px solid var(--line);
}

.avatar-screen::before,
.avatar-screen::after {
  position: absolute;
  content: "";
}

.avatar-screen::before {
  inset: 22px;
  border: 4px solid rgba(255, 249, 220, 0.24);
}

.avatar-screen::after {
  right: 24px;
  top: 24px;
  width: 80px;
  height: 28px;
  background:
    linear-gradient(90deg, var(--green) 0 18px, transparent 18px 24px, var(--pink) 24px 48px, transparent 48px 54px, var(--cyan) 54px);
  border: 4px solid var(--line);
}

.pixel-person {
  position: relative;
  width: 172px;
  height: 288px;
  image-rendering: pixelated;
  transform: translateY(8px);
}

.avatar-bubble {
  position: absolute;
  top: 34px;
  left: 28px;
  z-index: 4;
  max-width: min(270px, calc(100% - 56px));
  margin: 0;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 4px solid var(--line);
  box-shadow: 6px 6px 0 var(--blue-dark);
  font-size: clamp(0.68rem, 0.6rem + 0.34vw, 0.84rem);
  font-weight: 900;
  line-height: 1.32;
  transform-origin: 32px 100%;
}

.avatar-bubble[hidden] {
  display: none;
}

.avatar-bubble::after {
  position: absolute;
  bottom: -15px;
  left: 36px;
  width: 18px;
  height: 18px;
  content: "";
  background: var(--paper);
  border-right: 4px solid var(--line);
  border-bottom: 4px solid var(--line);
  transform: rotate(45deg);
}

.avatar-bubble.is-visible {
  animation: avatarBubblePop 220ms steps(2, end);
}

.pixel-person span,
.pixel-person::before,
.pixel-person::after {
  position: absolute;
  content: "";
}

.pixel-person::before {
  left: 30px;
  top: 236px;
  width: 112px;
  height: 18px;
  background: rgba(0, 0, 0, 0.32);
  filter: blur(1px);
}

.hair {
  left: 48px;
  top: 14px;
  width: 76px;
  height: 52px;
  background:
    linear-gradient(90deg, #111125 0 14px, transparent 14px 62px, #111125 62px),
    #342045;
  border: 6px solid var(--line);
  box-shadow:
    -16px 28px 0 -6px #342045,
    16px 28px 0 -6px #342045;
}

.face {
  left: 54px;
  top: 60px;
  width: 64px;
  height: 58px;
  background: #ffc49e;
  border: 6px solid var(--line);
}

.visor {
  left: 66px;
  top: 78px;
  width: 40px;
  height: 8px;
  background: var(--cyan);
  box-shadow:
    0 16px 0 #111125,
    24px 16px 0 -3px #111125;
}

.body {
  left: 42px;
  top: 118px;
  width: 88px;
  height: 88px;
  background:
    linear-gradient(90deg, var(--cyan) 0 18px, transparent 18px),
    linear-gradient(0deg, var(--pink) 0 22px, transparent 22px),
    var(--blue);
  border: 6px solid var(--line);
  box-shadow:
    0 18px 0 -8px var(--paper),
    0 36px 0 -8px var(--green);
}

.arm {
  top: 128px;
  width: 30px;
  height: 88px;
  background: #ffc49e;
  border: 6px solid var(--line);
}

.arm-left {
  left: 10px;
  transform: rotate(8deg);
}

.arm-right {
  right: 8px;
  transform: rotate(-12deg);
}

.leg {
  top: 202px;
  width: 34px;
  height: 72px;
  background: #242448;
  border: 6px solid var(--line);
}

.leg-left {
  left: 50px;
}

.leg-right {
  right: 46px;
}

.desk {
  position: absolute;
  bottom: 22px;
  left: 50%;
  width: 260px;
  height: 72px;
  background: var(--paper);
  border: 4px solid var(--line);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.34);
  transform: translateX(-50%);
}

.desk span {
  position: absolute;
  right: 22px;
  top: -52px;
  width: 74px;
  height: 54px;
  background: #111125;
  border: 4px solid var(--line);
  box-shadow:
    inset 10px 10px 0 var(--green),
    -96px 26px 0 -16px var(--orange);
}

.nameplate {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: var(--pink);
}

.nameplate span,
.nameplate strong {
  padding: 10px 12px;
  background: var(--paper);
  border: 4px solid var(--line);
}

.nameplate span {
  font-weight: 900;
}

.nameplate strong {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.quick-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.quick-panels article {
  min-height: 150px;
  padding: 16px;
  background: var(--paper);
}

.quick-panels span {
  display: inline-grid;
  width: 46px;
  height: 38px;
  margin-bottom: 20px;
  place-items: center;
  background: var(--blue);
  border: 4px solid var(--line);
  font-weight: 900;
}

.quick-panels strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.quick-panels p,
.module-body p,
.lab-card p,
.signal-section p {
  color: var(--ink-soft);
  font-weight: 800;
  line-height: 1.55;
}

.story-section,
.work-section,
.music-section,
.beat-section,
.experience-section,
.lab-section {
  padding: 86px 0 0;
}

.section-top {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section-top .eyebrow {
  color: var(--blue-dark);
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 6vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    4px 4px 0 var(--paper),
    8px 8px 0 rgba(16, 16, 38, 0.18);
}

.story-console {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 0.64fr);
  gap: 18px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(255, 249, 220, 0.06) 0 2px, transparent 2px 28px),
    linear-gradient(0deg, rgba(255, 249, 220, 0.05) 0 2px, transparent 2px 28px),
    #101026;
  color: var(--paper);
  overflow: hidden;
}

.story-prologue {
  position: relative;
  display: grid;
  align-content: end;
  gap: 16px;
  min-height: 470px;
  padding: 20px;
  background:
    linear-gradient(145deg, transparent 0 58%, rgba(242, 138, 209, 0.9) 58% 70%, transparent 70%),
    linear-gradient(90deg, rgba(126, 181, 255, 0.2) 0 12px, transparent 12px),
    var(--ink);
  border: 4px solid var(--line);
  overflow: hidden;
}

.story-prologue::before {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 118px;
  height: 118px;
  content: "";
  background:
    linear-gradient(var(--green) 0 18px, transparent 18px),
    linear-gradient(90deg, var(--cyan) 0 18px, transparent 18px),
    var(--yellow);
  border: 4px solid var(--line);
  box-shadow:
    18px 18px 0 rgba(126, 181, 255, 0.74),
    38px 38px 0 rgba(242, 138, 209, 0.62);
}

.story-badge {
  width: fit-content;
  padding: 9px 11px;
  background: var(--green);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.34);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.story-prologue h3,
.story-card h3 {
  margin-bottom: 0;
  text-transform: uppercase;
}

.story-prologue h3 {
  max-width: 430px;
  font-size: clamp(1.65rem, 2.5vw, 2.55rem);
  line-height: 0.95;
}

.story-prologue p,
.story-card p {
  margin-bottom: 0;
  font-weight: 800;
  line-height: 1.52;
}

.story-prologue p {
  color: #fff8cd;
}

.story-timeline {
  position: relative;
  display: grid;
  grid-auto-columns: minmax(230px, 270px);
  grid-auto-flow: column;
  gap: 16px;
  margin: 0;
  padding: 0 0 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  list-style: none;
}

.story-timeline::before {
  position: absolute;
  top: 90px;
  left: 28px;
  right: 28px;
  height: 10px;
  content: "";
  background: var(--yellow);
  border: 3px solid var(--line);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.28);
}

.story-timeline::-webkit-scrollbar {
  height: 14px;
}

.story-timeline::-webkit-scrollbar-track {
  background: rgba(255, 249, 220, 0.2);
  border: 3px solid var(--line);
}

.story-timeline::-webkit-scrollbar-thumb {
  background: var(--pink);
  border: 3px solid var(--line);
}

.story-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 128px auto 1fr;
  gap: 11px;
  min-height: 470px;
  padding: 14px;
  background: var(--paper);
  border: 4px solid var(--line);
  box-shadow: 7px 7px 0 rgba(126, 181, 255, 0.62);
  color: var(--ink);
  scroll-snap-align: start;
}

.story-card::before {
  position: absolute;
  top: 74px;
  left: 28px;
  width: 26px;
  height: 26px;
  content: "";
  background: var(--cyan);
  border: 4px solid var(--line);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.26);
}

.story-era,
.story-kind {
  position: relative;
  z-index: 1;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.story-era {
  padding: 8px 10px;
  background: var(--ink);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 rgba(16, 16, 38, 0.24);
  color: var(--paper);
}

.story-kind {
  justify-self: end;
  margin-top: -39px;
  padding: 7px 9px;
  background: var(--green);
  border: 3px solid var(--line);
  color: var(--ink);
}

.story-visual {
  position: relative;
  display: block;
  align-self: end;
  height: 128px;
  margin-top: 18px;
  background:
    linear-gradient(0deg, rgba(16, 16, 38, 0.08) 0 4px, transparent 4px 18px),
    var(--white);
  border: 4px solid var(--line);
  overflow: hidden;
}

.story-visual::before,
.story-visual::after,
.story-visual span,
.story-visual span::before,
.story-visual span::after {
  position: absolute;
  content: "";
}

.story-visual-dino span {
  left: 42px;
  bottom: 26px;
  width: 108px;
  height: 44px;
  background: var(--green);
  border: 4px solid var(--line);
  border-radius: 4px 28px 8px 18px;
  box-shadow:
    74px -20px 0 -14px var(--green),
    78px -24px 0 -12px var(--line);
}

.story-visual-dino span::before {
  left: -28px;
  bottom: 18px;
  width: 38px;
  height: 14px;
  background: var(--green);
  border: 4px solid var(--line);
  transform: rotate(-16deg);
}

.story-visual-dino span::after {
  left: 30px;
  bottom: -28px;
  width: 14px;
  height: 32px;
  background: var(--line);
  box-shadow:
    44px 0 0 var(--line),
    92px -34px 0 -4px var(--pink);
}

.story-visual-tadpole span {
  left: 64px;
  bottom: 36px;
  width: 58px;
  height: 42px;
  background: var(--cyan);
  border: 4px solid var(--line);
  border-radius: 50%;
}

.story-visual-tadpole span::before {
  left: 46px;
  top: 20px;
  width: 88px;
  height: 12px;
  background: var(--line);
  transform: rotate(12deg);
}

.story-visual-tadpole span::after {
  left: 14px;
  top: 11px;
  width: 8px;
  height: 8px;
  background: var(--ink);
  box-shadow: 18px 2px 0 var(--ink);
}

.story-visual-human span {
  left: 76px;
  bottom: 24px;
  width: 44px;
  height: 52px;
  background: var(--orange);
  border: 4px solid var(--line);
}

.story-visual-human span::before {
  left: 6px;
  top: -38px;
  width: 32px;
  height: 32px;
  background: var(--paper);
  border: 4px solid var(--line);
}

.story-visual-human span::after {
  left: 58px;
  top: -4px;
  width: 56px;
  height: 12px;
  background: var(--line);
  transform: rotate(-24deg);
  box-shadow: -78px 8px 0 -2px var(--line);
}

.story-visual-birth span {
  left: 58px;
  bottom: 26px;
  width: 96px;
  height: 62px;
  background: var(--yellow);
  border: 4px solid var(--line);
  box-shadow:
    0 -24px 0 -10px var(--pink),
    8px 8px 0 rgba(16, 16, 38, 0.2);
}

.story-visual-birth span::before {
  left: 20px;
  top: 17px;
  width: 12px;
  height: 12px;
  background: var(--line);
  box-shadow: 38px 0 0 var(--line);
}

.story-visual-birth span::after {
  left: 28px;
  bottom: -22px;
  width: 12px;
  height: 22px;
  background: var(--line);
  box-shadow: 30px 0 0 var(--line);
}

.story-visual-kid span {
  left: 45px;
  bottom: 22px;
  width: 104px;
  height: 68px;
  background: var(--ink);
  border: 4px solid var(--line);
  box-shadow:
    30px -28px 0 -8px var(--blue),
    78px -18px 0 -12px var(--pink);
}

.story-visual-kid span::before {
  left: 14px;
  top: 14px;
  width: 24px;
  height: 14px;
  background: var(--green);
  box-shadow:
    36px 0 0 var(--cyan),
    10px 28px 0 var(--yellow);
}

.story-visual-kid span::after {
  right: -32px;
  bottom: 8px;
  width: 32px;
  height: 8px;
  background: var(--line);
  box-shadow: 22px 18px 0 var(--line);
}

.story-visual-paperboy span {
  left: 54px;
  bottom: 24px;
  width: 82px;
  height: 54px;
  background: var(--blue);
  border: 4px solid var(--line);
  box-shadow:
    52px 18px 0 -12px var(--yellow),
    56px 18px 0 -8px var(--line);
}

.story-visual-paperboy span::before {
  left: 20px;
  top: -34px;
  width: 34px;
  height: 34px;
  background: var(--paper);
  border: 4px solid var(--line);
  box-shadow: 8px -12px 0 -5px var(--pink);
}

.story-visual-paperboy span::after {
  left: -22px;
  bottom: -10px;
  width: 22px;
  height: 8px;
  background: var(--line);
  box-shadow:
    38px 18px 0 var(--line),
    76px 18px 0 var(--line),
    102px -28px 0 10px var(--paper),
    112px -18px 0 8px var(--paper),
    122px -8px 0 6px var(--paper);
}

.story-visual-ibm span {
  left: 44px;
  bottom: 24px;
  width: 122px;
  height: 74px;
  background: var(--paper);
  border: 4px solid var(--line);
  box-shadow:
    0 18px 0 -6px var(--line),
    12px 12px 0 rgba(16, 16, 38, 0.24);
}

.story-visual-ibm span::before {
  left: 14px;
  top: 12px;
  width: 70px;
  height: 42px;
  background:
    linear-gradient(90deg, var(--green) 0 8px, transparent 8px),
    linear-gradient(0deg, var(--cyan) 0 8px, transparent 8px),
    var(--ink);
  border: 4px solid var(--line);
  box-shadow:
    83px 4px 0 -7px var(--pink),
    83px 21px 0 -7px var(--yellow);
}

.story-visual-ibm span::after {
  left: 22px;
  bottom: -30px;
  width: 94px;
  height: 24px;
  background:
    repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 10px),
    var(--blue);
  border: 4px solid var(--line);
  box-shadow:
    110px -42px 0 -10px var(--orange),
    118px -54px 0 -12px var(--line),
    122px -30px 0 -12px var(--cyan);
}

.story-visual-diploma span {
  left: 50px;
  bottom: 28px;
  width: 112px;
  height: 76px;
  background: var(--paper);
  border: 4px solid var(--line);
  box-shadow: 8px 8px 0 rgba(16, 16, 38, 0.22);
}

.story-visual-diploma span::before {
  left: 14px;
  top: 16px;
  width: 72px;
  height: 7px;
  background: var(--line);
  box-shadow:
    0 16px 0 var(--line),
    0 32px 0 var(--line);
}

.story-visual-diploma span::after {
  right: 12px;
  bottom: 12px;
  width: 22px;
  height: 22px;
  background: var(--pink);
  border: 4px solid var(--line);
  border-radius: 50%;
}

.story-visual-service span {
  left: 48px;
  bottom: 26px;
  width: 108px;
  height: 66px;
  background: var(--blue);
  border: 4px solid var(--line);
}

.story-visual-service span::before {
  left: 16px;
  top: -28px;
  width: 62px;
  height: 28px;
  background: var(--orange);
  border: 4px solid var(--line);
}

.story-visual-service span::after {
  right: 14px;
  top: 16px;
  width: 14px;
  height: 14px;
  background: var(--green);
  box-shadow:
    -28px 0 0 var(--yellow),
    -56px 0 0 var(--pink),
    -34px 28px 0 5px var(--line);
}

.story-visual-drone span {
  left: 78px;
  top: 52px;
  width: 54px;
  height: 30px;
  background: var(--ink);
  border: 4px solid var(--line);
}

.story-visual-drone span::before {
  left: -54px;
  top: -28px;
  width: 42px;
  height: 42px;
  background: var(--cyan);
  border: 4px solid var(--line);
  border-radius: 50%;
  box-shadow:
    112px 0 0 var(--cyan),
    0 64px 0 var(--cyan),
    112px 64px 0 var(--cyan);
}

.story-visual-drone span::after {
  left: -26px;
  top: 9px;
  width: 108px;
  height: 8px;
  background: var(--line);
  box-shadow: 54px -32px 0 -2px var(--line), 54px 32px 0 -2px var(--line);
}

.story-visual-sound span {
  left: 38px;
  bottom: 24px;
  width: 132px;
  height: 76px;
  background: var(--pink);
  border: 4px solid var(--line);
}

.story-visual-sound span::before {
  left: 18px;
  top: 16px;
  width: 20px;
  height: 44px;
  background: var(--ink);
  box-shadow:
    36px -8px 0 -3px var(--ink),
    72px 4px 0 3px var(--ink);
}

.story-visual-sound span::after {
  right: -24px;
  top: 12px;
  width: 18px;
  height: 18px;
  background: var(--cyan);
  border: 4px solid var(--line);
  box-shadow:
    22px 18px 0 -2px var(--yellow),
    -94px -24px 0 -4px var(--green);
}

.story-visual-now span {
  left: 52px;
  bottom: 28px;
  width: 106px;
  height: 70px;
  background: var(--ink);
  border: 4px solid var(--line);
  box-shadow:
    0 -22px 0 -10px var(--cyan),
    12px 12px 0 rgba(16, 16, 38, 0.28);
}

.story-visual-now span::before {
  left: 16px;
  top: 16px;
  width: 22px;
  height: 22px;
  background: var(--green);
  box-shadow:
    34px 0 0 var(--pink),
    68px 0 0 var(--yellow),
    34px 30px 0 var(--blue);
}

.story-visual-now span::after {
  left: 42px;
  bottom: -34px;
  width: 18px;
  height: 34px;
  background: var(--line);
  box-shadow: 44px -10px 0 -2px var(--line);
}

.module-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.module-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--paper);
  transition:
    transform 140ms ease,
    background 140ms ease;
}

.module-card:hover,
.module-card.is-active {
  background: var(--green);
  transform: translateY(-4px);
}

.module-button {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 102px;
  padding: 12px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 4px solid var(--line);
  cursor: pointer;
}

.module-button small {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-dark);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.module-button strong {
  display: block;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.8rem);
  line-height: 1;
  text-transform: uppercase;
}

.module-icon {
  position: relative;
  display: block;
  width: 62px;
  height: 62px;
  background: var(--white);
  border: 4px solid var(--line);
  box-shadow: 5px 5px 0 var(--shadow);
}

.module-icon::before,
.module-icon::after {
  position: absolute;
  content: "";
}

.app-icon {
  background:
    linear-gradient(var(--cyan) 0 10px, transparent 10px),
    linear-gradient(90deg, var(--pink) 0 14px, transparent 14px),
    var(--white);
}

.app-icon::before {
  left: 16px;
  top: 24px;
  width: 28px;
  height: 8px;
  background: var(--blue-dark);
  box-shadow: 0 14px 0 var(--blue-dark);
}

.hardware-icon {
  background: var(--green);
}

.hardware-icon::before {
  inset: 12px;
  background: var(--ink);
  box-shadow:
    -22px 10px 0 -8px var(--orange),
    22px -8px 0 -8px var(--yellow);
}

.hardware-icon::after {
  left: 9px;
  right: 9px;
  top: -12px;
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}

.plugin-icon {
  background: var(--pink);
}

.plugin-icon::before {
  right: -16px;
  top: 12px;
  width: 16px;
  height: 10px;
  background: var(--line);
  box-shadow: 0 24px 0 var(--line);
}

.plugin-icon::after {
  left: 12px;
  top: 16px;
  width: 28px;
  height: 8px;
  background: var(--paper);
  box-shadow:
    0 12px 0 var(--paper),
    0 24px 0 var(--paper);
}

.software-icon {
  background: var(--blue-dark);
}

.software-icon::before {
  left: 12px;
  top: 16px;
  width: 12px;
  height: 12px;
  background: var(--cyan);
  box-shadow:
    18px 0 0 var(--yellow),
    0 18px 0 var(--pink),
    18px 18px 0 var(--green);
}

.module-body {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 18px;
}

.module-body ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.module-body li {
  padding: 8px 10px;
  background: var(--white);
  border: 3px solid var(--line);
  font-size: 0.78rem;
  font-weight: 900;
}

.featured-app {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
  padding: 18px;
  background: var(--yellow);
  border: 4px solid var(--line);
  box-shadow: 8px 8px 0 var(--blue-dark);
}

.featured-app-scope {
  background: var(--green);
}

.featured-app-pocket {
  background: var(--orange);
}

.app-device {
  display: grid;
  min-height: 430px;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(16, 16, 38, 0.08) 0 2px, transparent 2px 24px),
    linear-gradient(0deg, rgba(16, 16, 38, 0.08) 0 2px, transparent 2px 24px),
    var(--cyan);
  border: 4px solid var(--line);
}

.app-device-pocket {
  padding: clamp(20px, 3vw, 36px);
  background:
    linear-gradient(90deg, rgba(255, 249, 220, 0.08) 0 2px, transparent 2px 24px),
    linear-gradient(0deg, rgba(255, 249, 220, 0.08) 0 2px, transparent 2px 24px),
    var(--ink);
}

.app-device-pocket img {
  display: block;
  width: min(100%, 520px);
  height: auto;
  border: 4px solid var(--paper);
  box-shadow:
    10px 10px 0 var(--orange),
    18px 18px 0 var(--blue-dark);
}

.app-device-scope {
  background:
    linear-gradient(90deg, rgba(16, 16, 38, 0.08) 0 2px, transparent 2px 24px),
    linear-gradient(0deg, rgba(16, 16, 38, 0.08) 0 2px, transparent 2px 24px),
    var(--pink);
}

.phone-shell {
  position: relative;
  width: min(230px, 72vw);
  aspect-ratio: 0.52;
  padding: 32px 18px 20px;
  background: var(--ink);
  border: 5px solid var(--line);
  border-radius: 26px;
  box-shadow:
    12px 12px 0 rgba(16, 16, 38, 0.42),
    inset 0 0 0 8px #252552;
}

.phone-notch {
  position: absolute;
  top: 13px;
  left: 50%;
  width: 74px;
  height: 16px;
  background: #05050f;
  border: 3px solid var(--line);
  border-radius: 0 0 10px 10px;
  transform: translateX(-50%);
}

.pulse-ring {
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  margin: 28px auto 18px;
  place-items: center;
  background:
    radial-gradient(circle, var(--pink) 0 28px, transparent 29px),
    conic-gradient(var(--green), var(--cyan), var(--pink), var(--yellow), var(--green));
  border: 5px solid var(--line);
  border-radius: 50%;
}

.pulse-ring span {
  width: 70px;
  height: 70px;
  background: var(--ink);
  border: 5px solid var(--line);
  border-radius: 50%;
}

.key-readout {
  display: grid;
  width: 132px;
  height: 72px;
  margin: 0 auto 18px;
  place-items: center;
  background: var(--paper);
  border: 4px solid var(--line);
  box-shadow: 6px 6px 0 var(--blue-dark);
  color: var(--ink);
  font-size: 3rem;
  font-weight: 900;
}

.scope-phone {
  display: grid;
  align-content: start;
  gap: 16px;
}

.scope-screen {
  position: relative;
  min-height: 190px;
  margin-top: 30px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(102, 255, 243, 0.16) 0 2px, transparent 2px 24px),
    linear-gradient(0deg, rgba(102, 255, 243, 0.16) 0 2px, transparent 2px 24px),
    #050510;
  border: 4px solid var(--line);
  box-shadow: inset 0 0 0 5px rgba(126, 181, 255, 0.12);
}

.scope-screen::before,
.scope-screen::after,
.scope-grid,
.scope-trigger,
.scope-marker {
  position: absolute;
  content: "";
}

.scope-screen::before {
  left: 0;
  right: 0;
  top: 46%;
  height: 3px;
  background: rgba(255, 235, 115, 0.72);
}

.scope-screen::after {
  left: 16%;
  right: 18%;
  bottom: 20%;
  height: 4px;
  background: rgba(242, 138, 209, 0.78);
  box-shadow:
    0 -24px 0 -1px rgba(156, 245, 173, 0.72),
    0 -52px 0 -2px rgba(102, 255, 243, 0.62);
  transform: skewX(-8deg);
}

.scope-grid {
  inset: 0;
  background:
    radial-gradient(circle at 72% 34%, rgba(126, 181, 255, 0.36), transparent 15px),
    radial-gradient(circle at 38% 62%, rgba(255, 235, 115, 0.28), transparent 12px);
}

.scope-trigger {
  top: 18px;
  right: 18px;
  width: 42px;
  height: 22px;
  background: var(--orange);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.scope-bars {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 6px;
  align-items: end;
  height: 112px;
}

.scope-bars span {
  flex: 1;
  min-width: 0;
  background: var(--cyan);
  border: 3px solid var(--line);
}

.scope-bars span:nth-child(1) {
  height: 24%;
}

.scope-bars span:nth-child(2) {
  height: 44%;
  background: var(--green);
}

.scope-bars span:nth-child(3) {
  height: 70%;
  background: var(--yellow);
}

.scope-bars span:nth-child(4) {
  height: 38%;
  background: var(--pink);
}

.scope-bars span:nth-child(5) {
  height: 92%;
  background: var(--orange);
}

.scope-bars span:nth-child(6) {
  height: 56%;
  background: var(--cyan);
}

.scope-bars span:nth-child(7) {
  height: 74%;
  background: var(--yellow);
}

.scope-bars span:nth-child(8) {
  height: 34%;
  background: var(--green);
}

.scope-bars span:nth-child(9) {
  height: 52%;
  background: var(--pink);
}

.scope-marker {
  top: 22%;
  width: 4px;
  height: 124px;
  background: var(--paper);
  box-shadow: 4px 0 0 rgba(0, 0, 0, 0.3);
}

.scope-marker-live {
  left: 36%;
}

.scope-marker-held {
  left: 68%;
  background: var(--green);
}

.scope-readout {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  background: var(--paper);
  border: 4px solid var(--line);
  box-shadow: 5px 5px 0 var(--blue-dark);
  font-weight: 900;
}

.scope-readout span {
  color: var(--blue-dark);
}

.scope-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.scope-controls span {
  height: 24px;
  background: var(--green);
  border: 3px solid var(--line);
}

.scope-controls span:nth-child(2) {
  background: var(--yellow);
}

.scope-controls span:nth-child(3) {
  background: var(--pink);
}

.note-line {
  display: grid;
  gap: 8px;
}

.note-line span {
  height: 10px;
  background: var(--green);
  border: 3px solid var(--line);
}

.note-line span:nth-child(2) {
  width: 72%;
  background: var(--pink);
}

.note-line span:nth-child(3) {
  width: 54%;
  background: var(--yellow);
}

.featured-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 430px;
  padding: clamp(20px, 3vw, 34px);
  background:
    linear-gradient(90deg, rgba(255, 249, 220, 0.1) 0 2px, transparent 2px 26px),
    linear-gradient(0deg, rgba(255, 249, 220, 0.08) 0 2px, transparent 2px 26px),
    var(--ink);
  border: 4px solid var(--line);
  color: var(--paper);
}

.featured-copy h3 {
  margin-bottom: 0;
  font-size: clamp(3.4rem, 8vw, 7.6rem);
  line-height: 0.82;
  text-transform: uppercase;
  text-shadow:
    5px 5px 0 var(--blue-dark),
    9px 9px 0 rgba(0, 0, 0, 0.28);
}

.featured-copy p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: #fff8cd;
  font-weight: 800;
  line-height: 1.62;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-tags li {
  padding: 8px 10px;
  background: var(--green);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.24);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.app-note {
  color: var(--cyan);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.utility-app-shelf {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
  align-items: stretch;
  margin-top: 18px;
  padding: 14px;
  background: var(--paper);
  border: 4px solid var(--line);
  box-shadow: 8px 8px 0 rgba(27, 56, 129, 0.72);
}

.utility-shelf-copy {
  display: grid;
  align-content: center;
  min-height: 288px;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(255, 249, 220, 0.12) 0 2px, transparent 2px 22px),
    linear-gradient(0deg, rgba(255, 249, 220, 0.1) 0 2px, transparent 2px 22px),
    var(--ink);
  border: 4px solid var(--line);
  color: var(--paper);
}

.utility-shelf-copy h3 {
  max-width: 12ch;
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 3.4vw, 3rem);
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow:
    3px 3px 0 var(--blue-dark),
    6px 6px 0 rgba(0, 0, 0, 0.26);
}

.utility-shelf-copy p:not(.eyebrow) {
  margin-bottom: 0;
  color: #fff8cd;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.5;
}

.utility-app-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(82px, 1fr));
  gap: 10px;
  align-content: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.utility-app-list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 82px;
  padding: 10px 12px;
  background: var(--white);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 rgba(16, 16, 38, 0.18);
}

.utility-app-name,
.utility-app-list a {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.utility-app-name {
  min-width: 0;
  line-height: 1.15;
}

.utility-app-list a {
  padding: 7px 9px;
  background: var(--yellow);
  border: 3px solid var(--line);
  box-shadow: 3px 3px 0 rgba(16, 16, 38, 0.16);
  white-space: nowrap;
  transition:
    background 120ms ease,
    transform 120ms ease;
}

.utility-app-list a:hover,
.utility-app-list a:focus-visible {
  background: var(--green);
  outline: none;
  transform: translate(-2px, -2px);
}

.utility-app-icon {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(98, 255, 247, 0.14), transparent 44%),
    #070716;
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 rgba(16, 16, 38, 0.22);
}

.utility-app-icon::before,
.utility-app-icon::after,
.utility-app-icon span,
.utility-app-icon span::before,
.utility-app-icon span::after {
  position: absolute;
  content: "";
}

.utility-app-icon::before {
  inset: 9px;
  border: 3px solid var(--line);
  border-radius: 999px;
}

.utility-icon-rec::before {
  background: #ff4b5f;
  box-shadow: inset 0 -8px 0 rgba(111, 8, 42, 0.24);
}

.utility-icon-rec span {
  left: 17px;
  top: 26px;
  width: 4px;
  height: 13px;
  background: var(--paper);
  box-shadow:
    8px -9px 0 var(--paper),
    16px -3px 0 var(--paper),
    24px -12px 0 var(--paper);
}

.utility-icon-scan::before {
  background: #4e9dff;
  box-shadow: inset 0 -8px 0 rgba(12, 52, 150, 0.3);
}

.utility-icon-scan span {
  left: 17px;
  top: 15px;
  width: 23px;
  height: 28px;
  background: var(--paper);
  border: 3px solid var(--line);
}

.utility-icon-scan span::before {
  left: 4px;
  top: 6px;
  width: 13px;
  height: 3px;
  background: #4e9dff;
  box-shadow:
    0 7px 0 #4e9dff,
    0 14px 0 #4e9dff;
}

.utility-icon-receipts::before {
  background: #63d782;
  box-shadow: inset 0 -8px 0 rgba(19, 95, 49, 0.26);
}

.utility-icon-receipts span {
  left: 18px;
  top: 13px;
  width: 22px;
  height: 31px;
  background: var(--paper);
  border: 3px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 82% 100%, 64% 86%, 46% 100%, 28% 86%, 10% 100%, 0 86%);
}

.utility-icon-receipts span::before {
  left: 5px;
  top: 7px;
  width: 10px;
  height: 3px;
  background: #31b15b;
  box-shadow:
    0 7px 0 #31b15b,
    0 14px 0 #31b15b;
}

.utility-icon-cards::before {
  background: #7a67ff;
  box-shadow: inset 0 -8px 0 rgba(36, 21, 130, 0.28);
}

.utility-icon-cards span {
  left: 13px;
  top: 18px;
  width: 31px;
  height: 21px;
  background: var(--paper);
  border: 3px solid var(--line);
}

.utility-icon-cards span::before {
  left: 4px;
  top: 5px;
  width: 7px;
  height: 7px;
  background: #7a67ff;
  border-radius: 50%;
}

.utility-icon-cards span::after {
  left: 15px;
  top: 5px;
  width: 8px;
  height: 3px;
  background: #7a67ff;
  box-shadow: 0 7px 0 #7a67ff;
}

.utility-icon-warranty::before {
  background: #ff9b42;
  box-shadow: inset 0 -8px 0 rgba(150, 58, 9, 0.25);
}

.utility-icon-warranty span {
  left: 17px;
  top: 12px;
  width: 24px;
  height: 31px;
  background: var(--paper);
  border: 3px solid var(--line);
  clip-path: polygon(50% 0, 100% 12%, 100% 48%, 50% 100%, 0 48%, 0 12%);
}

.utility-icon-warranty span::after {
  left: 8px;
  top: 11px;
  width: 9px;
  height: 15px;
  border-right: 4px solid #ff8c20;
  border-bottom: 4px solid #ff8c20;
  transform: rotate(38deg);
}

.utility-icon-miles::before {
  background: #48d3ff;
  box-shadow: inset 0 -8px 0 rgba(14, 73, 146, 0.28);
}

.utility-icon-miles span {
  left: 13px;
  top: 25px;
  width: 31px;
  height: 13px;
  background: var(--paper);
  border: 3px solid var(--line);
}

.utility-icon-miles span::before {
  left: 6px;
  top: -12px;
  width: 16px;
  height: 11px;
  background: var(--paper);
  border: 3px solid var(--line);
  border-bottom: 0;
}

.utility-icon-miles span::after {
  left: 3px;
  top: 9px;
  width: 6px;
  height: 6px;
  background: #070716;
  border-radius: 50%;
  box-shadow: 18px 0 0 #070716;
}

.site-link-strip {
  display: flex;
  gap: 8px;
  align-items: center;
  width: min(100% - 24px, var(--max));
  max-width: 100%;
  margin: 28px auto 0;
  padding: 10px;
  overflow-x: auto;
  background:
    linear-gradient(90deg, rgba(16, 16, 38, 0.05) 0 2px, transparent 2px 22px),
    linear-gradient(0deg, rgba(16, 16, 38, 0.05) 0 2px, transparent 2px 22px),
    var(--paper);
  border: 4px solid var(--line);
  box-shadow: 6px 6px 0 rgba(16, 16, 38, 0.22);
  scrollbar-width: thin;
}

.site-link-kicker {
  flex: 0 0 auto;
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-link-strip a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  background: #fff;
  border: 3px solid var(--line);
  box-shadow: 3px 3px 0 rgba(16, 16, 38, 0.18);
  color: var(--line);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-link-strip a:hover,
.site-link-strip a:focus-visible {
  background: var(--yellow);
  transform: translate(-1px, -1px);
}

.site-globe {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  background:
    linear-gradient(90deg, transparent 0 7px, rgba(255, 249, 220, 0.8) 7px 9px, transparent 9px 20px, rgba(255, 249, 220, 0.8) 20px 22px, transparent 22px),
    linear-gradient(0deg, transparent 0 7px, rgba(255, 249, 220, 0.82) 7px 9px, transparent 9px 20px, rgba(255, 249, 220, 0.82) 20px 22px, transparent 22px),
    var(--cyan);
  border: 3px solid var(--line);
  border-radius: 50%;
  box-shadow:
    inset -4px -4px 0 rgba(27, 56, 129, 0.24),
    3px 3px 0 rgba(16, 16, 38, 0.18);
}

.site-globe::before,
.site-globe::after {
  position: absolute;
  content: "";
}

.site-globe::before {
  inset: 4px 8px;
  border: 2px solid rgba(16, 16, 38, 0.64);
  border-top: 0;
  border-bottom: 0;
  border-radius: 50%;
}

.site-globe::after {
  inset: 12px 3px;
  border-top: 2px solid rgba(16, 16, 38, 0.64);
  border-bottom: 2px solid rgba(16, 16, 38, 0.64);
}

.music-section {
  position: relative;
}

.fishbowl {
  position: absolute;
  right: clamp(138px, 10vw, 176px);
  bottom: calc(100% - 4px);
  z-index: 4;
  width: 154px;
  height: 148px;
  --fish-water-shift: 0px;
  --fish-water-squish: 1;
  --fish-water-tilt: 0deg;
  --fish-water-wave: 0px;
  --fish-water-shine: 0px;
  pointer-events: none;
}

.fishbowl::before {
  position: absolute;
  left: 23px;
  right: 23px;
  bottom: 8px;
  height: 13px;
  background: rgba(16, 16, 38, 0.18);
  border-radius: 50%;
  content: "";
}

.fishbowl-glass {
  position: absolute;
  inset: 12px 15px 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.92) 0 5px, transparent 6px),
    radial-gradient(circle at 62% 36%, rgba(255, 255, 255, 0.48) 0 9px, transparent 10px),
    linear-gradient(145deg, rgba(102, 255, 243, 0.22), rgba(126, 181, 255, 0.08) 62%),
    rgba(255, 255, 255, 0.28);
  border: 4px solid var(--line);
  border-radius: 48% 48% 45% 45% / 42% 42% 54% 54%;
  box-shadow:
    inset 8px 0 0 rgba(255, 255, 255, 0.28),
    inset -8px -10px 0 rgba(26, 43, 119, 0.1),
    6px 6px 0 rgba(16, 16, 38, 0.16);
}

.fishbowl-rim {
  position: absolute;
  top: 8px;
  left: 46px;
  z-index: 5;
  width: 62px;
  height: 19px;
  background: var(--paper);
  border: 4px solid var(--line);
  border-radius: 50%;
  box-shadow: inset 0 -4px 0 rgba(126, 181, 255, 0.28);
}

.fishbowl-water {
  position: absolute;
  left: 23px;
  right: 23px;
  bottom: 28px;
  z-index: 1;
  height: 73px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.38) 0 7px, transparent 7px 24px),
    linear-gradient(rgba(102, 255, 243, 0.35), rgba(126, 181, 255, 0.28));
  border-top: 4px solid rgba(102, 255, 243, 0.72);
  border-radius: 0 0 58px 58px;
  clip-path: ellipse(58% 54% at 50% 42%);
  transform:
    translateX(var(--fish-water-shift))
    scaleY(var(--fish-water-squish));
  transform-origin: 50% 95%;
  will-change: transform;
}

.fishbowl-water::before {
  position: absolute;
  top: -1px;
  left: -20px;
  width: calc(100% + 40px);
  height: 12px;
  background:
    linear-gradient(90deg, transparent 0 9px, rgba(255, 255, 255, 0.52) 9px 17px, transparent 17px 29px),
    rgba(102, 255, 243, 0.36);
  border-radius: 50%;
  content: "";
  transform: translateX(var(--fish-water-wave)) rotate(var(--fish-water-tilt));
  transform-origin: center;
  will-change: transform;
}

.fishbowl-water::after {
  position: absolute;
  top: 17px;
  left: 18px;
  width: 42px;
  height: 8px;
  background: rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  content: "";
  transform: translateX(var(--fish-water-shine));
  will-change: transform;
}

.fishbowl-gravel {
  position: absolute;
  left: 44px;
  bottom: 25px;
  z-index: 4;
  width: 66px;
  height: 12px;
  background: var(--orange);
  border: 3px solid var(--line);
  border-radius: 50%;
  box-shadow:
    9px -1px 0 -2px var(--yellow),
    25px 1px 0 -2px var(--pink),
    42px -1px 0 -2px var(--green);
}

.fishbowl-plant {
  position: absolute;
  left: 70px;
  bottom: 32px;
  z-index: 3;
  width: 30px;
  height: 54px;
}

.fishbowl-plant::before {
  position: absolute;
  left: 13px;
  bottom: 0;
  width: 5px;
  height: 45px;
  background: #1c9f5c;
  border: 2px solid var(--line);
  content: "";
}

.fishbowl-plant span {
  position: absolute;
  width: 17px;
  height: 28px;
  background: var(--green);
  border: 3px solid var(--line);
  border-radius: 80% 0 80% 0;
}

.fishbowl-plant span:nth-child(1) {
  left: 0;
  bottom: 16px;
  transform: rotate(-35deg);
}

.fishbowl-plant span:nth-child(2) {
  right: 0;
  bottom: 22px;
  transform: rotate(40deg) scale(0.9);
}

.fishbowl-plant span:nth-child(3) {
  left: 8px;
  bottom: 30px;
  transform: rotate(-5deg) scale(0.78);
}

.fishbowl-fish {
  position: absolute;
  left: 50px;
  top: 70px;
  z-index: 4;
  width: 37px;
  height: 23px;
  animation: fishSwim 7.8s ease-in-out infinite;
  transform-origin: center;
}

.fishbowl-fish::before {
  position: absolute;
  left: 8px;
  top: 2px;
  width: 26px;
  height: 18px;
  background:
    linear-gradient(90deg, #ffcf54, #ff7a3d 64%, #d83c36);
  border: 3px solid var(--line);
  border-radius: 58% 42% 42% 58%;
  box-shadow: inset 0 -4px 0 rgba(132, 22, 29, 0.18);
  content: "";
}

.fishbowl-fish::after {
  position: absolute;
  left: -1px;
  top: 4px;
  width: 16px;
  height: 15px;
  background: #ff8d3a;
  border: 3px solid var(--line);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  content: "";
  animation: fishTail 680ms steps(2, end) infinite;
}

.fishbowl-fish span::before {
  position: absolute;
  right: 6px;
  top: 7px;
  z-index: 2;
  width: 4px;
  height: 4px;
  background: var(--line);
  border-radius: 50%;
  content: "";
}

.fishbowl-fish span::after {
  position: absolute;
  left: 17px;
  top: 13px;
  z-index: 2;
  width: 9px;
  height: 8px;
  background: rgba(255, 249, 220, 0.7);
  border: 2px solid var(--line);
  border-radius: 0 0 80% 80%;
  content: "";
}

.fishbowl-bubble {
  position: absolute;
  z-index: 5;
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255, 249, 220, 0.9);
  border-radius: 50%;
  opacity: 0;
  animation: bowlBubble 4.2s ease-in infinite;
}

.bubble-one {
  left: 50px;
  bottom: 60px;
}

.bubble-two {
  left: 103px;
  bottom: 58px;
  width: 6px;
  height: 6px;
  animation-delay: 1.4s;
}

.bubble-three {
  left: 83px;
  bottom: 52px;
  width: 5px;
  height: 5px;
  animation-delay: 2.7s;
}

@keyframes fishSwim {
  0% {
    transform: translate(0, 0) scaleX(1);
  }

  38% {
    transform: translate(44px, -7px) scaleX(1);
  }

  49% {
    transform: translate(48px, -5px) scaleX(-1);
  }

  88% {
    transform: translate(-5px, 8px) scaleX(-1);
  }

  100% {
    transform: translate(0, 0) scaleX(1);
  }
}

@keyframes fishTail {
  0%,
  100% {
    transform: translateX(0) skewY(8deg);
  }

  50% {
    transform: translateX(2px) skewY(-8deg);
  }
}

@keyframes bowlBubble {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.72);
  }

  22% {
    opacity: 0.75;
  }

  100% {
    opacity: 0;
    transform: translate(8px, -58px) scale(1.16);
  }
}

.music-console {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1.18fr);
  gap: 18px;
  align-items: stretch;
  overflow: visible;
  padding: 18px;
  background: var(--pink);
}

.music-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 360px;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(255, 249, 220, 0.1) 0 2px, transparent 2px 26px),
    linear-gradient(0deg, rgba(255, 249, 220, 0.08) 0 2px, transparent 2px 26px),
    var(--ink);
  border: 4px solid var(--line);
  color: var(--paper);
}

.sound-chip {
  width: fit-content;
  padding: 9px 11px;
  background: var(--green);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 var(--shadow);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.music-copy h3 {
  margin-bottom: 0;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: 0.82;
  text-transform: uppercase;
  text-shadow:
    5px 5px 0 var(--blue-dark),
    9px 9px 0 rgba(0, 0, 0, 0.28);
}

.music-copy p {
  max-width: 520px;
  margin-bottom: 0;
  color: #fff8cd;
  font-weight: 800;
  line-height: 1.58;
}

.music-copy .button {
  width: fit-content;
}

.spotify-frame {
  display: grid;
  min-height: 360px;
  padding: 12px;
  background: var(--paper);
  border: 4px solid var(--line);
}

.spotify-frame iframe {
  width: 100%;
  min-height: 352px;
  border: 0;
}

.beat-section {
  background: transparent;
}

.beat-machine {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1.22fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  background: var(--pink);
  border: 4px solid var(--line);
  box-shadow: 8px 8px 0 var(--blue-dark);
}

.beat-hardware,
.beat-grid-panel,
.beat-harmony,
.beat-submit-form {
  border: 4px solid var(--line);
  box-shadow: 8px 8px 0 var(--blue-dark);
}

.beat-hardware {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 50%, transparent 50%),
    var(--ink);
  background-size: 100% 4px;
  color: var(--paper);
}

.beat-display {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  min-height: 94px;
  padding: 14px;
  background: #050514;
  border: 3px solid #33365c;
  box-shadow: inset 0 0 0 3px rgba(102, 255, 243, 0.08);
}

.beat-display-light {
  width: 26px;
  height: 26px;
  background: var(--orange);
  border: 4px solid var(--paper);
  box-shadow:
    0 0 0 5px rgba(255, 155, 84, 0.2),
    0 0 22px rgba(255, 155, 84, 0.65);
}

.beat-machine.is-playing .beat-display-light {
  background: var(--cyan);
  box-shadow:
    0 0 0 5px rgba(102, 255, 243, 0.18),
    0 0 24px rgba(102, 255, 243, 0.72);
}

.beat-display strong {
  display: block;
  margin-bottom: 6px;
  color: var(--cyan);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.beat-display p,
.beat-factory-note {
  margin: 0;
  color: #fff8cd;
  font-weight: 800;
  line-height: 1.5;
}

.beat-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.beat-controls button,
.beat-submit {
  min-height: 58px;
  border: 4px solid var(--line);
  background: var(--yellow);
  box-shadow: 5px 5px 0 rgba(255, 249, 220, 0.26);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.beat-controls button:hover,
.beat-controls button:focus-visible,
.beat-submit:hover,
.beat-submit:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(255, 249, 220, 0.32);
}

.beat-controls button:disabled,
.beat-submit:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.beat-play {
  background: var(--cyan) !important;
}

.beat-knobs {
  display: grid;
  gap: 12px;
}

.beat-knobs label,
.beat-submit-form label {
  display: grid;
  gap: 6px;
  font-weight: 950;
  text-transform: uppercase;
}

.beat-knobs label {
  grid-template-columns: 70px 1fr 88px;
  align-items: center;
}

.beat-knobs input[type="range"] {
  width: 100%;
  accent-color: var(--cyan);
}

.beat-knobs output {
  color: var(--cyan);
  text-align: right;
}

.beat-factory-note {
  padding-top: 12px;
  border-top: 3px solid rgba(255, 249, 220, 0.16);
}

.beat-grid-panel {
  min-width: 0;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(16, 16, 38, 0.06) 0 2px, transparent 2px 28px),
    linear-gradient(0deg, rgba(16, 16, 38, 0.06) 0 2px, transparent 2px 28px),
    var(--paper);
}

.beat-grid-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.beat-grid {
  display: grid;
  gap: 10px;
  overflow-x: hidden;
  padding-bottom: 4px;
}

.beat-row {
  display: grid;
  grid-template-columns: minmax(54px, 64px) repeat(16, minmax(18px, 1fr));
  gap: clamp(3px, 0.45vw, 5px);
  align-items: center;
  width: 100%;
  min-width: 0;
}

.beat-track-label {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.beat-step {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  border: 3px solid var(--line);
  background: var(--white);
  box-shadow: 3px 3px 0 rgba(16, 16, 38, 0.18);
  cursor: pointer;
}

.beat-step::after {
  position: absolute;
  inset: 8px;
  content: "";
  background: transparent;
}

.beat-step.is-on::after {
  background: var(--pink);
}

.beat-step[data-track="kick"].is-on::after,
.beat-step[data-track="bass"].is-on::after {
  background: var(--orange);
}

.beat-step[data-track="hat"].is-on::after,
.beat-step[data-track="glitch"].is-on::after {
  background: var(--cyan);
}

.beat-step[data-track="snare"].is-on::after,
.beat-step[data-track="clap"].is-on::after {
  background: var(--blue);
}

.beat-step.is-current {
  outline: 4px solid var(--yellow);
  outline-offset: 2px;
}

.beat-step:focus-visible {
  outline: 4px solid var(--blue-dark);
  outline-offset: 2px;
}

.beat-harmony {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1.15fr);
  gap: 14px;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(16, 16, 38, 0.06) 0 2px, transparent 2px 28px),
    linear-gradient(0deg, rgba(16, 16, 38, 0.06) 0 2px, transparent 2px 28px),
    var(--paper);
}

.beat-harmony-top {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 50%, transparent 50%),
    var(--ink);
  background-size: 100% 4px;
  color: var(--paper);
}

.beat-harmony-top span {
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.beat-harmony-top strong {
  color: var(--paper);
  font-size: clamp(1.8rem, 1.2rem + 2vw, 3.1rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow:
    4px 4px 0 var(--blue-dark),
    7px 7px 0 rgba(0, 0, 0, 0.22);
}

.beat-harmony-display {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: stretch;
}

.beat-harmony-scope {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  align-items: end;
  min-height: 86px;
  padding: 10px;
  background: #050514;
  border: 3px solid var(--line);
  box-shadow: inset 0 0 0 3px rgba(102, 255, 243, 0.08);
}

.beat-harmony-scope i {
  --harmony-bar: 45%;
  --meter-level: 0.4;
  display: block;
  height: var(--harmony-bar, 45%);
  background: var(--cyan);
  opacity: calc(0.48 + (var(--meter-level, 0.4) * 0.52));
  box-shadow: 0 0 calc(6px + (var(--meter-level, 0.4) * 18px)) rgba(102, 255, 243, 0.46);
  transform-origin: bottom;
  transition:
    height 90ms linear,
    opacity 90ms linear,
    box-shadow 90ms linear;
}

.beat-harmony-scope i:nth-child(2) {
  --harmony-bar: 72%;
  --meter-level: 0.7;
  background: var(--pink);
}

.beat-harmony-scope i:nth-child(3) {
  --harmony-bar: 58%;
  --meter-level: 0.54;
  background: var(--yellow);
}

.beat-harmony-scope i:nth-child(4) {
  --harmony-bar: 34%;
  --meter-level: 0.28;
  background: var(--orange);
}

.beat-harmony-display p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-weight: 850;
  line-height: 1.45;
}

.beat-harmony-chords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.beat-harmony-chords span,
.beat-harmony-chord-select {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  padding: 0 10px;
  border: 3px solid var(--line);
  background: var(--white);
  box-shadow: 4px 4px 0 rgba(16, 16, 38, 0.18);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.beat-harmony-chord-select {
  appearance: none;
  min-width: 74px;
  padding-right: 24px;
  background:
    linear-gradient(45deg, transparent 45%, var(--blue-dark) 45% 55%, transparent 55%) right 10px center / 8px 8px no-repeat,
    var(--white);
  cursor: pointer;
  font: inherit;
}

.beat-harmony-chords.is-custom {
  gap: 10px;
}

.beat-harmony-controls {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 10px;
  align-items: end;
}

.beat-harmony-controls label,
.beat-control-group {
  display: grid;
  gap: 6px;
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.beat-harmony-controls select,
.beat-harmony-controls input[type="range"],
.beat-harmony-controls button {
  font: inherit;
}

.beat-harmony-controls select {
  min-height: 44px;
  border: 4px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-weight: 950;
  text-transform: uppercase;
}

.beat-harmony-controls label:has(input[type="range"]) {
  grid-column: span 2;
}

.beat-harmony-controls input[type="range"] {
  width: 100%;
  accent-color: var(--pink);
}

.beat-harmony-controls output {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 950;
}

.beat-harmony-controls button {
  min-height: 44px;
  padding: 0 12px;
  border: 4px solid var(--line);
  background: var(--cyan);
  box-shadow: 5px 5px 0 rgba(16, 16, 38, 0.2);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.beat-harmony-controls button:last-child {
  background: var(--yellow);
}

.beat-harmony-controls .beat-speed-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 44px;
  padding: 0;
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
}

.beat-speed-toggle::before {
  content: "";
  position: absolute;
  inset: 5px 50% 5px 5px;
  background: var(--cyan);
  box-shadow: inset 0 0 0 3px rgba(16, 16, 38, 0.1);
  transition: inset 160ms steps(2, end);
}

.beat-speed-toggle[data-speed="half"]::before {
  inset: 5px 5px 5px 50%;
  background: var(--yellow);
}

.beat-speed-toggle span {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 36px;
  place-items: center;
  padding: 0 8px;
}

.beat-harmony-controls select:focus-visible,
.beat-harmony-chord-select:focus-visible,
.beat-harmony-controls input[type="range"]:focus-visible,
.beat-harmony-controls button:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: -8px;
}

.beat-submit-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(130px, 0.55fr) minmax(210px, 1fr) max-content;
  gap: 10px;
  align-items: end;
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(16, 16, 38, 0.06) 0 2px, transparent 2px 28px),
    linear-gradient(0deg, rgba(16, 16, 38, 0.06) 0 2px, transparent 2px 28px),
    var(--paper);
}

.beat-submit-form input,
.beat-submit-form textarea {
  width: 100%;
  border: 4px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
}

.beat-submit-form input {
  min-height: 44px;
  padding: 0 10px;
}

.beat-submit-form textarea {
  min-height: 44px;
  max-height: 48px;
  padding: 10px;
  resize: none;
  line-height: 1.2;
}

.beat-submit-form input:focus-visible,
.beat-submit-form textarea:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: -8px;
}

.beat-field-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.beat-submit {
  min-width: 116px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.xp-console {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 18px;
}

.xp-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 16px;
  align-items: start;
  min-height: 188px;
  padding: 18px;
  background: var(--paper);
}

.xp-card-lead {
  grid-row: span 3;
  align-content: start;
  min-height: 594px;
  background:
    linear-gradient(90deg, rgba(255, 249, 220, 0.1) 0 2px, transparent 2px 26px),
    linear-gradient(0deg, rgba(255, 249, 220, 0.08) 0 2px, transparent 2px 26px),
    var(--ink);
  color: var(--paper);
}

.xp-year {
  display: grid;
  min-height: 58px;
  place-items: center;
  background: var(--blue);
  border: 4px solid var(--line);
  box-shadow: 5px 5px 0 var(--shadow);
  font-size: 0.95rem;
  font-weight: 900;
}

.xp-card-lead .xp-year {
  background: var(--yellow);
  color: var(--ink);
}

.xp-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 1.08rem + 1vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
}

.xp-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-weight: 800;
  line-height: 1.58;
}

.xp-card-lead p {
  color: #fff8cd;
}

.xp-current-builds {
  margin-top: 18px;
  padding-left: 15px;
  border-left: 4px solid var(--cyan);
}

.xp-current-builds span {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.xp-current-builds ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.xp-current-builds li {
  position: relative;
  padding-left: 14px;
  color: #fff8cd;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.42;
}

.xp-current-builds li::before {
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.28);
  content: "";
}

.xp-current-builds strong {
  color: var(--cyan);
  text-transform: uppercase;
}

.xp-current-builds a {
  color: inherit;
  text-decoration: none;
}

.xp-current-builds a:hover,
.xp-current-builds a:focus-visible {
  color: var(--yellow);
}

.flylab-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  background: var(--cyan);
  border: 4px solid var(--line);
  box-shadow: 8px 8px 0 var(--blue-dark);
}

.flylab-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(255, 249, 220, 0.1) 0 2px, transparent 2px 26px),
    linear-gradient(0deg, rgba(255, 249, 220, 0.08) 0 2px, transparent 2px 26px),
    var(--ink);
  border: 4px solid var(--line);
  color: var(--paper);
}

.flylab-copy h3 {
  margin-bottom: 0;
  font-size: clamp(3rem, 5.6vw, 5.8rem);
  line-height: 0.86;
  text-transform: uppercase;
  text-shadow:
    4px 4px 0 var(--blue-dark),
    8px 8px 0 rgba(0, 0, 0, 0.28);
}

.flylab-copy p:not(.eyebrow) {
  margin-bottom: 0;
  color: #fff8cd;
  font-weight: 800;
  line-height: 1.54;
}

.flylab-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flylab-tags li {
  padding: 8px 9px;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--line);
  box-shadow: 3px 3px 0 rgba(102, 255, 243, 0.35);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flylab-shot-rail {
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  overflow-x: auto;
  background:
    linear-gradient(90deg, rgba(102, 255, 243, 0.08) 0 2px, transparent 2px 24px),
    linear-gradient(0deg, rgba(255, 249, 220, 0.06) 0 2px, transparent 2px 24px),
    var(--ink);
  border: 4px solid var(--line);
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.flylab-shot {
  position: relative;
  flex: 0 0 clamp(142px, 16vw, 202px);
  margin: 0;
  padding: 16px 8px 34px;
  background: var(--paper);
  border: 4px solid var(--line);
  border-radius: 22px;
  box-shadow:
    7px 7px 0 rgba(27, 56, 129, 0.7),
    inset 0 0 0 6px rgba(126, 181, 255, 0.16);
  scroll-snap-align: start;
}

.flylab-shot:nth-child(2n) {
  transform: translateY(10px) rotate(1deg);
}

.flylab-shot:nth-child(3n) {
  transform: translateY(2px) rotate(-1deg);
}

.flylab-shot::before {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 52px;
  height: 8px;
  background: var(--line);
  border-radius: 0 0 7px 7px;
  content: "";
  transform: translateX(-50%);
}

.flylab-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 349 / 760;
  object-fit: cover;
  background: var(--white);
  border: 3px solid var(--line);
  border-radius: 14px;
}

.flylab-shot figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  padding: 5px 7px;
  overflow: hidden;
  background: var(--yellow);
  border: 3px solid var(--line);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.skill-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  background: var(--green);
  border: 4px solid var(--line);
  box-shadow: 8px 8px 0 var(--blue-dark);
}

.skill-bank span {
  padding: 9px 11px;
  background: var(--paper);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 rgba(16, 16, 38, 0.22);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.language-rack {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  max-width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(255, 249, 220, 0.9);
  border: 3px solid var(--line);
  box-shadow: 6px 6px 0 rgba(27, 56, 129, 0.55);
}

.language-kicker,
.language-chip {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.language-kicker {
  color: var(--blue-dark);
}

.language-chip {
  appearance: none;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  background: var(--white);
  border: 3px solid var(--line);
  box-shadow: 3px 3px 0 rgba(16, 16, 38, 0.22);
  cursor: pointer;
}

.language-chip:hover,
.language-chip:focus-visible,
.language-chip.is-playing {
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--blue-dark);
  transform: translate(-1px, -1px);
}

.language-chip.is-playing .pixel-flag {
  animation: anthemFlagPulse 160ms steps(2, end) infinite;
}

.pixel-flag {
  position: relative;
  flex: 0 0 auto;
  height: 23px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--white);
}

.pixel-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

.flag-dk {
  width: 30.4px;
}

.flag-gb {
  width: 46px;
}

.flag-tr {
  width: 34.5px;
}

@keyframes anthemFlagPulse {
  0%,
  100% {
    filter: saturate(1);
  }

  50% {
    filter: saturate(1.4) brightness(1.08);
  }
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lab-card {
  min-height: 280px;
  padding: 18px;
  background: var(--white);
}

.status-dot {
  display: block;
  width: 54px;
  height: 54px;
  margin-bottom: 54px;
  background:
    linear-gradient(90deg, var(--cyan) 0 16px, transparent 16px 22px, var(--pink) 22px 38px, transparent 38px),
    var(--yellow);
  border: 4px solid var(--line);
  box-shadow: 5px 5px 0 var(--shadow);
}

.lab-card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.room-computer-bay {
  position: relative;
  width: 100%;
  margin: 18px 0 0;
  padding: 10px;
  background: #101026;
  color: var(--paper);
  overflow: hidden;
}

.room-computer-copy {
  position: absolute;
  top: 58px;
  left: 22px;
  z-index: 9;
  display: grid;
  align-content: center;
  width: 168px;
  min-height: 0;
  padding: 9px 10px;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 var(--blue-dark);
  transform: rotate(-1deg);
}

.room-computer-copy::after {
  position: absolute;
  top: -10px;
  right: 16px;
  width: 42px;
  height: 14px;
  content: "";
  background: var(--orange);
  border: 2px solid var(--line);
}

.room-computer-copy .eyebrow {
  margin-bottom: 5px;
  color: var(--blue-dark);
}

.room-computer-copy h3 {
  max-width: none;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow:
    1px 1px 0 var(--paper),
    3px 3px 0 rgba(17, 18, 38, 0.16);
}

.room-computer-copy p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.28;
}

.room-computer-scene {
  position: relative;
  min-width: 0;
  height: 218px;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 0 63%, #0a0b18 63% 100%),
    linear-gradient(90deg, rgba(255, 249, 220, 0.08) 0 2px, transparent 2px 26px),
    linear-gradient(0deg, rgba(255, 249, 220, 0.06) 0 2px, transparent 2px 26px),
    #211a38;
  border: 3px solid var(--line);
  box-shadow:
    inset 0 -64px 0 rgba(255, 249, 220, 0.04),
    inset 0 0 0 6px rgba(126, 181, 255, 0.08);
}

.room-computer-scene::before {
  position: absolute;
  right: 0;
  bottom: 78px;
  left: 0;
  z-index: 1;
  height: 7px;
  content: "";
  background: var(--line);
}

.room-computer-scene::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: 78px;
  content: "";
  background:
    linear-gradient(90deg, rgba(102, 255, 243, 0.1) 0 2px, transparent 2px 42px),
    linear-gradient(0deg, rgba(255, 249, 220, 0.06) 0 2px, transparent 2px 22px),
    #0b0c1c;
}

.room-poster {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.32);
  font-size: 0.48rem;
  font-weight: 900;
  line-height: 1;
}

.room-poster-one {
  top: 18px;
  left: 210px;
  width: 62px;
  height: 42px;
  background:
    linear-gradient(135deg, var(--pink) 0 48%, var(--yellow) 48% 58%, var(--cyan) 58%);
  transform: rotate(-3deg);
}

.room-poster-two {
  top: 22px;
  left: 290px;
  width: 42px;
  height: 52px;
  background:
    linear-gradient(180deg, var(--blue) 0 38%, var(--paper) 38% 50%, var(--green) 50%);
  transform: rotate(2deg);
}

.room-poster-three {
  top: 18px;
  left: min(610px, 56%);
  width: 72px;
  height: 44px;
  background:
    linear-gradient(90deg, var(--orange) 0 33%, var(--paper) 33% 44%, var(--pink) 44% 70%, var(--blue) 70%);
  transform: rotate(-2deg);
}

.room-shelf {
  position: absolute;
  top: 92px;
  left: 206px;
  z-index: 3;
  width: 138px;
  height: 8px;
  background: var(--paper);
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.28);
}

.room-shelf span {
  position: absolute;
  bottom: 6px;
  width: 16px;
  height: 22px;
  background: var(--pink);
  border: 2px solid var(--line);
}

.room-shelf span:nth-child(1) {
  left: 8px;
  background: var(--cyan);
}

.room-shelf span:nth-child(2) {
  left: 31px;
  height: 28px;
  background: var(--yellow);
}

.room-shelf span:nth-child(3) {
  left: 56px;
  background: var(--green);
}

.room-neon {
  position: absolute;
  top: 28px;
  left: min(410px, 37%);
  z-index: 2;
  padding: 8px 10px;
  color: var(--cyan);
  background: rgba(5, 5, 16, 0.72);
  border: 3px solid var(--cyan);
  box-shadow:
    0 0 18px rgba(102, 255, 243, 0.52),
    4px 4px 0 var(--line);
  font-size: 0.64rem;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(102, 255, 243, 0.86);
}

.room-window {
  --window-sky-top: #78bdff;
  --window-sky-bottom: #d8f7ff;
  --window-sun: #ffeb73;
  --window-sun-x: 24px;
  --window-sun-y: 17px;
  --window-sun-size: 8px;
  --window-cut: transparent;
  --window-cut-x: 28px;
  --window-cut-y: 17px;
  --window-cut-size: 0px;
  --window-star-opacity: 0;
  --window-cloud-opacity: 0.72;
  --window-cloud-soft-opacity: 0.52;
  position: absolute;
  top: 18px;
  right: 235px;
  z-index: 2;
  width: 96px;
  height: 54px;
  background:
    linear-gradient(90deg, transparent 0 43px, var(--line) 43px 50px, transparent 50px),
    linear-gradient(0deg, transparent 0 23px, var(--line) 23px 30px, transparent 30px),
    radial-gradient(circle at 17px 13px, rgba(255, 249, 220, var(--window-star-opacity)) 0 1.5px, transparent 2px),
    radial-gradient(circle at 31px 34px, rgba(255, 249, 220, var(--window-star-opacity)) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 62px 13px, rgba(255, 249, 220, var(--window-star-opacity)) 0 1.4px, transparent 2px),
    radial-gradient(circle at 80px 31px, rgba(255, 249, 220, var(--window-star-opacity)) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at var(--window-cut-x) var(--window-cut-y), var(--window-cut) 0 var(--window-cut-size), transparent calc(var(--window-cut-size) + 1px)),
    radial-gradient(circle at var(--window-sun-x) var(--window-sun-y), var(--window-sun) 0 var(--window-sun-size), transparent calc(var(--window-sun-size) + 1px)),
    radial-gradient(ellipse at 70px 38px, rgba(255, 249, 220, var(--window-cloud-opacity)) 0 12px, transparent 13px),
    radial-gradient(ellipse at 57px 40px, rgba(255, 249, 220, var(--window-cloud-soft-opacity)) 0 9px, transparent 10px),
    linear-gradient(180deg, var(--window-sky-top) 0 66%, var(--window-sky-bottom) 66% 100%);
  border: 4px solid var(--line);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.32);
  transition: background 900ms ease;
}

html[data-mood="morning"] .room-window {
  --window-sky-top: #91d5ff;
  --window-sky-bottom: #ffe2a3;
  --window-sun: #ffeb73;
  --window-sun-x: 23px;
  --window-sun-y: 28px;
  --window-sun-size: 8px;
  --window-cloud-opacity: 0.54;
  --window-cloud-soft-opacity: 0.38;
}

html[data-mood="evening"] .room-window {
  --window-sky-top: #4c3f9a;
  --window-sky-bottom: #ff9b54;
  --window-sun: #ffeb73;
  --window-sun-x: 76px;
  --window-sun-y: 34px;
  --window-sun-size: 9px;
  --window-star-opacity: 0.28;
  --window-cloud-opacity: 0.22;
  --window-cloud-soft-opacity: 0.16;
}

html[data-mood="night"] .room-window {
  --window-sky-top: #071034;
  --window-sky-bottom: #17245a;
  --window-sun: #fff9dc;
  --window-sun-x: 70px;
  --window-sun-y: 16px;
  --window-sun-size: 8px;
  --window-cut: #071034;
  --window-cut-x: 74px;
  --window-cut-y: 13px;
  --window-cut-size: 7px;
  --window-star-opacity: 0.9;
  --window-cloud-opacity: 0;
  --window-cloud-soft-opacity: 0;
}

.room-desk {
  position: absolute;
  right: 18px;
  bottom: 55px;
  left: 198px;
  z-index: 2;
  height: 26px;
  background:
    linear-gradient(90deg, rgba(255, 249, 220, 0.1) 0 12px, transparent 12px 28px),
    #16172b;
  border: 4px solid var(--line);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
}

.room-desk::before,
.room-desk::after {
  position: absolute;
  bottom: -54px;
  width: 12px;
  height: 54px;
  content: "";
  background: var(--line);
}

.room-desk::before {
  left: 38px;
}

.room-desk::after {
  right: 48px;
}

.room-crt {
  position: absolute;
  left: 222px;
  bottom: 86px;
  z-index: 5;
  display: grid;
  width: 112px;
  height: 78px;
  place-items: center;
  color: var(--green);
  background:
    radial-gradient(circle at 50% 46%, rgba(156, 245, 173, 0.3), transparent 45%),
    linear-gradient(rgba(156, 245, 173, 0.18) 0 2px, transparent 2px 8px),
    #050510;
  border: 8px solid #20223f;
  box-shadow:
    0 0 0 4px var(--line),
    7px 7px 0 rgba(0, 0, 0, 0.36);
}

.room-crt::before {
  position: absolute;
  right: -20px;
  bottom: 8px;
  width: 12px;
  height: 38px;
  content: "";
  background:
    linear-gradient(0deg, var(--pink) 0 8px, transparent 8px 15px, var(--cyan) 15px 23px, transparent 23px),
    #080915;
  border: 3px solid var(--line);
}

.room-crt::after {
  position: absolute;
  bottom: -24px;
  left: 30px;
  width: 46px;
  height: 18px;
  content: "";
  background: #20223f;
  border: 4px solid var(--line);
}

.room-crt span {
  font-size: 0.62rem;
  font-weight: 900;
}

.room-speaker {
  position: absolute;
  bottom: 84px;
  z-index: 4;
  width: 28px;
  height: 60px;
  background:
    radial-gradient(circle at 50% 72%, var(--cyan) 0 5px, var(--line) 6px 9px, transparent 10px),
    radial-gradient(circle at 50% 28%, var(--pink) 0 5px, var(--line) 6px 9px, transparent 10px),
    #0a0b18;
  border: 4px solid var(--line);
}

.room-speaker-left {
  left: 364px;
}

.room-speaker-right {
  left: 438px;
}

.room-tower {
  position: absolute;
  left: 392px;
  bottom: 82px;
  z-index: 4;
  width: 36px;
  height: 74px;
  background:
    linear-gradient(0deg, var(--green) 0 8px, transparent 8px),
    linear-gradient(90deg, rgba(255, 249, 220, 0.12) 0 10px, transparent 10px),
    #151631;
  border: 4px solid var(--line);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.34);
}

.room-tower::before {
  position: absolute;
  top: 12px;
  left: 8px;
  width: 16px;
  height: 4px;
  content: "";
  background: var(--paper);
  box-shadow:
    0 12px 0 var(--paper),
    0 24px 0 var(--paper);
}

.disk-stack {
  position: absolute;
  left: min(520px, 48%);
  bottom: 66px;
  z-index: 5;
  width: 58px;
  height: 36px;
  background:
    linear-gradient(0deg, var(--line) 0 3px, transparent 3px 9px, var(--line) 9px 12px, transparent 12px 18px, var(--line) 18px 21px, transparent 21px),
    var(--paper);
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.32);
  transform: rotate(-2deg);
}

.disk-stack::before {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 12px;
  height: 12px;
  content: "";
  background: var(--pink);
  border: 2px solid var(--line);
}

.room-controller {
  position: absolute;
  left: min(620px, 57%);
  bottom: 22px;
  z-index: 5;
  width: 76px;
  height: 28px;
  background: var(--blue-dark);
  border: 3px solid var(--line);
  border-radius: 5px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.room-controller::before,
.room-controller::after {
  position: absolute;
  content: "";
}

.room-controller::before {
  left: 10px;
  top: 10px;
  width: 22px;
  height: 5px;
  background: var(--paper);
  box-shadow: 8px -8px 0 -2px var(--paper);
}

.room-controller::after {
  right: 12px;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--pink);
  box-shadow: 12px 3px 0 var(--green);
}

.pizza-box {
  position: absolute;
  left: min(735px, 67%);
  bottom: 78px;
  z-index: 5;
  display: grid;
  width: 82px;
  height: 28px;
  place-items: center;
  color: var(--ink);
  background: var(--orange);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.32);
  font-size: 0.58rem;
  font-weight: 900;
  transform: rotate(2deg);
}

.room-lamp {
  position: absolute;
  left: min(820px, 74%);
  bottom: 82px;
  z-index: 4;
  width: 42px;
  height: 72px;
  border-bottom: 5px solid var(--line);
}

.room-lamp::before {
  position: absolute;
  top: 0;
  left: 7px;
  width: 28px;
  height: 26px;
  content: "";
  background: var(--yellow);
  border: 4px solid var(--line);
  box-shadow: 0 0 22px rgba(255, 235, 115, 0.5);
  transform: skew(-12deg);
}

.room-lamp::after {
  position: absolute;
  top: 25px;
  left: 19px;
  width: 5px;
  height: 43px;
  content: "";
  background: var(--line);
}

.room-rug {
  position: absolute;
  right: 265px;
  bottom: 10px;
  z-index: 1;
  width: 360px;
  height: 38px;
  background:
    linear-gradient(90deg, var(--cyan) 0 18px, transparent 18px 34px, var(--pink) 34px 52px, transparent 52px),
    #17182d;
  border: 4px solid var(--line);
}

.room-cable {
  position: absolute;
  right: 100px;
  bottom: 18px;
  z-index: 3;
  width: 166px;
  height: 48px;
  border-right: 4px solid var(--line);
  border-bottom: 4px solid var(--line);
  border-radius: 0 0 34px 0;
  transform: rotate(-3deg);
}

.soda-can {
  position: absolute;
  z-index: 6;
  bottom: 76px;
  width: 13px;
  height: 24px;
  background:
    linear-gradient(90deg, rgba(255, 249, 220, 0.85) 0 4px, transparent 4px),
    var(--orange);
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.soda-can::before {
  position: absolute;
  top: -5px;
  left: -2px;
  width: 13px;
  height: 4px;
  content: "";
  background: var(--paper);
  border: 2px solid var(--line);
}

.soda-can-one {
  left: min(572px, 53%);
}

.soda-can-two {
  left: min(594px, 55%);
  height: 20px;
  background:
    linear-gradient(90deg, rgba(255, 249, 220, 0.85) 0 4px, transparent 4px),
    var(--cyan);
  transform: rotate(8deg);
}

.room-floor-shadow {
  position: absolute;
  right: 24px;
  bottom: 50px;
  z-index: 1;
  width: 280px;
  height: 24px;
  background: rgba(0, 0, 0, 0.38);
  filter: blur(1px);
}

.room-computer {
  position: absolute;
  display: grid;
  align-content: end;
  right: 24px;
  bottom: 72px;
  z-index: 7;
  width: clamp(162px, 20vw, 205px);
  min-height: 104px;
  margin: 0;
  padding: 8px;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% 32%, rgba(102, 255, 243, 0.16), transparent 32%),
    linear-gradient(rgba(255, 249, 220, 0.05) 2px, transparent 2px),
    #09091b;
  background-size: auto, 100% 16px;
  border: 3px solid var(--line);
  box-shadow:
    inset 0 0 0 4px rgba(126, 181, 255, 0.14),
    5px 5px 0 var(--blue-dark);
  cursor: pointer;
  text-align: left;
}

.room-computer:hover,
.room-computer:focus-visible {
  outline: none;
  transform: translate(-2px, -2px);
}

.room-computer:hover .room-computer-screen,
.room-computer:focus-visible .room-computer-screen,
.room-computer.is-powered .room-computer-screen {
  background: var(--cyan);
  box-shadow:
    inset 0 0 0 5px rgba(17, 18, 38, 0.16),
    0 0 20px rgba(102, 255, 243, 0.42);
}

.room-computer-screen {
  display: grid;
  align-content: center;
  justify-items: start;
  width: min(100%, 182px);
  min-height: 43px;
  margin: 0 auto 6px;
  padding: 7px;
  color: var(--ink);
  background: #050510;
  border: 4px solid var(--line);
  box-shadow: 4px 4px 0 var(--blue-dark);
  transition:
    background 180ms ease,
    box-shadow 180ms ease;
}

.room-computer-screen strong {
  font-size: clamp(1rem, 2vw, 1.45rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--paper);
}

.room-computer-screen span {
  margin-top: 3px;
  color: var(--pink);
  font-size: 0.52rem;
  font-weight: 900;
  text-transform: uppercase;
}

.room-computer-base {
  position: relative;
  display: block;
  width: min(100%, 168px);
  min-height: 31px;
  margin: 0 auto;
  background: var(--paper);
  border: 4px solid var(--line);
  box-shadow: 4px 4px 0 var(--blue-dark);
}

.room-computer-drive {
  position: absolute;
  top: 7px;
  left: 8px;
  width: 46px;
  height: 5px;
  background: var(--line);
  box-shadow: 0 11px 0 var(--line);
}

.room-computer-keys {
  position: absolute;
  right: 8px;
  bottom: 7px;
  width: 76px;
  height: 11px;
  background:
    repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 7px),
    var(--cyan);
  border: 2px solid var(--line);
}

.room-computer-led {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--pink);
  border: 2px solid var(--line);
}

.room-computer.is-powered .room-computer-led {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(156, 245, 173, 0.24);
}

.signal-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
  gap: 14px;
  align-items: stretch;
  margin-top: 116px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 42%),
    var(--pink);
}

.signal-section h2 {
  font-size: clamp(2rem, 5vw, 4.6rem);
}

.signal-copy > .eyebrow {
  position: absolute;
  top: -52px;
  left: 16px;
  margin: 0;
  color: var(--blue-dark);
}

.signal-copy {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  align-content: start;
}

.signal-copy h2 {
  align-self: start;
}

.signal-transmitter {
  position: relative;
  display: grid;
  gap: 16px;
  align-content: end;
  min-height: 300px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(255, 249, 220, 0.16) 0 2px, transparent 2px 24px),
    linear-gradient(0deg, rgba(255, 249, 220, 0.13) 0 2px, transparent 2px 24px),
    var(--ink);
  border: 4px solid var(--line);
  box-shadow: 6px 6px 0 rgba(16, 16, 38, 0.24);
  color: var(--paper);
  overflow: hidden;
}

.signal-transmitter::before {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 78px;
  height: 58px;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 16px, var(--cyan) 16px 30px, transparent 30px),
    linear-gradient(0deg, transparent 0 18px, var(--yellow) 18px 32px, transparent 32px),
    var(--pink);
  border: 4px solid var(--line);
  box-shadow: 8px 8px 0 rgba(126, 181, 255, 0.5);
  transform: rotate(3deg);
}

.signal-transmitter::after {
  position: absolute;
  top: 58px;
  right: 76px;
  width: 86px;
  height: 16px;
  content: "";
  border-top: 4px solid rgba(255, 249, 220, 0.72);
  border-right: 4px solid rgba(255, 249, 220, 0.72);
  transform: skewX(-28deg);
}

.signal-antenna {
  position: absolute;
  top: 28px;
  left: 24px;
  width: 76px;
  height: 76px;
  border: 4px solid rgba(102, 255, 243, 0.62);
  border-radius: 50%;
  box-shadow:
    0 0 0 18px rgba(102, 255, 243, 0.12),
    0 0 0 38px rgba(255, 235, 115, 0.08);
}

.signal-antenna::before,
.signal-antenna::after {
  position: absolute;
  content: "";
}

.signal-antenna::before {
  left: 29px;
  top: 18px;
  width: 10px;
  height: 42px;
  background: var(--green);
  border: 3px solid var(--line);
}

.signal-antenna::after {
  left: 22px;
  bottom: 5px;
  width: 24px;
  height: 12px;
  background: var(--yellow);
  border: 3px solid var(--line);
}

.signal-meter {
  display: flex;
  gap: 7px;
  align-items: end;
  width: fit-content;
  min-height: 62px;
  margin-top: 126px;
  padding: 10px;
  background: var(--paper);
  border: 4px solid var(--line);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.24);
}

.signal-meter span {
  display: block;
  width: 14px;
  background: var(--green);
  border: 3px solid var(--line);
}

.signal-meter span:nth-child(1) {
  height: 16px;
}

.signal-meter span:nth-child(2) {
  height: 26px;
  background: var(--cyan);
}

.signal-meter span:nth-child(3) {
  height: 38px;
  background: var(--yellow);
}

.signal-meter span:nth-child(4) {
  height: 48px;
  background: var(--orange);
}

.signal-meter span:nth-child(5) {
  height: 34px;
  background: var(--pink);
}

.signal-transmitter p {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin-bottom: 0;
  color: var(--ink-soft);
  color: #fff8cd;
  font-weight: 800;
  line-height: 1.55;
}

.signal-idea-button {
  position: relative;
  z-index: 1;
  width: fit-content;
  min-height: 42px;
  padding: 8px 11px;
  color: var(--ink);
  background: var(--green);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 rgba(126, 181, 255, 0.42);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  transition:
    background 120ms ease,
    transform 120ms ease;
}

.signal-idea-button:hover,
.signal-idea-button:focus-visible {
  background: var(--cyan);
  outline: none;
  transform: translate(-2px, -2px);
}

.signal-transmitter ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-transmitter li {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-transmitter li span {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  background: var(--green);
  border: 3px solid var(--line);
  box-shadow: 0 0 0 4px rgba(156, 245, 173, 0.18);
}

.signal-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto minmax(220px, 1fr) auto auto auto;
  gap: 10px 12px;
  align-content: stretch;
  min-height: 100%;
  padding: 14px;
  background:
    linear-gradient(rgba(16, 16, 38, 0.06) 2px, transparent 2px),
    linear-gradient(90deg, rgba(16, 16, 38, 0.06) 2px, transparent 2px),
    var(--paper);
  background-size: 22px 22px;
  border: 4px solid var(--line);
  box-shadow: 6px 6px 0 rgba(16, 16, 38, 0.24);
}

.signal-field-group {
  position: relative;
  display: grid;
  gap: 7px;
}

.signal-field-group label {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-field-group input,
.signal-field-group select,
.signal-field-group textarea {
  min-width: 0;
  width: 100%;
  padding: 13px 14px;
  background: var(--white);
  border: 3px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
}

.signal-field-group input:focus-visible,
.signal-field-group select:focus-visible,
.signal-field-group textarea:focus-visible {
  outline: none;
  border-color: var(--blue-dark);
  box-shadow:
    0 0 0 4px var(--cyan),
    4px 4px 0 rgba(16, 16, 38, 0.22);
}

.signal-field-group.is-invalid input,
.signal-field-group.is-invalid select,
.signal-field-group.is-invalid textarea {
  border-color: #8f123a;
  box-shadow:
    inset 0 0 0 3px rgba(255, 139, 36, 0.22),
    4px 4px 0 rgba(143, 18, 58, 0.24);
}

.signal-field-error {
  position: absolute;
  right: 8px;
  bottom: -20px;
  z-index: 4;
  max-width: min(290px, calc(100% - 16px));
  margin: 0;
  padding: 7px 9px;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 rgba(16, 16, 38, 0.2);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.signal-field-error::before {
  position: absolute;
  top: -8px;
  right: 22px;
  width: 12px;
  height: 12px;
  content: "";
  background: var(--yellow);
  border-top: 3px solid var(--line);
  border-left: 3px solid var(--line);
  transform: rotate(45deg);
}

.signal-field-group textarea {
  height: 100%;
  min-height: 220px;
  resize: vertical;
}

.signal-message-field {
  min-height: 0;
}

.signal-message-field,
.signal-captcha,
.signal-submit,
.signal-status {
  grid-column: 1 / -1;
}

.signal-field-trap {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signal-captcha {
  display: grid;
  gap: 8px;
  padding: 9px;
  background:
    linear-gradient(90deg, rgba(126, 181, 255, 0.16) 0 2px, transparent 2px 18px),
    #111125;
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 rgba(16, 16, 38, 0.2);
  color: var(--paper);
}

.signal-captcha-top,
.signal-tuner {
  display: flex;
  gap: 8px;
  align-items: center;
}

.signal-captcha-top {
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-captcha-light {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  background: var(--orange);
  border: 3px solid var(--line);
  box-shadow: 0 0 0 3px rgba(255, 155, 84, 0.22);
}

.signal-captcha.is-clean .signal-captcha-light {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(156, 245, 173, 0.28);
}

.signal-captcha.is-error .signal-captcha-light,
.signal-captcha.is-offline .signal-captcha-light {
  background: #ff3d4b;
  box-shadow: 0 0 0 4px rgba(255, 61, 75, 0.22);
}

.signal-captcha-target {
  color: var(--cyan);
  text-align: right;
}

.signal-tuner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.signal-wave {
  display: flex;
  gap: 3px;
  align-items: end;
  width: 42px;
  min-height: 28px;
  padding: 5px;
  background: #050510;
  border: 3px solid rgba(126, 181, 255, 0.46);
}

.signal-wave span {
  display: block;
  width: 5px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(102, 255, 243, 0.46);
}

.signal-wave span:nth-child(1) {
  height: 9px;
}

.signal-wave span:nth-child(2) {
  height: 18px;
}

.signal-wave span:nth-child(3) {
  height: 13px;
}

.signal-wave span:nth-child(4) {
  height: 22px;
  background: var(--pink);
}

.signal-captcha.is-clean .signal-wave span {
  background: var(--green);
}

.signal-tuner input[type="range"] {
  width: 100%;
  appearance: none;
  accent-color: var(--cyan);
  background: transparent;
  cursor: pointer;
}

.signal-tuner input[type="range"]:disabled {
  cursor: wait;
  opacity: 0.55;
}

.signal-tuner input[type="range"]::-webkit-slider-runnable-track {
  height: 10px;
  background: var(--paper);
  border: 3px solid var(--line);
  box-shadow: 3px 3px 0 rgba(126, 181, 255, 0.34);
}

.signal-tuner input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -9px;
  appearance: none;
  background: var(--yellow);
  border: 3px solid var(--line);
  box-shadow: 3px 3px 0 rgba(16, 16, 38, 0.26);
}

.signal-tuner input[type="range"]::-moz-range-track {
  height: 10px;
  background: var(--paper);
  border: 3px solid var(--line);
  box-shadow: 3px 3px 0 rgba(126, 181, 255, 0.34);
}

.signal-tuner input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--yellow);
  border: 3px solid var(--line);
  border-radius: 0;
  box-shadow: 3px 3px 0 rgba(16, 16, 38, 0.26);
}

.signal-tune-readout {
  min-width: 68px;
  padding: 6px 7px;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--line);
  box-shadow: 3px 3px 0 rgba(16, 16, 38, 0.18);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.signal-tune-status {
  min-height: 1.25em;
  margin: 0;
  color: rgba(255, 248, 205, 0.82);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.signal-captcha.is-clean .signal-tune-status {
  color: var(--green);
}

.signal-captcha.is-error .signal-tune-status,
.signal-captcha.is-offline .signal-tune-status {
  color: #ffb3c0;
}

.signal-submit {
  min-height: 52px;
  background: var(--yellow);
  border: 4px solid var(--line);
  box-shadow: 5px 5px 0 var(--shadow);
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  transition:
    background 120ms ease,
    opacity 120ms ease,
    transform 120ms ease;
}

.signal-submit:hover,
.signal-submit:focus-visible {
  background: var(--green);
  outline: none;
  transform: translate(-2px, -2px);
}

.signal-submit:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.signal-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.4;
  text-transform: uppercase;
}

.signal-status.is-success {
  color: #126c2a;
}

.signal-status.is-error {
  color: #8f123a;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 48px 0 32px;
  color: var(--blue-dark);
  font-weight: 900;
}

.site-footer .site-link-strip {
  width: 100%;
  margin: 0 0 4px;
}

.footer-pigeon {
  flex: 0 0 auto;
  padding: 9px 11px;
  background: var(--paper);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 rgba(16, 16, 38, 0.2);
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
  transition:
    background 120ms ease,
    transform 120ms ease;
}

.footer-pigeon:hover,
.footer-pigeon:focus-visible {
  background: var(--green);
  outline: none;
  transform: translate(-2px, -2px);
}

.signal-pigeon-flyer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 34;
  width: 58px;
  height: 42px;
  pointer-events: none;
  transform-origin: 50% 70%;
  will-change: opacity, transform;
}

.signal-pigeon-flyer span,
.signal-pigeon-flyer::before,
.signal-pigeon-flyer::after {
  position: absolute;
  display: block;
  content: "";
}

.signal-pigeon-body {
  left: 14px;
  top: 15px;
  width: 30px;
  height: 17px;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 50% 45% 45% 50%;
  box-shadow:
    inset 8px 0 0 rgba(126, 181, 255, 0.34),
    4px 4px 0 rgba(16, 16, 38, 0.22);
}

.signal-pigeon-head {
  left: 39px;
  top: 10px;
  width: 15px;
  height: 15px;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 50%;
}

.signal-pigeon-head::before {
  position: absolute;
  left: 7px;
  top: 2px;
  width: 3px;
  height: 3px;
  content: "";
  background: var(--line);
  border-radius: 50%;
}

.signal-pigeon-head::after {
  position: absolute;
  right: -9px;
  top: 5px;
  width: 9px;
  height: 5px;
  content: "";
  background: var(--orange);
  border: 2px solid var(--line);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.signal-pigeon-wing {
  left: 19px;
  top: 3px;
  width: 24px;
  height: 18px;
  background: var(--cyan);
  border: 3px solid var(--line);
  border-radius: 60% 42% 50% 42%;
  transform: rotate(-18deg);
  transform-origin: right bottom;
}

.signal-pigeon-note {
  left: 22px;
  top: 29px;
  width: 19px;
  height: 13px;
  background: var(--yellow);
  border: 3px solid var(--line);
  box-shadow: 3px 3px 0 rgba(16, 16, 38, 0.22);
  transform: rotate(5deg);
}

.signal-pigeon-flyer::before,
.signal-pigeon-flyer::after {
  bottom: 3px;
  width: 10px;
  height: 3px;
  background: var(--line);
}

.signal-pigeon-flyer::before {
  left: 21px;
  transform: rotate(58deg);
}

.signal-pigeon-flyer::after {
  left: 33px;
  transform: rotate(118deg);
}

.signal-pigeon-flyer.is-landing .signal-pigeon-wing {
  animation: signalPigeonWing 120ms ease-in-out infinite alternate;
}

.signal-pigeon-flyer.is-landing .signal-pigeon-note {
  animation: signalPigeonNote 420ms ease-in-out infinite alternate;
}

.poem-fly {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 12;
  width: 40px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  transform: translate3d(var(--fly-x, 76vw), var(--fly-y, 58vh), 0)
    scaleX(var(--fly-dir, 1))
    rotate(var(--fly-rot, -8deg));
  transition: transform var(--flight-duration, 3200ms)
    cubic-bezier(0.35, 0.02, 0.2, 1);
  transform-origin: 50% 70%;
}

.poem-fly:hover,
.poem-fly:focus-visible {
  outline: none;
  filter: drop-shadow(0 0 10px rgba(255, 249, 220, 0.9));
}

body.poem-open .poem-fly {
  position: fixed;
  z-index: 94;
  cursor: default;
  pointer-events: none;
}

body.poem-open .poem-fly:hover,
body.poem-open .poem-fly:focus-visible {
  filter: none;
}

.poem-fly span {
  position: absolute;
  display: block;
}

.fly-body {
  left: 16px;
  top: 13px;
  width: 20px;
  height: 13px;
  background: #050510;
  border: 3px solid var(--line);
  border-radius: 50%;
  box-shadow:
    inset 6px 0 0 rgba(255, 249, 220, 0.18),
    4px 4px 0 rgba(0, 0, 0, 0.2);
}

.fly-head {
  left: 7px;
  top: 12px;
  width: 13px;
  height: 13px;
  background: #050510;
  border: 3px solid var(--line);
  border-radius: 50%;
}

.fly-head::before,
.fly-head::after {
  position: absolute;
  top: 2px;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--cyan);
  border: 2px solid var(--line);
  border-radius: 50%;
}

.fly-head::before {
  left: -3px;
}

.fly-head::after {
  right: -3px;
}

.poem-fly.is-sad .fly-head::before,
.poem-fly.is-sad .fly-head::after {
  top: 4px;
  width: 6px;
  height: 4px;
  background: rgba(102, 255, 243, 0.82);
  border-color: rgba(16, 16, 38, 0.92);
  border-radius: 50% 50% 70% 70%;
  box-shadow:
    inset 0 -2px 0 rgba(16, 16, 38, 0.34),
    0 4px 0 -2px rgba(126, 181, 255, 0.88);
}

.poem-fly.is-sad .fly-head::before {
  transform: rotate(-18deg);
}

.poem-fly.is-sad .fly-head::after {
  transform: rotate(18deg);
}

.fly-wing {
  top: 3px;
  width: 16px;
  height: 14px;
  background: rgba(255, 249, 220, 0.64);
  border: 3px solid rgba(16, 16, 38, 0.72);
  border-radius: 55% 45% 55% 45%;
  transform-origin: bottom center;
}

.fly-wing-left {
  left: 15px;
  transform: rotate(-24deg);
}

.fly-wing-right {
  right: 2px;
  transform: rotate(24deg);
}

.fly-leg {
  width: 11px;
  height: 2px;
  background: var(--line);
  transform-origin: left center;
}

.fly-leg-one {
  left: 14px;
  top: 24px;
  transform: rotate(28deg);
}

.fly-leg-two {
  left: 18px;
  top: 27px;
  transform: rotate(52deg);
}

.fly-leg-three {
  right: 7px;
  top: 24px;
  transform: rotate(152deg);
}

.fly-leg-four {
  right: 3px;
  top: 27px;
  transform: rotate(128deg);
}

.poem-fly.is-flying .fly-wing-left {
  animation: flyWingLeft 80ms ease-in-out infinite alternate;
}

.poem-fly.is-flying .fly-wing-right {
  animation: flyWingRight 80ms ease-in-out infinite alternate;
}

.poem-fly.is-walking .fly-leg-one,
.poem-fly.is-walking .fly-leg-three {
  animation: flyWalkA 180ms steps(2, end) infinite;
}

.poem-fly.is-walking .fly-leg-two,
.poem-fly.is-walking .fly-leg-four {
  animation: flyWalkB 180ms steps(2, end) infinite;
}

.poem-fly.is-feeding .fly-head {
  animation: flyFeedHead 520ms ease-in-out infinite;
  transform-origin: right center;
}

.poem-fly.is-feeding .fly-body {
  animation: flyFeedBody 1040ms ease-in-out infinite;
}

.poem-fly.is-startled .fly-wing-left {
  animation-duration: 42ms;
}

.poem-fly.is-startled .fly-wing-right {
  animation-duration: 42ms;
}

.poem-fly.is-poem-perched .fly-head {
  animation: flyLookAround 4200ms ease-in-out infinite;
  transform-origin: center;
}

.poem-fly.is-resting .fly-leg-one {
  animation: flyCleanLeft 920ms ease-in-out infinite;
}

.poem-fly.is-resting .fly-leg-three {
  animation: flyCleanRight 920ms ease-in-out infinite;
}

.poem-fly.is-poem-perched.is-resting .fly-leg-one,
.poem-fly.is-poem-perched.is-resting .fly-leg-three {
  animation-duration: 1500ms;
}

body.poem-open {
  overflow: hidden;
}

.poem-vault {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(28px, 7vw, 96px);
  background: #03030a;
  isolation: isolate;
  overflow: hidden;
}

.poem-vault::before {
  position: fixed;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background: rgba(3, 3, 10, 0.8);
  opacity: 0;
  transition: opacity 1600ms ease;
}

.poem-vault.has-baba-video::before {
  opacity: 1;
}

.poem-vault[hidden] {
  display: none;
}

.poem-bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  filter: grayscale(0.28) saturate(0.68) contrast(0.9) brightness(0.72);
  transform: scale(1.03);
  transition: opacity 1600ms ease;
}

.poem-vault.has-baba-video .poem-bg-video {
  opacity: 0.46;
}

.poem-audio-badge {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 3;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  max-width: min(420px, calc(100vw - 36px));
  color: rgba(248, 240, 208, 0.66);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  line-height: 1.3;
}

.poem-audio-badge span {
  min-width: 0;
}

.poem-mute {
  flex: 0 0 auto;
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  color: rgba(248, 240, 208, 0.74);
  background: transparent;
  border: 1px solid rgba(248, 240, 208, 0.28);
  border-radius: 50%;
  cursor: pointer;
}

.poem-mute-icon {
  width: 16px;
  height: 16px;
  overflow: visible;
}

.poem-mute-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.poem-mute-icon path:first-child {
  fill: currentColor;
  stroke-width: 0;
}

.poem-mute .icon-slash {
  opacity: 0;
}

.poem-mute.is-muted .icon-wave {
  opacity: 0;
}

.poem-mute.is-muted .icon-slash {
  opacity: 1;
}

.poem-focus {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(24px, 4vw, 42px);
  align-content: center;
  justify-items: center;
  width: min(760px, 100%);
  min-height: min(620px, calc(100dvh - 96px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  color: #f8f0d0;
  text-align: center;
}

.poem-close {
  position: fixed;
  top: clamp(46px, 9vh, 82px);
  left: 50%;
  z-index: 4;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: rgba(248, 240, 208, 0.72);
  background: transparent;
  border: 1px solid rgba(248, 240, 208, 0.24);
  border-radius: 50%;
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  transform: translateX(-50%);
}

.poem-close:hover,
.poem-close:focus-visible,
.poem-mute:hover,
.poem-mute:focus-visible,
.poem-controls button:hover,
.poem-controls button:focus-visible {
  color: #f8f0d0;
  border-color: rgba(248, 240, 208, 0.72);
  outline: none;
}

.poem-focus .eyebrow,
.poem-count {
  display: none;
}

.poem-focus h2 {
  max-width: 32ch;
  margin: 0;
  color: rgba(248, 240, 208, 0.68);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.86rem, 0.78rem + 0.35vw, 1.05rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-shadow: none;
  text-transform: none;
}

.poem-body {
  display: grid;
  gap: 0.78em;
  max-width: min(620px, 100%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 1.08rem + 0.9vw, 1.9rem);
  line-height: 1.72;
  text-align: center;
  text-wrap: balance;
}

.poem-focus.is-long-poem {
  gap: clamp(16px, 2.4vw, 30px);
}

.poem-focus.is-long-poem .poem-body {
  gap: 0.42em;
  max-width: min(600px, 100%);
  font-size: clamp(1rem, 0.92rem + 0.42vw, 1.35rem);
  line-height: 1.54;
}

.poem-focus.is-compact-poem .poem-body {
  gap: 0.28em;
  max-width: min(560px, 100%);
  font-size: clamp(0.86rem, 0.8rem + 0.24vw, 1.02rem);
  line-height: 1.42;
}

.poem-focus.is-prose-poem .poem-body {
  max-width: min(580px, 100%);
  text-align: center;
}

.poem-focus h2,
.poem-body,
.poem-controls {
  opacity: 0;
  filter: blur(7px);
  transform: translateY(18px);
  transition:
    opacity 1400ms ease,
    filter 1400ms ease,
    transform 1400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.poem-vault.is-poem-visible .poem-focus h2,
.poem-vault.is-poem-visible .poem-body,
.poem-vault.is-poem-visible .poem-controls {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.poem-vault.is-poem-visible .poem-body {
  transition-delay: 120ms;
}

.poem-vault.is-poem-visible .poem-controls {
  transition-delay: 320ms;
}

.poem-body p {
  margin: 0;
  overflow-wrap: break-word;
  text-align: center;
  text-wrap: balance;
}

.poem-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: clamp(22px, 4vw, 48px);
}

.poem-controls button {
  min-height: 34px;
  padding: 6px 0;
  color: rgba(248, 240, 208, 0.52);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(248, 240, 208, 0.22);
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  font-weight: 400;
}

.command-palette {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: start center;
  padding: clamp(72px, 12vh, 118px) 16px 28px;
  background: rgba(5, 5, 16, 0.62);
  backdrop-filter: blur(3px);
}

.command-palette[hidden] {
  display: none;
}

.command-panel {
  width: min(720px, 100%);
  color: var(--ink);
  background:
    linear-gradient(rgba(16, 16, 38, 0.06) 2px, transparent 2px),
    linear-gradient(90deg, rgba(16, 16, 38, 0.06) 2px, transparent 2px),
    var(--paper);
  background-size: 22px 22px;
  border: 4px solid var(--line);
  box-shadow:
    10px 10px 0 var(--blue-dark),
    0 24px 80px rgba(0, 0, 0, 0.42);
}

.command-top {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  padding: 14px;
  background: var(--ink);
  border-bottom: 4px solid var(--line);
  color: var(--paper);
}

.command-top .eyebrow {
  margin-bottom: 6px;
}

.command-top h2 {
  color: var(--paper);
  font-size: clamp(1.9rem, 5vw, 3rem);
  text-shadow: 4px 4px 0 var(--blue-dark);
}

.command-close {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  background: var(--pink);
  border: 4px solid var(--line);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

.command-input {
  width: calc(100% - 28px);
  min-height: 58px;
  margin: 14px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  border: 4px solid var(--line);
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
}

.command-input:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px var(--cyan),
    5px 5px 0 rgba(16, 16, 38, 0.2);
}

.command-list {
  display: grid;
  gap: 8px;
  max-height: min(440px, 48vh);
  padding: 0 14px 14px;
  overflow-y: auto;
}

.command-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  background: var(--white);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 rgba(16, 16, 38, 0.18);
  cursor: pointer;
  text-align: left;
}

.command-list button:hover,
.command-list button:focus-visible,
.command-close:hover,
.command-close:focus-visible {
  background: var(--green);
  outline: none;
  transform: translate(-2px, -2px);
}

.command-list strong,
.command-list span,
.command-empty {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.command-list span {
  color: var(--blue-dark);
}

.command-empty {
  margin: 0;
  padding: 0 14px 16px;
  color: #8f123a;
}

.command-poem {
  margin: 0 14px 14px;
  padding: 12px;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(255, 249, 220, 0.12) 0 2px, transparent 2px 22px),
    linear-gradient(0deg, rgba(255, 249, 220, 0.1) 0 2px, transparent 2px 22px),
    var(--ink);
  border: 3px solid var(--line);
  box-shadow: 5px 5px 0 rgba(27, 56, 129, 0.42);
}

.command-poem[hidden] {
  display: none;
}

.command-poem-top {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.command-poem-top strong {
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.command-poem-top button {
  padding: 6px 9px;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--line);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.command-poem-top button:hover,
.command-poem-top button:focus-visible {
  background: var(--green);
  outline: none;
  transform: translate(-2px, -2px);
}

.command-poem p {
  margin: 0;
  color: #fff8cd;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.65;
  white-space: pre-line;
}

body.command-open {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chat-shell {
  --chat-base-bottom: 22px;
  --footer-clearance: 0px;
  position: fixed;
  right: max(22px, calc((100vw - var(--max)) / 2 + 22px));
  bottom: max(var(--chat-base-bottom), var(--footer-clearance));
  z-index: 30;
  display: grid;
  justify-items: end;
  gap: 12px;
  width: min(420px, calc(100vw - 24px));
  transition:
    right 180ms ease,
    bottom 180ms ease;
}

.chat-toggle {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 12px 16px;
  background: var(--yellow);
  cursor: pointer;
  font-weight: 900;
}

.chat-toggle:hover,
.chat-toggle:focus-visible,
.chat-close:hover,
.chat-close:focus-visible,
.chat-prompts button:hover,
.chat-prompts button:focus-visible,
.chat-form button:hover,
.chat-form button:focus-visible {
  outline: none;
  transform: translate(-2px, -2px);
}

.chat-pulse {
  width: 16px;
  height: 16px;
  background: var(--green);
  border: 3px solid var(--line);
  box-shadow: 0 0 0 4px rgba(156, 245, 173, 0.34);
}

.chat-panel {
  display: none;
  width: 100%;
  max-height: min(660px, calc(100vh - 112px));
  overflow: hidden;
  background: var(--paper);
}

.chat-shell.is-open .chat-panel {
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto auto;
}

.chat-shell.is-over-footer .chat-panel {
  max-height: min(560px, calc(100vh - 180px));
}

.chat-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background: var(--ink);
  border-bottom: 4px solid var(--line);
  color: var(--paper);
}

.chat-top h2 {
  color: var(--paper);
  font-size: 2rem;
  text-shadow: 3px 3px 0 var(--blue-dark);
}

.chat-close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--pink);
  border: 4px solid var(--line);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

.chat-log {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
  background:
    linear-gradient(rgba(16, 16, 38, 0.06) 2px, transparent 2px),
    linear-gradient(90deg, rgba(16, 16, 38, 0.06) 2px, transparent 2px),
    var(--white);
  background-size: 22px 22px;
}

.chat-message {
  width: fit-content;
  max-width: 88%;
  padding: 10px 12px;
  border: 3px solid var(--line);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.45;
}

.chat-message.bot {
  background: var(--green);
}

.chat-message.user {
  justify-self: end;
  background: var(--cyan);
}

.chat-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-top: 4px solid var(--line);
}

.chat-prompts button,
.chat-form button {
  background: var(--yellow);
  border: 3px solid var(--line);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.chat-prompts button {
  padding: 8px 10px;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  background: var(--pink);
  border-top: 4px solid var(--line);
}

.chat-form input {
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  background: var(--paper);
  border: 3px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.chat-form input:focus-visible {
  outline: 4px solid var(--cyan);
  outline-offset: 0;
}

.chat-form button {
  min-width: 78px;
}

@keyframes flyWingLeft {
  from {
    transform: rotate(-18deg) scaleY(1);
  }

  to {
    transform: rotate(-62deg) scaleY(0.68);
  }
}

@keyframes flyWingRight {
  from {
    transform: rotate(18deg) scaleY(1);
  }

  to {
    transform: rotate(62deg) scaleY(0.68);
  }
}

@keyframes flyCleanLeft {
  0%,
  100% {
    transform: rotate(28deg) translateX(0);
  }

  45% {
    transform: rotate(68deg) translateX(3px);
  }

  70% {
    transform: rotate(42deg) translateX(-1px);
  }
}

@keyframes flyCleanRight {
  0%,
  100% {
    transform: rotate(152deg) translateX(0);
  }

  45% {
    transform: rotate(112deg) translateX(-3px);
  }

  70% {
    transform: rotate(138deg) translateX(1px);
  }
}

@keyframes flyWalkA {
  from {
    transform: rotate(28deg) translateX(-1px);
  }

  to {
    transform: rotate(54deg) translateX(2px);
  }
}

@keyframes flyWalkB {
  from {
    transform: rotate(132deg) translateX(1px);
  }

  to {
    transform: rotate(156deg) translateX(-2px);
  }
}

@keyframes flyFeedHead {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  45% {
    transform: translate(-2px, 3px) rotate(-8deg);
  }

  70% {
    transform: translate(-1px, 1px) rotate(-3deg);
  }
}

@keyframes flyFeedBody {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(1px);
  }
}

@keyframes flyLookAround {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }

  38% {
    transform: translateX(1px) rotate(5deg);
  }

  68% {
    transform: translateX(-1px) rotate(-4deg);
  }
}

@keyframes signalPigeonWing {
  from {
    transform: rotate(-8deg) translateY(0);
  }

  to {
    transform: rotate(-48deg) translateY(-5px);
  }
}

@keyframes signalPigeonNote {
  from {
    transform: rotate(5deg) translateY(0);
  }

  to {
    transform: rotate(-3deg) translateY(3px);
  }
}

@keyframes avatarBubblePop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .room-computer-bay,
  .a500-overlay,
  .command-palette {
    display: none !important;
  }
}

@media (max-width: 980px) {
  .hero-stage,
  .lost-console,
  .story-console,
  .featured-app,
  .utility-app-shelf,
  .music-console,
  .beat-machine,
  .signal-section {
    grid-template-columns: 1fr;
  }

  .beat-harmony {
    grid-template-columns: 1fr;
  }

  .beat-harmony-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy {
    min-height: 0;
  }

  .module-board,
  .quick-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-grid {
    grid-template-columns: 1fr;
  }

  .room-computer-bay {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .room-computer-copy {
    min-height: 0;
  }

  .music-copy {
    min-height: 0;
    padding-top: 132px;
  }

  .fishbowl {
    position: absolute;
    top: 28px;
    right: 28px;
    bottom: auto;
    margin: 0;
    transform: scale(0.68);
    transform-origin: top right;
  }

  .story-prologue {
    min-height: 330px;
  }

  .featured-copy,
  .app-device {
    min-height: 0;
  }

  .utility-shelf-copy {
    min-height: 0;
  }

  .xp-console {
    grid-template-columns: 1fr;
  }

  .flylab-showcase {
    grid-template-columns: 1fr;
  }

  .xp-card-lead {
    grid-row: auto;
    min-height: 320px;
  }

}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 170px;
  }

  .poem-vault {
    place-items: stretch;
    padding: 0 18px;
  }

  .poem-focus {
    width: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: calc(env(safe-area-inset-top) + 86px) 0
      calc(env(safe-area-inset-bottom) + 104px);
    gap: 14px;
    scrollbar-width: none;
  }

  .poem-focus::-webkit-scrollbar {
    display: none;
  }

  .poem-close {
    top: calc(env(safe-area-inset-top) + 18px);
    right: 18px;
    left: auto;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    transform: none;
  }

  .poem-focus h2 {
    max-width: min(32ch, 100%);
    font-size: 0.9rem;
    line-height: 1.32;
  }

  .poem-body {
    gap: 0.5em;
    max-width: min(31ch, 100%);
    font-size: clamp(1.02rem, 4.7vw, 1.34rem);
    line-height: 1.48;
  }

  .poem-focus.is-long-poem {
    gap: 11px;
  }

  .poem-focus.is-long-poem .poem-body {
    gap: 0.26em;
    max-width: min(34ch, 100%);
    font-size: clamp(0.86rem, 3.7vw, 1.02rem);
    line-height: 1.34;
  }

  .poem-focus.is-compact-poem .poem-body {
    gap: 0.18em;
    max-width: min(37ch, 100%);
    font-size: clamp(0.74rem, 3.1vw, 0.88rem);
    line-height: 1.25;
  }

  .poem-focus.is-prose-poem .poem-body {
    max-width: min(34ch, 100%);
  }

  .poem-controls {
    gap: 24px;
    margin-top: 12px;
  }

  .poem-controls button {
    min-height: 30px;
    font-size: 0.78rem;
  }

  .poem-audio-badge {
    right: 16px;
    bottom: calc(env(safe-area-inset-bottom) + 14px);
    left: 16px;
    justify-content: center;
    max-width: none;
    gap: 10px;
    font-size: 0.68rem;
  }

  .site-header {
    align-items: stretch;
    flex-direction: column;
  }

  .logo-card,
  .nav-rail {
    width: 100%;
  }

  .site-header {
    gap: 10px;
  }

  .nav-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .nav-rail a {
    display: grid;
    min-height: 42px;
    min-width: 0;
    place-items: center;
    padding: 9px 4px;
    font-size: clamp(0.68rem, 2.45vw, 0.82rem);
    line-height: 1;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
  }

  .ticker {
    flex-wrap: wrap;
    overflow: visible;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .hero-copy {
    padding: 20px;
  }

  .lost-console {
    padding: 18px;
  }

  .lost-machine {
    min-height: 330px;
  }

  .lost-screen {
    left: 22px;
    right: 22px;
    top: 22px;
  }

  .hero-actions,
  .lost-actions,
  .button,
  .module-board,
  .quick-panels,
  .xp-card,
  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .room-computer-bay {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .room-computer-scene {
    height: 218px;
  }

  .signal-form {
    grid-template-columns: 1fr;
  }

  .utility-app-list {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .signal-section {
    padding: 18px;
  }

  .story-console {
    padding: 12px;
  }

  .story-timeline {
    grid-auto-columns: minmax(224px, 82vw);
  }

  .story-card {
    min-height: 440px;
  }

  .avatar-panel {
    grid-template-rows: minmax(360px, auto) auto;
  }

  .nameplate {
    grid-template-columns: 1fr;
  }

  .xp-card {
    min-height: 0;
  }

  .language-rack {
    display: flex;
    width: 100%;
  }

  .language-chip {
    flex: 1 1 130px;
  }

  .music-copy .button {
    width: 100%;
  }

  .beat-machine {
    gap: 14px;
  }

  .beat-grid {
    overflow-x: auto;
  }

  .beat-row {
    grid-template-columns: 56px repeat(16, 28px);
    width: max-content;
    min-width: 584px;
    gap: 5px;
  }

  .beat-step {
    width: 28px;
  }

  .beat-submit-form {
    grid-template-columns: 1fr;
  }

  .beat-submit,
  .beat-controls button {
    width: 100%;
  }

  .site-footer .site-link-strip {
    width: 100%;
  }

  .site-link-strip {
    flex-wrap: wrap;
    align-items: stretch;
    overflow-x: visible;
    padding: 8px;
  }

  .site-globe {
    width: 28px;
    height: 28px;
  }

  .site-link-kicker {
    display: flex;
    flex: 1 1 calc(100% - 44px);
    align-items: center;
    min-height: 28px;
  }

  .site-link-strip a {
    flex: 1 1 calc(50% - 6px);
    min-width: min(100%, 138px);
    min-height: 38px;
    padding: 8px 7px;
    font-size: clamp(0.66rem, 2.7vw, 0.74rem);
    line-height: 1.1;
  }

  .featured-actions,
  .featured-actions .button {
    width: 100%;
  }

  .flylab-showcase {
    padding: 12px;
  }

  .flylab-shot {
    flex-basis: min(58vw, 210px);
  }

  h2 {
    font-size: clamp(2.1rem, 11vw, 3.7rem);
  }

  .story-section .section-top h2 {
    max-width: 100%;
    font-size: clamp(2rem, 9.6vw, 3.15rem);
    overflow-wrap: break-word;
  }

  .story-prologue {
    align-content: start;
    min-height: 0;
    padding: 16px;
    background:
      linear-gradient(180deg, transparent 0 76%, rgba(242, 138, 209, 0.34) 76% 100%),
      linear-gradient(90deg, rgba(126, 181, 255, 0.2) 0 10px, transparent 10px),
      var(--ink);
  }

  .story-prologue::before {
    position: relative;
    top: auto;
    left: auto;
    width: 72px;
    height: 72px;
    margin-bottom: 6px;
    box-shadow:
      10px 10px 0 rgba(126, 181, 255, 0.74),
      20px 20px 0 rgba(242, 138, 209, 0.5);
  }

  .story-prologue .story-badge {
    max-width: 100%;
    font-size: 0.68rem;
    line-height: 1.15;
  }

  .story-prologue h3 {
    max-width: 100%;
    font-size: clamp(1.55rem, 7vw, 2.05rem);
    line-height: 1;
  }

  .chat-shell {
    --chat-base-bottom: calc(env(safe-area-inset-bottom) + 10px);
    right: calc(env(safe-area-inset-right) + 10px);
    width: auto;
    max-width: calc(100vw - 20px);
    gap: 8px;
  }

  .chat-toggle {
    min-height: 44px;
    padding: 8px 11px;
    gap: 8px;
    justify-self: end;
    border-width: 3px;
    box-shadow: 5px 5px 0 var(--blue-dark);
    font-size: 0.78rem;
  }

  .chat-pulse {
    width: 14px;
    height: 14px;
    border-width: 3px;
    box-shadow: 0 0 0 3px rgba(156, 245, 173, 0.34);
  }

  .chat-shell.is-open {
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    justify-items: stretch;
  }

  .chat-panel {
    max-height: min(680px, calc(100vh - 24px));
  }

  .chat-shell.is-over-footer .chat-panel {
    max-height: min(620px, calc(100vh - 150px));
  }
}

@media (max-width: 430px) {
  .logo-card {
    gap: 10px;
  }

  .logo-card strong {
    font-size: 0.88rem;
  }

  .logo-card small {
    font-size: 0.66rem;
  }

  .nav-rail {
    gap: 4px;
    padding: 6px;
  }

  .nav-rail a {
    border-width: 3px;
    min-height: 38px;
    font-size: clamp(0.64rem, 2.55vw, 0.74rem);
  }

  .site-link-strip a {
    flex-basis: 100%;
    justify-content: flex-start;
    padding-left: 10px;
  }

  .chat-shell {
    right: 8px;
    max-width: calc(100vw - 16px);
  }

  .chat-toggle {
    min-height: 40px;
    padding: 7px 9px;
    gap: 7px;
    font-size: 0.7rem;
  }

  .chat-pulse {
    width: 12px;
    height: 12px;
    box-shadow: 0 0 0 3px rgba(156, 245, 173, 0.28);
  }

  .footer-pigeon {
    white-space: normal;
  }

  .hero-copy,
  .lost-console,
  .lost-machine,
  .avatar-panel,
  .quick-panels article,
  .story-console,
  .module-card,
  .featured-app,
  .utility-app-shelf,
  .music-console,
  .beat-machine,
  .beat-hardware,
  .beat-grid-panel,
  .beat-harmony,
  .beat-submit-form,
  .lab-card,
  .room-computer-bay,
  .signal-section,
  .ticker {
    border-width: 3px;
    box-shadow: 5px 5px 0 var(--blue-dark);
  }

  .module-button {
    grid-template-columns: 58px 1fr;
  }

  .module-icon {
    width: 50px;
    height: 50px;
  }

  .music-copy {
    padding-top: 112px;
  }

  .fishbowl {
    top: 24px;
    right: 20px;
    transform: scale(0.58);
  }

  .beat-hardware,
  .beat-grid-panel,
  .beat-harmony,
  .beat-submit-form {
    padding: 12px;
  }

  .beat-controls,
  .beat-knobs label,
  .beat-harmony-controls {
    grid-template-columns: 1fr;
  }

  .beat-harmony-controls label:has(input[type="range"]) {
    grid-column: auto;
  }

  .beat-knobs output {
    text-align: left;
  }

  .beat-row {
    grid-template-columns: 56px repeat(16, 28px);
    min-width: 584px;
  }

  .beat-step {
    width: 28px;
  }
}

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