@font-face {
  font-family: "Antonio Variable";
  src: url("./assets/fonts/Antonio-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4 Variable";
  src: url("./assets/fonts/SourceSerif4-Variable.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-0: #06040a;
  --bg-1: #130b18;
  --bg-2: #1b1224;
  --ink: #fff7f0;
  --cyan: #77eff2;
  --rose: #ff6e9b;
  --gold: #f6d59d;
  --violet: #9277ff;
  --lime: #c9ff8d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 15% 15%, rgba(119, 239, 242, 0.12), transparent 28%),
    radial-gradient(circle at 85% 25%, rgba(246, 213, 157, 0.15), transparent 32%),
    radial-gradient(circle at 50% 80%, rgba(255, 110, 155, 0.18), transparent 35%),
    linear-gradient(180deg, var(--bg-2), var(--bg-0));
  color: var(--ink);
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  font-family: "Source Serif 4 Variable", Georgia, serif;
  touch-action: manipulation;
}

.page-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.mesh,
.starfield,
.grain {
  position: absolute;
  inset: -10%;
}

.mesh {
  filter: blur(36px);
  opacity: 0.9;
  mix-blend-mode: screen;
}

.mesh-a {
  background:
    radial-gradient(circle at 18% 20%, rgba(119, 239, 242, 0.42), transparent 0 44%),
    radial-gradient(circle at 70% 28%, rgba(255, 110, 155, 0.18), transparent 0 38%);
  animation: driftA 14s ease-in-out infinite alternate;
}

.mesh-b {
  background:
    radial-gradient(circle at 82% 32%, rgba(246, 213, 157, 0.38), transparent 0 35%),
    radial-gradient(circle at 35% 72%, rgba(146, 119, 255, 0.22), transparent 0 40%);
  animation: driftB 18s ease-in-out infinite alternate;
}

.mesh-c {
  background:
    radial-gradient(circle at 58% 56%, rgba(255, 234, 202, 0.12), transparent 0 26%),
    radial-gradient(circle at 12% 85%, rgba(201, 255, 141, 0.18), transparent 0 30%);
  animation: driftC 20s ease-in-out infinite alternate;
}

.starfield {
  background-image:
    radial-gradient(circle at 12% 15%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px),
    radial-gradient(circle at 30% 70%, rgba(119, 239, 242, 0.18) 0 1.5px, transparent 1.5px),
    radial-gradient(circle at 68% 22%, rgba(246, 213, 157, 0.16) 0 1px, transparent 1px),
    radial-gradient(circle at 84% 66%, rgba(255, 110, 155, 0.18) 0 1.5px, transparent 1.5px),
    radial-gradient(circle at 54% 40%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px);
  background-size: 280px 280px, 320px 320px, 240px 240px, 360px 360px, 420px 420px;
  opacity: 0.42;
  animation: driftStars 28s linear infinite;
}

.grain {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.015)),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.25'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.18;
}

.stage-shell {
  position: relative;
  min-height: 100dvh;
  width: 100vw;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.03), transparent 38%),
    linear-gradient(180deg, rgba(11, 7, 16, 0.44), rgba(7, 5, 10, 0.84));
  isolation: isolate;
  touch-action: none;
}

.stage-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(119, 239, 242, 0.07), transparent 28%),
    linear-gradient(300deg, rgba(255, 110, 155, 0.06), transparent 24%);
  pointer-events: none;
  z-index: 0;
}

.pixi-mount,
.pixi-mount canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-shell {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 2;
}

.hero-word {
  position: absolute;
  font-family: "Antonio Variable", sans-serif;
  font-size: clamp(6rem, 24vw, 18rem);
  line-height: 0.8;
  text-transform: uppercase;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  mix-blend-mode: screen;
  user-select: none;
  animation: susanBreath 4.2s ease-in-out infinite;
}

.hero-word-a {
  color: rgba(255, 245, 232, 0.92);
  text-shadow:
    0 0 30px rgba(255, 214, 157, 0.3),
    0 0 90px rgba(119, 239, 242, 0.16);
}

.hero-word-b {
  color: rgba(119, 239, 242, 0.35);
  transform: translate(-2.4%, -1.8%) scale(1.02);
  animation-duration: 3.2s;
}

.hero-word-c {
  color: rgba(255, 110, 155, 0.28);
  transform: translate(2.6%, 2.1%) scale(1.03);
  animation-duration: 2.8s;
}

@media (max-width: 980px) {
  .stage-shell {
    min-height: 100dvh;
  }
}

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

@keyframes driftA {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to { transform: translate3d(2%, -3%, 0) scale(1.08); }
}

@keyframes driftB {
  from { transform: translate3d(2%, -1%, 0) scale(1.02); }
  to { transform: translate3d(-3%, 3%, 0) scale(1.08); }
}

@keyframes driftC {
  from { transform: translate3d(-1%, 2%, 0) scale(1.04); }
  to { transform: translate3d(3%, -2%, 0) scale(1.12); }
}

@keyframes driftStars {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -90px, 0); }
}

@keyframes susanBreath {
  from { transform: scale(0.985); filter: saturate(0.95); }
  50% { transform: scale(1.015); filter: saturate(1.06); }
  to { transform: scale(0.985); filter: saturate(0.95); }
}
