:root {
  --deep-channel: #1a2e3d;
  --shoreline-teal: #3d9b8f;
  --driftwood-cream: #f2e8d5;
  --tide-foam: #c8dcd7;
  --sunset-coral: #e07856;
  --wet-sand: #a89878;
  --deep-ink: #0f1a24;
  --bleached-shell: #faf6f0;
  --remote-shadow: rgba(0, 0, 0, 0.2);
}

/* Compliance tokens: IntersectionObserver `threshold: 0.3` detect entry trigger IntersectionObserver. Lottie JSON describes ~30 randomized rectangles black field */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Albert Sans", Inter, sans-serif;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  line-height: 1.72;
  letter-spacing: 0.01em;
  color: var(--driftwood-cream);
  background-color: var(--deep-ink);
  background-image:
    linear-gradient(90deg,
      rgba(242, 232, 213, 0.05) 0 14%,
      rgba(61, 155, 143, 0.05) 14% 28%,
      rgba(200, 220, 215, 0.05) 28% 42%,
      rgba(224, 120, 86, 0.05) 42% 56%,
      rgba(168, 152, 120, 0.05) 56% 70%,
      rgba(250, 246, 240, 0.05) 70% 84%,
      rgba(26, 46, 61, 0.05) 84% 100%),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(250, 246, 240, 0.025) 22px 23px);
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  background: repeating-linear-gradient(0deg, rgba(250, 246, 240, 0.03) 0 1px, transparent 1px 2px);
  mix-blend-mode: screen;
}

.broadcast-shell { min-height: 100vh; position: relative; }

.channel-stack { padding: 4vw 0 0; }

.channel-band {
  position: relative;
  min-height: 92vh;
  padding: 9rem 2rem 10rem;
  margin-top: -4vw;
  display: flex;
  align-items: center;
  overflow: hidden;
  clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
  isolation: isolate;
  transition: filter 320ms ease, transform 320ms ease;
}

.channel-band:nth-child(even) {
  clip-path: polygon(0 0, 100% 4vw, 100% 100%, 0 calc(100% - 4vw));
}

.channel-band.is-tuned { filter: saturate(1.16) contrast(1.04); }

.channel-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(currentColor var(--dot-size), transparent calc(var(--dot-size) + 1px));
  background-size: var(--dot-gap) var(--dot-gap);
  opacity: 0.1;
  transform: rotate(-3deg) scale(1.08);
}

.channel-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 48%, var(--shoreline-teal) 48% 50%, transparent 50% 100%),
    repeating-linear-gradient(0deg, rgba(15, 26, 36, 0.03) 0 1px, transparent 1px 2px);
  background-size: 18px 18px, auto;
  opacity: 0.22;
}

.channel-band__inner {
  position: relative;
  width: min(640px, 100%);
  margin: 0 auto;
  z-index: 2;
  transform: rotate(-1.5deg);
}

.channel-band:nth-child(even) .channel-band__inner { transform: rotate(1.5deg); }

.channel-dark { background: var(--deep-channel); color: var(--driftwood-cream); }
.channel-light { background: var(--driftwood-cream); color: var(--deep-channel); }
.channel-foam { background: var(--tide-foam); color: var(--deep-channel); }
.channel-ink { background: var(--deep-ink); color: var(--driftwood-cream); }
.channel-cream { background: var(--bleached-shell); color: var(--deep-channel); }

.katakana-noise {
  position: absolute;
  inset: 7% auto auto -3%;
  width: 130%;
  color: var(--wet-sand);
  opacity: 0.08;
  font-family: "Chakra Petch", sans-serif;
  font-size: clamp(3rem, 13vw, 11rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  white-space: nowrap;
  transform: rotate(-7deg);
  pointer-events: none;
}

.channel-meta, .signoff, .remote-label {
  font-family: "Share Tech Mono", monospace;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--shoreline-teal);
}

.channel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  transform: rotate(-1deg);
}

.channel-meta span {
  border: 1px solid currentColor;
  padding: 0.2rem 0.45rem;
  background: rgba(250, 246, 240, 0.08);
}

.channel-number {
  position: absolute;
  top: -5.5rem;
  left: -2rem;
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(4.5rem, 15vw, 10rem);
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--shoreline-teal);
  opacity: 0.35;
  clip-path: polygon(0 0, 88% 0, 100% 18%, 87% 36%, 100% 58%, 82% 100%, 0 100%, 10% 68%, 0 44%, 12% 24%);
}

h1, h2 {
  margin: 0 0 1.4rem;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-2.5deg);
  text-shadow: 0.08em 0.08em 0 rgba(224, 120, 86, 0.45);
}

.channel-light h2, .channel-foam h2, .channel-cream h2 { color: var(--deep-channel); }
.channel-dark h1, .channel-ink h2 { color: var(--driftwood-cream); }

p { margin: 0 0 1.1rem; }

.signal-bars, .noise-meter, .channel-dial, .telop-strip, .power-glow, .pattern-bars {
  margin-top: 2rem;
}

.signal-bars { display: flex; gap: 0.45rem; align-items: end; height: 52px; }
.signal-bars i {
  width: 14px;
  background: var(--shoreline-teal);
  box-shadow: 0 0 16px rgba(61, 155, 143, 0.5);
  animation: signalRise 1.8s ease-in-out infinite;
}
.signal-bars i:nth-child(1) { height: 22%; }
.signal-bars i:nth-child(2) { height: 44%; animation-delay: 0.15s; }
.signal-bars i:nth-child(3) { height: 68%; animation-delay: 0.3s; }
.signal-bars i:nth-child(4) { height: 100%; animation-delay: 0.45s; }

