:root {
  --ink: #09070d;
  --ivory: #f4edcf;
  --ivory-muted: rgba(244, 237, 207, 0.72);
}

* { box-sizing: border-box; }

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--ink);
}

body {
  color: var(--ivory);
  font-family: Arial, Helvetica, sans-serif;
}

a { color: inherit; }

.site-shell {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  place-items: center;
  padding: clamp(28px, 5vw, 72px);
  background-image:
    linear-gradient(180deg, rgba(8, 6, 12, 0.16), rgba(5, 5, 8, 0.32)),
    url("assets/bocxod-space.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.site-shell::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, transparent 18%, rgba(5, 4, 8, 0.12) 56%, rgba(4, 3, 7, 0.54) 120%),
    linear-gradient(180deg, rgba(13, 8, 18, 0.06), rgba(2, 4, 7, 0.22));
  content: "";
}

.site-shell::after {
  position: absolute;
  z-index: 3;
  inset: -50%;
  pointer-events: none;
  opacity: 0.11;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.48) 0 0.45px, transparent 0.8px 4px),
    repeating-radial-gradient(circle at 75% 65%, rgba(0, 0, 0, 0.65) 0 0.55px, transparent 0.9px 5px);
  background-size: 7px 9px, 11px 13px;
  content: "";
  animation: grain 0.24s steps(2) infinite;
}

.atmosphere {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 50% 51%, rgba(153, 207, 207, 0.12), transparent 22%);
  mix-blend-mode: screen;
}

.hero {
  display: flex;
  width: min(100%, 1040px);
  flex-direction: column;
  align-items: center;
  gap: clamp(58px, 9vh, 112px);
  transform: translateY(2vh);
}

.project-logo {
  display: block;
  width: min(79vw, 900px);
  height: auto;
  filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.58));
  opacity: 0;
  animation: reveal-logo 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.destinations {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(12px, 1.75vw, 26px);
}

.destination-link {
  --link-index: 0;
  display: flex;
  width: clamp(64px, 6.3vw, 82px);
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-link 0.72s cubic-bezier(0.22, 1, 0.36, 1) calc(0.55s + var(--link-index) * 0.07s) forwards;
}

.destination-link svg {
  width: clamp(35px, 3.6vw, 49px);
  height: clamp(35px, 3.6vw, 49px);
  fill: currentColor;
  color: var(--ivory);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
  transition: transform 220ms ease, color 220ms ease, filter 220ms ease;
}

.destination-name {
  max-width: 92px;
  color: var(--ivory-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  transition: color 220ms ease;
}

.destination-link:hover svg,
.destination-link:focus-visible svg {
  color: #fff8d8;
  filter: drop-shadow(0 0 13px rgba(244, 237, 207, 0.42));
  transform: translateY(-5px) scale(1.08);
}

.destination-link:hover .destination-name,
.destination-link:focus-visible .destination-name { color: var(--ivory); }

.destination-link:focus-visible {
  border-radius: 8px;
  outline: 2px solid var(--ivory);
  outline-offset: 8px;
}

.domain-mark {
  position: absolute;
  right: clamp(18px, 3vw, 42px);
  bottom: clamp(18px, 3vw, 32px);
  margin: 0;
  color: rgba(244, 237, 207, 0.42);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes reveal-logo {
  from { opacity: 0; transform: translateY(-14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes reveal-link {
  to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 680px) {
  .site-shell {
    padding: 28px 22px 56px;
    background-position: 47% center;
  }

  .hero {
    gap: clamp(56px, 10vh, 82px);
    transform: translateY(-1vh);
  }

  .project-logo { width: min(94vw, 680px); }

  .destinations {
    display: grid;
    width: min(100%, 340px);
    grid-template-columns: repeat(3, 1fr);
    row-gap: 30px;
  }

  .destination-link { width: auto; }
  .destination-link svg { width: 39px; height: 39px; }

  .domain-mark {
    right: 50%;
    bottom: 18px;
    transform: translateX(50%);
  }
}

@media (max-height: 620px) and (min-width: 681px) {
  .hero { gap: 44px; transform: none; }
  .project-logo { width: min(63vw, 720px); }
  .destination-name { display: none; }
}

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