:root {
  --bg: #f5f1ea;
  --cream: #f5f1ea;
  --sky: #e8eef2;
  --sand: #d9c4a7;
  --haze: #a8b8c4;
  --glow: #f1e6d2;
  --ink: #1f2937;
  --ink-soft: #6b7b8c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Helvetica, Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Aurora background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* Base soft warm→cool wash */
  background: linear-gradient(
    160deg,
    #f7f3ec 0%,
    #f1ede4 40%,
    #eaf0f4 100%
  );
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.75;
  mix-blend-mode: multiply;
  will-change: transform;
}

.blob--cream {
  width: 58vmax;
  height: 58vmax;
  left: -15vmax;
  top: -20vmax;
  background: radial-gradient(
    circle at 50% 50%,
    #f0e6d2 0%,
    rgba(240, 230, 210, 0) 70%
  );
  animation: drift1 26s ease-in-out infinite alternate;
}

.blob--sky {
  width: 52vmax;
  height: 52vmax;
  right: -18vmax;
  top: -10vmax;
  background: radial-gradient(
    circle at 50% 50%,
    #cfe0ea 0%,
    rgba(207, 224, 234, 0) 70%
  );
  animation: drift2 32s ease-in-out infinite alternate;
}

.blob--sand {
  width: 46vmax;
  height: 46vmax;
  left: 10vmax;
  bottom: -22vmax;
  background: radial-gradient(
    circle at 50% 50%,
    #e6d1ae 0%,
    rgba(230, 209, 174, 0) 70%
  );
  animation: drift3 30s ease-in-out infinite alternate;
}

.blob--haze {
  width: 40vmax;
  height: 40vmax;
  right: -6vmax;
  bottom: -14vmax;
  background: radial-gradient(
    circle at 50% 50%,
    #b9c7d2 0%,
    rgba(185, 199, 210, 0) 70%
  );
  animation: drift4 28s ease-in-out infinite alternate;
  opacity: 0.55;
}

.blob--glow {
  width: 36vmax;
  height: 36vmax;
  left: 25%;
  top: 30%;
  background: radial-gradient(
    circle at 50% 50%,
    #fff6e4 0%,
    rgba(255, 246, 228, 0) 70%
  );
  mix-blend-mode: screen;
  opacity: 0.9;
  filter: blur(70px);
  animation: drift5 22s ease-in-out infinite alternate;
}

@keyframes drift1 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(6vmax, 4vmax, 0) scale(1.08);
  }
}
@keyframes drift2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-5vmax, 6vmax, 0) scale(1.05);
  }
}
@keyframes drift3 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(4vmax, -5vmax, 0) scale(1.1);
  }
}
@keyframes drift4 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-4vmax, -3vmax, 0) scale(1.06);
  }
}
@keyframes drift5 {
  0% {
    transform: translate3d(-2vmax, -1vmax, 0) scale(1);
  }
  100% {
    transform: translate3d(3vmax, 2vmax, 0) scale(1.15);
  }
}

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

/* ---------- Stage / headline ---------- */
.stage {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 6vmin;
}

.headline {
  margin: 0;
  text-align: center;
  color: var(--ink);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 300;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s forwards;
  max-width: 22ch;
}

.line {
  display: block;
}

.line--1 {
  font-family: "Inter", sans-serif;
  font-weight: 200;
  font-size: clamp(18px, 2.6vw, 32px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: clamp(14px, 2.4vw, 28px);
}

.line--2 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 300;
  font-style: normal;
  font-optical-sizing: auto;
  font-size: clamp(40px, 8vw, 132px);
  letter-spacing: -0.025em;
}

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

/* ---------- Corner marks ---------- */
.mark,
.domain {
  position: fixed;
  bottom: clamp(14px, 2vw, 24px);
  z-index: 3;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
  animation: fade 1.6s ease 1s forwards;
}

.mark {
  right: clamp(16px, 2.4vw, 28px);
}

.domain {
  left: clamp(16px, 2.4vw, 28px);
}

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

/* ---------- Responsive tweaks ---------- */
@media (max-width: 640px) {
  .blob {
    filter: blur(70px);
  }
  .domain,
  .mark {
    font-size: 10px;
    letter-spacing: 0.16em;
  }
}

/* ---------- Motion-reduction ---------- */
@media (prefers-reduced-motion: reduce) {
  .blob,
  .headline,
  .mark,
  .domain {
    animation: none !important;
  }
  .headline {
    opacity: 1;
    transform: none;
  }
  .mark,
  .domain {
    opacity: 0.55;
  }
}
