/* =========================================================
   KZHWEB — Maintenance
   Design system
   ========================================================= */
:root {
  --bg-0: #0f0f11;
  --bg-1: #17171a;
  --bg-2: #1d1d20;
  --ink: #ecebe6;
  --ink-dim: rgba(236, 235, 230, 0.62);
  --ink-mute: rgba(236, 235, 230, 0.38);
  --gold: #d4a017;
  --gold-soft: #e6b93a;
  --gold-glow: rgba(212, 160, 23, 0.55);
  --hairline: rgba(236, 235, 230, 0.08);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
  height: 100%;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  cursor: default;
}

body {
  position: relative;
  background:
    radial-gradient(1200px 800px at 50% 40%, #22221f 0%, #141416 55%, #0b0b0d 100%);
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---- Grain ---- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 6;
  opacity: 0.05;
  mix-blend-mode: overlay;
  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'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---- Ambient glows ---- */
.ambient-glow {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.ambient-glow--gold {
  width: 60vmax; height: 60vmax;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212,160,23,0.22) 0%, rgba(212,160,23,0.05) 40%, transparent 70%);
  animation: floatSlow 18s ease-in-out infinite alternate;
}
.ambient-glow--dark {
  width: 40vmax; height: 40vmax;
  right: -10vmax; bottom: -10vmax;
  background: radial-gradient(circle, rgba(60,50,20,0.35) 0%, transparent 70%);
  animation: floatSlow 22s ease-in-out infinite alternate-reverse;
}

@keyframes floatSlow {
  0%   { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-48%, -52%) scale(1.08); }
}

/* ---- Scene canvas ---- */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: block;
}

/* ---- Topbar ---- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.wordmark {
  display: flex; align-items: center; gap: 12px;
  font-weight: 500;
  color: var(--ink);
}
.wordmark .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}

.status { display: flex; align-items: center; gap: 10px; }
.status__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
  animation: pulseDot 2.2s ease-in-out infinite;
}
.status__label { display: inline-flex; align-items: baseline; gap: 2px; }
.status__ellipsis { display: inline-flex; margin-left: 2px; }
.status__ellipsis i {
  opacity: 0.2;
  animation: blinkDot 1.4s ease-in-out infinite;
  font-style: normal;
}
.status__ellipsis i:nth-child(2) { animation-delay: 0.2s; }
.status__ellipsis i:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulseDot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px var(--gold-glow); }
  50%      { transform: scale(1.25); box-shadow: 0 0 18px var(--gold-glow); }
}
@keyframes blinkDot {
  0%, 100% { opacity: 0.2; }
  50%      { opacity: 1; }
}

/* ---- Stage / hero ---- */
.stage {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 180px 40px 96px;
  pointer-events: none; /* let the canvas receive pointer */
}

.hero {
  max-width: 720px;
  text-align: center;
  pointer-events: auto;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 8.5vw, 115px);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 28px;
  text-shadow: 0 0 60px rgba(212, 160, 23, 0.15);
}

.subtitle {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(14px, 1.6vw, 17px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 24px;
}

.copy {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 460px;
  margin: 0 auto 44px;
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 12px 22px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.02);
}
.meta__item { display: inline-flex; align-items: center; gap: 8px; }
.meta__item i {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
}
.meta__sep { color: var(--ink-mute); }

/* ---- Footer ---- */
.footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.footer__center { color: var(--ink-dim); }

/* ---- Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(8px);
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .topbar { padding: 20px 22px; font-size: 10px; }
  .footer { padding: 18px 22px; font-size: 10px; flex-wrap: wrap; gap: 6px; justify-content: center; text-align: center; }
  .footer__center { order: 3; width: 100%; }
  .stage { padding: 140px 22px 120px; }
  .title { letter-spacing: 0.14em; }
  .copy { font-size: 15px; }
  .meta { gap: 8px; padding: 10px 16px; font-size: 10px; }
  .meta__sep { display: none; }
  .meta { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 420px) {
  .status .status__label { display: none; }
  .status .status__dot { width: 10px; height: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-glow, .status__dot, .status__ellipsis i { animation: none !important; }
}
