:root {
  --accent: #d14836;
  --bg: #060606;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: #fff;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }
}

#app, #app canvas {
  position: fixed;
  inset: 0;
  display: block;
}

/* ---------- atmosphere overlays ---------- */

#vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(0, 0, 0, 0.55) 100%);
}

#grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 31;
  opacity: 0.05;
  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'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.6'/></svg>");
  animation: grain-shift 0.9s steps(4) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

/* ---------- mood filters ---------- */

#filters {
  position: fixed;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 40;
  max-width: 92vw;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: none;
}

#filters::-webkit-scrollbar { display: none; }

#filters button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

#filters button:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

#filters button.active {
  border-color: var(--accent);
  background: rgba(209, 72, 54, 0.14);
  color: #fff;
}

/* ---------- brand ---------- */

#brand {
  position: fixed;
  left: 24px;
  bottom: 22px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ---------- custom cursor ---------- */

#cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  pointer-events: none;
}

#cursor .dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

#cursor .ring {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.25s, height 0.25s, background 0.25s, border-color 0.25s;
}

body.hovering #cursor .ring {
  width: 76px;
  height: 76px;
  background: var(--accent);
  border-color: var(--accent);
}

body.dragging #cursor .ring {
  width: 60px;
  height: 60px;
  border-color: #fff;
}

#cursor-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}

body.hovering #cursor-label { opacity: 1; }

@media (hover: none) {
  #cursor { display: none; }
}

/* ---------- intro ---------- */

#intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  transition: opacity 0.9s ease;
}

#intro.hidden {
  opacity: 0;
  pointer-events: none;
}

#intro .kicker {
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

#intro h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(44px, 9vw, 120px);
  line-height: 1.02;
  max-width: 12ch;
}

#intro .sub {
  margin-top: 20px;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

#enter {
  margin-top: 48px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 16px 52px;
  transition: background 0.3s, border-color 0.3s;
}

#enter:hover {
  background: var(--accent);
  border-color: var(--accent);
}

#intro .hint {
  position: absolute;
  bottom: 34px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}
