:root {
  --rx: 0deg;
  --ry: 0deg;
  --px: 0px;
  --py: 0px;

  --srx: 0deg;
  --sry: 0deg;
  --spx: 0px;
  --spy: 0px;

  --bgx: 0px;
  --bgy: 0px;
}

* {
  box-sizing: border-box;
}

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

html,
body {
  background: #043745;
}

body {
  overflow: hidden;
  color: #fff;
  font-family: "Instrument Sans", sans-serif;
}

.stage {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.background {
  position: absolute;
  inset: -2%;
  background-image: url("../img/faro-bg.jpg");
  background-size: cover;
  background-position: center;
  transform: translate3d(var(--bgx), var(--bgy), 0) scale(1.03);
  transition: transform 90ms ease-out;
  will-change: transform;
  z-index: -2;
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    transparent 12%,
    rgba(0, 18, 24, 0.08) 62%,
    rgba(0, 12, 18, 0.18) 100%
  );
  pointer-events: none;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* O efeito acontece AQUI, somente no logo */
.logo-wrap {
  position: relative;
  width: 180px;

  perspective: 700px;
  transform-style: preserve-3d;

  transform: translate3d(var(--px), var(--py), 0);
  transition: transform 90ms ease-out;

  will-change: transform;
}

.logo {
  position: relative;
  z-index: 2;

  display: block;
  width: 180px;
  height: auto;

  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  transform:
    rotateX(var(--rx))
    rotateY(var(--ry))
    translateZ(28px);

  transition: transform 90ms ease-out;
  will-change: transform;

  user-select: none;
  -webkit-user-drag: none;

  filter:
    drop-shadow(0 24px 30px rgba(0,0,0,.22))
    drop-shadow(0 4px 7px rgba(0,0,0,.20));
}

.logo-glow {
  position: absolute;
  inset: 8% 5%;
  border-radius: 50%;

  background: radial-gradient(
    circle at 50% 50%,
    rgba(255,255,255,.24),
    rgba(255,255,255,.08) 34%,
    transparent 70%
  );

  filter: blur(22px);
  opacity: .55;

  transform: translateZ(-25px) scale(.9);
  pointer-events: none;
}

.status {
  margin: 0;

  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .30em;
  text-transform: uppercase;

  color: rgba(255,255,255,.70);

  transform:
    translate3d(var(--spx), var(--spy), 0)
    rotateX(var(--srx))
    rotateY(var(--sry));

  transform-style: preserve-3d;
  transition: transform 90ms ease-out;
  will-change: transform;
}

@media (max-width: 600px) {
  .background {
    background-position: 57% center;
    inset: -4%;
    transform: translate3d(var(--bgx), var(--bgy), 0) scale(1.06);
  }

  .logo-wrap,
  .logo {
    width: min(55vw, 180px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .background,
  .logo-wrap,
  .logo,
  .status {
    transform: none !important;
    transition: none !important;
  }
}


@media (max-width: 600px) {
  .logo-wrap,
  .logo,
  .status,
  .background {
    will-change: transform;
  }
}


/* V20 — intro geral: blur -> foco */
.stage {
  animation: faro-intro-focus 1.45s cubic-bezier(.22, .61, .36, 1) both;
}

@keyframes faro-intro-focus {
  0% {
    filter: blur(22px);
    opacity: .38;
    transform: scale(1.04);
  }

  36% {
    opacity: 1;
  }

  100% {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage {
    animation: none;
  }
}
