:root {
  --bg: #0a0a0d;
  --bg-2: #14141a;
  --fg: #f4f1ea;
  --fg-dim: rgba(244, 241, 234, 0.65);
  --accent: #8a82d4;
  --accent-glow: rgba(138, 130, 212, 0.55);
  --line: rgba(244, 241, 234, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ---------- Background atmospherics ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 35%, rgba(138, 130, 212, 0.22), transparent 70%),
    radial-gradient(40% 40% at 85% 90%, rgba(138, 130, 212, 0.14), transparent 70%);
  pointer-events: none;
  animation: bgFloat 14s ease-in-out infinite alternate;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(244,241,234,0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}

@keyframes bgFloat {
  from { transform: scale(1) translateY(0); opacity: 0.85; }
  to   { transform: scale(1.1) translateY(-12px); opacity: 1; }
}

/* ---------- Floating studio photos ---------- */
.floaters {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.ph {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(244, 241, 234, 0.08);
  opacity: 0;
  filter: saturate(0.85) brightness(0.7);
  animation: phIn 1.6s ease-out forwards, phFloat 12s ease-in-out infinite alternate;
}

.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ph::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 13, 0.55) 100%);
}

.ph1 { top: 8%;  left: 4%;  width: 200px; height: 260px; transform: rotate(-7deg); animation-delay: 0.3s, 1.6s; }
.ph2 { top: 14%; right: 5%; width: 220px; height: 160px; transform: rotate(5deg);  animation-delay: 0.5s, 2.1s; }
.ph3 { bottom: 10%; left: 7%;  width: 180px; height: 230px; transform: rotate(4deg);  animation-delay: 0.7s, 1.9s; }
.ph4 { bottom: 8%;  right: 8%; width: 240px; height: 170px; transform: rotate(-5deg); animation-delay: 0.9s, 2.4s; }
.ph5 { top: 42%;  left: 1%;   width: 130px; height: 170px; transform: rotate(8deg);  animation-delay: 1.1s, 1.7s; }
.ph6 { top: 48%;  right: 1%;  width: 140px; height: 180px; transform: rotate(-6deg); animation-delay: 1.3s, 2.2s; }

@keyframes phIn {
  to { opacity: 0.55; }
}

@keyframes phFloat {
  from { translate: 0 0; }
  to   { translate: 0 -14px; }
}

/* ---------- Stage ---------- */
.stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  padding: 2rem;
}

/* ---------- Footer ---------- */
.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 1.4rem 1.5rem 1.8rem;
  opacity: 0;
  animation: fadeUp 1s ease-out 2.1s forwards;
}

.copyright {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
}

/* ---------- Logo ---------- */
.logo-wrap {
  position: relative;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.2s forwards;
  filter: drop-shadow(0 10px 40px rgba(138, 130, 212, 0.25));
}

.logo {
  width: clamp(260px, 56vw, 580px);
  height: auto;
  color: var(--fg);
  display: block;
}

.brackets .bk {
  transform-origin: center;
  opacity: 0;
  animation: bracketIn 0.7s cubic-bezier(.2,.8,.2,1) forwards;
}
.bk-tl { animation-delay: 0.4s; }
.bk-tr { animation-delay: 0.55s; }
.bk-bl { animation-delay: 0.7s; }

@keyframes bracketIn {
  0%   { opacity: 0; transform: scale(0.6); }
  60%  { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

.square {
  transform-origin: 207px 200px;
  opacity: 0;
  animation:
    squarePop 0.7s cubic-bezier(.2,.8,.2,1) 0.95s forwards,
    squarePulse 2.6s ease-in-out 1.7s infinite;
}

@keyframes squarePop {
  0%   { opacity: 0; transform: scale(0) rotate(-25deg); }
  70%  { opacity: 1; transform: scale(1.12) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes squarePulse {
  0%, 100% { filter: drop-shadow(0 0 0 var(--accent-glow)); }
  50%      { filter: drop-shadow(0 0 22px var(--accent-glow)); }
}

.logo-word {
  opacity: 0;
  animation: wordIn 1s ease-out 1.2s forwards;
}

@keyframes wordIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---------- Stay tuned ---------- */
.stay-tune {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  letter-spacing: 0.02em;
  color: var(--fg);
  opacity: 0;
  animation: fadeUp 1s ease-out 1.8s forwards;
  display: inline-flex;
  align-items: baseline;
}

.st-text {
  background: linear-gradient(90deg, var(--fg) 0%, var(--accent) 50%, var(--fg) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}

.dots { display: inline-block; margin-left: 2px; }
.dots span {
  display: inline-block;
  opacity: 0;
  animation: dotBlink 1.6s ease-in-out infinite;
  color: var(--accent);
}
.dots span:nth-child(1) { animation-delay: 0s; }
.dots span:nth-child(2) { animation-delay: 0.25s; }
.dots span:nth-child(3) { animation-delay: 0.5s; }

@keyframes dotBlink {
  0%, 60%, 100% { opacity: 0; transform: translateY(0); }
  30%           { opacity: 1; transform: translateY(-2px); }
}

/* ---------- Socials ---------- */
.socials {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(20, 20, 26, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.soc svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}

.soc:hover {
  color: var(--fg);
  border-color: rgba(138, 130, 212, 0.5);
  background: rgba(138, 130, 212, 0.12);
  transform: translateY(-2px);
}

.soc:hover svg {
  transform: scale(1.1);
  color: var(--accent);
}

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

@media (max-width: 640px) {
  .stage { padding: 2rem 1.5rem 7rem; }
  .socials { gap: 0.55rem; }
  .soc { width: 38px; height: 38px; }
  .copyright { font-size: 0.72rem; }
  .footer { padding: 1.2rem 1rem 1.4rem; gap: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .logo-wrap, .stay-tune, .socials, .brackets .bk, .square, .logo-word, .ph { opacity: 1; }
  .ph { opacity: 0.55; }
}
