/* prettiflow: one section, white, quiet. */

:root {
  --ink: #16121a;
  --soft: #57534e;
  --muted: #8d8782;
  --faint: #a8a29e;
  --pink: #ff15dc;
  --r: 200px; /* radius of the light that reveals the background */
  color-scheme: light;
}

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

html,
body {
  height: 100%;
  background: #fff;
}

body {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #fff;
  isolation: isolate;
  --mx: 50vw;
  --my: 50vh;
  --px: 0;
  --py: 0;
}

/* ---------- background: a log nobody is reading ---------- */

.logs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(
    circle var(--r) at var(--mx) var(--my),
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.26) 40%,
    rgba(0, 0, 0, 0.035) 100%
  );
  mask-image: radial-gradient(
    circle var(--r) at var(--mx) var(--my),
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.26) 40%,
    rgba(0, 0, 0, 0.035) 100%
  );
}

@supports not ((mask-image: linear-gradient(#000, #000)) or (-webkit-mask-image: linear-gradient(#000, #000))) {
  .logs {
    opacity: 0.05;
  }
}

.col {
  position: absolute;
  top: 0;
  height: 100%;
  overflow: hidden;
  font-size: 12px;
  line-height: 22px;
  white-space: pre;
  color: var(--muted);
}

.col .run {
  animation: scroll linear infinite;
  will-change: transform;
}

.col b {
  color: #c77bbd;
  font-weight: 400;
}

@keyframes scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, -50%, 0);
  }
}

/* a clear patch behind the logo, so the mark never fights the text */
.halo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: min(90vmin, 860px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.92) 42%, rgba(255, 255, 255, 0) 100%);
}

/* soft colour, barely moving */
.aurora {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transform: translate3d(calc(var(--px) * -10px), calc(var(--py) * -10px), 0);
}

.aurora i {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
  transition: opacity 3s ease 0.3s;
}

.ready .aurora i {
  opacity: 1;
}

.aurora i:nth-child(1) {
  width: 52vmax;
  height: 52vmax;
  left: 16%;
  top: 38%;
  background: radial-gradient(circle, rgba(255, 21, 220, 0.075), rgba(255, 21, 220, 0.046) 24%, rgba(255, 21, 220, 0.016) 50%, rgba(255, 21, 220, 0) 70%);
  animation: drift-a 90s ease-in-out infinite alternate;
}

.aurora i:nth-child(2) {
  width: 46vmax;
  height: 46vmax;
  left: 42%;
  top: 6%;
  background: radial-gradient(circle, rgba(122, 69, 255, 0.06), rgba(122, 69, 255, 0.037) 24%, rgba(122, 69, 255, 0.013) 50%, rgba(122, 69, 255, 0) 70%);
  animation: drift-b 112s ease-in-out infinite alternate;
}

.aurora i:nth-child(3) {
  width: 40vmax;
  height: 40vmax;
  left: 28%;
  top: 52%;
  background: radial-gradient(circle, rgba(255, 212, 243, 0.4), rgba(255, 212, 243, 0.25) 24%, rgba(255, 212, 243, 0.09) 50%, rgba(255, 212, 243, 0) 70%);
  animation: drift-c 100s ease-in-out infinite alternate;
}

@keyframes drift-a {
  to {
    transform: translate3d(8vw, -6vh, 0) scale(1.08);
  }
}
@keyframes drift-b {
  to {
    transform: translate3d(-9vw, 7vh, 0) scale(0.94);
  }
}
@keyframes drift-c {
  to {
    transform: translate3d(6vw, -8vh, 0) scale(1.05);
  }
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- the one section ---------- */

.center {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 4.4vh, 44px);
  padding-bottom: 28px;
}

.name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2vh, 18px);
}

/* the mark */

.mark {
  all: unset;
  position: relative;
  display: block;
  width: clamp(88px, 11vw, 128px);
  aspect-ratio: 173 / 169;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  filter: blur(14px);
  transform: scale(0.86);
  transition: opacity 1.3s ease 0.1s, filter 1.3s ease 0.1s, transform 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.ready .mark {
  opacity: 1;
  filter: none;
  transform: none;
}

/* on hover the mark spins up and a soft light comes on behind it */
.mark::before {
  content: "";
  position: absolute;
  inset: -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 21, 220, 0.16), rgba(255, 21, 220, 0));
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.mark:hover::before,
.mark:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.mark:focus-visible {
  outline: 1px dashed rgba(22, 18, 26, 0.35);
  outline-offset: 16px;
  border-radius: 50%;
}

