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

:root {
  --bg: #050505;
  --fg: #f0ede8;
  --dim: rgba(240,237,232,0.35);
  --faint: rgba(240,237,232,0.1);
  --accent: #c8c2b8;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Josefin Sans', sans-serif;
}

html, body {
  width: 100%; height: 100%;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  cursor: none;
}

#canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  width: 6px; height: 6px;
  background: var(--fg);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.1s;
  mix-blend-mode: difference;
  /* position set by JS */
  left: var(--cx, 50%);
  top: var(--cy, 50%);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 3rem);
  pointer-events: none;
}

header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
}

.sigil {
  font-family: var(--font-display);
  font-size: 1.4rem;
  opacity: 0.6;
  letter-spacing: 0.05em;
}

.wordmark {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: normal;
  letter-spacing: 0.35em;
  color: var(--fg);
}

main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.5rem;
  max-width: 640px;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dot-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fg);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(0.6); }
}

.status-text {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: normal;
  letter-spacing: 0.4em;
  color: var(--fg);
}

.headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1.0;
  display: flex;
  flex-direction: column;
  gap: 0.05em;
  animation: rise 1.6s cubic-bezier(0.16,1,0.3,1) both;
}

.headline .line { display: block; }
.headline .accent {
  font-style: italic;
  color: var(--accent);
  padding-left: 1.5ch;
}

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

.epigraph {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  font-weight: 300;
  color: var(--fg);
  line-height: 1.8;
  border-left: 1px solid rgb(240, 237, 232);
  padding-left: 1.25rem;
  animation: rise 1.6s 0.3s cubic-bezier(0.16,1,0.3,1) both;
}

.epigraph cite {
  display: block;
  margin-top: 0.4em;
  font-size: 0.8em;
  letter-spacing: 0.05em;
  color: rgb(240, 237, 232);
}

.meta-grid {
  display: flex;
  gap: 2.5rem;
  animation: rise 1.6s 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.meta-label {
  font-family: var(--font-ui);
  font-size: 0.5rem;
  font-weight: normal;
  letter-spacing: 0.35em;
  color: rgb(255, 255, 255);
}

.meta-val {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--fg);
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: auto;
}

.hint, .footnote {
  font-family: var(--font-ui);
  font-size: 0.55rem;
  font-weight: normal;
  letter-spacing: 0.25em;
  color: rgb(255, 255, 255);
}

.overlay::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: overlay;
  z-index: -1;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0,0,0,0.75) 100%);
  z-index: 5;
  pointer-events: none;
}

@media (max-width: 600px) {
  .meta-grid { gap: 1.5rem; }
  .epigraph { font-size: 0.8rem; }
  footer { flex-direction: column; gap: 0.4rem; align-items: flex-start; }
}