@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 {
  height: 100%;
}

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;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ── 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: clamp(4rem, 7.5vw, 13rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  max-width: 100%;
  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;
}

@media (max-width: 640px) {
  main {
    min-height: 100vh;
    min-height: 100svh;
    width: 100%;
    margin: 0 auto;
    padding-top: clamp(3rem, 10vh, 5rem);
    padding-bottom: 2rem;
  }

  h1 {
    font-size: clamp(2.15rem, 11vw, 4rem);
    line-height: 0.95;
    white-space: normal;
    text-wrap: balance;
    max-width: 100%;
    margin-bottom: clamp(2rem, 8vh, 4rem);
  }

  .tagline {
    max-width: 24rem;
  }

  a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-height: 760px) {
  h1 {
    margin-bottom: clamp(1.75rem, 6vh, 3rem);
  }

  .tagline,
  .status {
    margin-bottom: 1.5rem;
  }
}

/* ── 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;
  }
}
