:root {
  color-scheme: dark;
  --bg: #111313;
  --ink: #eef6f5;
  --muted: rgba(238, 246, 245, 0.76);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  font-family: Montserrat, Arial, sans-serif;
  color: var(--ink);
}

body {
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -24%;
  z-index: 20;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.45' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
  animation: grain 0.5s steps(6) infinite;
}

@keyframes grain {
  0%,
  100% {
    transform: translate(0, 0);
  }
  17% {
    transform: translate(-5%, -10%);
  }
  33% {
    transform: translate(3%, -15%);
  }
  50% {
    transform: translate(12%, 9%);
  }
  67% {
    transform: translate(9%, 4%);
  }
  83% {
    transform: translate(-1%, 7%);
  }
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 52%, rgba(255, 255, 255, 0.022), transparent 22rem),
    #111313;
  cursor: crosshair;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 0 34%, rgba(0, 0, 0, 0.2) 75%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02), transparent 20%, transparent 70%, rgba(0, 0, 0, 0.28));
}

.g_canvas_distortion {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transform: perspective(900px) rotateX(-48deg) rotateY(24deg) rotateZ(3deg) translate3d(100px, 100px, 0) scale(0.8);
  animation: logoIn 1.5s cubic-bezier(0.25, 1, 0.5, 1) 0.1s forwards;
}

.logo-fallback {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(30rem, 54vw);
  height: auto;
  filter: invert(1) brightness(1.9);
  opacity: 0.96;
  transform: translate(-45.5%, -53.5%);
  transition: opacity 0.35s ease;
}

.is-webgl-ready .logo-fallback {
  opacity: 0;
}

@keyframes logoIn {
  to {
    opacity: 1;
    transform: perspective(900px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translate3d(0, 0, 0) scale(1);
  }
}

.nav,
.hero-content,
.hero-bottom {
  position: relative;
  z-index: 4;
}

.nav {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(1rem, 2.8vw, 1.75rem);
}

.contact,
.hero-button {
  color: inherit;
  text-decoration: none;
}

.contact {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.contact::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-0.06rem) rotate(45deg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.6rem);
  font-size: clamp(0.8rem, 1.15vw, 0.95rem);
  font-weight: 500;
  opacity: 0;
  transform: translateY(16px);
  animation: uiIn 1s cubic-bezier(0.16, 1, 0.35, 1) 0.55s forwards;
}

.hero-content {
  width: min(39rem, calc(100vw - 2rem));
  padding-left: clamp(1rem, 3.4vw, 2rem);
  padding-top: 0;
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
  max-width: 34rem;
  text-wrap: balance;
  opacity: 0;
  filter: blur(5px);
  transform: translateY(2rem);
  animation: uiIn 1s cubic-bezier(0.16, 1, 0.35, 1) 0.65s forwards;
}

.hero-button {
  display: inline-flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(17.15rem, calc(100vw - 2rem));
  min-height: 3.45rem;
  padding: 0.8rem 0.55rem 0.8rem 0.78rem;
  background: rgba(224, 238, 237, 0.13);
  color: rgba(238, 246, 245, 0.92);
  border-radius: 2px;
  font-size: clamp(0.9rem, 1.55vw, 1rem);
  line-height: 1.25;
  backdrop-filter: blur(2px);
  opacity: 0;
  filter: blur(5px);
  transform: translateY(2rem);
  animation: uiIn 1s cubic-bezier(0.16, 1, 0.35, 1) 0.78s forwards;
}

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

.hero-bottom {
  position: absolute;
  left: clamp(1rem, 3.4vw, 1.5rem);
  right: clamp(1rem, 3.4vw, 1.5rem);
  bottom: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  opacity: 0;
  filter: blur(5px);
  animation: fadeIn 1s cubic-bezier(0.16, 1, 0.35, 1) 0.9s forwards;
}

.dot {
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 50%;
  background: currentColor;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@media (min-width: 768px) {
  .hero-content {
    padding-top: 0.1rem;
  }
}

@media (max-width: 640px) {
  .logo-fallback {
    width: min(24rem, 72vw);
  }

  .hero-content {
    padding-top: 0.2rem;
  }
}