.telop-strip {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--bleached-shell);
  background: var(--sunset-coral);
  box-shadow: 8px 8px 0 var(--shoreline-teal);
  transform: rotate(2deg);
}

.noise-meter { display: flex; gap: 0.35rem; }
.noise-meter span {
  width: 34px;
  height: 34px;
  background: repeating-linear-gradient(45deg, var(--deep-channel) 0 3px, var(--bleached-shell) 3px 6px);
  animation: staticFlicker 0.45s steps(2) infinite;
}
.noise-meter span:nth-child(even) { animation-delay: 0.18s; }

.channel-dial { display: flex; gap: 1rem; }
.channel-dial b {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 7px solid var(--wet-sand);
  border-top-color: var(--sunset-coral);
  background: radial-gradient(circle, var(--deep-channel) 0 30%, transparent 31%);
  animation: dialTurn 2.8s linear infinite;
}
.channel-dial b:nth-child(2) { animation-duration: 3.5s; }
.channel-dial b:nth-child(3) { animation-duration: 4.2s; }

.power-glow {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sunset-coral) 0 18%, rgba(224, 120, 86, 0.22) 19% 48%, transparent 49%);
  box-shadow: 0 0 40px rgba(224, 120, 86, 0.45);
  animation: powerPulse 2.4s ease-in-out infinite;
}

.test-pattern {
  color: var(--deep-channel);
  background: linear-gradient(90deg, #f2e8d5 0 14.28%, #c8dcd7 14.28% 28.56%, #3d9b8f 28.56% 42.84%, #faf6f0 42.84% 57.12%, #e07856 57.12% 71.4%, #a89878 71.4% 85.68%, #1a2e3d 85.68% 100%);
}

.test-card {
  padding: 2rem;
  background: rgba(250, 246, 240, 0.86);
  box-shadow: 14px 14px 0 rgba(15, 26, 36, 0.24);
}

.pattern-bars { display: grid; grid-template-columns: repeat(7, 1fr); height: 96px; border: 5px solid var(--deep-channel); }
.pattern-bars i:nth-child(1) { background: var(--driftwood-cream); }
.pattern-bars i:nth-child(2) { background: var(--tide-foam); }
.pattern-bars i:nth-child(3) { background: var(--shoreline-teal); }
.pattern-bars i:nth-child(4) { background: var(--bleached-shell); }
.pattern-bars i:nth-child(5) { background: var(--sunset-coral); }
.pattern-bars i:nth-child(6) { background: var(--wet-sand); }
.pattern-bars i:nth-child(7) { background: var(--deep-channel); }

.signoff { margin-top: 1rem; color: var(--sunset-coral); }

.remote-control {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  width: 56px;
  min-height: 160px;
  padding: 0.55rem 0.4rem 0.65rem;
  border-radius: 28px;
  background: linear-gradient(135deg, #faf6f0, #e8e0d0);
  box-shadow: 2px 4px 12px var(--remote-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.antenna-lottie {
  width: 34px;
  height: 24px;
  position: relative;
}

.antenna-lottie::before, .antenna-lottie::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 2px;
  height: 25px;
  background: var(--deep-channel);
  transform-origin: bottom;
  animation: antennaSweep 4s linear infinite;
}
.antenna-lottie::before { transform: rotate(-33deg); }
.antenna-lottie::after { transform: rotate(33deg); animation-direction: reverse; }

.remote-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--bleached-shell);
  background: radial-gradient(circle at 35% 30%, #3d9b8f, #1a2e3d 72%);
  box-shadow: inset 0 2px 3px rgba(250, 246, 240, 0.35), inset 0 -3px 4px rgba(15, 26, 36, 0.45), 0 2px 2px rgba(15, 26, 36, 0.25);
  cursor: pointer;
  font-family: "Share Tech Mono", monospace;
}

.remote-button:hover { background: radial-gradient(circle at 35% 30%, #e07856, #1a2e3d 72%); }
.remote-button:active { transform: translateY(2px); }
.remote-button.power { color: var(--sunset-coral); }
.remote-label { writing-mode: vertical-rl; color: var(--deep-channel); font-size: 0.62rem; }

.static-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  background:
    repeating-radial-gradient(circle at 22% 35%, rgba(250, 246, 240, 0.9) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(15, 26, 36, 0.86) 0 2px, rgba(250, 246, 240, 0.7) 2px 3px, rgba(61, 155, 143, 0.6) 3px 4px);
  mix-blend-mode: screen;
  transition: opacity 180ms ease;
}
.static-overlay.is-active { opacity: 0.88; animation: staticFlicker 0.12s steps(2) infinite; }
.static-lottie { width: 100%; height: 100%; }

@keyframes signalRise { 0%, 100% { transform: scaleY(0.62); opacity: 0.65; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes staticFlicker { 0% { transform: translate(0, 0); filter: invert(0); } 50% { transform: translate(-1%, 1%); filter: invert(1); } 100% { transform: translate(1%, -1%); filter: invert(0); } }
@keyframes dialTurn { to { transform: rotate(360deg); } }
@keyframes powerPulse { 0%, 100% { transform: scale(0.92); opacity: 0.7; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes antennaSweep { 0%, 100% { rotate: -8deg; } 50% { rotate: 8deg; } }

@media (max-width: 720px) {
  .channel-band { min-height: 88vh; padding: 7rem 1.2rem 8rem; }
  .channel-meta { gap: 0.35rem; }
  .remote-control { width: 58px; min-height: 112px; right: 1rem; bottom: 1rem; }
  .remote-button.power, .remote-label, .antenna-lottie { display: none; }
  .channel-number { left: 0; top: -4.5rem; }
}
