:root {
  --bg: #f6f3ee;
  --ink: #1b1a18;
  --muted: #8a857c;
  --line: #d9d3c8;
  --accent: #b08a4f;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111110; --ink: #ece8e1; --muted: #8d887f; --line: #2e2c29; --accent: #d1ad72; }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  display: grid; place-items: center; min-height: 100svh; overflow: hidden;
  background: var(--bg); color: var(--ink); font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* one soft, slowly drifting light behind the name */
.glow {
  position: fixed; width: 70vmax; height: 70vmax; left: 50%; top: 50%;
  translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 60%);
  filter: blur(20px); opacity: 0;
  animation: appear 2.4s 0.4s ease forwards, drift 18s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate(-6%, -4%) scale(1); } to { transform: translate(6%, 4%) scale(1.08); } }

main { position: relative; text-align: center; padding: 0 24px; }

.status {
  margin: 0 0 28px; display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
  opacity: 0; animation: appear 1s 1.4s ease forwards;
}
.dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: 0.6; } to { transform: scale(3.2); opacity: 0; } }

/* the name: letters rise in one after another */
h1 {
  margin: 0; font-family: var(--serif); font-weight: 400; line-height: 0.95;
  font-size: clamp(3.4rem, 13vw, 9.5rem); letter-spacing: -0.01em;
  display: flex; flex-wrap: wrap; justify-content: center; column-gap: 0.28em;
}
.word { display: inline-flex; overflow: hidden; padding-bottom: 0.08em; }
.word > span { display: inline-block; transform: translateY(105%); opacity: 0; animation: rise 1s cubic-bezier(0.2, 0.75, 0.2, 1) forwards; }
.word:nth-child(2) > span { font-style: italic; }
.word:nth-child(1) > span:nth-child(1) { animation-delay: 0.10s; }
.word:nth-child(1) > span:nth-child(2) { animation-delay: 0.16s; }
.word:nth-child(1) > span:nth-child(3) { animation-delay: 0.22s; }
.word:nth-child(1) > span:nth-child(4) { animation-delay: 0.28s; }
.word:nth-child(1) > span:nth-child(5) { animation-delay: 0.34s; }
.word:nth-child(1) > span:nth-child(6) { animation-delay: 0.40s; }
.word:nth-child(2) > span:nth-child(1) { animation-delay: 0.52s; }
.word:nth-child(2) > span:nth-child(2) { animation-delay: 0.58s; }
.word:nth-child(2) > span:nth-child(3) { animation-delay: 0.64s; }
.word:nth-child(2) > span:nth-child(4) { animation-delay: 0.70s; }
.word:nth-child(2) > span:nth-child(5) { animation-delay: 0.76s; }
.word:nth-child(2) > span:nth-child(6) { animation-delay: 0.82s; }
@keyframes rise { to { transform: translateY(0); opacity: 1; } }

/* a thin line that keeps drawing itself, like quiet work in progress */
.line {
  position: relative; width: min(220px, 50vw); height: 1px; margin: 34px auto 26px;
  background: var(--line); overflow: hidden;
  opacity: 0; animation: appear 0.8s 1.2s ease forwards;
}
.line i {
  position: absolute; inset: 0; background: var(--ink); transform-origin: left;
  animation: work 3.2s 1.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  transform: scaleX(0);
}
@keyframes work {
  0% { transform-origin: left; transform: scaleX(0); }
  45% { transform-origin: left; transform: scaleX(1); }
  55% { transform-origin: right; transform: scaleX(1); }
  100% { transform-origin: right; transform: scaleX(0); }
}

.note {
  margin: 0; font-size: clamp(15px, 2.2vw, 17px); color: var(--muted); letter-spacing: 0.01em;
  opacity: 0; animation: appear 1s 1.7s ease forwards;
}
.note em { font-family: var(--serif); font-size: 1.25em; color: var(--ink); }

footer {
  position: fixed; left: 0; right: 0; bottom: max(22px, env(safe-area-inset-bottom));
  text-align: center; font-size: 12px; letter-spacing: 0.06em; color: var(--muted);
  opacity: 0; animation: appear 1s 2.1s ease forwards;
}

@keyframes appear { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .line i { transform: scaleX(0.6); }
}
