:root {
  color-scheme: dark;
  --ink: #f1efe6;
  --muted: #b9b8ad;
  --soft: #85887f;
  --night: #101414;
  --ridge: #1b2726;
  --ridge-deep: #121b1b;
  --copper: #d8a85f;
  --mint: #8fd7c2;
  --ember: #f1c27b;
  --red: #e68174;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% 18%, rgba(143, 215, 194, 0.12), transparent 27rem),
    radial-gradient(circle at 12% 88%, rgba(216, 168, 95, 0.1), transparent 22rem),
    linear-gradient(180deg, #0d1114 0%, #111716 48%, #0d1110 100%);
  color: var(--ink);
}

.sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.station {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.scene {
  position: relative;
  min-height: 620px;
  isolation: isolate;
}

.moon {
  position: absolute;
  top: 8%;
  left: 20%;
  width: 88px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 34%, rgba(255, 255, 255, 0.9), transparent 0.3rem),
    radial-gradient(circle at 63% 55%, rgba(29, 38, 39, 0.18), transparent 0.55rem),
    #dfded0;
  box-shadow: 0 0 42px rgba(223, 222, 208, 0.18);
  opacity: 0.82;
  animation: moonDrift 12s ease-in-out infinite;
}

.ridge {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 110%;
  height: 42%;
  transform: translateX(-50%);
  clip-path: polygon(0 80%, 9% 62%, 18% 68%, 29% 41%, 39% 57%, 52% 31%, 66% 56%, 77% 43%, 88% 67%, 100% 51%, 100% 100%, 0 100%);
}

.ridge-back {
  bottom: 32px;
  background: linear-gradient(180deg, rgba(31, 48, 47, 0.72), rgba(18, 27, 27, 0.96));
  opacity: 0.72;
}

.ridge-front {
  background: linear-gradient(180deg, var(--ridge), var(--ridge-deep));
}

.mast {
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: min(360px, 70vw);
  height: 520px;
  transform: translateX(-50%);
}

.beacon {
  position: absolute;
  top: 42px;
  left: 50%;
  width: 18px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 18px rgba(241, 194, 123, 0.95), 0 0 50px rgba(241, 194, 123, 0.38);
  animation: beaconPulse 4.8s ease-in-out infinite;
}

.signal-ring {
  position: absolute;
  top: 51px;
  left: 50%;
  width: 42px;
  aspect-ratio: 1;
  border: 1px solid rgba(143, 215, 194, 0.36);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  animation: signal 6s ease-out infinite;
}

.ring-two {
  animation-delay: 2s;
}

.ring-three {
  animation-delay: 4s;
}

.antenna {
  position: absolute;
  top: 62px;
  left: 50%;
  width: 118px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(241, 239, 230, 0.72), transparent);
  transform-origin: center;
}

.antenna-left {
  transform: translateX(-50%) rotate(-28deg);
}

.antenna-right {
  transform: translateX(-50%) rotate(28deg);
}

.tower {
  position: absolute;
  top: 72px;
  left: 50%;
  width: 92px;
  height: 318px;
  transform: translateX(-50%);
  background:
    linear-gradient(72deg, transparent 47%, rgba(241, 239, 230, 0.35) 48%, rgba(241, 239, 230, 0.35) 52%, transparent 53%) 0 0 / 46px 54px,
    linear-gradient(108deg, transparent 47%, rgba(241, 239, 230, 0.28) 48%, rgba(241, 239, 230, 0.28) 52%, transparent 53%) 0 0 / 46px 54px;
}

.tower::before,
.tower::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(241, 239, 230, 0.78), rgba(185, 184, 173, 0.22));
}

.tower::before {
  left: 14px;
  transform: skewX(-7deg);
}

.tower::after {
  right: 14px;
  transform: skewX(7deg);
}

.tower span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: rgba(241, 239, 230, 0.28);
}

.tower span:nth-child(1) { top: 22%; }
.tower span:nth-child(2) { top: 48%; }
.tower span:nth-child(3) { top: 74%; }

.cabin {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 224px;
  height: 132px;
  transform: translateX(-50%);
  border: 1px solid rgba(241, 239, 230, 0.2);
  border-radius: 6px 6px 3px 3px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 48%),
    linear-gradient(135deg, #273432, #172120);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.cabin::before {
  content: "";
  position: absolute;
  left: -16px;
  right: -16px;
  top: -22px;
  height: 28px;
  clip-path: polygon(8% 100%, 22% 0, 78% 0, 92% 100%);
  background: linear-gradient(180deg, #334340, #1c2928);
  border-radius: 4px 4px 0 0;
}

.window-grid {
  position: absolute;
  left: 26px;
  top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 24px);
  gap: 8px;
}

