:root {
  --paper: #f7f1e6;
  --paper-warm: #fbf4e8;
  --ink: #3b4250;
  --ink-soft: rgba(59, 66, 80, 0.55);
  --ink-faint: rgba(59, 66, 80, 0.32);
  --peach: #f3c9ae;
  --rose: #e9aeb2;
  --lilac: #c9bfe0;
  --sky: #b6d3e6;
  --gold: #f0d79a;
  --water: #a9c6d8;
  --serif: "Iowan Old Style", "Hoefler Text", "Palatino Linotype", Palatino,
    "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-fuerte: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html,
body {
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#washes {
  position: fixed;
  inset: -12%;
  z-index: 0;
  filter: blur(42px) saturate(1.06);
  will-change: transform;
  opacity: 0.85;
}

.wash {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  will-change: transform;
}

.wash-sky {
  width: 74%;
  height: 58%;
  left: -6%;
  top: -8%;
  background: radial-gradient(closest-side, var(--sky) 0%, transparent 72%);
  animation: drift-a 34s ease-in-out infinite alternate;
}

.wash-gold {
  width: 66%;
  height: 52%;
  right: -4%;
  top: 2%;
  background: radial-gradient(closest-side, var(--gold) 0%, transparent 72%);
  animation: drift-b 41s ease-in-out infinite alternate;
}

.wash-rose {
  width: 58%;
  height: 46%;
  left: 18%;
  top: 26%;
  background: radial-gradient(closest-side, var(--rose) 0%, transparent 70%);
  animation: drift-c 47s ease-in-out infinite alternate;
}

.wash-lilac {
  width: 70%;
  height: 44%;
  right: 6%;
  bottom: 12%;
  background: radial-gradient(closest-side, var(--lilac) 0%, transparent 72%);
  animation: drift-b 39s ease-in-out infinite alternate-reverse;
}

.wash-water {
  width: 130%;
  height: 46%;
  left: -15%;
  bottom: -14%;
  border-radius: 40% 40% 0 0;
  background: radial-gradient(closest-side, var(--water) 0%, transparent 78%);
  animation: drift-a 52s ease-in-out infinite alternate;
}

.wash-peach {
  width: 46%;
  height: 34%;
  left: 28%;
  top: 8%;
  background: radial-gradient(closest-side, var(--peach) 0%, transparent 70%);
  animation: drift-c 43s ease-in-out infinite alternate-reverse;
}

@keyframes drift-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(3%, -2%, 0) scale(1.07);
  }
}

@keyframes drift-b {
  from {
    transform: translate3d(0, 0, 0) scale(1.04);
  }
  to {
    transform: translate3d(-3%, 2%, 0) scale(1);
  }
}

@keyframes drift-c {
  from {
    transform: translate3d(-2%, 1%, 0) scale(1);
  }
  to {
    transform: translate3d(2%, -1%, 0) scale(1.09);
  }
}

#grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/><feColorMatrix type='saturate' values='0'/></filter><rect width='220' height='220' filter='url(%23n)' opacity='0.5'/></svg>");
}

#paper-edge {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 78% 72% at 50% 46%,
    transparent 0%,
    rgba(203, 186, 160, 0.16) 68%,
    rgba(168, 148, 118, 0.34) 100%
  );
}

#bloom {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    ellipse 44% 32% at 50% 48%,
    rgba(255, 249, 232, 0.96) 0%,
    rgba(244, 217, 166, 0.55) 40%,
    rgba(244, 217, 166, 0) 76%
  );
}

#stage {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  place-items: center;
}

.act {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.4s var(--ease);
}

.act.is-active {
  opacity: 1;
  visibility: visible;
}

#mark {
  width: min(94vw, 1200px);
  max-height: 70vh;
  overflow: visible;
}

#mark.en-reposo {
  filter: url(#ink-bleed);
}

.mark-side {
  will-change: transform;
}

#mark .main,
#mark .detail {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

#mark .main {
  stroke-width: 2.6;
}

#mark .detail {
  stroke-width: 2;
  opacity: 0.85;
}

.heart {
  fill: url(#heart-glow);
  stroke: none;
  opacity: 0;
  transition: opacity 2.6s var(--ease);
}

#mark.heart-in .heart {
  opacity: 1;
}

.wordmark {
  position: absolute;
  bottom: 14vh;
  text-align: center;
  opacity: 0;
  transition: opacity 2s var(--ease);
}

.wordmark.is-in {
  opacity: 1;
}

.wordmark span {
  display: block;
  font-size: clamp(11px, 1.5vw, 14px);
  letter-spacing: 0.62em;
  text-indent: 0.62em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hint {
  position: absolute;
  bottom: 7vh;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: clamp(10px, 1.2vw, 12px);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0;
  transition: opacity 2s var(--ease);
}

.hint.is-in {
  opacity: 1;
  animation: breathe 4.5s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
}

@media (max-width: 700px) {
  #mark {
    width: 96vw;
  }
  #mark .main {
    stroke-width: 1.7;
  }
  #mark .detail {
    stroke-width: 1.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hint.is-in {
    animation: none;
  }
  .wash {
    animation: none;
  }
}

/* Nada se queda quieto del todo: el reposo tambien respira */

@keyframes respira {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -0.5%, 0) scale(1.007);
  }
}

@keyframes flota {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -3.5px, 0);
  }
}

@keyframes flota-centro {
  0%,
  100% {
    transform: translate(-50%, -50%);
  }
  50% {
    transform: translate(-50%, calc(-50% - 4px));
  }
}

#mark.en-reposo {
  animation: respira 12s ease-in-out infinite;
  will-change: transform;
}

.wordmark.is-in span {
  display: inline-block;
  animation: flota 10s ease-in-out 1.5s infinite;
}

@media (prefers-reduced-motion: reduce) {
  #mark.en-reposo,
  .wordmark.is-in span {
    animation: none;
  }
}
