:root {
  color-scheme: dark;
  --ink: #e8e8df;
  --muted: #858b82;
  --signal: #95e900;
  --signal-soft: rgba(149, 233, 0, 0.18);
  --black: #050706;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 55% 44%, rgba(30, 43, 27, 0.25), transparent 38rem),
    linear-gradient(112deg, #030504, #090c09 52%, #030403);
  font-family: "Courier New", Courier, ui-monospace, monospace;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  content: "";
  opacity: 0.1;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(195, 255, 174, 0.14) 3px,
    transparent 4px
  );
}

button {
  font: inherit;
}

.noise {
  position: fixed;
  inset: -30%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.19;
  background-image:
    repeating-radial-gradient(circle at 17% 32%, transparent 0 1px, rgba(255, 255, 255, 0.18) 1px 2px),
    repeating-radial-gradient(circle at 81% 67%, transparent 0 2px, rgba(255, 255, 255, 0.1) 2px 3px);
  background-size: 9px 11px, 13px 17px;
  mix-blend-mode: soft-light;
  animation: grain 0.28s steps(2) infinite;
}

.site-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  min-height: 100svh;
  padding: clamp(1.35rem, 2.2vw, 2.25rem);
}

.status-bar,
footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: clamp(0.6rem, 0.78vw, 0.76rem);
  letter-spacing: 0.14em;
}

.status-bar {
  padding-bottom: 1.45rem;
  border-bottom: 1px solid rgba(232, 232, 223, 0.12);
}

.status-bar span:last-child,
footer p:last-child {
  text-align: right;
}

.hero {
  align-self: center;
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: clamp(4rem, 13vh, 9rem) clamp(1rem, 4.5vw, 4.7rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--signal);
  font-size: clamp(0.62rem, 0.86vw, 0.8rem);
  letter-spacing: 0.2em;
}

.wordmark-wrap {
  position: relative;
  width: fit-content;
  max-width: 100%;
}

h1 {
  position: relative;
  z-index: 1;
  display: flex;
  width: fit-content;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(5.6rem, 15.3vw, 13.8rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.075em;
  white-space: nowrap;
  text-transform: uppercase;
}

.eko {
  color: #eeeee6;
}

.fro {
  color: rgba(255, 255, 255, 0.008);
  -webkit-text-stroke: clamp(1px, 0.13vw, 2px) #dfdfd7;
  paint-order: stroke fill;
}

.signal-path {
  position: absolute;
  z-index: 2;
  top: 52%;
  left: 50.8%;
  display: flex;
  align-items: center;
  width: 58%;
  transform: translateY(-50%);
  pointer-events: none;
}

.signal-line {
  flex: 1;
  height: clamp(0.85rem, 1.9vw, 1.75rem);
  background: var(--signal);
  clip-path: polygon(0 18%, 75% 5%, 75% 0, 79% 0, 79% 12%, 100% 18%, 100% 82%, 79% 88%, 79% 100%, 75% 100%, 75% 95%, 0 82%);
}

.signal-block {
  width: clamp(0.9rem, 1.8vw, 1.55rem);
  height: clamp(0.9rem, 1.8vw, 1.55rem);
  margin-left: clamp(0.7rem, 1vw, 1rem);
  background: var(--signal);
}

.signal-ring {
  margin-left: clamp(0.35rem, 0.7vw, 0.7rem);
  color: var(--signal);
  font-size: clamp(3.3rem, 6.3vw, 5.7rem);
  font-weight: 400;
  line-height: 0.5;
  text-shadow: 0 0 1rem var(--signal-soft);
  animation: pulse-ring 2.3s ease-in-out infinite;
}

.credits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: clamp(2.2rem, 3.5vw, 3rem);
  color: #a4a89f;
  font-size: clamp(0.62rem, 0.86vw, 0.78rem);
  letter-spacing: 0.16em;
}

.credits i {
  color: #51564f;
  font-style: normal;
}

.credits del {
  position: relative;
  color: #9da198;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 1px;
}

.transmission-row {
  display: grid;
  grid-template-columns: minmax(13rem, 0.62fr) minmax(23rem, 1fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: center;
  margin-top: clamp(4.1rem, 7vw, 6rem);
}

.signal-button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid rgba(149, 233, 0, 0.55);
  color: var(--signal);
  background: rgba(7, 12, 7, 0.58);
  cursor: pointer;
  font-size: clamp(0.62rem, 0.8vw, 0.74rem);
  letter-spacing: 0.18em;
  text-align: left;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0.6rem var(--signal);
}

