:root {
  --bg: #2d2e43;
  --bg-deep: #1e2032;
  --line: rgba(226, 228, 233, 0.18);
  --line-strong: rgba(240, 242, 246, 0.42);
  --text: #f6f8fb;
  --muted: rgba(228, 232, 240, 0.78);
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 30px 80px rgba(7, 10, 18, 0.38);
  --node: #f0f1f4;
  --node-soft: rgba(240, 241, 244, 0.16);
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 14%, rgba(98, 101, 137, 0.18), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(109, 112, 148, 0.14), transparent 26%),
    radial-gradient(circle at 50% 54%, rgba(255, 255, 255, 0.04), transparent 40%),
    linear-gradient(145deg, var(--bg-deep), var(--bg));
  color: var(--text);
  font-family: "Inter", sans-serif;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.texture,
.noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.texture-primary {
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 2px,
      transparent 2px,
      transparent 6px
    );
  mix-blend-mode: soft-light;
  opacity: 0.42;
}

.texture-secondary {
  background:
    radial-gradient(circle at 22% 34%, rgba(255, 255, 255, 0.06), transparent 18%),
    radial-gradient(circle at 72% 62%, rgba(178, 184, 210, 0.08), transparent 20%);
  opacity: 0.34;
}

.noise {
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.14) 0.6px, transparent 1px),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.09) 0.7px, transparent 1px),
    radial-gradient(circle at 50% 70%, rgba(0, 0, 0, 0.14) 0.7px, transparent 1.1px);
  background-size: 14px 14px, 18px 18px, 12px 12px;
}

.map-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1080px, 100%);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(14, 24, 38, 0.82), rgba(18, 31, 47, 0.56));
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 1.25rem;
  align-items: end;
}

.hero-main {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
}

.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.8rem, 8vw, 7rem);
  line-height: 0.92;
  font-weight: 600;
  color: #f7f7fb;
  text-wrap: balance;
}

.intro {
  margin: 1.2rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.site-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.contact-panel {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.qr-panel {
  display: grid;
  gap: 0.85rem;
  align-self: stretch;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.qr-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.contact-group {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.group-label {
  margin: 0 0 0.85rem;
  color: rgba(241, 242, 247, 0.62);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.contact-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-row:hover,
.contact-row:focus-visible,
.site-link:hover,
.site-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  outline: none;
}

.contact-group .contact-row + .contact-row {
  margin-top: 0.8rem;
}

.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.icon svg {
  width: 20px;
  height: 20px;
  fill: #f0f1f8;
}

.contact-row span:last-child {
  display: grid;
  gap: 0.25rem;
}

.contact-row strong {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.contact-row small {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.45;
}

.world-map {
  width: max(1200px, 100vw);
  height: 100vh;
  opacity: 1;
  filter: drop-shadow(0 18px 28px rgba(77, 110, 128, 0.08));
}

.continent-line-layer line {
  stroke: var(--line);
  stroke-width: 0.9;
  stroke-linecap: round;
  animation: lineBreathe 7s ease-in-out infinite;
}

.node-layer circle {
  fill: var(--node);
  opacity: 0.72;
  animation: nodeBlink 8.5s ease-in-out infinite;
}

.pulse-layer circle {
  fill: none;
  stroke: var(--node-soft);
  stroke-width: 1;
  transform-origin: center;
  animation: pulse 3.2s ease-out infinite;
}

.spark-layer circle {
  fill: rgba(255, 255, 255, 0.92);
  opacity: 0;
  animation: spark 2.4s ease-in-out infinite;
}

@keyframes lineBreathe {
  0%,
  100% {
    opacity: 0.34;
    stroke-width: 0.9;
  }
  50% {
    opacity: 0.72;
    stroke-width: 1.05;
  }
}

@keyframes nodeBlink {
  0%,
  100% {
    opacity: 0.3;
  }
  18% {
    opacity: 0.72;
  }
  42% {
    opacity: 0.96;
  }
  68% {
    opacity: 0.46;
  }
}

@keyframes pulse {
  0% {
    opacity: 0;
    transform: scale(0.65);
  }
  25% {
    opacity: 0.42;
  }
  100% {
    opacity: 0;
    transform: scale(3.3);
  }
}

@keyframes spark {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.5);
  }
  30% {
    opacity: 0.95;
    transform: scale(1.4);
  }
  55% {
    opacity: 0.18;
    transform: scale(2.1);
  }
}

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

  .hero {
    align-items: flex-start;
    min-height: 100vh;
  }

  .title-row {
    flex-direction: column;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .site-link {
    align-self: flex-start;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .qr-panel {
    max-width: 280px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 1.1rem;
  }

  .hero-copy {
    padding: 1.1rem;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.4rem);
  }

  .intro {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .contact-group {
    padding: 0.85rem;
  }

  .contact-row {
    grid-template-columns: 40px 1fr;
    padding: 0.85rem 0.9rem;
  }

  .icon {
    width: 40px;
    height: 40px;
  }

  .contact-row small {
    font-size: 0.95rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .continent-line-layer line,
  .node-layer circle,
  .pulse-layer circle {
    animation: none;
  }

  .spark-layer circle {
    animation: none;
    opacity: 0;
  }
}
