@font-face {
  font-family: 'Google Sans Flex';
  src: url('fonts/GoogleSansFlex-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background-color: #000;
  color: #f0f0f0;
  font-family: 'Google Sans Flex', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Background layers ────────────────────────────────────────── */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Layer 1: blurred image — outer scales (breathing), inner translates (parallax) */
.bg__image {
  position: absolute;
  inset: -12%;
  animation: bgBreathe 28s ease-in-out infinite alternate;
  will-change: transform;
}

.bg__image-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(36px) saturate(1.1) brightness(1.25);
  opacity: 0.40;
  will-change: transform;
}

@keyframes bgBreathe {
  0%   { transform: scale(1.0)  translate(0%,     0%);    }
  30%  { transform: scale(1.05) translate(-0.6%,  0.4%);  }
  60%  { transform: scale(1.03) translate( 0.4%, -0.5%);  }
  100% { transform: scale(1.09) translate(-0.3%,  0.6%);  }
}

/* Layer 2: dark diffuse overlay + vignette */
.bg__diffuse {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, transparent 20%, rgba(0, 0, 0, 0.70) 100%),
    rgba(0, 0, 0, 0.38);
}

/* Layer 3: cursor glow — warm tint to match image palette */
.bg__cursor {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 55vmax at var(--cx, 50%) var(--cy, 50%),
    rgba(255, 238, 210, 0.07) 0%,
    transparent 65%
  );
  transition: background 0.1s ease;
}

/* ── Content ──────────────────────────────────────────────────── */

main {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18vh 2rem 2rem;
}

h1 {
  font-size: min(12vw, 13rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  animation: textBreathe 28s ease-in-out infinite alternate;
  margin-bottom: clamp(6rem, 20vh, 14rem);
}

@keyframes textBreathe {
  from {
    text-shadow:
      0 0 60px  rgba(255, 245, 230, 0.12),
      0 0 180px rgba(255, 245, 230, 0.05);
  }
  to {
    text-shadow:
      0 0 110px rgba(255, 245, 230, 0.26),
      0 0 300px rgba(255, 245, 230, 0.12);
  }
}

.tagline {
  font-size: clamp(1rem, 2.5vw, 1.75rem);
  font-weight: 400;
  color: #a0a0a0;
  line-height: 1.4;
  animation: ambientFade 28s ease-in-out infinite alternate;
  animation-delay: -4s;
  margin-bottom: clamp(1.75rem, 4vw, 3.5rem);
}

.status {
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 400;
  color: #555;
  letter-spacing: 0.02em;
  animation: ambientFade 28s ease-in-out infinite alternate;
  animation-delay: -8s;
  margin-bottom: clamp(1.75rem, 4vw, 3.5rem);
}

@keyframes ambientFade {
  from { opacity: 0.8; }
  to   { opacity: 1;   }
}

a {
  font-size: clamp(0.8125rem, 1.25vw, 1rem);
  color: #666;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

a:hover {
  color: #fff;
}

/* ── Reduced motion ───────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .bg__image {
    animation: none;
    transform: scale(1.06);
  }
  .bg__image-inner {
    transform: none;
  }
  .bg__cursor {
    display: none;
  }
  h1, .tagline, .status {
    animation: none;
  }
}
