:root {
  --bg: #05050a;
  --text: #e8ecff;
  --muted: #8a90b4;
  --accent: #40e0d0;
  --accent-2: #b67dff;
}

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

html, body {
  height: 100%;
  background: radial-gradient(ellipse at 50% 40%, #11122a 0%, var(--bg) 70%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

main {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
  padding: 0 1.5rem;
}

/* Plain-text logo, shown until (or unless) the 3D scene takes over. */
#fallback-title {
  font-size: clamp(4rem, 18vw, 12rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(120deg, var(--accent), #7df9ff, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.has-3d #fallback-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.tagline {
  font-size: clamp(0.95rem, 2.4vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #c3c8e6;
  text-shadow: 0 0 18px rgba(5, 5, 10, 0.9);
  opacity: 0;
  animation: fade-up 1.6s ease-out 0.4s forwards;
}

/* Push the tagline below the 3D letters. */
.has-3d .tagline {
  position: absolute;
  top: 50%;
  margin-top: clamp(5rem, 13vw, 10rem);
}

.dot {
  color: var(--accent);
  margin: 0 0.5em;
}

footer {
  position: fixed;
  bottom: 1.25rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  pointer-events: none;
}

.contact {
  pointer-events: auto;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(64, 224, 208, 0.25);
  border-radius: 999px;
  background: rgba(64, 224, 208, 0.04);
  backdrop-filter: blur(6px);
  transition: border-color 0.25s, box-shadow 0.25s, color 0.25s;
}

.contact:hover,
.contact:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(64, 224, 208, 0.35);
  outline: none;
}

.copyright {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #4a4f70;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .dot { display: block; height: 0.4em; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .tagline { animation: none; opacity: 1; }
}