.button-arrow {
  transition: transform 180ms ease;
}

.signal-button:hover,
.signal-button:focus-visible,
.signal-button[aria-expanded="true"] {
  color: #071005;
  background: var(--signal);
  box-shadow: 0 0 1.5rem var(--signal-soft);
  outline: none;
}

.signal-button[aria-expanded="true"] .button-arrow {
  transform: rotate(90deg);
}

.signal-button:focus-visible {
  outline: 2px solid #efefe7;
  outline-offset: 4px;
}

.signal-button:hover .button-dot,
.signal-button:focus-visible .button-dot,
.signal-button[aria-expanded="true"] .button-dot {
  background: #1c2814;
  box-shadow: none;
}

.transmission {
  min-height: 10.8rem;
  padding: 1.2rem 1.45rem;
  border: 1px solid rgba(232, 232, 223, 0.15);
  background: rgba(4, 7, 5, 0.54);
  box-shadow: inset 0 0 3rem rgba(149, 233, 0, 0.025);
  animation: tune-in 320ms steps(4, end) both;
}

.transmission-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--signal);
  font-size: clamp(0.5rem, 0.65vw, 0.62rem);
  letter-spacing: 0.16em;
}

.message {
  margin: 1.2rem 0 0;
  color: #e8e8df;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  letter-spacing: 0.08em;
}

.message.korean {
  margin-top: 0.55rem;
  color: #aeb2a9;
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: clamp(0.82rem, 1.12vw, 1.06rem);
  font-weight: 400;
}

.waveform {
  display: flex;
  align-items: center;
  gap: clamp(0.18rem, 0.34vw, 0.36rem);
  height: 2rem;
  margin-top: 1.1rem;
}

.waveform i {
  flex: 1;
  height: 24%;
  background: var(--signal);
  opacity: 0.82;
  transform-origin: center;
  animation: waveform 1.7s ease-in-out infinite alternate;
}

.waveform i:nth-child(3n) { height: 58%; }
.waveform i:nth-child(4n) { height: 88%; }
.waveform i:nth-child(5n) { height: 42%; }
.waveform i:nth-child(7n) { height: 72%; }
.waveform i:nth-child(2n) { animation-delay: -0.45s; }
.waveform i:nth-child(5n) { animation-delay: -0.8s; }

footer {
  padding-top: 1.45rem;
  border-top: 1px solid rgba(232, 232, 223, 0.14);
}

footer p {
  margin: 0;
}

footer p:first-child {
  grid-column: 1 / 2;
  color: #b3b6ae;
}

footer p:last-child {
  grid-column: 2 / 4;
}

@keyframes grain {
  0% { transform: translate3d(-2%, -1%, 0); }
  25% { transform: translate3d(1%, 2%, 0); }
  50% { transform: translate3d(2%, -2%, 0); }
  75% { transform: translate3d(-1%, 1%, 0); }
  100% { transform: translate3d(2%, 1%, 0); }
}

@keyframes pulse-ring {
  0%, 100% { opacity: 0.42; transform: scale(0.9); }
  52% { opacity: 1; transform: scale(1); }
}

@keyframes tune-in {
  from { opacity: 0; transform: translateX(-0.7rem); filter: blur(2px); }
  to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

@keyframes waveform {
  from { transform: scaleY(0.68); opacity: 0.58; }
  to { transform: scaleY(1); opacity: 0.94; }
}

@media (max-width: 760px) {
  .site-shell {
    padding: 1rem;
  }

  .status-bar {
    grid-template-columns: 1fr auto;
  }

  .status-bar span:nth-child(2) {
    display: none;
  }

  .hero {
    padding: 5rem 0 4rem;
  }

  h1 {
    font-size: clamp(5rem, 24.5vw, 8.5rem);
  }

  .signal-path {
    left: 50%;
    width: 57%;
  }

  .credits {
    gap: 0.55rem;
    max-width: 21rem;
    line-height: 1.6;
  }

  .transmission-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 4rem;
  }

  .signal-button {
    max-width: 20rem;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  footer p:first-child,
  footer p:last-child {
    grid-column: 1;
    text-align: left;
  }
}

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