* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: #fff;
  background: #000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  isolation: isolate;
}

a { color: #77aaff; }
a:hover { color: #fff; }

.star {
  position: absolute;
  display: block;
  background: #fff;
}

#stars {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.earth-scene {
  position: fixed;
  z-index: 1;
  top: 50vh;
  top: 50svh;
  left: 50%;
  width: min(112vw, 1260px);
  aspect-ratio: 1;
  margin: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

#earth {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.page {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 34px));
  margin: 0 auto;
  padding-bottom: 36px;
}

.site-header {
  padding: 25px 0 17px;
  border-bottom: 1px solid #fff;
}

.site-name {
  margin: 0;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -2px;
  text-shadow: 2px 2px 0 #000;
}

main { padding-top: 25px; }

.intro {
  width: 315px;
  max-width: 52%;
  min-height: 285px;
  padding: 8px 0 20px;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  text-shadow: 2px 2px 2px #000;
}

.intro p { margin: 0 0 16px; }

.services,.contact {
  margin-top: 28px;
  padding-top: 11px;
  border-top: 1px solid #fff;
  text-shadow: 2px 2px 2px #000;
}

h2 {
  margin: 0 0 13px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  line-height: 1;
}

.service-list { width: 390px; max-width: 68%; }

.service {
  display: grid;
  grid-template-columns: 37px 1fr;
  gap: 8px;
  padding: 9px 0 10px;
  border-top: 1px solid #cbd4dc;
}

.service-number { color: #d3d9de; font-size: 12px; }
.service h3 { margin: 0 0 3px; font-size: 15px; }
.service p { margin: 0; font-size: 13px; }

.contact { width: 315px; max-width: 58%; }
.contact p { margin: 0 0 8px; font-size: 14px; font-weight: bold; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 55px;
  padding-top: 8px;
  border-top: 1px solid #fff;
  color: #fff;
  font-size: 10px;
  text-shadow: 1px 1px 1px #000;
}

@media (max-width: 680px) {
  .page { width: calc(100% - 28px); }
  .site-header { padding-top: 20px; }
  .earth-scene { width: 154vw; top: 47vh; top: 47svh; }
  .intro { width: 285px; max-width: 82%; min-height: 360px; }
  .service-list { width: 350px; max-width: 88%; }
  .contact { width: 290px; max-width: 86%; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 4px; margin-top: 42px; }
}

@media (max-width: 400px) {
  .site-name { font-size: 31px; letter-spacing: -1.5px; }
  .intro { font-size: 14px; }
  .service h3 { font-size: 14px; }
  .service p { font-size: 12px; }
}

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