:root {
  --bg: #0a0a0a;
  --fg: #f3f0ea;
  --muted: rgba(243, 240, 234, 0.62);
  --line: rgba(243, 240, 234, 0.55);
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  cursor: crosshair;
}

body::after {
  /* film grain, matches the fuzzy edge of the wallpaper pill */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: screen;
  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'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--muted);
  transition: border-color 0.2s ease;
}
a:hover { border-color: var(--fg); }

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  perspective: 900px;
}

.scene {
  position: relative;
  width: min(42vmin, 300px);
  aspect-ratio: 363 / 366;
  transform-style: preserve-3d;
  will-change: transform;
}

.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}

.layer--logo {
  filter: drop-shadow(0 0 24px rgba(243, 240, 234, 0.18));
}

.layer--echo { opacity: 0.16; }
.layer--echo-2 { opacity: 0.09; }
.layer--echo-3 { opacity: 0.045; }

.pill {
  margin-top: 6px;
  display: inline-flex;
  align-items: baseline;
  gap: 0.55em;
  padding: 0.55em 1.6em 0.62em;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: clamp(22px, 3.6vmin, 30px);
  letter-spacing: -0.03em;
  font-weight: 500;
  line-height: 1;
  will-change: transform;
  box-shadow: 0 0 0 1px rgba(243, 240, 234, 0.06);
}

.pill__mark {
  font-size: 0.42em;
  font-weight: 700;
  transform: translateY(-0.15em);
}

.tagline {
  margin: 28px 0 0;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 0 26px;
  font-size: 12px;
  color: var(--muted);
}
.foot a { color: var(--muted); border-bottom-color: transparent; }
.foot a:hover { color: var(--fg); }
.foot__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
}

/* entrance */
.scene, .pill, .tagline, .foot {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.pill { animation-delay: 0.1s; }
.tagline { animation-delay: 0.2s; }
.foot { animation-delay: 0.3s; }

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

@media (prefers-reduced-motion: reduce) {
  .scene, .pill, .tagline, .foot { animation: none; }
}
