@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/outfit-300.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/outfit-400.woff2") format("woff2");
}

:root {
  --bg: #07080c;
  --ink: #f4efe6;
  --muted: rgba(198, 206, 220, 0.78);
  --cyan: #8ae8ff;
  --violet: #b79bff;
  --spot-x: 50%;
  --spot-y: 38%;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(138, 232, 255, 0.22);
  color: #fff;
}

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

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  animation: drift 22s ease-in-out infinite;
}

.orb-a {
  width: 48vw;
  height: 48vw;
  left: -12vw;
  top: -6vh;
  background: radial-gradient(circle, rgba(98, 52, 168, 0.42), transparent 68%);
}

.orb-b {
  width: 40vw;
  height: 42vw;
  right: -12vw;
  bottom: -8vh;
  background: radial-gradient(circle, rgba(18, 104, 132, 0.38), transparent 70%);
  animation-delay: -8s;
}

.orb-c {
  width: 28vw;
  height: 28vw;
  left: 38%;
  top: 28%;
  background: radial-gradient(circle, rgba(90, 130, 190, 0.16), transparent 68%);
  animation-delay: -14s;
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 30%, rgba(0, 0, 0, 0.45) 78%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 18%, transparent 78%, rgba(0, 0, 0, 0.55));
}

.spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    560px circle at var(--spot-x) var(--spot-y),
    rgba(170, 205, 255, 0.07),
    transparent 46%
  );
  mix-blend-mode: screen;
}

.grain {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  opacity: 0.07;
  mix-blend-mode: overlay;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem max(1.5rem, env(safe-area-inset-bottom));
}

.parallax {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.floater {
  position: relative;
  width: 100%;
  animation: float 7.6s ease-in-out infinite;
  transform-origin: 50% 40%;
}

.speech {
  margin: 0;
  white-space: nowrap;
}

.speech span {
  display: inline-block;
  padding: 0.42em 0.95em 0.46em;
  border-radius: 999px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(16, 18, 26, 0.78), rgba(7, 8, 12, 0.62)) padding-box,
    linear-gradient(115deg, rgba(138, 232, 255, 0.75), rgba(183, 155, 255, 0.18) 42%, rgba(183, 155, 255, 0.7)) border-box;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(120, 190, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.85rem, 4.6vw, 2.85rem);
  letter-spacing: 0.035em;
  line-height: 0.95;
  color: var(--ink);
  text-shadow: 0 0 18px rgba(138, 232, 255, 0.22);
}

.identity {
  margin-top: 2rem;
  text-align: center;
  animation: rise 1.1s ease 0.15s both;
}

.name {
  margin: 0;
  font-family: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  padding-left: 0.46em;
  color: rgba(244, 239, 230, 0.88);
}

.mark {
  display: block;
  width: 6px;
  height: 6px;
  margin: 0.72rem auto;
  border-radius: 50%;
  border: 1px solid rgba(138, 232, 255, 0.8);
  box-shadow: 0 0 10px rgba(138, 232, 255, 0.45);
}

.sub {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  padding-left: 0.34em;
  color: var(--muted);
}

@keyframes float {
  0%,
  100% { transform: translate3d(0, 0, 0) rotate(-0.45deg); }
  50% { transform: translate3d(0, -18px, 0) rotate(0.45deg); }
}

@keyframes drift {
  0%,
  100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2.5vw, -2vh, 0) scale(1.07); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .speech span {
    font-size: clamp(1.55rem, 7.2vw, 2rem);
    padding: 0.38em 0.8em 0.42em;
  }

  .name {
    font-size: 0.7rem;
    letter-spacing: 0.38em;
    padding-left: 0.38em;
  }

  .sub {
    font-size: 0.62rem;
    letter-spacing: 0.26em;
    padding-left: 0.26em;
  }
}

@media (max-height: 740px) {
  .mark {
    margin: 0.45rem auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
