:root {
  --bg: #f0efe7;
  --ink: #030303;
  --muted: rgba(3, 3, 3, 0.52);
  --line: rgba(3, 3, 3, 0.12);
  --glass: rgba(255, 255, 255, 0.28);
  --mx: 50vw;
  --my: 50vh;
  --tilt-x: 58deg;
  --tilt-y: 0deg;
  --move-x: 0px;
  --move-y: 0px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.9), transparent 18rem),
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.34), transparent 33rem),
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(0,0,0,0.018));
}

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  perspective: 1100px;
}

.grain {
  position: absolute;
  inset: -25%;
  opacity: 0.16;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,.11) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,.08) 0 1px, transparent 1px);
  background-size: 34px 34px, 47px 47px;
  animation: grainMove 16s linear infinite;
}

.soft-glow {
  position: absolute;
  width: 46rem;
  height: 46rem;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.45;
  transform: translate3d(var(--move-x), var(--move-y), 0);
}

.glow-one {
  left: -16rem;
  top: -18rem;
  background: rgba(255, 255, 255, 0.62);
}

.glow-two {
  right: -20rem;
  bottom: -22rem;
  background: rgba(0, 0, 0, 0.045);
}

.orbital-frame {
  position: absolute;
  left: 50%;
  top: 47%;
  width: min(64vw, 640px);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) translate3d(calc(var(--move-x) * -0.35), calc(var(--move-y) * -0.35), -120px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  opacity: 0.48;
}

.orbital-spin {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: orbitalSpin 18s linear infinite;
}

.orbital-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38%;
  aspect-ratio: 1;
  border-radius: 999px;
  transform: translate(-50%, -50%) translateZ(-18px);
  background:
    radial-gradient(circle at 42% 35%, rgba(255,255,255,0.86), rgba(255,255,255,0.22) 36%, rgba(0,0,0,0.055) 72%, transparent 73%);
  box-shadow:
    inset 0 0 44px rgba(255,255,255,0.42),
    0 24px 90px rgba(0,0,0,0.055);
  filter: blur(0.2px);
}

.ring {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.105);
  box-shadow:
    inset 0 0 38px rgba(255,255,255,0.22),
    0 0 32px rgba(0,0,0,0.028);
  transform-style: preserve-3d;
}

.ring::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid transparent;
  border-top-color: rgba(0,0,0,0.38);
  border-right-color: rgba(0,0,0,0.18);
  filter: blur(0.05px);
}

.ring-a {
  transform: rotateY(62deg) rotateZ(14deg);
}

.ring-b {
  inset: 21%;
  transform: rotateX(72deg) rotateZ(-30deg);
  animation: ringPulse 4.4s ease-in-out infinite;
}

.ring-c {
  inset: 9%;
  border-color: rgba(0,0,0,0.065);
  transform: rotateX(18deg) rotateY(-58deg) rotateZ(60deg);
}

.node {
  position: absolute;
  width: 0.48rem;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(0,0,0,0.72);
  box-shadow: 0 0 0 8px rgba(0,0,0,0.035), 0 14px 34px rgba(0,0,0,0.08);
}

.node-a { left: 19%; top: 31%; transform: translateZ(42px); }
.node-b { right: 17%; top: 56%; transform: translateZ(-18px); opacity: 0.72; }
.node-c { left: 53%; bottom: 14%; transform: translateZ(68px); opacity: 0.58; }

.depth-grid {
  position: absolute;
  left: 50%;
  bottom: -21%;
  width: min(1120px, 126vw);
  height: 48vh;
  opacity: 0.28;
  transform: translateX(-50%) rotateX(72deg) translateZ(-220px);
  transform-origin: center bottom;
  background-image:
    linear-gradient(rgba(0,0,0,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.08) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse at center, black 0%, rgba(0,0,0,.55) 38%, transparent 72%);
  animation: gridDrift 8s linear infinite;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.4rem, 4vw, 3rem);
}

