:root {
  --ink: #071018;
  --navy: #0d2137;
  --sky: #1a3a5c;
  --mist: #dce8f2;
  --paper: #f4f7fa;
  --mute: #5c6f82;
  --signal: #e07a2f;
  --signal-bright: #f0a04b;
  --line: rgba(13, 33, 55, 0.12);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--signal);
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Header */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  color: var(--mist);
}

.mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.mark:hover {
  color: var(--signal-bright);
}

.nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.85;
}

.nav a:hover {
  opacity: 1;
  color: var(--signal-bright);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--mist);
  background: var(--navy);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.wave-field {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.waves .wave {
  animation: wave-drift 14s ease-in-out infinite;
}

.waves .w2 {
  animation-duration: 18s;
  animation-delay: -3s;
  stroke-opacity: 0.32;
}

.waves .w3 {
  animation-duration: 22s;
  animation-delay: -7s;
  stroke-opacity: 0.22;
}

.waves .w4 {
  animation-duration: 26s;
  animation-delay: -11s;
  stroke-opacity: 0.14;
}

.antenna {
  animation: antenna-breathe 6s ease-in-out infinite;
  transform-origin: 1120px 780px;
}

@keyframes wave-drift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(28px);
  }
}

@keyframes antenna-breathe {
  0%,
  100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(6rem, 14vh, 9rem) clamp(1.25rem, 4vw, 3rem)
    clamp(3rem, 8vh, 5rem);
}

.hero-freq {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(220, 232, 242, 0.72);
  opacity: 0;
  animation: rise 0.9s ease 0.15s forwards;
}

.freq-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--signal-bright);
  box-shadow: 0 0 0 0 rgba(240, 160, 75, 0.55);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(240, 160, 75, 0.5);
  }
  70% {
    box-shadow: 0 0 0 0.65rem rgba(240, 160, 75, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(240, 160, 75, 0);
  }
}

.callsign {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 14vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-wrap: balance;
  opacity: 0;
  animation: rise 1s ease 0.28s forwards;
}

.hero-lead {
  max-width: 28rem;
  margin: 1.35rem 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 400;
  color: rgba(220, 232, 242, 0.88);
  opacity: 0;
  animation: rise 1s ease 0.45s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
  opacity: 0;
  animation: rise 1s ease 0.6s forwards;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--signal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--signal-bright);
  color: var(--ink);
}

.btn-ghost {
  border-color: rgba(220, 232, 242, 0.35);
  color: var(--mist);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--signal-bright);
  color: var(--signal-bright);
}

/* Sections */

.section {
  padding: clamp(4rem, 10vh, 7rem) clamp(1.25rem, 4vw, 3rem);
}

.section-inner {
  width: min(100%, 40rem);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section.is-visible .section-inner {
  opacity: 1;
  transform: translateY(0);
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-lead {
  margin: 1rem 0 0;
  font-size: 1.1rem;
  color: var(--mute);
}

.section-inner--wide {
  width: min(100%, 44rem);
}

.about {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.repeater {
  background:
    linear-gradient(180deg, #0a1a2c 0%, var(--navy) 100%);
  color: var(--mist);
  border-bottom: 1px solid rgba(220, 232, 242, 0.08);
}

.repeater .section-lead {
  color: rgba(220, 232, 242, 0.75);
}

.repeater .interest-label {
  color: rgba(220, 232, 242, 0.55);
}

.repeater .interest-value {
  color: var(--mist);
}

.repeater .interest-list {
  border-top-color: rgba(220, 232, 242, 0.12);
}

.repeater .interest-list li {
  border-bottom-color: rgba(220, 232, 242, 0.12);
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(220, 232, 242, 0.65);
}

.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #5ecf8a;
  box-shadow: 0 0 0 0 rgba(94, 207, 138, 0.55);
  animation: on-air-pulse 2.6s ease-out infinite;
}

@keyframes on-air-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(94, 207, 138, 0.5);
  }
  70% {
    box-shadow: 0 0 0 0.65rem rgba(94, 207, 138, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(94, 207, 138, 0);
  }
}

.subsection-heading {
  margin: 2.75rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-note {
  margin: 1.75rem 0 0;
  font-size: 0.98rem;
  color: rgba(220, 232, 242, 0.65);
}

.section-note a {
  color: var(--signal-bright);
  text-decoration: none;
}

.section-note a:hover {
  text-decoration: underline;
}

.station {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(224, 122, 47, 0.08), transparent 55%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.links {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.link-list {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.link-list li {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.link-list a {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}

.link-list a:hover {
  color: var(--signal);
}

.interest-list {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.interest-list li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.interest-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.interest-value {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
}

.contact {
  background: var(--navy);
  color: var(--mist);
}

.contact .section-lead {
  color: rgba(220, 232, 242, 0.75);
}

.contact-line {
  margin: 2rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 500;
}

.contact-line a {
  color: var(--signal-bright);
  text-decoration: none;
}

.contact-line a:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  background: var(--ink);
  color: rgba(220, 232, 242, 0.55);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.footer-call {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--mist);
}

.footer-sep {
  margin: 0 0.45rem;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .waves .wave,
  .antenna,
  .freq-dot,
  .status-dot,
  .hero-freq,
  .callsign,
  .hero-lead,
  .hero-actions {
    animation: none;
  }

  .hero-freq,
  .callsign,
  .hero-lead,
  .hero-actions,
  .section-inner {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 1rem;
    flex-wrap: wrap;
  }

  .nav {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav a {
    font-size: 0.82rem;
  }

  .interest-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
