/* ==========================================================================
   NOTHING HERE YET — PURE EXPERIENTIAL STATIC SITE
   Awwwards Extreme Aesthetic — 100% Silent, Zero Server Required,
   Literally Only "nothing here yet".
   ========================================================================== */

:root {
  --bg-color: #030305;
  --text-color: #ffffff;
  --accent-cyan: #00f0ff;
  --accent-purple: #9d4edd;
  --accent-pink: #ff007f;
  --font-display: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-display);
  cursor: none; /* Custom fluid cursor */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   WEBGL CANVAS & ATMOSPHERIC LAYERS
   ========================================================================== */

#webgl-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Procedural Film Grain Overlay (100% offline data URI) */
.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Subtle Cinematic Scanlines */
.scanlines {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 11;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%,
    rgba(0, 0, 0, 0.3) 50%
  );
  background-size: 100% 4px;
  opacity: 0.45;
}

/* Deep Space Radial Vignette */
.vignette {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9;
  background: radial-gradient(
    circle at center,
    transparent 25%,
    rgba(3, 3, 5, 0.65) 70%,
    rgba(3, 3, 5, 0.98) 100%
  );
}

/* Screen Shockwave Flash */
.shockwave-flash {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.35), transparent 70%);
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
}

.shockwave-flash.active {
  opacity: 1;
  transition: opacity 0.04s ease-out;
}

/* ==========================================================================
   MINIMALIST PURE GRAPHICAL PRELOADER (ZERO TEXT)
   ========================================================================== */

.preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020204;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.8s var(--ease-out-expo);
}

.preloader-laser {
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00f0ff, #ffffff, #00f0ff, transparent);
  box-shadow: 0 0 15px #00f0ff, 0 0 30px #ffffff;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.preloader.fade-out {
  opacity: 0;
}

/* ==========================================================================
   CENTERSTAGE — MONUMENTAL "NOTHING HERE YET"
   ========================================================================== */

.stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  pointer-events: auto;
  perspective: 1200px;
}

.title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: clamp(10px, 2vw, 28px);
  row-gap: clamp(4px, 1vw, 16px);
  text-align: center;
  font-weight: 800;
  font-size: var(--title-font-size, clamp(32px, 7.5vw, 110px));
  line-height: 1.15;
  letter-spacing: -0.035em;
  transform-style: preserve-3d;
  will-change: transform;
  max-width: min(1300px, 92vw);
  padding: 0 16px;
}

.word {
  display: inline-flex;
  white-space: nowrap;
}

.char {
  display: inline-block;
  position: relative;
  will-change: transform, filter, opacity;
  transform-style: preserve-3d;
  padding: 0 0.015em;
  opacity: 0; /* Hidden on initial load until hovered 1 by 1 */
}

/* Liquid iridescent text gradient & glow */
.char::after {
  content: attr(data-char);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #00f0ff 40%,
    #9d4edd 70%,
    #ff007f 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.85;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.4));
  transition: opacity 0.3s ease, transform 0.2s ease;
}

/* Kinetic Hover Chromatic Dispersal */
.char:hover {
  filter: drop-shadow(0 0 35px #00f0ff);
}

.char:hover::after {
  opacity: 1;
  transform: scale(1.08) translateZ(30px);
  filter: drop-shadow(0 0 40px #ff007f);
}

/* ==========================================================================
   CUSTOM DUAL FLUID CURSOR
   ========================================================================== */

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  box-shadow: 0 0 10px #ffffff;
  transition: opacity 0.3s ease;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 52px;
  height: 52px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), border-color 0.3s ease, background 0.3s ease;
}

.cursor-ring.active {
  width: 90px;
  height: 90px;
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
}

.cursor-ring.clicking {
  transform: translate(-50%, -50%) scale(0.7);
  background: rgba(255, 255, 255, 0.2);
}

.cursor-ring.charging {
  transform: translate(-50%, -50%) scale(0.4);
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 25px #00f0ff;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), background 0.5s ease;
}

.cursor-ring.transmuting {
  transform: translate(-50%, -50%) scale(1.5);
  border-color: #ff007f;
  box-shadow: 0 0 40px #ff007f;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

/* ==========================================================================
   SUBTLE FOOTER CONTACT
   ========================================================================== */

.footer-contact {
  position: fixed;
  bottom: clamp(24px, 4vh, 40px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  pointer-events: auto;
  text-align: center;
}

.contact-email {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, 'Space Grotesk', 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.35);
  position: relative;
  padding: 6px 14px;
  transition: color 0.35s var(--ease-out-expo), text-shadow 0.35s var(--ease-out-expo);
  will-change: transform;
}

.contact-email::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00f0ff, transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease-out-expo);
  opacity: 0.7;
}

.contact-email:hover {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.7);
}

.contact-email:hover::after {
  transform: scaleX(1);
}

/* ==========================================================================
   TOUCH & RESPONSIVE HANDLING
   ========================================================================== */

@media (max-width: 768px) {
  html, body {
    cursor: auto;
  }
  .cursor-dot, .cursor-ring {
    display: none !important;
  }
  .title {
    font-size: clamp(48px, 14vw, 90px);
    flex-direction: column;
    gap: 8px;
  }
}
