:root {
  --heartbeat-speed: 1.65s;
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #000;
  color: #fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #000;
}

body {
  min-height: 100svh;
  overflow: hidden;
}

.landing {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100svh;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 0, 126, 0.035), transparent 42%),
    #000;
}

.eyebrow {
  position: fixed;
  z-index: 4;
  top: clamp(1.35rem, 5vh, 3.75rem);
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.7rem, 0.55rem + 0.45vw, 0.95rem);
  font-weight: 500;
  letter-spacing: clamp(0.28rem, 0.22rem + 0.35vw, 0.55rem);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.eyebrow::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 1px;
  margin: 0.85rem auto 0;
  background: linear-gradient(90deg, transparent, #ff007f, transparent);
}

.logo-stage {
  position: relative;
  width: min(78svh, 86vw, 47rem);
  aspect-ratio: 1;
}

.logo {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-select: none;
  user-select: none;
}

.ring-glow {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: url("assets/func-book-logo.jpg") center / contain no-repeat;
  filter: blur(clamp(0.55rem, 1.25vw, 1rem)) saturate(1.35);
  opacity: 0.38;
  -webkit-mask-image: radial-gradient(
    circle at 50% 49.4%,
    transparent 0 42.7%,
    #000 43.2% 45.4%,
    transparent 45.9%
  );
  mask-image: radial-gradient(
    circle at 50% 49.4%,
    transparent 0 42.7%,
    #000 43.2% 45.4%,
    transparent 45.9%
  );
  animation: ring-breathe 3.8s ease-in-out infinite;
}

.heartbeat {
  position: absolute;
  z-index: 3;
  top: 54.25%;
  left: 18.1%;
  width: 63.4%;
  height: 9.7%;
  overflow: visible;
  background: #000;
}

.heartbeat svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pulse,
.pulse-scan {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pulse {
  stroke: url("#pulse-gradient");
  transform-box: fill-box;
  transform-origin: center;
  animation: heartbeat var(--heartbeat-speed) linear infinite;
}

.pulse--glow {
  stroke-width: 7;
  opacity: 0.5;
  filter: url("#pulse-glow");
  animation-name: heartbeat, pulse-flash;
  animation-duration: var(--heartbeat-speed), var(--heartbeat-speed);
  animation-timing-function: linear, linear;
  animation-iteration-count: infinite, infinite;
}

.pulse--main {
  stroke-width: 3.4;
}

.pulse-scan {
  stroke: #ff5fbd;
  stroke-width: 4;
  stroke-dasharray: 82 918;
  filter: url("#pulse-glow");
  animation: monitor-scan var(--heartbeat-speed) linear infinite;
}

.contact {
  position: fixed;
  z-index: 4;
  bottom: clamp(1.35rem, 4.5vh, 3.1rem);
  left: 50%;
  padding: 0.35rem;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(0.74rem, 0.67rem + 0.22vw, 0.92rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.contact:hover,
.contact:focus-visible {
  color: #fff;
  outline: none;
  text-shadow: 0 0 1rem rgba(255, 0, 143, 0.7);
}

@keyframes ring-breathe {
  0%,
  100% {
    opacity: 0.24;
    transform: scale(0.998);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.008);
  }
}

@keyframes heartbeat {
  0%,
  7%,
  22%,
  100% {
    transform: scaleY(1);
  }

  10% {
    transform: scaleY(1.18);
  }

  14% {
    transform: scaleY(0.9);
  }

  18% {
    transform: scaleY(1.24);
  }
}

@keyframes pulse-flash {
  0%,
  7%,
  24%,
  100% {
    opacity: 0.35;
  }

  10%,
  18% {
    opacity: 0.9;
  }

  14% {
    opacity: 0.5;
  }
}

@keyframes monitor-scan {
  from {
    stroke-dashoffset: 82;
    opacity: 0;
  }

  6% {
    opacity: 1;
  }

  78% {
    opacity: 1;
  }

  to {
    stroke-dashoffset: -918;
    opacity: 0;
  }
}

@media (max-aspect-ratio: 3 / 4) {
  .logo-stage {
    width: min(68svh, 94vw);
  }
}

@media (max-height: 35rem) and (orientation: landscape) {
  .logo-stage {
    width: min(82svh, 58vw);
  }

  .eyebrow {
    top: 1rem;
  }

  .contact {
    bottom: 0.85rem;
  }
}
