:root {
  /* Fanona brand palette */
  --aubergine: #2a1e2e;
  --plum: #5f4066;
  --mauve: #aa999f;
  --ink: #1c141f;
  --cream: #f1ebef;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

html { background: var(--ink); }

body {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--aubergine);
  color: var(--cream);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* background */
.bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.bg::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(90% 80% at 50% 50%, #33243a 0%, var(--aubergine) 55%, var(--ink) 100%);
}
.glow {
  position: absolute;
  width: 70vmax; height: 70vmax;
  left: 50%; top: 50%;
  margin: -35vmax 0 0 -35vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 64, 102, .55), rgba(95, 64, 102, 0) 62%);
  filter: blur(40px);
  animation: breathe 9s ease-in-out infinite alternate;
}
.grain {
  position: absolute; inset: -50%;
  opacity: .1;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.4s steps(4) infinite;
}

/* content */
.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px 20px;
  text-align: center;
}

.logo {
  --w: clamp(240px, 26vw, 340px);
  display: flex; flex-direction: column; align-items: stretch;
  width: var(--w);
  gap: calc(var(--w) * .035);
  font-weight: inherit;
  animation: rise 1.6s var(--ease) .2s both;
}
.wordmark { display: block; width: 100%; height: auto; color: var(--cream); }
/* sits centred under the "Fanona" lettering, which starts 28.9% into the lockup */
.logo-sub {
  display: block;
  margin-left: 28.9%;
  padding-left: .42em; /* balances the trailing letter-spacing so the text is truly centred */
  text-align: center;
  white-space: nowrap;
  font-size: calc(var(--w) * .036);
  font-weight: 400;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--mauve);
}

.rule {
  display: block;
  width: 48px; height: 1px;
  margin: clamp(34px, 6vh, 52px) 0 clamp(22px, 3.6vh, 30px);
  background: var(--mauve);
  opacity: .6;
  transform-origin: center;
  animation: draw 1.2s var(--ease) 1s both;
}

.line {
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 400;
  letter-spacing: .06em;
  color: rgba(241, 235, 239, .78);
  animation: fade 1.4s var(--ease) 1.4s both;
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes breathe { from { transform: scale(.92); opacity: .75; } to { transform: scale(1.06); opacity: 1; } }
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-1%, -2%); }
  100% { transform: translate(3%, 1%); }
}

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