.window-grid i {
  width: 24px;
  height: 18px;
  border-radius: 2px;
  background: rgba(143, 215, 194, 0.16);
  box-shadow: inset 0 0 0 1px rgba(143, 215, 194, 0.18);
  animation: windowWake 8s ease-in-out infinite;
}

.window-grid i:nth-child(2) { animation-delay: -1.7s; }
.window-grid i:nth-child(3) { animation-delay: -4.2s; }
.window-grid i:nth-child(4) { animation-delay: -2.6s; }
.window-grid i:nth-child(5) { animation-delay: -6.2s; }
.window-grid i:nth-child(6) { animation-delay: -3.4s; }

.door {
  position: absolute;
  right: 28px;
  bottom: 0;
  width: 42px;
  height: 78px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #151d1d, #0d1313);
}

.door::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 38px;
  width: 5px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 10px rgba(241, 194, 123, 0.7);
}

.status-lights {
  position: absolute;
  left: 29px;
  bottom: 22px;
  display: flex;
  gap: 9px;
}

.status-lights b {
  display: block;
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(143, 215, 194, 0.65);
  animation: lightTick 5.5s steps(1, end) infinite;
}

.status-lights b:nth-child(2) {
  background: var(--ember);
  animation-delay: -1.2s;
}

.status-lights b:nth-child(3) {
  background: var(--red);
  animation-delay: -2.4s;
}

.status-lights b:nth-child(4) {
  animation-delay: -3.7s;
}

.cable {
  position: absolute;
  width: 44%;
  height: 160px;
  bottom: 185px;
  border-top: 1px solid rgba(241, 239, 230, 0.16);
  border-radius: 50% 50% 0 0;
  opacity: 0.7;
}

.cable-one {
  left: 0;
  transform: rotate(-5deg);
}

.cable-two {
  right: 0;
  transform: rotate(5deg);
}

.ground-glow {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 360px;
  height: 80px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(143, 215, 194, 0.18), transparent 68%);
  filter: blur(8px);
  animation: groundBreath 7s ease-in-out infinite;
}

.copy {
  align-self: center;
  max-width: 470px;
  transform: translateY(-8px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--copper);
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 10vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-wrap: balance;
}

.tagline {
  margin: 24px 0 0;
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.5;
}

.whisper {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.ticker {
  position: fixed;
  z-index: 2;
  left: 50%;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: rgba(241, 239, 230, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker i {
  width: 4px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(143, 215, 194, 0.58);
  animation: tickerPulse 2.8s ease-in-out infinite;
}

.ticker i:nth-child(4) { animation-delay: -0.9s; }
.ticker i:nth-child(6) { animation-delay: -1.8s; }

@keyframes signal {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  12% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(8.8);
  }
}

@keyframes beaconPulse {
  0%, 100% {
    opacity: 0.78;
    transform: translateX(-50%) scale(0.86);
  }
  48% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes windowWake {
  0%, 64%, 100% {
    background: rgba(143, 215, 194, 0.14);
  }
  18%, 42% {
    background: rgba(241, 194, 123, 0.58);
    box-shadow: 0 0 18px rgba(241, 194, 123, 0.22), inset 0 0 0 1px rgba(241, 194, 123, 0.22);
  }
}

@keyframes lightTick {
  0%, 26%, 100% { opacity: 0.38; }
  27%, 52% { opacity: 1; }
}

@keyframes moonDrift {
  0%, 100% { transform: translate3d(-4px, 0, 0); }
  50% { transform: translate3d(7px, -5px, 0); }
}

@keyframes groundBreath {
  0%, 100% { opacity: 0.52; transform: translateX(-50%) scaleX(0.92); }
  50% { opacity: 0.86; transform: translateX(-50%) scaleX(1.08); }
}

@keyframes tickerPulse {
  0%, 100% { opacity: 0.28; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 820px) {
  body {
    overflow: auto;
  }

  .station {
    grid-template-columns: 1fr;
    min-height: 100svh;
    gap: 0;
    padding: 34px 0 86px;
  }

  .scene {
    min-height: 55svh;
    order: 2;
  }

  .copy {
    order: 1;
    max-width: 620px;
    padding-top: 24px;
  }

  .mast {
    height: 440px;
    width: min(330px, 82vw);
  }

  .tower {
    height: 255px;
  }

  .cabin {
    width: 208px;
  }
}

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

