:root {
  color-scheme: dark;
  --ink: #fff4ff;
  --soft: #e0b4df;
  --line: rgba(255, 209, 255, .27);
  --accent: #f39bef;
  --berry: #79008a;
  --night: #210022;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  min-width: 320px;
  overflow: hidden;
  background: var(--night);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

#unicorn-background, .texture {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#unicorn-background {
  z-index: -4;
  overflow: hidden;
  background: var(--night);
  filter: hue-rotate(105deg) saturate(1.7) brightness(.72);
}
#unicorn-background > canvas { width: 100% !important; height: 100% !important; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: radial-gradient(circle at 50% 44%, rgba(164, 19, 165, .16), rgba(85, 0, 103, .45) 55%, rgba(22, 0, 26, .62) 100%);
  mix-blend-mode: color;
}

.texture {
  z-index: -1;
  opacity: .2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 16%, rgba(31, 0, 37, .18) 57%, rgba(13, 0, 18, .8) 100%);
}

main {
  min-height: 100svh;
  padding: 31px clamp(24px, 5vw, 72px) 29px;
  display: grid;
  grid-template-rows: 1fr;
  text-align: center;
}

.topbar, footer { display: flex; align-items: center; justify-content: space-between; }

.brand {
  color: var(--ink);
  font: 700 13px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .15em;
  text-decoration: none;
}
.brand span { font-size: 8px; vertical-align: top; margin-left: 2px; }
.contact { color: #f0c2ee; font: 700 10px/1 Arial, Helvetica, sans-serif; letter-spacing: .13em; }

.hero {
  align-self: center;
  justify-self: center;
  display: flex;
  width: min(780px, 100%);
  flex-direction: column;
  align-items: center;
  padding: 0;
  animation: reveal .9s cubic-bezier(.2,.7,.2,1) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: #f3c8f1;
  font: 700 10px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.eyebrow span { width: 29px; height: 1px; background: var(--accent); box-shadow: 0 0 14px var(--accent); }

h1 {
  margin: 0;
  color: #fff5ff;
  font-size: clamp(4rem, 15vw, 12rem);
  font-weight: 700;
  letter-spacing: -.08em;
  line-height: .86;
  text-shadow: 0 0 34px rgba(217, 125, 221, .22);
}


footer { color: #c18abc; font: 700 9px/1 Arial, Helvetica, sans-serif; letter-spacing: .11em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

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

@media (max-width: 560px) {
  main { padding: 25px 22px 23px; }
  .hero {
  align-self: center;
  justify-self: center;
  display: flex;
  width: min(780px, 100%);
  flex-direction: column;
  align-items: center;
  padding: 0;
  animation: reveal .9s cubic-bezier(.2,.7,.2,1) both;
}
@media (prefers-reduced-motion: reduce) { .hero { animation: none; } }
/* The lettering picks up the moving light from the Unicorn background. */
h1 {
  color: #dba1e0;
  opacity: .82;
  mix-blend-mode: screen;
  text-shadow: 0 0 34px rgba(217, 125, 221, .22);
}

.project-date {
  margin: 21px 0 0;
  color: #edb9ee;
  opacity: .8;
  mix-blend-mode: screen;
  font: 700 11px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .2em;
}

/* Live text is drawn from the Unicorn Studio canvas once it has initialized. */
#text-interaction {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.live-text-ready h1,
.live-text-ready .project-date {
  opacity: 0;
}

/* Keep DESIRE clear while the actual Unicorn line breaks around it. */
h1 {
  color: #f6c9f4;
  opacity: .96;
  mix-blend-mode: normal;
}
.project-date {
  color: #efc4ed;
  opacity: .92;
  mix-blend-mode: normal;
}
