/* Caminante — Tostadores de Café · Coming soon */

:root {
  --background: #fef2fc;
  --foreground: #40123e;
  --muted-foreground: #a63ba1;
  --primary: #dc24d7;
  --border: rgba(251, 152, 247, 0.55);
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-sans: "Karla", ui-sans-serif, system-ui, sans-serif;
}

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

html,
body {
  height: 100%;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.scene {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

/* Ambient light drifts */
.ambient {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  pointer-events: none;
}

.ambient-a {
  top: -15%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(closest-side, rgba(250, 122, 245, 0.35), transparent);
  animation: caminante-drift-a 16s ease-in-out infinite alternate;
}

.ambient-b {
  bottom: -20%;
  left: -15%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(closest-side, rgba(249, 79, 83, 0.18), transparent);
  animation: caminante-drift-b 20s ease-in-out infinite alternate;
}

/* Hero */

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  text-align: center;
}

.brand {
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.2rem, 14vw, 11rem);
  line-height: 1;
  letter-spacing: 0.02em;
}

.word {
  display: inline-block;
  opacity: 0;
  animation: caminante-rise 1.3s cubic-bezier(0.22, 0.8, 0.24, 1) both;
}

.descriptor {
  margin-top: 1.75rem;
  font-size: 0.875rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--foreground);
  opacity: 0;
  animation: caminante-spread 1.6s ease-out both;
}

@media (min-width: 640px) {
  .descriptor {
    font-size: 1rem;
  }
}

.sub {
  opacity: 0;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  animation: caminante-spread 1.6s ease-out both;
}

@media (min-width: 640px) {
  .sub {
    font-size: 0.7rem;
  }
}

/* Footer — walking line */
.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 2.75rem;
}

.walk {
  position: relative;
  width: min(320px, 60vw);
  height: 1px;
  overflow: hidden;
  background: var(--border);
}

.walker {
  position: absolute;
  top: -1.5px;
  left: -12%;
  height: 4px;
  width: 64px;
  border-radius: 9999px;
  background: linear-gradient(90deg, transparent, var(--primary));
  animation: caminante-walk 4.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

/* Keyframes */
@keyframes caminante-rise {
  from {
    opacity: 0;
    transform: translateY(0.6em);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes caminante-spread {
  from {
    opacity: 0;
    letter-spacing: 0.7em;
  }
  to {
    opacity: 1;
    letter-spacing: 0.35em;
  }
}

@keyframes caminante-walk {
  0% {
    left: -12%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: 104%;
    opacity: 0;
  }
}

@keyframes caminante-drift-a {
  from {
    transform: translate(-6%, -4%) scale(1);
  }
  to {
    transform: translate(7%, 9%) scale(1.18);
  }
}

@keyframes caminante-drift-b {
  from {
    transform: translate(5%, 6%) scale(1.12);
  }
  to {
    transform: translate(-7%, -5%) scale(0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  .word,
  .descriptor,
  .sub {
    animation: none;
    opacity: 1;
    filter: none;
  }

  .walker,
  .ambient {
    animation: none;
  }
}