.hero {
  width: min(100%, 720px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translate3d(0, -1.5vh, 0);
}

.brand {
  width: clamp(230px, 31vw, 380px);
  display: inline-flex;
  opacity: 0;
  transform: translateY(16px) scale(0.986);
  filter: blur(12px);
  animation: revealLogo 980ms cubic-bezier(.22, 1, .36, 1) 240ms forwards, logoBreath 7s ease-in-out 1.35s infinite;
  will-change: transform, filter, opacity;
}

.brand-logo {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.045));
}

.soon {
  position: relative;
  min-width: 12rem;
  height: 1.65rem;
  margin: clamp(0.58rem, 1.8vw, 0.95rem) 0 0;
  opacity: 0;
  transform: translateY(10px);
  animation: revealText 840ms cubic-bezier(.22, 1, .36, 1) 620ms forwards;
}

.soon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.52rem;
  width: 2.7rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.38), transparent);
  transform: translateX(-50%) scaleX(0.74);
  animation: lineScan 3.1s ease-in-out infinite;
}

.soon-word {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: clamp(0.72rem, 1.2vw, 0.9rem);
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.48rem) scale(0.985);
  filter: blur(8px);
  transition: opacity 620ms ease, transform 620ms ease, filter 620ms ease;
}

.soon-word.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.socials {
  position: absolute;
  left: 50%;
  bottom: clamp(1.6rem, 5.4vh, 3.9rem);
  display: flex;
  justify-content: center;
  gap: clamp(0.48rem, 1.3vw, 0.72rem);
  transform: translateX(-50%);
  opacity: 0;
  animation: revealSocials 800ms cubic-bezier(.22, 1, .36, 1) 960ms forwards;
}

.socials.is-empty {
  display: none;
}

.social-link {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: clamp(2.45rem, 4.4vw, 2.9rem);
  height: clamp(2.45rem, 4.4vw, 2.9rem);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(240, 239, 231, 0.56);
  text-decoration: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.045);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.social-link::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 0.62rem);
  left: 50%;
  padding: 0.36rem 0.54rem;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 999px;
  color: rgba(0,0,0,.72);
  background: rgba(240, 239, 231, 0.82);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.055);
  font-size: 0.66rem;
  font-weight: 780;
  letter-spacing: 0.02em;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 0.35rem) scale(0.96);
  transition: opacity 180ms ease, transform 180ms ease;
}

.social-link svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-4px) scale(1.03);
  background: rgba(255, 255, 255, 0.44);
  border-color: rgba(0, 0, 0, 0.26);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.075);
}

.social-link:hover::after,
.social-link:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.social-link:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.2);
  outline-offset: 4px;
}

@keyframes revealLogo {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes revealText {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealSocials {
  to { opacity: 1; }
}

@keyframes logoBreath {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.006); }
}

@keyframes lineScan {
  0%, 100% { opacity: .28; transform: translateX(-50%) scaleX(.52); }
  50% { opacity: .82; transform: translateX(-50%) scaleX(1); }
}

@keyframes orbitalSpin {
  from { transform: rotateZ(0deg); }
  to { transform: rotateZ(360deg); }
}

@keyframes ringPulse {
  0%, 100% { opacity: .58; transform: rotateX(72deg) rotateZ(-30deg) scale(0.96); }
  50% { opacity: 1; transform: rotateX(72deg) rotateZ(-30deg) scale(1.02); }
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 68px 68px; }
}

@keyframes grainMove {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(34px, -47px, 0); }
}

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

  .orbital-frame {
    top: 45%;
    width: min(104vw, 520px);
    opacity: 0.34;
  }

  .depth-grid {
    height: 42vh;
    opacity: 0.18;
  }

  .hero {
    transform: translate3d(0, -4vh, 0);
  }

  .brand {
    width: min(70vw, 315px);
  }

  .soon-word {
    letter-spacing: 0.18em;
  }

  .socials {
    width: calc(100% - 2rem);
    flex-wrap: wrap;
    bottom: 1.8rem;
  }
}

@media (max-height: 620px) {
  body {
    overflow-y: auto;
  }

  .page-shell {
    padding-block: 3rem;
  }

  .socials {
    position: static;
    margin-top: 4.25rem;
    transform: none;
  }
}

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