:root {
  --bg-deep: #070b0c;
  --bg-mid: #10181b;
  --ink: #e8e2d6;
  --ink-muted: #a8a093;
  --ember: #d45a2a;
  --ember-soft: rgba(212, 90, 42, 0.35);
  --teal: #1f6f6a;
  --teal-soft: rgba(31, 111, 106, 0.28);
  --gold: #c4a574;
  --line: rgba(232, 226, 214, 0.12);
  --font-brand: "Chakra Petch", "Segoe UI", sans-serif;
  --font-body: "Noto Serif KR", "Apple SD Gothic Neo", serif;
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% -10%, #1a2428 0%, transparent 55%),
    linear-gradient(165deg, var(--bg-mid) 0%, var(--bg-deep) 55%, #050708 100%);
  font-family: var(--font-body);
  overflow-x: hidden;
}

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

.atmosphere__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}

.atmosphere__glow--ember {
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  top: -12%;
  right: -8%;
  background: radial-gradient(circle, var(--ember-soft), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}

.atmosphere__glow--ink {
  width: min(80vw, 640px);
  height: min(80vw, 640px);
  bottom: -20%;
  left: -15%;
  background: radial-gradient(circle, var(--teal-soft), transparent 72%);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

.atmosphere__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  opacity: 0.45;
}

.atmosphere__seal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(78vw, 420px);
  height: min(78vw, 420px);
  transform: translate(-50%, -52%) rotate(8deg);
  border: 1px solid rgba(196, 165, 116, 0.22);
  border-radius: 50%;
  opacity: 0.55;
}

.atmosphere__seal::before,
.atmosphere__seal::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(212, 90, 42, 0.18);
}

.atmosphere__seal::after {
  inset: 24%;
  border-color: rgba(232, 226, 214, 0.1);
  transform: rotate(-14deg);
}

.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1.25rem, 5vw, 2.5rem) 2rem;
  animation: rise 1.1s ease-out both;
}

.status {
  margin: 0 0 1.25rem;
  font-family: var(--font-brand);
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.brand {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-brand);
  font-size: clamp(2.75rem, 11vw, 5.75rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-wrap: balance;
  color: var(--ink);
  text-shadow: 0 0 40px rgba(212, 90, 42, 0.18);
}

.tagline {
  margin: 1.5rem 0 0;
  max-width: 22em;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  font-weight: 500;
  line-height: 1.65;
  color: var(--ink-muted);
  text-wrap: balance;
}

.studio {
  margin: 2rem 0 0;
  font-family: var(--font-brand);
  font-size: clamp(0.8125rem, 2vw, 0.9375rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
}

.footer {
  position: relative;
  z-index: 1;
  padding: 1rem 1.25rem 1.5rem;
  text-align: center;
}

.footer p {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(168, 160, 147, 0.85);
}

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

@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-3%, 4%);
  }
}

@media (max-width: 480px) {
  .brand {
    max-width: 10ch;
  }

  .tagline {
    max-width: 16em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage,
  .atmosphere__glow--ember,
  .atmosphere__glow--ink {
    animation: none;
  }
}