.tilt,
.spin {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.tilt {
  transform: perspective(700px) translate3d(var(--tx, 0px), var(--ty, 0px), 0) rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg));
  will-change: transform;
}

.spin {
  transform: rotate(var(--rot, 0deg)) scale(var(--sc, 1));
  will-change: transform;
}

.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(255, 21, 220, 0.4);
  pointer-events: none;
  animation: ring 1.6s cubic-bezier(0.16, 0.8, 0.3, 1) forwards;
}

@keyframes ring {
  from {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.6;
  }
  to {
    transform: translate(-50%, -50%) scale(3.4);
    opacity: 0;
  }
}

/* the word and what it is */

.word {
  width: clamp(180px, 22vw, 280px);
  aspect-ratio: 527 / 169;
  font-size: 0;
  clip-path: inset(0 100% 0 0);
  filter: blur(5px);
  opacity: 0;
  transition: clip-path 1.4s cubic-bezier(0.7, 0, 0.2, 1) 0.55s, filter 1.4s ease 0.55s, opacity 0.6s ease 0.55s;
}

.ready .word {
  clip-path: inset(0 0 0 0);
  filter: none;
  opacity: 1;
}

.word svg {
  display: block;
  width: 100%;
  height: 100%;
}

.sub {
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(15px, 1.5vw, 18px);
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--soft);
  text-align: center;
  text-wrap: balance;
  max-width: min(90vw, 46ch);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 1.3s ease 1.3s, transform 1.5s cubic-bezier(0.16, 1, 0.3, 1) 1.3s;
}

.ready .sub {
  opacity: 1;
  transform: none;
}

/* the one line of text, which ends as a link */

.status {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  min-height: 1.8em;
  min-width: 14ch;
  text-align: center;
  opacity: 0;
  transition: opacity 1.2s ease 1.7s;
}

.ready .status {
  opacity: 1;
}

.status a {
  color: var(--soft);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(22, 18, 26, 0.2);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.status a:hover,
.status a:focus-visible {
  color: var(--ink);
  border-color: rgba(22, 18, 26, 0.55);
  outline: none;
}

.status .arrow {
  display: inline-block;
  margin-left: 0.5ch;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.status a:hover .arrow,
.status a:focus-visible .arrow {
  transform: translate(2px, -2px);
}

.caret {
  display: inline-block;
  width: 0.5em;
  height: 1.05em;
  margin-left: 0.5ch;
  vertical-align: -0.18em;
  background: rgba(22, 18, 26, 0.45);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* a quiet ripple wherever you tap */

.drop {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  border: 1px solid rgba(22, 18, 26, 0.18);
  pointer-events: none;
  animation: drop 1.4s cubic-bezier(0.16, 0.8, 0.3, 1) forwards;
}

@keyframes drop {
  from {
    transform: translate3d(var(--dx), var(--dy), 0) scale(0.3);
    opacity: 0.7;
  }
  to {
    transform: translate3d(var(--dx), var(--dy), 0) scale(2.4);
    opacity: 0;
  }
}

/* ---------- footer ---------- */

.foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 1.4s ease 2.2s;
}

.ready .foot {
  opacity: 1;
}

.social {
  display: flex;
  gap: 4px;
}

.social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.25s ease, background 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.social a:hover,
.social a:focus-visible {
  color: var(--ink);
  background: rgba(22, 18, 26, 0.05);
  transform: translateY(-2px);
  outline: none;
}

.social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.legal {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--faint);
}

@media (max-width: 640px) {
  :root {
    --r: 150px;
  }
  .col {
    font-size: 11px;
  }
}

@media (max-height: 600px) {
  .center {
    gap: 18px;
    padding-bottom: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora i,
  .col .run,
  .caret {
    animation: none !important;
  }
  .mark,
  .word,
  .sub,
  .status,
  .foot,
  .aurora i {
    transition-duration: 0.01s !important;
    transition-delay: 0s !important;
  }
}
