:root {
  --bg: #14110f;
  --panel: #1d1916;
  --ink: #f3ece4;
  --mute: #9a8f84;
  --amber: #ff8a1f;
  --amber-hot: #ffb347;
  --phos: #7dffb3;
  --danger: #ff4d3a;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  animation: grain 0.35s steps(2) infinite;
}

@keyframes grain {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-1.5%, 1%);
  }
}

.scan {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 0, 0, 0.08) 50%
  );
  background-size: 100% 3px;
  opacity: 0.35;
}

.marquee {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(243, 236, 228, 0.12);
  overflow: hidden;
  background: #0e0c0a;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 28s linear infinite;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 0.55rem 0;
  white-space: nowrap;
}

.marquee-track span {
  padding-right: 2rem;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.1rem 0;
}

.mark {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.freq {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-variant-numeric: tabular-nums;
}

.freq-label {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--mute);
}

.freq-num {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--phos);
  text-shadow: 0 0 12px rgba(125, 255, 179, 0.35);
  min-width: 4.2ch;
}

.board {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: calc(100svh - 7.5rem);
  padding: 1rem 0 3rem;
}

.copy {
  max-width: 34rem;
}

.brand {
  margin: 0 0 1.1rem;
  font-family: "Dela Gothic One", sans-serif;
  font-size: clamp(3.4rem, 11vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.02em;
}

.brand span {
  display: inline-block;
  opacity: 0;
  transform: translateY(40%) rotate(-4deg);
  animation: letter-in 0.7s var(--ease) forwards;
}

.brand span:nth-child(1) {
  animation-delay: 0.05s;
}
.brand span:nth-child(2) {
  animation-delay: 0.12s;
}
.brand span:nth-child(3) {
  animation-delay: 0.19s;
}
.brand span:nth-child(4) {
  animation-delay: 0.26s;
}
.brand span:nth-child(5) {
  animation-delay: 0.33s;
}
.brand .fm {
  margin-left: 0.2em;
  color: var(--amber);
  animation-delay: 0.42s;
}

@keyframes letter-in {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

.line {
  margin: 0 0 0.85rem;
  font-family: "Dela Gothic One", sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 400;
  line-height: 1.2;
  max-width: 12ch;
}

.lede {
  margin: 0 0 1.8rem;
  max-width: 34ch;
  color: var(--mute);
  line-height: 1.55;
  font-size: 0.95rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s var(--ease) forwards;
}

.line {
  animation-delay: 0.55s;
}
.lede {
  animation-delay: 0.68s;
}
.actions {
  animation-delay: 0.8s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.go,
.more {
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  transition: transform 0.2s var(--ease), background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.go {
  background: var(--amber);
  color: #1a1008;
  padding: 0.85rem 1.2rem;
  font-weight: 600;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 92% 100%, 0 100%);
}

.go:hover {
  background: var(--amber-hot);
  transform: translateX(3px);
}

.more {
  color: var(--ink);
  border-bottom: 1px solid rgba(243, 236, 228, 0.35);
  padding: 0.35rem 0;
}

.more:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.rack {
  background: linear-gradient(160deg, #221e1a, #161310 60%);
  border: 1px solid rgba(243, 236, 228, 0.1);
  padding: 1.25rem;
  transform: translate3d(var(--rx, 0), var(--ry, 0), 0) rotateX(var(--tilt-x, 0))
    rotateY(var(--tilt-y, 0));
  transition: transform 0.15s linear;
  transform-style: preserve-3d;
  will-change: transform;
}

.meters {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.35rem;
  height: 9.5rem;
  align-items: end;
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  background: #0c0a09;
  border: 1px solid rgba(243, 236, 228, 0.06);
}

.meter {
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.meter i {
  display: block;
  width: 100%;
  height: 20%;
  background: linear-gradient(
    to top,
    var(--phos) 0%,
    var(--amber) 55%,
    var(--danger) 92%
  );
  transform-origin: bottom;
  animation: bounce 1.1s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.11s);
  clip-path: inset(0 12% 0 12%);
}

@keyframes bounce {
  0% {
    height: 18%;
  }
  35% {
    height: 72%;
  }
  55% {
    height: 40%;
  }
  100% {
    height: 92%;
  }
}

.reel {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.spindle {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(243, 236, 228, 0.2);
  background:
    radial-gradient(circle at center, #2a2420 0 18%, transparent 19%),
    repeating-conic-gradient(
      from 0deg,
      #3a322c 0deg 8deg,
      #1a1613 8deg 16deg
    );
  animation: spin 4.5s linear infinite;
}

.spindle.right {
  animation-direction: reverse;
  animation-duration: 3.8s;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.tape {
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--amber) 15%,
    var(--ink) 50%,
    var(--amber) 85%,
    transparent
  );
  position: relative;
  overflow: hidden;
}

.tape::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transform: translateX(-100%);
  animation: tape-glint 2.4s var(--ease) infinite;
}

@keyframes tape-glint {
  to {
    transform: translateX(100%);
  }
}

.needle {
  padding: 0.25rem 0.5rem 0;
}

.needle svg {
  width: 100%;
  height: auto;
  display: block;
}

.arc {
  fill: none;
  stroke: rgba(243, 236, 228, 0.2);
  stroke-width: 2;
}

.hand {
  stroke: var(--amber);
  stroke-width: 2.5;
  stroke-linecap: round;
  transform-origin: 100px 90px;
  animation: needle-sweep 3.2s ease-in-out infinite alternate;
}

.needle circle {
  fill: var(--ink);
}

@keyframes needle-sweep {
  from {
    transform: rotate(-48deg);
  }
  to {
    transform: rotate(48deg);
  }
}

.signal {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0;
  border-top: 1px solid rgba(243, 236, 228, 0.1);
}

.signal h2 {
  margin: 0 0 0.75rem;
  font-family: "Dela Gothic One", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400;
  max-width: 18ch;
  line-height: 1.15;
}

.signal p {
  margin: 0;
  max-width: 42ch;
  color: var(--mute);
  line-height: 1.6;
}

.end {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--mute);
}

.blink {
  color: var(--danger);
  animation: blink 1.4s steps(2, end) infinite;
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

@media (max-width: 860px) {
  .board {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.5rem;
  }

  .rack {
    order: -1;
    max-width: 28rem;
  }

  .meters {
    height: 7rem;
  }
}

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

  .brand span,
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
